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

 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 BG,EiG,TJf,IB,ic,zf,Q6,dJ,hD,eti,liG,uc,i4d,pGi,MG,viJ,PcJ,mGG,eN,htD,sBc,LQi,O4B,ni4,v6,P6,uD,xl,gi4,GU,Sc4,nV,H6,W6,WQi,rr,bD,rDG,jBD,UGB,Vh,td6,Fu,fic,KV,kfc,R$,Vd4,DGQ,BrF,xI,$tt,IXi,Trc,eZ4,lXJ,LT,KQi,s9,RtF,ElD,yzf,w64,ZVD,gs,PDG,zZ6,mtc,Q$i,hZJ,s$i,xtt,jt,OVc,HVc,WRc,X6t,kI,Vd,rzc,NrF,kUD,F8,tN6,FRG,VNG,qZ4,D1,dti,Rg,EX,B9,RZF,DtB,KRB,lh,EIc,Bs4,$It,Ts4,I1D,wF,eOJ,l1i,T2,iTc,pmF,a1d,wmJ,uh,QgG,vIf,dIc,hO4,sgc,nId,xIG,MV,gF,HTG,gIi,S9f,bTc,k7J,DIi,BF4,c5G,F5,p9c,aKd,B1,IG,T1,lv,c1,Cr,z1,
mm,zGG,G1,Qhc,shG,J1,W1,LqB,bv,oG,A1,j6,G2i,OXi,nyc,Mac,HXi,NFd,gyi,SXc,J5f,X9d,VC,fr,r5c,bX4,oyF,jht,A5c,UVB,$B,taB,Id,eR,lA,cL,pK,Vac,YB,Fqt,Bfi,vL,$7G,Igi,TfB,CK,eAG,lgf,wH,Z7,p1G,zB,vMQ,y1F,mX,w1Q,Cvc,ZrQ,Pvt,zAi,m7B,hv,QGG,d7c,sR,hAG,sGD,uA,LK,xB,GB,uLi,x74,Lmt,OR,Orc,nMc,M6d,HL,gH,SR,Jv,XW,rH,bA,Hr6,NfD,gMc,Sf6,J1G,WmQ,X1G,r1J,brt,oMF,A1i,Av,jGG,U7Q,kB,k1D,fK,VM,t6B,qfQ,FmQ,D7G,RAQ,EBB,BHF,e94,l7J,cvF,iKd,pL6,YRc,a74,wLd,D7,ZKG,PAt,z9F,mhc,QdQ,dhG,sdD,JvG,WXF,XLQ,bKG,oBJ,eC,Av6,ll,f7c,VR6,qRJ,
FXi,Dhc,KXG,R94,ErD,vM,$8c,kBF,IsJ,TMB,efD,ls4,cid,ibd,pMc,YxJ,asG,Cli,yi4,Plf,wMQ,ZbF,Q_i,d8D,hfB,zfD,uRJ,m84,x86,xr,Gi,nb,Git,nrB,MCf,grB,U8G,JiG,SxG,XMD,bbG,WKc,VCi,tCF,qxF,FKB,D8i,KK4,RfB,B1i,E9f,$mi,IVc,T1G,edQ,cVJ,ppQ,Y7G,aVt,yV4,v9i,L3c,xmi,GM4,rM,Oxf,Med,HxJ,N1f,g9D,S76,W3G,XpF,rVc,ti,fb,bxQ,kMt,Ds,Kb,q7f,F3f,l0F,Ntt,Ia,S_G,rxi,W$6,XhQ,Y9,bd6,opd,jJG,USF,k5G,t2F,f0t,V2c,q_i,yj,DSG,RBf,K$6,BUJ,d1,ui,Lx,ItG,TUd,epG,ltf,cAd,icJ,YrJ,pA4,r1,oa,QIQ,fx,sIt,qm,uxB,L4G,Fs,GbD,xDG,W4d,rAf,AAQ,jI6,kb4,
tI4,ftG,qrc,K4D,Rpd,E_,IZf,lZD,cgF,iFd,p7i,YFd,e7f,$_t,B06,$p,Ea4,aZc,ygc,w7J,z7d,ZF4,e2,Qkf,h7i,skc,uQF,LzG,pd,x_B,OFB,GRB,na6,HFG,vh,bF6,AgB,U_c,tgF,fZf,VgG,Ph,z5,qFG,R7d,hx,IDF,uQ,Ld,lDc,pnc,aDd,vvD,yIJ,xp,CyG,wni,ZlD,z_4,m3c,Qxt,d36,sxJ,O_,ugt,Lgc,MS,gt,Olt,nvi,MnF,Jx,gvc,S4B,Wgi,kp,jxQ,U34,kGF,tnJ,fDc,qS,FX,D0,Kd,Fgf,Er,D3i,Kgc,R_t,EVf,$Wi,Iai,B9f,$P,T9c,iic,II,cKt,pCf,el6,YGi,eI,yKB,aac,CEt,wCD,Zic,zlJ,PE4,mW6,hlD,QHF,u4f,MsB,N9B,SGi,WFQ,bid,rKJ,XCQ,oVi,jHD,kFc,UWF,tst,VsB,qGd,Q9,RlD,sr,$qd,
Bli,IAF,Lc,xP,TlD,Gb,e0B,cJG,pu6,vq4,CZF,yJQ,V9,wuc,ig4,h0G,sjQ,u74,Kc,LSi,GkG,Ogi,Ik,M$G,gqG,NlF,Xu6,rJf,bgG,oqi,jjc,V$6,UqD,t$f,fA4,qpB,DqB,FSi,R0G,KSi,ak,Eht,$Ut,I$c,cQF,mz,QZ,iCJ,pU6,d0,yQi,LF,xa,GR,PTc,OF,QOc,H7,dUJ,hSi,sOt,u$J,Sg,LMc,Gx4,OCt,McB,NGc,JQi,XUQ,UF,rQd,bCG,ohf,AQD,jOD,UUf,kxF,tcD,fF,qic,FMc,DUD,KMc,RSB,EOF,BYG,$fD,IBG,TYD,eDf,lBJ,cl6,Bn,mfQ,Q2D,$v,Ix,TG,dfi,hDi,s2c,uDc,Lri,xfQ,Gad,NYi,gOB,SKB,JlB,WrF,pl,vn,yI,Cl,Pn,zG,mg,rli,d7,oOc,hI,AlG,j2G,s4,UfG,kaD,tYD,BKB,ImG,i9c,vN4,amJ,$gB,
y2f,Z9Q,MjG,hJ4,J2c,uOi,S3i,W_B,nl,r2c,Hn,oNG,A2J,Ugi,kPJ,tjd,Vj4,Sn,F_d,DgB,K_i,RJB,EGB,BEf,$Ki,q3G,eui,lki,cRf,Wn,ZqQ,Pjd,w8B,mKt,QNB,huc,sNG,dKf,MPc,NEJ,Sqt,WhG,q3,jN6,ARt,VPd,FhG,DK6,Khi,Ru4,E7B,Bp4,TF,YMc,v7d,i$Q,cdc,aNG,INQ,C6d,LBd,P6Q,z2t,mii,WB6,rdJ,Jdf,kgf,SMQ,$ic,Uic,Z$D,uS4,Xlc,ydf,e2c,Tpf,lNc,plG,g7c,QU,lx6,i8d,pVt,YeD,ax6,QQD,xEc,GAQ,NW,ngF,NXF,W0i,JaD,rad,b8f,jQf,Aai,UEc,fxF,tOG,js,VOJ,qeG,DEc,F0t,UG,IQi,$N6,BAd,ck6,TAi,ipJ,lQF,p$d,tK,Y1d,C0c,v3D,ykJ,Zp4,P04,mNJ,F4,hb6,QSc,sSc,GIB,OpG,
HpD,g3d,Ep,Bu,X$i,rk6,$q,Ij,bpt,Tk,e$,o3f,lZ,Akt,cu,jSG,UNF,pg,kI4,tx6,fQF,Vxf,q1d,DNi,Fat,Rbc,$H4,BT4,IRi,TTJ,Kai,eLF,ieG,cMi,E4f,pEB,YOc,wl,v4c,CO6,yMQ,wEt,Zec,zLG,PO4,mHi,Pu,dH6,hLG,QLD,u3c,LVF,xHt,MfG,g46,rMi,jL6,zk,tfG,fRi,mS,VfD,sp,uZ,E6D,dl,Gk,BZF,$o4,TZ6,ei4,cCQ,pD6,YjG,aud,v6Q,wDG,Q0Q,ziB,CJD,dof,hiJ,Nq,moB,s0J,JJ,uzc,LxG,xoQ,GNF,Hfc,Of4,M9f,JCF,WxF,ACd,o6c,kN6,Doi,Kxd,Emc,$sB,I4Q,eVd,l46,cbG,p3t,Yg6,a46,Cb4,zVG,msG,w3G,ds6,sPi,hVB,QPQ,uYc,xsF,GXd,OJi,nmF,MD6,VX,qq,Kg,Ei,gmi,Sgi,WiG,bJ6,
BU,$h,omt,IO,UsQ,kXG,tDt,iT,Ds6,BVd,IcD,TVF,eUd,lcJ,csJ,Y8i,Yh,acB,CqF,aO,wfi,zUF,mdc,QrF,PqF,xdF,nUc,GOf,MiG,gUJ,Js6,XfQ,Asd,oU6,tiQ,Z$,fc4,Vif,PU,q8B,zx,FpF,DdQ,KpD,ELF,RUD,BwB,$yQ,IUc,TwG,aUt,ywQ,wTc,Ct6,i7B,lUJ,PtQ,myt,uTD,LYi,H76,gLG,si,SsG,WYF,XTi,b7G,Uyf,twt,Vwt,qsd,FYB,DyD,$0f,KYc,lF6,cPf,pR4,xh,aFf,vTG,yP6,CGf,wRt,ZSf,PGc,m0t,Q8c,MU,hKJ,s8J,x0B,HU,LsF,OSc,NI6,gG,gTB,Sk4,JPt,rPF,bSQ,WsQ,APi,tli,FsF,D0J,jc,Ksf,$6F,lri,fC,pdc,cGt,i0f,arc,yGB,CIG,zod,d6J,QwG,m6c,hof,u1J,LUJ,H0D,x6c,NC4,JGc,geF,
AGF,kjt,frB,qzF,Td6,lYF,cLG,aYc,yLi,u1,Jl,sbJ,h36,LnG,xBF,OL4,Gei,nQc,MJG,WN,pP6,Qbc,und,dBF,gY,tl,gQc,SHG,rLc,bLQ,oQi,ALB,jbi,UBf,kec,qf,tJQ,FD,fYF,VJG,qHi,FnG,R2,DBG,Ebi,$$i,IOc,YoB,vbD,yTi,CMc,ZoF,PM6,im,m$Q,QnF,d$Q,hTQ,snB,u04,x$G,OoB,Mot,HoQ,Xe6,JTc,rT6,ATG,jnJ,wK,U$d,kzD,toG,qoi,D$J,FAc,RTF,B4d,m_,IMi,T4i,$CD,ehG,WGD,rci,ofQ,b2D,AcG,XOf,jAQ,UC4,kqt,tyi,fMi,Vyd,qIc,FGc,DCF,EYi,Rht,B8G,I_c,$Tf,QF,T8F,cBG,vY6,ek4,yB6,CUi,wW6,ZUJ,u2G,xTJ,GTQ,nYB,MpB,gK,SSF,rBJ,oYt,Sj,kTf,UTc,tpf,XO,f_c,VpB,qSc,
DTi,KJc,RkG,E8f,$ed,I3J,yo4,pxG,a3c,wxG,Cfi,Z_B,Pfi,med,dec,s5d,LWi,Joi,roJ,o8c,Ao4,j5G,Ue6,ksG,f3c,Vuf,Def,KWd,RED,ECc,B5Q,$l6,IGc,T56,chD,YyG,aGi,vCQ,FO,Dm,K9,RY,yhD,$G,wcB,z8i,dlG,ueB,G06,M74,OM6,V7Q,qy6,Xct,jyf,FEG,k06,t7Q,N5B,oCi,nCc,rht,P9d,SyJ,syJ,Qyd,Dld,KEF,R8B,xlt,WEG,BSi,Il6,ead,ijB,pFD,aN,PFF,ZjF,dk4,u_4,xk4,OjD,nxG,NSt,S6d,gx4,XF4,bjJ,fl6,km6,A4c,t1d,jvt,V1d,KN4,sq,c6G,ThD,py4,YuF,v2B,y6G,Lq,CS6,PSi,zHD,m9c,QeG,OzD,GJG,gE,bj,J6J,WvJ,AR,Xyd,r6c,bz4,o26,A66,jec,U9Q,kJG,t_F,fvD,V_i,qu6,
Fvc,D9c,Kvc,jP,RHD,EJt,BQc,$rt,IT4,TQt,exc,lT6,cyG,itc,pZc,Yv4,kG,vJB,C_i,ZtG,mr6,hxc,sZc,uPJ,xr4,OtG,nJD,MmB,NQD,WfQ,SvG,XZc,ryB,btQ,jZ6,Vm4,qvB,DrG,a3,Rx6,p$,BiJ,$cc,vl,Idi,Tii,ezc,ldf,C$,YCc,vkc,Pgc,ZGG,mcJ,QMd,dp,dc4,hz6,uti,xcf,GK4,nkJ,MSt,Ljd,HG4,WjG,oki,AFG,hd,jMF,UcD,qCJ,kKc,fdf,VSF,BzD,Dci,$Xi,TzJ,lbQ,cNf,imJ,pHJ,YU6,abQ,yNd,CYD,wHB,ZmF,PYd,mXf,dXt,u9d,Omi,HmQ,goF,W64,n$,XHc,rNc,bmF,ooc,ANB,UXG,ktd,trB,fbc,VrQ,qUc,F6F,DXi,K6F,RQd,Ewf,$A4,BPQ,e6G,cuc,Ni,iDQ,aPD,Y5G,SV,CNc,wbQ,mAQ,h6c,QFc,
z6c,Ltc,uMG,MUG,xAD,b6,ODc,XbF,gwd,S5i,Juc,WtJ,ruG,ow6,bDB,o3,Ad,VUQ,jFt,fPt,tUF,UAF,k6c,DAi,R6c,ByD,EsG,eMJ,Tyc,iEB,p5c,a5J,vs6,YNG,yrF,w5Q,CPc,PPi,Qfi,FS,dJd,hMG,LTf,Mkt,WTF,K$,rrG,jfc,f5c,tki,UJG,k9D,IQ,KTG,qNG,FT4,RMf,Bu6,EWG,Tui,egi,cXB,i1D,pjG,YL6,aLQ,yXt,CCt,C8,Z16,Zx,PCi,dzD,hgQ,QA,s7J,LOd,SL6,L8,nWi,gW4,M4Q,H1B,rXB,b1f,Xjc,oWi,AXc,t4t,j76,fLt,V4G,GA,FO4,Dzi,KOG,qLc,EjG,Rgd,Oe,T$f,a8i,vjc,ynJ,CBQ,wzJ,ZRc,Qtf,zFD,mRJ,PBQ,hF6,ukF,LwG,ORd,nji,HRJ,gX,N$c,gji,Slt,Wwi,XzF,rnc,bRc,ojc,jtG,XC,kuc,
V36,f8B,Fwd,qlF,DRG,Kwc,RFt,rX,BW6,yUf,aWJ,ZB6,PzQ,suB,uVJ,LPG,xuG,GhG,OBt,HBc,NWF,g_F,SWF,XrB,rUc,bBc,o_F,AUi,juQ,UuF,khQ,tFc,fWt,VFQ,FPG,DuF,KPc,EZ6,$Qc,Tx4,ikG,c$4,l9G,ey6,Y0d,a9J,ex,vZt,y$6,C8f,wsD,zyi,Zkf,mQQ,P8c,Qii,pp,dQG,hyD,siJ,ucB,L8i,xQc,G_J,MXQ,nZF,Okd,HkB,J$d,W8J,Cp,XsG,r$c,bkD,oZF,A$G,jid,k_D,tXd,f9D,VXi,DQt,F8d,$1B,q0f,ZQ,ISi,K8c,Bkc,lSD,i6F,yeD,aSt,vHf,YTd,pIi,s1,Cxt,Z66,PxQ,z14,m1d,Q9f,Lp,x3,LHJ,h1c,d1i,s9B,WHQ,STJ,udG,gH4,U1G,kHJ,tvD,b0,fSi,Vv4,qTQ,KHQ,ERQ,$Mf,TgD,e5B,lpi,Ybi,p_J,
apc,yZF,VH,ZHf,P7c,z5i,mMD,FZ,DQ,h56,L1f,HHf,JZJ,W1D,X_Q,rZF,bHD,AZG,UMc,j4G,kLB,t5G,V5F,qbB,F1c,DMJ,K1d,R56,IL,Iq6,Eni,T8,ejc,TmJ,lq4,ySF,CXF,Ydc,pBc,vnt,aqi,mnF,QCG,dnQ,hj4,sCF,ui6,Lc4,xn6,nni,GCi,O3t,MTc,Nm4,SdJ,WcJ,rSF,onJ,kCc,tTc,fqc,VTB,qdB,pe,Dnt,Fcf,Y4,KcF,EEG,BeQ,$LB,Iec,iI4,pJf,Y$B,aeF,vEF,y7D,Ckc,PE,ZIG,PkB,z$Q,Qcf,mLi,dLD,sc6,uBD,L5Q,Got,OI6,xL4,S$F,XJD,r7F,bId,oED,jcD,A7c,ULi,F5D,DLf,K5d,R$B,B3c,Et6,Izf,iPQ,cYG,YwG,azB,vtB,P4t,zWi,mj4,Qot,Lbc,uvt,sof,OPi,MQc,nti,HPf,NH,N3B,gt6,X04,Wbt,
rYJ,bPQ,ot4,AYc,kdd,fzB,VQG,qw4,Fbf,Dji,Kbc,RWJ,B26,EzD,$Y6,T2J,Iyc,ew4,lyi,c9t,ihB,pvG,ayG,vzc,y94,Cd6,wvF,Zh4,PdG,mYc,QVF,zwt,UO,sVG,LoQ,xYf,G3B,OhJ,M0i,Hhc,Xvt,r9Q,UYF,t0Q,fyd,Foc,DYJ,Kod,RwG,ED6,Bni,Ifd,TnG,lfi,iWQ,Ynt,Cwd,vDi,af4,yEi,wK6,zn4,ZWQ,Pwc,QDQ,sDD,ulB,LCc,GYi,OW4,nD6,HW4,gDc,M8c,Sn6,JEf,WCi,XKi,rEQ,oDf,AEG,jDi,UaF,t8F,kY6,ffd,V8Q,qnD,FCG,DaJ,KCi,RnD,EFf,IEt,Tvc,Bv4,$4G,cmf,YE6,aEc,hCc,zCc,d4F,smc,Qmt,$6,um4,L7D,GDf,MK6,nFQ,Huf,Nvi,I0,e9,SEc,Jmc,iJ,pf,W7d,Xwd,Am4,kDG,fEQ,VKJ,qEc,F7G,
D4D,RCd,EXF,BaG,$5J,I6G,Tac,ec6,vD,l6B,ctG,Cf,iAc,pXJ,Y2Q,a6c,vX6,ytF,PD,zN,C$c,wXt,mx,ZAF,P$B,zct,m56,d5c,hcf,uad,nXB,OA6,G$6,MLf,HA4,XXF,S2f,Jt6,gXd,WLJ,dZ,Att,jXB,U5G,k$f,tLc,VLt,KLG,FLd,hC,q2B,InB,ev4,ln4,cjc,iQi,pat,v1Q,yj6,waQ,ZQ4,PRf,zvi,QsQ,dF6,hvJ,ssB,LZf,xFc,GZc,n1G,Mbd,NL4,g1i,rj6,bQG,o16,jsG,Ajt,kZ6,tbG,fn6,VbF,qBD,FZi,RvG,DFc,EKB,IhQ,iwQ,pQ6,YPt,ahi,y3J,Mo,No,HD,C2i,wQJ,Zwf,P24,QEc,mwJ,hqF,sEG,uHt,xwi,Gri,OwJ,MGQ,NqB,SPt,J3D,WDB,S9,XQc,bwB,oKG,Uwf,krG,JC,WD,VGF,tG4,qPG,KDi,FDf,Rqi,rZ,
B_B,$pc,eN4,c8Q,bJ,pYG,YhG,aod,vut,y8c,CVG,wYG,mp6,QRt,sRd,dp6,hN4,ur6,LyD,nui,xpc,OsD,MAt,HsF,N_F,J86,Wy6,XYF,r84,bs4,tAB,kED,KyJ,BNf,Du,$Zt,n9c,Iwc,TNB,lwG,i5F,poG,Z5B,P5c,$m,zYD,mZf,Q1c,dZi,hYG,ujc,xZ6,s1J,LkB,n$t,O54,MhB,H5c,NNc,g$Q,SVi,J0B,Wk4,Xof,A06,kWi,j1D,tht,fw6,Vhd,lb,qVG,Fk6,ib,KkD,DZB,RYc,EAB,$bG,ICF,eXG,lCd,c_G,iyG,p26,vA6,w2i,zXF,P3i,mbt,Q6Q,s6i,gAG,Gl4,J_i,WdD,r_6,byG,A_J,klf,fCc,tWc,qad,FdG,Db6,Kdi,RXJ,E5d,$PJ,eri,lIf,cqc,iNc,aIG,YtJ,wtf,ZNd,Pni,zrF,mPi,Qlc,hri,ub,uEc,Og,xPi,ONd,
n56,Stt,WIt,o5c,jl4,UPG,tz4,fI4,VzQ,FIi,KIi,RrD,$2D,TjB,cfB,l26,es6,SD,pSQ,iYG,YYJ,a2i,vS4,yf4,CsB,wSd,ZYB,zsi,m2G,QTF,hsc,Lli,d2F,sTf,x2c,GcB,OY6,nSJ,HYc,Nj4,oSF,AfQ,jTQ,U2G,kcF,VZD,Ab,Ect,BD6,$xF,IjD,TDi,jD,Ug,bi,vcQ,tb,yWt,Pet,mx6,zIG,fJ,QUG,dxG,k2c;_.Ec=function(E,B){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Ec);else{var I=Error().stack;I&&(this.stack=I)}E&&(this.message=String(E));B!==void 0&&(this.cause=B)};
BG=function(){throw Error("B");};
EiG=function(E,B){B=String.fromCharCode.apply(null,B);return E==null?B:E+B};
TJf=function(E){var B=!1;B=B===void 0?!1:B;if(BJ4){if(B&&($Gi?!E.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(E)))throw Error("C");E=(Iif||(Iif=new TextEncoder)).encode(E)}else{for(var I=0,T=new Uint8Array(3*E.length),e=0;e<E.length;e++){var c=E.charCodeAt(e);if(c<128)T[I++]=c;else{if(c<2048)T[I++]=c>>6|192;else{if(c>=55296&&c<=57343){if(c<=56319&&e<E.length){var Y=E.charCodeAt(++e);if(Y>=56320&&Y<=57343){c=(c-55296)*1024+Y-56320+65536;T[I++]=c>>18|
240;T[I++]=c>>12&63|128;T[I++]=c>>6&63|128;T[I++]=c&63|128;continue}else e--}if(B)throw Error("C");c=65533}T[I++]=c>>12|224;T[I++]=c>>6&63|128}T[I++]=c&63|128}}E=I===T.length?T:T.subarray(0,I)}return E};
IB=function(E){_.$i.setTimeout(function(){throw E;},0)};
_.lc=function(E,B){return E.lastIndexOf(B,0)==0};
ic=function(E,B){var I=E.length-B.length;return I>=0&&E.indexOf(B,I)==I};
_.aB=function(E){return/^[\s\xa0]*$/.test(E)};
_.vG=function(E,B){return E.indexOf(B)!=-1};
_.y6=function(E,B){return _.vG(E.toLowerCase(),B.toLowerCase())};
_.C4=function(){var E=_.$i.navigator;return E&&(E=E.userAgent)?E:""};
zf=function(E){if(!wJ||!Zi)return!1;for(var B=0;B<Zi.brands.length;B++){var I=Zi.brands[B].brand;if(I&&_.vG(I,E))return!0}return!1};
Q6=function(E){return _.vG(_.C4(),E)};
dJ=function(){return wJ?!!Zi&&Zi.brands.length>0:!1};
hD=function(){return dJ()?!1:Q6("Opera")};
eti=function(){return dJ()?!1:Q6("Trident")||Q6("MSIE")};
liG=function(){return dJ()?zf("Microsoft Edge"):Q6("Edg/")};
uc=function(){return Q6("Firefox")||Q6("FxiOS")};
_.n4=function(){return Q6("Safari")&&!(_.Oc()||(dJ()?0:Q6("Coast"))||hD()||(dJ()?0:Q6("Edge"))||liG()||(dJ()?zf("Opera"):Q6("OPR"))||uc()||Q6("Silk")||Q6("Android"))};
_.Oc=function(){return dJ()?zf("Chromium"):(Q6("Chrome")||Q6("CriOS"))&&!(dJ()?0:Q6("Edge"))||Q6("Silk")};
_.cDc=function(){return Q6("Android")&&!(_.Oc()||uc()||hD()||Q6("Silk"))};
i4d=function(E){var B={};E.forEach(function(I){B[I[0]]=I[1]});
return function(I){return B[I.find(function(T){return T in B})]||""}};
pGi=function(E){var B=_.C4();if(E==="Internet Explorer"){if(eti())if((E=/rv: *([\d\.]*)/.exec(B))&&E[1])B=E[1];else{E="";var I=/MSIE +([\d\.]+)/.exec(B);if(I&&I[1])if(B=/Trident\/(\d.\d)/.exec(B),I[1]=="7.0")if(B&&B[1])switch(B[1]){case "4.0":E="8.0";break;case "5.0":E="9.0";break;case "6.0":E="10.0";break;case "7.0":E="11.0"}else E="7.0";else E=I[1];B=E}else B="";return B}var T=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");I=[];for(var e;e=T.exec(B);)I.push([e[1],e[2],e[3]||void 0]);
B=i4d(I);switch(E){case "Opera":if(hD())return B(["Version","Opera"]);if(dJ()?zf("Opera"):Q6("OPR"))return B(["OPR"]);break;case "Microsoft Edge":if(dJ()?0:Q6("Edge"))return B(["Edge"]);if(liG())return B(["Edg"]);break;case "Chromium":if(_.Oc())return B(["Chrome","CriOS","HeadlessChrome"])}return E==="Firefox"&&uc()||E==="Safari"&&_.n4()||E==="Android Browser"&&_.cDc()||E==="Silk"&&Q6("Silk")?(B=I[2])&&B[1]||"":""};
_.Yci=function(E){if(dJ()&&E!=="Silk"){var B=Zi.brands.find(function(I){return I.brand===E});
if(!B||!B.version)return NaN;B=B.version.split(".")}else{B=pGi(E);if(B==="")return NaN;B=B.split(".")}return B.length===0?NaN:Number(B[0])};
MG=function(){return wJ?!!Zi&&!!Zi.platform:!1};
_.ait=function(){return MG()?Zi.platform==="Android":Q6("Android")};
viJ=function(){return Q6("iPhone")&&!Q6("iPod")&&!Q6("iPad")};
_.HG=function(){return viJ()||Q6("iPad")||Q6("iPod")};
_.yD4=function(){return MG()?Zi.platform==="macOS":Q6("Macintosh")};
_.CcF=function(){return MG()?Zi.platform==="Windows":Q6("Windows")};
_.wGi=function(){return MG()?Zi.platform==="Chrome OS":Q6("CrOS")};
_.gJ=function(E){return E[E.length-1]};
_.Sd=function(E,B,I){B=_.Z4c(E,B,I);return B<0?null:typeof E==="string"?E.charAt(B):E[B]};
_.Z4c=function(E,B,I){for(var T=E.length,e=typeof E==="string"?E.split(""):E,c=0;c<T;c++)if(c in e&&B.call(I,e[c],c,E))return c;return-1};
PcJ=function(E){for(var B=_.JD,I=typeof E==="string"?E.split(""):E,T=E.length-1;T>=0;T--)if(T in I&&B.call(void 0,I[T],T,E))return T;return-1};
_.AD=function(E,B){return _.XF(E,B)>=0};
_.ztc=function(E,B){_.AD(E,B)||E.push(B)};
_.f4=function(E,B){B=_.XF(E,B);var I;(I=B>=0)&&_.tD(E,B);return I};
_.tD=function(E,B){Array.prototype.splice.call(E,B,1)};
_.V6=function(E){var B=E.length;if(B>0){for(var I=Array(B),T=0;T<B;T++)I[T]=E[T];return I}return[]};
_.K4=function(E,B){for(var I=1;I<arguments.length;I++){var T=arguments[I];if(_.Di(T)){var e=E.length||0,c=T.length||0;E.length=e+c;for(var Y=0;Y<c;Y++)E[e+Y]=T[Y]}else E.push(T)}};
_.QBJ=function(E,B,I,T){Array.prototype.splice.apply(E,mGG(arguments,1))};
mGG=function(E,B,I){return arguments.length<=2?Array.prototype.slice.call(E,B):Array.prototype.slice.call(E,B,I)};
eN=function(E,B){B=B||E;for(var I=0,T=0,e={};T<E.length;){var c=E[T++],Y=_.B6(c)?"o"+_.$l(c):(typeof c).charAt(0)+c;Object.prototype.hasOwnProperty.call(e,Y)||(e[Y]=!0,B[I++]=c)}B.length=I};
_.dG4=function(E,B,I){I=I||_.lD;for(var T=0,e=E.length,c;T<e;){var Y=T+(e-T>>>1);var v=I(B,E[Y]);v>0?T=Y+1:(e=Y,c=!v)}return c?T:-T-1};
_.iD=function(E,B,I){if(!_.Di(E)||!_.Di(B)||E.length!=B.length)return!1;var T=E.length;I=I||htD;for(var e=0;e<T;e++)if(!I(E[e],B[e]))return!1;return!0};
_.lD=function(E,B){return E>B?1:E<B?-1:0};
htD=function(E,B){return E===B};
sBc=function(E,B,I){B=Array.prototype.splice.call(E,B,1);Array.prototype.splice.call(E,I,0,B[0])};
LQi=function(E){return uFi[E]||""};
O4B=function(E){if(!xG6)return _.pV(E);E=Gfd.test(E)?E.replace(Gfd,LQi):E;E=atob(E);for(var B=new Uint8Array(E.length),I=0;I<E.length;I++)B[I]=E.charCodeAt(I);return B};
ni4=function(E,B){E.__closure__error__context__984382||(E.__closure__error__context__984382={});E.__closure__error__context__984382.severity=B};
_.a$=function(E){E=Error(E);ni4(E,"warning");return E};
v6=function(E,B){if(E!=null){var I;var T=(I=Md6)!=null?I:Md6={};I=T[E]||0;I>=B||(T[E]=I+1,E=Error(),ni4(E,"incident"),IB(E))}};
P6=function(E,B,I){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(I===void 0?0:I)&&Symbol.for&&E?Symbol.for(E):E!=null?Symbol(E):Symbol():B};
uD=function(E,B){dr||_.sZ in E||H44(E,NJD);E[_.sZ]|=B};
xl=function(E,B){dr||_.sZ in E||H44(E,NJD);E[_.sZ]=B};
gi4=function(E){if(4&E)return 512&E?512:1024&E?1024:0};
GU=function(E){uD(E,34);return E};
Sc4=function(E){uD(E,32);return E};
nV=function(){return typeof BigInt==="function"};
H6=function(E,B){return B===void 0?E.copyOnWrite!==Mt&&!!(2&(E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sZ]|0)):!!(2&B)&&E.copyOnWrite!==Mt};
_.Jz=function(E,B){if(E!=null)if(typeof E==="string")E=E?new Nt(E,gr):_.SN();else if(E.constructor!==Nt)if(JDd&&E!=null&&E instanceof Uint8Array)E=E.length?new Nt(new Uint8Array(E),gr):_.SN();else{if(!B)throw Error();E=void 0}return E};
W6=function(E,B){if(typeof B!=="number"||B<0||B>=E.length)throw Error();};
WQi=function(E,B,I){B=B&128?0:-1;var T=E.length,e;if(e=!!T)e=E[T-1],e=e!=null&&typeof e==="object"&&e.constructor===Object;for(var c=T+(e?-1:0),Y=0;Y<c;Y++)I(Y-B,E[Y]);if(e){E=E[T-1];for(var v in E)!isNaN(v)&&I(+v,E[v])}};
rr=function(E){return E&128?Xu:void 0};
bD=function(E){E.isGuard_doNotManuallySetPrettyPlease=!0;return E};
rDG=function(){var E=XGd;return bD(function(B){for(var I in E)if(B===E[I]&&!/^[0-9]+$/.test(I))return!0;return!1})};
_.jN=function(E){var B=E;if(b44(B)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(B))throw Error(String(B));}else if(oic(B)&&!Number.isSafeInteger(B))throw Error(String(B));return o$?BigInt(E):E=ADB(E)?E?"1":"0":b44(E)?E.trim()||"0":String(E)};
jBD=function(E,B){if(E.length>B.length)return!1;if(E.length<B.length||E===B)return!0;for(var I=0;I<E.length;I++){var T=E[I],e=B[I];if(T>e)return!1;if(T<e)return!0}};
UGB=function(E){var B=E>>>0;UZ=B;fV=(E-B)/4294967296>>>0};
Vh=function(E){if(E<0){UGB(-E);var B=_.p(kfc(UZ,fV));E=B.next().value;B=B.next().value;UZ=E>>>0;fV=B>>>0}else UGB(E)};
td6=function(E,B){var I=B*4294967296+(E>>>0);return Number.isSafeInteger(I)?I:_.qt(E,B)};
Fu=function(E,B){var I=B&2147483648;I&&(E=~E+1>>>0,B=~B>>>0,E==0&&(B=B+1>>>0));E=td6(E,B);return typeof E==="number"?I?-E:E:I?"-"+E:E};
_.qt=function(E,B){B>>>=0;E>>>=0;if(B<=2097151)var I=""+(4294967296*B+E);else nV()?I=""+(BigInt(B)<<BigInt(32)|BigInt(E)):(I=(E>>>24|B<<8)&16777215,B=B>>16&65535,E=(E&16777215)+I*6777216+B*6710656,I+=B*8147497,B*=2,E>=1E7&&(I+=E/1E7>>>0,E%=1E7),I>=1E7&&(B+=I/1E7>>>0,I%=1E7),I=B+fic(I)+fic(E));return I};
fic=function(E){E=String(E);return"0000000".slice(E.length)+E};
_.DX=function(E,B){B&2147483648?nV()?E=""+(BigInt(B|0)<<BigInt(32)|BigInt(E>>>0)):(B=_.p(kfc(E,B)),E=B.next().value,B=B.next().value,E="-"+_.qt(E,B)):E=_.qt(E,B);return E};
KV=function(E){if(E.length<16)Vh(Number(E));else if(nV())E=BigInt(E),UZ=Number(E&BigInt(4294967295))>>>0,fV=Number(E>>BigInt(32)&BigInt(4294967295));else{var B=+(E[0]==="-");fV=UZ=0;for(var I=E.length,T=B,e=(I-B)%6+B;e<=I;T=e,e+=6)T=Number(E.slice(T,e)),fV*=1E6,UZ=UZ*1E6+T,UZ>=4294967296&&(fV+=Math.trunc(UZ/4294967296),fV>>>=0,UZ>>>=0);B&&(B=_.p(kfc(UZ,fV)),E=B.next().value,B=B.next().value,UZ=E,fV=B)}};
kfc=function(E,B){B=~B;E?E=~E+1:B+=1;return[E,B]};
R$=function(E){return Array.prototype.slice.call(E)};
_.E9=function(E,B){throw Error(B===void 0?"unexpected value "+E+"!":B);};
_.T7=function(E){if(E!=null&&typeof E!=="number")throw Error("I`"+typeof E+"`"+E);return E};
_.lL=function(E){if(E==null||typeof E==="number")return E;if(E==="NaN"||E==="Infinity"||E==="-Infinity")return Number(E)};
Vd4=function(E){if(E!=null&&typeof E!=="boolean")throw Error("J`"+_.cm(E)+"`"+E);return E};
_.qcd=function(E){if(E==null||typeof E==="boolean")return E;if(typeof E==="number")return!!E};
_.pT=function(E){switch(typeof E){case "bigint":return!0;case "number":return iL(E);case "string":return FQf.test(E);default:return!1}};
_.YI=function(E){if(!iL(E))throw _.a$("enum");return E|0};
_.yd=function(E){return E==null?E:iL(E)?E|0:void 0};
DGQ=function(E){if(typeof E!=="number")throw _.a$("int32");if(!iL(E))throw _.a$("int32");return E|0};
_.z7=function(E){return E==null?E:DGQ(E)};
_.m2=function(E){if(E==null)return E;if(typeof E==="string"&&E)E=+E;else if(typeof E!=="number")return;return iL(E)?E|0:void 0};
_.hH=function(E){if(E==null)return E;if(typeof E==="string"&&E)E=+E;else if(typeof E!=="number")return;return iL(E)?E>>>0:void 0};
BrF=function(E){var B=0;B=B===void 0?0:B;if(!_.pT(E))throw _.a$("int64");var I=typeof E;switch(B){case 512:switch(I){case "string":return s9(E);case "bigint":return String(uL(64,E));default:return KQi(E)}case 1024:switch(I){case "string":return RtF(E);case "bigint":return _.jN(uL(64,E));default:return ElD(E)}case 0:switch(I){case "string":return s9(E);case "bigint":return _.jN(uL(64,E));default:return LT(E)}default:return _.E9(B,"Unknown format requested type for int64")}};
xI=function(E){return E==null?E:BrF(E)};
$tt=function(E){if(E[0]==="-")return!1;var B=E.length;return B<20?!0:B===20&&Number(E.substring(0,6))<184467};
IXi=function(E){var B=E.length;return E[0]==="-"?B<20?!0:B===20&&Number(E.substring(0,7))>-922337:B<19?!0:B===19&&Number(E.substring(0,6))<922337};
Trc=function(E){if(E<0){Vh(E);var B=_.qt(UZ,fV);E=Number(B);return G7(E)?E:B}B=String(E);if($tt(B))return B;Vh(E);return td6(UZ,fV)};
eZ4=function(E){if(IXi(E))return E;KV(E);return _.DX(UZ,fV)};
lXJ=function(E){if($tt(E))return E;KV(E);return _.qt(UZ,fV)};
LT=function(E){E=O9(E);G7(E)||(Vh(E),E=Fu(UZ,fV));return E};
_.czc=function(E){E=O9(E);return E>=0&&G7(E)?E:Trc(E)};
KQi=function(E){E=O9(E);if(G7(E))E=String(E);else{var B=String(E);IXi(B)?E=B:(Vh(E),E=_.DX(UZ,fV))}return E};
_.iVi=function(E){E=O9(E);if(E>=0&&G7(E))E=String(E);else{var B=String(E);$tt(B)?E=B:(Vh(E),E=_.qt(UZ,fV))}return E};
s9=function(E){var B=O9(Number(E));if(G7(B))return String(B);B=E.indexOf(".");B!==-1&&(E=E.substring(0,B));return eZ4(E)};
RtF=function(E){var B=O9(Number(E));if(G7(B))return _.jN(B);B=E.indexOf(".");B!==-1&&(E=E.substring(0,B));return nV()?_.jN(uL(64,BigInt(E))):_.jN(eZ4(E))};
ElD=function(E){return G7(E)?_.jN(LT(E)):_.jN(KQi(E))};
_.p6t=function(E){return G7(E)?_.jN(_.czc(E)):_.jN(_.iVi(E))};
_.YZi=function(E){var B=O9(Number(E));if(G7(B)&&B>=0)return String(B);B=E.indexOf(".");B!==-1&&(E=E.substring(0,B));return lXJ(E)};
_.aXB=function(E){var B=O9(Number(E));if(G7(B)&&B>=0)return _.jN(B);B=E.indexOf(".");B!==-1&&(E=E.substring(0,B));return nV()?_.jN((0,_.nT)(64,BigInt(E))):_.jN(lXJ(E))};
_.vlJ=function(E){if(E==null)return E;if(typeof E==="bigint")return Hm(E)?E=Number(E):(E=uL(64,E),E=Hm(E)?Number(E):String(E)),E;if(_.pT(E))return typeof E==="number"?LT(E):s9(E)};
yzf=function(E,B){B=B===void 0?!1:B;var I=typeof E;if(E==null)return E;if(I==="bigint")return String(uL(64,E));if(_.pT(E))return I==="string"?s9(E):B?KQi(E):LT(E)};
_.CDJ=function(E){var B=typeof E;if(E==null)return E;if(B==="bigint")return _.jN(uL(64,E));if(_.pT(E))return B==="string"?RtF(E):ElD(E)};
w64=function(E){if(E==null)return E;var B=typeof E;if(B==="bigint")return String(uL(64,E));if(_.pT(E)){if(B==="string")return s9(E);if(B==="number")return LT(E)}};
ZVD=function(E){if(E==null)return E;var B=typeof E;if(B==="bigint")return String((0,_.nT)(64,E));if(_.pT(E)){if(B==="string")return _.YZi(E);if(B==="number")return _.czc(E)}};
_.NI=function(E){if(typeof E!=="string")throw Error();return E};
gs=function(E){if(E!=null&&typeof E!=="string")throw Error();return E};
_.St=function(E){return E==null||typeof E==="string"?E:void 0};
PDG=function(E,B,I,T){if(E!=null&&E[JH]===X8)return E;if(!Array.isArray(E))return I?T&2?((E=B[rs])||(E=new B,GU(E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),E=B[rs]=E),B=E):B=new B:B=void 0,B;I=E[_.sZ]|0;T=I|T&32|T&2;T!==I&&xl(E,T);return new B(E)};
zZ6=function(E,B,I){E=B?DGQ(E):_.m2(E);return E==null?I?0:void 0:E|0};
mtc=function(E){return E};
Q$i=function(E){return E};
hZJ=function(E,B,I,T,e,c){E=PDG(E,T,I,c);e&&(E=dti(E));return E};
s$i=function(E){return[E,this.get(E)]};
xtt=function(){return uuf||(uuf=new bL(GU([]),void 0,void 0,void 0,LRi))};
jt=function(E){var B=og(AH);return B?E[B]:void 0};
OVc=function(E,B){var I=og(AH),T;dr&&I&&((T=E[I])==null?void 0:T[B])!=null&&v6(GUi,3)};
HVc=function(E,B){var I=I===void 0?!1:I;if(og(nli)&&og(AH)&&void 0===nli){var T=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=T[AH];if(!e)return;if(e=e.reviveUnknownFields)try{e(T,B,MNG);return}catch(c){IB(c)}}I&&(E=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(I=og(AH))&&I in E&&(E=E[I])&&delete E[B])};
WRc=function(E,B,I,T){var e=T!==void 0;T=!!T;var c=og(AH),Y;!e&&dr&&c&&(Y=E[c])&&U9(Y,NrF);c=[];var v=E.length;Y=4294967295;var y=!1,Z=!!(B&64),P=Z?B&128?0:-1:void 0;if(!(B&1)){var z=v&&E[v-1];z!=null&&typeof z==="object"&&z.constructor===Object?(v--,Y=v):z=void 0;if(Z&&!(B&128)&&!e){y=!0;var m;Y=((m=glF)!=null?m:mtc)(Y-P,P,E,z)+P}}B=void 0;for(m=0;m<v;m++){var u=E[m];if(u!=null&&(u=I(u,T))!=null)if(Z&&m>=Y){var x=m-P,M=void 0;((M=B)!=null?M:B={})[x]=u}else c[m]=u}if(z)for(var N in z)v=z[N],v!=null&&
(v=I(v,T))!=null&&(m=+N,u=void 0,Z&&!Number.isNaN(m)&&(u=m+P)<Y?c[u]=v:(m=void 0,((m=B)!=null?m:B={})[N]=v));B&&(y?c.push(B):c[Y]=B);e&&og(AH)&&(E=jt(E))&&E instanceof SZc&&(c[AH]=JzB(E));return c};
X6t=function(E){E[0]=kI(E[0]);E[1]=kI(E[1]);return E};
kI=function(E){switch(typeof E){case "number":return Number.isFinite(E)?E:""+E;case "bigint":return Hm(E)?Number(E):""+E;case "boolean":return E?1:0;case "object":if(Array.isArray(E)){var B=E[_.sZ]|0;return E.length===0&&B&1?void 0:WRc(E,B,kI)}if(E!=null&&E[JH]===X8)return rzc(E);if(E instanceof Nt){B=E.JSC$6699_value_;if(B==null)E="";else if(typeof B==="string")E=B;else{if(xG6){for(var I="",T=0,e=B.length-10240;T<e;)I+=String.fromCharCode.apply(null,B.subarray(T,T+=10240));I+=String.fromCharCode.apply(null,
T?B.subarray(T):B);B=btoa(I)}else B=_.tH(B);E=E.JSC$6699_value_=B}return E}if(E instanceof bL)return E=E.size!==0?Array.from(fT.prototype.entries.call(E),X6t):void 0,E;return}return E};
Vd=function(E,B){if(B){glF=B==null||B===mtc||B[bVG]!==olc?mtc:B;try{return rzc(E)}finally{glF=void 0}}return rzc(E)};
rzc=function(E){E=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return WRc(E,E[_.sZ]|0,kI)};
NrF=function(E,B){B<500||v6(AzQ,1)};
kUD=function(E){switch(typeof E){case "boolean":return j$c||(j$c=[0,void 0,!0]);case "number":return E>0?void 0:E===0?Utt||(Utt=[0,void 0]):[-E,void 0];case "string":return[0,E];case "object":return E}};
F8=function(E,B,I){return E=_.qI(E,B[0],B[1],I?1:2)};
_.qI=function(E,B,I,T){T=T===void 0?0:T;if(E==null){var e=32;I?(E=[I],e|=128):E=[];B&&(e=e&-8380417|(B&1023)<<13)}else{if(!Array.isArray(E))throw Error("L");e=E[_.sZ]|0;2048&e&&!(2&e)&&tN6();if(e&256)throw Error("N");if(e&64)return T!==0||e&2048||xl(E,e|2048),E;if(I&&(e|=128,I!==E[0]))throw Error("O");a:{I=E;e|=64;var c=I.length;if(c){var Y=c-1,v=I[Y];if(v!=null&&typeof v==="object"&&v.constructor===Object){B=e&128?0:-1;Y-=B;if(Y>=1024)throw Error("Q");for(var y in v)c=+y,c<Y&&(I[c+B]=v[y],delete v[y]);
e=e&-8380417|(Y&1023)<<13;break a}}if(B){y=Math.max(B,c-(e&128?0:-1));if(y>1024)throw Error("R");e=e&-8380417|(y&1023)<<13}}}e|=64;T===0&&(e|=2048);xl(E,e);return E};
tN6=function(){v6(fXi,5)};
FRG=function(E,B){if(typeof E!=="object")return E;if(Array.isArray(E)){var I=E[_.sZ]|0;return E.length===0&&I&1?void 0:VNG(E,I,B)}if(E!=null&&E[JH]===X8)return qZ4(E);if(E instanceof bL){B=E.arrayState;if(B&2)return E;if(!E.size)return;I=GU(Array.from(fT.prototype.entries.call(E)));if(E.valueCtor)for(E=0;E<I.length;E++){var T=I[E],e=T[1];e==null||typeof e!=="object"?e=void 0:e!=null&&e[JH]===X8?e=qZ4(e):Array.isArray(e)?e=VNG(e,e[_.sZ]|0,!!(B&32)):e=void 0;T[1]=e}return I}if(E instanceof Nt)return E};
VNG=function(E,B,I){if(B&2)return E;!I||4096&B||16&B?E=D1(E,B,!1,I&&!(B&16)):(uD(E,34),B&4&&Object.freeze(E));return E};
qZ4=function(E){var B=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=B[_.sZ]|0;return H6(E,I)?E:D1(B,I)};
D1=function(E,B,I,T){T!=null||(T=!!(34&B));E=WRc(E,B,FRG,T);T=32;I&&(T|=2);B=B&8380609|T;xl(E,B);return E};
dti=function(E){var B=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=B[_.sZ]|0;return H6(E,I)?new E.constructor(D1(B,I,!1)):E};
Rg=function(E){if(E.copyOnWrite!==Mt)return!1;var B=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;B=D1(B,B[_.sZ]|0);uD(B,2048);E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=B;E.copyOnWrite=void 0;E.noLegacyNull=void 0;return!0};
EX=function(E){if(!Rg(E)&&H6(E,E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sZ]|0))throw Error();};
B9=function(E,B,I,T,e){var c=I+(e?0:-1),Y=E.length-1;if(Y>=1+(e?0:-1)&&c>=Y){var v=E[Y];if(v!=null&&typeof v==="object"&&v.constructor===Object)return v[I]=T,B}if(c<=Y)return E[c]=T,B;if(T!==void 0){var y;Y=((y=B)!=null?y:B=E[_.sZ]|0)>>13&1023||536870912;I>=Y?T!=null&&(c={},E[Y+(e?0:-1)]=(c[I]=T,c)):E[c]=T}return B};
_.ea=function(E,B,I,T,e){var c=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=c[_.sZ]|0;T=H6(E,Y)?1:T;e=!!e||T===3;T===2&&Rg(E)&&(c=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=c[_.sZ]|0);E=DtB(c,B);var v=E===Ih?7:E[_.sZ]|0,y=KRB(v,Y);var Z=4&y?!1:!0;if(Z){4&y&&(E=R$(E),v=0,y=T2(y,Y),Y=B9(c,Y,B,E));for(var P=0,z=0;P<E.length;P++){var m=I(E[P]);m!=null&&(E[z++]=m)}z<P&&(E.length=z);I=(y|4)&-513;y=I&=-1025;y&=-4097}y!==v&&(xl(E,y),2&y&&Object.freeze(E));return E=RZF(E,y,c,
Y,B,T,Z,e)};
RZF=function(E,B,I,T,e,c,Y,v){var y=B;c===1||(c!==4?0:2&B||!(16&B)&&32&T)?lh(B)||(B|=!E.length||Y&&!(4096&B)||32&T&&!(4096&B||16&B)?2:256,B!==y&&xl(E,B),Object.freeze(E)):(c===2&&lh(B)&&(E=R$(E),y=0,B=T2(B,T),B9(I,T,e,E)),lh(B)||(v||(B|=16),B!==y&&xl(E,B)));return E};
DtB=function(E,B,I){E=c9(E,B,I);return Array.isArray(E)?E:Ih};
KRB=function(E,B){2&B&&(E|=2);return E|1};
lh=function(E){return!!(2&E)&&!!(4&E)||!!(256&E)};
EIc=function(E){return _.Jz(E,!0)};
Bs4=function(E,B){var I=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=I[_.sZ]|0;a:{var e=T;T=H6(E,T);!T&&Rg(E)&&(I=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=I[_.sZ]|0);var c=c9(I,B);E=!1;if(c==null){if(T){B=xtt();break a}c=[]}else if(c.constructor===bL)if(c.arrayState&2&&!T)c=Array.from(fT.prototype.entries.call(c));else{B=c;break a}else Array.isArray(c)?E=!!((c[_.sZ]|0)&2):c=[];if(T){if(!c.length){B=xtt();break a}E||(E=!0,GU(c))}else if(E){E=!1;T=c;T=R$(T);for(c=0;c<
T.length;c++){var Y=T[c]=R$(T[c]);Array.isArray(Y[1])&&(Y[1]=GU(Y[1]))}c=T}!E&&e&32&&Sc4(c);E=new bL(c,void 0,zZ6,zZ6);B9(I,e,B,E);B=E}return B};
_.ih=function(E,B,I,T){EX(E);var e=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=e[_.sZ]|0;if(I==null)return B9(e,c,B),E;var Y=I===Ih?7:I[_.sZ]|0,v=Y,y=lh(Y),Z=y||Object.isFrozen(I);y||(Y=0);Z||(I=R$(I),v=0,Y=T2(Y,c),Z=!1);Y|=5;var P;y=(P=gi4(Y))!=null?P:0;for(P=0;P<I.length;P++){var z=I[P],m=T(z,y);Object.is(z,m)||(Z&&(I=R$(I),v=0,Y=T2(Y,c),Z=!1),I[P]=m)}Y!==v&&(Z&&(I=R$(I),Y=T2(Y,c)),xl(I,Y));B9(e,c,B,I);return E};
_.Yy=function(E,B,I,T,e){EX(E);var c=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;B9(c,c[_.sZ]|0,B,(T==="0"?Number(I)===0:I===T)?void 0:I,e);return E};
_.v9=function(E,B,I){if(B&2)throw Error();var T=rr(B),e=DtB(E,I,T),c=e===Ih?7:e[_.sZ]|0,Y=KRB(c,B);if(2&Y||lh(Y)||16&Y)e=R$(e),c=0,Y=T2(Y,B),B9(E,B,I,e,T);Y&=-13;Y!==c&&xl(e,Y);return e};
$It=function(E){if(dr){var B;return(B=E[y$])!=null?B:E[y$]=new Map}if(y$ in E)return E[y$];B=new Map;Object.defineProperty(E,y$,{value:B});return B};
Ts4=function(E,B,I,T,e){var c=$It(E),Y=I1D(c,E,B,I,e);Y!==T&&(Y&&(B=B9(E,B,Y,void 0,e)),c.set(I,T));return B};
I1D=function(E,B,I,T,e){var c=E.get(T);if(c!=null)return c;for(var Y=c=0;Y<T.length;Y++){var v=T[Y];c9(B,v,e)!=null&&(c!==0&&(I=B9(B,I,c,void 0,e)),c=v)}E.set(T,c);return c};
wF=function(E,B,I,T,e){E=c9(E,T,e,function(c){return PDG(c,I,!1,B)});
if(E!=null)return E};
eOJ=function(E,B,I,T,e,c,Y,v){var y=H6(E,I);c=y?1:c;Y=!!Y||c===3;y=v&&!y;(c===2||y)&&Rg(E)&&(B=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=B[_.sZ]|0);E=DtB(B,e);var Z=E===Ih?7:E[_.sZ]|0,P=KRB(Z,I);if(v=!(4&P)){var z=E,m=I,u=!!(2&P);u&&(m|=2);for(var x=!u,M=!0,N=0,W=0;N<z.length;N++){var U=PDG(z[N],T,!1,m);if(U instanceof T){if(!u){var q=H6(U);x&&(x=!q);M&&(M=q)}z[W++]=U}}W<N&&(z.length=W);P|=4;P=M?P&-4097:P|4096;P=x?P|8:P&-9}P!==Z&&(xl(E,P),2&P&&Object.freeze(E));if(y&&!(8&P||!E.length&&
(c===1||(c!==4?0:2&P||!(16&P)&&32&I)))){lh(P)&&(E=R$(E),P=T2(P,I),I=B9(B,I,e,E));T=E;y=P;for(Z=0;Z<T.length;Z++)z=T[Z],P=dti(z),z!==P&&(T[Z]=P);y|=8;P=y=T.length?y|4096:y&-4097;xl(E,P)}return E=RZF(E,P,B,I,e,c,v,Y)};
l1i=function(E){E==null&&(E=void 0);return E};
T2=function(E,B){return E=(2&B?E|2:E&-3)&-273};
_.cH6=function(E,B,I,T,e){EX(E);B=_.ea(E,B,e,2,!0);var c;e=(c=gi4(B===Ih?7:B[_.sZ]|0))!=null?c:0;B.push(I(T,e));return E};
iTc=function(E,B,I,T,e,c,Y){EX(E);var v=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;E=eOJ(E,v,v[_.sZ]|0,I,B,2,!0);if(c&&Y)e!=null||(e=E.length-1),W6(E,e),E.splice(e,c),E.length||(E[_.sZ]&=-4097);else{if(c){if(typeof e!=="number"||e<0||e>E.length)throw Error();}else T=T!=null?T:new I;e!=void 0?E.splice(e,c,T):E.push(T);e=I=E===Ih?7:E[_.sZ]|0;H6(T)?(I&=-9,E.length===1&&(I&=-4097)):I|=4096;I!==e&&xl(E,I)}};
pmF=function(E,B){if(typeof E==="string")return new P9(O4B(E),B);if(Array.isArray(E))return new P9(new Uint8Array(E),B);if(E.constructor===Uint8Array)return new P9(E,!1);if(E.constructor===ArrayBuffer)return E=new Uint8Array(E),new P9(E,!1);if(E.constructor===Nt)return B=Q$(E)||new Uint8Array(0),new P9(B,!0,E);if(E instanceof Uint8Array)return E=E.constructor===Uint8Array?E:new Uint8Array(E.buffer,E.byteOffset,E.byteLength),new P9(E,!1);throw Error();};
_.dF=function(){var E=function(){throw Error();};
Object.setPrototypeOf(E,E.prototype);return E};
a1d=function(E,B){var I=I===void 0?Y9Q:I;return new h5(E,B,I)};
wmJ=function(E,B,I,T,e){B=vIf(B,T);B!=null&&(I=_.yHJ(E,I),e(B,E),_.CLG(E,I))};
uh=function(E,B,I,T){var e=T[E];if(e)return e;e={};e.binaryFields=T;e.messageMetadata=kUD(T[0]);var c=T[1],Y=1;c&&c.constructor===Object&&(e.extensions=c,c=T[++Y],typeof c==="function"&&(e.isMessageSet=!0,ZTd!=null||(ZTd=c),PLJ!=null||(PLJ=T[Y+1]),c=T[Y+=2]));for(var v={};c&&Array.isArray(c)&&c.length&&typeof c[0]==="number"&&c[0]>0;){for(var y=0;y<c.length;y++)v[c[y]]=c;c=T[++Y]}for(y=1;c!==void 0;){typeof c==="number"&&(y+=c,c=T[++Y]);var Z=void 0;if(c instanceof h5)var P=c;else P=zOc,Y--;c=void 0;
if((c=P)==null?0:c.$$isMsg){c=T[++Y];Z=T;var z=Y;typeof c==="function"&&(c=c(),Z[z]=c);Z=c}c=T[++Y];z=y+1;typeof c==="number"&&c<0&&(z-=c,c=T[++Y]);for(;y<z;y++){var m=v[y];Z?I(e,y,P,Z,m):B(e,y,P,m)}}return T[E]=e};
QgG=function(E){return Array.isArray(E)?E[0]instanceof h5?E:[mIf,E]:[E,void 0]};
vIf=function(E,B){if(E instanceof _.LX)return E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(E))return F8(E,B,!1)};
dIc=function(E,B,I,T){var e=I.$$binaryReaderFn;E[B]=T?function(c,Y,v){return e(c,Y,v,T)}:e};
hO4=function(E,B,I,T,e){var c=I.$$binaryReaderFn,Y,v;E[B]=function(y,Z,P){return c(y,Z,P,v||(v=uh(xy,dIc,hO4,T).messageMetadata),Y||(Y=sgc(T)),e)}};
sgc=function(E){var B=E[u8f];if(B!=null)return B;var I=uh(xy,dIc,hO4,E);B=I.isMessageSet?function(T,e){return ZTd(T,e,I)}:function(T,e){for(;L2t(e)&&e.nextWireType_!=4;){var c=e.nextField_,Y=I[c];
if(Y==null){var v=I.extensions;v&&(v=v[c])&&(v=xIG(v),v!=null&&(Y=I[c]=v))}if(Y==null||!Y(e,T,c)){v=e;Y=v.fieldCursor_;OX(v);if(v.discardUnknownFields)var y=void 0;else{var Z=v.decoder_.cursor_-Y;v.decoder_.cursor_=Y;y=G7d(v.decoder_,Z)}Z=v=Y=void 0;var P=T;y&&((Y=(v=(Z=P[AH])!=null?Z:P[AH]=new SZc)[c])!=null?Y:v[c]=[]).push(y)}}if(T=jt(T))T.reviveUnknownFields=I.binaryFields[OTf];return!0};
E[u8f]=B;E[OTf]=nId.bind(E);return B};
nId=function(E,B,I,T){var e=this[xy],c=this[u8f],Y=F8(void 0,e.messageMetadata,!1),v=jt(E);if(v){var y=!1,Z=e.extensions;if(Z){e=function(x,M,N){if(N.length!==0)if(Z[M])for(x=_.p(N),M=x.next();!M.done;M=x.next()){M=Mti(M.value);try{y=!0,c(Y,M)}finally{M.free()}}else T==null||T(E,M,N)};
if(B==null)U9(v,e);else if(v!=null){var P=v[B];P&&e(v,B,P)}if(y){var z=E[_.sZ]|0;if(z&2&&z&2048&&(I==null||!I.reviveIntoImmutable))throw Error();var m=rr(z),u=function(x,M){if(c9(E,x,m)!=null)switch(I==null?void 0:I.resolutionBehavior){case 1:return;default:throw Error();}M!=null&&(z=B9(E,z,x,M,m));delete v[x]};
B==null?WQi(Y,Y[_.sZ]|0,function(x,M){u(x,M)}):u(B,c9(Y,B,m))}}}};
xIG=function(E){E=QgG(E);var B=E[0].$$binaryReaderFn;if(E=E[1]){var I=sgc(E),T=uh(xy,dIc,hO4,E).messageMetadata;return function(e,c,Y){return B(e,c,Y,T,I)}}return B};
MV=function(E,B,I){E[B]=I.$$binaryWriterFn};
gF=function(E,B,I,T){var e,c,Y=I.$$binaryWriterFn;E[B]=function(v,y,Z){return Y(v,y,Z,c||(c=uh(H9,MV,gF,T).messageMetadata),e||(e=HTG(T)))}};
HTG=function(E){var B=E[Nsf];if(!B){var I=uh(H9,MV,gF,E);B=function(T,e){return gIi(T,e,I)};
E[Nsf]=B}return B};
gIi=function(E,B,I){WQi(E,E[_.sZ]|0,function(e,c){if(c!=null){var Y=S9f(I,e);if(Y)Y(B,c,e);else{c=og(AH);var v;dr&&c&&((v=E[c])==null?void 0:v[e])!=null&&v6(JHJ,3)}}});
var T=jt(E);T&&U9(T,function(e,c,Y){Sa(B,B.encoder_.end());for(e=0;e<Y.length;e++)Sa(B,Q$(Y[e])||new Uint8Array(0))})};
S9f=function(E,B){var I=E[B];if(I)return I;if(I=E.extensions)if(I=I[B]){I=QgG(I);var T=I[0].$$binaryWriterFn;if(I=I[1]){var e=HTG(I),c=uh(H9,MV,gF,I).messageMetadata;I=E.isMessageSet?PLJ(c,e):function(Y,v,y){return T(Y,v,y,c,e)}}else I=T;
return E[B]=I}};
_.W2c=function(E,B,I){if(Array.isArray(B)){var T=B[_.sZ]|0;if(T&4)return B;for(var e=0,c=0;e<B.length;e++){var Y=E(B[e]);Y!=null&&(B[c++]=Y)}c<e&&(B.length=c);I&&(xl(B,(T|5)&-1537),T&2&&Object.freeze(B));return B}};
_.J5=function(E,B,I){return new h5(E,B,I)};
_.Xm4=function(E,B,I){return new h5(E,B,I)};
_.W9=function(E,B,I){B9(E,E[_.sZ]|0,B,I,rr(E[_.sZ]|0))};
bTc=function(E,B,I){B=_.lL(B);B!=null&&(_.X5(E,I,1),E=E.encoder_,I=rF||(rF=new DataView(new ArrayBuffer(8))),I.setFloat64(0,+B,!0),UZ=I.getUint32(0,!0),fV=I.getUint32(4,!0),_.bh(E,UZ),_.bh(E,fV))};
_.oh=function(E,B,I){B=w64(B);if(B!=null){switch(typeof B){case "string":oIc(B)}if(B!=null)switch(_.X5(E,I,0),typeof B){case "number":E=E.encoder_;Vh(B);AHQ(E,UZ,fV);break;case "bigint":I=BigInt.asUintN(64,B);I=new jgF(Number(I&BigInt(4294967295)),Number(I>>BigInt(32)));AHQ(E.encoder_,I.JSC$6756_lo,I.JSC$6756_hi);break;default:I=oIc(B),AHQ(E.encoder_,I.JSC$6756_lo,I.JSC$6756_hi)}}};
k7J=function(E,B,I){B=_.m2(B);B!=null&&B!=null&&(_.X5(E,I,0),_.UIG(E.encoder_,B))};
_.f1Q=function(E,B,I){ttc(E,I,ZVD(B))};
_.VtG=function(E,B,I){B=_.qcd(B);B!=null&&(_.X5(E,I,0),E.encoder_.JSC$6758_buffer_.push(B?1:0))};
_.F2G=function(E,B,I){B=_.St(B);B!=null&&q9i(E,I,TJf(B))};
DIi=function(E,B,I,T,e){B=vIf(B,T);B!=null&&(I=_.yHJ(E,I),e(B,E),_.CLG(E,I))};
_.K2d=function(E,B,I){B=B==null||typeof B=="string"||B instanceof Nt?B:void 0;B!=null&&q9i(E,I,pmF(B,!0).buffer)};
_.ROi=function(E,B,I){B=_.m2(B);B!=null&&(B=parseInt(B,10),_.X5(E,I,0),_.UIG(E.encoder_,B))};
_.A5=function(E,B){return function(I,T){var e={treatNewDataAsImmutable:!0};T&&Object.assign(e,T);I=Mti(I,void 0,void 0,e);try{var c=new E,Y=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;sgc(B)(Y,I);var v=c}finally{I.free()}return v}};
_.ja=function(E){return function(B){return Eyi(B,E)}};
BF4=function(E){return function(){return Eyi(this,E)}};
_.$Vt=function(E){return bD(function(B){return B instanceof E&&!H6(B)})};
_.ky=function(E){return function(B){return IKi(E,B)}};
c5G=function(E,B){return TFJ({child:E,origin:B||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:eGc,getPayloadCase:function(I){return I.getPayloadCase()},
createInitMessage:function(I){var T=new t5,e=new lKJ;I=_.fX(e,1,I);return _.V$(T,5,qV,I)}})};
F5=function(E){return{valueOf:E}.valueOf()};
p9c=function(){var E=null;if(!iXQ)return E;try{var B=function(I){return I};
E=iXQ.createPolicy("goog#html",{createHTML:B,createScript:B,createScriptURL:B})}catch(I){}return E};
aKd=function(){YXt===void 0&&(YXt=p9c());return YXt};
_.KX=function(E){var B=aKd();E=B?B.createScriptURL(E):E;return new DK(E)};
_.Ef=function(E){if(E instanceof DK)return E.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
B1=function(E){return E.toString().indexOf("`")===-1};
IG=function(E){return new _.$M(vyt,E)};
T1=function(E){return E instanceof _.$M};
_.e6=function(E){if(T1(E))return E.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
lv=function(E){return new y54(function(B){return B.substr(0,E.length+1).toLowerCase()===E+":"})};
c1=function(E,B){B=B===void 0?Chi:B;if(T1(E))return E;for(var I=0;I<B.length;++I){var T=B[I];if(T instanceof y54&&T.isValid(E))return IG(E)}};
_.pr=function(E,B){B=B===void 0?Chi:B;return c1(E,B)||iv};
_.YM=function(E){var B=window;if(typeof MediaSource!=="undefined"&&E instanceof MediaSource||typeof B.ManagedMediaSource!=="undefined"&&E instanceof B.ManagedMediaSource)return IG(URL.createObjectURL(E));B=E.type;B.toLowerCase()==="application/octet-stream"?B=!0:(B=B.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),B=(B==null?void 0:B.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(B[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(B[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(B[1])||/^font\/[\w-]+$/i.test(B[1])));if(!B)throw Error("da");return IG(URL.createObjectURL(E))};
_.v1=function(E){for(var B=_.aG.apply(1,arguments),I=[E[0]],T=0;T<B.length;T++)I.push(String(B[T])),I.push(E[T+1]);return IG(I.join(""))};
_.ZXF=function(E){if(!w96){a:{var B=document.createElement("a");try{B.href=E}catch(I){E=void 0;break a}E=B.protocol;E=E===":"||E===""?"https:":E}return E}try{B=new URL(E)}catch(I){return"https:"}return B.protocol};
_.yC=function(E){E instanceof _.$M?E=_.e6(E):E=Ph6.test(E)?E:void 0;return E};
Cr=function(E,B){B=_.yC(B);B!==void 0&&(E.href=B)};
z1=function(E){var B=aKd();E=B?B.createHTML(E):E;return new P1(E)};
mm=function(E){if(E instanceof P1)return E.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.QC=function(E,B){E.src=_.Ef(B).toString()};
zGG=function(E,B){E.setAttribute("sandbox","");for(var I=0;I<B.length;I++)E.sandbox.supports&&!E.sandbox.supports(B[I])||E.sandbox.add(B[I])};
_.mVQ=function(E,B,I){E.removeAttribute("srcdoc");switch(B){case 0:if(I instanceof DK)throw new df("TrustedResourceUrl",0);zGG(E,[]);B=_.yC(I);B!==void 0&&(E.src=B);break;case 1:if(!(I instanceof DK))throw new df(typeof I,1);zGG(E,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.QC(E,I);break;case 2:if(I instanceof DK)throw new df("TrustedResourceUrl",2);zGG(E,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
B=_.yC(I);B!==void 0&&(E.src=B);break;default:_.E9(B)}};
_.sf=function(E,B,I,T){B=_.yC(B);return B!==void 0?E.open(B,I,T):null};
_.uv=function(E){E=E===void 0?document:E;var B,I;E=(I=(B=E).querySelector)==null?void 0:I.call(B,"script[nonce]");return E==null?"":E.nonce||E.getAttribute("nonce")||""};
_.xM=function(E){var B=aKd();E=B?B.createScript(E):E;return new _.Lr(E)};
G1=function(E){if(E instanceof _.Lr)return E.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
Qhc=function(E){var B=_.uv(E.ownerDocument);B&&E.setAttribute("nonce",B)};
_.Of=function(E,B){E.textContent=G1(B);Qhc(E)};
_.nr=function(E,B){E.src=_.Ef(B);Qhc(E)};
_.M7=function(E,B){if(E.nodeType===1&&/^(script|style)$/i.test(E.tagName))throw Error("da");E.innerHTML=mm(B)};
_.H1=function(E,B,I,T){if(E.length===0)throw Error("da");E=E.map(function(c){if(c instanceof dVQ)c=c.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return c});
var e=I.toLowerCase();if(E.every(function(c){return e.indexOf(c)!==0}))throw Error("ea`"+I);
B.setAttribute(I,T)};
_.N7=function(E,B,I){if(B instanceof DK)E.href=_.Ef(B).toString(),E.rel=I;else{if(hGc.indexOf(I)===-1)throw Error("fa`"+I);B=_.yC(B);B!==void 0&&(E.href=B,E.rel=I)}};
shG=function(E){return"function"==typeof _.gf&&E instanceof _.gf};
_.u54=function(E){if(shG(E))return E.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.S6=function(E,B){B=_.yC(B);B!==void 0&&(E.href=B)};
J1=function(E,B){E&&(B=E.indexOf(B),0<=B&&E.splice(B,1))};
W1=function(E){return typeof E==="function"};
LqB=function(E){return E instanceof XL||E&&"closed"in E&&W1(E.remove)&&W1(E.add)&&W1(E.unsubscribe)};
bv=function(){};
oG=function(E){xVD(function(){throw E;})};
A1=function(E){return E};
j6=function(){return G2i(_.aG.apply(0,arguments))};
G2i=function(E){return E.length===0?A1:E.length===1?E[0]:function(B){return E.reduce(function(I,T){return T(I)},B)}};
OXi=function(E){var B;return(B=E!=null?E:void 0)!=null?B:Promise};
nyc=function(E,B){return new Uf(function(I){var T=0;return B.schedule(function(){T===E.length?I.complete():(I.next(E[T++]),I.closed||this.schedule())})})};
Mac=function(E,B){if(!E)throw Error("ga");return new Uf(function(I){var T=new XL;T.add(B.schedule(function(){var e=E[Symbol.asyncIterator]();T.add(B.schedule(function(){var c=this;e.next().then(function(Y){Y.done?I.complete():(I.next(Y.value),c.schedule())})}))}));
return T})};
HXi=function(E,B,I){B=B.schedule(function(){try{I.call(this)}catch(T){E.error(T)}},0);
E.add(B)};
NFd=function(E,B){return new Uf(function(I){var T;I.add(B.schedule(function(){T=E[kM]();HXi(I,B,function(){var e=T.next(),c=e.value;e.done?I.complete():(I.next(c),this.schedule())})}));
return function(){var e;return W1((e=T)==null?void 0:e.return)&&T.return()}})};
gyi=function(E,B){return new Uf(function(I){var T=new XL;T.add(B.schedule(function(){var e=E[t1]();T.add(e.subscribe({next:function(c){T.add(B.schedule(function(){return I.next(c)}))},
error:function(c){T.add(B.schedule(function(){return I.error(c)}))},
complete:function(){T.add(B.schedule(function(){return I.complete()}))}}))}));
return T})};
SXc=function(E,B){return new Uf(function(I){return B.schedule(function(){return E.then(function(T){I.add(B.schedule(function(){I.next(T);I.add(B.schedule(function(){return I.complete()}))}))},function(T){I.add(B.schedule(function(){return I.error(T)}))})})})};
J5f=function(E){return new TypeError("ha`"+(E!==null&&typeof E==="object"?"an invalid object":"'"+E+"'"))};
X9d=function(E,B){if(E!=null){if(W1(E[t1]))return gyi(E,B);if(Wqc(E))return nyc(E,B);if(W1(E==null?void 0:E.then))return SXc(E,B);if(Symbol.asyncIterator&&W1(E==null?void 0:E[Symbol.asyncIterator]))return Mac(E,B);if(W1(E==null?void 0:E[kM]))return NFd(E,B)}throw J5f(E);};
VC=function(E,B){return B?X9d(E,B):fr(E)};
fr=function(E){if(E instanceof Uf)return E;if(E!=null){if(W1(E[t1]))return r5c(E);if(Wqc(E))return bX4(E);if(W1(E==null?void 0:E.then))return oyF(E);if(Symbol.asyncIterator&&W1(E==null?void 0:E[Symbol.asyncIterator]))return A5c(E);if(W1(E==null?void 0:E[kM]))return jht(E)}throw J5f(E);};
r5c=function(E){return new Uf(function(B){var I=E[t1]();if(W1(I.subscribe))return I.subscribe(B);throw new TypeError("ia");})};
bX4=function(E){return new Uf(function(B){for(var I=0;I<E.length&&!B.closed;I++)B.next(E[I]);B.complete()})};
oyF=function(E){return new Uf(function(B){E.then(function(I){B.closed||(B.next(I),B.complete())},function(I){return B.error(I)}).then(null,oG)})};
jht=function(E){return new Uf(function(B){for(var I=E[kM]();!B.closed;){var T=I.next(),e=T.value;T.done?B.complete():B.next(e)}return function(){return W1(I==null?void 0:I.return)&&I.return()}})};
A5c=function(E){return new Uf(function(B){UVB(E,B).catch(function(I){return B.error(I)})})};
UVB=function(E,B){var I,T,e,c,Y,v;return _.a(function(y){switch(y.nextAddress){case 1:_.q7(y,2,3);var Z=E[Symbol.asyncIterator];c=Z!==void 0?Z.call(E):new k2c(_.p(E));case 5:return _.C(y,c.next(),8);case 8:T=y.yieldResult;if(T.done){y.jumpTo(3);break}Y=T.value;B.next(Y);y.jumpTo(5);break;case 3:_.FL(y);_.Dg(y,9);if(!T||T.done||!(e=c.return)){y.jumpTo(9);break}return _.C(y,e.call(c),9);case 9:_.FL(y,0,0,1);if(I)throw I.error;_.Kr(y,10,1);break;case 10:_.Kr(y,4);break;case 2:v=_.RG(y);I={error:v};y.jumpTo(3);
break;case 4:B.complete(),_.ER(y)}})};
$B=function(E,B){return B?nyc(E,B):bX4(E)};
taB=function(E){return W1(E[E.length-1])?E.pop():void 0};
Id=function(E){var B=E[E.length-1];return B&&W1(B.schedule)?E.pop():void 0};
eR=function(){var E=_.aG.apply(0,arguments),B=Id(E);return B?nyc(E,B):$B(E)};
lA=function(E){var B=W1(E)?E:function(){return E};
return new Uf(function(I){return I.error(B())})};
cL=function(E){return function(B){if(W1(B==null?void 0:B.lift))return B.lift(function(I){try{return E(I,this)}catch(T){this.error(T)}});
throw new TypeError("ja");}};
pK=function(){return cL(function(E,B){var I=null;E._refCount++;var T=new iA(B,void 0,void 0,void 0,function(){if(!E||E._refCount<=0||0<--E._refCount)I=null;else{var e=E._connection,c=I;I=null;!e||c&&e!==c||e.unsubscribe();B.unsubscribe()}});
E.subscribe(T);T.closed||(I=E.connect())})};
Vac=function(){var E=fKG;var B=B===void 0?0:B;return cL(function(I,T){T.add(E.schedule(function(){return I.subscribe(T)},B))})};
YB=function(E){return cL(function(B,I){var T=0;B.subscribe(new iA(I,function(e){I.next(E.call(void 0,e,T++))}))})};
Fqt=function(E){return YB(function(B){return qXQ(B)?E.apply(null,_.ad(B)):E(B)})};
Bfi=function(E){if(E.length===1){var B=E[0];if(DVG(B))return{args:B,keys:null};if(B&&typeof B==="object"&&KqJ(B)===RGd)return E=EMt(B),{args:E.map(function(I){return B[I]}),
keys:E}}return{args:E,keys:null}};
vL=function(){var E=_.aG.apply(0,arguments),B=Id(E),I=taB(E);E=Bfi(E);var T=E.args,e=E.keys;if(T.length===0)return VC([],B);B=new Uf($7G(T,B,e?function(c){for(var Y={},v=0;v<c.length;v++)Y[e[v]]=c[v];return Y}:A1));
return I?B.pipe(Fqt(I)):B};
$7G=function(E,B,I){I=I===void 0?A1:I;return function(T){Igi(B,function(){for(var e=E.length,c=Array(e),Y=e,v=E.map(function(){return!1}),y=!0,Z={i$jscomp$260:0};Z.i$jscomp$260<e;Z={i$jscomp$260:Z.i$jscomp$260},Z.i$jscomp$260++)Igi(B,function(P){return function(){VC(E[P.i$jscomp$260],B).subscribe(new yM(T,function(z){c[P.i$jscomp$260]=z;
y&&(v[P.i$jscomp$260]=!0,y=!v.every(A1));y||T.next(I(c.slice()))},function(){return--Y===0}))}}(Z),T)},T)}};
Igi=function(E,B,I){E?I.add(E.schedule(B)):B()};
TfB=function(E,B,I,T){var e=[],c=0,Y=0,v=!1,y=function(Z){c++;fr(I(Z,Y++)).subscribe(new iA(B,function(P){B.next(P)},void 0,function(){c--;
for(var P={};e.length&&c<T;P={bufferedValue:void 0})P.bufferedValue=e.shift(),y(P.bufferedValue);!v||e.length||c||B.complete()}))};
E.subscribe(new iA(B,function(Z){return c<T?y(Z):e.push(Z)},void 0,function(){v=!0;
!v||e.length||c||B.complete()}));
return function(){e=null}};
CK=function(E,B){var I=I===void 0?Infinity:I;if(W1(B))return CK(function(T,e){return YB(function(c,Y){return B(T,c,e,Y)})(fr(E(T,e)))},I);
typeof B==="number"&&(I=B);return cL(function(T,e){return TfB(T,e,E,I)})};
eAG=function(E){E=E===void 0?Infinity:E;return CK(A1,E)};
lgf=function(){var E=_.aG.apply(0,arguments);return eAG(1)($B(E,Id(E)))};
wH=function(E){return new Uf(function(B){fr(E()).subscribe(B)})};
Z7=function(E,B,I){if(W1(I)){var T=I;I=void 0}if(T)return Z7(E,B,I).pipe(Fqt(T));T=_.p(W1(E.addEventListener)&&W1(E.removeEventListener)?c1B.map(function(Y){return function(v){return E[Y](B,v,I)}}):W1(E.addListener)&&W1(E.removeListener)?ird.map(p1G(E,B)):W1(E.on)&&W1(E.off)?YfD.map(p1G(E,B)):[]);
var e=T.next().value,c=T.next().value;return!e&&Wqc(E)?CK(function(Y){return Z7(Y,B,I)})($B(E)):new Uf(function(Y){if(!e)throw new TypeError("ka");
var v=function(){var y=_.aG.apply(0,arguments);return Y.next(1<y.length?y:y[0])};
e(v);return function(){return c(v)}})};
p1G=function(E,B){return function(I){return function(T){return E[I](B,T)}}};
zB=function(){var E=_.aG.apply(0,arguments),B=Id(E);var I=typeof E[E.length-1]==="number"?E.pop():Infinity;return E.length?E.length===1?fr(E[0]):eAG(I)($B(E,B)):PL};
vMQ=function(E){return E.length===1&&agi(E[0])?E[0]:E};
y1F=function(){var E=vMQ(_.aG.apply(0,arguments));return cL(function(B,I){var T=[B].concat(_.ad(E)),e=function(){if(!I.closed)if(T.length>0){try{var c=fr(T.shift())}catch(v){e();return}var Y=new iA(I,void 0,bv,bv);I.add(c.subscribe(Y));Y.add(e)}else I.complete()};
e()})};
mX=function(E){return cL(function(B,I){var T=0;B.subscribe(new iA(I,function(e){return E.call(void 0,e,T++)&&I.next(e)}))})};
w1Q=function(){var E=_.aG.apply(0,arguments);E=vMQ(E);return E.length===1?fr(E[0]):new Uf(Cvc(E))};
Cvc=function(E){return function(B){for(var I=[],T={i$jscomp$263:0};I&&!B.closed&&T.i$jscomp$263<E.length;T={i$jscomp$263:T.i$jscomp$263},T.i$jscomp$263++)I.push(fr(E[T.i$jscomp$263]).subscribe(new iA(B,function(e){return function(c){if(I){for(var Y=0;Y<I.length;Y++)Y!==e.i$jscomp$263&&I[Y].unsubscribe();I=null}B.next(c)}}(T))))}};
ZrQ=function(){var E=_.aG.apply(0,arguments),B=taB(E),I=vMQ(E);return I.length?new Uf(function(T){var e=I.map(function(){return[]}),c=I.map(function(){return!1});
T.add(function(){e=c=null});
for(var Y={sourceIndex$jscomp$1:0};!T.closed&&Y.sourceIndex$jscomp$1<I.length;Y={sourceIndex$jscomp$1:Y.sourceIndex$jscomp$1},Y.sourceIndex$jscomp$1++)fr(I[Y.sourceIndex$jscomp$1]).subscribe(new iA(T,function(v){return function(y){e[v.sourceIndex$jscomp$1].push(y);e.every(function(Z){return Z.length})&&(y=e.map(function(Z){return Z.shift()}),T.next(B?B.apply(null,_.ad(y)):y),e.some(function(Z,P){return!Z.length&&c[P]})&&T.complete())}}(Y),void 0,function(v){return function(){c[v.sourceIndex$jscomp$1]=
!0;
!e[v.sourceIndex$jscomp$1].length&&T.complete()}}(Y)));
return function(){e=c=null}}):PL};
Pvt=function(E){var B,I,T;return!!E&&typeof E.active==="boolean"&&typeof((B=E.clock)==null?void 0:B.now)==="function"&&((I=E.clock)==null?void 0:I.timeline)!==void 0&&!((T=E.lastMeasurement)==null||!T.timestamp)&&typeof E.equivalentTo==="function"&&typeof E.extrapolateToNow==="function"&&typeof E.extrapolateToTime==="function"&&typeof E.map==="function"&&typeof E.joinWith==="function"};
zAi=function(E){function B(I){return typeof I==="boolean"||typeof I==="string"||typeof I==="number"||I===void 0||I===null}
return B(E)?!0:Array.isArray(E)?E.every(B):typeof E==="object"?Object.keys(E).every(function(I){return typeof I==="string"})&&Object.values(E).every(function(I){return Array.isArray(I)?I.every(B):B(I)}):!1};
m7B=function(E){if(zAi(E))return E;if(Pvt(E))return{lastMeasurement:{value:m7B(E.lastMeasurement.value),timestamp:QM(E.lastMeasurement.timestamp,new dH(0,E.lastMeasurement.timestamp.timeline))},active:E.active};try{return JSON.parse(JSON.stringify(E))}catch(B){}return String(E)};
hv=function(E,B){return function(I){return new Uf(function(T){return I.subscribe(function(e){E.timeExecution(B,function(){T.next(e)})()},function(e){E.timeExecution(B,function(){T.error(e)})()},function(){E.timeExecution(B,function(){T.complete()})()})})}};
QGG=function(E,B){var I=!1;return new Uf(function(T){var e=E.setTimeout(function(){I=!0;T.next(!0);T.complete()},B);
return function(){I||E.clearTimeout(e)}})};
d7c=function(E){E=E.global;if(E.fetchLater)return E.fetchLater.bind(E)};
sR=function(E){return cL(function(B,I){var T=null,e=!1,c;T=B.subscribe(new iA(I,void 0,function(Y){c=fr(E(Y,sR(E)(B)));T?(T.unsubscribe(),T=null,c.subscribe(I)):e=!0}));
e&&(T.unsubscribe(),T=null,c.subscribe(I))})};
hAG=function(E,B,I){return function(T,e){var c=I,Y=B,v=0;T.subscribe(new iA(e,function(y){var Z=v++;Y=c?E(Y,y,Z):(c=!0,y);e.next(Y)},void 0,void 0))}};
sGD=function(E){E=E===void 0?null:E;return cL(function(B,I){var T=!1;B.subscribe(new iA(I,function(e){T=!0;I.next(e)},void 0,function(){T||I.next(E);
I.complete()}))})};
uA=function(){return cL(function(E,B){E.subscribe(new iA(B,bv))})};
LK=function(E){return cL(function(B,I){B.subscribe(new iA(I,function(){return I.next(E)}))})};
xB=function(E){return E<=0?function(){return PL}:cL(function(B,I){var T=0;
B.subscribe(new iA(I,function(e){++T<=E&&(I.next(e),E<=T&&I.complete())}))})};
GB=function(E){var B=B===void 0?A1:B;var I;E=(I=E)!=null?I:uLi;return cL(function(T,e){var c,Y=!0;T.subscribe(new iA(e,function(v){var y=B(v);if(Y||!E(c,y))Y=!1,c=y,e.next(v)}))})};
uLi=function(E,B){return E===B};
x74=function(E){E=E===void 0?Lmt:E;return cL(function(B,I){var T=!1;B.subscribe(new iA(I,function(e){T=!0;I.next(e)},void 0,function(){return T?I.complete():I.error(E())}))})};
Lmt=function(){return new G1Q};
OR=function(){var E=_.aG.apply(0,arguments);return function(B){return lgf(B,eR.apply(null,_.ad(E)))}};
Orc=function(E){return cL(function(B,I){var T=0;B.subscribe(new iA(I,function(e){E.call(void 0,e,T++,B)||(I.next(!1),I.complete())},void 0,function(){I.next(!0);
I.complete()}))})};
nMc=function(){return cL(function(E,B){var I=[];E.subscribe(new iA(B,function(T){I.push(T);1<I.length&&I.shift()},void 0,function(){for(var T=_.p(I),e=T.next();!e.done;e=T.next())B.next(e.value);
B.complete()},function(){I=null}))})};
M6d=function(E,B){var I=arguments.length>=2;return function(T){return T.pipe(E?mX(function(e,c){return E(e,c,T)}):A1,nMc(),I?sGD(B):x74(function(){return new G1Q}))}};
HL=function(E){var B=W1(E)?E:function(){return E};
return W1()?cL(function(I,T){var e=B();(void 0)(e).subscribe(T).add(I.subscribe(e))}):function(I){var T=new Mh(I,B);
W1(I==null?void 0:I.lift)&&(T.lift=I.lift);T.source=I;T.subjectFactory=B;return T}};
gH=function(E){var B=new Nh(E,void 0,void 0);return function(I){return HL(function(){return B})(I)}};
SR=function(E,B){return cL(hAG(E,B,arguments.length>=2))};
Jv=function(){var E=_.aG.apply(0,arguments),B=Id(E);return cL(function(I,T){(B?lgf(E,I,B):lgf(E,I)).subscribe(T)})};
XW=function(E){return cL(function(B,I){var T=null,e=0,c=!1;B.subscribe(new iA(I,function(Y){var v;(v=T)==null||v.unsubscribe();v=e++;fr(E(Y,v)).subscribe(T=new iA(I,function(y){return I.next(y)},void 0,function(){T=null;
c&&!T&&I.complete()}))},void 0,function(){(c=!0,!T)&&I.complete()}))})};
rH=function(E,B){B=B===void 0?!1:B;return cL(function(I,T){var e=0;I.subscribe(new iA(T,function(c){var Y=E(c,e++);(Y||B)&&T.next(c);!Y&&T.complete()}))})};
bA=function(E,B,I){var T=W1(E)||B||I?{next:E,error:B,complete:I}:E;return T?cL(function(e,c){e.subscribe(new iA(c,function(Y){var v;(v=T.next)==null||v.call(T,Y);c.next(Y)},function(Y){var v;
(v=T.error)==null||v.call(T,Y);c.error(Y)},function(){var Y;
(Y=T.complete)==null||Y.call(T);c.complete()}))}):A1};
Hr6=function(){var E=_.aG.apply(0,arguments),B=taB(E);return cL(function(I,T){for(var e=E.length,c=Array(e),Y=E.map(function(){return!1}),v=!1,y={i$jscomp$273:0};y.i$jscomp$273<e;y={i$jscomp$273:y.i$jscomp$273},y.i$jscomp$273++)fr(E[y.i$jscomp$273]).subscribe(new iA(T,function(Z){return function(P){c[Z.i$jscomp$273]=P;
v||Y[Z.i$jscomp$273]||(Y[Z.i$jscomp$273]=!0,(v=Y.every(A1))&&(Y=null))}}(y),void 0,bv));
I.subscribe(new iA(T,function(Z){v&&(Z=[Z].concat(_.ad(c)),T.next(B?B.apply(null,_.ad(Z)):Z))}))})};
NfD=function(E){var B=[],I=0,T;for(T in E)B[I++]=T;return B};
gMc=function(E,B){for(var I in E)if(E[I]==B)return!0;return!1};
Sf6=function(E,B,I){for(var T in E)if(B.call(I,E[T],T,E))return T};
J1G=function(E){if(!E||typeof E!=="object")return E;if(typeof E.clone==="function")return E.clone();if(typeof Map!=="undefined"&&E instanceof Map)return new Map(E);if(typeof Set!=="undefined"&&E instanceof Set)return new Set(E);if(E instanceof Date)return new Date(E.getTime());var B=Array.isArray(E)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(E)||E instanceof DataView?{}:new E.constructor(E.length),I;for(I in E)B[I]=J1G(E[I]);return B};
WmQ=function(E){var B=arguments.length;if(B==1&&Array.isArray(arguments[0]))return WmQ.apply(null,arguments[0]);if(B%2)throw Error("oa");for(var I={},T=0;T<B;T+=2)I[arguments[T]]=arguments[T+1];return I};
X1G=function(E){var B=arguments.length;if(B==1&&Array.isArray(arguments[0]))return X1G.apply(null,arguments[0]);for(var I={},T=0;T<B;T++)I[arguments[T]]=!0;return I};
_.od=function(E){return new dVQ(E[0].toLowerCase())};
r1J=function(E){try{return new URL(E,window.document.baseURI)}catch(B){return new URL("about:invalid")}};
brt=function(E,B){var I=B.createRange();I.selectNode(B.body);E=z1(E);return I.createContextualFragment(mm(E))};
oMF=function(E){E=E.nodeName;return typeof E==="string"?E:"FORM"};
A1i=function(E){E=E.nodeType;return E===1||typeof E!=="number"};
Av=function(E,B,I){E.setAttribute(B,I)};
jGG=function(E){return E.parts.map(function(B){var I=B.descriptor;return""+B.url+(I?" "+I:"")}).join(" , ")};
_.jR=function(E){var B=_.aG.apply(1,arguments);if(B.length===0)return _.KX(E[0]);for(var I=E[0],T=0;T<B.length;T++)I+=encodeURIComponent(B[T])+E[T+1];return _.KX(I)};
_.UR=function(E,B){E=_.Ef(E).toString();var I=E.split(/[?#]/),T=/[?]/.test(E)?"?"+I[1]:"";return U7Q(I[0],T,/[#]/.test(E)?"#"+(T?I[2]:I[1]):"",B)};
U7Q=function(E,B,I,T){function e(Y,v){Y!=null&&(Array.isArray(Y)?Y.forEach(function(y){return e(y,v)}):(B+=c+encodeURIComponent(v)+"="+encodeURIComponent(Y),c="&"))}
var c=B.length?"&":"?";T.constructor===Object&&(T=Object.entries(T));Array.isArray(T)?T.forEach(function(Y){return e(Y[1],Y[0])}):T.forEach(e);
return _.KX(E+B+I)};
kB=function(E,B,I,T){this.top=E;this.right=B;this.bottom=I;this.left=T};
k1D=function(E){E=E.global;if(E.PendingGetBeacon)return E.PendingGetBeacon};
fK=function(E){return function(B){return B.pipe(t6B(E,HL(new tv)))}};
VM=function(E){return function(B){return B.pipe(t6B(E,gH(1)))}};
t6B=function(E,B){function I(T){return new Uf(function(e){return T.subscribe(function(c){qh(E,function(){return void e.next(c)},3)},function(c){qh(E,function(){return void e.error(c)},3)},function(){qh(E,function(){return void e.complete()},3)})})}
return j6(I,Vac(),B,pK(),I)};
qfQ=function(E){var B=fgG(E);return B===null?new FW(null):B.pipe(YB(function(I){I=I.serialize();if(V6J)I=_.$i.btoa(I);else{for(var T=[],e=0,c=0;c<I.length;c++){var Y=I.charCodeAt(c);Y>255&&(T[e++]=Y&255,Y>>=8);T[e++]=Y}I=_.tH(T)}return I}),xB(1),VM(E.queue))};
FmQ=function(E){var B=B===void 0?{}:B;if(typeof Event==="function")return new Event(E,B);if(typeof document!=="undefined"){var I=document.createEvent("CustomEvent");I.initCustomEvent(E,B.bubbles||!1,B.cancelable||!1,B.detail);return I}throw Error();};
D7G=function(E){return typeof E==="string"?document.getElementById(E):E};
RAQ=function(E){var B=!1;B=B===void 0?!1:B;if(E.tagName==="IMG"){if(E.complete&&(!E.naturalWidth||!E.naturalHeight))return!0;var I;if(B&&((I=E.style)==null?void 0:I.display)==="none")return!0}var T,e;return Kmi.test((T=E.getAttribute("width"))!=null?T:"")&&Kmi.test((e=E.getAttribute("height"))!=null?e:"")};
EBB=function(E,B){if(E.tagName==="IMG")return E.naturalWidth&&E.naturalHeight?!0:!1;try{if(E.readyState)var I=E.readyState;else{var T,e;I=(T=E.contentWindow)==null?void 0:(e=T.document)==null?void 0:e.readyState}return I==="complete"}catch(c){return B===void 0?!1:B}};
BHF=function(E){E||(E=function(B,I,T){B.addEventListener(I,T)});
return E};
e94=function(E,B){var I=$hF();I=I===void 0?new I7i:I;if(E=D7G(E)){var T=BHF(T);for(var e=!1,c=function(N){e||(e=!0,B(N))},Y,v=2,y=0;y<THi.length;++y)if(THi[y]===E.tagName){v=3;
Y=[E];break}Y||(Y=E.querySelectorAll(THi.join(",")));var Z=0,P=0,z=!0,m=E=!1;y={};for(var u=0;u<Y.length;y={isImg:void 0},u++){var x=Y[u];if(!RAQ(x))if(y.isImg=x.tagName==="IMG",EBB(x,I.crossDomainLoadedDefault))E=!0,y.isImg&&(z=!0);else{Z++;var M=function(N){return function(W){Z--;!Z&&z&&c(v);N.isImg&&(W=W&&W.type==="error",P--,W||(z=!0),!P&&m&&z&&c(v))}}(y);
T(x,"load",M);y.isImg&&(P++,T(x,"error",M))}}P===0&&(z=!0);Y=null;Y=_.$i.document.readyState==="complete";if(Z===0&&!E&&Y)v=5;else if(Z||!E){T(_.$i,"load",function(){!I.pendingImagesBlockLoad||!P&&z?c(4):m=!0});
return}c(v)}};
l7J=function(E,B,I){if(E)for(var T=0;E!=null&&T<500&&!I(E);++T)E=B(E)};
cvF=function(E,B){l7J(E,function(I){try{return I===I.parent?null:I.parent}catch(T){}return null},B)};
iKd=function(E,B){if(E.tagName=="IFRAME")B(E);else{E=E.querySelectorAll("IFRAME");for(var I=0;I<E.length&&!B(E[I]);++I);}};
pL6=function(E){return(E=E.ownerDocument)&&(E.parentWindow||E.defaultView)||null};
YRc=function(E,B,I){try{var T=JSON.parse(I.data)}catch(Y){}if(typeof T==="object"&&T&&T.type==="creativeLoad"){var e=pL6(E);if(I.source&&e){var c;cvF(I.source,function(Y){try{if(Y.parent===e)return c=Y,!0}catch(v){}});
c&&iKd(E,function(Y){if(Y.contentWindow===c)return B(T),!0})}}};
a74=function(E){return typeof E==="string"?document.getElementById(E):E};
wLd=function(){var E={};return E[0]=_.jR(vBi,"current"),E[1]=_.jR(yvQ),E[2]=_.jR(CAf),E};
D7=function(E,B){return E.left===B.left&&E.top===B.top&&E.width===B.width&&E.height===B.height};
ZKG=function(E,B){return{left:Math.max(E.left,B.left),top:Math.max(E.top,B.top),width:Math.max(0,Math.min(E.left+E.width,B.left+B.width)-Math.max(E.left,B.left)),height:Math.max(0,Math.min(E.top+E.height,B.top+B.height)-Math.max(E.top,B.top))}};
PAt=function(E,B){return{left:Math.round(E.left+B.x),top:Math.round(E.top+B.y),width:E.width,height:E.height}};
z9F=function(E,B,I){if(E&&B!==null&&B!=B.top){if(!B.top)return new _.KK(-12245933,-12245933);B=B.top}try{return(I===void 0?0:I)?(new _.KK(B.innerWidth,B.innerHeight)).round():_.Rd(B).round()}catch(T){return new _.KK(-12245933,-12245933)}};
mhc=function(E,B,I){try{if(E){if(!B.top)return new kB(-12245933,-12245933,-12245933,-12245933);B=B.top}var T=z9F(E,B,I),e=T.height,c=T.width;if(c===-12245933)return new kB(c,c,c,c);var Y=Ex(BM(B.document)),v=Y.x,y=Y.y;return new kB(y,v+c,y+e,v)}catch(Z){return new kB(-12245933,-12245933,-12245933,-12245933)}};
QdQ=function(E){var B;return(B=E.google_tag_data)!=null?B:E.google_tag_data={}};
dhG=function(E){var B,I;return typeof((B=E.navigator)==null?void 0:(I=B.userAgentData)==null?void 0:I.getHighEntropyValues)==="function"};
sdD=function(E){if(!dhG(E))return null;var B=QdQ(E);if(B.uach_promise)return B.uach_promise;E=E.navigator.userAgentData.getHighEntropyValues(h9i).then(function(I){B.uach!=null||(B.uach=I);return I});
return B.uach_promise=E};
JvG=function(E){var B;return uWJ(LXJ(xhf(GBf(OK4(nBB(MR4(HKD(NHB(new gBJ,E.architecture||""),E.bitness||""),E.mobile||!1),E.model||""),E.platform||""),E.platformVersion||""),E.uaFullVersion||""),((B=E.fullVersionList)==null?void 0:B.map(function(I){var T=new SR4;T=_.$r(T,1,I.brand);return _.$r(T,2,I.version)}))||[]),E.wow64||!1)};
WXF=function(E){var B,I;return(I=(B=sdD(E))==null?void 0:B.then(function(T){return JvG(T)}))!=null?I:null};
XLQ=function(E,B){return new Uf(function(I){var T=!1,e=Array(B.length);e.fill(void 0);var c=new Set,Y=new Set,v=function(z,m){E.running?(e[m]=z,c.add(m),T||(T=!0,qh(E,function(){T=!1;I.next(_.V6(e))},1))):I.error(new I_(m))},y=function(z,m){Y.add(m);
c.add(m);qh(E,function(){I.error(z)},1)},Z=function(z){Y.add(z);
qh(E,function(){Y.size===B.length&&I.complete()},1)},P=B.map(function(z,m){return z.subscribe(function(u){return void v(u,m)},function(u){return void y(u,m)},function(){return void Z(m)})});
return function(){P.forEach(function(z){return void z.unsubscribe()})}})};
bKG=function(E,B,I){function T(){if(B.debugChannel){var N=B.debugChannel,W=N.next;var U={creativeId:B.debugNames.getName(I),requiredSignals:e,signals:Object.assign({},c),hasPrematurelyCompleted:Y,errorMessage:v,erroredSignalKey:y};U={specMajor:2,specMinor:0,specPatch:0,timestamp:QM(B.timeProvider.now(),new dH(0,B.timeProvider.timeline)),instanceId:B.debugNames.getName(B.symbol),creativeState:U};W.call(N,U)}}
for(var e=Object.keys(E),c={},Y=!1,v=null,y=null,Z={},P=new Set,z=[],m=[],u=_.p(e),x=u.next(),M={};!x.done;M={key$jscomp$374:void 0},x=u.next())M.key$jscomp$374=x.value,x=E[M.key$jscomp$374],x instanceof FW?(Z[M.key$jscomp$374]=x.value,P.add(M.key$jscomp$374),B.debugChannel&&(c[String(M.key$jscomp$374)]=m7B(x.value))):(x=x.pipe(GB(function(N,W){return Pvt(N)||Pvt(W)?!1:N===W}),YB(function(N){return function(W){B.debugChannel&&(c[String(N.key$jscomp$374)]=m7B(W),T());
var U={};return U[N.key$jscomp$374]=W,U}}(M)),sR(function(N){return function(W){if(W instanceof I_)throw new rvF(String(N.key$jscomp$374));
throw W;}}(M)),bA(function(N){return function(){P.add(N.key$jscomp$374)}}(M),function(N){return function(W){y=String(N.key$jscomp$374);
v=String(W);T()}}(M),function(N){return function(){P.has(N.key$jscomp$374)||(Y=!0,T())}}(M))),m.push(M.key$jscomp$374),z.push(x));
(E=Object.keys(c).length>0)&&T();u=XLQ(B.queue,z).pipe(sR(function(N){if(N instanceof I_)throw new Ti(String(m[N.inputObservableIndex]));throw N;}),YB(function(N){return Object.freeze(Object.assign.apply(Object,[{},
Z].concat(_.ad(N))))}));
return(z=z.length>0)&&E?zB(eR(Object.freeze(Z)),u):z?u:eR(Object.freeze(Z))};
oBJ=function(E,B,I,T,e){return E.performanceMonitor.timeExecution.bind(E.performanceMonitor)(733,function(){var c={};try{return B.pipe(sR(function(Y){T(Object.assign({},c,{error:Y}));return PL}),CK(function(Y){try{var v=I(E,Y)}catch(Z){return T(Object.assign({},c,{error:Z instanceof Error?Z:String(Z)})),PL}var y={};
return bKG(v,E,Y.symbol).pipe(bA(function(Z){y=Z}),gH(1),pK()).pipe(e,sR(function(Z){T(Object.assign({},y,{error:Z}));
return PL}),OR(void 0),YB(function(){return!0}))})).pipe(SR(function(Y){return Y+1},0),sR(function(Y){T(Object.assign({},c,{error:Y}));
return PL}))}catch(Y){return T(Object.assign({},c,{error:Y})),PL}})()};
eC=function(E){var B=new Map;if(typeof E!=="object"||E===null)return B;Object.values(E).forEach(function(I){I&&typeof I.extrapolateToNow==="function"&&(B.has(I.clock.timeline)||B.set(I.clock.timeline,I.clock.now()))});
return B};
Av6=function(E,B){return typeof E==="string"?encodeURIComponent(E):typeof E==="number"?String(E):Array.isArray(E)?E.map(function(I){return Av6(I,B)}).join(","):E instanceof dH?E.toString():E&&typeof E.extrapolateToNow==="function"?Av6(E.extrapolateUsingTimestampMap(B).value,B):E===!0?"1":E===!1?"0":E===void 0||E===null?null:E instanceof jdc?Uh6(E):[E.top,
E.left,E.top+E.height,E.left+E.width].join()};
ll=function(E,B){E=Object.entries(E).map(function(I){var T=_.p(I);I=T.next().value;T=T.next().value;T=Av6(T,B);return T===null?"":I+"="+T}).filter(function(I){return I!==""});
return E.length?E.join("&"):""};
f7c=function(E,B){var I=kBF,T=tRf;B=B===void 0?.01:B;return function(e){B>0&&Math.random()<=B&&(E.global.HTMLFencedFrameElement&&E.global.fence&&typeof E.global.fence.reportEvent==="function"&&E.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),e=Object.assign({},e,{errorMessage:e.error instanceof Error&&e.error.message?e.error.message:String(e.error),errorStack:e.error instanceof Error&&e.error.stack?String(e.error.stack):null,errorName:e.error instanceof
Error&&e.error.name?String(e.error.name):null,errorContext:String(E.performanceMonitor.timedFunctionContext),errorEscapedQueryId:e.escapedQueryId}),I(Object.assign({},e,{payloadMapper:function(){return function(c){try{return T(Object.assign({},c))}catch(Y){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),eC(e)).forEach(function(c){E.beaconFactory.makeBeacon(c).sendNow()}))}};
VR6=function(){var E=_.aG.apply(0,arguments);return function(B){var I=B.pipe(gH(1),pK());B=E.map(function(T){return I.pipe(T,OR(!0))});
return vL(B).pipe(xB(1),uA())}};
qRJ=function(){var E=_.aG.apply(0,arguments);return function(B){var I=B.pipe(gH(1),pK());B=E.map(function(T){return I.pipe(T,OR(!0))});
return zB.apply(null,_.ad(B)).pipe(xB(1),uA())}};
FXi=function(E,B){return function(I){var T=I.pipe(gH(1),pK());I=T.pipe(E,OR(!0));T=T.pipe(j6(B,gH(),pK()),OR(!0));I=vL([I,T]);return w1Q(I,T).pipe(xB(1),uA())}};
Dhc=function(E,B,I){I(!0)};
KXG=function(E,B){return j6(XW(function(I){var T=E(I),e=B(I),c={};return T&&e&&c?new Uf(function(Y){e(T,c,function(v){Y.next(Object.assign({},I,{canEmit:v}));Y.complete()});
return function(){}}):cM}),mX(function(I){return I.canEmit}))};
R94=function(E){var B={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(I){return I.pipe(XW(function(T){return new Uf(function(e){function c(){v.disconnect();y.unsubscribe()}
var Y=E.MutationObserver;if(Y&&T.ref!==void 0){var v=new Y(function(Z){e.next(Z)});
v.observe(T.ref,B);var y=T.JSC$7248_released.subscribe(c);return c}})}))}};
ErD=function(E){if(E.measurementDeferralState===3)return null;if(E.timeOnScreenReason!==void 0){var B=E.creativeFound===!1?"n":null;if(B!==null)return B}return E.geometricMeasurementErrors instanceof il?"msf":E.contextValidationErrors instanceof pb?"c":E.contextVisibilityKnown===!1?"pv":E.geometricMeasurementErrors||E.contextValidationErrors?"x":null};
vM=function(E,B){return E.replace(BMG,function(I,T){try{var e=_.a_.get(B,T);if(e==null||e.toString()==null)return I;e=e.toString();if(e==""||!_.aB(e==null?"":String(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(c){}return I})};
$8c=function(E,B){var I=Object.assign({},E),T=E.userAgentClientHints;I=(delete I.userAgentClientHints,I);I=E.payloadMapper(I);var e=ll(I,B);return _.yl(E.urlPrefixes,function(c){var Y="";typeof T==="string"&&(Y="&"+ll({uach:T},B));var v={};return vM(c,(v.VIEWABILITY=e,v))+Y})};
kBF=function(E,B){var I=E.payloadMapper(E),T=ll(I,B);return T?_.yl(E.urlPrefixes,function(e){e=e.indexOf("?")>=0?e:e+"?";e="?&".indexOf(e.slice(-1))>=0?e:e+"&";return e+T}):E.urlPrefixes};
IsJ=function(){return j6(mX(function(E){return E!==void 0}),YB(function(E){return E}))};
TMB=function(E){return j6(YB(function(){return!0}),Jv(!1),VM(E))};
efD=function(E){return E.length<=0?PL:vL(E.map(function(B){var I=0;return B.pipe(YB(function(T){return{index:I++,value:T}}))})).pipe(mX(function(B){return B.every(function(I){return I.index===B[0].index})}),YB(function(B){return B.map(function(I){return I.value})}))};
ls4=function(E,B){E.currentState&&(E.previousState=E.currentState);E.currentState=B;E.previousState&&E.previousState.value?(B=Math.max(0,QM(B.timestamp,E.previousState.timestamp)),E.totalTime+=B,E.consecutiveTime+=B):E.consecutiveTime=0;return E};
cid=function(){return j6(SR(ls4,{totalTime:0,consecutiveTime:0}),YB(function(E){return E.totalTime}))};
ibd=function(){return j6(SR(ls4,{totalTime:0,consecutiveTime:0}),YB(function(E){return E.consecutiveTime}))};
pMc=function(E,B){return function(I){return efD(B.map(function(T){return I.pipe(E(T))}))}};
YxJ=function(){var E;return j6(bA(function(B){return void(E=B.timestamp)}),ibd(),YB(function(B){return{timestamp:E,
value:Math.round(B)}}))};
asG=function(E,B){return D7(E.topWindowViewportExternalGeometry,B.topWindowViewportExternalGeometry)&&D7(E.elementGeometry,B.elementGeometry)&&D7(E.exposedViewportLocalGeometry,B.exposedViewportLocalGeometry)&&D7(E.intersectionGeometry,B.intersectionGeometry)&&E.elementGeometrySourceName===B.elementGeometrySourceName&&E.measurementRequests===B.measurementRequests&&E.viewportGeometrySourceName===B.viewportGeometrySourceName&&E.viewportLocalAppOffset.x===B.viewportLocalAppOffset.x&&E.viewportLocalAppOffset.y===
B.viewportLocalAppOffset.y};
Cli=function(E,B){return function(I){return function(T){var e=T.pipe(HL(new tv),pK());T=I.element.pipe(GB());e=e.pipe(YB(function(c){return c.value}));
return vL([T,e,B]).pipe(YB(function(c){var Y=_.p(c);c=Y.next().value;var v=Y.next().value;Y=Y.next().value;if(c.ref===void 0)var y={top:0,left:0,width:0,height:0};else{y=c.ref.getBoundingClientRect();var Z=c.ref,P=E.global,z=new _.Cb(0,0),m=wM(_.Zs(Z));if(PM(m,"parent")){do{if(m==P)var u=_.zi(Z);else u=vrQ(Z),u=new _.Cb(u.left,u.top);z.x+=u.x;z.y+=u.y}while(m&&m!=P&&m!=m.parent&&(Z=m.frameElement)&&(m=m.parent))}y={top:z.y,left:z.x,width:y.width,height:y.height}}y=PAt(y,v.viewportLocalAppOffset);
P=ZKG(y,v.exposedViewportLocalGeometry);z=E.timeProvider.now();m=Object;Z=m.assign;if(Y!==2||E.inCrossDomainIframe||P.width<=0||P.height<=0)var x=!1;else try{var M=E.document.elementFromPoint(P.left+P.width/2,P.top+P.height/2);x=M?!yi4(M,c):!1}catch(N){x=!1}return{timestamp:z,value:Z.call(m,{},v,{elementGeometrySourceName:"geo",intersectionGeometry:x?mK.intersectionGeometry:P,elementGeometry:y})}}),fK(E.queue))}}};
yi4=function(E,B,I){I=I===void 0?0:I;return E.ref===void 0||B.ref===void 0?!1:E.ref===B.ref||_.Ql(B.ref,function(T){return T===E.ref})?!0:B.ref.ownerDocument&&B.ref.ownerDocument.defaultView&&B.ref.ownerDocument.defaultView===B.ref.ownerDocument.defaultView.top?!1:I<10&&B.ref.ownerDocument&&B.ref.ownerDocument.defaultView&&B.ref.ownerDocument.defaultView.frameElement?yi4(E,new dM(B.ref.ownerDocument.defaultView.frameElement),I+1):!0};
Plf=function(E){return function(B){return B.pipe(E.ResizeObserver?wMQ(E):ZbF(E),gH(1),pK())}};
wMQ=function(E){return function(B){return B.pipe(XW(function(I){var T=E.ResizeObserver;if(!T||I.ref===void 0)return eR(mK.elementGeometry);var e=(new Uf(function(c){function Y(){I.ref!==void 0&&v.unobserve(I.ref);v.disconnect();y.unsubscribe()}
if(I.ref===void 0)return c.complete(),function(){};
var v=new T(function(Z){Z.forEach(function(P){c.next(P)})});
v.observe(I.ref);var y=I.JSC$7248_released.subscribe(Y);return Y})).pipe(hv(E.performanceMonitor,736),YB(function(c){return c.contentRect}));
return zB(eR(I.ref.getBoundingClientRect()),e)}),GB(D7))}};
ZbF=function(E){return function(B){var I=B.pipe(R94(E)),T=E.onResize;I=zB(B.pipe(YB(function(){return FmQ("resize")})),I,T);
return vL(B,I).pipe(hv(E.performanceMonitor,737),YB(function(e){e=_.p(e).next().value;return e.ref===void 0?void 0:e.ref.getBoundingClientRect()}),IsJ(),GB(D7))}};
Q_i=function(E,B){var I=zfD(E,B).pipe(gH(1),pK());return function(T){return function(e){e=e.pipe(XW(function(c){return c.element}),GB());
return vL([I,e]).pipe(XW(function(c){var Y=_.p(c);c=Y.next().value;Y=Y.next().value;return m84(E,c.intersectionObserver,Plf(E),c.observations,T,c.flushRecords,Y)}),fK(E.queue))}}};
d8D=function(E){return YB(function(B){return B.value.viewportGeometrySourceName!=="nio"?B:Object.assign({},B,{value:Object.assign({},B.value,{exposedViewportLocalGeometry:hi(E,!0),topWindowViewportExternalGeometry:hi(E,!0)})})})};
hfB=function(E,B){return eR(B).pipe(E,YB(function(){return B}))};
zfD=function(E,B){return E.timeProvider.timeline!==s_i?lA(new il(2)):E.MutationObserver?typeof IntersectionObserver==="undefined"?lA(new il(0)):(new Uf(function(I){var T=new tv,e=new sx(T.next.bind(T),{threshold:[].concat(_.ad(B))});I.next({observations:T.pipe(hv(E.performanceMonitor,735)),intersectionObserver:e,flushRecords:function(c){c=e.takeRecords(c);c.length>0&&T.next(c)}})})).pipe(xB(1),gH(1),pK()):lA(new il(1))};
uRJ=function(E){return X9d(E.sort(function(B,I){return B.time-I.time}),fKG)};
m84=function(E,B,I,T,e,c,Y){return new Uf(function(v){function y(){x||(x=!0,Y.ref!==void 0&&B.unobserve(e,Y.ref),P.unsubscribe(),u.unsubscribe(),m.unsubscribe(),M.unsubscribe())}
if(Y.ref!==void 0){LKd(B,e);B.observe(e,Y.ref);var Z=new ul({timestamp:E.timeProvider.now(),value:Object.assign({},mK,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),P=T.pipe(CK(function(N){return uRJ(N)}),mX(function(N){return N.target===Y.ref}),YB(function(N){return{timestamp:new dH(N.time,s_i),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:N.rootBounds||Lb,topWindowViewportExternalGeometry:N.rootBounds||hi(E,!0),measurementRequests:z,elementGeometrySourceName:"nio",intersectionGeometry:N.intersectionRect,elementGeometry:N.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:N.isIntersecting,isV2Visible:N.isVisible}}}),HL(Z),pK()).subscribe(v),z=new tv,m=z.subscribe(function(){c(e);
v.next({timestamp:E.timeProvider.now(),value:Z.value.value});Y.ref!==void 0&&(B.unobserve(e,Y.ref),B.observe(e,Y.ref))}),u=hfB(I,Y).subscribe(function(){z.next()}),x=!1,M=Y.JSC$7248_released.subscribe(function(){return y()});
return y}})};
x86=function(E,B){var I=E.getOnBackgrounded().pipe(YB(function(){return"b"}));
return w1Q(B,I).pipe(xB(1),VM(E.queue))};
xr=function(E){return function(B){var I;return B.pipe(bA(function(T){return void(I=T.timestamp)}),YB(function(T){return T.value}),E,YB(function(T){return{timestamp:I,
value:T}}))}};
Gi=function(E,B,I){I=I===void 0?function(T,e){return T===e}:I;
return E.timestamp.equals(B.timestamp)&&I(E.value,B.value)};
nb=function(E,B){return B.pipe(YB(function(I){return new Ox(E.timeProvider,{timestamp:E.timeProvider.now(),value:I})}))};
Git=function(E){return function(B){return B.pipe(Hr6(E),YB(function(I){var T=_.p(I);I=T.next().value;T=T.next().value;var e=I.value;return{timestamp:I.timestamp,value:e>=1?!0:e<=0?!1:e>=T}}))}};
nrB=function(){return j6(mX(function(E,B){return B>0}),Obi,Jv(-1),GB())};
MCf=function(E,B,I){return E?vL([B,I]).pipe(mX(function(T){var e=_.p(T);T=e.next().value;e=e.next().value;return T.timestamp.equals(e.timestamp)}),YB(function(T){var e=_.p(T);
T=e.next().value;e=e.next().value;return T.value>e.value?T:e})):B};
grB=function(E){return function(B){var I=B.pipe(HbQ),T=B.pipe(NMd);return E instanceof Uf?E.pipe(XW(function(e){return MCf(e,I,T)})):MCf(E.value,I,T)}};
U8G=function(E,B,I,T){var e=T.geometryIsOccluded,c=T.exposureThreshold,Y=T.wasLargeAdAtRender,v=T.allowLargeAdThreshold,y=T.largeAdExposureThreshold,Z=T.mayUseViewportShareExposure,P=T.hasMeasurementStarted;T=T.useIntersectionObserverV2;B=SxG(E,I,B);I=JiG(E,I);T=WKc(B,T);var z=XMD(E,e,Z,B),m=z.pipe(YB(function(ed){return ed.value}),GB(),VM(E),SR(function(ed,K){return Math.max(ed,K)},0)),u=z.pipe(YB(function(ed){return ed.value}),nrB(),VM(E)),x=B.pipe(rif,YB(function(ed){return ed.value}),xB(2),GB(),
VM(E));
Y=bbG(E,B,Y,v);var M=Y.pipe(Jv(!1),GB(),YB(function(ed){return ed?y:c}));
v=z.pipe(Git(M),GB(),VM(E));var N=vL([v,B]).pipe(mX(function(ed){var K=_.p(ed);ed=K.next().value;K=K.next().value;return ed.timestamp.equals(K.timestamp)}),YB(function(ed){var K=_.p(ed);
ed=K.next().value;K=K.next().value;return{visible:ed.value,geometry:K.value.elementGeometry}}),SR(function(ed,K){return!K.visible&&ed.visible?ed:K},{visible:!1,
geometry:Lb}),YB(function(ed){return ed.geometry}),Jv(Lb),VM(E),GB(D7));
Z=Z instanceof Uf?Z.pipe(GB(),LK()):cM;M=vL([Z,M]).pipe(LK());var W=B.pipe(mX(function(ed){return ed.value.viewportGeometrySourceName!=="ns"&&ed.value.elementGeometrySourceName!=="ns"}),SR(function(ed){return ed+1},0),Jv(0),VM(E)),U=I.pipe(LK(!0),Jv(!1),VM(E));
U=vL([P,U]).pipe(YB(function(ed){var K=_.p(ed);ed=K.next().value;K=K.next().value;return ed&&!K}),VM(E));
var q=B.pipe(orJ,GB()),f=q.pipe(YB(function(ed){return ed.value}),SR(function(ed,K){return Math.max(ed,K)},0),GB(),VM(E));
E=q.pipe(YB(function(ed){return ed.value}),nrB(),VM(E));
return{shouldResetExposureSignals:Z,shouldResetViewabilitySignals:M,geometrySignals:{readyGeometryWithDefault:B,measurementStrategy:B.pipe(AiJ),creativePosition:N.pipe(GB(D7)),visible:v.pipe(GB(Gi)),timestampedExposure:z.pipe(GB(Gi)),maximumExposure:m,minimumExposure:u,browserSize:B.pipe(j_d,GB(_.iD)),timestampedScreenShare:q,maxScreenShare:f,minScreenShare:E,geometricMeasurementErrors:I,measurementRequests:B.pipe(YB(function(ed){return ed.value.measurementRequests})),
isLargeAd:Y,geometryIsOccluded:e,hasMeasurementStarted:P,geometryMeasurable:U,validMeasurementCount:W,loadTimeExposure:x,v2VisibilityBitVector:T}}};
JiG=function(E,B){return B.pipe(mX(function(){return!1}),YB(function(I){return I}),sR(function(I){return M8(new FW(I),E)}))};
SxG=function(E,B,I){return B.pipe(y1F(cM),VM(E)).pipe(GB(function(T,e){return Gi(T,e,asG)}),Jv({timestamp:I.now(),
value:mK}),VM(E))};
XMD=function(E,B,I,T){I=T.pipe(grB(I),xr(YB(function(e){return Math.round(e*100)/100})),VM(E));
return B instanceof FW?I:vL([I,B]).pipe(YB(function(e){var c=_.p(e);e=c.next().value;c=c.next().value;return{timestamp:c.timestamp.maximum(e.timestamp),value:c.value?0:e.value}}),GB(Gi),VM(E))};
bbG=function(E,B,I,T){B=[B.pipe(YB(function(e){return e.value.elementGeometry.width*e.value.elementGeometry.height>=242500}))];
I instanceof Uf&&B.push(I.pipe(YB(function(e){return!!e})));
I=vL(B);return T?I.pipe(YB(function(e){return e.some(function(c){return c})}),Jv(!1),GB(),VM(E)):M8(new FW(!1),E)};
WKc=function(E,B){E=vL([E,B]).pipe(YB(function(e){var c=_.p(e);e=c.next().value;if(c.next().value&&e.value.isIntersecting)return e.value.isV2Visible}),GB());
var I=E.pipe(YB(function(e){return e===void 0?!0:e}),SR(function(e,c){return e||!c},!1)),T=E.pipe(SR(function(e,c){return c===void 0?e:c?!1:e!=null?e:!0},void 0),YB(function(e){return!!e}));
return vL([B,ZrQ(E,I,T)]).pipe(YB(function(e){var c=_.p(e);e=c.next().value;var Y=_.p(c.next().value);c=Y.next().value;var v=Y.next().value;Y=Y.next().value;var y=0;if(!e)return 0;if(c===void 0)return 16;c&&(y|=1);c||(y|=2);v&&(y|=4);Y&&(y|=8);return y}))};
VCi=function(E,B,I,T,e){var c=N8.timeThresholdMs;var Y=Y===void 0?new kic(B,T):Y;return(new Uf(function(v){var y=I.pipe(Jv(void 0),XW(function(){return tCF(e)})).pipe(YB(function(Z){var P=Z.value;
Z=Z.timestamp;var z=P.visible;P=P.consecutiveViewTime;var m=P>=c;m||!z?gM(Y):(Z=Math.max(0,QM(B.now(),Z)),fsc(Y,Math.max(0,c-P-Z)));return m}),SR(function(Z,P){return P||Z},!1),GB()).subscribe(v);
return function(){Y.dispose();y.unsubscribe()}})).pipe(rH(function(v){return!v},!0),VM(E))};
tCF=function(E){return efD([E,E.pipe(YxJ())]).pipe(YB(function(B){var I=_.p(B);B=I.next().value;I=I.next().value;return{timestamp:B.timestamp,value:{visible:B.value,consecutiveViewTime:I.value}}}),GB(function(B,I){return Gi(B,I,function(T,e){return T.consecutiveViewTime===e.consecutiveViewTime&&T.visible===e.visible})}))};
qxF=function(){return j6(ibd(),SR(function(E,B){return Math.max(E,B)},0),YB(function(E){return Math.round(E)}))};
FKB=function(E){return j6(Git(eR(E)),qxF())};
D8i=function(E,B){return B instanceof Uf?B.pipe(XW(function(I){return(I=I?15:null)?lA(new il(I)):E})):(B=B.value?15:null)?lA(new il(B)):E};
KK4=function(E){var B=new il(13);if(E.length<1)return{chain:PL,capturedErrors:PL};var I=new tv,T=E[0];return{chain:E.slice(1).reduce(function(e,c){return e.pipe(sR(function(Y){I.next(Y);return c}))},T).pipe(sR(function(e){I.next(e);
return lA(B)}),HL(new tv),pK()),
capturedErrors:I}};
RfB=function(E,B){var I=E.pipe(HL(new tv),pK());return XW(function(T){return I.pipe(B(T))})};
B1i=function(E,B){if(E.inCrossDomainIframe)return lA(new il(6));var I=new tv;return zB(eR({}),B,I).pipe(YB(function(){return{timestamp:E.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:E9f(E),topWindowViewportExternalGeometry:hi(E,!0),measurementRequests:I,viewportLocalAppOffset:{x:0,y:0}}}}),fK(E.queue))};
E9f=function(E){var B=hi(E,!1);if(!E.inIframe||!SC(E.global.parent)||E.global.parent===E.global)return B;var I=new Ji(E.global.parent,E.debugChannel);I.beaconFactory=E.beaconFactory;I=E9f(I);E=E.global.frameElement.getBoundingClientRect();return ZKG(PAt(ZKG(I,E),{x:B.left-E.left,y:B.top-E.top}),B)};
$mi=function(E){if(E.prerendering)return 3;var B;return(B={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[E.visibilityState||E.webkitVisibilityState||E.mozVisibilityState||""])!=null?B:0};
IVc=function(E){return E.document.JSC$7259_onVisibilityChange.pipe(YB(function(B){return B==="visible"}),GB(),VM(E.queue))};
T1G=function(E,B,I){var T;return B.pipe(GB(),XW(function(e){return I.pipe(YB(function(){if(!T){T=!0;try{e.next()}finally{T=!1}}return!0}))}),Jv(!1),VM(E.queue))};
edQ=function(E){return j6(xr(YB(function(B){return B>=1?!0:B<=0?!1:B>=E})),cid(),YB(function(B){return Math.round(B)}))};
cVJ=function(E,B,I,T,e){var c=lVc;if(c.length>1)for(var Y=0;Y<c.length-1;Y++)if(c[Y]<c[Y+1])throw Error();Y=e.pipe(Jv(void 0),XW(function(){return I.pipe(YxJ())}),GB(),VM(E));
e=e.pipe(Jv(void 0),XW(function(){return I.pipe(qxF())}),GB(),VM(E));
return{totalMeasurementTime:T.pipe(Jv(void 0),XW(function(){return B.pipe(YB(function(v){return{timestamp:v.timestamp,value:!0}}),cid())}),GB(),VM(E)),
totalUnviewedTime:T.pipe(Jv(void 0),XW(function(){return B.pipe(YB(function(v){return{timestamp:v.timestamp,value:v.value===0}}),cid())}),GB(),VM(E)),
maxTimeOnScreen:T.pipe(Jv(void 0),XW(function(){return B.pipe(pMc(FKB,c))}),GB(_.iD),VM(E)),
timeOnScreen:T.pipe(Jv(void 0),XW(function(){return B.pipe(pMc(edQ,c),YB(function(v){return v.map(function(y,Z){return Z>0?y-v[Z-1]:y})}))}),GB(_.iD),VM(E)),
maxConsecutiveViewTime:e,consecutiveViewTime:Y.pipe(GB(Gi),VM(E))}};
ppQ=function(E){var B=!0;B=B===void 0?!1:B;return j6(XW(function(I){return ixJ(E.document,I,B)}),VM(E.queue))};
Y7G=function(E,B,I){var T=I.pipe(YB(function(e){return{value:e,timestamp:E.timeProvider.now()}}),GB(Gi));
return B instanceof Uf?B.pipe(GB(),XW(function(e){return e?M8(new FW({value:!1,timestamp:E.timeProvider.now()}),E.queue):T})):B.value===!1?T:new FW(!1)};
aVt=function(E,B,I,T,e,c,Y){var v=N8;B=B instanceof Uf?B.pipe(Jv(!1),GB()):B;var y=!E.isMobile();I=Y7G(E,I,T);E=Y.measurableCreative.pipe(TMB(E.queue));return Object.assign({},v,{geometryIsOccluded:I,wasLargeAdAtRender:e,allowLargeAdThreshold:y,mayUseViewportShareExposure:B,hasMeasurementStarted:E,useIntersectionObserverV2:c})};
yV4=function(E,B,I,T,e,c){var Y=1;c=c===void 0?!0:c;Y=Y===void 0?.01:Y;var v=v===void 0?E.timeProvider.intervalObservable(100).pipe(VM(E.queue)):v;return E.performanceMonitor.timeExecution(916,function(){return v9i(E,B.pipe(fK(E.queue)),I.pipe(fK(E.queue)),T,e,c,Y,v)})()};
v9i=function(E,B,I,T,e,c,Y,v){var y=IVc(E).pipe(YB(function(P){return!P})),Z=new Cif(E,[new wpi(E,lVc),
new Zx6(E,v)]);v=VR6(Pii,zdd);return oBJ(E,B,function(P,z){var m=M8(new FW(z.element),P.queue).pipe(ppQ(P),VM(P.queue)),u={loadedElement:m,shouldMeasure:m.pipe(LK(!0)),measurableCreative:m.pipe(YB(function(ed){var K=K===void 0?Symbol():K;return Object.freeze({symbol:K,element:M8(new FW(ed),P.queue)})})),
creativeSearchResult:M8(new FW("mue"),P.queue)},x=new FW(!1),M=new FW(!1),N=new FW(17),W=new FW(!1),U=new FW(!1),q=M8(WM,P.queue);x=Z.buildGeometrySource(u,{inApp:x,useV2:!1,requestSource:M8(N,P.queue)}).geometrySource;u=aVt(P,W,M,y,U,q,u);M=U8G(P.queue,P.timeProvider,x,u);u=M.geometrySignals;W=M.shouldResetViewabilitySignals;M=cVJ(P.queue,u.timestampedExposure,u.visible,M.shouldResetExposureSignals,W);W=VCi(P.queue,P.timeProvider,W,u.measurementRequests,u.visible);U=I.pipe(mX(function(ed){return ed===
z.element.ref}),YB(function(){return"ur"}));
q=QGG(P.timeProvider,e).pipe(LK("t"));U=x86(P,zB(U,q));q=T1G(P,u.measurementRequests,U.pipe(mX(function(ed){return ed!==null})));
x=U.pipe(mX(function(ed){return ed!==null}),YB(function(){return $mi(P.global.document)===1}));
var f=mmd(P.document);return Object.assign({},{beaconFactory:new FW(P.beaconFactory),context:new FW(P),inferredPingId:new FW("lidar2"),timeOnScreenPingId:new FW("lidartos"),binaryContext:new FW(17),binaryVersion:new FW(T),requestSource:N,contextValidationErrors:new FW(P.validate()?null:new pb),contextVisibilityKnown:new FW(f),payloadMapper:new FW(tRf),endOfSessionReason:U,timeOnScreenReason:U,requestMeasurementOnEndOfSession:q,hasImpressionFired:Qac,crossDomainIframeState:new FW(P.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:WM,inFetchLaterBeaconExperiment:WM,isTurtlex:WM,turtlexReportEventData:new FW(""),reportFencedFrameEvent:cM,isViewableAttributionEnabled:WM,inViewableAttributionExperiment:new FW(0),fetchBeaconFactory:cM,supportsPendingBeacon:WM,supportsFetchLater:WM,emit:new FW(Dhc),beginToRenderEvent:new FW(Symbol()),activeViewUnmeasurableEvent:new FW(Symbol()),activeViewViewableEvent:new FW(Symbol()),creativeFound:Qac,immediateUrlPrefixes:new FW(z.immediateUrls),timeOnScreenUrlPrefixes:new FW(z.timeOnScreenUrls),
cpmavUrls:cM,viewableRelayUrls:cM,measurementDeferralState:new FW(2),urlSerializer:new FW($8c),viewUrlSerializer:new FW(dmF),isCreativeLoaded:m.pipe(TMB(P.queue)),pageVisible:y.pipe(YB(function(ed){return!ed})),
eosPageVisible:x,timestampedExposureHistory:u.timestampedExposure.pipe(SR(function(ed,K){ed.push(K);return ed},[]))},u,{viewable:nb(P,W),
maxTimeOnScreen:nb(P,M.maxTimeOnScreen),timeOnScreen:nb(P,M.timeOnScreen),maxConsecutiveViewTime:nb(P,M.maxConsecutiveViewTime),consecutiveViewTime:M.consecutiveViewTime.pipe(YB(function(ed){return new Ox(P.timeProvider,ed)})),
totalMeasurementTime:nb(P,M.totalMeasurementTime),totalUnviewedTime:nb(P,M.totalUnviewedTime),userAgentClientHints:qfQ(P),clientOrderPingCounter:new FW(new jdc)})},f7c(E,Y),qRJ(c?FXi(v,hdi):FXi(v,saD),usQ))};
L3c=function(E){return new RegExp("[^#]*[?&]"+E+"=([^&#]*)")};
xmi=function(E,B){return(E=B.exec(E))?E[1]:null};
GM4=function(E){var B=_.aG.apply(1,arguments).filter(Boolean).join("&");if(!B)return E;var I=E.match(/[?&]adurl=/);return I?E.slice(0,I.index+1)+B+"&"+E.slice(I.index+1):E+(E.indexOf("?")<0?"?":"&")+B};
rM=function(E,B){return B?"&"+E+"="+encodeURIComponent(B):""};
Oxf=function(){try{var E,B;return!!((E=window)==null?0:(B=E.top)==null?0:B.location.href)&&!1}catch(I){return!0}};
_.bl=function(E){E&&typeof E.dispose=="function"&&E.dispose()};
_.o_=function(E){for(var B=0,I=arguments.length;B<I;++B){var T=arguments[B];_.Di(T)?_.o_.apply(null,T):_.bl(T)}};
Med=function(){var E=n9c();E=E===void 0?"bevasrsg":E;return new Promise(function(B){var I=window===window.top?window:Oxf()?window:window.top,T=I[E],e;((e=T)==null?0:e.bevasrs)?B(new Ai(T.bevasrs)):(T||(T={},T=(T.nqfbel=[],T),I[E]=T),T.nqfbel.push(function(c){B(new Ai(c))}))})};
HxJ=function(E){var B={c:E.d6,e:E.qRD,mc:E.zSP,me:E.hSq};E.oQ&&(B.co={c:E.oQ.fWF,a:E.oQ.nOW,s:E.oQ.sSH});return B};
N1f=function(E){var B,I,T={d6:E.c,qRD:E.e,zSP:(B=E.mc)!=null?B:!1,hSq:(I=E.me)!=null?I:!1};E.co&&(T.oQ={fWF:E.co.c,nOW:E.co.a,sSH:E.co.s});return T};
g9D=function(E){return function(){var B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,E(),2);B=I.yieldResult;return I.return({f:function(){return B.moy()},
c:function(T){return B.dhM(T)},
m:function(T){return B.oL(N1f(T))},
mws:function(T){return B.uO(N1f(T))}})})}};
S76=function(E,B){var I=n9c();I=I===void 0?"bevasrsg":I;B={s:function(c){var Y;return E.snapshot(Object.assign({},c.c&&{d6:c.c},c.s&&{ufF:c.s},{qRZ:(Y=c.p)!=null?Y:!0}))},
e:function(c){var Y;return void((Y=E.d0C)==null?void 0:Y.call(E,c))},
c:function(c,Y){return E.isQ(c,Y)},
p:E.wTe,l:function(){return E.nzC()},
wpc:B?g9D(B):void 0};var T=window===window.top?window:Oxf()?window:window.top,e=T[I];if(e){e.bevasrs=B;if(e.nqfbel!==void 0)for(I=_.p(e.nqfbel),T=I.next();!T.done;T=I.next())T=T.value,T(B);e.nqfbel=void 0}else e={},e=(e.bevasrs=B,e.nqfbel=void 0,e),T[I]=e};
W3G=function(E){var B=B===void 0?49:B;var I=[];_.jC(E,JVc,6,_.Ux()).forEach(function(T){_.kr(T,2)<=B&&I.push(_.kr(T,1))});
return I};
XpF=function(E){var B=B===void 0?49:B;var I=[];_.jC(E,JVc,6,_.Ux()).forEach(function(T){_.kr(T,2)>B&&I.push(_.kr(T,1))});
return I};
rVc=function(E){E.then(function(){},function(){})};
ti=function(E){return{fieldType:1,fieldName:E}};
fb=function(E){return{fieldType:2,fieldName:E}};
_.Vl=function(E){return{fieldType:3,fieldName:E}};
bxQ=function(){function E(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;P=Z=0}
function B(z){for(var m=Y,u=0;u<64;u+=4)m[u/4]=z[u]<<24|z[u+1]<<16|z[u+2]<<8|z[u+3];for(u=16;u<80;u++)z=m[u-3]^m[u-8]^m[u-14]^m[u-16],m[u]=(z<<1|z>>>31)&4294967295;z=e[0];var x=e[1],M=e[2],N=e[3],W=e[4];for(u=0;u<80;u++){if(u<40)if(u<20){var U=N^x&(M^N);var q=1518500249}else U=x^M^N,q=1859775393;else u<60?(U=x&M|N&(x|M),q=2400959708):(U=x^M^N,q=3395469782);U=((z<<5|z>>>27)&4294967295)+U+W+q+m[u]&4294967295;W=N;N=M;M=(x<<30|x>>>2)&4294967295;x=z;z=U}e[0]=e[0]+z&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+M&4294967295;e[3]=e[3]+N&4294967295;e[4]=e[4]+W&4294967295}
function I(z,m){if(typeof z==="string"){z=unescape(encodeURIComponent(z));for(var u=[],x=0,M=z.length;x<M;++x)u.push(z.charCodeAt(x));z=u}m||(m=z.length);u=0;if(Z==0)for(;u+64<m;)B(z.slice(u,u+64)),u+=64,P+=64;for(;u<m;)if(c[Z++]=z[u++],P++,Z==64)for(Z=0,B(c);u+64<m;)B(z.slice(u,u+64)),u+=64,P+=64}
function T(){var z=[],m=P*8;Z<56?I(v,56-Z):I(v,64-(Z-56));for(var u=63;u>=56;u--)c[u]=m&255,m>>>=8;B(c);for(u=m=0;u<5;u++)for(var x=24;x>=0;x-=8)z[m++]=e[u]>>x&255;return z}
for(var e=[],c=[],Y=[],v=[128],y=1;y<64;++y)v[y]=0;var Z,P;E();return{reset:E,update:I,digest:T,digestString:function(){for(var z=T(),m="",u=0;u<z.length;u++)m+="0123456789ABCDEF".charAt(Math.floor(z[u]/16))+"0123456789ABCDEF".charAt(z[u]%16);return m}}};
kMt=function(E,B){B=B===void 0?o96:B;if(!AVf){var I;E=(I=E.navigator)==null?void 0:I.userAgentData;if(!E||typeof E.getHighEntropyValues!=="function"||E.brands&&typeof E.brands.map!=="function")return Promise.reject(Error("ya"));jai((E.brands||[]).map(function(e){var c=new Umc;c=_.$r(c,1,e.brand);return _.$r(c,2,e.version)}));
typeof E.mobile==="boolean"&&_.q8(FR,2,E.mobile);AVf=E.getHighEntropyValues(B)}var T=new Set(B);return AVf.then(function(e){var c=FR.clone();T.has("platform")&&_.$r(c,3,e.platform);T.has("platformVersion")&&_.$r(c,4,e.platformVersion);T.has("architecture")&&_.$r(c,5,e.architecture);T.has("model")&&_.$r(c,6,e.model);T.has("uaFullVersion")&&_.$r(c,7,e.uaFullVersion);return c.serialize()}).catch(function(){return FR.serialize()})};
Ds=function(E,B,I,T){this.initialValue_=E;this.maxValue_=B;this.currBaseValue_=this.currValue_=E;this.randomFactor_=I||0;this.backoffFactor_=T||2};
Kb=function(E){this.src=E;this.listeners={};this.typeCount_=0};
q7f=function(){for(var E;E=teG.remove();){try{E.fn.call(E.scope)}catch(B){IB(B)}fVt.put(E)}Vec=!1};
_.R_=function(E){switch(E){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}};
F3f=function(E){switch(E){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""}};
_.DmB=function(){};
l0F=function(E){return{zMZ:new K3d(E),errorCount:new Rdf(E),eventCount:new Ept(E),gpH:new BtG(E),gjB:new $SB(E),kNb:new I0d(E),ox5:new TtD(E),lgY:new eB4(E)}};
Ntt=function(E,B,I,T){E=cxt(id4(ph4(new _.E7(1828,"0"),E),new Y_J));B.length&&Odi(E,npi(new M2Q,B));T!==void 0&&(E.destinationUrl=T);var e=new Hdc(1828,"","",!1,"",E.build());_.Bp(e,E);var c=new $9({flush:function(Y){try{e.flush(Y)}catch(v){I(v)}}});
c.addOnDisposeCallback(function(){setTimeout(function(){try{c.snapshotAndFlush()}finally{e.dispose()}})});
c.invocationLimit=1E5;c.flushInterval=3E4;c.JSC$7671_flushTimer.setInterval(3E4);return c};
Ia=function(){var E,B,I;return(I=(E=globalThis.performance)==null?void 0:(B=E.now)==null?void 0:B.call(E))!=null?I:Date.now()};
S_G=function(E,B,I){if(E.disable)return new gpc;B=B?W3G(B):[];if(I)return I.fJr(B),I.share();E={nR:E.nR,s8D:E.vp7,mY3:E.n65,destinationUrl:E.destinationUrl,y5o:E.y5o,omF:E.omF};I=B;I=I===void 0?[]:I;return new TM(E,I)};
_.Jxf=function(E){if(!E)return null;E=_.ee(E,4);return E===null||E===void 0?null:_.KX(E)};
rxi=function(E,B){return B?W$6(B):E?XhQ(E):Promise.resolve()};
W$6=function(E){return new Promise(function(B,I){var T=_.li("SCRIPT"),e=_.Jxf(E);_.nr(T,e);T.onload=function(){_.ii(T);B()};
T.onerror=function(){_.ii(T);I(Error("Ja"))};
(px("HEAD")[0]||document.documentElement).appendChild(T)})};
XhQ=function(E){return new Promise(function(B){var I=_.li("SCRIPT");if(E){var T=_.ee(E,6);T=T===null||T===void 0?null:_.xM(T)}else T=null;_.Of(I,T);(px("HEAD")[0]||document.documentElement).appendChild(I);_.ii(I);B()})};
Y9=function(E,B,I){var T,e=new Promise(function(c){T=setTimeout(c,B)});
return Promise.race([E.finally(function(){return void clearTimeout(T)}),
e.then(I)])};
bd6=function(E,B){try{return globalThis.sessionStorage.setItem(E,B),!0}catch(I){return!1}};
opd=function(E,B,I,T){B=B===void 0?0:B;I=I===void 0?E.length:I;var e=0;for(T&&(e=opd(T));B<I;B++)T=typeof E==="string"?E.charCodeAt(B):E[B],e=Axd(31,e)+T|0;return e};
jJG=function(E,B){return[opd(E,0,E.length>>1,B),opd(E,E.length>>1)]};
USF=function(E){var B=_.p(jJG(E,aa));E=B.next().value;B=B.next().value;return E.toString(16)+B.toString(16)};
k5G=function(E,B){var I=jJG(B);E=new Uint32Array(E.buffer);B=E[0];var T=_.p(I);I=T.next().value;T=T.next().value;for(var e=1;e<E.length;e+=2){for(var c=B,Y=e,v=I,y=T,Z=0;Z<22;Z++)Y=Y>>>8|Y<<24,Y+=c|0,Y^=v+38293,c=c<<3|c>>>29,c^=Y,y=y>>>8|y<<24,y+=v|0,y^=Z+38293,v=v<<3|v>>>29,v^=y;c=[c,Y];E[e]^=c[0];e+1<E.length&&(E[e+1]^=c[1])}};
t2F=function(E,B,I,T,e){var c=(4-(aa.length+I.length)%4)%4,Y=new Uint8Array(4+c+aa.length+4+I.length),v=new DataView(Y.buffer),y=0;v.setUint32(y,Math.random()*4294967295);y=y+4+c;Y.set(aa,y);y+=aa.length;v.setUint32(y,e);Y.set(I,y+4);k5G(Y,T);return E.insert(B,function(Z){return void globalThis.sessionStorage.removeItem(Z)})?bd6(B,_.tH(Y))?"s":"t":"i"};
f0t=function(E,B){var I=globalThis.sessionStorage.getItem(E);if(!I)return["m"];try{var T=_.pV(I);k5G(T,B)}catch(e){return globalThis.sessionStorage.removeItem(E),["c"]}for(B=4;B<7&&T[B]===0;)B++;for(I=0;I<aa.length;I++)if(T[B++]!==aa[I])return globalThis.sessionStorage.removeItem(E),["d"];I=(new DataView(T.buffer)).getUint32(B);return Math.floor(Date.now()/1E3)>=I?(globalThis.sessionStorage.removeItem(E),["e"]):["a",new Uint8Array(T.buffer,B+4)]};
V2c=function(E){return globalThis.TextEncoder?(new TextEncoder).encode(E):_.vp(E)};
q_i=function(E){var B=E,I;return function(){if(B){var T=B;B=void 0;I=T.apply(this,arguments)}return I}};
yj=function(E){return bD(function(B){if(B instanceof E)return!0;var I,T,e=B==null?void 0:(I=B.ownerDocument)==null?void 0:(T=I.defaultView)==null?void 0:T[E.name];return F$c(e)&&B instanceof e})};
_.ZV=function(E,B,I){_.Cx.call(this);this.JSC$7886_listener_=E;this.JSC$7886_interval_=B||0;this.handler_=I;this.callback_=(0,_.w1)(this.JSC$7888_doAction_,this)};
_.Pp=function(E){E=DSG(E);return _.KX(E)};
DSG=function(E){return E===null?"null":E===void 0?"undefined":E};
RBf=function(E){if(E&&E.focus)if(E!==document.activeElement)E.focus();else return K$6(function(){return _.a(function(B){document.activeElement&&document.activeElement.blur();return B.return(K$6(function(){E.focus()}))})})};
_.EPB=function(E){var B=B===void 0?5:B;setTimeout(function(){var I;return _.a(function(T){T.nextAddress==1&&(I=document.activeElement);if(T.nextAddress!=5)return(document.activeElement===I||document.activeElement===document.body)&&B>=0&&E?_.C(T,RBf(E),5):T.jumpTo(0);if(document.activeElement===E)return T.return();E=E.parentElement;--B;return T.jumpTo(2)})},15)};
K$6=function(E){return new Promise(function(B){requestAnimationFrame(function(){B(E())})})};
BUJ=function(E){if(_.zM)E(_.zM);else{var B;((B=m3)!=null?B:m3=[]).push(E)}};
d1=function(){!_.zM&&_.Qj&&_.$Di(_.Qj());return _.zM};
_.$Di=function(E){_.zM=E;var B;(B=m3)==null||B.forEach(BUJ);m3=void 0};
_.hV=function(E){_.zM&&_.zM.beforeLoadModuleCode(E)};
_.s7=function(){_.zM&&_.zM.JSC$8841_setLoaded()};
ui=function(E){return Hm(E)?Number(E):String(E)};
Lx=function(E){this.action=E;this.wfv=!1};
ItG=function(E,B){Lx.call(this,"set-drive-options");this.appId=E;this.appOrigin=B};
TUd=function(E){Lx.call(this,"visibility");this.visible=E};
epG=function(E,B,I){x9.call(this,E,B,I)};
ltf=function(E){GM.call(this,E)};
cAd=function(E){E=E&&E.getWindow()||window;return E.gadgets&&E.gadgets.rpc};
icJ=function(E,B){var I=B&&B.getWindow()||window;if(cAd(B))E();else if(O7)O7.push(E);else var T=O7=[E],e=I.setInterval(function(){if(cAd(B)){I.clearInterval(e);for(var c=0;c<T.length;c++)T[c]();O7=null}},100)};
YrJ=function(E,B){var I=new nx(E);_.Bp(B,I);var T={passive:!1};B.listen(I,"mousewheel",function(e){return void pA4(E,e)},T).listen(E,"scroll",function(e){return void pA4(E,e)},T)};
pA4=function(E,B){var I;a:{for(I=B.target;I;){if(I.nodeType==1){var T=_.Mm(I,"overflowY");if(T=="auto"||T=="scroll")break a}I=I.parentNode}I=null}if(!I||!_.Hp(E,I)||I.scrollHeight==I.clientHeight||B.deltaY>0&&Math.abs(I.scrollTop-(I.scrollHeight-I.clientHeight))<=1||B.deltaY<0&&I.scrollTop==0)B.preventDefault(),B.stopPropagation()};
r1=function(E,B,I,T,e,c,Y,v,y){v=v===void 0?!1:v;y=y===void 0?!1:y;x9.call(this,void 0,void 0,void 0);x9.call(this,c?c+" picker modal-dialog":"picker modal-dialog",!0,I);_.Nm(E,"protocol");this.iframeManager_=new at4;this.targetId_=g1();this.rpcToken_=g1();E=_.Se(E);_.JV(E,"hostId");I=_.JV(E,"parent");this.useGapi_=!y&&!0||(I==null?void 0:I.includes("onepick.corp.google.com"));v&&_.Wp(E,"fv2","true");this.setUrl(E.toString());this.preferredDialogWidth_=T;this.preferredDialogHeight_=e;T!==void 0||
e!==void 0?T=!0:(T=_.JV(_.Se(E.toString()),"hostId"),vP6||(vP6=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),T=!vP6.has(T));this.autoSizeDialog_=T;this.JSC$8076_gadgetsDomHelper_=Y||this.JSC$8027_dom_;B&&(Y=this.JSC$8076_gadgetsDomHelper_,B=_.JV(_.Se(this.JSC$8078_url_),"grugl")=="true"?yAi:CWD,cAd(Y)||(Y=Y||BM(document),T=Y.createElement("SCRIPT"),_.nr(T,B),T.type="text/javascript",Y.JSC$7214_document_.body.appendChild(T)));
E=E.toString();B=null;Y=E.indexOf("/picker?");Y>-1?B=E.substring(0,Y+8-1):ic(E,"/picker")&&(B=E);B&&this.setRelayUrl(B+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(E=this.buttons_,E.JSC$8061_element_=this.buttonEl_,E.render()):_.M7(this.buttonEl_,wAG),_.Xs(this.buttonEl_,!!this.buttons_))};
_.mDF=function(E){var B=B===void 0?ZcJ:B;var I=_.$l(E),T=function(c){c=_.p(c);c.next();c=bi(c);return B(I,c)},e=function(c){var Y=_.p(c);
c=Y.next().value;Y=bi(Y);return E.apply(c,Y)};
return function(){var c=_.aG.apply(0,arguments),Y=this||_.$i,v=PWi.get(Y);v||(v={},PWi.set(Y,v));return _.zpD(v,[this].concat(_.ad(c)),e,T)}};
oa=function(E){var B={};E=E.replace(/\r/g,"").split("\n");for(var I=0;I<E.length;I++){var T=E[I],e=T.indexOf(":");e<0||(B[T.substring(0,e)]=T.substring(e+2,T.length))}return B};
QIQ=function(E,B,I){I=I===void 0?function(){}:I;
B=_.p(B);for(var T=B.next();!T.done;T=B.next()){var e=_.p(T.value);T=e.next().value;e=e.next().value;if(T instanceof Array&&T.includes(E)||T===E)return e()}return I()};
_.AV=function(E,B,I){I=I===void 0?function(){}:I;
return E?B():I()};
_.hpQ=function(E){var B;return((B=dDf.documentOverride)!=null?B:E).__wizdispatcher};
fx=function(E){var B=U7;U7=E;return B};
sIt=function(E,B){var I;if((I=E)==null?0:I.isDisposed)throw Error("nb`"+String(E.debugName));for(;E!==void 0;){I=E;if(I.retrieve)return I.retrieve(B,{optional:!0});E=E.parent}return Vj};
qm=function(E){return{"\u0275prov":{providedIn:"root",token:Symbol(E),factory:void 0,value:void 0}}};
uxB=function(E){var B=fx(E);E={};return E[Symbol.dispose]=function(){fx(B)},E};
L4G=function(E,B){E.disposables||(E.disposables=[]);E.disposables.push(B)};
Fs=function(E){var B=U7;B&&!B.isDisposed&&(L4G(B,function(){return void xDG(E)}),E.parent=B)};
GbD=function(E){if(E.disposables){for(var B=_.p(E.disposables),I=B.next();!I.done;I=B.next())I=I.value,I();E.disposables.length=0}};
xDG=function(E){if(!E.isDisposed){E.isDisposed=!0;var B;(B=E[Symbol.dispose])==null||B.call(E);delete E.parent;GbD(E)}};
W4d=function(E){var B={retrieve:function(I){switch(I.\u0275prov.token){case Ocf.\u0275prov.token:var T=E.asyncDeps;break;case nPd.\u0275prov.token:T=E.rootElement;break;case MIc.\u0275prov.token:T=E.modelRootElement;break;case Hc4.\u0275prov.token:T=E.appContext;break;case NUd.\u0275prov.token:T=E.rendererData;break;case gPc.\u0275prov.token:T=E.injectingConstructor;break;case SrQ.\u0275prov.token:T=E.dispatcher}if(T)I=T;else a:{for(T=B.parent;T;){var e=T;if(e.retrieve){I=e.retrieve(I);break a}T=
T.parent}T=I.\u0275prov.token;e=JAc[T];e!==void 0?I=e:(e=I.\u0275prov.providedIn,I.\u0275prov.factory?(I=I.\u0275prov.factory(),T&&e==="root"&&(JAc[T]=I)):I=Vj)}return I}};
Fs(B);return B};
rAf=function(E){var B="";var I=_.$i._F_jsUrl;if(typeof document!=="undefined"&&document&&document.getElementById&&(E=document.getElementById(E))){var T=E.tagName.toUpperCase();if(T=="SCRIPT"||T=="LINK")B=E.src?E.src:E.getAttribute("href")}if(I&&B){if(I!=B)throw Error("ub`"+I+"`"+B);B=I}else B=I||B;if(!XAt(B))throw Error("vb");return B};
AAQ=function(){if(!bcQ){bcQ=!0;try{var E=rAf(_.$i._F_jsUrl?"":"base-js")}catch(T){return}var B=oP6(DV(E)),I=Object.keys(B);I.length!==0&&BUJ(function(T){for(var e=_.p(I),c=e.next();!c.done;c=e.next()){c=c.value;for(var Y=_.p(Object.keys(B[c])),v=Y.next();!v.done;v=Y.next())T.addExtraEdge(c,v.value)}})}};
jI6=function(E,B,I){var T;return E&&B?E+"__"+B:(T=E!=null?E:B)!=null?T:I};
kb4=function(){var E=Object.assign({},UDi);Object.getOwnPropertyNames(UDi).forEach(function(B){Kx[B]!==void 0&&(E[B]=Kx[B])});
return E};
tI4=function(E,B){if(Kx.enablePerformanceTiming){var I,T;(T=(I=performance).mark)==null||T.call(I,E+"Start__"+B)}};
ftG=function(E,B){if(Kx.enablePerformanceTiming){var I,T;(T=(I=performance).measure)==null||T.call(I,E+"__"+B,E+"Start__"+B)}};
qrc=function(E,B){var I=Object.create(VI6);I.debugName=B;!U7||Fs(I);B=fx(I);try{E(I)}finally{fx(B)}return function(){return void xDG(I)}};
K4D=function(E){return F4f(E)&&DDG in E};
Rpd=function(E,B){return Object.is(E,B)};
E_=function(E){var B=Ra;Ra=E;return B};
IZf=function(E){if(Bh)throw Error("da");if(Ra!==null){var B=Ra.nextProducerIndex++;Ea4(Ra);B<Ra.producerNode.length&&Ra.producerNode[B]!==E&&$p(Ra)&&B06(Ra.producerNode[B],Ra.producerIndexOfThis[B]);Ra.producerNode[B]!==E&&(Ra.producerNode[B]=E,Ra.producerIndexOfThis[B]=$p(Ra)?$_t(E,Ra,B):0);Ra.producerLastReadVersion[B]=E.version}};
lZD=function(E){if(!$p(E)||E.dirty)if(E.dirty||E.lastCleanEpoch!==T0d)(E.producerMustRecompute(E)||e7f(E))&&E.producerRecomputeValue(E),E.dirty=!1,E.lastCleanEpoch=T0d};
cgF=function(E){if(E.liveConsumerNode!==void 0){var B=Bh;Bh=!0;try{for(var I=_.p(E.liveConsumerNode),T=I.next();!T.done;T=I.next()){var e=T.value;e.dirty||(E=void 0,e.dirty=!0,cgF(e),(E=e.consumerMarkedDirty)==null||E.call(e,e))}}finally{Bh=B}}};
iFd=function(){var E;return((E=Ra)==null?void 0:E.consumerAllowSignalWrites)!==!1};
p7i=function(E){E&&(E.nextProducerIndex=0);return E_(E)};
YFd=function(E,B){E_(B);if(E&&E.producerNode!==void 0&&E.producerIndexOfThis!==void 0&&E.producerLastReadVersion!==void 0){if($p(E))for(B=E.nextProducerIndex;B<E.producerNode.length;B++)B06(E.producerNode[B],E.producerIndexOfThis[B]);for(;E.producerNode.length>E.nextProducerIndex;)E.producerNode.pop(),E.producerLastReadVersion.pop(),E.producerIndexOfThis.pop()}};
e7f=function(E){Ea4(E);for(var B=0;B<E.producerNode.length;B++){var I=E.producerNode[B],T=E.producerLastReadVersion[B];if(T!==I.version)return!0;lZD(I);if(T!==I.version)return!0}return!1};
$_t=function(E,B,I){aZc(E);if(E.liveConsumerNode.length===0&&E.producerNode!==void 0)for(var T=0;T<E.producerNode.length;T++)E.producerIndexOfThis[T]=$_t(E.producerNode[T],E,T);E.liveConsumerIndexOfThis.push(I);return E.liveConsumerNode.push(B)-1};
B06=function(E,B){aZc(E);if(E.liveConsumerNode.length===1&&E.producerNode!==void 0)for(var I=0;I<E.producerNode.length;I++)B06(E.producerNode[I],E.producerIndexOfThis[I]);I=E.liveConsumerNode.length-1;E.liveConsumerNode[B]=E.liveConsumerNode[I];E.liveConsumerIndexOfThis[B]=E.liveConsumerIndexOfThis[I];E.liveConsumerNode.length--;E.liveConsumerIndexOfThis.length--;B<E.liveConsumerNode.length&&(I=E.liveConsumerIndexOfThis[B],E=E.liveConsumerNode[B],Ea4(E),E.producerIndexOfThis[I]=B)};
$p=function(E){var B,I;return E.consumerIsAlwaysLive||((I=E==null?void 0:(B=E.liveConsumerNode)==null?void 0:B.length)!=null?I:0)>0};
Ea4=function(E){E.producerNode!=null||(E.producerNode=[]);E.producerIndexOfThis!=null||(E.producerIndexOfThis=[]);E.producerLastReadVersion!=null||(E.producerLastReadVersion=[])};
aZc=function(E){E.liveConsumerNode!=null||(E.liveConsumerNode=[]);E.liveConsumerIndexOfThis!=null||(E.liveConsumerIndexOfThis=[])};
ygc=function(E){var B=Object.create(vai);B.computation=E;E=function(){lZD(B);IZf(B);if(B.value===IJ)throw B.error;return B.value};
E[T5]=B;return E};
w7J=function(E,B){var I=Object.create(CKd);I.value=E;B!==void 0&&(I.equal=B);E=function(){IZf(I);return I.value};
E[T5]=I;return E};
z7d=function(E,B){E=w7J(E,B);var I=E[T5];return[E,function(T){return ZF4(I,T)},
function(T){iFd()||PKi(I);ZF4(I,T(I.value))}]};
ZF4=function(E,B){iFd()||PKi(E);if(!E.equal(E.value,B)){E.value=B;E.version++;T0d++;cgF(E);var I;(I=m_D)==null||I(E)}};
e2=function(E){var B=E_(null);try{return E()}finally{E_(B)}};
_.lQ=function(E,B,I){I=I===void 0?"":I;E=z7d(E,B==null?void 0:B.equals);var T=E[0],e=T[T5];e.debugName=jI6(B==null?void 0:B.debugName,I,"[signal]");if(!Kx.enablePerformanceTiming)return E;var c=E[1],Y=E[2];return[T,function(v){Qkf(function(){return void c(v)},e)},
function(v){Qkf(function(){return void Y(v)},e)}]};
Qkf=function(E,B){tI4("signalSet",B.debugName);try{E()}finally{ftG("signalSet",B.debugName)}};
h7i=function(E,B){var I=_.p(_.lQ(E,void 0,"cPpJzc"));E=I.next().value;I=I.next().value;E[d_t]=I;E[ch]=B;return E};
skc=function(E){return!!E&&typeof E==="object"&&Object.getPrototypeOf(E)===Object.prototype};
uQF=function(E){return typeof E==="function"&&d_t in E&&typeof E[d_t]==="function"};
LzG=function(E,B){Object.defineProperty(E,ch,{get:function(){return B}})};
pd=function(E,B){if(iQ(E)){var I=E.map(function(c){return pd(c,B)});
LzG(I,B);return I}if(skc(E)){I={};E=_.p(Object.entries(E));for(var T=E.next();!T.done;T=E.next()){var e=_.p(T.value);T=e.next().value;e=e.next().value;I[T]=pd(e,B)}LzG(I,B);return I}return h7i(E,B)};
x_B=function(E){if(iQ(E))return E.map(function(e){return x_B(e)});
if(skc(E)){var B={};E=_.p(Object.entries(E));for(var I=E.next();!I.done;I=E.next()){var T=_.p(I.value);I=T.next().value;T=T.next().value;B[I]=x_B(T)}return B}return uQF(E)?E():E};
OFB=function(){var E={height:0,width:0};if(!skc(E))throw Error("Hb");var B=Symbol("Ib");return[pd(E,B),function(I,T){if(I[ch]===B)if(typeof T==="function"){var e=[].concat(_.ad(x_B(I)));T=T(e)||e;GRB(I,[].concat(_.ad(T)))}else GRB(I,T);else throw Error("Jb");}]};
GRB=function(E,B){if(uQF(E))E[d_t](B);else if(iQ(E)&&iQ(B))B=pd(B,E[ch]),E.length=0,E.push.apply(E,_.ad(B));else if((skc(E)||iQ(E))&&(iQ(B)||typeof B==="object"&&B!==null)){B=_.p(Object.entries(B));for(var I=B.next();!I.done;I=B.next()){var T=_.p(I.value);I=T.next().value;T=T.next().value;var e=E,c=e[I];Object.hasOwn(E,I)?GRB(c,T):e[I]=pd(T,E[ch])}}else throw Error("Kb");};
na6=function(E){return Object.create(Object.assign({},Yp,E))};
HFG=function(){var E;return(E=Mgt)!=null?E:Mgt=na6({consumerAllowSignalWrites:!0})};
_.aJ=function(E,B,I){I=I===void 0?"":I;E=ygc(E);var T=E[T5];T.debugName=jI6(B==null?void 0:B.debugName,I,"[computed]");(B==null?void 0:B.equals)!=null&&(T.equal=B.equals);return E};
vh=function(E){var B=E_(N0Q);try{E()}finally{E_(B)}};
bF6=function(E){if(!E.isDisposed)switch(E.effectType){case gai:SFi.schedule(E);break;case Jgc:Wzf.schedule(E);break;case X7Q:rgd.schedule(E);break;default:_.E9(E.effectType)}};
AgB=function(E){oa4.push(E);return function(){var B=oa4.indexOf(E);B!==-1&&oa4.splice(B,1)}};
U_c=function(){if(yS>0)SFi.flush();else for(var E=_.p(jkF),B=E.next();!B.done;B=E.next())B.value.flush()};
tgF=function(E){for(var B=_.p(E),I=B.next();!I.done;I=B.next()){var T=I.value;for(I=[T];T.parent!==void 0;)T=T.parent,kRQ(T)&&E.has(T)&&I.push(T);for(;I.length>0;){T=I.pop();try{T.run()}finally{E.delete(T)}}}};
fZf=function(E){yS--;if(E){E=_.p(jkF);for(var B=E.next();!B.done;B=E.next())B.value.clear()}else yS>0||U_c()};
VgG=function(E){var B=E.component;var I=E.debugInstance;E=E.fn;var T,e=(T=B.debugName)!=null?T:B.name;Cd={name:I?e+" ("+I+")":e,isReactive:B.componentType!==Z0,parent:Cd};B=E();Cd=Cd.parent;return B};
Ph=function(){var E=Cd;return E?E.isReactive:!1};
z5=function(E,B){B=B===void 0?{}:B;var I=Cd;B.stack&&(Cd=B.stack);try{return E()}catch(v){E=v;B=Cd;for(var T=0,e=B;e!==null;)T++,e=e.parent;if(T!==0&&!E.componentStack)try{if(E.componentStack=B,Kx.enableComponentStacksInErrorMessages){var c=qFG(B),Y=E.message+"\n\nComponent stack: "+c;E.stack&&(E.stack=E.stack.replace(E.message,Y));E.message=Y}}catch(y){}if(E!==FzJ){D_c=Cd;c=[];for(Y=U7;Y;)B=void 0,c.push((B=Y.debugName)!=null?B:"[context]"),B=void 0,Y=(B=Y.parent)!=null?B:null;KzB=c.reverse()}FzJ=
E;throw E;}finally{Cd=I}};
qFG=function(E){for(var B=[];B.length<20&&E;)B.push(E.name),E=E.parent;return B.join(" > ")};
R7d=function(E,B,I){B=Object.create(B);B.componentStack=Cd;B.effectFn=E;I&&(B.debugName=I);Fs(B);return B};
_.m$=function(E,B){E=R7d(E,EvB,B);bF6(E)};
_.QS=function(E,B){E=R7d(E,B7f,B);bF6(E)};
_.dt=function(E){var B=U7;if(B){var I=Cd;L4G(B,function(){var T=E_(HFG());try{z5(function(){return void E()},{stack:I})}finally{E_(T)}})}};
hx=function(E,B){var I={};(B===void 0||B)&&Fs(I);B=fx(I);try{E(I)}finally{fx(B)}return function(){return void xDG(I)}};
_.s_=function(E){return typeof E==="function"?E():(E==null?0:E[$3c])?E.get():E};
IDF=function(E){if(U7)throw Error("rb");hx(E,!1)};
uQ=function(E,B){E=fx(E);try{return e2(B)}finally{fx(E)}};
Ld=function(E,B,I){I=I===void 0?3:I;var T=D_c,e,c;var Y=(c=(e=KzB)==null?void 0:e.slice())!=null?c:[];B={componentStack:T,contextTrace:Y,errorSeverity:I,featureFlags:kb4(),tagName:B};return[E,B]};
lDc=function(E,B,I){if(Object.hasOwnProperty.call(T7f,E)&&(E=T7f[E],Object.hasOwnProperty.call(E,B)&&(E=E[B],E instanceof Array))){for(var T=null,e=!1,c=0,Y=E.length;c<Y;++c){var v=E[c],y=v.contingentAttribute;if(!y)return v.contract;T===null&&(T={});y=Object.hasOwnProperty.call(T,y)?T[y]:T[y]=I(y);if(y===v.requiredValue)return v.contract;y==null&&(e=!0)}if(e)return null}B=e_c[B];return typeof B==="number"?B:null};
pnc=function(E,B,I){var T=null;(E=cI6[E])&&(T=E[B]);return typeof T!=="number"&&((E=cI6["*"])&&(T=E[B]),typeof T!=="number")?!1:!0===ilD[T][String(I).toLowerCase()]};
aDd=function(E,B){B=lDc(E.toLowerCase(),B,function(){var T;(T=Kx.handleError)==null||T.call.apply(T,[Kx].concat(_.ad(Ld(Error("Pb"),E.toLowerCase()))))});
if(B===null)return null;var I;return(I=Y4B[B])!=null?I:null};
vvD=function(E,B,I){if(I===null||I===void 0)return I;E=aDd(E,B);return E===null?I:E(B,I)};
yIJ=function(){};
xp=function(E,B){for(;E.length>B;)E.pop()};
CyG=function(E){E=Array(E);xp(E,0);return E};
wni=function(E,B,I){if(I==null)E.removeAttribute(B);else{var T;(T=B.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":B.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?E.setAttributeNS(T,B,I):E.setAttribute(B,I)}};
ZlD=function(E,B,I){E[B]=I};
z_4=function(E,B,I){E=E.style;if(typeof I==="string")E.cssText=I;else{E.cssText="";for(var T in I)if(PyB.call(I,T)){B=E;var e=T,c=I[T];e.indexOf("-")>=0?B.setProperty(e,c):B[e]=c}}};
m3c=function(E,B,I){var T=typeof I;T==="object"||T==="function"?E[B]=I:wni(E,B,I)};
Qxt=function(){var E=new yIJ;E[G5.default]=m3c;E.style=z_4;return E};
d36=function(E,B,I,T){(T[B]||T[G5.default])(E,B,I)};
sxJ=function(E,B,I){B=new h_c(B,I);return E.__incrementalDOMData=B};
O_=function(E,B){if(E.__incrementalDOMData)return E.__incrementalDOMData;var I=E.nodeType===1?E.localName:E.nodeName,T=E.nodeType===1?E.getAttribute("key"):null;B=sxJ(E,I,E.nodeType===1?T||B:null);if(E.nodeType===1&&(E=E.attributes,I=E.length)){T=B._attrsArr||(B._attrsArr=CyG(I*2));for(var e=0,c=0;e<I;e+=1,c+=2){var Y=E[e],v=Y.value;T[c]=Y.name;T[c+1]=v}}return B};
ugt=function(E,B,I,T,e){return B==I&&T==e};
Lgc=function(E){for(var B=nd,I=MS();I!==E;){var T=I.nextSibling;B.removeChild(I);Hh.deleted.push(I);I=T}};
MS=function(){return NS?NS.nextSibling:nd.firstChild};
gt=function(){NS=MS()};
Olt=function(E,B,I){gt();var T;a:{if(T=NS){do{var e=T,c=E,Y=B,v=O_(e,Y);if(x3f(e,c,v.nameOrCtor,Y,v.key))break a}while(B&&(T=T.nextSibling))}T=null}T||(E==="#text"?(I=S2.createTextNode(""),sxJ(I,"#text",null),E=I):(T=S2,e=nd,typeof E==="function"?T=new E:T=(e=E==="svg"?"http://www.w3.org/2000/svg":E==="math"?"http://www.w3.org/1998/Math/MathML":e==null||O_(e).nameOrCtor==="foreignObject"?null:e.namespaceURI)?T.createElementNS(e,E):T.createElement(E),sxJ(T,E,B),E=T,I&&E.setAttribute("nonce",I)),Hh.created.push(E),
T=E);I=T;if(I!==NS){if(GGc.indexOf(I)>=0)for(E=nd,B=I.nextSibling,T=NS;T!==null&&T!==I;)e=T.nextSibling,E.insertBefore(T,B),T=e;else nd.insertBefore(I,NS);NS=I}};
nvi=function(E,B,I){Olt(E,B,I);nd=NS;NS=null;return nd};
MnF=function(){Lgc(null);NS=nd;nd=nd.parentNode};
Jx=function(){NS=nd.lastChild};
gvc=function(E,B){B=B===void 0?{}:B;var I=B.matches===void 0?ugt:B.matches;return function(T,e,c){var Y=Hh,v=S2,y=GGc,Z=XX,P=rt,z=NS,m=nd,u=x3f;S2=T.ownerDocument;Hh=new HlB(T);x3f=I;XX=[];rt=[];NS=null;var x=nd=T.parentNode,M,N=N7Q.call(T);if((M=N.nodeType===11||N.nodeType===9?N.activeElement:null)&&T.contains(M)){for(N=[];M!==x;)N.push(M),M=M.parentNode||(x?M.host:null);x=N}else x=[];GGc=x;try{return E(T,e,c)}finally{T=Hh,bQ&&T.deleted.length>0&&bQ(T.deleted),S2=v,Hh=Y,x3f=u,XX=Z,rt=P,NS=z,nd=m,
GGc=y}}};
S4B=function(E,B,I,T){oJ.push(d36);oJ.push(E);oJ.push(B);oJ.push(I);oJ.push(T)};
Wgi=function(E,B,I){var T=rt;B=B._attrsArr||(B._attrsArr=CyG(T.length));for(var e=!B.length||!1,c=0;c<T.length;c+=2){var Y=T[c];if(e)B[c]=Y;else if(B[c]!==Y)break;var v=T[c+1];if(e||B[c+1]!==v)B[c+1]=v,S4B(E,Y,v,I)}if(c<T.length||c<B.length){for(c=e=c;c<B.length;c+=2)Ax[B[c]]=B[c+1];for(c=e;c<T.length;c+=2)e=T[c],Y=T[c+1],Ax[e]!==Y&&S4B(E,e,Y,I),B[c]=e,B[c+1]=Y,delete Ax[e];xp(B,T.length);for(var y in Ax)S4B(E,y,void 0,I),delete Ax[y]}E=JIf;JIf=I=oJ.length;for(y=E;y<I;y+=5)(0,oJ[y])(oJ[y+1],oJ[y+
2],oJ[y+3],oJ[y+4]);JIf=E;xp(oJ,E);xp(T,0)};
kp=function(E){Olt("#text",null);var B=NS;var I=O_(B);if(I.text!==E){I=I.text=E;for(var T=1;T<arguments.length;T+=1)I=(0,arguments[T])(I);B.data!==I&&(B.data=I)}};
jxQ=function(E,B,I){if(I===!1&&XnB.has(B))wni(E,B,null);else if(B!=="idomKey"&&B!=="skip"&&B!=="skipchildren"&&B!=="children"&&B!=="el"){if(B.startsWith("on"))if(B[2]===":"){if(I===void 0||I===null){var T;(T=Kx.handleError)==null||T.call.apply(T,[Kx].concat(_.ad(Ld(Error("Vb`"+B),E.tagName))));E[B]=void 0;return}if(typeof I!=="object"||I===null)throw Error("Wb`"+B+"`"+typeof I);if(typeof I.getFn!=="function")throw Error("Xb`"+B+"`"+Object.keys(I));var e=I.getFn(0),c=B.slice(3);if((T=Ph())&&E["on"+
c]===void 0)E.addEventListener(c,e),_.dt(function(){return void E.removeEventListener(c,e)});
else if(T||!rIi.includes(c))E["on"+c]=e}else{blG(E,B,I);return}else if(B.startsWith("data-")&&typeof I==="string")try{I=ov4(I)}catch(Y){I="zSoyz"}typeof I!=="function"||E._disposeEffects!=null?(Kx.enableAttributeSanitization&&(I=vvD(E.tagName,B,I)),B==="style"?AIt(E,B,I):B.startsWith("prop:")?(B=B.slice(5),E[B]=I):blG(E,B,I)):(E._signalProps||(E._signalProps=[]),E._signalValues||(E._signalValues=[]),E._signalProps.push(B))}};
U34=function(E,B,I){I=(I===void 0?{}:I).isReactive;if(B==null?0:B.el){var T=B.el;if(typeof T==="function")T(E);else{var e;(e=T.onRender)==null||e.call(T,E);E._disposeRef||(E._disposeRef=function(){var c;(c=T.onUnmount)==null||c.call(T);delete E._disposeRef},I&&_.dt(function(){var c;
return void((c=E._disposeRef)==null?void 0:c.call(E))}))}}};
kGF=function(E){return F4f(E)&&tx in E};
tnJ=function(E){return kGF(E)?E[tx].flattened:E};
fDc=function(E,B){var I=_.aG.apply(2,arguments),T;B=(T=B)!=null?T:{};T={};return T.type=E,T.props=B,T.children=I,T[fd]=!0,T};
_.VS=function(E){return E.children};
qS=function(E){var B=VnG!==fDc;VnG=E?q4J:fDc;return B};
FX=function(E){return _.B6(E)?"nodeType"in E:!1};
D0=function(){return document.createTextNode("")};
Kd=function(E){E=document.createTextNode(String(E));E._isSignalTextNode=!0;return E};
Fgf=function(E){var B=document.createElement("div");if(!(E instanceof P1)){if(E.contentKind!==RJ)throw Error("Tb");E=z1(E.toString())}_.M7(B,E);E=_.p(B.childNodes);for(var I=E.next();!I.done;I=E.next())I.value._isSafeOrSanitizedHtmlNode=!0;return B};
Er=function(E){E=typeof E;return E==="string"||E==="number"||E==="boolean"};
D3i=function(E){return E instanceof DK||T1(E)||"function"==typeof _.gf&&E instanceof _.gf||!1};
Kgc=function(E,B){var I=E.parentElement;if(!I)return B;I.replaceChild(B,E);return B};
R_t=function(E,B){var I=E[0].parentElement;if(I)if(E[0].previousSibling||E[E.length-1].nextSibling){I.insertBefore(B,E[0]);for(var T=E.length-1;T>=0;T--)I.removeChild(E[T])}else I.textContent="",I.appendChild(B);return B};
EVf=function(E,B){if(E[0].parentElement)for(var I=E[0].parentElement,T=B.length,e=E.length,c=T,Y=0,v=0,y=E[e-1].nextSibling,Z=null;Y<e||v<c;)if(E[Y]===B[v])Y++,v++;else{for(;E[e-1]===B[c-1];)e--,c--;if(e===Y)for(var P=c<T?v?B[v-1].nextSibling:B[c-v]:y;v<c;){var z=B[v++];I.insertBefore(z,P)}else if(c===v)for(;Y<e;)P=E[Y],Z&&Z.has(P)||I.removeChild(P),Y++;else if(E[Y]===B[c-1]&&B[v]===E[e-1])P=E[--e].nextSibling,I.insertBefore(B[v++],E[Y++].nextSibling),I.insertBefore(B[--c],P),E[e]=B[c];else{if(!Z)for(Z=
new Map,P=v;P<c;)Z.set(B[P],P++);P=Z.get(E[Y]);if(P==null)I.removeChild(E[Y]),Y++;else if(v<P&&P<c){z=Y;for(var m=1,u=void 0;++z<e&&z<c&&(u=Z.get(E[z]))!=null&&u===P+m;)m++;if(m>P-v)for(z=E[Y];v<P;)I.insertBefore(B[v++],z);else I.replaceChild(B[v++],E[Y++])}else Y++}}return B};
$Wi=function(E){if(Array.isArray(E)){if(E.length>1)throw Error("fc`"+E.length+"`"+E.map(B9f).join(", "));E=E[0]}if(E==null)return null;if(!(E instanceof _.Lr)){var B,I;if((B=window)==null?0:(I=B.trustedTypes)==null?0:I.isScript(E))throw Error("ec");if(String(E).trim().length===0)return null;throw Error("gc`"+B9f(E));}return E};
Iai=function(E){if(Array.isArray(E)){if(E.length>1)throw Error("hc`"+E.length+"`"+E.map(B9f).join(", "));E=E[0]}if(E==null)return null;if(!shG(E)){if(String(E).trim().length===0)return null;throw Error("ic`"+B9f(E));}return E};
B9f=function(E){return"("+typeof E+") "+(E!=null&&typeof E==="object"?E.constructor.name:typeof E)+" "+E};
$P=function(E,B){function I(){e=!1;B.isControlFlowComponent&&yS++;var c=T[0],Y=T[tx].flattened,v=qS(!0);try{var y=E(),Z=T9c(c,y,T);Array.isArray(Z)||(T[tx].flattened=[Z]);var P=T[tx].flattened;if(Y&&(!Array.isArray(Y)||Y.length!==0)){var z=Array.isArray(Y)?Y[0]:Y,m=z[BA],u=z._disposeEffects;z._disposeEffects=void 0;z=Array.isArray(P)?P[0]:P;z[BA]=m;z[BA]&&(z[BA].numNodes=z===P?1:P.length);z._disposeEffects=u}T[0]=Z;B.isControlFlowComponent&&fZf(!1)}catch(x){throw B.isControlFlowComponent&&fZf(!0),
x;}finally{qS(v)}}
B=B===void 0?{}:B;var T=el6(),e=!0;_.QS(function(){(laQ==null?0:laQ.logger)&&!e?laQ.logger.logGraft(T[0],I):I()},B.debugName);
return T};
T9c=function(E,B,I){for(;typeof B==="function";)B=B();if(B!=null&&B[fd]){var T,e,c;(c=Kx.handleError)==null||c.call.apply(c,[Kx].concat(_.ad(Ld(Error("jc`"+((T=B.type)==null?void 0:T.TAG_NAME)),(e=B.type)==null?void 0:e.TAG_NAME))))}if(E==null)return B==null?D0():Er(B)?Kd(B):D3i(B)?Kd(B.toString()):FX(B)?B:B.length===0?D0():cKt(B,I);if(FX(E)){if(B==null)return Kgc(E,D0());if(Er(B))return iic(E,B);if(D3i(B))return iic(E,B.toString());if(FX(B))return Kgc(E,B);if(B.length===0)return Kgc(E,D0());B=cKt(B,
I);EVf([E],I[tx].flattened);return B}E=II(E);if(B==null)return R_t(E,D0());if(Er(B))return R_t(E,Kd(B));if(D3i(B))return R_t(E,Kd(B.toString()));if(FX(B))return EVf(E,[B])[0];if(B.length===0)return R_t(E,D0());B=cKt(B,I);EVf(E,I[tx].flattened);return B};
iic=function(E,B){E.nodeType===Node.TEXT_NODE?E.textContent!==String(B)&&(E.textContent=String(B)):E=Kgc(E,Kd(B));return E};
II=function(E,B,I){return pCf(E,B!=null?B:[],I===void 0?!1:I)};
cKt=function(E,B){var I=II(E,void 0,!0);if(I.length===0)return D0();B[tx].flattened=I;return E};
pCf=function(E,B,I,T,e){B=B===void 0?[]:B;I=I===void 0?!1:I;e=e===void 0?-1:e;if(E==null)return B;if(E instanceof Tb)return E=E.render(),pCf(E,B,I,T,e);if(FX(B)&&B.nodeType===Node.ELEMENT_NODE)switch(B.tagName){case "SCRIPT":I=$Wi(E);I!==null&&_.Of(B,I);return;case "STYLE":I=Iai(E);I!==null&&(B.textContent=_.u54(I));return}Er(E)&&(E=Kd(E),T&&I&&(T[e]=E));if(E!=null&&E.contentKind===RJ||E instanceof P1){I=Fgf(E);I=Array.from(I.childNodes);I=_.p(I);for(E=I.next();!E.done;E=I.next())YGi(B,E.value);return B}D3i(E)&&
(E=Kd(E.toString()),T&&I&&(T[e]=E));if(FX(E))return YGi(B,E);if(Array.isArray(E)){for(var c=0;c<E.length;c++)pCf(E[c],B,I,E,c);return B}if(typeof E==="function"){E=$P(E,{debugName:"qmF2ne"})[0];if(Array.isArray(E)){I=_.p(E);for(E=I.next();!E.done;E=I.next())YGi(B,E.value);return B}T&&I&&(T[e]=E);return YGi(B,E)}if(E!=null&&E[fd]){T=qS(!0);e=VnG;try{c=e.apply(null,[E.type,E.props].concat(_.ad(E.children)))}finally{qS(T)}return pCf(c,B,I)}var Y;(Y=Kx.handleError)==null||Y.call.apply(Y,[Kx].concat(_.ad(Ld(Error("kc")))));
return B};
el6=function(E){var B={};B=Object.assign([],(B[tx]={flattened:[]},B));if(!E)return B;B[0]=cKt(E,B);return B};
YGi=function(E,B){Array.isArray(E)?E.push(B):E.appendChild(B);return E};
eI=function(E){if(!Kx.enableLazyTsx)return E;if(Array.isArray(E)){for(var B=0;B<E.length;B++)E[B]=eI(E[B]);return E}return E instanceof Tb?(E=E.render(),eI(E)):E};
yKB=function(E,B){var I,T,e=aac(E),c=function(u){T=u;u=qS(!0);var x=E_(lW);tI4("render",e);try{I=eI(E(B))}finally{ftG("render",e),E_(x),qS(u)}};
c=Kx.enableContextPerComponent?qrc(c,e):hx(c,Kx.alwaysTrackContexts||!!U7);K4D(T);if(!B.renderedFromIdom){var Y=fx(T);try{return vVi(E,B,I),I}finally{fx(Y)}}!kGF(I)&&Array.isArray(I)&&(I=el6(I));var v=tnJ(I);Y=Array.isArray(v)?v[0]:v;var y=!1;if(Y){var Z,P=(Z=B==null?void 0:B.idomKey)!=null?Z:E;Z=v!==Y;Y._disposeEffects=c;var z=Y[BA]||{},m=kGF(I)?I:z.sourceDynamicRange;Object.assign(z,{key:P,numNodes:Z?v.length:1,context:T,higherOrder:!!Y[BA],sourceDynamicRange:m});Y[BA]=z}else y=!0;(function(){var u=
fx(T);try{vVi(E,B,v)}finally{fx(u)}})();
y&&c();return I};
aac=function(E){var B,I;return(I=(B=E.debugName)!=null?B:E.name)!=null?I:"[component]"};
CEt=function(E){var B={},I;for(I in E)B={prev$jscomp$23:void 0,next$jscomp$25:void 0},B.prev$jscomp$23=cA[I],B.next$jscomp$25=E[I],cA[I]=function(T){return function(){var e=_.aG.apply(0,arguments);T.prev$jscomp$23.apply(null,_.ad(e));T.next$jscomp$25.apply(null,_.ad(e))}}(B)};
wCD=function(){if(Ph())throw Error("lc");return aI};
Zic=function(E,B){if(!E.__unmounted&&B){E.__unmounted=!0;try{E.didUnmount()}catch(e){var I,T;(T=Kx.handleError)==null||T.call.apply(T,[Kx].concat(_.ad(Ld(e,(I=E.JSC$8152___type)==null?void 0:I.TAG_NAME))))}cA.didUnmount(E);E.el=null;B.__instance&&delete B.__instance}};
zlJ=function(E,B,I){E._signalProps!=null&&E._disposeEffects==null&&((I===void 0?0:I)?E._disposeEffects=hx(function(){return void PE4(E,B)},Kx.alwaysTrackContexts||!!U7):PE4(E,B))};
PE4=function(E,B){_.QS(function(){for(var I=E._signalProps,T=E._signalValues,e=0;e<I.length;e++){var c=I[e],Y=B[c]();T[e]!==Y&&(T[e]=Y,jxQ(E,c,Y))}},"e3YVbb")};
mW6=function(E,B,I){var T,e=[];E._disposeEffects=hx(function(){_.QS(function(){var c=I();if(c===null||c===void 0)c="";if(Er(c)||c===null)T!=null||(T=document.createTextNode("")),T.parentNode!==E&&(T._isSignalTextNode=!0,E.insertBefore(T,B)),T.textContent=String(c);else if(c!=null&&c.contentKind===RJ||c instanceof P1){for(var Y=e.length>0?e[e.length-1].nextSibling:B,v=_.p(e),y=v.next();!y.done;y=v.next())E.removeChild(y.value);c=Fgf(c);e=Array.from(c.childNodes);c=_.p(e);for(v=c.next();!v.done;v=c.next())E.insertBefore(v.value,
Y)}else throw y=(v=(Y=Cd)==null?void 0:Y.name)!=null?v:"unknown",Error("ac`"+y+"`"+typeof c);},"VvDgC")},Kx.alwaysTrackContexts||!!U7)};
hlD=function(E,B){var I=_.aG.apply(2,arguments);B!=null||(B={});return!Kx.enableLazyTsx||Cd!=null&&!Ph()?QHF(E,B,I):new dWt(E,B,I)};
QHF=function(E,B,I){if(E===_.VS)return I;if(typeof E==="function")return Cd&&!Ph()&&(B.renderedFromIdom=!0),VgG({component:E,debugInstance:B.debugInstance,fn:function(){var c=sHF(E,B,I);if(c)return c;I.length>0&&(B.children=I.length===1?I[0]:I);c=B;if(E.componentType!==Z0)var Y=!1;else{c||(c={});var v=new vA(c,E),y=E_(lW);try{Y=v.render(c)}finally{E_(y)}Y instanceof HTMLElement&&(Y.__instance=v,v.el=Y,v.JSC$8152___type=E,E.TAG_NAME=Y.tagName.toLowerCase(),cA.didPatch(v))}return Y===!1?yKB(E,B):Y}});
var T=u4f(E,B),e;for(e in B)jxQ(T,e,B[e]);zlJ(T,B);II(I,T);U34(T,B,{isReactive:!0});LFG(T,B);return T};
u4f=function(E,B){E=(xWG.has(E.toLowerCase())?0:GFB.has(E.startsWith("svg:")?E.replace("svg:",""):E))?document.createElementNS("http://www.w3.org/2000/svg",E.startsWith("svg:")?E.replace("svg:",""):E):Oic(E,B)||document.createElement(E);E[nVJ]=!0;return E};
MsB=function(E){if(E){var B;(B=E._disposeRef)==null||B.call(E);var I;(I=E._disposeEffects)==null||I.call(E);E.__instance&&E.__instance instanceof Cc&&(B=E.__instance,Zic(B,E),B instanceof vA&&B.disposeEffects());for(B=0;B<E.childNodes.length;B++)MsB(E.childNodes[B])}};
N9B=function(E){Hic.push(E)===1&&requestAnimationFrame(function(){setTimeout(function(){var B=[].concat(_.ad(Hic));Hic=[];B=_.p(B);for(var I=B.next();!I.done;I=B.next()){I=I.value;try{for(var T=0;T<I.length;T++)MsB(I[T])}catch(e){T=I=void 0,(T=(I=Kx).handleError)==null||T.call.apply(T,[I].concat(_.ad(Ld(e))))}}})})};
_.w=function(E,B){return VnG.apply(null,[E,B].concat(_.ad(_.aG.apply(2,arguments))))};
SGi=function(){var E=document.body.firstElementChild;window.ng||E.__ngContext__||(E.__ngContext__={},E.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=gVF)};
_.wU=function(E){var B=E.cond;if(B===void 0)return E.else&&E.else();var I=_.aJ(function(){return!!B()},void 0,"y0Xknf"),T=function(){var e=B();
if(!e){var c;(c=Kx.handleError)==null||c.call.apply(c,[Kx].concat(_.ad(Ld(JK6.nonNullableCondIsNull()))))}return e};
return $P(function(){var e=I(),c;hx(function(){var Y=E_(lW);try{c=eI(e?E.then(T):E.else&&E.else())}finally{E_(Y)}},!0);
return c},{debugName:E.debugInstance,
isControlFlowComponent:!0})};
WFQ=function(E){return _.wU(E)};
_.Zt=function(E){return E.keyBy==="INDEX"?XCQ(E):rKJ(E)};
bid=function(E){E=_.p(E);for(var B=E.next();!B.done;B=E.next()){var I=void 0;(I=B.value)==null||I()}};
rKJ=function(E){var B=E.keyBy===void 0||E.keyBy==="REFERENCE",I=B?function(P){return P}:E.keyBy,T=[],e=[],c=[],Y=[],v=[],y=[],Z=!0;
_.dt(function(){bid(Y)});
return $P(function(){var P=E.each(),z=P.length;if(z===0){if(T.length===0&&!Z)return c;bid(Y);T=P;e=[];for(P=0;P<T.length;P++)e.push(I(T[P]));c=[];Y=[];v=[];y=[];E.fallback&&(Y[0]=oVi(function(){c[0]=eI(E.fallback())}));
Z=!1;return c}for(var m=new AKJ,u=T.length-1;u>=0;u--)m.push(e[u],u);u=Array(z);for(var x=Array(z),M=Array(z),N=Array(z),W=Array(B?0:z),U={i$jscomp$485:0};U.i$jscomp$485<z;U={i$jscomp$485:U.i$jscomp$485,item$jscomp$103:void 0,key$jscomp$523:void 0},U.i$jscomp$485++){U.item$jscomp$103=P[U.i$jscomp$485];U.key$jscomp$523=I(U.item$jscomp$103);var q=m.pop(U.key$jscomp$523);q!=null?(M[U.i$jscomp$485]=c[q],x[U.i$jscomp$485]=e[q],u[U.i$jscomp$485]=Y[q],N[U.i$jscomp$485]=v[q],B||(W[U.i$jscomp$485]=y[q]),vh(function(f){return function(){N[f.i$jscomp$485](f.i$jscomp$485);
if(!B)W[f.i$jscomp$485](f.item$jscomp$103)}}(U)),delete Y[q]):u[U.i$jscomp$485]=oVi(function(f){return function(){var ed=_.p(_.lQ(f.i$jscomp$485,void 0,"g4fKif")),K=ed.next().value;
ed=ed.next().value;N[f.i$jscomp$485]=ed;x[f.i$jscomp$485]=f.key$jscomp$523;if(B)M[f.i$jscomp$485]=eI(E.children(f.item$jscomp$103,K));else{var p4=_.p(_.lQ(f.item$jscomp$103,void 0,"Ile0Kc"));ed=p4.next().value;p4=p4.next().value;W[f.i$jscomp$485]=p4;M[f.i$jscomp$485]=eI(E.children(ed,K))}}}(U))}bid(Y);
T=P;e=x;c=M;Y=u;v=N;y=W;Z=!1;return M},{debugName:E.debugInstance,
isControlFlowComponent:!0})};
XCQ=function(E){var B=[],I=[],T=[],e=[],c=!1;_.dt(function(){for(var Y=_.p(e),v=Y.next();!v.done;v=Y.next())v=v.value,v()});
return $P(function(){var Y=E.each();c&&Y.length>0&&(e.pop()(),B.pop(),c=!1);for(var v=Array(Y.length),y={i$jscomp$486:0};y.i$jscomp$486<Y.length;y={i$jscomp$486:y.i$jscomp$486},y.i$jscomp$486++)if(y.i$jscomp$486<B.length)B[y.i$jscomp$486]!==Y[y.i$jscomp$486]&&(vh(function(P){return function(){return void I[P.i$jscomp$486](Y[P.i$jscomp$486])}}(y)),B[y.i$jscomp$486]=Y[y.i$jscomp$486]),v[y.i$jscomp$486]=T[y.i$jscomp$486];
else{var Z=oVi(function(P){return function(){B[P.i$jscomp$486]=Y[P.i$jscomp$486];var z=_.p(_.lQ(Y[P.i$jscomp$486],void 0,"QVJXFd")),m=z.next().value;z=z.next().value;I[P.i$jscomp$486]=z;v[P.i$jscomp$486]=eI(E.children(m,P.i$jscomp$486))}}(y));
e[y.i$jscomp$486]=Z}for(;B.length>Y.length;)B.pop(),e.pop()(),I.pop();Y.length===0&&!c&&E.fallback&&(y=oVi(function(){v[0]=eI(E.fallback())}),e[0]=y,c=!0);
return T=v},{debugName:E.debugInstance,
isControlFlowComponent:!0})};
oVi=function(E){var B=U7;return hx(function(I){var T=E_(lW);try{I.parent=B,E(I)}finally{E_(T)}},!1)};
_.PA=function(E){return E};
_.zb=function(E){return{isDefault:!0,children:E.children}};
_.m4=function(E){var B=jHD(E),I=_.aJ(function(){return UWF(B)},void 0,"BHmkEe");
return $P(function(){var T=I(),e;hx(function(){var c=E_(lW);try{e=eI(T())}finally{E_(c)}});
return e},{debugName:E.debugInstance,
isControlFlowComponent:!0})};
jHD=function(E){E=E.children;return Array.isArray(E)?E:[E]};
kFc=function(E){var B=E.props;E=E.getChildren()[0];return B.when?{when:B.when,children:E}:{isDefault:!0,children:E}};
UWF=function(E){var B=function(){return null};
E=_.p(E);for(var I=E.next();!I.done;I=E.next())if(I=I.value,I!=null&&I[fd]&&(I=I.type===_.zb?{isDefault:!0,children:I.children[0]}:{when:I.props.when,children:I.children[0]}),I instanceof Tb&&(I=kFc(I)),I.isDefault)B=I.children;else if(I.when())return I.children;return B};
tst=function(E){var B=null,I;return{value:null,onRender:function(T){if(I&&T!==I){var e;(e=B)==null||e();I._disposeRef=void 0}I=T;B=E(T)||null},
onUnmount:function(){var T;(T=B)==null||T();B=null}}};
VsB=function(E){var B=wCD();if(B==null)throw faD.PRIMITIVE_INVALID_HOOK_CALL();var I=B.hookCounter++;B.hooks||(B.hooks=[]);var T=B.hooks;T[I]||(T[I]={key:E,host:B});if(E!==T[I].key){var e,c;E=((e=B.JSC$8152___type)==null?void 0:e.name)||((c=B.functionComponent)==null?void 0:c.name);throw faD.OUT_OF_ORDER_HOOK_CALL(E);}return T[I]};
qGd=function(E,B){return!E||E.length!==(B==null?void 0:B.length)||E.some(function(I,T){return I!==B[T]})};
Q9=function(E,B){var I=VsB("onChange"),T=wCD();qGd(I.deps,B)&&(I.deps=B,I.pendingEffect=E,T.__syncEffects||(T.__syncEffects=[]),T.__syncEffects.push(I))};
RlD=function(E,B){var I;B!=null?I=B:I=_.hpQ(document).getAppContext();I.get(FFG).JSC$25299_getEventTarget().dispatchEvent(new DWf(KFJ,E,RJ))};
_.dU=function(E,B){var I=I===void 0?{enableDevtools:!1}:I;var T=z5(function(){var e=E_(lW);try{return hx(function(){var c=_.hpQ(_.Zs(E)),Y;var v=W4d({rootElement:{value:E},appContext:I.appContext||(c==null?void 0:(Y=c.getOptionalAppContext)==null?void 0:Y.call(c)),dispatcher:c});c=fx(v);v=qS(!0);yS++;try{II(B(),E),fZf(!1)}catch(y){throw fZf(!0),y;}finally{qS(v),fx(c)}},!1)}finally{E_(e)}});
E[EqF]=!0;I.legacyTriggerSoyRendererEvents&&RlD(E,I.appContext);return function(){E.textContent="";T();E[EqF]=!1}};
_.hA=function(E){if(kRQ(Ra)){var B;(B=Kx.handleError)==null||B.call.apply(B,[Kx].concat(_.ad(Ld(Error("$b")))))}var I=U7,T=Cd;Promise.resolve().then(function(){I&&!I.isDisposed&&z5(function(){var e=fx(I);try{E()}finally{fx(e)}},{stack:T})})};
sr=function(E,B){Q9(function(){return e2(E)},B)};
_.uW=function(E){Ph()?_.hA(function(){e2(E)}):Q9(function(){return e2(E)},[])};
$qd=function(E){var B=[].concat(_.ad(E));E.length=0;E=_.p(B);for(B=E.next();!B.done;B=E.next()){B=B.value;Bli(B);var I=B.pendingEffect;B.pendingEffect=null;if(I=I==null?void 0:I())B.pendingCleanup=I}};
Bli=function(E){var B=E.pendingCleanup;E.pendingCleanup=null;B==null||B()};
IAF=function(E,B){if(Ph())return E();var I=VsB("useMemoInternal");qGd(I.deps,B)&&(I.deps=B,I.value=E());return I.value};
Lc=function(E,B){return IAF(E,B)};
xP=function(E){return IAF(E,[])};
TlD=function(){var E=_.aG.apply(0,arguments),B=xP(function(){return E.map(function(I){return _.lQ(I,void 0,"lnSD0c")})});
sr(function(){for(var I=0;I<E.length;I++)(0,B[I][1])(E[I])},E);
return B.map(function(I){return _.p(I).next().value})};
Gb=function(E){return xP(function(){return{value:E}})};
_.Or=function(E,B){if(!E)return null;E=Object.keys(E);E=_.p(E);for(var I=E.next();!I.done;I=E.next()){I=I.value;var T=I.toLowerCase();if(T.indexOf(B,T.length-B.length)>-1)return I}return null};
_.MD=function(){var E=arguments,B=_.nc;E.length>1?B[E[0]]=E[1]:E.length===1&&Object.assign(B,E[0])};
_.HA=function(E,B){return E in _.nc?_.nc[E]:B};
_.gU=function(E,B){return!!_.HA(E,B)};
e0B=function(E){var B=_.nc.EXPERIMENT_FLAGS;return B?B[E]:void 0};
cJG=function(E){lA4.forEach(function(B){return B(E)})};
_.JA=function(E){return E&&window.yterr?function(){try{return E.apply(this,arguments)}catch(B){_.SI(B)}}:E};
_.SI=function(E){var B=_.WA("yt.logging.errors.log");B?B(E,"ERROR",void 0,void 0,void 0,void 0,void 0):(B=_.HA("ERRORS",[]),B.push([E,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.MD("ERRORS",B));cJG(E)};
_.Xx=function(E,B,I,T,e){var c=_.WA("yt.logging.errors.log");c?c(E,"WARNING",B,I,T,void 0,e):(c=_.HA("ERRORS",[]),c.push([E,"WARNING",B,I,T,void 0,e]),_.MD("ERRORS",c))};
pu6=function(E,B){B=E.split(B);for(var I={},T=0,e=B.length;T<e;T++){var c=B[T].split("=");if(c.length===1&&c[0]||c.length===2)try{var Y=ig4(c[0]||""),v=ig4(c[1]||"");if(Y in I){var y=I[Y];Array.isArray(y)?_.K4(y,v):I[Y]=[y,v]}else I[Y]=v}catch(m){var Z=m,P=c[0],z=String(pu6);Z.args=[{key:P,value:c[1],query:E,method:Ypc===z?"unchanged":z}];aAc.hasOwnProperty(P)||_.Xx(Z)}}return I};
vq4=function(E){var B=[];_.a_.forEach(E,function(I,T){var e=_.rU(T);_.bW(Array.isArray(I)?I:[I],function(c){c==""?B.push(e):B.push(e+"="+_.rU(c))})});
return B.join("&")};
_.oI=function(E){E.charAt(0)==="?"&&(E=E.substring(1));return pu6(E,"&")};
_.AA=function(E){return E.indexOf("?")!==-1?(E=(E||"").split("#")[0],E=E.split("?",2),_.oI(E.length>1?E[1]:E[0])):{}};
_.jI=function(E,B){return yJQ(E,B||{},!0)};
CZF=function(E,B){return yJQ(E,B||{},!1)};
yJQ=function(E,B,I){var T=E.split("#",2);E=T[0];T=T.length>1?"#"+T[1]:"";var e=E.split("?",2);E=e[0];e=_.oI(e[1]||"");for(var c in B)if(I||!_.a_.containsKey(e,c))e[c]=B[c];return _.Ur(E,e)+T};
V9=function(E){if(!B)var B=window.location.href;var I=_.kP(E)[1]||null,T=_.tA(E);return I&&T?fc(E,B):T?_.tA(B)===T&&(Number(_.kP(B)[4]||null)||null)===(Number(_.kP(E)[4]||null)||null):!0};
_.Zgt=function(E){E=wuc(E);return E===null?!1:E[0]==="com"&&E[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
wuc=function(E){E=_.tA(E);return E!==null?E.split(".").reverse():null};
ig4=function(E){return E&&E.match(PZF)?E:qD(E)};
_.Fx=function(E){return new z0G(E)};
_.Q=function(){mqi||(mqi=new QjG);return mqi};
h0G=function(E){var B=_.Dt,I,T;_.a(function(e){I=_.Q();return(T=I.resolve(_.Fx(B)))?(E(T),e.return(Promise.resolve(T))):e.return(I.resolve(new dq4(B)).then(function(c){E(c);return c}))})};
_.d=function(E){E=Kc(E);return typeof E==="string"&&E==="false"?!1:!!E};
_.RI=function(E,B){E=Kc(E);return E===void 0&&B!==void 0?B:Number(E||0)};
sjQ=function(E){E=Kc(E);return Array.isArray(E)?_.yl(E,function(B){return Number(B||0)}):[Number(E||0)]};
_.EF=function(E){E=Kc(E);return E!==void 0?String(E):""};
_.B7=function(E){E=Kc(E);return Array.isArray(E)?_.yl(E,function(B){return String(B||"")}):[String(E||"")]};
u74=function(){return _.HA("EXPERIMENTS_TOKEN","")};
Kc=function(E){return _.HA("EXPERIMENT_FLAGS",{})[E]};
LSi=function(){for(var E=[],B=_.HA("EXPERIMENTS_FORCED_FLAGS",{}),I=_.p(Object.keys(B)),T=I.next();!T.done;T=I.next())T=T.value,E.push({key:T,value:String(B[T])});I=_.HA("EXPERIMENT_FLAGS",{});T=_.p(Object.keys(I));for(var e=T.next();!e.done;e=T.next())e=e.value,e.startsWith("force_")&&B[e]===void 0&&E.push({key:e,value:String(I[e])});return E};
GkG=function(){if(!xqD)return null;var E=xqD();return"open"in E?E:null};
Ogi=function(E){switch(Ik(E)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Ik=function(E){return E&&"status"in E?E.status:-1};
_.TR=function(E,B){typeof E==="function"&&(E=_.JA(E));return window.setTimeout(E,B)};
_.eg=function(E,B){typeof E==="function"&&(E=_.JA(E));return window.setInterval(E,B)};
_.lK=function(E){window.clearTimeout(E)};
M$G=function(E){E=_.AA(E);for(var B=_.p(nqt),I=B.next();!I.done;I=B.next())if(E[I.value]!==void 0)return!0;return!1};
gqG=function(E,B,I,T,e,c,Y,v){I=I===void 0?"GET":I;T=T===void 0?"":T;v=v===void 0?!1:v;var y=GkG();if(!y)return null;var Z=function(){(y&&"readyState"in y?y.readyState:0)===4&&B&&_.JA(B)(y)};
"onloadend"in y?y.addEventListener("loadend",Z,!1):y.onreadystatechange=Z;_.d("debug_forward_web_query_parameters")&&(E=HgG(E,window.location.search));y.open(I,E,!0);c&&(y.responseType=c);Y&&(y.withCredentials=!0);I=I==="POST"&&(window.FormData===void 0||!(T instanceof FormData));if(e=NlF(E,e))for(var P in e)y.setRequestHeader(P,e[P]),"content-type"===P.toLowerCase()&&(I=!1);I&&y.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(v&&"setAttributionReporting"in XMLHttpRequest.prototype){E=
{eventSourceEligible:!0,triggerEligible:!1};try{y.setAttributionReporting(E)}catch(z){_.Xx(z)}}y.send(T);return y};
NlF=function(E,B){B=B===void 0?{}:B;var I=V9(E),T=_.HA("INNERTUBE_CLIENT_NAME"),e=_.d("web_ajax_ignore_global_headers_if_set"),c;for(c in Sp6){var Y=_.HA(Sp6[c]),v=c==="X-Goog-AuthUser"||c==="X-Goog-PageId";c!=="X-Goog-Visitor-Id"||Y||(Y=_.HA("VISITOR_DATA"));var y;if(!(y=!Y)){if(!(y=I||(_.tA(E)?!1:!0))){y=E;var Z;if(Z=_.d("add_auth_headers_to_remarketing_google_dot_com_ping")&&c==="Authorization"&&(T==="TVHTML5"||T==="TVHTML5_UNPLUGGED"||T==="TVHTML5_SIMPLY"))Z=wuc(y),Z=Z===null?!1:Z[1]==="google"?
!0:Z[2]==="google"?Z[0]==="au"&&Z[1]==="com"?!0:Z[0]==="uk"&&Z[1]==="co"?!0:!1:!1;Z&&(y=_.c7(y)||"",y=y.split("/"),y="/"+(y.length>1?y[1]:""),Z=y==="/pagead");y=Z?!0:!1}y=!y}y||e&&B[c]!==void 0||T==="TVHTML5_UNPLUGGED"&&v||(B[c]=Y)}"X-Goog-EOM-Visitor-Id"in B&&"X-Goog-Visitor-Id"in B&&delete B["X-Goog-Visitor-Id"];if(I||!_.tA(E))B["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(I||!_.tA(E)){try{var P=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(z){}P&&(B["X-YouTube-Time-Zone"]=
P)}document.location.hostname.endsWith("youtubeeducation.com")||!I&&_.tA(E)||(B["X-YouTube-Ad-Signals"]=vq4(JJi()));return B};
_.WSB=function(E,B){var I=_.tA(E);_.d("debug_handle_relative_url_for_query_forward_killswitch")||!I&&V9(E)&&(I=document.location.hostname);var T=_.c7(E);T=(I=I&&(I.endsWith("youtube.com")||I.endsWith("youtube-nocookie.com")))&&T&&T.startsWith("/api/");if(!I||T)return E;var e=_.oI(B),c={};_.bW(nqt,function(Y){e[Y]&&(c[Y]=e[Y])});
return CZF(E,c)};
Xu6=function(E,B){B.method="POST";B.postParams||(B.postParams={});return _.iK(E,B)};
rJf=function(E,B){var I=_.HA("XSRF_FIELD_NAME"),T;B.headers&&(T=B.headers["Content-Type"]);return!B.excludeXsrf&&(!_.tA(E)||B.withCredentials||_.tA(E)===document.location.hostname)&&B.method==="POST"&&(!T||T==="application/x-www-form-urlencoded")&&!(B.postParams&&B.postParams[I])};
_.iK=function(E,B){var I=B.format||"JSON";E=bgG(E,B);var T=oqi(E,B),e=!1,c=AJD(E,function(y){if(!e){e=!0;v&&_.lK(v);var Z=Ogi(y),P=null,z=400<=y.status&&y.status<500,m=500<=y.status&&y.status<600;if(Z||z||m)P=jjc(E,I,y,B.convertToSafeHtml);Z&&(Z=UqD(I,y,P));P=P||{};z=B.context||_.$i;Z?B.onSuccess&&B.onSuccess.call(z,y,P):B.onError&&B.onError.call(z,y,P);B.onFinish&&B.onFinish.call(z,y,P)}},B.method,T,B.headers,B.responseType,B.withCredentials);
T=B.timeout||0;if(B.onTimeout&&T>0){var Y=B.onTimeout;var v=_.TR(function(){e||(e=!0,c.abort(),_.lK(v),Y.call(B.context||_.$i,c))},T)}return c};
bgG=function(E,B){B.includeDomain&&(E=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+E);var I=_.HA("XSRF_FIELD_NAME");if(B=B.urlParams)B[I]&&delete B[I],E=_.jI(E,B);return E};
oqi=function(E,B){var I=_.HA("XSRF_FIELD_NAME"),T=_.HA("XSRF_TOKEN"),e=B.postBody||"",c=B.postParams;rJf(E,B)&&(c||(c={}),c[I]=T);(_.d("ajax_parse_query_data_only_when_filled")&&c&&Object.keys(c).length>0||c)&&typeof e==="string"&&(e=_.oI(e),_.a_.extend(e,c),e=B.postBodyFormat&&B.postBodyFormat==="JSON"?JSON.stringify(e):_.pF(e));c=e||c&&!_.a_.isEmpty(c);!kkc&&c&&B.method!=="POST"&&(kkc=!0,_.SI(Error("Fc")));return e};
jjc=function(E,B,I,T){var e=null;switch(B){case "JSON":try{var c=I.responseText}catch(Y){throw T=Error("Gc"),T.params=E,_.Xx(T),Y;}E=I.getResponseHeader("Content-Type")||"";c&&E.indexOf("json")>=0&&(c.substring(0,5)===")]}'\n"&&(c=c.substring(5)),e=JSON.parse(c));break;case "XML":if(E=(E=I.responseXML)?t$f(E):null)e={},_.bW(E.getElementsByTagName("*"),function(Y){e[Y.tagName]=fA4(Y)})}T&&V$6(e);
return e};
V$6=function(E){if(_.B6(E))for(var B in E)B==="html_content"||ic(B,"_html")?E[B]=z1(E[B]):V$6(E[B])};
UqD=function(E,B,I){if(B&&B.status===204)return!0;switch(E){case "JSON":return!!I;case "XML":return Number(I&&I.return_code)===0;case "RAW":return!0;default:return!!I}};
t$f=function(E){return E?(E=("responseXML"in E?E.responseXML:E).getElementsByTagName("root"))&&E.length>0?E[0]:null:null};
fA4=function(E){var B="";_.bW(E.childNodes,function(I){B+=I.nodeValue});
return B};
qpB=function(E){if(E.name==="JavaException")return!0;E=E.stack;return E.includes("chrome://")||E.includes("chrome-extension://")||E.includes("moz-extension://")};
_.Ya=function(E){_.Cx.call(this);this.JSC$8333_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!E};
DqB=function(E,B){var I=E.length,T=0,e=function(){return E.charCodeAt(T++)};
do{var c=FSi(e);if(c===Infinity)break;var Y=c>>3;switch(c&7){case 0:c=FSi(e);if(Y===B)return c;break;case 1:if(Y===B)return;T+=8;break;case 2:c=FSi(e);if(Y===B)return E.substr(T,c);T+=c;break;case 5:if(Y===B)return;T+=4;break;default:return}}while(T<I)};
FSi=function(E){var B=E(),I=B&127;if(B<128)return I;B=E();I|=(B&127)<<7;if(B<128)return I;B=E();I|=(B&127)<<14;if(B<128)return I;B=E();return B<128?I|(B&127)<<21:Infinity};
R0G=function(E,B,I,T){if(E)if(Array.isArray(E)){var e=T;for(T=0;T<E.length&&!(E[T]&&(e+=KSi(T,E[T],B,I),e>500));T++);T=e}else if(typeof E==="object")for(e in E){if(E[e]){var c=e;var Y=E[e],v=B,y=I;c=typeof Y!=="string"||c!=="clickTrackingParams"&&c!=="trackingParams"?0:(Y=DqB(atob(Y.replace(/-/g,"+").replace(/_/g,"/")),2))?KSi(c+".ve",Y,v,y):0;T+=c;T+=KSi(e,E[e],B,I);if(T>500)break}}else I[B]=ak(E),T+=I[B].length;else I[B]=ak(E),T+=I[B].length;return T};
KSi=function(E,B,I,T){I+="."+E;E=ak(B);T[I]=E;return I.length+E.length};
ak=function(E){try{return(typeof E==="string"?E:String(JSON.stringify(E))).substr(0,500)}catch(B){return"unable to serialize "+typeof E+" ("+B.message+")"}};
Eht=function(E){switch(E){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}};
_.yZ=function(E,B,I,T,e){_.v7.set(E,B,{maxAge:I,path:"/",domain:T===void 0?"youtube.com":T,secure:e===void 0?!1:e})};
_.BGt=function(E,B,I){_.v7.remove(E,B===void 0?"/":B,I===void 0?"youtube.com":I)};
_.CF=function(){if(_.d("embeds_web_enable_cookie_detection_fix")){if(!_.$i.navigator.cookieEnabled)return!1}else if(!_.v7.isEnabled())return!1;if(!_.v7.isEmpty())return!0;_.d("embeds_web_enable_cookie_detection_fix")?_.v7.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.v7.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.v7.get("TESTCOOKIESENABLED")!=="1")return!1;_.v7.remove("TESTCOOKIESENABLED");return!0};
$Ut=function(){var E=_.$i.navigator;return E?E.connection:void 0};
I$c=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(E){}};
_.eS6=function(){var E=$Ut();if(E){var B=TGF[E.type||"unknown"]||"CONN_UNKNOWN";E=TGF[E.effectiveType||"unknown"]||"CONN_UNKNOWN";B==="CONN_CELLULAR_UNKNOWN"&&E!=="CONN_UNKNOWN"&&(B=E);if(B!=="CONN_UNKNOWN")return B;if(E!=="CONN_UNKNOWN")return E}};
cQF=function(){var E=$Ut();if(E!=null&&E.effectiveType)return l$d.hasOwnProperty(E.effectiveType)?l$d[E.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.ZZ=function(){try{return _.w0(),!0}catch(E){return!1}};
_.w0=function(E){if(_.HA("DATASYNC_ID")!==void 0)return _.HA("DATASYNC_ID");throw new _.P7("Datasync ID not set",E===void 0?"unknown":E);};
_.zR=function(E){this.mechanism=E};
mz=function(E){this.mechanism=E};
QZ=function(E){this.storage_=E;this.cachedIsStorageAvailable_=null};
iCJ=function(){var E=null;try{E=_.$i.localStorage||null}catch(B){}QZ.call(this,E)};
pU6=function(){var E=null;try{E=_.$i.sessionStorage||null}catch(B){}QZ.call(this,E)};
d0=function(E,B){this.mechanism_=E;this.JSC$8435_prefix_=B+"::"};
_.Yi6=function(E){var B=new iCJ;return B.isAvailable()?E?new d0(B,E):B:null};
_.a$G=function(E){var B=new pU6;return B.isAvailable()?E?new d0(B,E):B:null};
yQi=function(){var E;return(E=vhf())==null?void 0:E.get("LAST_RESULT_ENTRY_KEY",!0)};
_.uK=function(E){CTc||(_.hg?_.hg.logError(E):(_.sF.push({type:"ERROR",payload:E}),_.sF.length>10&&_.sF.shift()))};
LF=function(E,B){CTc||(_.hg?_.hg.logEvent(E,B):(_.sF.push({type:"EVENT",eventType:E,payload:B}),_.sF.length>10&&_.sF.shift()))};
xa=function(E){if(E.indexOf(":")>=0)throw Error("Nc");};
GR=function(E){return E.substr(0,E.indexOf(":"))||E};
PTc=function(){return(wUt||ZCc)&&OF("applewebkit")&&!OF("version")&&(!OF("safari")||OF("gsa/"))};
OF=function(E){var B=_.C4();return B?B.toLowerCase().indexOf(E)>=0:!1};
QOc=function(E,B,I,T){B=GR(B);var e=E instanceof Error?E:Error("Oc`"+E);if(e instanceof nF)return e;E={objectStoreNames:I,dbName:B,dbVersion:T};if(e.name==="QuotaExceededError")return new nF("QUOTA_EXCEEDED",E);if(_.M_&&e.name==="UnknownError")return new nF("QUOTA_MAYBE_EXCEEDED",E);if(e instanceof zSi)return new nF("MISSING_INDEX",Object.assign({},E,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&mUc.some(function(c){return e.message.includes(c)}))return new nF("EXECUTE_TRANSACTION_ON_CLOSED_DB",
E);
if(e.name==="AbortError")return new nF("UNKNOWN_ABORT",E,e.message);e.args=[Object.assign({},E,{name:"IdbError",originalName:e.name})];e.level="WARNING";return e};
H7=function(E,B,I){var T=yQi();return new nF("IDB_NOT_SUPPORTED",{context:{caller:E,publicName:B,version:I,hasSucceededOnce:T==null?void 0:T.hasSucceededOnce}})};
dUJ=function(E){if(!E)throw Error();throw E;};
hSi=function(E){return E};
sOt=function(E,B,I){var T=function(){try{E.removeEventListener("success",e),E.removeEventListener("error",c)}catch(Y){}},e=function(){B(E.result);
T()},c=function(){I(E.error);
T()};
E.addEventListener("success",e);E.addEventListener("error",c)};
u$J=function(E){return new Promise(function(B,I){sOt(E,B,I)})};
Sg=function(E){return new N_(new g0(function(B,I){sOt(E,B,I)}))};
LMc=function(E,B){return new N_(new g0(function(I,T){var e=function(){var c=E?B(E):null;c?c.then(function(Y){E=Y;e()},T):I()};
e()}))};
Gx4=function(E,B,I){return new Promise(function(T,e){var c=B!==void 0?self.indexedDB.open(E,B):self.indexedDB.open(E);var Y=I.blocked,v=I.blocking,y=I.terminated,Z=I.upgrade,P=I.closed,z,m=function(){z||(z=new Jg(c.result,{closed:P}));return z};
c.addEventListener("upgradeneeded",function(u){try{if(u.newVersion===null)throw Error("Tc");if(c.transaction===null)throw Error("Uc");u.dataLoss&&u.dataLoss!=="none"&&LF("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:GR(E)});var x=m(),M=new xU6(c.transaction);Z&&Z(x,function(N){return u.oldVersion<N&&u.newVersion>=N},M);
M.done.catch(function(N){e(N)})}catch(N){e(N)}});
c.addEventListener("success",function(){var u=c.result;v&&u.addEventListener("versionchange",function(){v(m())});
u.addEventListener("close",function(){LF("IDB_UNEXPECTEDLY_CLOSED",{dbName:GR(E),dbVersion:u.version});y&&y()});
T(m())});
c.addEventListener("error",function(){e(c.error)});
Y&&c.addEventListener("blocked",function(){Y()})})};
OCt=function(E,B,I){I=I===void 0?{}:I;return Gx4(E,B,I)};
_.XQ=function(E,B){B=B===void 0?{}:B;var I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return _.q7(Y,2),I=self.indexedDB.deleteDatabase(E),T=B,(e=T.blocked)&&I.addEventListener("blocked",function(){e()}),_.C(Y,u$J(I),4);
if(Y.nextAddress!=2)return _.W7(Y,0);c=_.RG(Y);throw QOc(c,E,"",-1);})};
McB=function(E,B){var I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,_.r0(nhd,B),2);I=T.yieldResult;return T.return(_.bK(I,["databases"],{enableRetries:!0,mode:"readwrite"},function(e){var c=e.objectStore("databases");return c.get(E.actualName).then(function(Y){if(Y?E.actualName!==Y.actualName||E.publicName!==Y.publicName||E.userIdentifier!==Y.userIdentifier:1)return c.put(E).then(function(){})})}))})};
_.ok=function(E,B){var I;return _.a(function(T){if(T.nextAddress==1)return E?_.C(T,_.r0(nhd,B),2):T.return();I=T.yieldResult;return T.return(I.delete("databases",E))})};
_.HCi=function(E,B){var I,T;return _.a(function(e){return e.nextAddress==1?(I=[],_.C(e,_.r0(nhd,B),2)):e.nextAddress!=3?(T=e.yieldResult,_.C(e,_.bK(T,["databases"],{enableRetries:!0,mode:"readonly"},function(c){I.length=0;return Ag(c.objectStore("databases"),{},function(Y){E(Y.getValue())&&I.push(Y.getValue());return Y.continue()})}),3)):e.return(I)})};
NGc=function(E,B){return _.HCi(function(I){return I.publicName===E&&I.userIdentifier!==void 0},B)};
JQi=function(){var E,B,I,T;return _.a(function(e){switch(e.nextAddress){case 1:E=yQi();if((B=E)==null?0:B.hasSucceededOnce)return e.return(!0);var c;if(c=ghG)c=/WebKit\/([0-9]+)/.exec(_.C4()),c=!!(c&&parseInt(c[1],10)>=600);c&&(c=/WebKit\/([0-9]+)/.exec(_.C4()),c=!(c&&parseInt(c[1],10)>=602));if(c||jg)return e.return(!1);try{if(I=self,!(I.indexedDB&&I.IDBIndex&&I.IDBKeyRange&&I.IDBObjectStore))return e.return(!1)}catch(Y){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);
_.q7(e,2);T={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.C(e,McB(T,SiF),4);case 4:return _.C(e,_.ok("yt-idb-test-do-not-use",SiF),5);case 5:return e.return(!0);case 2:return _.RG(e),e.return(!1)}})};
XUQ=function(){if(WMG!==void 0)return WMG;CTc=!0;return WMG=JQi().then(function(E){CTc=!1;var B;if((B=vhf())!=null&&B.expiringStorage_){var I;B={hasSucceededOnce:((I=yQi())==null?void 0:I.hasSucceededOnce)||E};var T;(T=vhf())==null||T.set("LAST_RESULT_ENTRY_KEY",B,2592E3,!0)}return E})};
UF=function(){return _.WA("ytglobal.idbToken_")||void 0};
_.tg=function(){var E=UF();return E?Promise.resolve(E):XUQ().then(function(B){(B=B?SiF:void 0)&&_.ka("ytglobal.idbToken_",B);return B})};
rQd=function(E){if(!_.ZZ())throw E=new nF("AUTH_INVALID",{dbName:E}),_.uK(E),E;var B=_.w0();return{actualName:E+":"+B,publicName:E,userIdentifier:B}};
bCG=function(E,B,I,T){var e,c,Y,v,y,Z;return _.a(function(P){switch(P.nextAddress){case 1:return c=(e=Error().stack)!=null?e:"",_.C(P,_.tg(),2);case 2:Y=P.yieldResult;if(!Y)throw v=H7("openDbImpl",E,B),_.d("ytidb_async_stack_killswitch")||(v.stack=v.stack+"\n"+c.substring(c.indexOf("\n")+1)),_.uK(v),v;xa(E);y=I?{actualName:E,publicName:E,userIdentifier:void 0}:rQd(E);_.q7(P,3);return _.C(P,McB(y,Y),5);case 5:return _.C(P,OCt(y.actualName,B,T),6);case 6:return P.return(P.yieldResult);case 3:return Z=
_.RG(P),_.q7(P,7),_.C(P,_.ok(y.actualName,Y),9);case 9:_.W7(P,8);break;case 7:_.RG(P);case 8:throw Z;}})};
ohf=function(E,B,I){I=I===void 0?{}:I;return bCG(E,B,!1,I)};
AQD=function(E,B,I){I=I===void 0?{}:I;return bCG(E,B,!0,I)};
jOD=function(E,B){B=B===void 0?{}:B;var I,T;return _.a(function(e){if(e.nextAddress==1)return _.C(e,_.tg(),2);if(e.nextAddress!=3){I=e.yieldResult;if(!I)return e.return();xa(E);T=rQd(E);return _.C(e,_.XQ(T.actualName,B),3)}return _.C(e,_.ok(T.actualName,I),0)})};
UUf=function(E,B,I){E=E.map(function(T){return _.a(function(e){return e.nextAddress==1?_.C(e,_.XQ(T.actualName,B),2):_.C(e,_.ok(T.actualName,I),0)})});
return Promise.all(E).then(function(){})};
kxF=function(E){var B=B===void 0?{}:B;var I,T;return _.a(function(e){if(e.nextAddress==1)return _.C(e,_.tg(),2);if(e.nextAddress!=3){I=e.yieldResult;if(!I)return e.return();xa(E);return _.C(e,NGc(E,I),3)}T=e.yieldResult;return _.C(e,UUf(T,B,I),0)})};
tcD=function(E,B){B=B===void 0?{}:B;var I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,_.tg(),2);if(T.nextAddress!=3){I=T.yieldResult;if(!I)return T.return();xa(E);return _.C(T,_.XQ(E,B),3)}return _.C(T,_.ok(E,I),0)})};
fF=function(E,B){return f$J(E,B)};
qic=function(E){return _.r0(Vci(),E)};
FMc=function(E,B,I,T){var e,c,Y;return _.a(function(v){switch(v.nextAddress){case 1:return e={config:E,hashData:B,timestamp:T!==void 0?T:(0,_.VZ)()},_.C(v,qic(I),2);case 2:return c=v.yieldResult,_.C(v,c.clear("hotConfigStore"),3);case 3:return _.C(v,c.put("hotConfigStore",e),4);case 4:return Y=v.yieldResult,v.return(Y)}})};
DUD=function(E,B,I,T,e){var c,Y,v;return _.a(function(y){switch(y.nextAddress){case 1:return c={config:E,hashData:B,configData:I,timestamp:e!==void 0?e:(0,_.VZ)()},_.C(y,qic(T),2);case 2:return Y=y.yieldResult,_.C(y,Y.clear("coldConfigStore"),3);case 3:return _.C(y,Y.put("coldConfigStore",c),4);case 4:return v=y.yieldResult,y.return(v)}})};
KMc=function(E){var B,I;return _.a(function(T){return T.nextAddress==1?_.C(T,qic(E),2):T.nextAddress!=3?(B=T.yieldResult,I=void 0,_.C(T,_.bK(B,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(e){return _.q_(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(c){I=c.getValue()})}),3)):T.return(I)})};
RSB=function(E){var B,I;return _.a(function(T){return T.nextAddress==1?_.C(T,qic(E),2):T.nextAddress!=3?(B=T.yieldResult,I=void 0,_.C(T,_.bK(B,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(e){return _.q_(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(c){I=c.getValue()})}),3)):T.return(I)})};
EOF=function(){return _.a(function(E){return _.C(E,kxF("ytGcfConfig"),0)})};
BYG=function(){return"INNERTUBE_API_KEY"in _.nc&&"INNERTUBE_API_VERSION"in _.nc};
_.FQ=function(){return{innertubeApiKey:_.HA("INNERTUBE_API_KEY"),innertubeApiVersion:_.HA("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.HA("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.HA("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.HA("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.HA("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.HA("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.HA("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.HA("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.gU("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.gU("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.HA("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.iOi=function(E){var B={client:{hl:E.innertubeContextHostLanguage,gl:E.innertubeContextGeoLocation,clientName:E.innertubeContextClientName,clientVersion:E.innertubeContextClientVersion,configInfo:E.innertubeContextClientConfigInfo}};navigator.userAgent&&(B.client.userAgent=String(navigator.userAgent));var I=_.$i.devicePixelRatio;I&&I!=1&&(B.client.screenDensityFloat=String(I));I=u74();I!==""&&(B.client.experimentsToken=I);I=LSi();I.length>0&&(B.request={internalExperimentFlags:I});$fD(E,void 0,B);
IBG(void 0,B);TYD(void 0,B);eDf(E,void 0,B);lBJ(void 0,B);_.d("start_client_gcf")&&cl6(void 0,B);_.HA("DELEGATED_SESSION_ID")&&!_.d("pageid_as_header_web")&&(B.user={onBehalfOfUser:_.HA("DELEGATED_SESSION_ID")});!_.d("fill_delegate_context_in_gel_killswitch")&&(E=_.HA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(B.user=Object.assign({},B.user,{serializedDelegationContext:E}));E=_.HA("INNERTUBE_CONTEXT");var T;if(_.d("enable_persistent_device_token")&&(E==null?0:(T=E.client)==null?0:T.rolloutToken)){var e;
B.client.rolloutToken=E==null?void 0:(e=E.client)==null?void 0:e.rolloutToken}T=Object;e=T.assign;E=B.client;I={};for(var c=_.p(Object.entries(_.oI(_.HA("DEVICE","")))),Y=c.next();!Y.done;Y=c.next()){var v=_.p(Y.value);Y=v.next().value;v=v.next().value;Y==="cbrand"?I.deviceMake=v:Y==="cmodel"?I.deviceModel=v:Y==="cbr"?I.browserName=v:Y==="cbrver"?I.browserVersion=v:Y==="cos"?I.osName=v:Y==="cosver"?I.osVersion=v:Y==="cplatform"&&(I.platform=v)}B.client=e.call(T,E,I);return B};
$fD=function(E,B,I){E=E.innertubeContextClientName;if(E==="WEB"||E==="MWEB"||E===1||E===2)if(B){I=_.DZ(B,pN4,96)||new pN4;var T=YK6();T=Object.keys(aBQ).indexOf(T);T=T===-1?null:T;T!==null&&_.KF(I,3,T);_.fX(B,96,I)}else I&&(I.client.mainAppWebInfo=(T=I.client.mainAppWebInfo)!=null?T:{},I.client.mainAppWebInfo.webDisplayMode=YK6())};
IBG=function(E,B){var I=_.WA("yt.embedded_player.embed_url");I&&(E?(B=_.DZ(E,vOi,7)||new vOi,_.$r(B,4,I),_.fX(E,7,B)):B&&(B.thirdParty={embedUrl:I}))};
TYD=function(E,B){var I;if(_.d("web_log_memory_total_kbytes")&&((I=_.$i.navigator)==null?0:I.deviceMemory)){var T;I=(T=_.$i.navigator)==null?void 0:T.deviceMemory;E?_.Rk(E,95,xI(I*1E6)):B&&(B.client.memoryTotalKbytes=""+I*1E6)}};
eDf=function(E,B,I){if(E.appInstallData)if(B){var T;I=(T=_.DZ(B,E4,62))!=null?T:new E4;_.$r(I,6,E.appInstallData);_.fX(B,62,I)}else I&&(I.client.configInfo=I.client.configInfo||{},I.client.configInfo.appInstallData=E.appInstallData)};
lBJ=function(E,B){var I=_.eS6();I&&(E?_.KF(E,61,ylD[I]):B&&(B.client.connectionType=I));_.d("web_log_effective_connection_type")&&(I=cQF())&&(E?_.KF(E,94,C1G[I]):B&&(B.client.effectiveConnectionType=I))};
_.P1c=function(E,B,I){I=I===void 0?{}:I;var T={};_.HA("EOM_VISITOR_DATA")?T={"X-Goog-EOM-Visitor-Id":_.HA("EOM_VISITOR_DATA")}:T={"X-Goog-Visitor-Id":I.visitorData||_.HA("VISITOR_DATA","")};if(B&&B.includes("www.youtube-nocookie.com"))return T;B=I.authorization||_.HA("AUTHORIZATION");B||(E?B="Bearer "+_.WA("gapi.auth.getToken")().access_token:(wNi.instance||(wNi.instance=new wNi),E=ZOi(),_.d("pageid_as_header_web")||delete E["X-Goog-PageId"],T=Object.assign({},T,E)));B&&(T.Authorization=B);return T};
cl6=function(E,B){var I=zDG();if(I){var T=I.coldConfigData,e=I.coldHashData;I=I.hotHashData;if(E){var c;B=(c=_.DZ(E,E4,62))!=null?c:new E4;T=_.$r(B,1,T);_.$r(T,3,e).setHotHashData(I);_.fX(E,62,B)}else B&&(B.client.configInfo=B.client.configInfo||{},T&&(B.client.configInfo.coldConfigData=T),e&&(B.client.configInfo.coldHashData=e),I&&(B.client.configInfo.hotHashData=I))}};
Bn=function(E){for(var B=E.length;--B>=0;)E[B]=0};
mfQ=function(E,B,I,T,e){this.static_tree=E;this.extra_bits=B;this.extra_base=I;this.elems=T;this.max_length=e;this.has_stree=E&&E.length};
Q2D=function(E,B){this.dyn_tree=E;this.max_code=0;this.stat_desc=B};
$v=function(E,B){E.pending_buf[E.pending++]=B&255;E.pending_buf[E.pending++]=B>>>8&255};
Ix=function(E,B,I){E.bi_valid>16-I?(E.bi_buf|=B<<E.bi_valid&65535,$v(E,E.bi_buf),E.bi_buf=B>>16-E.bi_valid,E.bi_valid+=I-16):(E.bi_buf|=B<<E.bi_valid&65535,E.bi_valid+=I)};
TG=function(E,B,I){Ix(E,I[B*2],I[B*2+1])};
dfi=function(E,B){var I=0;do I|=E&1,E>>>=1,I<<=1;while(--B>0);return I>>>1};
hDi=function(E,B,I){var T=Array(16),e=0,c;for(c=1;c<=15;c++)T[c]=e=e+I[c-1]<<1;for(I=0;I<=B;I++)e=E[I*2+1],e!==0&&(E[I*2]=dfi(T[e]++,e))};
s2c=function(E){var B;for(B=0;B<286;B++)E.dyn_ltree[B*2]=0;for(B=0;B<30;B++)E.dyn_dtree[B*2]=0;for(B=0;B<19;B++)E.bl_tree[B*2]=0;E.dyn_ltree[512]=1;E.opt_len=E.static_len=0;E.last_lit=E.matches=0};
uDc=function(E){E.bi_valid>8?$v(E,E.bi_buf):E.bi_valid>0&&(E.pending_buf[E.pending++]=E.bi_buf);E.bi_buf=0;E.bi_valid=0};
Lri=function(E,B,I){uDc(E);$v(E,I);$v(E,~I);en.arraySet(E.pending_buf,E.window,B,I,E.pending);E.pending+=I};
xfQ=function(E,B,I,T){var e=B*2,c=I*2;return E[e]<E[c]||E[e]===E[c]&&T[B]<=T[I]};
Gad=function(E,B,I){for(var T=E.heap[I],e=I<<1;e<=E.heap_len;){e<E.heap_len&&xfQ(B,E.heap[e+1],E.heap[e],E.depth)&&e++;if(xfQ(B,T,E.heap[e],E.depth))break;E.heap[I]=E.heap[e];I=e;e<<=1}E.heap[I]=T};
NYi=function(E,B,I){var T=0;if(E.last_lit!==0){do{var e=E.pending_buf[E.d_buf+T*2]<<8|E.pending_buf[E.d_buf+T*2+1];var c=E.pending_buf[E.l_buf+T];T++;if(e===0)TG(E,c,B);else{var Y=ly[c];TG(E,Y+256+1,B);var v=OO4[Y];v!==0&&(c-=nOt[Y],Ix(E,c,v));e--;Y=e<256?iy[e]:iy[256+(e>>>7)];TG(E,Y,I);v=MYt[Y];v!==0&&(e-=HOJ[Y],Ix(E,e,v))}}while(T<E.last_lit)}TG(E,256,B)};
gOB=function(E,B){var I=B.dyn_tree,T=B.stat_desc.static_tree,e=B.stat_desc.has_stree,c=B.stat_desc.elems,Y,v=-1;E.heap_len=0;E.heap_max=573;for(Y=0;Y<c;Y++)I[Y*2]!==0?(E.heap[++E.heap_len]=v=Y,E.depth[Y]=0):I[Y*2+1]=0;for(;E.heap_len<2;){var y=E.heap[++E.heap_len]=v<2?++v:0;I[y*2]=1;E.depth[y]=0;E.opt_len--;e&&(E.static_len-=T[y*2+1])}B.max_code=v;for(Y=E.heap_len>>1;Y>=1;Y--)Gad(E,I,Y);y=c;do Y=E.heap[1],E.heap[1]=E.heap[E.heap_len--],Gad(E,I,1),T=E.heap[1],E.heap[--E.heap_max]=Y,E.heap[--E.heap_max]=
T,I[y*2]=I[Y*2]+I[T*2],E.depth[y]=(E.depth[Y]>=E.depth[T]?E.depth[Y]:E.depth[T])+1,I[Y*2+1]=I[T*2+1]=y,E.heap[1]=y++,Gad(E,I,1);while(E.heap_len>=2);E.heap[--E.heap_max]=E.heap[1];Y=B.dyn_tree;y=B.max_code;T=B.stat_desc.static_tree;e=B.stat_desc.has_stree;c=B.stat_desc.extra_bits;var Z=B.stat_desc.extra_base,P=B.stat_desc.max_length,z,m=0;for(z=0;z<=15;z++)E.bl_count[z]=0;Y[E.heap[E.heap_max]*2+1]=0;for(B=E.heap_max+1;B<573;B++){var u=E.heap[B];z=Y[Y[u*2+1]*2+1]+1;z>P&&(z=P,m++);Y[u*2+1]=z;if(!(u>
y)){E.bl_count[z]++;var x=0;u>=Z&&(x=c[u-Z]);var M=Y[u*2];E.opt_len+=M*(z+x);e&&(E.static_len+=M*(T[u*2+1]+x))}}if(m!==0){do{for(z=P-1;E.bl_count[z]===0;)z--;E.bl_count[z]--;E.bl_count[z+1]+=2;E.bl_count[P]--;m-=2}while(m>0);for(z=P;z!==0;z--)for(u=E.bl_count[z];u!==0;)T=E.heap[--B],T>y||(Y[T*2+1]!==z&&(E.opt_len+=(z-Y[T*2+1])*Y[T*2],Y[T*2+1]=z),u--)}hDi(I,v,E.bl_count)};
SKB=function(E,B,I){var T,e=-1,c=B[1],Y=0,v=7,y=4;c===0&&(v=138,y=3);B[(I+1)*2+1]=65535;for(T=0;T<=I;T++){var Z=c;c=B[(T+1)*2+1];++Y<v&&Z===c||(Y<y?E.bl_tree[Z*2]+=Y:Z!==0?(Z!==e&&E.bl_tree[Z*2]++,E.bl_tree[32]++):Y<=10?E.bl_tree[34]++:E.bl_tree[36]++,Y=0,e=Z,c===0?(v=138,y=3):Z===c?(v=6,y=3):(v=7,y=4))}};
JlB=function(E,B,I){var T,e=-1,c=B[1],Y=0,v=7,y=4;c===0&&(v=138,y=3);for(T=0;T<=I;T++){var Z=c;c=B[(T+1)*2+1];if(!(++Y<v&&Z===c)){if(Y<y){do TG(E,Z,E.bl_tree);while(--Y!==0)}else Z!==0?(Z!==e&&(TG(E,Z,E.bl_tree),Y--),TG(E,16,E.bl_tree),Ix(E,Y-3,2)):Y<=10?(TG(E,17,E.bl_tree),Ix(E,Y-3,3)):(TG(E,18,E.bl_tree),Ix(E,Y-11,7));Y=0;e=Z;c===0?(v=138,y=3):Z===c?(v=6,y=3):(v=7,y=4)}}};
WrF=function(E){var B=4093624447,I;for(I=0;I<=31;I++,B>>>=1)if(B&1&&E.dyn_ltree[I*2]!==0)return 0;if(E.dyn_ltree[18]!==0||E.dyn_ltree[20]!==0||E.dyn_ltree[26]!==0)return 1;for(I=32;I<256;I++)if(E.dyn_ltree[I*2]!==0)return 1;return 0};
pl=function(E,B,I){E.pending_buf[E.d_buf+E.last_lit*2]=B>>>8&255;E.pending_buf[E.d_buf+E.last_lit*2+1]=B&255;E.pending_buf[E.l_buf+E.last_lit]=I&255;E.last_lit++;B===0?E.dyn_ltree[I*2]++:(E.matches++,B--,E.dyn_ltree[(ly[I]+256+1)*2]++,E.dyn_dtree[(B<256?iy[B]:iy[256+(B>>>7)])*2]++);return E.last_lit===E.lit_bufsize-1};
vn=function(E,B){E.msg=ax[B];return B};
yI=function(E){for(var B=E.length;--B>=0;)E[B]=0};
Cl=function(E){var B=E.state,I=B.pending;I>E.avail_out&&(I=E.avail_out);I!==0&&(en.arraySet(E.output,B.pending_buf,B.pending_out,I,E.next_out),E.next_out+=I,B.pending_out+=I,E.total_out+=I,E.avail_out-=I,B.pending-=I,B.pending===0&&(B.pending_out=0))};
Pn=function(E,B){var I=E.block_start>=0?E.block_start:-1,T=E.strstart-E.block_start,e=0;if(E.level>0){E.strm.data_type===2&&(E.strm.data_type=WrF(E));gOB(E,E.l_desc);gOB(E,E.d_desc);SKB(E,E.dyn_ltree,E.l_desc.max_code);SKB(E,E.dyn_dtree,E.d_desc.max_code);gOB(E,E.bl_desc);for(e=18;e>=3&&E.bl_tree[XND[e]*2+1]===0;e--);E.opt_len+=3*(e+1)+5+5+4;var c=E.opt_len+3+7>>>3;var Y=E.static_len+3+7>>>3;Y<=c&&(c=Y)}else c=Y=T+5;if(T+4<=c&&I!==-1)Ix(E,B?1:0,3),Lri(E,I,T);else if(E.strategy===4||Y===c)Ix(E,2+(B?
1:0),3),NYi(E,w7,ZD);else{Ix(E,4+(B?1:0),3);I=E.l_desc.max_code+1;T=E.d_desc.max_code+1;e+=1;Ix(E,I-257,5);Ix(E,T-1,5);Ix(E,e-4,4);for(c=0;c<e;c++)Ix(E,E.bl_tree[XND[c]*2+1],3);JlB(E,E.dyn_ltree,I-1);JlB(E,E.dyn_dtree,T-1);NYi(E,E.dyn_ltree,E.dyn_dtree)}s2c(E);B&&uDc(E);E.block_start=E.strstart;Cl(E.strm)};
zG=function(E,B){E.pending_buf[E.pending++]=B};
mg=function(E,B){E.pending_buf[E.pending++]=B>>>8&255;E.pending_buf[E.pending++]=B&255};
rli=function(E,B){var I=E.max_chain_length,T=E.strstart,e=E.prev_length,c=E.nice_match,Y=E.strstart>E.w_size-262?E.strstart-(E.w_size-262):0,v=E.window,y=E.w_mask,Z=E.prev,P=E.strstart+258,z=v[T+e-1],m=v[T+e];E.prev_length>=E.good_match&&(I>>=2);c>E.lookahead&&(c=E.lookahead);do{var u=B;if(v[u+e]===m&&v[u+e-1]===z&&v[u]===v[T]&&v[++u]===v[T+1]){T+=2;for(u++;v[++T]===v[++u]&&v[++T]===v[++u]&&v[++T]===v[++u]&&v[++T]===v[++u]&&v[++T]===v[++u]&&v[++T]===v[++u]&&v[++T]===v[++u]&&v[++T]===v[++u]&&T<P;);
u=258-(P-T);T=P-258;if(u>e){E.match_start=B;e=u;if(u>=c)break;z=v[T+e-1];m=v[T+e]}}}while((B=Z[B&y])>Y&&--I!==0);return e<=E.lookahead?e:E.lookahead};
d7=function(E){var B=E.w_size,I;do{var T=E.window_size-E.lookahead-E.strstart;if(E.strstart>=B+(B-262)){en.arraySet(E.window,E.window,B,B,0);E.match_start-=B;E.strstart-=B;E.block_start-=B;var e=I=E.hash_size;do{var c=E.head[--e];E.head[e]=c>=B?c-B:0}while(--I);e=I=B;do c=E.prev[--e],E.prev[e]=c>=B?c-B:0;while(--I);T+=B}if(E.strm.avail_in===0)break;e=E.strm;I=E.window;c=E.strstart+E.lookahead;var Y=e.avail_in;Y>T&&(Y=T);Y===0?I=0:(e.avail_in-=Y,en.arraySet(I,e.input,e.next_in,Y,c),e.state.wrap===
1?e.adler=bOB(e.adler,I,Y,c):e.state.wrap===2&&(e.adler=QI(e.adler,I,Y,c)),e.next_in+=Y,e.total_in+=Y,I=Y);E.lookahead+=I;if(E.lookahead+E.insert>=3)for(T=E.strstart-E.insert,E.ins_h=E.window[T],E.ins_h=(E.ins_h<<E.hash_shift^E.window[T+1])&E.hash_mask;E.insert&&!(E.ins_h=(E.ins_h<<E.hash_shift^E.window[T+3-1])&E.hash_mask,E.prev[T&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=T,T++,E.insert--,E.lookahead+E.insert<3););}while(E.lookahead<262&&E.strm.avail_in!==0)};
oOc=function(E,B){for(var I;;){if(E.lookahead<262){d7(E);if(E.lookahead<262&&B===0)return 1;if(E.lookahead===0)break}I=0;E.lookahead>=3&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+3-1])&E.hash_mask,I=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart);I!==0&&E.strstart-I<=E.w_size-262&&(E.match_length=rli(E,I));if(E.match_length>=3)if(I=pl(E,E.strstart-E.match_start,E.match_length-3),E.lookahead-=E.match_length,E.match_length<=E.max_lazy_match&&E.lookahead>=3){E.match_length--;
do E.strstart++,E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+3-1])&E.hash_mask,E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart;while(--E.match_length!==0);E.strstart++}else E.strstart+=E.match_length,E.match_length=0,E.ins_h=E.window[E.strstart],E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+1])&E.hash_mask;else I=pl(E,0,E.window[E.strstart]),E.lookahead--,E.strstart++;if(I&&(Pn(E,!1),E.strm.avail_out===0))return 1}E.insert=E.strstart<2?E.strstart:2;return B===4?(Pn(E,
!0),E.strm.avail_out===0?3:4):E.last_lit&&(Pn(E,!1),E.strm.avail_out===0)?1:2};
hI=function(E,B){for(var I,T;;){if(E.lookahead<262){d7(E);if(E.lookahead<262&&B===0)return 1;if(E.lookahead===0)break}I=0;E.lookahead>=3&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+3-1])&E.hash_mask,I=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart);E.prev_length=E.match_length;E.prev_match=E.match_start;E.match_length=2;I!==0&&E.prev_length<E.max_lazy_match&&E.strstart-I<=E.w_size-262&&(E.match_length=rli(E,I),E.match_length<=5&&(E.strategy===1||E.match_length===3&&
E.strstart-E.match_start>4096)&&(E.match_length=2));if(E.prev_length>=3&&E.match_length<=E.prev_length){T=E.strstart+E.lookahead-3;I=pl(E,E.strstart-1-E.prev_match,E.prev_length-3);E.lookahead-=E.prev_length-1;E.prev_length-=2;do++E.strstart<=T&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+3-1])&E.hash_mask,E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart);while(--E.prev_length!==0);E.match_available=0;E.match_length=2;E.strstart++;if(I&&(Pn(E,!1),E.strm.avail_out===0))return 1}else if(E.match_available){if((I=
pl(E,0,E.window[E.strstart-1]))&&Pn(E,!1),E.strstart++,E.lookahead--,E.strm.avail_out===0)return 1}else E.match_available=1,E.strstart++,E.lookahead--}E.match_available&&(pl(E,0,E.window[E.strstart-1]),E.match_available=0);E.insert=E.strstart<2?E.strstart:2;return B===4?(Pn(E,!0),E.strm.avail_out===0?3:4):E.last_lit&&(Pn(E,!1),E.strm.avail_out===0)?1:2};
AlG=function(E,B){for(var I,T,e,c=E.window;;){if(E.lookahead<=258){d7(E);if(E.lookahead<=258&&B===0)return 1;if(E.lookahead===0)break}E.match_length=0;if(E.lookahead>=3&&E.strstart>0&&(T=E.strstart-1,I=c[T],I===c[++T]&&I===c[++T]&&I===c[++T])){for(e=E.strstart+258;I===c[++T]&&I===c[++T]&&I===c[++T]&&I===c[++T]&&I===c[++T]&&I===c[++T]&&I===c[++T]&&I===c[++T]&&T<e;);E.match_length=258-(e-T);E.match_length>E.lookahead&&(E.match_length=E.lookahead)}E.match_length>=3?(I=pl(E,1,E.match_length-3),E.lookahead-=
E.match_length,E.strstart+=E.match_length,E.match_length=0):(I=pl(E,0,E.window[E.strstart]),E.lookahead--,E.strstart++);if(I&&(Pn(E,!1),E.strm.avail_out===0))return 1}E.insert=0;return B===4?(Pn(E,!0),E.strm.avail_out===0?3:4):E.last_lit&&(Pn(E,!1),E.strm.avail_out===0)?1:2};
j2G=function(E,B){for(var I;;){if(E.lookahead===0&&(d7(E),E.lookahead===0)){if(B===0)return 1;break}E.match_length=0;I=pl(E,0,E.window[E.strstart]);E.lookahead--;E.strstart++;if(I&&(Pn(E,!1),E.strm.avail_out===0))return 1}E.insert=0;return B===4?(Pn(E,!0),E.strm.avail_out===0?3:4):E.last_lit&&(Pn(E,!1),E.strm.avail_out===0)?1:2};
s4=function(E,B,I,T,e){this.good_length=E;this.max_lazy=B;this.nice_length=I;this.max_chain=T;this.func=e};
UfG=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 en.Buf16(1146);this.dyn_dtree=new en.Buf16(122);this.bl_tree=new en.Buf16(78);yI(this.dyn_ltree);yI(this.dyn_dtree);yI(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new en.Buf16(16);this.heap=new en.Buf16(573);yI(this.heap);this.heap_max=this.heap_len=0;this.depth=new en.Buf16(573);yI(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};
kaD=function(E,B){if(!E||!E.state||B>5||B<0)return E?vn(E,-2):-2;var I=E.state;if(!E.output||!E.input&&E.avail_in!==0||I.status===666&&B!==4)return vn(E,E.avail_out===0?-5:-2);I.strm=E;var T=I.last_flush;I.last_flush=B;if(I.status===42)if(I.wrap===2)E.adler=0,zG(I,31),zG(I,139),zG(I,8),I.gzhead?(zG(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name?8:0)+(I.gzhead.comment?16:0)),zG(I,I.gzhead.time&255),zG(I,I.gzhead.time>>8&255),zG(I,I.gzhead.time>>16&255),zG(I,I.gzhead.time>>
24&255),zG(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),zG(I,I.gzhead.os&255),I.gzhead.extra&&I.gzhead.extra.length&&(zG(I,I.gzhead.extra.length&255),zG(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(E.adler=QI(E.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(zG(I,0),zG(I,0),zG(I,0),zG(I,0),zG(I,0),zG(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),zG(I,3),I.status=113);else{var e=8+(I.w_bits-8<<4)<<8;e|=(I.strategy>=2||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6;I.strstart!==0&&(e|=
32);I.status=113;mg(I,e+(31-e%31));I.strstart!==0&&(mg(I,E.adler>>>16),mg(I,E.adler&65535));E.adler=1}if(I.status===69)if(I.gzhead.extra){for(e=I.pending;I.gzindex<(I.gzhead.extra.length&65535)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>e&&(E.adler=QI(E.adler,I.pending_buf,I.pending-e,e)),Cl(E),e=I.pending,I.pending!==I.pending_buf_size));)zG(I,I.gzhead.extra[I.gzindex]&255),I.gzindex++;I.gzhead.hcrc&&I.pending>e&&(E.adler=QI(E.adler,I.pending_buf,I.pending-e,e));I.gzindex===I.gzhead.extra.length&&
(I.gzindex=0,I.status=73)}else I.status=73;if(I.status===73)if(I.gzhead.name){e=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>e&&(E.adler=QI(E.adler,I.pending_buf,I.pending-e,e)),Cl(E),e=I.pending,I.pending===I.pending_buf_size)){var c=1;break}c=I.gzindex<I.gzhead.name.length?I.gzhead.name.charCodeAt(I.gzindex++)&255:0;zG(I,c)}while(c!==0);I.gzhead.hcrc&&I.pending>e&&(E.adler=QI(E.adler,I.pending_buf,I.pending-e,e));c===0&&(I.gzindex=0,I.status=91)}else I.status=91;if(I.status===
91)if(I.gzhead.comment){e=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>e&&(E.adler=QI(E.adler,I.pending_buf,I.pending-e,e)),Cl(E),e=I.pending,I.pending===I.pending_buf_size)){c=1;break}c=I.gzindex<I.gzhead.comment.length?I.gzhead.comment.charCodeAt(I.gzindex++)&255:0;zG(I,c)}while(c!==0);I.gzhead.hcrc&&I.pending>e&&(E.adler=QI(E.adler,I.pending_buf,I.pending-e,e));c===0&&(I.status=103)}else I.status=103;I.status===103&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&Cl(E),
I.pending+2<=I.pending_buf_size&&(zG(I,E.adler&255),zG(I,E.adler>>8&255),E.adler=0,I.status=113)):I.status=113);if(I.pending!==0){if(Cl(E),E.avail_out===0)return I.last_flush=-1,0}else if(E.avail_in===0&&(B<<1)-(B>4?9:0)<=(T<<1)-(T>4?9:0)&&B!==4)return vn(E,-5);if(I.status===666&&E.avail_in!==0)return vn(E,-5);if(E.avail_in!==0||I.lookahead!==0||B!==0&&I.status!==666){T=I.strategy===2?j2G(I,B):I.strategy===3?AlG(I,B):uy[I.level].func(I,B);if(T===3||T===4)I.status=666;if(T===1||T===3)return E.avail_out===
0&&(I.last_flush=-1),0;if(T===2&&(B===1?(Ix(I,2,3),TG(I,256,w7),I.bi_valid===16?($v(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)):B!==5&&(Ix(I,0,3),Lri(I,0,0),B===3&&(yI(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),Cl(E),E.avail_out===0))return I.last_flush=-1,0}if(B!==4)return 0;if(I.wrap<=0)return 1;I.wrap===2?(zG(I,E.adler&255),zG(I,E.adler>>8&255),zG(I,E.adler>>16&255),zG(I,E.adler>>24&255),zG(I,
E.total_in&255),zG(I,E.total_in>>8&255),zG(I,E.total_in>>16&255),zG(I,E.total_in>>24&255)):(mg(I,E.adler>>>16),mg(I,E.adler&65535));Cl(E);I.wrap>0&&(I.wrap=-I.wrap);return I.pending!==0?0:1};
tYD=function(E){if(!(this instanceof tYD))return new tYD(E);E=this.options=en.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},E||{});E.raw&&E.windowBits>0?E.windowBits=-E.windowBits:E.gzip&&E.windowBits>0&&E.windowBits<16&&(E.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new fBd;this.strm.avail_out=0;var B=this.strm;var I=E.level,T=E.method,e=E.windowBits,c=E.memLevel,Y=E.strategy;if(B){var v=1;I===-1&&(I=6);e<0?(v=0,e=-e):e>15&&
(v=2,e-=16);if(c<1||c>9||T!==8||e<8||e>15||I<0||I>9||Y<0||Y>4)B=vn(B,-2);else{e===8&&(e=9);var y=new UfG;B.state=y;y.strm=B;y.wrap=v;y.gzhead=null;y.w_bits=e;y.w_size=1<<y.w_bits;y.w_mask=y.w_size-1;y.hash_bits=c+7;y.hash_size=1<<y.hash_bits;y.hash_mask=y.hash_size-1;y.hash_shift=~~((y.hash_bits+3-1)/3);y.window=new en.Buf8(y.w_size*2);y.head=new en.Buf16(y.hash_size);y.prev=new en.Buf16(y.w_size);y.lit_bufsize=1<<c+6;y.pending_buf_size=y.lit_bufsize*4;y.pending_buf=new en.Buf8(y.pending_buf_size);
y.d_buf=y.lit_bufsize;y.l_buf=3*y.lit_bufsize;y.level=I;y.strategy=Y;y.method=T;if(B&&B.state){B.total_in=B.total_out=0;B.data_type=2;I=B.state;I.pending=0;I.pending_out=0;I.wrap<0&&(I.wrap=-I.wrap);I.status=I.wrap?42:113;B.adler=I.wrap===2?0:1;I.last_flush=0;if(!VYc){T=Array(16);for(c=Y=0;c<28;c++)for(nOt[c]=Y,e=0;e<1<<OO4[c];e++)ly[Y++]=c;ly[Y-1]=c;for(c=Y=0;c<16;c++)for(HOJ[c]=Y,e=0;e<1<<MYt[c];e++)iy[Y++]=c;for(Y>>=7;c<30;c++)for(HOJ[c]=Y<<7,e=0;e<1<<MYt[c]-7;e++)iy[256+Y++]=c;for(e=0;e<=15;e++)T[e]=
0;for(e=0;e<=143;)w7[e*2+1]=8,e++,T[8]++;for(;e<=255;)w7[e*2+1]=9,e++,T[9]++;for(;e<=279;)w7[e*2+1]=7,e++,T[7]++;for(;e<=287;)w7[e*2+1]=8,e++,T[8]++;hDi(w7,287,T);for(e=0;e<30;e++)ZD[e*2+1]=5,ZD[e*2]=dfi(e,5);qKc=new mfQ(w7,OO4,257,286,15);Frt=new mfQ(ZD,MYt,0,30,15);DfQ=new mfQ([],Krf,0,19,7);VYc=!0}I.l_desc=new Q2D(I.dyn_ltree,qKc);I.d_desc=new Q2D(I.dyn_dtree,Frt);I.bl_desc=new Q2D(I.bl_tree,DfQ);I.bi_buf=0;I.bi_valid=0;s2c(I);I=0}else I=vn(B,-2);I===0&&(B=B.state,B.window_size=2*B.w_size,yI(B.head),
B.max_lazy_match=uy[B.level].max_lazy,B.good_match=uy[B.level].good_length,B.nice_match=uy[B.level].nice_length,B.max_chain_length=uy[B.level].max_chain,B.strstart=0,B.block_start=0,B.lookahead=0,B.insert=0,B.match_length=B.prev_length=2,B.match_available=0,B.ins_h=0);B=I}}else B=-2;if(B!==0)throw Error(ax[B]);E.header&&(B=this.strm)&&B.state&&B.state.wrap===2&&(B.state.gzhead=E.header);if(E.dictionary){var Z;typeof E.dictionary==="string"?Z=RD6(E.dictionary):ENc.call(E.dictionary)==="[object ArrayBuffer]"?
Z=new Uint8Array(E.dictionary):Z=E.dictionary;E=this.strm;c=Z;Y=c.length;if(E&&E.state)if(Z=E.state,B=Z.wrap,B===2||B===1&&Z.status!==42||Z.lookahead)B=-2;else{B===1&&(E.adler=bOB(E.adler,c,Y,0));Z.wrap=0;Y>=Z.w_size&&(B===0&&(yI(Z.head),Z.strstart=0,Z.block_start=0,Z.insert=0),I=new en.Buf8(Z.w_size),en.arraySet(I,c,Y-Z.w_size,Z.w_size,0),c=I,Y=Z.w_size);I=E.avail_in;T=E.next_in;e=E.input;E.avail_in=Y;E.next_in=0;E.input=c;for(d7(Z);Z.lookahead>=3;){c=Z.strstart;Y=Z.lookahead-2;do Z.ins_h=(Z.ins_h<<
Z.hash_shift^Z.window[c+3-1])&Z.hash_mask,Z.prev[c&Z.w_mask]=Z.head[Z.ins_h],Z.head[Z.ins_h]=c,c++;while(--Y);Z.strstart=c;Z.lookahead=2;d7(Z)}Z.strstart+=Z.lookahead;Z.block_start=Z.strstart;Z.insert=Z.lookahead;Z.lookahead=0;Z.match_length=Z.prev_length=2;Z.match_available=0;E.next_in=T;E.input=e;E.avail_in=I;Z.wrap=B;B=0}else B=-2;if(B!==0)throw Error(ax[B]);this._dict_set=!0}};
BKB=function(E,B){B=B||{};B.gzip=!0;B=new tYD(B);B.push(E,!0);if(B.err)throw B.msg||ax[B.err];return B.result};
ImG=function(E,B){var I=$gB();I&&I.publish.call(I,E.toString(),E,B)};
i9c=function(E,B,I){var T=$gB();if(!T)return 0;var e=T.subscribe(E.toString(),function(c,Y){var v=_.WA("ytPubsub2Pubsub2SkipSubKey");v&&v==e||(v=function(){if(TKc[e])try{if(Y&&E instanceof eJF&&E!=c)try{var y=E.dataClass,Z=Y;if(!Z.args||!Z.version)throw Error("Wc");try{if(!y.version_){var P=new y;y.version_=P.version}var z=y.version_}catch(m){}if(!z||Z.version!=z)throw Error("Xc");try{Y=Reflect.construct(y,_.V6(Z.args))}catch(m){throw m.message="yt.pubsub2.Data.deserialize(): "+m.message,m;}}catch(m){throw m.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+E.toString()+": "+m.message,m;}B.call(I||window,Y)}catch(m){_.SI(m)}},lmd[E.toString()]?_.WA("yt.scheduler.instance")?_.Ll.addLowPriorityJob(v):_.TR(v,0):v())});
TKc[e]=!0;c2d[E.toString()]||(c2d[E.toString()]=[]);c2d[E.toString()].push(e);return e};
vN4=function(){var E=pP6,B=i9c(Y3B,function(I){E.apply(void 0,arguments);amJ(B)});
return B};
amJ=function(E){var B=$gB();B&&(typeof E==="number"&&(E=[E]),_.bW(E,function(I){B.unsubscribeByKey(I);delete TKc[I]}))};
$gB=function(){return _.WA("ytPubsub2Pubsub2Instance")};
y2f=function(E,B,I){I=I===void 0?{sampleRate:.1}:I;Math.random()<Math.min(.02,I.sampleRate/100)&&ImG("meta_logging_csi_event",{timerName:E,timelineData:B})};
_.CmG=function(E){return E?(E=E.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.xM(E):null:null};
_.xv=function(E){return E?(E=E.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.KX(E):null:null};
Z9Q=function(){wPi||(wPi=_.xv(_.HA("WORKER_SERIALIZATION_URL")));return wPi||void 0};
_.zJf=function(){var E=Z9Q();Pmd||E===void 0||(Pmd=new Worker(_.Ef(E),void 0));return Pmd};
_.mgF=function(){return typeof Worker==="function"&&Z9Q()?!0:!1};
_.sYd=function(){if(_.mgF()&&!QYt){var E=function(I){I=I.data;if(I.op==="gzippedGelBatch"){var T=dgc.get(I.key);T&&(hJ4(I.gzippedBatch,T.latencyPayload,T.url,T.options,T.sendFn),dgc.delete(I.key))}},B=_.zJf();
B&&(B.addEventListener("message",E),B.onerror=function(){dgc.clear()},QYt=!0)}};
MjG=function(E,B,I,T,e){e=e===void 0?!1:e;var c={startTime:(0,_.VZ)(),ticks:{},infos:{}};if(GG)try{var Y=uOi(B);if(Y!=null&&(Y>L_G||Y<xgG))T(E,I);else{if(_.d("gzip_gel_with_worker")&&(_.d("initial_gzip_use_main_thread")&&!GPt||!_.d("initial_gzip_use_main_thread"))){QYt||_.sYd();var v=_.zJf();if(v&&!e){dgc.set(O96,{latencyPayload:c,url:E,options:I,sendFn:T});v.postMessage({op:"gelBatchToGzip",serializedBatch:B,key:O96});O96++;return}}var y=BKB(nNi(B));hJ4(y,c,E,I,T)}}catch(Z){_.Xx(Z),T(E,I)}else T(E,
I)};
hJ4=function(E,B,I,T,e){GPt=!1;var c=(0,_.VZ)();B.ticks.gelc=c;O4++;_.d("disable_compression_due_to_performance_degredation")&&c-B.startTime>=H9B&&(NKc++,_.d("abandon_compression_after_N_slow_zips")?O4===_.RI("compression_disable_point")&&NKc>gNJ&&(GG=!1):GG=!1);S3i(B);T.headers||(T.headers={});T.headers["Content-Encoding"]="gzip";T.postBody=E;T.postParams=void 0;e(I,T)};
J2c=function(E){var B=B===void 0?!1:B;var I=I===void 0?!1:I;var T=(0,_.VZ)(),e={startTime:T,ticks:{},infos:{}},c=B?_.WA("yt.logging.gzipForFetch",!1):!0;if(GG&&c){if(!E.body)return E;try{var Y=I?E.body:typeof E.body==="string"?E.body:JSON.stringify(E.body);c=Y;if(!I&&typeof Y==="string"){var v=uOi(Y);if(v!=null&&(v>L_G||v<xgG))return E;I=B?{level:1}:void 0;c=BKB(nNi(Y),I);var y=(0,_.VZ)();e.ticks.gelc=y;if(B){O4++;if((_.d("disable_compression_due_to_performance_degredation")||_.d("disable_compression_due_to_performance_degradation_lr"))&&
y-T>=H9B)if(NKc++,_.d("abandon_compression_after_N_slow_zips")||_.d("abandon_compression_after_N_slow_zips_lr")){B=NKc/O4;var Z=gNJ/_.RI("compression_disable_point");O4>0&&O4%_.RI("compression_disable_point")===0&&B>=Z&&(GG=!1)}else GG=!1;S3i(e)}}E.headers=Object.assign({},{"Content-Encoding":"gzip"},E.headers||{});E.body=c;return E}catch(P){return _.Xx(P),E}}else return E};
uOi=function(E){try{return(new Blob(E.split(""))).size}catch(B){return _.Xx(B),null}};
S3i=function(E){_.d("gel_compression_csi_killswitch")||!_.d("log_gel_compression_latency")&&!_.d("log_gel_compression_latency_lr")||y2f("gel_compression",E,{sampleRate:.1})};
W_B=function(){this.blockSize=-1};
nl=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var E=1;E<this.blockSize;++E)this.pad_[E]=0;this.total_=this.inbuf_=0;this.reset()};
r2c=function(E){E=Object.assign({},E);delete E.Authorization;var B=XPD();if(B){var I=new nl;I.update(_.HA("INNERTUBE_API_KEY"));I.update(B);E.hash=_.tH(I.digest(),3)}return E};
Hn=function(){b9i||(b9i=new _.M3("yt.innertube"));return b9i};
oNG=function(E,B,I,T){if(T)return null;T=Hn().get("nextId",!0)||1;var e=Hn().get("requests",!0)||{};e[T]={method:E,request:B,authState:r2c(I),requestTime:Math.round((0,_.VZ)())};Hn().set("nextId",T+1,86400,!0);Hn().set("requests",e,86400,!0);return T};
A2J=function(E){var B=Hn().get("requests",!0)||{};delete B[E];Hn().set("requests",B,86400,!0)};
Ugi=function(E){var B=Hn().get("requests",!0);if(B){for(var I in B){var T=B[I];if(!(Math.round((0,_.VZ)())-T.requestTime<6E4)){var e=T.authState,c=r2c(_.P1c(!1));_.a_.equals(e,c)&&(e=T.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round((0,_.VZ)())),jYi(E,T.method,e,{}));delete B[I]}}Hn().set("requests",B,86400,!0)}};
kPJ=function(E){var B;return(E=E==null?void 0:(B=E.error)==null?void 0:B.code)&&E>=400&&E<=599?!1:!0};
tjd=function(E){var B;E=E==null?void 0:(B=E.error)==null?void 0:B.code;return!(E!==400&&E!==415)};
Vj4=function(){if(fmc)return fmc();var E={};fmc=fF("LogsDatabaseV2",{objectStores:(E.LogsRequestsStore={addedAtVersion:2},E),shared:!1,upgrade:function(B,I,T){I(2)&&N3(B,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});I(3);I(5)&&(T=T.objectStore("LogsRequestsStore"),T.JSC$8494_wrapped.indexNames.contains("newRequest")&&T.JSC$8494_wrapped.deleteIndex("newRequest"),g7(T,"newRequestV2",["status","interface","timestamp"]));I(7)&&B.JSC$8479_wrapped.objectStoreNames.contains("sapisid")&&B.JSC$8479_wrapped.deleteObjectStore("sapisid");
I(9)&&B.JSC$8479_wrapped.objectStoreNames.contains("SWHealthLog")&&B.JSC$8479_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return fmc()};
Sn=function(E){return _.r0(Vj4(),E)};
F_d=function(E,B){var I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return I={startTime:(0,_.VZ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.C(Y,Sn(B),2);if(Y.nextAddress!=3)return T=Y.yieldResult,e=Object.assign({},E,{options:JSON.parse(JSON.stringify(E.options)),interface:_.HA("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.C(Y,T.put("LogsRequestsStore",e),3);c=Y.yieldResult;I.ticks.tc=(0,_.VZ)();q3G(I);return Y.return(c)})};
DgB=function(E,B){var I,T,e,c,Y,v,y,Z;return _.a(function(P){if(P.nextAddress==1)return I={startTime:(0,_.VZ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.C(P,Sn(B),2);if(P.nextAddress!=3)return T=P.yieldResult,e=_.HA("INNERTUBE_CONTEXT_CLIENT_NAME",0),c=[E,e,0],Y=[E,e,(0,_.VZ)()],v=IDBKeyRange.bound(c,Y),y="prev",_.d("use_fifo_for_networkless")&&(y="next"),Z=void 0,_.C(P,_.bK(T,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(z){return _.q_(z.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:v,direction:y},function(m){m.getValue()&&(Z=m.getValue(),E==="NEW"&&(Z.status="QUEUED",m.update(Z)))})}),3);
I.ticks.tc=(0,_.VZ)();q3G(I);return P.return(Z)})};
K_i=function(E,B){var I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,Sn(B),2);I=T.yieldResult;return T.return(_.bK(I,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(e){var c=e.objectStore("LogsRequestsStore");return c.get(E).then(function(Y){if(Y)return Y.status="QUEUED",c.put(Y).then(function(){return Y})})}))})};
RJB=function(E,B,I,T){I=I===void 0?!0:I;var e;return _.a(function(c){if(c.nextAddress==1)return _.C(c,Sn(B),2);e=c.yieldResult;return c.return(_.bK(e,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Y){var v=Y.objectStore("LogsRequestsStore");return v.get(E).then(function(y){return y?(y.status="NEW",I&&(y.sendCount+=1),T!==void 0&&(y.options.compress=T),v.put(y).then(function(){return y})):N_.resolve(void 0)})}))})};
EGB=function(E,B){var I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,Sn(B),2);I=T.yieldResult;return T.return(I.delete("LogsRequestsStore",E))})};
BEf=function(E){var B,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,Sn(E),2);B=T.yieldResult;I=(0,_.VZ)()-2592E6;return _.C(T,_.bK(B,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(e){return Ag(e.objectStore("LogsRequestsStore"),{},function(c){if(c.getValue().timestamp<=I)return c.delete().then(function(){return c.continue()})})}),0)})};
$Ki=function(){_.a(function(E){return _.C(E,kxF("LogsDatabaseV2"),0)})};
q3G=function(E){_.d("nwl_csi_killswitch")||y2f("networkless_performance",E,{sampleRate:1})};
_.TEi=function(E){return _.r0(Iki(),E)};
eui=function(E){var B,I;_.a(function(T){if(T.nextAddress==1)return _.C(T,_.TEi(E),2);B=T.yieldResult;I=(0,_.VZ)()-2592E6;return _.C(T,_.bK(B,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(e){return Ag(e.objectStore("SWHealthLog"),{},function(c){if(c.getValue().timestamp<=I)return c.delete().then(function(){return c.continue()})})}),0)})};
lki=function(E){var B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,_.TEi(E),2);B=I.yieldResult;return _.C(I,B.clear("SWHealthLog"),0)})};
_.JI=function(E,B,I,T,e,c,Y){e=e===void 0?"":e;c=c===void 0?!1:c;Y=Y===void 0?!1:Y;if(E)if(I&&!OF("cobalt"))_.Xx(new _.P7("Legacy referrer-scrubbed ping detected")),E&&cRf(E,void 0,{scrubReferrer:!0});else if(e)gqG(E,B,"POST",e,T);else if(_.HA("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||T||Y)gqG(E,B,"GET","",T,void 0,c,Y);else{b:{try{c:{var v=new iq4({url:E});if(xmi(v.JSC$7364_url_,p8c)==="1")var y=null;else{var Z=xmi(v.JSC$7364_url_,Yq6);if(Z==="1"){var P=xmi(v.JSC$7364_url_,akJ);if(P)try{y={version:3,
directUrl:decodeURIComponent(P),asyncUrl:GM4(v.JSC$7364_url_,"act=1","ri=1",vGd(v))};break c}catch(x){}}y=Z==="2"?{version:4,directUrl:GM4(v.JSC$7364_url_,"dct=1","suid="+v.suid_,""),asyncUrl:GM4(v.JSC$7364_url_,"act=1","ri=1","suid="+v.suid_)}:null}}if(y){var z=_.c7(E);var m=!(!z||!z.endsWith("/aclk")||_.Nm(E,"ri")!=="1");break b}}catch(x){}m=!1}if(m){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(E,"")){var u=!0;break b}}catch(x){}u=!1}u?(B&&B(),I=!0):I=!1}else I=
!1;I||cRf(E,B)}};
cRf=function(E,B,I){I=I===void 0?{}:I;var T=new Image,e=""+yRi++;Cji[e]=T;T.onload=T.onerror=function(){B&&Cji[e]&&B();delete Cji[e]};
I.scrubReferrer&&(T.referrerPolicy="no-referrer");T.src=E};
Wn=function(E,B){w8B(E,B==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
ZqQ=function(E){var B;return((B=document.featurePolicy)==null?0:B.allowedFeatures().includes("attribution-reporting"))?E+"&nis=6":E+"&nis=5"};
Pjd=function(E){if(!E)return!1;try{var B;if(((B=_.oI(E))==null?void 0:B.asm)==="4")return!0}catch(I){_.SI(I)}return!1};
w8B=function(E,B){B?(E=ZqQ(E),_.JI(E,void 0,void 0,void 0,"",!0,!0)):_.JI(E)};
mKt=function(){zuc||(zuc=new _.M3("yt.offline"));return zuc};
QNB=function(E){if(_.d("offline_error_handling")){var B=mKt().get("errors",!0)||{};B[E.message]={name:E.name,stack:E.stack};E.level&&(B[E.message].level=E.level);mKt().set("errors",B,2592E3,!0)}};
huc=function(E,B,I,T){T=T===void 0?!1:T;B=_.d("web_fp_via_jspb")?Object.assign({},B):B;_.d("use_cfr_monitor")&&dKf(E,B);if(_.d("use_request_time_ms_header"))B.headers&&V9(E)&&(B.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.VZ)())));else{var e;if((e=B.postParams)==null?0:e.requestTimeMs)B.postParams.requestTimeMs=Math.round((0,_.VZ)())}I&&Object.keys(B).length===0?_.JI(E):B.compress?B.postBody?(typeof B.postBody!=="string"&&(B.postBody=JSON.stringify(B.postBody)),MjG(E,B.postBody,
B,_.iK,T)):MjG(E,JSON.stringify(B.postParams),B,Xu6,T):_.iK(E,B)};
sNG=function(E,B){_.d("use_event_time_ms_header")&&V9(E)&&(B.headers||(B.headers={}),B.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.VZ)())));return B};
_.Lh4=function(){uNf||(uNf=new _.Xg({logOfflineErrors:!0,enablePolling:!0}));return uNf};
dKf=function(E,B){var I=B.onError?B.onError:function(){};
B.onError=function(e,c){r7().requestComplete(E,!1);I(e,c)};
var T=B.onSuccess?B.onSuccess:function(){};
B.onSuccess=function(e,c){r7().requestComplete(E,!0);T(e,c)}};
_.xKi=function(){return _.tA(document.location.toString())!=="www.youtube-nocookie.com"};
_.nGQ=function(){return _.WA("ytNetworklessLoggingInitializationOptions")?_.Gvd.isNwlInitialized:_.Oqc};
MPc=function(E,B){if(_.d("polymer_on_demand_shady_dom")){var I;var T=(I=E.__shady_native_firstElementChild)!=null?I:E.firstElementChild}else T=E.firstElementChild;for(;T;){if(E=B(T)?T:MPc(T,B))return E;T=T.nextElementSibling}return null};
NEJ=function(){var E=document;if("visibilityState"in E)return E.visibilityState;var B=HqF+"VisibilityState";if(B in E)return E[B]};
_.gGJ=function(E,B){var I;by(E,function(T){I=B[T];return!!I});
return I};
_.AI=function(E){var B=Sqt(E);B?B.focus():_.ox(E)};
Sqt=function(E){return(E=MPc(E,function(B){return _.jn(B)?JRi(B)&&!!B.offsetParent:!1}))?E:null};
_.ox=function(E,B){E.hasAttribute("tabindex")||E.setAttribute("tabindex","-1");E.focus(B)};
WhG=function(E,B,I,T){T=T===void 0?{}:T;E.addEventListener&&(B!="mouseenter"||"onmouseenter"in document?B!="mouseleave"||"onmouseenter"in document?B=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(B="MozMousePixelScroll"):B="mouseout":B="mouseover");return _.a_.findKey(tI,function(e){var c=typeof e[4]==="boolean"&&e[4]==!!T,Y=_.B6(e[4])&&_.B6(T)&&_.a_.equals(e[4],T);return!!e.length&&e[0]==E&&e[1]==B&&e[2]==I&&(c||Y)})};
_.VI=function(E,B,I,T){T=T===void 0?{}:T;if(!E||!E.addEventListener&&!E.attachEvent)return"";var e=WhG(E,B,I,T);if(e)return e;e=++X8i.count+"";var c=!(B!="mouseenter"&&B!="mouseleave"||!E.addEventListener||"onmouseenter"in document);var Y=c?function(v){v=new fl(v);if(!_.Ql(v.relatedTarget,function(y){return y==E},!0))return v.currentTarget=E,v.type=B,I.call(E,v)}:function(v){v=new fl(v);
v.currentTarget=E;return I.call(E,v)};
Y=_.JA(Y);E.addEventListener?(B=="mouseenter"&&c?B="mouseover":B=="mouseleave"&&c?B="mouseout":B=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(B="MozMousePixelScroll"),rRD()||typeof T==="boolean"?E.addEventListener(B,Y,T):E.addEventListener(B,Y,!!T.capture)):E.attachEvent("on"+B,Y);tI[e]=[E,B,I,Y,T];return e};
_.oGc=function(E,B,I){var T=T===void 0?{}:T;var e=_.VI(E,B,function(){_.bqd(e);I.apply(E,arguments)},T)};
_.bqd=function(E){E&&(typeof E=="string"&&(E=[E]),_.bW(E,function(B){if(B in tI){var I=tI[B],T=I[0],e=I[1],c=I[3];I=I[4];T.removeEventListener?rRD()||typeof I==="boolean"?T.removeEventListener(e,c,I):T.removeEventListener(e,c,!!I.capture):T.detachEvent&&T.detachEvent("on"+e,c);delete tI[B]}}))};
q3=function(E){this.callback_=E;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(E=0;E<4;E++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.VI(window,"mousemove",(0,_.w1)(this.onMouseMove_,this));this.timerId_=_.eg((0,_.w1)(this.checkPosition_,this),25)};
jN6=function(){var E={};var B=E.preferMobileEvents===void 0?!1:E.preferMobileEvents;E=E.enableScrollEventListener===void 0?!0:E.enableScrollEventListener;if(_.WA("_lact",window)==null){var I=parseInt(_.HA("LACT"),10);I=isFinite(I)?Date.now()-Math.max(I,0):-1;_.ka("_lact",I,window);_.ka("_fact",I,window);I==-1&&_.Fg();_.VI(document,"keydown",_.Fg);_.VI(document,"keyup",_.Fg);_.VI(document,"mousedown",_.Fg);_.VI(document,"mouseup",_.Fg);B?_.VI(window,"touchmove",function(){ARt("touchmove",200)},{passive:!0}):
(_.VI(window,"resize",function(){ARt("resize",200)}),E&&_.VI(window,"scroll",function(){ARt("scroll",200)}));
new q3(function(){ARt("mouse",100)});
_.VI(document,"touchstart",_.Fg,{passive:!0});_.VI(document,"touchend",_.Fg,{passive:!0})}};
ARt=function(E,B){UKc[E]||(UKc[E]=!0,_.Ll.addLowPriorityJob(function(){_.Fg();UKc[E]=!1},B))};
_.Fg=function(){_.WA("_lact",window)==null&&jN6();var E=Date.now();_.ka("_lact",E,window);_.WA("_fact",window)==-1&&_.ka("_fact",E,window);(E=_.WA("ytglobal.ytUtilActivityCallback_"))&&E()};
_.DD=function(){var E=_.WA("_lact",window);return E==null?-1:Math.max(Date.now()-E,0)};
_.BC=function(E,B,I){var T=_.Kl();if(T&&B){var e=T.subscribe(E,function(){var c=arguments,Y=function(){Rx[e]&&B.apply&&typeof B.apply=="function"&&B.apply(I||window,c)};
try{_.kvt[E]?Y():_.TR(Y,0)}catch(v){_.SI(v)}},I);
Rx[e]=!0;EG[E]||(EG[E]=[]);EG[E].push(e);return e}return 0};
_.tPd=function(E){var B=_.Kl();B&&(typeof E==="number"?E=[E]:typeof E==="string"&&(E=[parseInt(E,10)]),_.bW(E,function(I){B.unsubscribeByKey(I);delete Rx[I]}))};
_.fkc=function(E,B){var I=_.Kl();I&&I.publish.apply(I,arguments)};
_.qqG=function(E){var B=_.Kl();if(B)if(B.clear(E),E)VPd(E);else for(var I in EG)VPd(I)};
_.Kl=function(){return _.$i.ytPubsubPubsubInstance};
VPd=function(E){EG[E]&&(E=EG[E],_.bW(E,function(B){Rx[B]&&delete Rx[B]}),E.length=0)};
FhG=function(){var E,B;return"h5vcc"in $V&&((E=$V.h5vcc.traceEvent)==null?0:E.traceBegin)&&((B=$V.h5vcc.traceEvent)==null?0:B.traceEnd)?1:"performance"in $V&&$V.performance.mark&&$V.performance.measure?2:0};
DK6=function(E){var B=FhG();switch(B){case 1:$V.h5vcc.traceEvent.traceBegin("YTLR",E);break;case 2:$V.performance.mark(E+"-start");break;case 0:break;default:_.E9(B,"unknown trace type")}};
Khi=function(E){var B=FhG();switch(B){case 1:$V.h5vcc.traceEvent.traceEnd("YTLR",E);break;case 2:B=E+"-start";var I=E+"-end";$V.performance.mark(I);$V.performance.measure(E,B,I);break;case 0:break;default:_.E9(B,"unknown trace type")}};
Ru4=function(E){var B,I;(I=(B=window).onerror)==null||I.call(B,E.message,"",0,0,E)};
E7B=function(E){if(_.d("web_lifecycle_error_handling_killswitch"))return E();try{return E()}catch(B){Ru4(B)}};
Bp4=function(E){return[E.auth===void 0?"undefined":E.auth,E.isJspb===void 0?"undefined":E.isJspb,E.cttAuthInfo===void 0?"undefined":E.cttAuthInfo,E.tier===void 0?"undefined":E.tier].join("/")};
_.h=function(E,B){if(E)return E[B.name]};
TF=function(){var E=_.WA("yt.logging.ims");E||(E=new IH,_.ka("yt.logging.ims",E));return E};
YMc=function(E,B){if(E.endpoint==="log_event"){$ic(E);var I=INQ(E),T=Tpf(E.payload)||"",e=e2c(T),c=200;if(e){if(e.enabled===!1&&!_.d("web_payload_policy_disabled_killswitch"))return;c=lNc(e.tier);if(c===400){cdc(E,B);return}}es[I]=!0;I={cttAuthInfo:I,isJspb:!1,tier:c};TF().storePayload(I,E.payload);i$Q(B,!1,I,plG(T))}};
v7d=function(E,B,I){if(B.endpoint==="log_event"){$ic(void 0,B);var T=INQ(B,!0),e=e2c(E),c=200;if(e){if(e.enabled===!1&&!_.d("web_payload_policy_disabled_killswitch"))return;c=lNc(e.tier);if(c===400){aNG(E,B,I);return}}es[T]=!0;T={cttAuthInfo:T,isJspb:!0,tier:c};TF().storePayload(T,Vd(B.payload));i$Q(I,!0,T,plG(E))}};
i$Q=function(E,B,I,T){B=B===void 0?!1:B;T=T===void 0?!1:T;E&&(lE=new E);E=_.RI("tvhtml5_logging_max_batch_ads_fork")||_.RI("tvhtml5_logging_max_batch")||_.RI("web_logging_max_batch")||100;var e=(0,_.VZ)(),c=ydf(B,I.tier),Y=c.lastDebounceQueueFromLogTimeMs;T&&(c.useVideoStatsEndPoint=!0);T=0;I&&(T=TF().getSequenceCount(I));var v=function(){C6d({writeThenSend:!0},B,I.tier)};
T>=1E3?v():T>=E?wlt||(wlt=Z$D(function(){v();wlt=void 0},0)):e-Y>=10&&(P6Q(B,I.tier),c.lastDebounceQueueFromLogTimeMs=e)};
cdc=function(E,B){if(E.endpoint==="log_event"){_.d("more_accurate_gel_parser")&&TF().storePayload({isJspb:!1},E.payload);$ic(E);var I=INQ(E),T=new Map;T.set(I,[E.payload]);var e=Tpf(E.payload)||"";B&&(lE=new B);return new _.cC(function(c,Y){lE&&lE.isReady()?z2t(T,lE,c,Y,{bypassNetworkless:!0},!0,plG(e)):c()})}};
aNG=function(E,B,I){if(B.endpoint==="log_event"){$ic(void 0,B);var T=INQ(B,!0),e=new Map;e.set(T,[Vd(B.payload)]);I&&(lE=new I);return new _.cC(function(c){lE&&lE.isReady()?mii(e,lE,c,{bypassNetworkless:!0},!0,plG(E)):c()})}};
INQ=function(E,B){var I="";if(E.dangerousLogToVisitorSession)I="visitorOnlyApprovedKey";else if(E.cttAuthInfo){if(B===void 0?0:B){B=E.cttAuthInfo.token;I=E.cttAuthInfo;var T=new Q3i;I.videoId?T.setVideoId(I.videoId):I.playlistId&&iE(T,2,did,gs(I.playlistId));h2Q[B]=T}else B=E.cttAuthInfo,I={},B.videoId?I.videoId=B.videoId:B.playlistId&&(I.playlistId=B.playlistId),s34[E.cttAuthInfo.token]=I;I=E.cttAuthInfo.token}return I};
C6d=function(E,B,I){E=E===void 0?{}:E;B=B===void 0?!1:B;new _.cC(function(T,e){var c=ydf(B,I),Y=c.useVideoStatsEndPoint;c.useVideoStatsEndPoint=!1;uS4(c.queueTimer);uS4(c.queueMaxTimer);c.queueMaxTimer=0;lE&&lE.isReady()?I===void 0&&_.d("enable_web_tiered_gel")?LBd(T,e,E,B,300,Y):LBd(T,e,E,B,I,Y):(P6Q(B,I),T())})};
LBd=function(E,B,I,T,e,c){var Y=lE;I=I===void 0?{}:I;T=T===void 0?!1:T;e=e===void 0?200:e;c=c===void 0?!1:c;var v=new Map,y=new Map,Z={isJspb:T,cttAuthInfo:void 0,tier:e},P={isJspb:T,cttAuthInfo:void 0};if(T){B=_.p(Object.keys(es));for(e=B.next();!e.done;e=B.next())e=e.value,y=_.d("enable_web_tiered_gel")?TF().smartExtractMatchingEntries({keys:[Z,P],sizeLimit:1E3}):TF().extractMatchingEntries({isJspb:!0,cttAuthInfo:e}),y.length>0&&v.set(e,y),(_.d("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.d("web_fp_via_jspb_and_json"))&&
delete es[e];mii(v,Y,E,I,!1,c)}else{v=_.p(Object.keys(es));for(Z=v.next();!Z.done;Z=v.next())Z=Z.value,P=_.d("enable_web_tiered_gel")?TF().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:Z,tier:e},{isJspb:!1,cttAuthInfo:Z}],sizeLimit:1E3}):TF().extractMatchingEntries({isJspb:!1,cttAuthInfo:Z}),P.length>0&&y.set(Z,P),(_.d("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.d("web_fp_via_jspb_and_json"))&&delete es[Z];z2t(y,Y,E,B,I,!1,c)}};
P6Q=function(E,B){E=E===void 0?!1:E;B=B===void 0?200:B;var I=function(){C6d({writeThenSend:!0},E,B)},T=ydf(E,B),e=T===Ggt||T===O$G?5E3:n7Q;
_.d("web_gel_timeout_cap")&&!T.queueMaxTimer&&(e=Z$D(function(){I()},e),T.queueMaxTimer=e);
uS4(T.queueTimer);e=_.HA("LOGGING_BATCH_TIMEOUT",_.RI("web_gel_debounce_ms",1E4));_.d("shorten_initial_gel_batch_timeout")&&MVF&&(e=H$F);e=Z$D(function(){_.RI("gel_min_batch_size")>0?TF().getSequenceCount({cttAuthInfo:void 0,isJspb:E,tier:B})>=Np6&&I():I()},e);
T.queueTimer=e};
z2t=function(E,B,I,T,e,c,Y){e=e===void 0?{}:e;var v=Math.round((0,_.VZ)()),y=E.size,Z=g7c(Y);E=_.p(E);var P=E.next();for(Y={};!P.done;Y={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},P=E.next()){var z=_.p(P.value);P=z.next().value;z=z.next().value;Y.batchRequest=_.a_.unsafeClone({context:_.iOi(B.config_||_.FQ())});if(!_.Di(z)&&!_.d("throw_err_when_logevent_malformed_killswitch")){T();break}Y.batchRequest.events=z;
(z=s34[P])&&SMQ(Y.batchRequest,P,z);delete s34[P];Y.dangerousLogToVisitorSession=P==="visitorOnlyApprovedKey";Jdf(Y.batchRequest,v,Y.dangerousLogToVisitorSession);WB6(e);Y.onSuccess$jscomp$3=function(m){_.d("start_client_gcf")&&_.Ll.addLowPriorityJob(function(){return _.a(function(u){return _.C(u,Xlc(m),0)})});
y--;y||I()};
Y.networkFailures=0;Y.onError$jscomp$5=function(m){return function(){m.networkFailures++;if(e.bypassNetworkless&&m.networkFailures===1)try{jYi(B,Z,m.batchRequest,rdJ({writeThenSend:!0},m.dangerousLogToVisitorSession,m.onSuccess$jscomp$3,m.onError$jscomp$5,c)),MVF=!1}catch(u){_.SI(u),T()}y--;y||I()}}(Y);
try{jYi(B,Z,Y.batchRequest,rdJ(e,Y.dangerousLogToVisitorSession,Y.onSuccess$jscomp$3,Y.onError$jscomp$5,c)),MVF=!1}catch(m){_.SI(m),T()}}};
mii=function(E,B,I,T,e,c){T=T===void 0?{}:T;var Y=Math.round((0,_.VZ)()),v={value:E.size},y=new Map([].concat(_.ad(E)));y=_.p(y);for(var Z=y.next();!Z.done;Z=y.next()){var P=_.p(Z.value).next().value,z=E.get(P);Z=new b$B;var m=B.config_||_.FQ(),u=new pi,x=new o7F;_.$r(x,1,m.innertubeContextHostLanguage);_.$r(x,2,m.innertubeContextGeoLocation);_.KF(x,16,m.innertubeContextClientNameFieldNumber);_.$r(x,17,m.innertubeContextClientVersion);if(m.innertubeContextClientConfigInfo){var M=m.innertubeContextClientConfigInfo,
N=new E4;M.coldConfigData&&_.$r(N,1,M.coldConfigData);M.appInstallData&&_.$r(N,6,M.appInstallData);M.coldHashData&&_.$r(N,3,M.coldHashData);M.hotHashData&&N.setHotHashData(M.hotHashData);_.fX(x,62,N)}(M=_.$i.devicePixelRatio)&&M!=1&&_.Rk(x,65,_.T7(M));M=u74();M!==""&&_.$r(x,54,M);M=LSi();if(M.length>0){N=new Add;for(var W=0;W<M.length;W++){var U=new YV;U.setKey(M[W].key);iE(U,2,j3J,gs(M[W].value));aH(N,15,YV,U)}_.fX(u,5,N)}$fD(m,x);IBG(u);TYD(x);eDf(m,x);lBJ(x);_.d("start_client_gcf")&&cl6(x);_.HA("DELEGATED_SESSION_ID")&&
!_.d("pageid_as_header_web")&&(m=new vC,_.$r(m,3,_.HA("DELEGATED_SESSION_ID")));!_.d("fill_delegate_context_in_gel_killswitch")&&(M=_.HA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(N=_.DZ(u,vC,3)||new vC,m=u,M=_.$r(N,18,M),_.fX(m,3,M));m=x;M=_.p(Object.entries(_.oI(_.HA("DEVICE",""))));for(N=M.next();!N.done;N=M.next())W=_.p(N.value),N=W.next().value,W=W.next().value,N==="cbrand"?_.$r(m,12,W):N==="cmodel"?_.$r(m,13,W):N==="cbr"?_.$r(m,87,W):N==="cbrver"?_.$r(m,88,W):N==="cos"?_.$r(m,18,
W):N==="cosver"?_.$r(m,19,W):N==="cplatform"&&_.KF(m,42,Eht(W));u.setClient(x);_.fX(Z,1,u);if(x=h2Q[P])a:{if(_.ee(x,yU(x,did,1)))u=1;else if(x.getPlaylistId())u=2;else break a;_.fX(Z,4,x);x=Z.getContext()||new pi;m=_.DZ(x,vC,3)||new vC;M=new Ci;M.setToken(P);_.KF(M,1,u);aH(m,12,Ci,M);_.fX(x,3,m)}delete h2Q[P];P=P==="visitorOnlyApprovedKey";Uic()||_.w9(Z,2,Y);!P&&(u=_.HA("EVENT_ID"))&&(x=kgf(),m=new tVt,_.$r(m,1,u),_.w9(m,2,x),_.fX(Z,5,m));WB6(T);if(_.d("jspb_serialize_with_worker")&&(u=_.zJf())&&
T.writeThenSend){_.fNi.set(VVF,{client:B,resolve:I,networklessOptions:T,isIsolated:e,useVSSEndpoint:c,dangerousLogToVisitorSession:P,requestsOutstanding:v});u.postMessage({op:"gelBatchToSerialize",batchRequest:Vd(Z),clientEvents:z,key:VVF});VVF++;break}if(z){u=[];for(x=0;x<z.length;x++)try{u.push(new Za(z[x]))}catch(q){_.SI(new _.P7("Transport failed to deserialize "+String(z[x])))}z=u}else z=[];z=_.p(z);for(u=z.next();!u.done;u=z.next())aH(Z,3,Za,u.value);z={startTime:(0,_.VZ)(),ticks:{},infos:{}};
Z=Z.serialize();z.ticks.geljspc=(0,_.VZ)();_.d("log_jspb_serialize_latency")&&y2f("gel_jspb_serialize",z,{sampleRate:.1});_.qMt(Z,B,I,T,e,c,P,v)}};
_.qMt=function(E,B,I,T,e,c,Y,v){T=T===void 0?{}:T;v=v===void 0?{value:0}:v;c=g7c(c);T=rdJ(T,Y,function(y){_.d("start_client_gcf")&&_.Ll.addLowPriorityJob(function(){return _.a(function(Z){return _.C(Z,Xlc(y),0)})});
v.value--;v.value||I()},function(){v.value--;
v.value||I()},e);
T.headers["Content-Type"]="application/json+protobuf";T.postBodyFormat="JSPB";T.postBody=E;jYi(B,c,"",T);MVF=!1};
WB6=function(E){_.d("always_send_and_write")&&(E.writeThenSend=!1)};
rdJ=function(E,B,I,T,e){E={retry:!0,onSuccess:I,onError:T,networklessOptions:E,dangerousLogToVisitorSession:B,bypassMonitoring:!!e,headers:{},postBodyFormat:"",postBody:"",compress:_.d("compress_gel")||_.d("compress_gel_lr")};Uic()&&(E.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.VZ)())));return E};
Jdf=function(E,B,I){Uic()||(E.requestTimeMs=String(B));_.d("unsplit_gel_payloads_in_logs")&&(E.unsplitGelPayloadsInLogs=!0);!I&&(B=_.HA("EVENT_ID"))&&(I=kgf(),E.serializedClientEventId={serializedEventId:B,clientCounter:String(I)})};
kgf=function(){var E=_.HA("BATCH_CLIENT_COUNTER")||0;E||(E=Math.floor(Math.random()*65535/2));E++;E>65535&&(E=1);_.MD("BATCH_CLIENT_COUNTER",E);return E};
SMQ=function(E,B,I){if(I.videoId)var T="VIDEO";else if(I.playlistId)T="PLAYLIST";else return;E.credentialTransferTokenTargetId=I;E.context=E.context||{};E.context.user=E.context.user||{};E.context.user.credentialTransferTokens=[{token:B,scope:T}]};
$ic=function(E,B){var I=_.EF("il_payload_scraping")==="enable_il_payload_scraping";if(!_.WA("yt.logging.transport.enableScrapingForTest"))if(I)FBd=[],_.ka("yt.logging.transport.enableScrapingForTest",!0),_.ka("yt.logging.transport.scrapedPayloadsForTesting",FBd),_.ka("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.ka("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.ka("yt.logging.transport.scrapeClientEvent",!0);else return;I=_.WA("yt.logging.transport.scrapedPayloadsForTesting");var T=_.WA("yt.logging.transport.payloadToScrape");B&&(B=_.WA("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(B.payload)())&&I.push(B);B=_.WA("yt.logging.transport.scrapeClientEvent");if(T&&T.length>=1)for(var e=0;e<T.length;e++)if(E&&E.payload[T[e]])if(B)I.push(E.payload);else{var c=void 0;I.push(((c=E)==null?void 0:c.payload)[T[e]])}_.ka("yt.logging.transport.scrapedPayloadsForTesting",
I)};
Uic=function(){return _.d("use_request_time_ms_header")||_.d("lr_use_request_time_ms_header")};
Z$D=function(E,B){return _.d("transport_use_scheduler")===!1?_.TR(E,B):_.d("logging_avoid_blocking_during_navigation")||_.d("lr_logging_avoid_blocking_during_navigation")?_.PC(_.Ll,function(){if(_.Dic().currentState==="none")E();else{var I={};_.Dic().install((I.none={callback:E},I))}},B):_.PC(_.Ll,E,B)};
uS4=function(E){_.d("transport_use_scheduler")?_.Ll.cancelJob(E):_.lK(E)};
Xlc=function(E){var B,I,T,e,c,Y,v,y,Z,P;return _.a(function(z){return z.nextAddress==1?(T=(B=E)==null?void 0:(I=B.responseContext)==null?void 0:I.globalConfigGroup,e=_.h(T,KBt),Y=(c=T)==null?void 0:c.hotHashData,v=_.h(T,R2c),Z=(y=T)==null?void 0:y.coldHashData,(P=_.Q().resolve(_.Fx(zF)))?Y?e?_.C(z,Egf(P,Y,e),2):_.C(z,Egf(P,Y),2):z.jumpTo(2):z.return()):Z?v?_.C(z,BX4(P,Z,v),0):_.C(z,BX4(P,Z),0):z.jumpTo(0)})};
ydf=function(E,B){B=B===void 0?200:B;return E?B===300?Ggt:$E4:B===300?O$G:Ixi};
e2c=function(E){if(_.d("enable_web_tiered_gel")){E=TXt[E||""];var B,I,T,e=_.Q().resolve(_.Fx(zF))==null?void 0:(B=e4c())==null?void 0:(I=B.loggingHotConfig)==null?void 0:(T=I.eventLoggingConfig)==null?void 0:T.payloadPolicies;if(e)for(B=0;B<e.length;B++)if(e[B].payloadNumber===E)return e[B]}};
Tpf=function(E){E=Object.keys(E);E=_.p(E);for(var B=E.next();!B.done;B=E.next())if(B=B.value,TXt[B])return B};
lNc=function(E){switch(E){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}};
plG=function(E){return E==="gelDebuggingEvent"};
g7c=function(E){return(E===void 0?0:E)&&_.d("vss_through_gel_video_stats")?"video_stats":"log_event"};
QU=function(E,B,I,T){T=T===void 0?{}:T;var e={},c=Math.round(T.timestamp||(0,_.VZ)());e.eventTimeMs=c<Number.MAX_SAFE_INTEGER?c:0;e[E]=B;E=_.DD();e.context={lastActivityMs:String(T.timestamp||!isFinite(E)?-1:E)};T.sequenceGroup&&!_.d("web_gel_sequence_info_killswitch")&&(E=e.context,B=T.sequenceGroup,B={index:lx6(B),groupKey:B},E.sequence=B,T.endOfSequence&&delete mF[T.sequenceGroup]);(T.sendIsolatedPayload?cdc:YMc)({endpoint:"log_event",payload:e,cttAuthInfo:T.cttAuthInfo,dangerousLogToVisitorSession:T.dangerousLogToVisitorSession},
I)};
lx6=function(E){mF[E]=E in mF?mF[E]+1:0;return mF[E]};
_.hK=function(E,B,I){I=I===void 0?{}:I;var T=d9;_.gU("ytLoggingEventsDefaultDisabled",!1)&&d9===d9&&(T=null);QU(E,B,T,I)};
_.Li=function(){if(_.d("web_fp_via_jspb")){var E=!0;E=E===void 0?!1:E;var B=ca4;ca4=[];if(B){B=_.p(B);for(var I=B.next();!I.done;I=B.next())I=I.value,E?QU(I.payloadName,I.payload,d9,I.options):_.hK(I.payloadName,I.payload,I.options)}C6d(void 0,!0);if(!_.d("web_fp_via_jspb_and_json"))return}C6d(void 0,!1)};
i8d=function(E,B){var I;if((I=B)==null?0:I.componentStack)return B;if(E=E.componentStack)B||(B={}),B.componentStack=qFG(E);return B};
pVt=function(){_.bW(_.HA("ERRORS")||[],function(E){_.xV.apply(null,E)});
_.MD("ERRORS",[])};
_.GF=function(E){_.xV(E)};
_.OG=function(E){_.xV(E,"WARNING")};
YeD=function(E){E instanceof Error?_.xV(E):(E=_.B6(E)?JSON.stringify(E):String(E),E=new _.P7(E),E.name="RejectedPromiseError",_.OG(E))};
ax6=function(E,B,I,T,e,c){B=B===void 0?"Unknown file":B;I=I===void 0?0:I;var Y=!1,v=e0B("log_window_onerror_fraction");if(v&&Math.random()<v)Y=!0;else{v=document.getElementsByTagName("script");for(var y=0,Z=v.length;y<Z;y++)if(v[y].src.indexOf("/debug-")>0){Y=!0;break}}Y&&(Y=!1,e?Y=!0:(typeof E==="string"?v=E:ErrorEvent&&E instanceof ErrorEvent?(Y=!0,v=E.message,B=E.filename,I=E.lineno,T=E.colno):(v="Unknown error",B="Unknown file",I=0),e=new _.P7(v),e.name="UnhandledWindowError",e.message=v,e.fileName=
B,e.lineNumber=I,isNaN(T)?delete e.columnNumber:e.columnNumber=T),_.d("wiz_enable_component_stack_propagation_killswitch")||(c=i8d(e,c)),c&&_.ni(e,c),Y?_.xV(e):_.OG(e))};
_.xV=function(E,B,I,T,e,c,Y,v){c=c===void 0?{}:c;c.name=I||_.HA("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=T||_.HA("INNERTUBE_CONTEXT_CLIENT_VERSION");I=c;B=B===void 0?"ERROR":B;Y=Y===void 0?!1:Y;B=B===void 0?"ERROR":B;Y=Y===void 0?!1:Y;if(E&&(E.hasOwnProperty("level")&&E.level&&(B=E.level),_.d("console_log_js_exceptions")&&(T=[],T.push("Name: "+E.name),T.push("Message: "+E.message),E.hasOwnProperty("params")&&T.push("Error Params: "+JSON.stringify(E.params)),E.hasOwnProperty("args")&&T.push("Error args: "+
JSON.stringify(E.args)),T.push("File name: "+E.fileName),T.push("Stacktrace: "+E.stack),T=T.join("\n"),window.console.log(T,E)),!(vgc>=5))){T=[];e=_.p(ya6);for(c=e.next();!c.done;c=e.next()){c=c.value;try{c()&&T.push(c())}catch(N){}}T=[].concat(_.ad(Cuc),_.ad(T));var y=wVG(E);e=y.message||"Unknown Error";c=y.name||"UnknownError";var Z=y.stack||E.stacktrace||"Not available";if(Z.startsWith(c+": "+e)){var P=Z.split("\n");P.shift();Z=P.join("\n")}P=y.lineNumber||"Not available";y=y.fileName||"Not available";
var z=0;if(E.hasOwnProperty("args")&&E.args&&E.args.length)for(var m=0;m<E.args.length&&!(z=R0G(E.args[m],"params."+m,I,z),z>=500);m++);else if(E.hasOwnProperty("params")&&E.params){var u=E.params;if(typeof E.params==="object")for(m in u){if(u[m]){var x="params."+m,M=ak(u[m]);I[x]=M;z+=x.length+M.length;if(z>500)break}}else I.params=ak(u)}if(T.length)for(m=0;m<T.length&&!(z=R0G(T[m],"params.context."+m,I,z),z>=500);m++);navigator.vendor&&!I.hasOwnProperty("vendor")&&(I["device.vendor"]=navigator.vendor);
m={message:e,name:c,lineNumber:P,fileName:y,stack:Z,params:I,sampleWeight:1};I=Number(E.columnNumber);isNaN(I)||(m.lineNumber=m.lineNumber+":"+I);if(E.level==="IGNORED")E=0;else a:{E=Z8i();I=_.p(E.messageWeights);for(T=I.next();!T.done;T=I.next())if(T=T.value,m.message&&m.message.match(T.messageRegExp)){E=T.weight;break a}E=_.p(E.callbackWeights);for(I=E.next();!I.done;I=E.next())if(I=I.value,I.callback(m)){E=I.weight;break a}E=1}m.sampleWeight=E;E=_.p(PuB);for(I=E.next();!I.done;I=E.next())if(I=
I.value,I.patternsForType[m.name])for(e=_.p(I.patternsForType[m.name]),T=e.next();!T.done;T=e.next())if(c=T.value,T=m.message.match(c.regexp)){m.params["params.error.original"]=T[0];e=c.groups;c={};for(P=0;P<e.length;P++)c[e[P]]=T[P+1],m.params["params.error."+e[P]]=T[P+1];m.message=I.messageFn(c);break}m.params||(m.params={});E=Z8i();m.params["params.errorServiceSignature"]="msg="+E.messageWeights.length+"&cb="+E.callbackWeights.length;m.params["params.serviceWorker"]="false";_.$i.document&&_.$i.document.querySelectorAll&&
(m.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new MW(z4c,"sample")).constructor!==MW&&(m.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(m);if(m.sampleWeight!==0&&!mEc.has(m.message)){if(Y&&_.d("web_enable_error_204"))QQD(B===void 0?"ERROR":B,m);else{B=B===void 0?"ERROR":B;B==="ERROR"?(dEi.publish("handleError",m),_.d("record_app_crashed_web")&&h46===0&&m.sampleWeight===1&&(h46++,Y={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.d("report_client_error_with_app_crash_ks")||(Y.systemHealth={crashData:{clientError:{logMessage:{message:m.message}}}}),_.hK("appCrashed",Y)),sQt++):B==="WARNING"&&dEi.publish("handleWarning",m);if(_.d("kevlar_gel_error_routing")){Y=B;v=v===void 0?{}:v;b:{E=_.p(uCQ);for(I=E.next();!I.done;I=E.next())if(OF(I.value.toLowerCase())){E=!0;break b}E=!1}if(E)v=void 0;else{I={stackTrace:m.stack};m.fileName&&(I.filename=m.fileName);E=m.lineNumber&&m.lineNumber.split?m.lineNumber.split(":"):[];E.length!==
0&&(E.length!==1||isNaN(Number(E[0]))?E.length!==2||isNaN(Number(E[0]))||isNaN(Number(E[1]))||(I.lineNumber=Number(E[0]),I.columnNumber=Number(E[1])):I.lineNumber=Number(E[0]));E={level:"ERROR_LEVEL_UNKNOWN",message:m.message,errorClassName:m.name,sampleWeight:m.sampleWeight};Y==="ERROR"?E.level="ERROR_LEVEL_ERROR":Y==="WARNING"&&(E.level="ERROR_LEVEL_WARNNING");I={isObfuscated:!0,browserStackInfo:I};v.pageUrl=window.location.href;v.kvPairs=[];_.HA("FEXP_EXPERIMENTS")&&(v.experimentIds=_.HA("FEXP_EXPERIMENTS"));
T=_.HA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!e0B("web_disable_gel_stp_ecatcher_killswitch")&&T)for(e=_.p(Object.keys(T)),c=e.next();!c.done;c=e.next())c=c.value,v.kvPairs.push({key:c,value:String(T[c])});if(T=m.params)for(e=_.p(Object.keys(T)),c=e.next();!c.done;c=e.next())c=c.value,v.kvPairs.push({key:"client."+c,value:String(T[c])});T=_.HA("SERVER_NAME");e=_.HA("SERVER_VERSION");T&&e&&(v.kvPairs.push({key:"server.name",value:T}),v.kvPairs.push({key:"server.version",value:e}));v={errorMetadata:v,
stackTrace:I,logMessage:E}}v&&(_.hK("clientError",v),(Y==="ERROR"||_.d("errors_flush_gel_always_killswitch"))&&_.Li())}_.d("suppress_error_204_logging")||QQD(B,m)}try{mEc.add(m.message)}catch(N){}vgc++}}};
QQD=function(E,B){var I=B.params||{};E={urlParams:{a:"logerror",t:"jserror",type:B.name,msg:B.message.substr(0,250),line:B.lineNumber,level:E,"client.name":I.name},postParams:{url:_.HA("PAGE_NAME",window.location.href),file:B.fileName},method:"POST"};I.version&&(E["client.version"]=I.version);if(E.postParams){B.stack&&(E.postParams.stack=B.stack);B=_.p(Object.keys(I));for(var T=B.next();!T.done;T=B.next())T=T.value,E.postParams["client."+T]=I[T];if(I=_.HA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(B=
_.p(Object.keys(I)),T=B.next();!T.done;T=B.next())T=T.value,E.postParams[T]=I[T];(I=_.HA("LAVA_VERSION"))&&(E.postParams["lava.version"]=I);I=_.HA("SERVER_NAME");B=_.HA("SERVER_VERSION");I&&B&&(E.postParams["server.name"]=I,E.postParams["server.version"]=B)}_.iK(_.HA("ECATCHER_REPORT_HOST","")+"/error_204",E)};
_.L0D=function(E,B){B=B===void 0?"ERROR":B;var I=I===void 0?{}:I;var T=_.WA("ytbin.polymer.shared.lib.tampering.info");T&&(T=T())&&(I["params.tamperingInfo"]=T.sort().join(","));_.xV(E,B,void 0,void 0,!0,I)};
_.ni=function(E){var B=_.aG.apply(1,arguments);E.args||(E.args=[]);Array.isArray(E.args)&&E.args.push.apply(E.args,_.ad(B))};
xEc=function(E){E.level="IGNORED"};
GAQ=function(E,B){Cuc.push(E);B();Cuc.pop()};
NW=function(E,B){for(var I in B)B.hasOwnProperty(I)&&(E=_.HC(E,I,B[I]));return E};
_.O8t=function(E,B,I){I=I===void 0?!1:I;if(!E)return null;if(E.adInfoDialogEndpoint||E.backstageImageUploadEndpoint||E.confirmDialogEndpoint||E.clientActionEndpoint||E.createBackstagePostDialogEndpoint||E.createCommentReplyDialogEndpoint||E.flowEndpoint||E.guideBuilderEndpoint||E.liveChatDialogEndpoint||E.modalEndpoint||E.openPopupAction||E.shareEndpoint||E.shareEntityEndpoint||E.showLiveChatItemEndpoint||E.subscriptionManagerEndpoint||E.unlimitedCreateFamilyEndpoint||E.unlimitedFamilyFlowEndpoint||
E.updateCommentDialogEndpoint||E.updateCommentReplyDialogEndpoint||E.userFeedbackEndpoint||E.videoEditorEndpoint||E.ypcCancelSurveyEndpoint)return B=_.RI("polymer_report_client_url_requested_rate"),!I&&Math.random()<B&&_.OG(new _.P7("urlForEndpoint used on client endpoint",E)),null;var T=_.RI("polymer_report_missing_web_navigation_endpoint_rate");if(E.liveChatEndpoint||E.liveChatReplayEndpoint)T=0;if(!E.commandMetadata&&!E.clickTrackingParams&&Math.random()<T){var e={},c;for(c in E)e[c]="1";_.OG(new _.P7("Missing navigation data",
e))}e="";if(E.commandMetadata&&E.commandMetadata.webCommandMetadata&&E.commandMetadata.webCommandMetadata.url)e=E.commandMetadata.webCommandMetadata.url;else if(E.searchEndpoint)Math.random()<T&&_.OG(new _.P7("Should not manually handle search",E)),e="/results?search_query="+encodeURIComponent(E.searchEndpoint.query).replace(/%20/g,"+"),E.searchEndpoint.params&&(e+="&sp="+E.searchEndpoint.params);else if(E.watchEndpoint)Math.random()<T&&_.OG(new _.P7("Should not manually handle watch",E)),e="/watch?v="+
E.watchEndpoint.videoId,E.watchEndpoint.playlistId&&(e+="&list="+E.watchEndpoint.playlistId),E.watchEndpoint.index&&(e+="&index="+E.watchEndpoint.index),E.watchEndpoint.startTimeSeconds&&(e+="&t="+E.watchEndpoint.startTimeSeconds);else if(E.browseEndpoint)T=E.browseEndpoint.browseId,(c=E.browseEndpoint.canonicalBaseUrl)?e=c:T&&(e=T.substr(0,2),e=e==="FE"?T==="FEwhat_to_watch"?"/":T==="FEmy_videos"?"/my_videos":"/feed/"+T.substr(2):e==="VL"?"/playlist?list="+T.substr(2):"/channel/"+T),e&&E.browseEndpoint.query&&
(e=NW(e+"/search",{query:E.browseEndpoint.query})),e&&E.browseEndpoint.params&&(e=NW(e,{params:E.browseEndpoint.params}));else{if(E.urlEndpoint)return E.urlEndpoint.url;E.signInEndpoint?(e="https://accounts.google.com/ServiceLogin",T={},_.a_.extend(T,B||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),B=T):E.uploadEndpoint?e="//www.youtube.com/upload":E.liveChatEndpoint?(e=E.liveChatEndpoint,T=_.a_.clone(e),_.B6(e.continuation)&&(c=Object.keys(e.continuation)[0],
T.continuation=e.continuation[c].continuation),e=NW("/youtubei/v1/live_chat/get_live_chat",T)):E.liveChatReplayEndpoint?(e=_.a_.clone(E.liveChatReplayEndpoint),e.currentPlayerState&&(_.a_.extend(e,e.currentPlayerState),delete e.currentPlayerState),e=NW("/youtubei/v1/live_chat/get_live_chat_replay",e)):E.liveChatItemContextMenuEndpoint?e=NW("/youtubei/v1/live_chat/get_item_context_menu",E.liveChatItemContextMenuEndpoint):E.liveChatPurchaseMessageEndpoint?e=NW("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
E.liveChatPurchaseMessageEndpoint):E.openSuperStickerBuyFlowCommand?e=NW("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",E.openSuperStickerBuyFlowCommand):E.videoEditEndpoint?e=NW("/edit",{video_id:E.videoEditEndpoint.videoId}):E.liveDashboardEndpoint?e=E.liveDashboardEndpoint.videoId?NW("/live_dashboard",{v:E.liveDashboardEndpoint.videoId}):"/live_dashboard":E.signalNavigationEndpoint&&E.signalNavigationEndpoint.signal&&E.signalNavigationEndpoint.signal==="WEBCAM"?e="/webcam":E.getPdgBuyFlowCommand&&
(e=NW(E.getPdgBuyFlowCommand.buyflowApiPath,{params:E.getPdgBuyFlowCommand.params}))}return e||I?NW(e,B||{}):(_.OG(new _.P7("Error: Can't construct url for endpoint","keys:"+Object.keys(E).sort().join(","),E)),null)};
ngF=function(E){if(E){if(E.browseEndpoint)return!!E.browseEndpoint.nofollow;if(E.watchEndpoint)return!!E.watchEndpoint.nofollow;if(E.urlEndpoint)return!!E.urlEndpoint.nofollow}return!1};
_.H8J=function(E,B){var I=B+E,T=MOG.get(I);if(T)return T;E=B+"-"+E.replace(/([A-Z])/g,"-$1").toLowerCase();MOG.set(I,E);return E};
NXF=function(E){var B=_.Or(E,"action")||_.Or(E,"command")||_.Or(E,"endpoint");if(!B)return null;B=_.H8J(B,"yt");_.h(E,_.g9)&&(B+="-"+_.h(E,_.g9).signal.toLowerCase().replace(/_/g,"-"));return B};
W0i=function(E){try{var B=Object.keys(E)}catch(e){return[]}for(var I=0;I<B.length;I++){var T=B[I];if(ggi.test(T)||Sei.test(T))return JaD(E[T])}return[]};
JaD=function(E){return E.command?[E.command]:E.onExecutionAction?[E.onExecutionAction]:E.onResponseReceivedCommand?[E.onResponseReceivedCommand]:E.updateFlowCommand?[E.updateFlowCommand]:E.clientActions?E.clientActions:E.action?[E.action]:E.actions||E.commands||E.onResponseReceivedActions||E.onResponseReceivedCommands||E.onResponseReceivedEndpoints||[]};
rad=function(E,B){B=B===void 0?!1:B;var I=_.Q().resolve(_.Fx(Ss));I||(I=new XVi,_.Q().addProvider({provide:Ss,useValue:I}));return I&&E&&!_.a_.isEmpty(E)?I.getUrl(E,B):""};
b8f=function(E,B,I){I=I===void 0?"":I;if(B){E.data=B;var T=rad(B);T?(Cr(E,T),ngF(B)||!V9(T)?E.rel="nofollow":E.removeAttribute("rel"),_.h(B,_.JK)&&_.h(B,_.JK).target==="TARGET_NEW_WINDOW"?E.target="_blank":I?E.target=I:E.removeAttribute("target")):(E.removeAttribute("href"),E.removeAttribute("rel"),E.removeAttribute("target"))}};
_.bE=function(E,B){var I=U7;if(Ph())ogi(E,function(){var c=_.aG.apply(0,arguments);uQ(I,function(){B.apply(null,_.ad(c))})});
else{var T=_.WC.getInstance(),e=Gb(B);Q9(function(){e.value=B});
_.uW(function(){var c={},Y=_.X4(T,(c[E]=function(){var v=_.aG.apply(0,arguments);uQ(I,function(){e.value.apply(e,_.ad(v))})},c));
return function(){var v={};_.r9(T,(v[E]="",v),Y)}})}};
_.oH=function(E){return Ph()?Aai(E):jQf(E)};
_.AK=function(E){return Ph()?Aai(E):jQf(E)};
jQf=function(E){return xP(function(){return Aai(E)})};
Aai=function(E){var B=tst(function(I){B.value&&B.value===I||(B.__count=B.__count?B.__count+1:1);B.value=I;var T=function(){var e=E_(null);try{return E==null?void 0:E(I)}finally{E_(e)}}();
return function(){T==null||T();B.value=null}});
return B};
UEc=function(E){var B=U7,I=Cd;return{getFn:function(){return function(T){B.isDisposed||z5(function(){return e2(function(){return E(T)})},{stack:I})!==!0&&T.stopPropagation()}}}};
fxF=function(E,B){if(Ph())kAJ(E,function(T){var e=E_(null);try{B(T)}finally{E_(e)}});
else{var I=Gb(B);Q9(function(){I.value=B});
_.uW(function(){var T=E.value;if(T){var e=function(c){I.value(c)};
T.addEventListener("yt-service-request-sent",e,void 0);return function(){T?T.removeEventListener("yt-service-request-sent",e,void 0):tOG(E)}}tOG(E)})}};
tOG=function(E){var B;(B=Kx.handleError)==null||B.call.apply(B,[Kx].concat(_.ad(Ld(faD.LOG_NULL_EL_REF_VALUE(),E.__expectedTagName,2))))};
js=function(E){if(typeof E.children==="function")return E.children(),null;E=_.p(E.children);for(var B=E.next();!B.done;B=E.next())B=B.value,B();return null};
VOJ=function(E){var B;return((B=E.prototype)==null?void 0:B.render)===void 0};
qeG=function(E){E=E.items.map(E.children);return E.length>0&&typeof E[0]==="string"?E.join(""):E};
DEc=function(E,B,I){I=I===void 0?!1:I;z5(function(){return F0t(E,B,I)})};
F0t=function(E,B,I){I=((I===void 0?0:I)?K0J:R4G)(E,function(){UG(B)});
return I===null?E:I};
UG=function(E){if(E!==void 0&&E!==null)if(E instanceof Tb)for(var B=nd;MS()!=null&&nVJ in MS()&&B.contains(MS());)gt();else if(Array.isArray(E))for(B=_.p(E),E=B.next();!E.done;E=B.next())UG(E.value);else if(E instanceof DK||"function"==typeof _.gf&&E instanceof _.gf)kp(E.toString());else if(FX(E)){if(MS()!==E){var I,T;B=(T=(I=Cd)==null?void 0:I.name)!=null?T:"unknown";throw Error("dc`"+E.tagName+"`"+B);}gt()}else if(E!=null&&E.contentKind===RJ||E instanceof P1)for(B=Fgf(E),B=Array.from(B.childNodes),
B=_.p(B),E=B.next();!E.done;E=B.next())nd.appendChild(E.value),gt();else if(T1(E)&&(E=E.toString()),I=typeof E,I==="boolean"||I==="number"||I==="string")kp(E);else if(typeof E==="function"){B=nd;var e=MS();e&&(e._isSignalTextNode||e._isSafeOrSanitizedHtmlNode)||mW6(B,e,E);gt()}else if(E.type===qeG)UG(E.type(Object.assign({},E.props,{children:E.children[0]})));else{cA.beforeVisit(E);if(typeof E.type==="string"){a:{E.__open||nvi(E.type,E.props.idomKey);e=nd;for(B in E.props)if(E.props[B]!==E34){var c=
E.props[B];I=rt;I.push(B);I.push(c)}B=Kx.attributes;B=B===void 0?kV:B;c=nd;I=O_(c);Wgi(c,I,B);zlJ(e,E.props,!0);if((E.props.skip||E.props.skipchildren)&&nd.hasChildNodes())Jx();else{if(E.type==="style"&&Iai(E.children)===null){Jx();B=void 0;break a}UG(E.children)}MnF();E.__open&&(E.__open=!1);U34(e,E.props);B=e}return B}if(E.type===_.VS)UG(E.children);else if(!BAd(E)){B=E;try{$N6(B)}catch(Y){E=Y,(c=Kx.handleError)==null||c.call.apply(c,[Kx].concat(_.ad(Ld(E,(e=B.type)==null?void 0:e.TAG_NAME))))}B.__open&&
(MnF(),B.__open=!1)}}};
IQi=function(E,B){var I;VOJ(E)?I=new vA(B,E):I=new E(B);I.JSC$8152___type=E;I.__updateContext={nextState:I.state,isForced:!1};return I};
$N6=function(E){var B=E.type,I=B.TAG_NAME;if(B===js)E.props.children=E.children,B(E.props);else{E.children.length>0&&(E.props.children=E.children);var T;(T=E.props).idomKey||(T.idomKey=B);if(I){var e=nvi(I,E.props.idomKey);E.__open=!0;var c=e.__instance}c||(c=IQi(B,E.props),c.props=null,e&&(e.__instance=c,c.el=e));var Y;I=((Y=c.__updateContext)!=null?Y:{nextState:c.state,isForced:!1}).nextState;c.__updateContext=void 0;B.getDerivedStateFromProps&&(I=B.getDerivedStateFromProps(E.props,I));c.props=
E.props;c.state=I;Y=function(){var v=c;cA.beforeRender(v);var y=v.render(v.props);cA.afterRender(v,y);y?(v.props.idomKey&&(y.props.idomKey=v.props.idomKey),v=y):v=void 0;if(y=v)if(y.__open=E.__open,v=UG(y),E.__open=y.__open,!B.TAG_NAME)if(v)B.TAG_NAME=v.tagName.toLowerCase(),v.__instance=c,c.el=v;else{var Z;if((Z=c.hooks)==null?0:Z.length){var P;(P=Kx.handleError)==null||P.call.apply(P,[Kx].concat(_.ad(Ld(Error("jd")))))}}c.didPatch();cA.didPatch(c)};
(I=c.functionComponent)?VgG({component:I,debugInstance:c.props.debugInstance,fn:Y}):Y()}};
BAd=function(E){var B=E.type;if(!VOJ(B)||B===js||B.componentType===Z0)return!1;E.props.children=E.children.length>1?E.children:E.children[0];var I,T=(I=E.props.idomKey)!=null?I:E.type,e;if(MS()&&((e=MS()[BA])==null?void 0:e.key)===T){var c=MS(),Y=c[BA];if(!Y)throw Error("cc`"+c.tagName);var v;(v=Y.updateSignalsFromIdomProps)==null||v.call(Y,E.props);TAi(Y);return!0}if(ebJ.has(B.name))throw v=B.name,B=(Y=(c=Cd)==null?void 0:c.name)!=null?Y:"unknown",Error("bc`"+v+"`"+B);sHF(E.type,E.props,E.children);
E.props.renderedFromIdom=!0;(v=VgG({component:E.type,debugInstance:E.props.debugInstance,fn:function(){return yKB(E.type,E.props)}}))&&lQF(v);
return!0};
ck6=function(E){for(var B=0;B<II(E).length;B++)gt()};
TAi=function(E){var B=ipJ();if(B)ck6(B);else for(var I=0;I<E.numNodes;I++)(B=ipJ())?ck6(B):gt()};
ipJ=function(){var E;return(E=MS()[BA])==null?void 0:E.sourceDynamicRange};
lQF=function(E){E=tnJ(E);E=Array.isArray(E)?E:[E];E=_.p(E);for(var B=E.next();!B.done;B=E.next())nd.insertBefore(B.value,MS()),gt()};
p$d=function(E){var B=wCD(),I=xP(function(){return{value:typeof E==="function"?E():E}});
return[I.value,function(T){if(aI!==null){var e;(e=Kx.handleError)==null||e.call.apply(e,[Kx].concat(_.ad(Ld(Error("kd")))))}I.value=typeof T==="function"?T(I.value):T;B.__updateContext={nextState:B.state,isForced:!0};T=fx(B.effectContext);e=qS(!1);try{if(B.el){var c,Y={},v=(Y.props=B.props,Y.type=B.JSC$8152___type,Y.children=(c=B.props.children)!=null?c:[],Y[fd]=!0,Y);try{DEc(B.el,v,!0)}catch(P){var y,Z;(Z=Kx.handleError)==null||Z.call.apply(Z,[Kx].concat(_.ad(Ld(P,(y=B.JSC$8152___type)==null?void 0:
y.TAG_NAME))))}}}finally{qS(e),fx(T)}}]};
tK=function(E,B){var I=U7,T=function(e){uQ(I,function(){B(e)})};
window.addEventListener(E,T,void 0);_.dt(function(){window.removeEventListener(E,T,void 0)})};
_.VU=function(E,B){var I=U7;_.uW(function(){var T,e=(T=B.observer)!=null?T:_.Q().resolve(fi);if(T=E.value){var c=Y1d(T),Y=[];B.showOption&&Y.push(e.observe(T,function(){uQ(I,function(){B.visibilityCallback(!0)})},B.showOption));
B.hideOption&&Y.push(e.observe(T,function(){uQ(I,function(){B.visibilityCallback(!1)})},B.hideOption));
B.prescanOption&&B.prescanCallback&&Y.push(e.observe(T,function(){uQ(I,function(){B.prescanCallback()})},B.prescanOption));
var v;c.visibilityMonitorKeys=((v=c.visibilityMonitorKeys)!=null?v:[]).concat(Y)}})};
Y1d=function(E){var B;return(B=E.polymerController)!=null?B:E};
_.qW=function(E){E.componentType=Z0};
C0c=function(E,B){var I=aQQ;return _.w(_.VS,null,_.AV(Kx.enableLazyTsx,function(){return _.w(v3D,{id:I,value:E,children:B})},function(){var T=ykJ(I,E);
Fs(T);T=fx(T);try{return B()}finally{fx(T)}}))};
v3D=function(E){var B=E.children;E=ykJ(E.id,E.value);Fs(E);E=fx(E);try{return _.w(_.VS,null,eI(B()))}finally{fx(E)}};
ykJ=function(E,B){return Object.assign(Object.create(w$f),{id:E,contextValue:B})};
Zp4=function(E){var B,I=U7;_.QS(function(){var T=fx(I),e=qS(!B);try{if(B)DEc(B,E.children(),!0);else if(B=eI(E.children()),!(B instanceof Element))throw Error("ld");}finally{qS(e),fx(T)}});
return B};
P04=function(E){var B,I=hx(function(){var T=qS(!0);try{B=II(E())}finally{qS(T)}},!1);
return[B,I]};
mNJ=function(E){E=E.buf.charCodeAt(E.pos++);return zbJ[E]};
F4=function(E){var B=0,I=0;do{var T=mNJ(E);B|=(T&31)<<I;I+=5}while(T&32);return B<0?B+4294967296:B};
hb6=function(E,B,I){QSc(E,B);E[B][dNF].unshift(I)};
QSc=function(E,B){if(!E[B]||!E[B][dNF]){var I=E[B],T=I?[I]:[];E[B]=function(){for(var e=_.p(T),c=e.next();!c.done;c=e.next())c.value.apply(this,arguments)};
E[B][dNF]=T}};
sSc=function(E){if(!E)return[];var B=[];E=_.p(E);for(var I=E.next();!I.done;I=E.next())I=I.value,Array.isArray(I)?B.push.apply(B,_.ad(sSc(I))):B.push(I);return B};
_.Ki=function(E,B){if(E&&uZf.test(E)||E==="//")return E;if(Lac===void 0){Lac=!1;try{var I=new URL("b","http://a");I.pathname="c%20d";Lac=I.href==="http://a/c%20d"}catch(T){}}B||(B=document.baseURI||window.location.href);if(Lac)try{return(new URL(E,B)).href}catch(T){return E}Da||(Da=document.implementation.createHTMLDocument("temp"),Da.base=Da.createElement("base"),Da.head.appendChild(Da.base),Da.anchor=Da.createElement("a"),Da.body.appendChild(Da.anchor));Da.base.href=B;Da.anchor.href=E;return Da.anchor.href||
E};
GIB=function(E,B){return E.replace(xN4,function(I,T,e,c){return T+"'"+_.Ki(e.replace(/["']/g,""),B)+"'"+c})};
OpG=function(E){return E.substring(0,E.lastIndexOf("/")+1)};
HpD=function(){n3i=!1;for(var E=RH.length,B=0;B<E;B++){var I=RH[B];if(I)try{I()}catch(T){setTimeout(function(){throw T;})}}RH.splice(0,E);
MxQ+=E};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(E){console.log("["+E.is+"]: registered")};
g3d=function(E){NAi.push(E)};
Ep=function(E){return S1t[E]||(S1t[E]=E.indexOf("-")<0?E:E.replace(JkB,function(B){return B[1].toUpperCase()}))};
Bu=function(E){return S1t[E]||(S1t[E]=E.replace(Wac,"-$1").toLowerCase())};
X$i=function(E,B){var I=B.parentInfo&&X$i(E,B.parentInfo);if(I)for(E=I.firstChild,I=0;E;E=E.nextSibling){if(B.parentIndex===I++)return E}else return E};
rk6=function(E,B){E=E._methodHost||E;return function(I){if(E[B])E[B](I,I.detail);else console.warn("listener method `"+B+"` not defined")}};
$q=function(E){return E.indexOf(".")>=0};
Ij=function(E){var B=E.indexOf(".");return B===-1?E:E.slice(0,B)};
bpt=function(E,B){return E.indexOf(B+".")===0};
Tk=function(E,B){return B.indexOf(E+".")===0};
e$=function(E,B,I){return B+I.slice(E.length)};
o3f=function(E,B){return E===B||bpt(E,B)||Tk(E,B)};
lZ=function(E){if(Array.isArray(E)){for(var B=[],I=0;I<E.length;I++)for(var T=E[I].toString().split("."),e=0;e<T.length;e++)B.push(T[e]);return B.join(".")}return E};
Akt=function(E){return Array.isArray(E)?lZ(E).split("."):E.toString().split(".")};
cu=function(E,B,I){B=Akt(B);for(var T=0;T<B.length;T++){if(!E)return;E=E[B[T]]}I&&(I.path=B.join("."));return E};
jSG=function(E,B,I){var T=Akt(B),e=T[T.length-1];if(T.length>1){for(B=0;B<T.length-1;B++)if(E=E[T[B]],!E)return;E[e]=I}else E[B]=I;return T.join(".")};
UNF=function(E,B,I){var T=E[B];if(!T)T=E[B]={};else if(!E.hasOwnProperty(B)&&(T=E[B]=Object.create(E[B]),I))for(var e in T)for(E=T[e],B=T[e]=Array(E.length),I=0;I<E.length;I++)B[I]=E[I];return T};
pg=function(E,B,I,T,e,c){if(B){var Y=!1,v=iZ++,y;for(y in I){var Z=e?Ij(y):y;if(Z=B[Z])for(var P=0,z=Z.length,m=void 0;P<z&&(m=Z[P]);P++)m.info&&m.info.lastRun===v||e&&!kI4(y,m.trigger)||(m.info&&(m.info.lastRun=v),m.fn(E,y,I,T,m.info,e,c),Y=!0)}return Y}return!1};
kI4=function(E,B){if(B){var I=B.name;return I==E||!(!B.structured||!bpt(I,E))||!(!B.wildcard||!Tk(I,E))}return!0};
tx6=function(E,B,I,T,e){B=typeof e.method==="string"?E[e.method]:e.method;I=e.property;B?B.call(E,E.__data[I],T[I]):e.dynamicFn||console.warn("observer method `"+e.method+"` not defined")};
fQF=function(E,B,I,T){I={value:I,queueProperty:!0};T&&(I.path=T);(0,_.Yq)(E).dispatchEvent(new CustomEvent(B,{detail:I}))};
Vxf=function(E,B,I,T,e,c){c=(T=(c?Ij(B):B)!=B?B:null)?cu(E,T):E.__data[B];T&&c===void 0&&(c=I[B]);fQF(E,e.eventName,c,T)};
q1d=function(E,B,I,T,e){I=E.__data[B];vu&&(I=vu(I,e.attrName,"attribute",E));E._propertyToAttribute(B,e.attrName,I)};
DNi=function(E){var B=E.constructor.__orderedComputedDeps;if(!B){B=new Map;for(var I=E.__computeEffects,T=Fat(E),e=T.counts,c=T.ready,Y=T.total;T=c.shift();)B.set(T,B.size),(T=I[T])&&T.forEach(function(v){v=v.info.methodInfo;--Y;--e[v]===0&&c.push(v)});
Y!==0&&console.warn("Computed graph for "+E.localName+" incomplete; circular?");E.constructor.__orderedComputedDeps=B}return B};
Fat=function(E){var B=E.__computeInfo,I={};E=E.__computeEffects;var T=[],e=0,c;for(c in B){var Y=B[c];e+=I[c]=Y.args.filter(function(y){return!y.literal}).length+(Y.dynamicFn?1:0)}for(var v in E)B[v]||T.push(v);
return{counts:I,ready:T,total:e}};
Rbc=function(E,B,I,T,e){B=Kai(E,B,I,T,e);if(B===yX)return!1;e=e.methodInfo;if(E.__dataHasAccessor&&E.__dataHasAccessor[e])return E._setPendingProperty(e,B,!0);E[e]=B;return!1};
$H4=function(E,B,I,T,e,c,Y){I.bindings=I.bindings||[];T={kind:T,target:e,parts:c,literal:Y,isCompound:c.length!==1};I.bindings.push(T);T.target&&T.kind!="attribute"&&T.kind!="text"&&!T.isCompound&&T.parts[0].mode==="{"&&(I=T.parts[0],c=I.negate,T.listenerEvent=I.event||Bu(e)+"-changed",T.listenerNegate=c);e=B.nodeInfoList.length;for(I=0;I<T.parts.length;I++){var v=T.parts[I];v.compoundIndex=I;c=E;Y=B;var y=T,Z=v,P=e;if(!Z.literal)if(y.kind==="attribute"&&y.target[0]==="-")console.warn("Cannot set attribute "+
y.target+' because "-" is not a valid attribute starting character');else for(v=Z.dependencies,y={index:P,binding:y,part:Z,evaluator:c},Z=0;Z<v.length;Z++)P=v[Z],typeof P=="string"&&(P=E4f(P),P.wildcard=!0),c._addTemplatePropertyEffect(Y,P.rootProperty,{fn:BT4,info:y,trigger:P})}};
BT4=function(E,B,I,T,e,c,Y){Y=Y[e.index];var v=e.binding,y=e.part;c&&y.source&&B.length>y.source.length&&v.kind=="property"&&!v.isCompound&&Y.__isPropertyEffectsClient&&Y.__dataHasAccessor&&Y.__dataHasAccessor[v.target]?(I=I[B],B=e$(y.source,v.target,B),Y._setPendingPropertyOrPath(B,I,!1,!0)&&E._enqueueClient(Y)):(B=e.evaluator._evaluateBinding(E,y,B,I,T,c),B!==yX&&(v.isCompound&&(I=Y.__dataCompoundStorage[v.target],I[y.compoundIndex]=B,B=I.join("")),v.kind==="attribute"||v.target!=="textContent"&&
(v.target!=="value"||Y.localName!=="input"&&Y.localName!=="textarea")||(B=B==void 0?"":B),y=B,vu&&(y=vu(y,v.target,v.kind,Y)),v.kind=="attribute"?E._valueToNodeAttribute(Y,y,v.target):(v=v.target,Y.__isPropertyEffectsClient&&Y.__dataHasAccessor&&Y.__dataHasAccessor[v]?Y.__readOnly&&Y.__readOnly[v]||Y._setPendingProperty(v,y)&&E._enqueueClient(Y):E._setUnmanagedPropertyToNode(Y,v,y))))};
IRi=function(E,B,I){if(I.listenerEvent){var T=I.parts[0];E.addEventListener(I.listenerEvent,function(e){var c=I.target,Y=T.source,v=T.negate,y=e.detail,Z=y&&y.path;Z?(Y=e$(c,Y,Z),e=y&&y.value):e=e.currentTarget[c];B.__readOnly&&B.__readOnly[Y]||!B._setPendingPropertyOrPath(Y,v?!e:e,!0,!!Z)||y&&y.queueProperty||B._invalidateProperties()})}};
TTJ=function(E,B,I,T,e,c){c=B.static||c&&(typeof c!=="object"||c[B.methodName]);e={methodName:B.methodName,args:B.args,methodInfo:e,dynamicFn:c};for(var Y=0,v=void 0;Y<B.args.length&&(v=B.args[Y]);Y++)v.literal||E._addPropertyEffect(v.rootProperty,I,{fn:T,info:e,trigger:v});c&&E._addPropertyEffect(B.methodName,I,{fn:T,info:e});return e};
Kai=function(E,B,I,T,e){T=E._methodHost||E;var c=T[e.methodName];if(c)return E=E._marshalArgs(e.args,B,I),E===yX?yX:c.apply(T,E);e.dynamicFn||console.warn("method `"+e.methodName+"` not defined")};
eLF=function(E){for(var B="",I=0;I<E.length;I++)B+=E[I].literal||"";return B};
ieG=function(E){if(E=E.match(/([^\s]+?)\(([\s\S]*)\)/)){var B={methodName:E[1],static:!0,args:lRB};return E[2].trim()?cMi(E[2].replace(/\\,/g,"&comma;").split(","),B):B}return null};
cMi=function(E,B){B.args=E.map(function(I){I=E4f(I);I.literal||(B.static=!1);return I},this);
return B};
E4f=function(E){E=E.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var B={name:E,value:"",literal:!1},I=E[0];I==="-"&&(I=E[1]);I>="0"&&I<="9"&&(I="#");switch(I){case "'":case '"':B.value=E.slice(1,-1);B.literal=!0;break;case "#":B.value=Number(E),B.literal=!0}B.literal||(B.rootProperty=Ij(E),B.structured=$q(E),B.structured&&(B.wildcard=E.slice(-2)==".*",B.wildcard&&(B.name=E.slice(0,-2))));return B};
pEB=function(E,B,I){E=cu(E,I);E===void 0&&(E=B[I]);return E};
YOc=function(E,B,I,T){T={indexSplices:T};Cg&&!E._overrideLegacyUndefined&&(B.splices=T);E.notifyPath(I+".splices",T);E.notifyPath(I+".length",B.length);Cg&&!E._overrideLegacyUndefined&&(T.indexSplices=[])};
wl=function(E,B,I,T,e,c){YOc(E,B,I,[{index:T,addedCount:e,removed:c,object:B,type:"splice"}])};
v4c=function(E){E=GIB((E.body?E.body:E).textContent,E.baseURI);var B=document.createElement("style");B.textContent=E;return B};
CO6=function(E){E=E.trim().split(/\s+/);for(var B=[],I=0;I<E.length;I++)B.push.apply(B,_.ad(yMQ(E[I])));return B};
yMQ=function(E){var B=ZA.import(E);if(!B)return console.warn("Could not find style data in module named",E),[];if(B._styles===void 0){E=[];E.push.apply(E,_.ad(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(B)));var I=B.querySelector("template");I&&E.push.apply(E,_.ad(wEt(I,B.assetpath)));B._styles=E}return B._styles};
wEt=function(E,B){if(!E._styles){for(var I=[],T=E.content.querySelectorAll("style"),e=0;e<T.length;e++){var c=T[e],Y=c.getAttribute("include");Y&&I.push.apply(I,_.ad(CO6(Y).filter(function(v,y,Z){return Z.indexOf(v)===y})));
B&&(c.textContent=GIB(c.textContent,B));I.push(c)}E._styles=I}return E._styles};
Zec=function(E){return(E=ZA.import(E))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(E):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(E){var B=[];E=E.querySelectorAll("link[rel=import][type~=css]");for(var I=0;I<E.length;I++){var T=E[I];if(T.import){var e=T.import;if((T=T.hasAttribute("shady-unscoped"))&&!e._unscopedStyle){var c=v4c(e);c.setAttribute("shady-unscoped","");e._unscopedStyle=c}else e._style||(e._style=v4c(e));B.push(T?e._unscopedStyle:e._style)}}return B};
zLG=function(E){E=E.trim().split(/\s+/);for(var B="",I=0;I<E.length;I++)B+=PO4(E[I]);return B};
PO4=function(E){var B=ZA.import(E);if(B&&B._cssText===void 0){var I=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(B),T=B.querySelector("template");T&&(I+=mHi(T,B.assetpath));B._cssText=I||null}B||console.warn("Could not find style data in module named",E);return B&&B._cssText||""};
mHi=function(E,B){var I="";E=wEt(E,B);for(B=0;B<E.length;B++){var T=E[B];T.parentNode&&T.parentNode.removeChild(T);I+=T.textContent}return I};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(E){var B="";E=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(E);for(var I=0;I<E.length;I++)B+=E[I].textContent;return B};
Pu=function(E,B){return{index:E,removed:[],addedCount:B}};
dH6=function(E,B,I,T){var e=0,c=0,Y=0,v=0,y=Math.min(B-e,T-c);if(e==0&&c==0)a:{for(Y=0;Y<y;Y++)if(E[Y]!==I[Y])break a;Y=y}if(B==E.length&&T==I.length){v=E.length;for(var Z=I.length,P=0;P<y-Y&&QLD(E[--v],I[--Z]);)P++;v=P}e+=Y;c+=Y;B-=v;T-=v;if(B-e==0&&T-c==0)return[];if(e==B){for(B=Pu(e,0);c<T;)B.removed.push(I[c++]);return[B]}if(c==T)return[Pu(e,B-e)];y=e;Y=c;T=T-Y+1;v=B-y+1;B=Array(T);for(Z=0;Z<T;Z++)B[Z]=Array(v),B[Z][0]=Z;for(Z=0;Z<v;Z++)B[0][Z]=Z;for(Z=1;Z<T;Z++)for(P=1;P<v;P++)if(E[y+P-1]===
I[Y+Z-1])B[Z][P]=B[Z-1][P-1];else{var z=B[Z-1][P]+1,m=B[Z][P-1]+1;B[Z][P]=z<m?z:m}y=B.length-1;Y=B[0].length-1;T=B[y][Y];for(E=[];y>0||Y>0;)y==0?(E.push(2),Y--):Y==0?(E.push(3),y--):(v=B[y-1][Y-1],Z=B[y-1][Y],P=B[y][Y-1],z=Z<P?Z<v?Z:v:P<v?P:v,z==v?(v==T?E.push(0):(E.push(1),T=v),y--,Y--):z==Z?(E.push(3),y--,T=Z):(E.push(2),Y--,T=P));E.reverse();B=void 0;y=[];for(Y=0;Y<E.length;Y++)switch(E[Y]){case 0:B&&(y.push(B),B=void 0);e++;c++;break;case 1:B||(B=Pu(e,0));B.addedCount++;e++;B.removed.push(I[c]);
c++;break;case 2:B||(B=Pu(e,0));B.addedCount++;e++;break;case 3:B||(B=Pu(e,0)),B.removed.push(I[c]),c++}B&&y.push(B);return y};
hLG=function(E,B){return dH6(E,E.length,B,B.length)};
QLD=function(E,B){return E===B};
u3c=function(E){if(E instanceof sLf)return E.value;throw Error("Cd`"+E);};
LVF=function(E,B){for(var I in B)I===null?E.style.removeProperty(I):E.style.setProperty(I,B[I])};
xHt=function(E,B){return(E=window.getComputedStyle(E).getPropertyValue(B))?E.trim():""};
MfG=function(E){requestAnimationFrame(function(){G8F?G8F(E):(OeG||(OeG=new Promise(function(B){n44=B}),document.readyState==="complete"?n44():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&n44()})),OeG.then(function(){E&&E()}))})};
g46=function(E){Hed=E&&E.shimcssproperties?!1:NT4||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
rMi=function(E){if(!(SOi.indexOf(E)>-1)&&E!=="touchend"&&JMi&&WVJ&&XEf)return{passive:!0}};
jL6=function(E){for(var B=beJ?["click"]:SOi,I=0,T;I<B.length;I++)T=B[I],E?(o4Q.length=0,document.addEventListener(T,AMc,!0)):document.removeEventListener(T,AMc,!0)};
zk=function(E){var B=E.type;return SOi.indexOf(B)>-1?B==="mousemove"?(B=E.buttons===void 0?1:E.buttons,E instanceof window.MouseEvent&&!UHt&&(B=k8G[E.which]||0),!!(B&1)):(E.button===void 0?0:E.button)===0:!1};
tfG=function(E){if(E.type==="click"){if(E.detail===0)return!0;var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E);if(!B.nodeType||B.nodeType!==Node.ELEMENT_NODE)return!0;B=B.getBoundingClientRect();var I=E.pageX;E=E.pageY;return!(I>=B.left&&I<=B.right&&E>=B.top&&E<=B.bottom)}return!1};
fRi=function(E,B,I){E.movefn=B;E.upfn=I;document.addEventListener("mousemove",B);document.addEventListener("mouseup",I)};
mS=function(E){document.removeEventListener("mousemove",E.movefn);document.removeEventListener("mouseup",E.upfn);E.movefn=null;E.upfn=null};
VfD=function(E,B){for(var I=document.elementFromPoint(E,B),T=I;T&&T.shadowRoot&&!window.ShadyDOM;){var e=T;T=T.shadowRoot.elementFromPoint(E,B);if(e===T)break;T&&(I=T)}return I};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(E){var B=qOG(E);return B.length>0?B[0]:E.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(E){var B=E.type,I=E.currentTarget.__polymerGestures;if(I&&(I=I[B])){if(!E.__polymerGesturesHandled&&(E.__polymerGesturesHandled={},B.slice(0,5)==="touch")){var T=E.changedTouches[0];B==="touchstart"&&E.touches.length===1&&(FVd=T.identifier);if(FVd!==T.identifier)return;JMi||(B==="touchstart"||B==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E)}T=
E.__polymerGesturesHandled;if(!T.skip){for(var e=0,c;e<QX.length;e++)c=QX[e],I[c.name]&&!T[c.name]&&c.flow&&c.flow.start.indexOf(E.type)>-1&&c.reset&&c.reset();for(e=0;e<QX.length;e++)c=QX[e],I[c.name]&&!T[c.name]&&(T[c.name]=!0,c[B](E))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(E){var B=E.changedTouches[0],I=E.type;if(I==="touchstart")DH4=B.clientX,KV6=B.clientY,RL4=!1;else if(I==="touchmove"&&!RL4){RL4=!0;I="auto";for(var T=qOG(E),e=0,c;e<T.length;e++)if(c=T[e],c.__polymerGesturesTouchAction){I=c.__polymerGesturesTouchAction;break}T=!1;e=Math.abs(DH4-B.clientX);B=Math.abs(KV6-B.clientY);E.cancelable&&(I==="none"?T=!0:I==="pan-x"?T=B>e:I==="pan-y"&&(T=e>B));T?E.preventDefault():
dl("track")}};
sp=function(E,B,I){return hJ[B]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,B,I),!0):!1};
uZ=function(E,B,I){return hJ[B]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,B,I),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(E,B,I){var T=hJ[B],e=T.deps,c=T.name,Y=E.__polymerGestures;Y||(E.__polymerGestures=Y={});for(var v=0,y,Z;v<e.length;v++)y=e[v],beJ&&SOi.indexOf(y)>-1&&y!=="click"||((Z=Y[y])||(Y[y]=Z={_count:0}),Z._count===0&&E.addEventListener(y,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,rMi(y)),Z[c]=(Z[c]||0)+1,Z._count=(Z._count||0)+1);E.addEventListener(B,I);T.touchAction&&_.Lg(E,T.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(E,B,I){var T=hJ[B],e=T.deps;T=T.name;var c=E.__polymerGestures;if(c)for(var Y=0,v,y;Y<e.length;Y++)v=e[Y],(y=c[v])&&y[T]&&(y[T]=(y[T]||1)-1,y._count=(y._count||1)-1,y._count===0&&E.removeEventListener(v,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,rMi(v)));E.removeEventListener(B,I)};
E6D=function(E){QX.push(E);for(var B=0;B<E.emits.length;B++)hJ[E.emits[B]]=E};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(E){for(var B=0,I;B<QX.length;B++){I=QX[B];for(var T=0,e;T<I.emits.length;T++)if(e=I.emits[T],e===E)return I}return null};
_.Lg=function(E,B){JMi&&E instanceof HTMLElement&&xq.run(function(){E.style.touchAction=B});
E.__polymerGesturesTouchAction=B};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(E,B,I){B=new Event(B,{bubbles:!0,cancelable:!0,composed:!0});B.detail=I;(0,_.Yq)(E).dispatchEvent(B);B.defaultPrevented&&(E=I.preventer||I.sourceEvent)&&E.preventDefault&&E.preventDefault()};
dl=function(E){E=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E);E.info&&(E.info.prevent=!0)};
Gk=function(E,B,I,T){B&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B,E,{x:I.clientX,y:I.clientY,sourceEvent:I,preventer:T,prevent:function(e){return dl(e)}})};
BZF=function(E,B,I){if(E.prevent)return!1;if(E.started)return!0;I=Math.abs(E.y-I);return Math.abs(E.x-B)>=5||I>=5};
$o4=function(E,B,I){if(B){var T=E.moves[E.moves.length-2],e=E.moves[E.moves.length-1],c=e.x-E.x,Y=e.y-E.y,v=0;if(T){var y=e.x-T.x;v=e.y-T.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B,"track",{state:E.state,x:I.clientX,y:I.clientY,dx:c,dy:Y,ddx:y,ddy:v,sourceEvent:I,hover:function(){return VfD(I.clientX,I.clientY)}})}};
TZ6=function(E,B,I){var T=Math.abs(B.clientX-E.x),e=Math.abs(B.clientY-E.y),c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I||B);!c||IuB[c.localName]&&c.hasAttribute("disabled")||!(isNaN(T)||isNaN(e)||T<=25&&e<=25||tfG(B))||E.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,"tap",{x:B.clientX,y:B.clientY,sourceEvent:B,preventer:I})};
ei4=function(E,B,I,T,e){var c;e&&(c=typeof I==="object"&&I!==null)&&(T=E.__dataTemp[B]);T=T!==I&&(T===T||I===I);c&&T&&(E.__dataTemp[B]=I);return T};
cCQ=function(){if(Op&&!Mq){if(!lui){lui=!0;var E=document.createElement("style");E.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(E)}return!0}return!1};
pD6=function(){return ifB};
YjG=function(E,B){ifB=E;Object.setPrototypeOf(E,B.prototype);new B;ifB=null};
aud=function(E,B){for(var I=0;I<B.length;I++){var T=B[I];if(!!E!=!!T.__hideTemplateChildren__)if(T.nodeType===Node.TEXT_NODE)E?(T.__polymerTextContent__=T.textContent,T.textContent=""):T.textContent=T.__polymerTextContent__;else if(T.localName==="slot")if(E)T.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Yq)((0,_.Yq)(T).parentNode).replaceChild(T.__polymerReplaced__,T);else{var e=T.__polymerReplaced__;e&&(0,_.Yq)((0,_.Yq)(e).parentNode).replaceChild(T,e)}else T.style&&(E?(T.__polymerDisplay__=
T.style.display,T.style.display="none"):T.style.display=T.__polymerDisplay__);T.__hideTemplateChildren__=E;T._showHideChildren&&T._showHideChildren(E)}};
v6Q=function(E){return(E=E.__dataHost)&&E._methodHost||E};
wDG=function(E,B,I){var T=I.mutableData?yCF:Hu;Nq.mixin&&(T=Nq.mixin(T));var e=function(){return T.apply(this,arguments)||this};
_.L(e,T);e.prototype.__templatizeOptions=I;e.prototype._bindTemplate(E);CJD(e,E,B,I);return e};
Q0Q=function(E,B,I,T){var e=I.forwardHostProp;if(e&&B.hasHostProps){var c=E.localName=="template",Y=B.templatizeTemplateClass;if(!Y){if(c){var v=I.mutableData?Zfc:PJt;Y=function(){return v.apply(this,arguments)||this};
_.L(Y,v);Y=B.templatizeTemplateClass=Y}else{var y=E.constructor;Y=function(){return y.apply(this,arguments)||this};
_.L(Y,y);Y=B.templatizeTemplateClass=Y}var Z=B.hostProps,P;for(P in Z)Y.prototype._addPropertyEffect("_host_"+P,Y.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:ziB(e)}),Y.prototype._createNotifyingProperty("_host_"+P);gl&&T&&moB(B,I,T)}E.__dataProto&&Object.assign(E.__data,E.__dataProto);if(c)YjG(E,Y),E.__dataTemp={},E.__dataPending=null,E.__dataOld=null,E._enableProperties();else{Object.setPrototypeOf(E,Y.prototype);B=B.hostProps;for(var z in B)z="_host_"+z,z in E&&(B=E[z],delete E[z],E.__data[z]=
B)}}};
ziB=function(E){return function(B,I,T){E.call(B.__templatizeOwner,I.substring(6),T[I])}};
CJD=function(E,B,I,T){var e=I.hostProps||{},c;for(c in T.instanceProps){delete e[c];var Y=T.notifyInstanceProp;Y&&E.prototype._addPropertyEffect(c,E.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:dof(Y)})}if(T.forwardHostProp&&B.__dataHost)for(var v in e)I.hasHostProps||(I.hasHostProps=!0),E.prototype._addPropertyEffect(v,E.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:hiJ()})};
dof=function(E){return function(B,I,T){E.call(B.__templatizeOwner,B,I,T[I])}};
hiJ=function(){return function(E,B,I){E.__dataHost._setPendingPropertyOrPath("_host_"+B,I[B],!0,!0)}};
Nq=function(E,B,I){if(S$&&!v6Q(E))throw Error("Id");I=I||{};if(E.__templatizeOwner)throw Error("Jd");E.__templatizeOwner=B;var T=(B?B.constructor:Hu)._parseTemplate(E),e=T.templatizeInstanceClass;e||(e=wDG(E,T,I),T.templatizeInstanceClass=e);var c=v6Q(E);Q0Q(E,T,I,c);I=function(){return e.apply(this,arguments)||this};
_.L(I,e);I.prototype._methodHost=c;I.prototype.__dataHost=E;I.prototype.__templatizeOwner=B;I.prototype.__hostProps=T.hostProps;return I};
moB=function(E,B,I){I=I.constructor._properties;E=E.propertyEffects;B=B.instanceProps;for(var T in E)if(!(I[T]||B&&B[T]))for(var e=E[T],c=0;c<e.length;c++){var Y=e[c].info.part;if(!Y.signature||!Y.signature.static){console.warn("Property '"+T+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
s0J=function(E,B){for(var I;B;)if(I=B.__dataHost?B:B.__templatizeInstance)if(I.__dataHost!=E)B=I.__dataHost;else return I;else B=(0,_.Yq)(B).parentNode;return null};
JJ=function(E){return E.localName==="slot"};
uzc=function(){for(var E=Wu.prototype,B="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),I={},T=0;T<B.length;I={method$jscomp$32:void 0},T++)I.method$jscomp$32=B[T],E[I.method$jscomp$32]=function(e){return function(){return this.node[e.method$jscomp$32].apply(this.node,arguments)}}(I)};
LxG=function(E,B){for(var I={},T=0;T<B.length;I={name$jscomp$378:void 0},T++)I.name$jscomp$378=B[T],Object.defineProperty(E,I.name$jscomp$378,{get:function(e){return function(){return this.node[e.name$jscomp$378]}}(I),
configurable:!0})};
xoQ=function(){for(var E=Wu.prototype,B=["textContent","innerHTML","className"],I={},T=0;T<B.length;I={name$jscomp$379:void 0},T++)I.name$jscomp$379=B[T],Object.defineProperty(E,I.name$jscomp$379,{get:function(e){return function(){return this.node[e.name$jscomp$379]}}(I),
set:function(e){return function(c){this.node[e.name$jscomp$379]=c}}(I),
configurable:!0})};
GNF=function(){X7=document.documentElement.getAttribute("dir");X7=document.documentElement.getAttribute("dir");for(var E=0;E<rl.length;E++){var B=rl[E];B.__autoDirOptOut||B.setAttribute("dir",X7)}};
Hfc=function(){bZ=!0;requestAnimationFrame(function(){bZ=!1;Of4(n6F);setTimeout(function(){for(var E=0,B=oj.length;E<B;E++)M9f(oj.shift())})})};
Of4=function(E){for(;E.length;)M9f(E.shift())};
M9f=function(E){var B=E[0],I=E[1];E=E[2];try{I.apply(B,E)}catch(T){setTimeout(function(){throw T;})}};
_.NZD=function(E,B,I){bZ||Hfc();n6F.push([E,B,I])};
_.AJ=function(E,B,I){bZ||Hfc();oj.push([E,B,I])};
JCF=function(E,B){B=B===void 0?!1:B;if(!g6d||!Sjd||!g6d.handlesDynamicScoping)return null;var I=Sjd.ScopingShim;if(!I)return null;var T=I.scopeForNode(E),e=(0,_.Yq)(E).getRootNode(),c=function(Y){if((0,_.Yq)(Y).getRootNode()===e){var v=Array.from(g6d.nativeMethods.querySelectorAll.call(Y,"*"));v.push(Y);for(Y=0;Y<v.length;Y++){var y=v[Y];if((0,_.Yq)(y).getRootNode()===e){var Z=I.currentScopeForNode(y);Z!==T&&(Z!==""&&I.unscopeNode(y,Z),I.scopeNode(y,T))}}}};
c(E);return B?(B=new MutationObserver(function(Y){for(var v=0;v<Y.length;v++)for(var y=Y[v],Z=0;Z<y.addedNodes.length;Z++){var P=y.addedNodes[Z];P.nodeType===Node.ELEMENT_NODE&&c(P)}}),B.observe(E,{childList:!0,
subtree:!0}),B):null};
WxF=function(){document.body.removeAttribute("unresolved")};
ACd=function(E){var B=E=E.replace(XDG,"").replace(rCQ,""),I=new bfc;I.start=0;I.end=B.length;for(var T=I,e=0,c=B.length;e<c;e++)if(B[e]==="{"){T.rules||(T.rules=[]);var Y=T,v=Y.rules[Y.rules.length-1]||null;T=new bfc;T.start=e+1;T.parent=Y;T.previous=v;Y.rules.push(T)}else B[e]==="}"&&(T.end=e+1,T=T.parent||I);return o6c(I,E)};
o6c=function(E,B){var I=B.substring(E.start,E.end-1);E.parsedCssText=E.cssText=I.trim();E.parent&&(I=B.substring(E.previous?E.previous.end:E.parent.start,E.start-1),I=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(I),I=I.replace(j0c," "),I=I.substring(I.lastIndexOf(";")+1),I=E.parsedSelector=E.selector=I.trim(),E.atRule=I.indexOf("@")===0,E.atRule?I.indexOf("@media")===0?E.type=4:I.match(UoG)&&(E.type=7,E.keyframesName=E.selector.split(j0c).pop()):I.indexOf("--")===
0?E.type=1E3:E.type=1);if(I=E.rules)for(var T=0,e=I.length,c=void 0;T<e&&(c=I[T]);T++)o6c(c,B);return E};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(E){return E.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var B=arguments[1],I=6-B.length;I--;)B="0"+B;return"\\"+B})};
kN6=function(E,B,I){I=I===void 0?"":I;var T="";if(E.cssText||E.rules){var e=E.rules;if(e&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(e))for(var c=0,Y=e.length,v=void 0;c<Y&&(v=e[c]);c++)T=kN6(v,B,T);else B?B=E.cssText:(B=E.cssText,B=B.replace(t9F,"").replace(fui,""),B=B.replace(V9D,"").replace(qjF,"")),(T=B.trim())&&(T="  "+T+"\n")}T&&(E.selector&&(I+=E.selector+" {\n"),I+=T,E.selector&&(I+="}\n\n"));return I};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(E){E=E[0];return!!E&&!!E.selector&&E.selector.indexOf("--")===0};
Doi=function(E){if(E=Fxi[E])E._applyShimCurrentVersion=E._applyShimCurrentVersion||0,E._applyShimValidatingVersion=E._applyShimValidatingVersion||0,E._applyShimNextVersion=(E._applyShimNextVersion||0)+1};
Kxd=function(E){return E._applyShimCurrentVersion===E._applyShimNextVersion};
Emc=function(E){E._applyShimValidatingVersion=E._applyShimNextVersion;E._validating||(E._validating=!0,Rid.then(function(){E._applyShimCurrentVersion=E._applyShimNextVersion;E._validating=!1}))};
$sB=function(E){if(!E)return"";typeof E==="string"&&(E=ACd(E));return kN6(E,B6F)};
I4Q=function(E){!E.__cssRules&&E.textContent&&(E.__cssRules=ACd(E.textContent));return E.__cssRules||null};
eVd=function(E,B,I,T){if(E){var e=!1,c=E.type;if(T&&c===4){var Y=E.selector.match(T6i);Y&&(window.matchMedia(Y[1]).matches||(e=!0))}c===1?B(E):I&&c===7?I(E):c===1E3&&(e=!0);if((E=E.rules)&&!e)for(e=0,c=E.length,Y=void 0;e<c&&(Y=E[e]);e++)eVd(Y,B,I,T)}};
l46=function(E,B){var I=E.indexOf("var(");if(I===-1)return B(E,"","","");a:{var T=0;var e=I+3;for(var c=E.length;e<c;e++)if(E[e]==="(")T++;else if(E[e]===")"&&--T===0)break a;e=-1}T=E.substring(I+4,e);I=E.substring(0,I);E=l46(E.substring(e+1),B);c=T.indexOf(",");if(c===-1)return B(I,T.trim(),"",E);e=T.substring(0,c).trim();T=T.substring(c+1).trim();return B(I,e,T,E)};
cbG=function(E){if(j$!==void 0)return j$;if(E.__cssBuild===void 0){var B=E.getAttribute("css-build");if(B)E.__cssBuild=B;else{a:{B=E.localName==="template"?E.content.firstChild:E.firstChild;if(B instanceof Comment&&(B=B.textContent.trim().split(":"),B[0]==="css-build")){B=B[1];break a}B=""}if(B!==""){var I=E.localName==="template"?E.content.firstChild:E.firstChild;I.parentNode.removeChild(I)}E.__cssBuild=B}}return E.__cssBuild||""};
p3t=function(E,B,I,T){for(var e=B._noAccessors,c=Object.getOwnPropertyNames(B),Y=0;Y<c.length;Y++){var v=c[Y];if(!(v in T))if(e)E[v]=B[v];else{var y=Object.getOwnPropertyDescriptor(B,v);y&&(y.configurable=!0,Object.defineProperty(E,v,y))}}for(var Z in iJB)B[Z]&&(I[Z]=I[Z]||[],I[Z].push(B[Z]))};
Yg6=function(E,B,I){B=B||[];for(var T=E.length-1;T>=0;T--){var e=E[T];e?Array.isArray(e)?Yg6(e,B):B.indexOf(e)<0&&(!I||I.indexOf(e)<0)&&B.unshift(e):console.warn("behavior is null, check for missing or 404 import")}return B};
a46=function(E,B){for(var I in B){var T=E[I],e=B[I];E[I]=!("value"in e)&&T&&"value"in T?Object.assign({value:T.value},e):e}};
Cb4=function(E,B,I){var T={},e=function(){return B.apply(this,arguments)||this};
_.L(e,B);e._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(Y)for(var y=0,Z;y<Y.length;y++)Z=Y[y],Z.properties&&this.createProperties(Z.properties),Z.observers&&this.createObservers(Z.observers,Z.properties);E.properties&&this.createProperties(E.properties);E.observers&&this.createObservers(E.observers,E.properties);this._prepareTemplate()}else B._finalizeClass.call(this)};
e.prototype.created=function(){B.prototype.created.call(this);var y=T.created;if(y)for(var Z=0;Z<y.length;Z++)y[Z].call(this)};
e.prototype._registered=function(){var y=e.prototype;if(!y.hasOwnProperty("__hasRegisterFinished")){y.__hasRegisterFinished=!0;B.prototype._registered.call(this);Op&&v(y);y=Object.getPrototypeOf(this);var Z=T.beforeRegister;if(Z)for(var P=0;P<Z.length;P++)Z[P].call(y);if(Z=T.registered)for(P=0;P<Z.length;P++)Z[P].call(y)}};
e.prototype._applyListeners=function(){B.prototype._applyListeners.call(this);var y=T.listeners;if(y)for(var Z=0;Z<y.length;Z++){var P=y[Z];if(P)for(var z in P)this._addMethodEventListenerToNode(this,z,P[z])}};
e.prototype._ensureAttributes=function(){var y=T.hostAttributes;if(y)for(var Z=y.length-1;Z>=0;Z--){var P=y[Z],z;for(z in P)this._ensureAttribute(z,P[z])}B.prototype._ensureAttributes.call(this)};
e.prototype.ready=function(){B.prototype.ready.call(this);var y=T.ready;if(y)for(var Z=0;Z<y.length;Z++)y[Z].call(this)};
e.prototype.attached=function(){B.prototype.attached.call(this);var y=T.attached;if(y)for(var Z=0;Z<y.length;Z++)y[Z].call(this)};
e.prototype.detached=function(){B.prototype.detached.call(this);var y=T.detached;if(y)for(var Z=0;Z<y.length;Z++)y[Z].call(this)};
e.prototype.attributeChanged=function(y,Z,P){B.prototype.attributeChanged.call(this);var z=T.attributeChanged;if(z)for(var m=0;m<z.length;m++)z[m].call(this,y,Z,P)};
_.Up.Object.defineProperties(e,{properties:{configurable:!0,enumerable:!0,get:function(){var y={};if(Y)for(var Z=0;Z<Y.length;Z++)a46(y,Y[Z].properties);a46(y,E.properties);return y}},
observers:{configurable:!0,enumerable:!0,get:function(){var y=[];if(Y)for(var Z=0,P;Z<Y.length;Z++)P=Y[Z],P.observers&&(y=y.concat(P.observers));E.observers&&(y=y.concat(E.observers));return y}}});
if(I){Array.isArray(I)||(I=[I]);var c=B.prototype.behaviors;var Y=Yg6(I,null,c);e.prototype.behaviors=c?c.concat(I):Y}var v=function(y){if(Y)for(var Z=Y,P=0;P<Z.length;P++)p3t(y,Z[P],T,vmD);p3t(y,E,T,ybc)};
Op||v(e.prototype);e.generatedFrom=E;return e};
zVG=function(E){var B=typeof E!=="string"?E:{is:E,notifyObserversOnUndefined:!0};B.fastInit===void 0&&(B.fastInit=!0);return function(I){if(!B.disableInheritanceCheck&&Object.getPrototypeOf(I.prototype).constructor!==_.kq)throw Error("Nd");var T=I.prototype;T.is=B.is;hb6(T,"created",function(){this.hostElement=this;this.polymerController=this});
w3G(T,I,B.fastInit);B.notifyObserversOnUndefined&&(T._overrideLegacyUndefined=!0);if(ZJG)for(var e=_.p(Object.getOwnPropertyNames(T)),c=e.next();!c.done;c=e.next()){c=c.value;var Y=Object.getOwnPropertyDescriptor(T,c);Y.enumerable===!1&&(Y.enumerable=!0,Object.defineProperty(T,c,Y))}if("template"in I)var v=function(){return I.template};
else B.template!==void 0&&(v=B.template);if(v!==void 0){var y;Object.defineProperty(T,"_template",{get:function(){y===void 0&&(y=v());return y},
set:function(Z){y=Z},
configurable:!0,enumerable:!0})}Polymer(T);I[Pbd]=T}};
msG=function(E){E=E===void 0?{}:E;E.fastInit===void 0&&(E.fastInit=!0);return function(B){if(!E.disableInheritanceCheck&&Object.getPrototypeOf(B.prototype).constructor!==tJ)throw Error("Od");w3G(B.prototype,B,E.fastInit)}};
w3G=function(E,B,I){I=I===void 0?!1:I;QPQ(B);I?hb6(E,"created",function(){this.disableEnforceFastDefaultValuesCheck||ds6(B,this)}):hb6(E,"ready",function(){for(var T={},e=_.p(sSc(this.behaviors)),c=e.next();!c.done;c=e.next())c=c.value,c.properties&&Object.assign(T,hVB(this,c.properties));
Object.assign(T,hVB(this,this.properties));ds6(B,this);e=_.p(Object.keys(T));for(c=e.next();!c.done;c=e.next())c=c.value,this[c]=T[c]})};
ds6=function(E,B){if(ZJG){E=new E;for(var I=_.p(Object.getOwnPropertyNames(E)),T=I.next();!T.done;T=I.next())T=T.value,B[T]=E[T];for(I=B;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){T=_.p(Object.getOwnPropertyNames(I));for(var e=T.next();!e.done;e=T.next())e=e.value,E.hasOwnProperty(e)||Object.defineProperty(E,e,sPi(B,e))}}else E.apply(B)};
sPi=function(E,B){return{get:function(){var I=E[B];return I instanceof Function?I.bind(E):I},
set:function(I){E[B]=I}}};
hVB=function(E,B){if(!B)return{};for(var I={},T=_.p(Object.keys(B)),e=T.next();!e.done;e=T.next())if(e=e.value,!B[e].readOnly){var c=E[e];c!==void 0&&(I[e]=c)}return I};
QPQ=function(E){var B=new E;E=E.prototype.properties||{};for(var I=_.p(Object.keys(E)),T=I.next();!T.done;T=I.next())if(T=T.value,B.hasOwnProperty(T)){var e=E[T];typeof e==="function"&&(E[T]=e={type:e});B[T]!=null&&e.type===Object&&(e.type=uYc(B[T].constructor))}};
uYc=function(E){for(var B=_.p(Lid),I=B.next();!I.done;I=B.next())if(I=I.value,E===I)return I;return Object};
xsF=function(E){return function(B,I){B.behaviors=B.behaviors||[];B.behaviors.push(E||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",B,I).prototype:void 0));Object.defineProperty(B,I,{get:function(){return this},
enumerable:!0,configurable:!0})}};
GXd=function(E){E=E===void 0?{}:E;return function(B,I){B.properties=B.properties||{};E.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?E.type=uYc(Reflect.getMetadata("design:type",B,I)):E.type=String);var T=E,e=B.properties[I];B.properties[I]=e?Object.assign({},e,T):T}};
OJi=function(E){return function(B,I){B.listeners=B.listeners||{};B.listeners[E]=I}};
nmF=function(){var E=_.aG.apply(0,arguments);if(E.length===0)throw Error("Pd");return function(B,I){B.observers=B.observers||[];B.observers.push(I+"("+E.join(",")+")")}};
MD6=function(){var E=_.aG.apply(0,arguments);return function(B,I,T){var e=Object.getOwnPropertyDescriptor(B,I).get,c="__compute__"+I;Object.defineProperty(B,c,{value:e,enumerable:!0});B.properties=B.properties||{};e=B.properties[I];e||(e={},B.properties[I]=e);e.computed=c+"("+E.join(",")+")";T.get=void 0}};
_.fg=function(E,B,I){_.Cx.call(this);this.JSC$9107_id_=null;this.usingListeners_=!1;this.JSC$9107_listener_=E;this.handler_=I;this.JSC$9107_win_=B||window;this.callback_=(0,_.w1)(this.JSC$9109_doAction_,this)};
VX=function(E){this.range_=E};
qq=function(E){this.range_=E};
Kg=function(E,B,I){_.Cx.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=E;this.scrollTimer_=new _.F7(50);this.JSC$9186_eventHandler_=new _.DA(this);this.scrollDelta_=new _.Cb;this.containerIsActuallyContent_=E.tagName==="BODY"||E.tagName==="HTML";this.containerBounds_=HJG(E);this.containerIsActuallyContent_&&(E=_.Rd(),this.containerBounds_.height=E.height,this.containerBounds_.width=E.width);this.margin_=B||0;if(B){if(B=this.containerBounds_.clone(),E=this.margin_){var T=
Math.min(E,B.height*.25);B.top+=T;B.height-=2*T;E=Math.min(E,B.width*.25);B.left+=E;B.width-=2*E}}else B=this.containerBounds_;this.scrollBounds_=B;I||this.JSC$9186_eventHandler_.listen(_.Zs(this.containerNode_),"mousemove",this.JSC$9188_onMouseMove);this.JSC$9186_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9188_onTick_)};
_.Rj=function(E){this.mechanism=E};
Ei=function(E,B){this.JSC$9284_key_=E;this.JSC$9284_value_=B};
gmi=function(E){if(E>=55296&&E<=57343||E>1114111)return"\ufffd";E in N6c&&(E=N6c[E]);var B="";E>65535&&(E-=65536,B+=String.fromCharCode(E>>>10&1023|55296),E=56320|E&1023);return B+=String.fromCharCode(E)};
Sgi=function(E,B){return E<B?1:-1};
WiG=function(){return function(E){return E.charAt(1)==="#"?E.charAt(2)==="X"||E.charAt(2)==="x"?gmi(parseInt(E.substr(3),16)):gmi(parseInt(E.substr(2),10)):Jbc[E.slice(1,-1)]}};
bJ6=function(E){return E.slice(1,E.length-1).trim().replace(X3Q,function(B){return rbG[B]||" "})};
BU=function(E){return E===32||E===9};
$h=function(E,B){return B<E.length?E.charCodeAt(B):-1};
omt=function(E){for(;E;){if(E._lastLineBlank)return!0;var B=E.type;if(B==="list"||B==="item")E=E._lastChild;else break}return!1};
IO=function(E){if(AbQ.test(E)){var B=1,I=0,T=0;for(E[I]=="|"&&I++;I<E.length;){switch(E[I]){case "|":T=1;break;case " ":break;case "\t":break;default:T&&(T=0,B++)}I++}return jPB.test(E)?-B:B}return 0};
UsQ=function(E){return E=="table"||E=="row"||E=="cell"};
kXG=function(){return new Tx("document",[[1,1],[0,0]])};
tDt=function(){};
iT=function(){var E={safe:!1};E=E||{};E.softbreak=E.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=E};
Ds6=function(E,B){var I="";if(E)if(E=E.toLowerCase(),E===" "||f4i.test(E))I="space";else if(VDt.test(E))I="esc";else if(E.length==1){if(!B||qgc.test(E))I=E}else I=Fi6.test(E)?E.replace("arrow",""):E=="multiply"?"*":E;return I};
BVd=function(E,B){var I=E.hasModifiers;if(B.key)I=Ds6(B.key,I);else if(B.detail&&B.detail.key)I=Ds6(B.detail.key,I);else{I=B.keyIdentifier;var T="";I&&(I in Ki6?T=Ki6[I]:RVQ.test(I)?(I=parseInt(I.replace("U+","0x"),16),T=String.fromCharCode(I).toLowerCase()):T=I.toLowerCase());(I=T)||(I=B.keyCode,T="",Number(I)&&(I>=65&&I<=90?T=String.fromCharCode(32+I):I>=112&&I<=123?T="f"+(I-112+1):I>=48&&I<=57?T=String(I-48):I>=96&&I<=105?T=String(I-96):T=EUQ[I]),I=T);I=I||""}return I===E.key&&(!E.hasModifiers||
!!B.shiftKey===!!E.shiftKey&&!!B.ctrlKey===!!E.ctrlKey&&!!B.altKey===!!E.altKey&&!!B.metaKey===!!E.metaKey)};
IcD=function(E){return E.length===1?{combo:E,key:E,event:"keydown"}:E.split("+").reduce(function(B,I){var T=I.split(":");I=T[0];T=T[1];I in $di?(B[$di[I]]=!0,B.hasModifiers=!0):(B.key=I,B.event=T||"keydown");return B},{combo:E.split(":").shift()})};
TVF=function(E){return E.trim().split(" ").map(function(B){return IcD(B)})};
eUd=function(E,B){if(E&&E.fn){var I=E.fn;E.fn=function(){try{I.apply(this,arguments)}catch(T){if(T instanceof pC)console.warn("Argument '"+T.arg+"'"+(B?" for method '"+B+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw T;}}}return E};
lcJ=function(){var E=_.aG.apply(0,arguments);return E.length===0?function(B){return B}:E.length===1?E[0]:E.reduce(function(B,I){return function(){return B(I.apply(null,_.ad(_.aG.apply(0,arguments))))}})};
csJ=function(){var E=_.aG.apply(0,arguments);return function(B){return function(I,T){I=B(I,T);var e=function(){throw Error("ze");},c={getState:I.getState,
dispatch:function(Y){return e.apply(null,[Y].concat(_.ad(_.aG.apply(1,arguments))))}};
T=E.map(function(Y){return Y(c)});
e=lcJ.apply(null,_.ad(T))(I.dispatch);return Object.assign({},I,{dispatch:e})}}};
Y8i=function(E){Object.keys(E).forEach(function(B){var I=E[B];if(typeof I(void 0,{type:iaJ})==="undefined")throw Error("Ae`"+B);if(typeof I(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+pfB()})==="undefined")throw Error("Be`"+B+"`"+iaJ);})};
Yh=function(E){for(var B=Object.keys(E),I={},T=0;T<B.length;T++){var e=B[T];typeof E[e]==="function"&&(I[e]=E[e])}var c=Object.keys(I);try{Y8i(I)}catch(v){var Y=v}return function(v,y){v=v===void 0?{}:v;if(Y)throw Y;for(var Z=!1,P={},z=0;z<c.length;z++){var m=c[z],u=v[m],x=(0,I[m])(u,y);if(typeof x==="undefined")throw v=y&&y.type,Error("Ce`"+(v?'"'+String(v)+'"':"(unknown type)")+"`"+m);P[m]=x;Z=Z||x!==u}return(Z=Z||c.length!==Object.keys(v).length)?P:v}};
acB=function(E,B,I){function T(){if(P)throw Error("De");return v}
function e(u){if(typeof u!=="function")throw Error("Ee`"+typeof u);if(P)throw Error("Fe");var x=!0;Z===y&&(Z=y.slice());Z.push(u);return function(){if(x){if(P)throw Error("Ge");x=!1;Z===y&&(Z=y.slice());var M=Z.indexOf(u);Z.splice(M,1);y=null}}}
function c(u){if(typeof u!=="object"||u===null)var x=!1;else{for(x=u;Object.getPrototypeOf(x)!==null;)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(u)===x}if(!x)throw Error("He`"+typeof u);if(typeof u.type==="undefined")throw Error("Ie");if(P)throw Error("Je");try{P=!0,v=Y(v,u)}finally{P=!1}x=y=Z;for(var M=0;M<x.length;M++)(0,x[M])();return u}
if(typeof B==="function"&&typeof I==="function"||typeof I==="function"&&typeof arguments[3]==="function")throw Error("Ke");typeof B==="function"&&typeof I==="undefined"&&(I=B,B=void 0);if(typeof I!=="undefined"){if(typeof I!=="function")throw Error("Le`"+typeof I);return I(acB)(E,B)}if(typeof E!=="function")throw Error("Me`"+typeof E);var Y=E,v=B,y=[],Z=y,P=!1;c({type:iaJ});var z={},m=(z.dispatch=c,z.subscribe=e,z.getState=T,z.replaceReducer=function(u){if(typeof u!=="function")throw Error("Ne`"+
typeof u);Y=u;c({type:vUi});return m},z[ysc]=function(){var u={};
return u.subscribe=function(x){function M(){x.next&&x.next(T())}
if(typeof x!=="object"||x===null)throw new TypeError("Oe`"+typeof x);M();return{unsubscribe:e(M)}},u[ysc]=function(){return this},u},z);
return m};
CqF=function(E){function B(){e&&(e=!1,E());c&&T()}
function I(){requestAnimationFrame(B)}
function T(){var v=Date.now();if(e){if(v-Y<2)return;c=!0}else e=!0,c=!1,setTimeout(I,20);Y=v}
var e=!1,c=!1,Y=0;return T};
aO=function(E){return typeof E==="number"?E:parseFloat(E)||0};
wfi=function(E){return _.aG.apply(1,arguments).reduce(function(B,I){return B+aO(E["border-"+I+"-width"])},0)};
_.G=function(E,B){B=mm(z1(B));E.innerHTML=B};
zUF=function(E){var B=ZaJ;B||(B=PqF(),B=ZaJ=_.a_.transpose(B));B=B[E];return typeof B==="string"?B:_.vU(E)};
mdc=function(E){E=String(E).toLowerCase();var B=PqF()[E];return typeof B==="string"?B:_.yT(E)};
QrF=function(E){E=E.toLowerCase();E=PqF()[E];return typeof E==="string"?E:null};
PqF=function(){if(!ddQ){for(var E=Object.assign({},hUG),B=_.p(sri),I=B.next();!I.done;I=B.next())I=I.value,E[I.toLowerCase()]=I;ddQ=E}return ddQ};
xdF=function(E,B){var I=window.customElements;return I&&I.get(E)||uGf[E]===!0?2:B.name==="HTMLUnknownElement"?1:B.name==="HTMLElement"&&Lp6.test(E)?3:0};
nUc=function(E,B){switch(B){case "innerHTML":return GOf(E)===1?2:null;case "textContent":return E=GOf(E),E===1||E===6?1:null;default:var I,T;return(T=(I=Oa4[E.localName])==null?void 0:I[B])!=null?T:null}};
GOf=function(E){var B=E.localName,I=xdF(B,E.constructor);switch(I){case 0:case 1:return MiG(B,E);case 3:case 2:return 1;default:_.E9(I,"got an unknown element classification")}};
MiG=function(E,B){var I=Object.hasOwnProperty.call(Hac,E)?Hac[E]:null;return I!==null?I:Object.hasOwnProperty.call(NVi,E)&&B instanceof SVGElement?NVi[E]:null};
gUJ=function(E,B){return B};
Js6=function(E){return(E=E.split(S8G,2))?{url:E[0],metadata:E[1]}:null};
XfQ=function(E){var B=String(E.url).replace(Wpc,encodeURIComponent);if(E=E.metadata){Wpc.lastIndex=0;if(Wpc.test(E))return null;B+=" "+E}return B};
Asd=function(E){function B(Z){var P=Z.localName;if(!Z.getAttribute("is")&&xdF(P,Z.constructor)===2){var z;return(z=y)!=null?z:y=document.createElement("polyresinuncustomized")}(Z=v[P])||(Z=v[P]=document.createElement(P));return Z}
var I=E.reportHandler||void 0,T=E.safeTypesBridge||rsc,e=/^$/;if(E=E.allowedIdentifierPrefixes){E=_.p(E);for(var c=E.next();!c.done;c=E.next())e=new RegExp(e.source+"|^"+_.baQ(c.value))}I&&I(!1,"initResin",null);var Y=oU6(e,T,I),v={},y=null;return function(Z,P,z){var m=Z.nodeType;if(m!==Node.ELEMENT_NODE){if(m===Node.TEXT_NODE){P=Z.parentElement;z=!P;if(P&&P.nodeType===Node.ELEMENT_NODE){m=P.localName;var u=xdF(m,P.constructor);switch(u){case 0:case 1:P=MiG(m,P);z=P===1||P===6;break;case 3:case 2:z=
!0;break;default:_.E9(u,"got an unknown element classification")}}if(z)return function(W){return""+T(W,"STRING",W)}}return function(W){if(!W&&W!==document.all)return W;
I&&I(!0,"Failed to sanitize "+(Z.parentElement&&Z.parentElement.nodeName)+" #text node to value "+W,Z.parentElement);return CC}}var x=Z.localName;
m=B(Z);var M=null;switch(z){case "attribute":if(mdc(P)in m)break;return function(W){return W};
case "property":if(P in m){M=nUc(m,P);break}if((u=QrF(P))&&u in m)break;return function(W){return W};
default:_.E9(z,"got an unknown resin type, expected either 'property' or 'attribute'")}var N=z==="attribute"?P.toLowerCase():zUF(P);M||(M=lDc(x,N,function(W){var U=Z.getAttribute(W);return!U||/[\[\{]/.test(W)?null:U}));
return function(W){var U=wG,q=null;if(!W&&W!==document.all)return W;if(M!=null){var f=Y[M],ed=f.safeType;q=f.safeReplacement;ed&&(U=T(W,ed,wG));U===wG&&(f.filterString?(U=String(T(W,"STRING",W)),U=f.filterString(x,N,U)):f.filterRaw&&(U=f.filterRaw(x,N,W,Z)),U===q&&(U=wG))}U===wG&&(U=q||CC,I&&I(!0,"Failed to sanitize attribute of <"+x+">: <"+x+" "+N+'="'+W+'">',Z));return U}}};
oU6=function(E,B,I){return[,{filterRaw:function(T,e,c){return c},
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:jri,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:jri,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:CC,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:UdB,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(T,e,c){c=
String(c).toLowerCase();return pnc(T,e,c)?c:CC},
safeReplacement:CC,safeType:void 0},,{filterRaw:void 0,filterString:function(T,e,c){return E.test(c)?c:CC},
safeReplacement:CC,safeType:"CONSTANT"},{filterRaw:function(T,e,c,Y){if(typeof c==="string")var v=(v=c.match(kOG))?v.map(Js6).filter(Boolean):[];else if(Array.isArray(c))v=c;else return jri;var y=v;v=[];var Z=[],P={};if(Array.isArray(y))for(var z=0,m=y.length;z<m;++z){var u=y[z],x=u&&u.url;if(x){var M=B(x,"URL",P);if(M){var N=M!==P;(N?v:Z).push({url:N?M:x,metadata:u.metadata})}}}else Z.push(y);y=Z.length?JSON.stringify(Z):null;Z=wG;if(v.length){if(!Array.isArray(v))throw Error();Z=v.map(XfQ).filter(Boolean).join(" , ")||
wG}y&&I&&I(!0,"Failed to sanitize attribute value of <"+T+">: <"+T+" "+e+'="'+c+'">: '+y,Y);return Z===wG?jri:Z},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
tiQ=function(E){var B=Asd(E);return function(I,T,e,c){return c||c===document.all?B(I,T,e)(c):c}};
Z$=function(E,B){function I(){function e(v,y,Z){for(y=Reflect.getMetadata("parameters",v)||[];y.length<=Z;)y.push(null);y[Z]=y[Z]||[];y[Z].push(Y);Reflect.defineMetadata(y,v);return v}
var c=_.aG.apply(0,arguments);if(this instanceof I)return T.apply(this,c),this;var Y=new (Function.prototype.bind.apply(I,[null].concat(_.ad(c))));e.annotation=Y;return e}
var T=fc4(B);I.prototype.toString=function(){return"@"+E};
return I.annotationCls=I};
fc4=function(E){return function(){var B=_.aG.apply(0,arguments),I=this;E.forEach(function(T,e){e=B[e];if(Array.isArray(T))I[T[0]]=e&&e!==void 0?e:T[1];else for(var c in T)I[c]=e&&e[c]!==void 0?e[c]:T[c]})}};
Vif=function(E){return E!==void 0&&E!==null};
PU=function(E){if(typeof E==="string")return E;if(E===void 0||E===null)return""+E;if(E.overriddenName)return E.overriddenName;if(E.name)return E.name;E=E.toString();var B=E.indexOf("\n");return B===-1?E:E.substring(0,B)};
q8B=function(E){E.__forward_ref__=q8B;E.toString=function(){return PU(this())};
return E};
zx=function(E){return typeof E==="function"&&E.hasOwnProperty("__forward_ref__")&&E.__forward_ref__===q8B?E():E};
FpF=function(E){return E?E.map(function(B){return new (Function.prototype.bind.apply(B.type.annotationCls,[null].concat(_.ad(B.args?B.args:[]))))}):[]};
DdQ=function(E){for(var B=[],I=0;I<E.length;++I){if(B.indexOf(E[I])>-1){B.push(E[I]);break}B.push(E[I])}return B};
KpD=function(E){return E.length>1?" ("+DdQ(E.slice().reverse()).map(function(B){return PU(B.token)}).join(" -> ")+")":""};
ELF=function(E,B,I,T){if(T){var e=Error("Ve``"+(T instanceof Error?T.message:T));e.ngOriginalError=T}else e=Error();e.addKey=RUD;e.keys=[B];e.injectors=[E];e.constructResolvingMessage=I;e.message=e.constructResolvingMessage();e.ngOriginalError=T;return e};
RUD=function(E,B){this.injectors.push(E);this.keys.push(B);this.message=this.constructResolvingMessage()};
BwB=function(E,B){return ELF(E,B,function(){return"No provider for "+PU(this.keys[0].token)+"!"+KpD(this.keys)})};
$yQ=function(E,B){return ELF(E,B,function(){return"Cannot instantiate cyclic dependency!"+KpD(this.keys)})};
IUc=function(E,B,I){return ELF(E,I,function(){var T=PU(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+T+"!"+KpD(this.keys)+"."},B)};
TwG=function(E,B){for(var I=[],T=0,e=B.length;T<e;T++){var c=B[T];c&&c.length!=0?I.push(c.map(PU).join(" ")):I.push("?")}return Error("Ze`"+PU(E)+"`"+I.join(", ")+"`"+PU(E))};
aUt=function(E){var B=void 0,I=void 0;if(E&&E.useClass!==void 0){B=E.useClass;var T=zx(E.useClass);var e=emQ.factory(T);T=lUJ(T)}else E&&E.useExisting!==void 0?(e=function(c){return c},T=[cwG(mM.get(zx(E.useExisting)))]):E&&E.useFactory!==void 0?(e=E.useFactory,T=i7B(E.useFactory,E.deps)):(I=E.useValue,e=function(){return E.useValue},T=pTF);
return new Yst(e,T,B,I)};
ywQ=function(E){return new vLQ(mM.get(zx(E.provide)),[aUt(E)],E.multi)};
wTc=function(E){E=Ct6(E,[]).map(ywQ);for(var B=new Map,I=0;I<E.length;I++){var T=E[I],e=B.get(T.key.id);if(e){if(T.multiProvider!==e.multiProvider)throw Error("af`"+e+"`"+T);if(T.multiProvider)for(var c=0;c<T.resolvedFactories.length;c++)e.resolvedFactories.push(T.resolvedFactories[c]);else B.set(T.key.id,T)}else e=void 0,T.multiProvider?e=new vLQ(T.key,T.resolvedFactories.slice(),T.multiProvider):e=T,B.set(T.key.id,e)}return Array.from(B.values())};
Ct6=function(E,B){E.forEach(function(I){if(I instanceof Z7d)B.push({provide:I,useClass:I});else if(I&&typeof I=="object"&&I.provide!==void 0)B.push(I);else if(I instanceof Array)Ct6(I,B);else throw Error("Ye`"+I);});
return B};
i7B=function(E,B){if(B){var I=B.map(function(T){return[T]});
return B.map(function(T){return PtQ(E,T,I)})}return lUJ(E)};
lUJ=function(E){var B=emQ.parameters(E);if(!B)return[];if(B.some(function(I){return I==null}))throw TwG(E,B);
return B.map(function(I){return PtQ(E,I,B)})};
PtQ=function(E,B,I){var T=null,e=!1;if(!Array.isArray(B))return B instanceof zmJ?myt(B.token,e,null):myt(B,e,null);for(var c=null,Y=0;Y<B.length;++Y){var v=B[Y];if(v instanceof Z7d)T=v;else if(v instanceof zmJ)T=v.token;else if(v instanceof Qzi)e=!0;else if(v instanceof dyG||v instanceof hmQ)c=v}T=zx(T);if(T!=null)return myt(T,e,c);throw TwG(E,I);};
myt=function(E,B,I){return new szQ(mM.get(zx(E)),B,I)};
uTD=function(E,B){for(var I=Array(E.providers.length),T=0;T<E.providers.length;++T){var e=T;if(T<0||T>=E.providers.length)throw Error("$e`"+T);I[e]=B(E.providers[T])}return I};
LYi=function(E){return typeof E==="function"&&emQ.parameters(E).every(function(B){return!!B})};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(E){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(E)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(E){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(E)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(E,B){var I,T;if(E.contains(B))return!0;E=_.QT(E).querySelectorAll("content,slot");for(I=0;I<E.length;++I){var e=_.QT(E[I]).getDistributedNodes();for(T=0;T<e.length;++T)if(e[T].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(e[T],B))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(E){E.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(E)&&E.preventDefault();E.targetTouches&&(E=E.targetTouches[0],xyB=E.pageX,GVG=E.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 E=0,B=hQ.length;E<B;E++)document.addEventListener(hQ[E],_._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 E=0,B=hQ.length;E<B;E++)document.removeEventListener(hQ[E],_._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(E){var B=_.QT(E).rootTarget;E.type!=="touchmove"&&O7i!==B&&(O7i=B,nLD=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.QT(E).path));if(!nLD.length)return!0;if(E.type==="touchstart")return!1;E=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(E);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(nLD,E.deltaX,E.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(E){for(var B=[],I=E.indexOf(MwF),T=0;T<=I;T++)if(E[T].nodeType===Node.ELEMENT_NODE){var e=E[T],c=e.style;c.overflow!=="scroll"&&c.overflow!=="auto"&&(c=window.getComputedStyle(e));c.overflow!=="scroll"&&c.overflow!=="auto"||B.push(e)}return B};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(E,B,I){if(B||I)for(var T=Math.abs(I)>=Math.abs(B),e=0;e<E.length;e++){var c=E[e];if(T?I<0?c.scrollTop>0:c.scrollTop<c.scrollHeight-c.clientHeight:B<0?c.scrollLeft>0:c.scrollLeft<c.scrollWidth-c.clientWidth)return c}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(E){var B={deltaX:E.deltaX,deltaY:E.deltaY};"deltaX"in E||("wheelDeltaX"in E&&"wheelDeltaY"in E?(B.deltaX=-E.wheelDeltaX,B.deltaY=-E.wheelDeltaY):"wheelDelta"in E?(B.deltaX=0,B.deltaY=-E.wheelDelta):"axis"in E?(B.deltaX=E.axis===1?E.detail:0,B.deltaY=E.axis===2?E.detail:0):E.targetTouches&&(E=E.targetTouches[0],B.deltaX=xyB-E.pageX,B.deltaY=GVG-E.pageY));return B};
H76=function(E){this.element=E;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
gLG=function(E){this.element=E;this.color=window.getComputedStyle(E).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");_.QT(this.waveContainer).appendChild(this.wave);Nw6(this)};
si=function(E,B){for(var I in E)if(I.toLowerCase()===B.toLowerCase())return E[I]};
SsG=function(E,B){for(var I in E)if(I.toLowerCase()===B.toLowerCase()){delete E[I];break}};
WYF=function(E){E=_.a_.clone(E);for(var B=0;B<JwG.length;++B){var I=JwG[B],T=si(E,I);T&&(E["X-Goog-Upload-Header-"+I]=T,SsG(E,I))}return E};
XTi=function(E){E=_.a_.clone(E);SsG(E,"X-Goog-Upload-Status")};
b7G=function(E){return rwB.some(function(B){return B.test(E)})};
Uyf=function(E,B){var I;var T=(I=E.formContent)==null?void 0:I.locale;I=T==null?void 0:T.split("-")[0];T=T&&oLB.includes(T)?T:I&&oLB.includes(I)?I:void 0;T=(T!=null?T:"en").replaceAll("-","_").toLowerCase();var e;E=((e=E.initializationData)==null?0:e.useNightlyRelease)?"nightly":"live";var c;return(B==null?0:(c=B.getEnableAlohaBinarySplit)==null?0:c.call(B))?_.jR(Awd,E):_.jR(jzG,E,T)};
twt=function(E,B,I,T){if(kVF)return kVF;var e=Uyf(E,T);return kVF=B.feedbackV2GlobalObject?Promise.resolve(B.feedbackV2GlobalObject):new Promise(function(c,Y){var v=_.li("SCRIPT");_.nr(v,e);v.onload=function(){B.feedbackV2GlobalObject?c(B.feedbackV2GlobalObject):Y(Error("df"))};
v.onerror=function(){Y(Error("ef`"+e.toString()))};
I.body.appendChild(v)})};
Vwt=function(E,B,I,T){if(fUf)return fUf;var e=Uyf(E,T);return fUf=B.feedbackV2GlobalObject?Promise.resolve(B.feedbackV2GlobalObject):new Promise(function(c,Y){var v=_.li("SCRIPT");_.nr(v,e);v.onload=function(){B.feedbackV2GlobalObject?c(B.feedbackV2GlobalObject):Y(Error("df"))};
v.onerror=function(){Y(Error("ef`"+e.toString()))};
I.body.appendChild(v)})};
qsd=function(E,B,I,T,e){e=e===void 0?!0:e;var c,Y,v,y,Z;return _.a(function(P){switch(P.nextAddress){case 1:return c=Date.now(),_.C(P,twt(E,I,T,B),2);case 2:Y=P.yieldResult;if(!(e||((y=E.initializationData)==null?0:y.useNightlyRelease)||((Z=E.initializationData)==null?0:Z.isLocalServer))){v=Y.initializeFeedbackClient(E,c,B);P.jumpTo(3);break}return _.C(P,Y.initializeFeedbackClientAsync(E,c,B),4);case 4:v=P.yieldResult;case 3:return v.initiateAloha(),P.return(v)}})};
FYB=function(E,B,I,T){var e,c,Y;return _.a(function(v){if(v.nextAddress==1)return e=Date.now(),_.C(v,Vwt(E,I,T.document,B),2);if(v.nextAddress!=3)return c=v.yieldResult,_.C(v,c.initializeFeedbackClientAsync(E,e,B,T),3);Y=v.yieldResult;Y.initiateAloha();return v.return(Y)})};
DyD=function(E,B,I){var T=!0;T=T===void 0?!0:T;var e,c,Y,v,y,Z,P,z,m,u;return _.a(function(x){e=I||_.$i;if((c=B)==null?0:(v=(Y=c).getEnableAlohaBinarySplit)==null?0:v.call(Y)){y=e;if(y.isFormOpened)throw Z=Error("ff"),Z.name="DuplicateFormError",Z;y.isFormOpened=!0;E.callbacks=E.callbacks||{};P=E.callbacks.onClose||function(){};
E.callbacks.onClose=function(M){y.isFormOpened=!1;P(M)};
try{return x.return(FYB(E,B,y,e))}catch(M){throw y.isFormOpened=!1,M;}}else{z=e;if(z.isFormOpened)throw m=Error("ff"),m.name="DuplicateFormError",m;z.isFormOpened=!0;E.callbacks=E.callbacks||{};u=E.callbacks.onClose||function(){};
E.callbacks.onClose=function(M){z.isFormOpened=!1;u(M)};
try{return x.return(qsd(E,B,z,e.document,T))}catch(M){throw z.isFormOpened=!1,M;}}_.ER(x)})};
$0f=function(E,B){return _.a(function(I){return I.return(new Promise(function(T){var e=KYc(B!=null?B:"")+"/aloha_form_properties?productId="+E;Rm6(e,function(c){c=c.target;var Y=null;try{var v=JSON,y=v.stringify;if(c.JSC$7680_xhr_){var Z=c.JSC$7680_xhr_.responseText;Z.indexOf(")]}'\n")==0&&(Z=Z.substring(5));var P=(0,_.uT)(Z)}else P=void 0;Y=IKi(ET6,y.call(v,P))}catch(z){y=new ET6,P=BI6(),P=_.LC(P,13,!1),P=_.LC(P,14,!0),P=_.LC(P,15,!0),P=_.LC(P,20,!1),Y=_.fX(y,1,P)}T(Y)},"GET","",{},2E3,!0)}))})};
KYc=function(E){return b7G(E)?E:"https://www.google.com/tools/feedback"};
lF6=function(E){E=E.match(new RegExp(IFc,"gi"))||[];E=_.p(E);for(var B=E.next();!B.done;B=E.next()){B=B.value;a:{var I=_.p(TIF);for(var T=I.next();!T.done;T=I.next())if(T.value.test(B)){I=!1;break a}I=!0}if(!I)a:{I=_.p(eKt);for(T=I.next();!T.done;T=I.next())if(T.value.test(B)){I=!0;break a}I=!1}if(I)return!0}return!1};
cPf=function(E){switch(E){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"}};
pR4=function(E){if(window.crypto&&window.crypto.getRandomValues)try{var B=Array(E),I=new Uint8Array(E);window.crypto.getRandomValues(I);for(var T=0;T<B.length;T++)B[T]=I[T];return B}catch(c){}B=Array(E);for(I=0;I<E;I++){T=Date.now();for(var e=0;e<T%23;e++)B[I]=Math.random();B[I]=Math.floor(Math.random()*256)}if(iSD)for(I=1,T=0;T<iSD.length;T++)B[I%E]^=B[(I-1)%E]/4^iSD.charCodeAt(T),I++;return B};
xh=function(E){E=pR4(E);for(var B=[],I=0;I<E.length;I++)B.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(E[I]&63));return B.join("")};
aFf=function(E){E&&_.hK("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:YkQ,clientScreenNonce:E})};
vTG=function(E){return _.HA("client-screen-nonce-store",{})[E===void 0?0:E]};
yP6=function(E,B){B=B===void 0?0:B;var I=_.HA("client-screen-nonce-store");I||(I={},_.MD("client-screen-nonce-store",I));I[B]=E};
CGf=function(E){E=E===void 0?0:E;return E===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+E};
wRt=function(E){return _.HA(CGf(E===void 0?0:E))};
_.Oi=function(E){return(E=wRt(E===void 0?0:E))?new _.Gx({veType:E,youtubeData:void 0,jspbYoutubeData:void 0}):null};
ZSf=function(){var E=_.HA("csn-to-ctt-auth-info");E||(E={},_.MD("csn-to-ctt-auth-info",E));return E};
PGc=function(){return Object.values(_.HA("client-screen-nonce-store",{})).filter(function(E){return E!==void 0})};
_.nC=function(E){E=vTG(E===void 0?0:E);if(!E&&!_.gU("USE_CSN_FALLBACK",!0))return null;E||(E="UNDEFINED_CSN");return E?E:null};
m0t=function(E){for(var B=_.p(Object.values(zKf)),I=B.next();!I.done;I=B.next())if(_.nC(I.value)===E)return!0;return!1};
Q8c=function(E,B,I){var T=ZSf();(I=_.nC(I))&&delete T[I];B&&(T[E]=B)};
MU=function(E){return ZSf()[E]};
_.d0f=function(E,B,I,T){I=I===void 0?0:I;if(E!==vTG(I)||B!==_.HA(CGf(I)))if(Q8c(E,T,I),yP6(E,I),_.MD(CGf(I),B),B=function(){setTimeout(function(){aFf(E)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(B)}catch(e){B()}else B()};
hKJ=function(E,B){B=B===void 0?"":B;var I=[],T;for(T in E)if(E.hasOwnProperty(T)){var e=B!==""?B+"."+T:T;typeof E[T]==="object"?I.push.apply(I,_.ad(hKJ(E[T],e))):I.push([e,E[T]])}I.sort();return I};
_.u6Q=function(E){var B=_.aG.apply(1,arguments);if(!HU(E)||B.some(function(T){return!HU(T)}))throw Error("gf");
B=_.p(B);for(var I=B.next();!I.done;I=B.next())s8J(E,I.value)};
s8J=function(E,B){for(var I in B)if(HU(B[I])){if(I in E&&!HU(E[I]))throw Error("hf");I in E||(E[I]={});s8J(E[I],B[I])}else if(LsF(B[I])){if(I in E&&!LsF(E[I]))throw Error("jf");I in E||(E[I]=[]);x0B(E[I],B[I])}else E[I]=B[I];return E};
x0B=function(E,B){B=_.p(B);for(var I=B.next();!I.done;I=B.next())I=I.value,HU(I)?E.push(s8J({},I)):LsF(I)?E.push(x0B([],I)):E.push(I);return E};
HU=function(E){return typeof E==="object"&&!Array.isArray(E)};
LsF=function(E){return typeof E==="object"&&Array.isArray(E)};
OSc=function(E){for(var B=_.p(Object.entries(Gwd)),I=B.next();!I.done;I=B.next())if(I=_.p(I.value),I.next(),I=I.next().value,I==="SLI_STATUS_"+E)return I;return"SLI_STATUS_UNKNOWN"};
_.NU=function(E,B,I,T){return nTc(E,B,function(){return new _.MlF(E,B,I,T)})};
_.HSB=function(){return _.NU("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
NI6=function(){return _.NU("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
gG=function(){return _.NU("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
gTB=function(){return _.NU("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
Sk4=function(){return _.NU("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
JPt=function(){return _.NU("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
rPF=function(E){E&&(E.dataset?E.dataset[WsQ()]="true":_.H1([_.od(XRQ)],E,"data-loaded","true".toString()))};
bSQ=function(E){return E?E.dataset?E.dataset[WsQ()]:E.getAttribute("data-loaded"):null};
WsQ=function(){return oT6.loaded||(oT6.loaded="loaded".replace(/\-([a-z])/g,function(E,B){return B.toUpperCase()}))};
_.Sc=function(E,B,I){APi(E,B,I===void 0?null:I)};
_.U0G=function(E,B){E&&B&&(E=""+_.$l(B),(E=j8i[E])&&_.tPd(E))};
APi=function(E,B,I){I=I===void 0?null:I;var T=_.kwc(E),e=document.getElementById(T),c=e&&bSQ(e),Y=e&&!c;c?B&&B():(B&&(c=_.BC(T,B),B=""+_.$l(B),j8i[B]=c),Y||(e=tli(E,T,function(){bSQ(e)||(rPF(e),_.fkc(T),_.TR(function(){_.qqG(T)},0))},I)))};
tli=function(E,B,I,T){T=T===void 0?null:T;var e=_.li("SCRIPT");e.id=B;e.onload=function(){I&&setTimeout(I,0)};
e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
T&&e.setAttribute("nonce",T);_.nr(e,_.Pp(E));E=document.getElementsByTagName("head")[0]||document.body;E.insertBefore(e,E.firstChild);return e};
_.kwc=function(E){var B=document.createElement("a");Cr(B,E);return"js-"+JQ(B.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.qkJ=function(){var E=_.a_.clone(fFG),B;return(new _.cC(function(I,T){E.onSuccess=function(e){Ogi(e)?I(new Vld(e)):T(new _.WU("Request failed, status="+Ik(e),"net.badstatus",e))};
E.onError=function(e){T(new _.WU("Unknown request error","net.unknown",e))};
E.onTimeout=function(e){T(new _.WU("Request timed out","net.timeout",e))};
B=_.iK("//googleads.g.doubleclick.net/pagead/id",E)})).thenCatch(function(I){if(I instanceof _.X$){var T;
(T=B)==null||T.abort()}return _.rG(I)})};
FsF=function(E){var B=_.HA("INNERTUBE_HOST_OVERRIDE");B&&(E=String(B)+String(_.bT(E)));return E};
D0J=function(E){var B={};_.d("json_condensed_response")&&(B.prettyPrint="false");return E=CZF(E,B)};
_.oO=function(E){return V9(E)?"same-origin":"include"};
_.AQ=function(E){return V9(E)?"same-origin":"cors"};
jc=function(E,B,I){I=I===void 0?{}:I;E={method:B===void 0?"POST":B,mode:_.AQ(E),credentials:_.oO(E)};B={};for(var T=_.p(Object.keys(I)),e=T.next();!e.done;e=T.next())e=e.value,I[e]&&(B[e]=I[e]);Object.keys(B).length>0&&(E.headers=B);return E};
_.Ui=function(E,B){B=B===void 0?{}:B;return"service:"+E+"/"+Object.keys(B).sort().map(function(I){return I+":"+B[I]}).join("/")};
Ksf=function(E){var B,I,T,e;E=(B=_.h(E,_.kh))==null?void 0:(I=B.watchEndpointSupportedOnesieConfig)==null?void 0:(T=I.html5PlaybackOnesieConfig)==null?void 0:(e=T.commonConfig)==null?void 0:e.url;if(!E)return[];B=new _.tQ(E);return B.JSC$7917_domain_?["https://"+B.JSC$7917_domain_+"/generate_204"]:[]};
_.BCi=function(){return RKc()||PTc()||EeD&&OF("version/")?!0:_.HA("EOM_VISITOR_DATA")?!1:!0};
$6F=function(E){var B=E.docid||E.video_id||E.videoId||E.id;if(B)return B;B=E.raw_player_response;B||(E=E.player_response)&&(B=JSON.parse(E));return B&&B.videoDetails&&B.videoDetails.videoId||null};
_.TCJ=function(E){a:{var B="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(B="EMBEDDED_PLAYER_MODE_PFL");var I=E.raw_embedded_player_response;if(!I&&(E=E.embedded_player_response))try{I=JSON.parse(E)}catch(e){break a}if(I)b:for(var T in Irf)if(Irf[T]==I.embeddedPlayerMode){B=Irf[T];break b}}return B==="EMBEDDED_PLAYER_MODE_PFL"};
_.eoi=function(){if(_.d("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("nf");if(!_.BCi())return Error("of");var E=_.HA("PLAYER_VARS",{});if(_.a_.get(E,"privembed",!1)=="1")return Error("pf");if(_.TCJ(E))return Error("qf")};
lri=function(E){return E.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
fC=function(E){return!isNaN(Number(E))&&!_.aB(E)};
_.qU=function(E,B,I,T){T=T===void 0?!0:T;var e=_.HA("VALID_SESSION_TEMPDATA_DOMAINS",[]),c=_.tA(window.location.href);c&&e.push(c);c=_.tA(E);if(_.AD(e,c)||!c&&_.lc(E,"/"))if(e=document.createElement("a"),Cr(e,E),E=e.href)if(E=_.bT(E),E=_.VT(E))T&&!B.csn&&(B.itct||B.ved)&&(B=Object.assign({csn:_.nC()},B)),I?(I=parseInt(I,10),isFinite(I)&&I>0&&cGt(E,B,I)):cGt(E,B)};
pdc=function(E){var B=_.HA("VALID_SESSION_TEMPDATA_DOMAINS",[]),I=_.tA(window.location.href);I&&B.push(I);I=_.tA(E);if(!(_.AD(B,I)||!I&&_.lc(E,"/")))return null;E=_.bT(E);(E=_.VT(E))?(E=i0f(E),E=(E=_.v7.get(E,void 0)||null)?_.oI(E):{}):E=null;return E};
cGt=function(E,B,I){E=i0f(E);B=B?_.pF(B):"";I=I||5;_.BCi()&&_.yZ(E,B,I)};
i0f=function(E){for(var B=_.p(YzG),I=B.next();!I.done;I=B.next())E=_.F$(E,I.value);return"ST-"+JQ(E).toString(36)};
arc=function(E,B){E.commandMetadata&&_.h(E.commandMetadata,_.D$)&&_.h(E.commandMetadata,_.D$).url&&(E=_.AA(_.h(E.commandMetadata,_.D$).url).adurl)&&_.Zgt(E)&&_.qU(_.bT(E),{encoded_ad_playback_context:B})};
_.veG=function(E){if(E.requestFullscreen)E=E.requestFullscreen(void 0);else if(E.webkitRequestFullscreen)E=E.webkitRequestFullscreen();else if(E.mozRequestFullScreen)E=E.mozRequestFullScreen();else if(E.msRequestFullscreen)E=E.msRequestFullscreen();else if(E.webkitEnterFullscreen)E=E.webkitEnterFullscreen();else return Promise.reject(Error("sf"));return E instanceof Promise?E:Promise.resolve()};
_.RO=function(E){var B;_.gGJ(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.KC()==E&&(B=document):B=E;if(B&&(E=_.gGJ(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],B))){E.call(B)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.KC=function(){var E=E===void 0?!1:E;var B=_.gGJ(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(E)for(;B&&B.shadowRoot;)B=B.shadowRoot.fullscreenElement;return B?B:null};
_.EK=function(E,B){B=B===void 0?!0:B;E.addEventListener("wheel",yGB);E.overscrollConfig={cooldown:B}};
_.BN=function(E){E.overscrollConfig=void 0;E.removeEventListener("wheel",yGB)};
yGB=function(E){var B=E.deltaY,I=E.target,T=null;if(window.Polymer&&window.Polymer.Element){if(I=E.path||E.composedPath&&E.composedPath()){I=_.p(I);for(var e=I.next();!e.done&&(e=e.value,!CIG(e,B));e=I.next())if(e.overscrollConfig){T=e;break}}}else for(;I&&!CIG(I,B);){if(I.overscrollConfig){T=I;break}I=I.parentElement}T&&(B=T.overscrollConfig,B.cooldown?(T=E.deltaY,I=B.lastDeltaY||0,B.lastDeltaY=T,e=B.lastStopped||0,I&&e&&I>0==T>0?Math.abs(I)>=Math.abs(T)?(T=e+1200,I=!1):(T=e+600,I=!0):(T=Date.now()+
600,I=!0),T>Date.now()&&(E.preventDefault(),I&&(B.lastStopped=Date.now()))):E.preventDefault())};
CIG=function(E,B){return B<0&&E.scrollTop>0||B>0&&E.scrollTop<E.scrollHeight-E.clientHeight-1?(E=getComputedStyle(E).overflowY,E=="auto"||E=="scroll"):!1};
_.$O=function(E,B,I,T){T||(T={bubbles:!0,cancelable:!1,composed:!0});I!==null&&I!==void 0&&(T.detail=I);B=new CustomEvent(B,T);E.dispatchEvent(B);return B};
_.I2=function(E,B,I,T){B=new wdi(B,!(T===void 0||!T),I);_.$O(E,"yt-action",B);return B.returnValue};
_.Ta=function(E,B,I){return _.I2(E,B,I,!0)};
_.eY=function(E,B,I){return _.I2(E,B,I)[0]};
_.cN=function(E,B,I,T){B&&B.length&&B.forEach(function(e){var c=NXF(e);c&&(_.d("handle_service_request_actions")&&e.commandMetadata&&e.commandMetadata.webCommandMetadata&&e.commandMetadata.webCommandMetadata.sendPost?_.l1(I?I:E,[e]):_.Ta(E,c,[e,I,T]))})};
_.l1=function(E,B){var I=[E];B&&I.push.apply(I,B);B=_.I2(E,"yt-service-request",I);return B.length>0&&(B=B[0],_.$O(E,"yt-service-request-sent",B),B&&B.ajaxPromise)?(B.ajaxPromise.then(function(T){_.$O(E,"yt-service-request-completed",T)},function(T){_.$O(E,"yt-service-request-error",{error:T,
params:I})},E),B.ajaxPromise):_.i1()};
_.YO=function(E,B){if(_.d("handle_service_request_actions"))_.cN(B,E,B);else{E=_.p(E);for(var I=E.next();!I.done;I=E.next()){I=I.value;var T=void 0;((T=_.h(I,_.pO))==null?0:T.commands)?_.YO(_.h(I,_.pO).commands,B):(T=void 0,((T=_.h(I,_.a2))==null?0:T.actions)?_.YO(_.h(I,_.a2).actions,B):(T=void 0,((T=_.h(I.commandMetadata,_.D$))==null?0:T.sendPost)?_.l1(B,[I]):_.cN(B,[I],B)))}}};
_.PIB=function(E,B,I){B=B===void 0?{}:B;typeof B==="function"&&(B={callback:B});I||B._c&&B._c.jsl&&B._c.jsl.h||_.a_.extend(B,{_c:{jsl:{h:_.HA("GAPI_HINT_PARAMS")}}});(B.gapiHintOverride||_.HA("GAPI_HINT_OVERRIDE"))&&(I=_.AA(document.location.href).gapi_jsh)&&_.a_.extend(B,{_c:{jsl:{h:I}}});Z0c(E,B)};
_.yu=function(E,B,I){B=B===void 0?{}:B;E=(E=E in vN?vN[E]:I)||"";I={};for(var T in B){I={key$jscomp$788:I.key$jscomp$788};I.key$jscomp$788=T;var e=function(c){return function(){return String(B[c.key$jscomp$788])}}(I);
E=E.replace(new RegExp("\\$\\{"+I.key$jscomp$788+"\\}","gi"),e);E=E.replace(new RegExp("\\$"+I.key$jscomp$788,"gi"),e)}return E};
_.CO=function(E,B){return zod(E in vN?vN[E]:{},B)};
zod=function(E,B){var I=_.HA("I18N_PLURAL_RULES");I||(I=function(T){return T==1?"one":"other"});
return(E=E["case"+B]||E[I(B)])?E.replace("#",B.toString()):B+""};
d6J=function(E){var B=m6c(E),I=document.getElementById(B),T=I&&bSQ(I);T||I&&!T||(I=QwG(E,B,function(){if(!bSQ(I)){rPF(I);_.fkc(B);var e=_.wY(_.qqG,B);_.TR(e,0)}}))};
QwG=function(E,B,I){var T=document.createElement("link");T.id=B;T.onload=function(){I&&setTimeout(I,0)};
E=_.Pp(E);_.N7(T,E,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(T);return T};
m6c=function(E){var B=_.li("A");Cr(B,IG(E));return"css-"+JQ(B.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.swG=function(E){var B=hof();E!==B&&(B=_.ZB(),!_.d("web_autonav_allow_off_by_default")&&E||_.PN(0,141,!0),_.PN(0,140,!E),B.save())};
hof=function(){var E=_.ZB();return _.d("web_autonav_allow_off_by_default")&&!E.getFlag(141)&&_.HA("AUTONAV_OFF_BY_DEFAULT")?!1:!E.getFlag(140)};
u1J=function(E,B){var I,T;E=((I=E.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(T=I.videoAuthorizationToken)==null?void 0:T.credentialTransferTokens)||[];for(I=0;I<E.length;++I)if(E[I].scope===B)return E[I].token||void 0};
LUJ=function(E){for(var B=0,I=0;I<E.length;I++)B=B*31+E.charCodeAt(I),I<E.length-1&&(B%=0x800000000000);return B%1E5};
_.za=function(E){return _.WA("ytcsi."+(E||"")+"data_")||x6c(E)};
_.Gji=function(E){E=_.za(E);E.metadata||(E.metadata={});return E.metadata};
_.O0D=function(E){E=_.za(E);E.tick||(E.tick={});return E.tick};
_.neQ=function(E){E=_.za(E);if(E.gel){var B=E.gel;B.gelInfos||(B.gelInfos={});B.gelTicks||(B.gelTicks={})}else E.gel={gelTicks:{},gelInfos:{}};return E.gel};
_.MMJ=function(E){E=_.neQ(E);E.gelInfos||(E.gelInfos={});return E.gelInfos};
H0D=function(E){var B=_.za(E).nonce;B||(B=xh(16),_.za(E).nonce=B);return B};
x6c=function(E){var B={tick:{},info:{}};_.ka("ytcsi."+(E||"")+"data_",B);return B};
NC4=function(){var E=_.WA("ytcsi.debug");E||(E=[],_.ka("ytcsi.debug",E),_.ka("ytcsi.reference",{}));return E};
_.Szt=function(E){E=E||"";var B=geF();if(B[E])return B[E];var I=NC4(),T={timerName:E,info:{},tick:{},span:{},jspbInfo:[]};I.push(T);return B[E]=T};
JGc=function(E){E=E||"";var B=geF();B[E]&&delete B[E];var I=NC4(),T={timerName:E,info:{},tick:{},span:{},jspbInfo:[]};I.push(T);B[E]=T};
geF=function(){var E=_.WA("ytcsi.reference");if(E)return E;NC4();return _.WA("ytcsi.reference")};
_.Xdi=function(E){return WUG[E]||"LATENCY_ACTION_UNKNOWN"};
AGF=function(E,B,I){I=I===void 0?{}:I;var T=!1;_.gU("ytLoggingEventsDefaultDisabled",!1)&&(T=!0);T=T?null:d9;I=I===void 0?{}:I;var e=Math.round(I.timestamp||(0,_.VZ)());_.w9(B,1,e<Number.MAX_SAFE_INTEGER?e:0);e=new rGi;if(I.lact)_.w9(e,1,isFinite(I.lact)?I.lact:-1);else if(I.timestamp)_.w9(e,1,-1);else{var c=_.DD();_.w9(e,1,isFinite(c)?c:-1)}if(I.sequenceGroup&&!_.d("web_gel_sequence_info_killswitch")){c=I.sequenceGroup;var Y=lx6(c),v=new b0c;_.w9(v,2,Y);_.$r(v,1,c);_.fX(e,3,v);I.endOfSequence&&delete oe4[I.sequenceGroup]}_.fX(B,
33,e);(I.sendIsolatedPayload?aNG:v7d)(E,{endpoint:"log_event",payload:B,cttAuthInfo:I.cttAuthInfo,dangerousLogToVisitorSession:I.dangerousLogToVisitorSession},T)};
_.Qu=function(){return(_.d("csi_use_time_origin")||_.d("csi_use_time_origin_tvhtml5"))&&_.mr.timeOrigin?Math.floor(_.mr.timeOrigin):_.mr.timing.navigationStart};
_.jw6=function(E,B){_.dY("_start",E,B)};
_.hl=function(E,B){if(!_.d("web_csi_action_sampling_enabled")||!_.za(B).actionDisabled){var I=_.Szt(B||"");_.u6Q(I.info,E);E.loadType&&(I=E.loadType,_.Gji(B).loadType=I);_.u6Q(_.MMJ(B),E);I=H0D(B);B=_.za(B).cttAuthInfo;U6B().info(E,I,B)}};
kjt=function(){var E,B,I,T;return((T=_.Q().resolve(_.Fx(zF))==null?void 0:(E=e4c())==null?void 0:(B=E.loggingHotConfig)==null?void 0:(I=B.csiConfig)==null?void 0:I.debugTicks)!=null?T:[]).map(function(e){return Object.values(e)[0]})};
_.dY=function(E,B,I){if(!_.d("web_csi_action_sampling_enabled")||!_.za(I).actionDisabled){var T=H0D(I),e;if(e=_.d("web_csi_debug_sample_enabled")&&T){(_.Q().resolve(_.Fx(zF))==null?0:e4c())&&!tMF&&(tMF=!0,_.dY("gcfl",(0,_.VZ)(),I));var c,Y,v;e=(_.Q().resolve(_.Fx(zF))==null?void 0:(c=e4c())==null?void 0:(Y=c.loggingHotConfig)==null?void 0:(v=Y.csiConfig)==null?void 0:v.debugSampleWeight)||0;if(c=e!==0)b:{c=kjt();if(c.length>0)for(Y=0;Y<c.length;Y++)if(E===c[Y]){c=!0;break b}c=!1}c?(e=LUJ(T)%e!==0,
_.za(I).debugTicksExcludedLogged||(c={},c.debugTicksExcluded=e,_.hl(c,I)),_.za(I).debugTicksExcludedLogged=!0):e=!1}if(!e){E[0]!=="_"&&frB(E,I,B);e=_.Szt(I||"");e.tick[E]=B||(0,_.VZ)();if(e.callback&&e.callback[E])for(e=_.p(e.callback[E]),c=e.next();!c.done;c=e.next())c=c.value,c();e=_.neQ(I);e.gelTicks&&(e.gelTicks[E]=!0);c=_.O0D(I);e=B||(0,_.VZ)();_.d("log_repeated_ytcsi_ticks")?E in c||(c[E]=e):c[E]=e;c=_.za(I).cttAuthInfo;E==="_start"?U6B().baseline(T,B,c):U6B().tick(E,T,B,c);_.VMc(I);return e}}};
frB=function(E,B,I){if(_.mr.mark)if(E.startsWith("mark_")||(E="mark_"+E),B&&(E+=" ("+B+")"),I===void 0||_.d("web_csi_disable_alt_time_performance_mark"))_.mr.mark(E);else{I=_.d("csi_use_performance_navigation_timing")||_.d("csi_use_performance_navigation_timing_tvhtml5")?I-_.mr.timeOrigin:I-(_.mr.timeOrigin||_.mr.timing.navigationStart);try{_.mr.mark(E,{startTime:I})}catch(T){}}};
qzF=function(){var E,B=(E=_.mr.getEntriesByType)==null?void 0:E.call(_.mr,"mark");B&&B.forEach(function(I){if(I.name.startsWith("mark_")){var T;(T=_.mr.clearMarks)==null||T.call(_.mr,I.name)}})};
_.FU6=function(){switch(NEJ()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.D6c=function(E){var B={},I=function(c,Y,v){Y=Y.match("_rid")?Y.split("_rid")[0]:Y;typeof v==="number"&&(v=JSON.stringify(v));c.requestIds?c.requestIds.push({endpoint:Y,id:v}):c.requestIds=[{endpoint:Y,id:v}]};
E=_.p(Object.entries(E));for(var T=E.next();!T.done;T=E.next()){var e=_.p(T.value);T=e.next().value;e=e.next().value;switch(T){case "GetBrowse_rid":I(B,T,e);break;case "GetGuide_rid":I(B,T,e);break;case "GetHome_rid":I(B,T,e);break;case "GetPlayer_rid":I(B,T,e);break;case "GetSearch_rid":I(B,T,e);break;case "GetSettings_rid":I(B,T,e);break;case "GetTrending_rid":I(B,T,e);break;case "GetWatchNext_rid":I(B,T,e);break;case "yt_red":B.isRedSubscriber=!!e;break;case "yt_ad":B.isMonetized=!!e}}return B};
_.KUB=function(E){var B=_.sK("aft",E);if(B)return B;B=_.HA((E||"")+"TIMING_AFT_KEYS",["ol"]);for(var I=B.length,T=0;T<I;T++){var e=_.sK(B[T],E);if(e)return e}return NaN};
_.RoQ=function(E,B){_.ka("ytglobal.timing"+(B||"")+"ready_",E)};
_.sK=function(E,B){if(E=_.O0D(B)[E])return typeof E==="number"?E:E[E.length-1]};
_.VMc=function(E){var B=_.sK("_start",E),I=_.KUB(E),T=!EQt;B&&I&&T&&(ImG(Bd4,new $BD(Math.round(I-B),E)),EQt=!0)};
Td6=function(E){x6c(E);IYD();qzF();E||(_.HA("TIMING_ACTION")&&_.MD("PREVIOUS_ACTION",_.HA("TIMING_ACTION")),_.MD("TIMING_ACTION",""))};
_.e3J=function(E){E=E===void 0?{}:E;_.JA(function(){u1();JGc();Td6();_.RoQ(!1);E.cttAuthInfo&&(_.za().cttAuthInfo=E.cttAuthInfo);_.MD("TIMING_AFT_KEYS",[]);E.isHot?_.LO({loadType:"hot"}):_.LO({loadType:"warm"});_.MD("TIMING_ACTION","");delete _.HA("TIMING_INFO",{}).yt_lt;_.JA(_.jw6)(E.startTime,void 0)})()};
_.OK=function(E,B,I,T){B=B===void 0?{}:B;_.JA(function(){var e=I?I:E;lYF(e);var c=B.sampleRate;if(!_.d("web_csi_action_sampling_enabled")||c===void 0||c<=1)c=!1;else{var Y=H0D(e);c=LUJ(Y)%c!==0}c&&(_.za(e).actionDisabled=!0);_.Szt(e||"").info.actionType=E;B.cttAuthInfo&&(_.za(e).cttAuthInfo=B.cttAuthInfo);_.MD(e+"TIMING_ACTION",E);_.JA(_.jw6)(B.startTime,e);c={actionType:T||_.Xdi(E)};B.logPreviousAction&&(c.previousAction=_.Xdi(_.HA("TIMING_ACTION")));(Y=_.nC())&&Y!=="UNDEFINED_CSN"&&(c.clientScreenNonce=
Y);_.LO(c,e);_.RoQ(!0,e)})()};
lYF=function(E){_.JA(function(){u1(E);JGc(E);Td6(E)})()};
cLG=function(){_.JA(function(){var E=[],B;for(B in _.WA("ytcsi.".slice(0,-1)))B.endsWith("data_")&&E.push(B.slice(0,-5));E=_.p(E);for(B=E.next();!B.done;B=E.next())lYF(B.value);u1()})()};
_.pkF=function(E){return _.JA(function(){return _.iLc("_start",E)})()};
_.LO=function(E,B,I){_.JA(_.hl)(E,B,I===void 0?!1:I)};
_.nO=function(E,B,I){return _.JA(_.dY)(E,B,I)};
_.iLc=function(E,B){return _.JA(function(){var I=_.O0D(B);return E in I})()};
aYc=function(E){if(!_.d("universal_csi_network_ticks"))return"";E=_.c7(E)||"";for(var B=Object.keys(YHG),I=0;I<B.length;I++){var T=B[I];if(E.includes(T))return T}return""};
yLi=function(E){if(!_.d("universal_csi_network_ticks"))return function(){};
var B=YHG[E];return B?(_.Mf(B),function(){var I=_.d("universal_csi_network_ticks")?(I=vQB[E])?_.Mf(I):!1:!1;return I}):function(){}};
_.Mf=function(E,B,I){return _.JA(function(){if(_.iLc(E,I))return!1;_.nO(E,B,I);return!0})()};
_.HN=function(E,B,I){_.JA(function(){if(!_.pkF(I)||_.iLc(E,I))return!1;_.nO(E,B,I);return!0})()};
_.Nf=function(E){return _.JA(_.sK)(E,void 0)};
u1=function(E){_.pkF(E)&&_.nO("aa",void 0,E)};
_.z34=function(E,B,I,T,e,c,Y,v,y){var Z=Cpt();v=new _.Gx({veType:B,youtubeData:c,jspbYoutubeData:v});c=gY({},Z);e&&(c.cttAuthInfo=e);e={csn:Z,pageVe:v.getAsJson()};_.d("expectation_logging")&&y&&y.screenCreatedLoggingExpectations&&(e.screenCreatedLoggingExpectations=y.screenCreatedLoggingExpectations);I&&I.visualElement?(e.implicitGesture={parentCsn:I.clientScreenNonce,gesturedVe:I.visualElement.getAsJson()},Y&&(e.implicitGesture.gestureType=Y)):I&&_.OG(new _.P7("newScreen() parent element does not have a VE - rootVe",
B));T&&(e.cloneCsn=T);E?QU("screenCreated",e,E,c):_.hK("screenCreated",e,c);ImG(Y3B,new wk4(Z));SY.clear();ZLJ.clear();Ppi.clear();return Z};
Jl=function(E,B,I,T,e){_.mBf(E,B,I,[T],e===void 0?!1:e)};
_.mBf=function(E,B,I,T,e){e=e===void 0?!1:e;for(var c=gY({cttAuthInfo:MU(B)||void 0},B),Y=_.p(T),v=Y.next();!v.done;v=Y.next()){v=v.value;var y=v.getAsJson();(_.a_.isEmpty(y)||!y.trackingParams&&!y.veType)&&_.OG(Error("tf"));if(_.d("no_client_ve_attach_unless_shown")){var Z=Qbc(v,B);if(y.veType&&!ZLJ.has(Z)&&!Ppi.has(Z)&&!e){if(!_.d("il_attach_cache_limit")||SY.size<1E3){SY.set(Z,[E,B,I,v]);return}_.d("il_attach_cache_limit")&&SY.size>1E3&&_.OG(new _.P7("IL Attach cache exceeded limit"))}v=Qbc(I,
B);SY.has(v)?dBF(I,B):Ppi.set(v,!0)}}T=T.filter(function(P){P.csn!==B?(P.csn=B,P=!0):P=!1;return P});
I={csn:B,parentVe:I.getAsJson(),childVes:_.yl(T,function(P){return P.getAsJson()})};
B==="UNDEFINED_CSN"?WN("visualElementAttached",c,I):E?QU("visualElementAttached",I,E,c):_.hK("visualElementAttached",I,c)};
sbJ=function(E,B,I,T,e){h36(E,B,I,e)};
h36=function(E,B,I,T){und(I,B);var e=gY({cttAuthInfo:MU(B)||void 0},B);I={csn:B,ve:I.getAsJson(),eventType:1};T&&(I.clientData=T);B==="UNDEFINED_CSN"?WN("visualElementShown",e,I):E?QU("visualElementShown",I,E,e):_.hK("visualElementShown",I,e)};
LnG=function(E,B,I,T){und(I,B);var e=gY({cttAuthInfo:MU(B)||void 0},B);I={csn:B,ve:I.getAsJson(),eventType:4};T&&(I.clientData=T);B==="UNDEFINED_CSN"?WN("visualElementShown",e,I):E?QU("visualElementShown",I,E,e):_.hK("visualElementShown",I,e)};
xBF=function(E,B,I,T,e){var c=(T=T===void 0?!1:T)?16:8;T=gY({cttAuthInfo:MU(B)||void 0,endOfSequence:T},B);I={csn:B,ve:I.getAsJson(),eventType:c};e&&(I.clientData=e);B==="UNDEFINED_CSN"?WN("visualElementHidden",T,I):E?QU("visualElementHidden",I,E,T):_.hK("visualElementHidden",I,T)};
OL4=function(E,B,I,T,e){Gei(E,B,I,void 0,T,e)};
Gei=function(E,B,I,T,e){und(I,B);T=T||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var c=gY({cttAuthInfo:MU(B)||void 0},B);I={csn:B,ve:I.getAsJson(),gestureType:T};e&&(I.clientData=e);B==="UNDEFINED_CSN"?WN("visualElementGestured",c,I):E?QU("visualElementGestured",I,E,c):_.hK("visualElementGestured",I,c)};
nQc=function(E,B,I,T){var e=gY({cttAuthInfo:MU(B)||void 0},B);I={csn:B,ve:I.getAsJson(),clientData:T};B==="UNDEFINED_CSN"?WN("visualElementStateChanged",e,I):E?QU("visualElementStateChanged",I,E,e):_.hK("visualElementStateChanged",I,e)};
MJG=function(){var E=pR4(16);for(var B=[],I=0;I<E.length;I++)B.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(E[I]&63));return B.join("")};
WN=function(E,B,I){HLc.push({payloadName:E,payload:I,jspbPayload:void 0,options:B});NdQ||(NdQ=vN4())};
pP6=function(E){if(HLc){for(var B=_.p(HLc),I=B.next();!I.done;I=B.next())I=I.value,I.payload&&(I.payload.csn=E.csn,_.hK(I.payloadName,I.payload,I.options));HLc.length=0}NdQ=0};
Qbc=function(E,B){return""+E.getAsJson().veType+E.getAsJson().veCounter+B};
und=function(E,B){if(_.d("no_client_ve_attach_unless_shown")){var I=Qbc(E,B);ZLJ.set(I,!0);dBF(E,B)}};
dBF=function(E,B){E=Qbc(E,B);SY.has(E)&&(B=SY.get(E)||[],Jl(B[0],B[1],B[2],B[3],!0),SY.delete(E))};
gY=function(E,B){_.d("log_sequence_info_on_gel_web")&&(E.sequenceGroup=B);return E};
_.XD=function(E,B,I){_.JA(Jl)(void 0,E,B,I)};
_.rY=function(E,B){_.JA(sbJ)(void 0,E,B,void 0,void 0,void 0)};
_.b1=function(E,B,I){_.JA(function(){_.bW(B,function(T){LnG(void 0,E,T,I)})})()};
_.o2=function(E,B,I,T){_.JA(function(){_.bW(B,function(e){xBF(void 0,E,e,I,T)})})()};
_.Al=function(E,B,I){_.JA(OL4)(void 0,E,B,I,void 0)};
_.jY=function(E,B,I,T){_.JA(Gei)(void 0,E,B,I,T,void 0)};
_.UK=function(E,B,I){_.JA(nQc)(void 0,E,B,I,void 0)};
tl=function(E){return kO.get(E)};
gQc=function(E,B){kO.set(E,B)};
SHG=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(E){return(+E^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+E/4).toString(16)})};
rLc=function(E,B){B=B===void 0?{}:B;if(fO&&fO.sample(E,B)){var I=JLc++,T,e;E=new Wnc(E,B,performance.now(),I,Xkf,(e=(T=Vu)==null?void 0:T.traceId)!=null?e:I);if(Vu){var c;(c=Vu).children||(c.children=[]);Vu.children.push(E)}I=_.p(fO.spanProcessors);for(T=I.next();!T.done;T=I.next())c=e=void 0,(c=(e=T.value).onSpanStart)==null||c.call(e,E);return Vu=E}};
bLQ=function(E){var B;return(B=fO)==null?void 0:B.sample(E,void 0)};
oQi=function(E){Xkf=SHG();fO=E};
ALB=function(E,B,I){if(!E)return B(I);var T=void 0;try{return B(I)}catch(e){throw T="error",e;}finally{E==null||E.close(T)}};
jbi=function(E,B){var I=Object.keys(E);E=new _.P7("[Command Handler] "+B,{filteredCommandNames:I,originalCommand:E});_.xV(E)};
UBf=function(E,B){jbi(E,B+" was called but not set")};
kec=function(E){return function(){return new E}};
qf=function(E){return function(){return _.Q().resolve(E)}};
tJQ=function(E,B){var I=_.h(E,_.g9);if(I&&(I=B[I.signal]))return I();E=_.p(Object.keys(E));for(I=E.next();!I.done;I=E.next())if(I=I.value,B[I]&&(I=B[I]))return I()};
FD=function(E,B,I,T){return{browseEndpoint:{browseId:E},commandMetadata:{webCommandMetadata:{url:B,rootVe:I,webPageType:T===void 0?"WEB_PAGE_TYPE_BROWSE":T}}}};
fYF=function(E,B,I){var T=B=B===void 0?0:B;I=I===void 0?0:I;var e=I-T;return _.DB(E,"PPSV",void 0,void 0,(e>600?0:e<60||I<=0||T/I>.9)?0:B)};
_.DB=function(E,B,I,T,e){var c="/watch?v="+E;E={videoId:E};B&&(E.playlistId=B,c+="&list="+B);T&&(c+="&pp="+T);e&&(E.startTimeSeconds=e,c+="&t="+e+"s");B={watchEndpoint:E,commandMetadata:{webCommandMetadata:{url:c,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};I&&(B.clickTrackingParams=I);T&&(_.h(B,_.kh).playerParams=T);return B};
VJG=function(E){return{browseEndpoint:{browseId:"VL"+E},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+E,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
qHi=function(E){if(E){var B;if(E){var I=(B=_.h(E.commandMetadata,_.D$))==null?void 0:B.url;B=!(!I||I==="/service_ajax")}else B=!1;if(B)return E;var T;if(E=(T=_.h(E,_.pO))==null?void 0:T.commands)for(T=_.p(E),E=T.next();!E.done;E=T.next())if(E=qHi(E.value))return E}};
_.KO=function(E){return{runs:[{text:E}]}};
FnG=function(E,B){return E&&B?{runs:[{text:E,navigationEndpoint:B}]}:void 0};
R2=function(E){return E?_.KO(E):void 0};
_.E3=function(E){return E?{simpleText:E}:void 0};
_.BP=function(E){var B=E.type;E=E.payload;B={type:B};E!==void 0&&(B.payload=E);return B};
DBG=function(E,B,I){for(var T=Object.assign({},E),e=_.p(Object.keys(B)),c=e.next();!c.done;c=e.next()){c=c.value;var Y=E[c],v=B[c];if(v===void 0)delete T[c];else if(Y===void 0)T[c]=v;else if(Array.isArray(v)&&Array.isArray(Y))T[c]=I?[].concat(_.ad(Y),_.ad(v)):v;else if(!Array.isArray(v)&&_.B6(v)&&!Array.isArray(Y)&&_.B6(Y))T[c]=DBG(Y,v,I);else if(typeof v===typeof Y)T[c]=v;else return B=new _.P7("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:c,originalValue:Y,updateValue:v}),
_.xV(B),E}return T};
Ebi=function(E){if(!E.length)return"";try{if(Kn4)return Kn4.decode(E);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(E)}catch(Y){}for(var B=0,I=[],T=E.length;B<T;){for(var e=0;e<1024&&B<T;){var c=E[B++];if(c<128)R3f[e++]=c;else{if(c<224)c=(c&31)<<6|E[B++]&63;else if(c<240)c=(c&15)<<12|(E[B++]&63)<<6|E[B++]&63;else{if(e+1===1024){--B;break}c=(c&7)<<18|(E[B++]&63)<<12|(E[B++]&63)<<6|E[B++]&63;c-=65536;R3f[e++]=55296|c>>10;c=56320|c&1023}R3f[e++]=c}}c=String.fromCharCode.apply(String,
R3f);e<1024&&(c=c.substring(0,e));I.push(c)}return I.join("")};
$$i=function(E,B){var I;if((I=Bo4)==null?0:I.encodeInto)return B=Bo4.encodeInto(E,B),B.read<E.length?E.length*4:B.written;for(var T=I=0;T<E.length;T++){var e=E.charCodeAt(T);e<128?B[I++]=e:(e<2048?B[I++]=e>>6|192:((e&64512)===55296&&T+1<E.length&&(E.charCodeAt(T+1)&64512)===56320?(e=65536+((e&1023)<<10)+(E.charCodeAt(++T)&1023),B[I++]=e>>18|240,B[I++]=e>>12&63|128):B[I++]=e>>12|224,B[I++]=e>>6&63|128),B[I++]=e&63|128)}return I};
IOc=function(E,B){E=new Uint8Array(E);B&&E.set(B);return E};
_.IY=function(E){E=new ToD(new eTF([_.pV(decodeURIComponent(E))]));if(lOt(E,2)){var B=$N(E);var I=E.pos;I=E.arrayView.getDataView(I===void 0?0:I,B===void 0?-1:B);I=new Uint8Array(I.buffer,I.byteOffset,I.byteLength);E.pos+=B;B=I}else B=void 0;B=B?Ebi(B):void 0;E=lOt(E,4)?$N(E):void 0;I=cTi[E];if(typeof I==="undefined")throw E=new _.P7("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:E}),_.xV(E),E;return{entityTypeFieldNumber:E,entityType:I,entityId:B}};
_.lm=function(E,B,I){I=I===void 0?0:I;var T=new iot;if(Bo4)E=Bo4.encode(E);else{var e=new Uint8Array(Math.ceil(E.length*1.2)),c=$$i(E,e);e.length<c&&(e=new Uint8Array(c),c=$$i(E,e));e.length>c&&(e=e.subarray(0,c));E=e}E!==void 0&&(TP(T,18),e=E.length,TP(T,e),ej(T,e),T.buf.set(E,T.pos),T.pos+=e);E=ped[B];if(typeof E==="undefined")throw I=new _.P7("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:B}),_.xV(I),I;E!==void 0&&(TP(T,32),TP(T,E));TP(T,40);TP(T,1);B=new Uint8Array(T.buf.buffer,
T.buf.byteOffset,T.pos);return encodeURIComponent(_.tH(B,I))};
YoB=function(E){E=E.key||E.id;if(!E)throw Error("xf");return E};
vbD=function(E,B){E=E===void 0?{}:E;return aOi(E,B)};
yTi=function(E,B,I,T){if(T===void 0)return T=Object.assign({},E[B]||{}),I=(delete T[I],T),T={},Object.assign({},E,(T[B]=I,T));var e={},c={};return Object.assign({},E,(c[B]=Object.assign({},E[B],(e[I]=T,e)),c))};
CMc=function(E,B,I,T,e){var c=E[B];if(c==null||!c[I])return E;T=DBG(c[I],T,e==="REPEATED_FIELDS_MERGE_OPTION_APPEND");e={};c={};return Object.assign({},E,(c[B]=Object.assign({},E[B],(e[I]=T,e)),c))};
_.cP=function(E,B,I){return E[B]?E[B][I]||null:null};
ZoF=function(){if(wed)return wed();var E={};wed=fF("PersistentEntityStoreDb",{objectStores:(E.EntityStore={addedAtVersion:1},E.EntityAssociationStore={addedAtVersion:2},E),shared:!1,upgrade:function(B,I){I(1)&&g7(N3(B,"EntityStore",{keyPath:"key"}),"entityType","entityType");I(2)&&(B=N3(B,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),g7(B,"byParentEntityKey","parentEntityKey"),g7(B,"byChildEntityKey","childEntityKey"))},
version:3});return wed()};
PM6=function(E){return _.r0(ZoF(),E)};
im=function(E){return window.Int32Array?new Int32Array(E):Array(E)};
m$Q=function(E){return _.r0(zT6(),E)};
QnF=function(E){return new p9("WRONG_DATA_TYPE",{encoderVersion:E})};
d$Q=function(E){return E instanceof Error?new p9("UNKNOWN_ENCODE_ERROR",{originalMessage:E.message}):new p9("UNKNOWN_ENCODE_ERROR")};
hTQ=function(E){return E instanceof Error?new p9("UNKNOWN_DECODE_ERROR",{originalMessage:E.message}):new p9("UNKNOWN_DECODE_ERROR")};
snB=function(E,B){E=E instanceof p9?E:B(E);_.xV(E);throw E;};
u04=function(E){E=(new TextEncoder).encode(E).subarray(0,16);var B=new Uint8Array(16);B.set(E);return B};
x$G=function(E){var B=LAG[E];if(B)return B;_.OG(new _.P7("Entity model not found.",{entityType:E}))};
_.YN=function(){GzF||(GzF=OoB());return GzF};
OoB=function(){var E,B,I;return _.a(function(T){if(T.nextAddress==1)return _.q7(T,2),_.C(T,_.tg(),4);if(T.nextAddress!=2){E=T.yieldResult;if(!E||!_.ZZ()||typeof _.$i.BroadcastChannel==="undefined")return T.return();B=new nbc;return T.return(new aY(E,B))}I=_.RG(T);I instanceof Error&&_.xV(I);return T.return()})};
_.vP=function(E,B){var I;return _.a(function(T){if(T.nextAddress==1){I=E.mutations;if(!I||I.length<=0)return T.return();B&&B.dispatch(_.BP({type:"ENTITY_LOADED",payload:I}));return _.C(T,Mot(I),2)}I.length=0;_.ER(T)})};
Mot=function(E){var B;return _.a(function(I){return I.nextAddress==1?_.C(I,_.YN(),2):(B=I.yieldResult)?_.C(I,_.yF(B,"readwrite",function(T){for(var e={},c=_.p(E),Y=c.next(),v={};!Y.done;v={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},Y=c.next())v.mutation$jscomp$4=Y.value,v.mutation$jscomp$4.entityKey&&HoQ(v.mutation$jscomp$4)&&(v.mutationEntityType$jscomp$3=(0,_.a_.getAnyKey)(v.mutation$jscomp$4.payload),Y=void 0,v.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(Y=function(y){return function(){return _.NoB(T,
y.mutation$jscomp$4.payload[y.mutationEntityType$jscomp$3],y.mutationEntityType$jscomp$3)}}(v)),v.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(Y=function(y){return function(){return gbd(T,y.mutation$jscomp$4.entityKey)}}(v)),v.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(Y=function(y){return function(){return SoQ(T,y.mutation$jscomp$4.entityKey,y.mutation$jscomp$4.payload[y.mutationEntityType$jscomp$3],y.mutationEntityType$jscomp$3)}}(v)),Y&&(e[v.mutation$jscomp$4.entityKey]=
e[v.mutation$jscomp$4.entityKey]?e[v.mutation$jscomp$4.entityKey].then(Y):Y()));
return N_.all(Object.values(e))}),0):I.return()})};
HoQ=function(E){var B;E=(B=E.options)==null?void 0:B.persistenceOption;return E==="ENTITY_PERSISTENCE_OPTION_PERSIST"||E==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
Xe6=function(E,B){var I,T;_.a(function(e){if(e.nextAddress==1)return _.C(e,_.YN(),2);if(e.nextAddress!=3)return(I=e.yieldResult)?_.C(e,_.yF(I,"readonly",function(c){var Y={},v=Object.keys(B).map(function(y){var Z=B[y]?[].concat(_.ad(B[y])):[];return JTc(c,y,Z,Y)});
return N_.all(v).then(function(){return Y})}),3):e.return();
T=e.yieldResult;Object.keys(T).length>0&&E.dispatch(WAf(T));_.ER(e)})};
JTc=function(E,B,I,T){return C9(E,B,I).then(function(e){T[B]=rT6(I,e)})};
rT6=function(E,B){if(B.length!==E.length)throw Error("Af");return B.reduce(function(I,T,e){I[E[e]]=T;return I},{})};
ATG=function(E){var B=E.filter(function(e){var c;return(e==null?void 0:(c=e.transferEntity)==null?void 0:c.transferState)==="TRANSFER_STATE_COMPLETE"}).length,I=E.filter(function(e){var c;
return(e==null?void 0:(c=e.transferEntity)==null?void 0:c.transferState)==="TRANSFER_STATE_FAILED"}).length,T=E.filter(function(e){var c;
return(e==null?void 0:(c=e.transferEntity)==null?void 0:c.transferState)&&boF.includes(e.transferEntity.transferState)});
if(!(B||T!=null&&T.length))return 0;B=_.obc(T)+B;E=E.length-I;return E===0?0:Math.round(B*100/E)/100};
_.obc=function(E){var B=[];B=B.concat.apply(B,_.ad(E.filter(function(c){return c.streamEntity}).map(function(c){var Y=Object.assign({},c.streamEntity),v,y=(v=c.transferEntity)==null?void 0:v.transferState;
Y.streamsProgress=Y.streamsProgress||[];Y.streamsProgress=Y.streamsProgress.map(function(Z){var P=Object.assign({},Z);P.numBytesDownloaded=y==="TRANSFER_STATE_COMPLETE"?Z.numTotalBytes:Z.numBytesDownloaded;return P});
return Y}).map(function(c){return c.streamsProgress})));
var I=E=0;B=_.p(B);for(var T=B.next();!T.done;T=B.next()){var e=T.value;T=Number(e.numBytesDownloaded);e=Number(e.numTotalBytes);I+=isNaN(T)?0:T;E+=isNaN(e)?0:e}return E===0?0:Math.round(I*100/E)/100};
jnJ=function(E){if(!E||!E.expirationTimestamp||!E.action)return!1;var B=(0,_.VZ)()/1E3;return Number(E.expirationTimestamp)>=B};
wK=function(E){return E&&E.expirationTimestamp&&E.action?jnJ(E)&&E.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Zm=function(E){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(E||"TRANSFER_STATE_UNKNOWN")};
U$d=function(E){var B=new iot;if(E!==void 0){var I=Math.ceil(Math.log2(E.length*4+2)/7);I=I===void 0?2:I;TP(B,10);B.submessagePosStack.push(B.pos);B.submessagePosStack.push(I);B.pos+=I;ej(B,E.length*1.2);I=$$i(E,B.buf.subarray(B.pos));B.pos+I>B.buf.length&&(ej(B,I),I=$$i(E,B.buf.subarray(B.pos)));B.pos+=I;E=B.submessagePosStack.pop();I=B.submessagePosStack.pop();for(var T=B.pos-I-E;E--;){var e=E?128:0;B.view.setUint8(I++,T&127|e);T>>=7}}B=new Uint8Array(B.buf.buffer,B.buf.byteOffset,B.pos);return(new TextDecoder("utf-8")).decode(B)};
_.PP=function(E){var B=0;E=_.p(E);for(var I=E.next(),T={};!I.done;T={transferState$jscomp$3:void 0},I=E.next()){var e=I.value,c=void 0;I=(c=e.streamEntity)!=null?c:{};c=void 0;T.transferState$jscomp$3=(c=e.transferEntity)==null?void 0:c.transferState;c=e=void 0;((e=I)==null?0:(c=e.streamsProgress)==null?0:c.length)&&I.streamsProgress.forEach(function(Y){return function(v){v=Number(Y.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?v.numTotalBytes:v.numBytesDownloaded);isFinite(v)&&(B+=v)}}(T))}return B};
kzD=function(E){return E.some(function(B){var I;if(!(B==null?0:(I=B.transferEntity)==null?0:I.transferState)){var T;return!(B==null?0:(T=B.policyEntity)==null?0:T.action)||B.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return boF.includes(B.transferEntity.transferState)})};
toG=function(E,B){if(!B)return!1;if(_.d("of_pb_en_po_ks"))return!0;var I;E=(I=_.cP(E,"offlineVideoPolicy",_.lm(B,"offlineVideoPolicy")))!=null?I:void 0;return!!E&&wK(E)};
_.VoQ=function(E){var B=["TRANSFER_STATE_COMPLETE"];B=B===void 0?fOi:B;return E.filter(function(I){var T,e;return B.includes((e=(T=I.transferEntity)==null?void 0:T.transferState)!=null?e:"TRANSFER_STATE_UNKNOWN")})};
qoi=function(E,B){if(B){var I,T=(I=_.cP(E,"playbackData",_.lm(B,"playbackData")))!=null?I:null,e;I=(e=_.cP(E,"transfer",_.lm(B,"transfer")))!=null?e:null;var c;e=(c=_.cP(E,"offlineVideoStreams",_.lm(B,"offlineVideoStreams")))!=null?c:null;var Y;E=(Y=_.cP(E,"offlineVideoPolicy",_.lm(B,"offlineVideoPolicy")))!=null?Y:null;if(T||I||e||E)return{playbackDataEntity:T,transferEntity:I,streamEntity:e,policyEntity:E}}};
_.zP=function(E){var B=E.playbackData;if(!B)return[];var I=[];B=_.p(Object.keys(B));for(var T=B.next();!T.done;T=B.next()){var e=T.value;if(!FAc(E,_.IY(e).entityId)&&(T=qoi(E,_.IY(e).entityId))){var c=void 0,Y=void 0;e=(Y=Number((c=_.cP(E,"playbackData",e))==null?void 0:c.streamDownloadTimestampSeconds))!=null?Y:(0,_.VZ)();I.push({entity:T,streamDownloadTimestamp:e})}}return I.sort(function(v,y){var Z=v.streamDownloadTimestamp,P=y.streamDownloadTimestamp;return P===Z?v.entity.streamEntity&&!y.entity.streamEntity?
1:-1:P-Z}).map(function(v){return v.entity})};
D$J=function(E){return _.VoQ(_.zP(E))};
_.KAG=function(E){return _.zP(E).filter(function(B){var I;if(((I=B.policyEntity)==null?0:I.action)&&B.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var T;if((T=B.transferEntity)==null?0:T.transferState){var e;return boF.includes((e=B.transferEntity)==null?void 0:e.transferState)}return!0})};
FAc=function(E,B){var I;return((I=_.cP(E,"downloadStatusEntity",_.lm(B,"downloadStatusEntity")))==null?void 0:I.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
RTF=function(E){var B;if(E==null?0:(B=E.playbackDataEntity)==null?0:B.key)return _.IY(E.playbackDataEntity.key).entityId;var I;if(E==null?0:(I=E.transferEntity)==null?0:I.key)return _.IY(E.transferEntity.key).entityId;var T;if(E==null?0:(T=E.streamEntity)==null?0:T.key)return _.IY(E.streamEntity.key).entityId;var e;if(E==null?0:(e=E.policyEntity)==null?0:e.key)return _.IY(E.policyEntity.key).entityId};
B4d=function(E){var B=new Set,I;E=(I=E.mainDownloadsListEntity)==null?void 0:I[Efc];var T;if(!(E==null?0:(T=E.downloads)==null?0:T.length))return B;var e;E==null||(e=E.downloads)==null||e.forEach(function(c){(c==null?0:c.videoItem)&&B.add(c.videoItem)});
return B};
m_=function(E,B){if(B){var I=_.cP(E,"mainVideoEntity",_.lm(B,"mainVideoEntity")),T=_.cP(E,"downloadStatusEntity",_.lm(B,"downloadStatusEntity")),e=_.cP(E,"ytMainChannelEntity",_.lm(B,"ytMainChannelEntity")),c={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};E=qoi(E,B);T=(T==null?void 0:T.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.d("woffle_render_failed_download_state_ks")&&(T==null?void 0:T.downloadState)==="DOWNLOAD_STATE_FAILED";!E&&T&&(E=c);if(E&&I&&
e)return Object.assign({},{videoEntity:I,channelEntity:e},E)}};
IMi=function(E,B){return $CD(E,B)==="TRANSFER_STATE_COMPLETE"&&toG(E,B)};
T4i=function(E,B){if(!B)return!1;var I;E=(I=_.cP(E,"playbackData",_.lm(B,"playbackData")))!=null?I:void 0;return!!E&&!!E.playerResponseJson};
$CD=function(E,B){if(!B)return"TRANSFER_STATE_UNKNOWN";var I=_.cP(E,"transfer",_.lm(B,"transfer"));if(I){var T;return(T=I.transferState)!=null?T:"TRANSFER_STATE_UNKNOWN"}I=_.cP(E,"offlineOrchestrationActionWrapperEntity",_.lm(B,"offlineOrchestrationActionWrapperEntity"));E=_.cP(E,"mainVideoEntity",_.lm(B,"mainVideoEntity"));return I||E?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
ehG=function(E,B){if(!B)return"TRANSFER_STATE_UNKNOWN";if(E=_.cP(E,"transfer",_.lm(B,"transfer"))){var I;return(I=E.transferState)!=null?I:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
WGD=function(E,B){return B&&(E=_.cP(E,"videoPlaybackPositionEntity",_.lm(B,"videoPlaybackPositionEntity")),E==null?0:E.lastPlaybackPositionSeconds)?Number(E.lastPlaybackPositionSeconds):0};
rci=function(E,B){return XOf(E).some(function(I){var T;return(I==null?void 0:(T=I.mainPlaylistEntity)==null?void 0:T.playlistId)===B})};
ofQ=function(E,B,I){var T=b2D(E,B);if(!T.length)return[];B=[];T=_.p(T);for(var e=T.next();!e.done;e=T.next()){e=e.value;var c=m_(E,e);I&&$CD(E,e)!=="TRANSFER_STATE_COMPLETE"||c&&B.push(c)}return B};
b2D=function(E,B){if(!B)return[];var I=_.lm(B,"mainPlaylistEntity"),T;B=(T=E.mainPlaylistEntity)==null?void 0:T[I];T=[];if(B==null||!B.videos)return T;B=_.p(B.videos);for(I=B.next();!I.done;I=B.next()){I=I.value;var e=void 0,c=void 0,Y=void 0,v=(e=E)==null?void 0:(c=e.mainPlaylistVideoEntity)==null?void 0:(Y=c[I])==null?void 0:Y.video;v&&(I=_.IY(v).entityId)&&T.push(I)}return T};
AcG=function(E,B){if(B){var I=_.cP(E,"mainPlaylistEntity",_.lm(B,"mainPlaylistEntity")),T=_.cP(E,"mainPlaylistDownloadStateEntity",_.lm(B,"mainPlaylistDownloadStateEntity"));E=_.cP(E,"ytMainChannelEntity",_.lm(B,"ytMainChannelEntity"));if(T&&I)return Object.assign({},{mainPlaylistEntity:I,mainPlaylistDownloadStateEntity:T},!!E&&{channelEntity:E})}};
XOf=function(E){return jAQ(E).sort(function(B,I){return I.addedTimestampMillis-B.addedTimestampMillis}).map(function(B){return B.downloadedPlaylistEntities})};
jAQ=function(E){var B=E.mainPlaylistDownloadStateEntity,I=[];if(!B)return I;for(var T=_.p(Object.keys(B)),e=T.next();!e.done;e=T.next()){var c=e.value;e=AcG(E,_.IY(c).entityId);var Y=void 0;c=Number((Y=B[c])==null?void 0:Y.addedTimestampMillis);Y=isNaN(c)?(0,_.VZ)():c;e!==void 0&&I.push({downloadedPlaylistEntities:e,addedTimestampMillis:Y})}return I};
UC4=function(E){var B,I=(B=E.mainPlaylistVideoEntity)!=null?B:{};return new Set(XOf(E).reduce(function(T,e){T=T===void 0?[]:T;var c,Y;e==null||(c=e.mainPlaylistEntity)==null||(Y=c.videos)==null||Y.forEach(function(v){var y;(v=(y=I[v])==null?void 0:y.video)&&T.push(v)});
return T},[]))};
kqt=function(E){return"downloadedMusicPlaylistEntities"in E};
tyi=function(E){return"mainPlaylistEntity"in E&&"mainPlaylistDownloadStateEntity"in E};
fMi=function(E){return"videoEntity"in E&&"channelEntity"in E};
Vyd=function(E){var B=E.musicPlaylistDownloadMetadataEntity,I=[];if(!B)return I;for(var T=_.p(Object.keys(B)),e=T.next();!e.done;e=T.next()){e=e.value;a:{var c=E,Y=_.IY(e).entityId;if(Y){var v=_.cP(c,"musicPlaylist",_.lm(Y,"musicPlaylist"));c=_.cP(c,"musicPlaylistDownloadMetadataEntity",_.lm(Y,"musicPlaylistDownloadMetadataEntity"));if(v&&c){v={musicPlaylistEntity:v,musicPlaylistDownloadStateEntity:c};break a}}v=void 0}c=void 0;e=Number((c=B[e])==null?void 0:c.addedTimestampMillis);e=isNaN(e)?(0,_.VZ)():
e;v!==void 0&&I.push({downloadedMusicPlaylistEntities:v,addedTimestampMillis:e})}return I};
qIc=function(E){var B=new Set;E=_.p(E);for(var I=E.next();!I.done;I=E.next())if(I=I.value,"musicPlaylistEntity"in I&&"musicPlaylistDownloadStateEntity"in I){I=_.p(I.musicPlaylistEntity.tracks);for(var T=I.next();!T.done;T=I.next())B.add(T.value)}return B};
FGc=function(E,B){if(B){var I=_.cP(E,"musicTrack",_.lm(B,"musicTrack")),T=_.cP(E,"musicArtist",_.lm(B,"musicArtist"))||{};if((E=qoi(E,B))&&I&&T)return Object.assign({},{musicTrackEntity:I,musicArtistEntity:T},E)}};
DCF=function(E){var B=E.musicTrackDownloadMetadataEntity,I=[];if(!B)return[];B=_.p(Object.keys(B));for(var T=B.next();!T.done;T=B.next()){var e=T.value;T=FGc(E,_.IY(e).entityId);var c=void 0;e=Number((c=_.cP(E,"musicTrackDownloadMetadataEntity",e))==null?void 0:c.addedTimestampMillis);c=isNaN(e)?(0,_.VZ)():e;T!==void 0&&I.push({downloadedMusicEntities:T,addedTimestampMillis:c})}return I};
EYi=function(E,B){if(!B)return[];if(Object.values(KG4).includes(B))return Rht(E,B);B=_.lm(B,"musicPlaylist");var I;E=(I=E.musicPlaylist)==null?void 0:I[B];I=[];if(E==null||!E.tracks)return I;E=_.p(E.tracks);for(B=E.next();!B.done;B=E.next())(B=_.IY(B.value).entityId)&&I.push(B);return I};
Rht=function(E,B){var I=new Set,T=Vyd(E).map(function(c){return c.downloadedMusicPlaylistEntities});
T=qIc(T);T=_.p(T);for(var e=T.next();!e.done;e=T.next())(e=_.IY(e.value).entityId)&&I.add(e);return B8G(E).downloadedMusicEntities.filter(function(c){var Y;if((Y=c.musicTrackEntity)!=null&&Y.videoId){c=c.musicTrackEntity;if(Y=B==="PPOM"?!0:!I.has(c.videoId))b:switch(c=c.musicVideoType,B){case "PPSE":Y=c==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:Y=c!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}c=Y}else c=!1;return c}).map(function(c){var Y;
return(Y=c.musicTrackEntity)==null?void 0:Y.videoId})};
B8G=function(E){var B=DCF(E).sort(function(I,T){return T.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:kqt(I)?I.downloadedMusicPlaylistEntities:{}});
E=Vyd(E).sort(function(I,T){return T.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:kqt(I)?I.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:B,downloadedMusicPlaylistEntities:E}};
I_c=function(E,B){B=_.HA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?EYi(E,B):b2D(E,B);if(!B.length)return"TRANSFER_STATE_UNKNOWN";B=B.map(function(I){return ehG(E,I)});
return $Tf(B)};
$Tf=function(E){var B=new Set(E);if(B.has("TRANSFER_STATE_FAILED")&&B.size===1)return"TRANSFER_STATE_FAILED";B.delete("TRANSFER_STATE_FAILED");if(B.has("TRANSFER_STATE_UNKNOWN")&&B.size===1)return"TRANSFER_STATE_PRE_TRANSFER";B.delete("TRANSFER_STATE_UNKNOWN");if(B.has("TRANSFER_STATE_PRE_TRANSFER")&&B.size===1||B.size===0)return"TRANSFER_STATE_PRE_TRANSFER";E=B.has("TRANSFER_STATE_TRANSFERRING");B=B.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return E||B?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
QF=function(E){var B=E.mainVideoDownloadStateEntity,I=[];if(!B)return[];B=_.p(Object.keys(B));for(var T=B.next();!T.done;T=B.next()){var e=T.value;if(!FAc(E,_.IY(e).entityId)){T=m_(E,_.IY(e).entityId);var c=void 0,Y=void 0;e=(Y=Number((c=_.cP(E,"mainVideoDownloadStateEntity",e))==null?void 0:c.addedTimestampMillis))!=null?Y:(0,_.VZ)();T!==void 0&&I.push({downloadedVideoEntities:T,addedTimestampMillis:e})}}return I};
T8F=function(E){return QF(E).sort(function(B,I){return I.addedTimestampMillis-B.addedTimestampMillis}).map(function(B){return B.downloadedVideoEntities})};
_.l_G=function(E){var B=UC4(E),I=_.dK(E),T=B4d(E),e=QF(E).filter(function(Y){var v,y;if((Y==null?void 0:(v=Y.downloadedVideoEntities)==null?void 0:(y=v.transferEntity)==null?void 0:y.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var Z,P;Y=Y==null?void 0:(Z=Y.downloadedVideoEntities)==null?void 0:(P=Z.videoEntity)==null?void 0:P.key;return _.d("kevlar_use_library_entity")?Y&&(T.has(Y)||I[Y]):Y&&!B.has(Y)}),c=jAQ(E).filter(function(Y){return I_c(E,Y.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.ad(e),_.ad(c)).sort(function(Y,v){return v.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return ek4(Y)})};
cBG=function(E,B){if(B&&toG(E,B)){var I,T,e=(T=(I=_.cP(E,"playbackData",_.lm(B,"playbackData")))!=null?I:void 0)==null?void 0:T.playerResponseJson;if(e){try{var c=JSON.parse(e);var Y=_.cP(E,"transfer",_.lm(B,"transfer")),v=WGD(E,B);v&&(c=Object.assign({},c,{playerConfig:Object.assign({},c.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+v*1E3}}})}));c.cotn=Y==null?void 0:Y.cotn}catch(y){}return c}}};
_.YSf=function(E){var B,I,T;E=(T=(I=((B=E.downloadsPageViewConfigurationEntity)!=null?B:{})[iU4])==null?void 0:I.smartDownloadsOptInBannerVisibility)!=null?T:{};var e;return(e=_.h(E,pWt))!=null?e:{}};
_.dK=function(E){var B,I,T;E=(T=(I=((B=E.mainDownloadsListEntity)!=null?B:{})[_.a_6])==null?void 0:I.downloads)!=null?T:[];B={};I=_.p(E);for(T=I.next();!T.done;T=I.next())E=void 0,B[(E=T.value.videoItem)!=null?E:""]=!0;return B};
vY6=function(E){var B=_.dK(E);if(Object.keys(B).length===0)return!1;var I=E.mainVideoEntity;if(!I)return!0;I=_.p(Object.keys(I));for(var T=I.next();!T.done;T=I.next()){T=T.value;var e=_.IY(T).entityId;if(B[T]&&!FAc(E,e))return!1}return!0};
_.s3=function(E){var B=_.dK(E);return QF(E).sort(function(I,T){return I.addedTimestampMillis-T.addedTimestampMillis}).map(function(I){return I.downloadedVideoEntities}).filter(function(I){var T;
return(I=I==null?void 0:(T=I.videoEntity)==null?void 0:T.key)&&!!B[I]})};
ek4=function(E){return"downloadedVideoEntities"in E?E.downloadedVideoEntities:"downloadedPlaylistEntities"in E?E.downloadedPlaylistEntities:{}};
yB6=function(E){var B=_.dK(E),I=UC4(E),T=QF(E).filter(function(e){var c,Y;return(e=e==null?void 0:(c=e.downloadedVideoEntities)==null?void 0:(Y=c.videoEntity)==null?void 0:Y.key)&&!B[e]&&!I.has(e)});
E=jAQ(E);return[].concat(_.ad(T),_.ad(E)).sort(function(e,c){return c.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return ek4(e)})};
_.um=function(E){if(!_.d("kevlar_use_library_entity"))return yB6(E);var B=QF(E).filter(function(T){var e,c;if(e=T=T==null?void 0:(e=T.downloadedVideoEntities)==null?void 0:(c=e.videoEntity)==null?void 0:c.key){var Y,v,y;e=((v=(Y=E.mainDownloadsListEntity)==null?void 0:Y[Efc])==null?0:(y=v.downloads)==null?0:y.length)?B4d(E).has(T):!1}return e}),I=jAQ(E);
return[].concat(_.ad(B),_.ad(I)).sort(function(T,e){return e.addedTimestampMillis-T.addedTimestampMillis}).map(function(T){return ek4(T)})};
CUi=function(E){var B=_.dK(E),I=UC4(E);return T8F(E).filter(function(T){var e;return(T=T==null?void 0:(e=T.videoEntity)==null?void 0:e.key)&&!B[T]&&!I.has(T)})};
wW6=function(E){if(!_.d("kevlar_use_library_entity"))return CUi(E);var B=_.dK(E),I=B4d(E);return T8F(E).filter(function(T){var e;return(T=T==null?void 0:(e=T.videoEntity)==null?void 0:e.key)&&!B[T]&&I.has(T)})};
ZUJ=function(E,B){B=_.lm(B,"settingEntity");var I,T,e;return!!((e=(T=((I=E.settingEntity)!=null?I:{})[B])==null?void 0:T.settingOptionValue)!=null?e:{}).boolValue};
_.L9=function(E){var B=_.s3(E);if(kzD(B))return 0;var I=[];B=_.p(B);for(var T=B.next();!T.done;T=B.next()){T=T.value;var e=void 0,c=void 0;if((e=T)==null?0:(c=e.videoEntity)==null?0:c.key)e=_.IY(T.videoEntity.key).entityId,T=E,e=_.lm(e,"mainVideoDownloadStateEntity"),T=_.cP(T,"mainVideoDownloadStateEntity",e),(T=Number(T==null?void 0:T.addedTimestampMillis))&&I.push(T)}return Math.max.apply(Math,_.ad(I))};
_.xN=function(E){return E.ui.richGridMiniMode};
_.GP=function(E){return E.ui.richGridItemsPerRow};
_.PUD=function(E){return E.ui.richGridSlimItemsPerRow};
_.zkd=function(E){return E.ui.guideIsExpanded};
_.O3=function(E){return E.ui.miniplayerIsActive};
_.mTB=function(E){return E.ui.singleOptionSurveyIsActive};
_.n9=function(E){return E.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.Qpd=function(E){return E.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.dTc=function(E){return E.ui.inlinePreviewIsActive};
_.hki=function(E){return E.ui.inlinePreviewIsEnabled};
_.spd=function(E){return E.ui.miniplayerPlaybackState};
u2G=function(E){return E.ui.isOnline};
_.LJt=function(E){return E.ui.frostedGlassMode};
_.Mg=function(E,B){return $CD(E.entities,B)};
_.HP=function(E,B){return I_c(E.entities,B)};
xTJ=function(E,B){var I;if(B){var T;E=(T=_.cP(E.entities,"offlineVideoPolicy",_.lm(B,"offlineVideoPolicy")))==null?void 0:T.action}else E=void 0;return(I=E)!=null?I:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
GTQ=function(E,B){var I;B?(E=_.cP(E.entities,"offlineVideoPolicy",_.lm(B,"offlineVideoPolicy")),E=Number(E==null?void 0:E.expirationTimestamp)):E=void 0;return(I=E)!=null?I:0};
_.OUF=function(E){return _.zP(E.entities).length};
nYB=function(E,B){return m_(E.entities,B)};
MpB=function(E,B){return AcG(E.entities,B)};
gK=function(E,B){return(E=m_(E.entities,B))?_.obc([E]):0};
_.HUD=function(E,B){var I=_.HA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(I){var T=E.entities;var e=EYi(T,B);if(e.length){var c=[];e=_.p(e);for(var Y=e.next();!Y.done;Y=e.next())(Y=FGc(T,Y.value))&&c.push(Y);T=c}else T=[]}else T=ofQ(E.entities,B);var v;if(I){var y=E.entities;B?(B=_.lm(B,"musicPlaylist"),y=(v=y.musicPlaylist)==null?void 0:v[B],v=y!=null&&y.tracks?y.tracks.length:0):v=0}else v=E.entities,B?(B=_.lm(B,"mainPlaylistEntity"),v=(y=v.mainPlaylistEntity)==null?void 0:y[B],v=v!=null&&v.videos?
v.videos.length:0):v=0;return T.length!==v?0:T?ATG(T):0};
_.N8G=function(E){return E.download.isLeaderTab};
_.gYG=function(E,B,I){if(!B&&I){var T=E.entities;if(I){var e=U$d(I),c,Y;B=(Y=(c=_.cP(T,"offlineabilityEntity",_.lm(e,"offlineabilityEntity")))==null?void 0:c.addToOfflineButtonState)!=null?Y:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else B="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else c=E.entities,B?(Y=U$d(B),B=(e=(T=_.cP(c,"offlineabilityEntity",_.lm(Y,"offlineabilityEntity")))==null?void 0:T.addToOfflineButtonState)!=null?e:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):B="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return B};
SSF=function(E,B){E=E.entities;if(B){B=U$d(B);var I,T;B=(T=(I=_.cP(E,"offlineabilityEntity",_.lm(B,"offlineabilityEntity")))==null?void 0:I.addToOfflineButtonState)!=null?T:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else B="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return B};
_.JB4=function(E){var B=E.entities;E=u2G(E);var I=ZUJ(B,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.d("kevlar_modern_downloads_page")&&I)var T=!1;else{var e,c;B=(c=(e=((T=B.downloadsPageViewConfigurationEntity)!=null?T:{})[iU4])==null?void 0:e.smartDownloadsOptInBannerVisibility)!=null?c:{};T=E?!!B.visibleWithConnection:!!B.visibleWithoutConnection}return T};
_.WJQ=function(E){return ZUJ(E.entities,"SMART_DOWNLOADS_ENABLED")};
_.XW6=function(E){return vY6(E.entities)};
rBJ=function(E){return _.s3(E.entities).every(function(B){var I;return(B==null?void 0:(I=B.transferEntity)==null?void 0:I.transferState)&&!boF.includes(B.transferEntity.transferState)})};
_.bUd=function(E,B){return FAc(E.entities,B)};
oYt=function(E,B){if(B){var I,T;E=(T=(I=_.cP(E.entities,"downloadStatusEntity",_.lm(B,"downloadStatusEntity")))==null?void 0:I.downloadState)!=null?T:"DOWNLOAD_STATE_UNKNOWN"}else E="DOWNLOAD_STATE_UNKNOWN";return E};
Sj=function(E,B){return WGD(E.entities,B)};
kTf=function(E){E=_.ABf(E);var B=E.hours===void 0?0:E.hours,I=E.minutes===void 0?0:E.minutes,T=E.seconds===void 0?0:E.seconds,e=B>0;E=[];e&&(B=_.jpD(B),E.push(B));B=e;B=B===void 0?!1:B;I=(["af","be","lt"].includes(_.J2)||B)&&I<10?UTc().format(I):(new Intl.NumberFormat("en-u-nu-latn")).format(I);E.push(I);I=UTc().format(T);E.push(I);I=":";"da fi id si sr sr-Latn".split(" ").includes(_.J2)&&(I=".");return E.join(I)};
_.ABf=function(E){var B=E.hours||0,I=E.minutes||0,T=E.seconds||0;B=T+I*60+B*3600+(E.days||0)*86400+(E.weeks||0)*604800+(E.months||0)*2629800+(E.years||0)*31557600;if(B<=0)return{hours:0,minutes:0,seconds:0};E=B;B=Math.floor(E/3600);E%=3600;I=Math.floor(E/60);T=Math.floor(E%60);return{hours:B,minutes:I,seconds:T}};
_.jpD=function(E){E=(new Intl.NumberFormat("en-u-nu-latn")).format(E);var B=["fr"],I="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(_.J2)?E.replace(",","\u00a0"):B.includes(_.J2)?E.replace(",","\u202f"):I.includes(_.J2)?E.replace(",","."):E};
UTc=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
tpf=function(E){try{return(new _.WP(5)).format(E)}catch(B){}};
XO=function(E){return{thumbnailOverlayDownloadingRenderer:{state:E}}};
f_c=function(E){if(E=tpf(E))return{thumbnailOverlaySidePanelRenderer:{text:_.KO(E),icon:{iconType:"PLAYLISTS"}}}};
VpB=function(){var E=_.yu("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.KO(E),icon:{iconType:"PLAY_ALL"}}}};
qSc=function(E){E=_.rK(E,2);return _.J2!=="ru"&&_.J2!=="es_419"&&_.J2!=="es-419"&&_.J2!=="es"&&_.J2!=="es_US"&&_.J2!=="es-US"&&_.J2!=="fr"&&_.J2!=="pl"&&_.J2!=="it"&&_.J2!=="nl"&&_.J2!=="uk"&&_.J2!=="fr_CA"&&_.J2!=="fr-CA"||E===""?E:E[0].toLocaleUpperCase()+E.substring(1)};
DTi=function(E){return function(B){var I=E(),T=_.rK(B,I.dateFormat);B=_.rK(B,I.timeFormat);var e=FJc.DATETIMEFORMATS[I.joinerStyle];e=e.replace(/'(?!')/g,"");e=e.replace("{0}",B);e=e.replace("{1}",T);return I.capitalize(e)}};
KJc=function(E){return E?typeof E.seconds==="string"&&(E.nanos===void 0||typeof E.nanos==="number"):!1};
RkG=function(E){return new Date(Number(E.seconds)*1E3+(E.nanos||0)*1E-6)};
_.rK=function(E,B){if(typeof E.getTime==="function")E={date:E};else if(KJc(E))E={date:RkG(E)};else if(typeof KJc(E.timestamp)&&typeof E.i18nInternalSecondsEastOfUtc==="number")E={date:RkG(E.timestamp),timeZone:bm(-E.i18nInternalSecondsEastOfUtc/60)};else throw Error("Bf`"+JSON.stringify(E));var I=E;E=I.date;I=I.timeZone;B=E8f(B).format(E,I);_.J2==="zh-TW"&&(E=I?Number(E8f("H").format(E,I)):E.getHours(),B=E<5?B.replace("\u4e0a\u5348","\u51cc\u6668"):E<8?B.replace("\u4e0a\u5348","\u65e9\u4e0a"):E<12?
B.replace("\u4e0a\u5348","\u4e0a\u5348"):E<13?B.replace("\u4e0b\u5348","\u4e2d\u5348"):E<19?B.replace("\u4e0b\u5348","\u4e0b\u5348"):B.replace("\u4e0b\u5348","\u665a\u4e0a"));return B};
E8f=function(E){if(BB4.has(E))return BB4.get(E);var B=$ed(E);B=I3J(B);TBc!==!0&&(TBc=!0);eEG=!0;eEG=!1;B=new oY(B,FJc);BB4.set(E,B);return B};
$ed=function(E){return(new oY(E,FJc)).patternParts_.map(function(B){return B.type===0?"'"+B.text+"'":B.text}).join("")};
I3J=function(E){return _.J2==="en"||_.J2==="es_US"||_.J2==="es-US"?E:E.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(B,I,T){return"H".repeat(I.length)+T})};
yo4=function(E,B){l3i||(_.A2=_.coG,l3i=new i_f);var I=l3i;a:if(E=pxG(E),B=pxG(B||new Date),E>B)I=E.getTime()-B.getTime()>6048E5?_.rK(E,1):YAi(E);else{for(var T=0;a3c(E,12*(T+1))<B;)++T;if(T>0)I=I.format(-T,0);else{for(T=0;a3c(E,T+1)<B;)++T;if(T>0)I=I.format(-T,2);else{E=B.getTime()-E.getTime();B=_.p(v8G);for(T=B.next();!T.done;T=B.next()){T=T.value;var e=T.unit,c=Math.floor(E/T.unitDuration);if(c>=(T.threshold===void 0?1:T.threshold)){I=I.format(-c,e);break a}}I=I.format(-0,7)}}}return I};
pxG=function(E){if(typeof E.getTime==="function")return E;if(KJc(E))return RkG(E);throw Error("Cf`"+JSON.stringify(E));};
a3c=function(E,B){for(var I=0,T;;++I)if(T=new Date(E.getFullYear(),E.getMonth()+B,E.getDate()-I,E.getHours(),E.getMinutes(),E.getSeconds()),T.getMonth()===(E.getMonth()+B)%12)return T};
_.jj=function(E){return{runs:[{text:E}]}};
_.U3=function(E){if(E&&E.simpleText)return E.simpleText;var B="";if(E&&E.runs)for(var I=0;I<E.runs.length;I++)E.runs[I].text&&(B+=E.runs[I].text);return B};
wxG=function(E,B,I,T){return E.videoEntity&&!E.policyEntity&&I!=="DOWNLOAD_STATE_FAILED"?[XO("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:wK(E.policyEntity)&&B!=="TRANSFER_STATE_FAILED"&&B!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?B==="TRANSFER_STATE_PAUSED_BY_USER"?[XO("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Zm(B)?[XO("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:E.videoEntity.lengthSeconds?Cfi(E.videoEntity.lengthSeconds,T):[]:
[XO("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
Cfi=function(E,B){var I=[{thumbnailOverlayTimeStatusRenderer:{text:_.KO(kTf({seconds:E})),style:"DEFAULT"}}];B&&(E=B<=0||E<=0?0:B>=E?100:Math.ceil(B*100/E),E>0&&I.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:E}}));return I};
Z_B=function(E,B,I,T,e){if(B==="TRANSFER_STATE_UNKNOWN"||!E)return{};if(_.Zm(B)||B==="TRANSFER_STATE_PRE_TRANSFER")var c=[XO("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var Y,v;if(B==="TRANSFER_STATE_COMPLETE"&&((Y=E.mainPlaylistEntity)==null?0:(v=Y.videos)==null?0:v.length)){if(_.d("web_modern_collections_v2")){var y;var Z=(c=E.mainPlaylistEntity)==null?void 0:(y=c.videos)==null?void 0:y.length;c=(c=tpf(Z))?{thumbnailOverlayBottomPanelRenderer:{text:_.KO(c),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var P;c=f_c((Z=E.mainPlaylistEntity)==null?void 0:(P=Z.videos)==null?void 0:P.length)}var z;c=[VpB(),Object.assign({},(z=c)!=null?z:{})]}else c=[]}z=c;a:if(B==="TRANSFER_STATE_PRE_TRANSFER")I=R2(_.yu("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(B==="TRANSFER_STATE_TRANSFER_IN_QUEUE")I=R2(_.yu("WAITING_TO_DOWNLOAD"));else if(_.Zm(B))I=Math.floor(I*100).toString(),I=R2(_.yu("DOWNLOADING_PERCENT",{percent:I},"Downloading... "+I+"%"));else{if(T&&(_.d("playlist_is_offline_selector_killswitch")&&
(e=_.Q().resolve(_.Xg).isNetworkAvailable()),e)){I=FnG(_.yu("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),VJG(T));break a}I=void 0}B=B==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.yu("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},z.length?{thumbnailOverlays:z}:{},I?{viewPlaylistText:I}:{viewPlaylistText:_.jj("")},B.length?{badges:B}:{})};
Pfi=function(E,B,I,T,e,c){if(B==="TRANSFER_STATE_UNKNOWN"||!E)return{};if(T==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var Y=wxG(E,B,T);if(E.videoEntity&&!E.policyEntity&&T!=="DOWNLOAD_STATE_FAILED"){var v=_.yu("WAITING_TO_DOWNLOAD");if(v)return{shortViewCountText:_.jj(v),publishedTimeText:void 0,thumbnailOverlays:Y}}if(!wK(E.policyEntity)){c=E.policyEntity&&!jnJ(E.policyEntity)?_.yu("DOWNLOAD_EXPIRED",{},"Download expired"):
_.yu("TRANSFER_FAILED",{},"Download failed");var y;if((y=E.policyEntity)==null?0:y.shortMessageForDisabledAction)c=E.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:R2(c),publishedTimeText:void 0,thumbnailOverlays:Y}}if(B==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.jj(_.yu("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:Y};if(B==="TRANSFER_STATE_FAILED"||B==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.jj(_.yu("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:Y};if(B==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(y=_.yu("WAITING_TO_DOWNLOAD"),T==="DOWNLOAD_STATE_PAUSED"&&(y=_.yu("DOWNLOAD_PAUSED",{},"Download paused")),y))return{shortViewCountText:_.jj(y),publishedTimeText:void 0,thumbnailOverlays:Y};if(_.Zm(B))return E=Math.floor(I*100).toString(),{shortViewCountText:_.jj(_.yu("DOWNLOADING_PERCENT",{percent:E},"Downloading... "+E+"%")),publishedTimeText:void 0,thumbnailOverlays:Y};B=void 0;E.videoEntity.publishedTimestampMillis&&
(B=new Date,e&&(B=new Date(e)),B=R2(yo4(new Date(Number(E.videoEntity.publishedTimestampMillis)),B)));e=[];_.d("kevlar_woffle_badge_killswitch")||(e=[{metadataBadgeRenderer:{label:_.yu("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var Z;E=R2((Z=E.videoEntity.localizedStrings)==null?void 0:Z.viewCount);return Object.assign({},c?{shortViewCountText:void 0}:{shortViewCountText:E},c?{}:{publishedTimeText:B},{badges:e,thumbnailOverlays:Y})};
med=function(E,B){E=E===void 0?zEf:E;switch(B.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:B.payload.playlistId,inviteLinkURL:B.payload.inviteLinkUrl};default:return E}};
dec=function(E,B){E=E===void 0?Q5J:E;switch(B.type){case "SET_CURRENT_FORM_ID":return B=B.payload.formId,E.currentFormId===B?E:{currentFormId:B,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var I=B.payload;B=I.groupId;I=I.command;if(E.currentFormId){var T=Object.assign({},E.commandsMap);T[B]=I;E=Object.assign({},E,{commandsMap:T})}return E;case "RESET_COMMAND_MAP":return Object.assign({},E,{commandsMap:{}});default:return E}};
s5d=function(E,B){E=E===void 0?hEQ:E;switch(B.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},E,{guideIsExpanded:B.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},E,{scrollAtTop:B.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},E,{guideIsVisibleButNotPersistent:B.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},E,{miniplayerIsActive:B.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},E,{singleOptionSurveyIsActive:B.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},E,{slimlineSurveyRatingSelectedIndex:B.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},E,{richGridMiniMode:B.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},E,{richGridItemsPerRow:B.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},E,{richGridSlimItemsPerRow:B.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},E,{richGridContainerWidth:B.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},E,{richGridStyle:B.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},E,{currentPageType:B.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},E,{inlinePreviewIsActive:B.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},E,{inlinePreviewIsEnabled:B.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},E,{darkModeIsEnabled:B.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
E,{miniplayerPlaybackState:B.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},E,{tabGesturesIsActive:B.payload});case "SET_ONLINE_STATUS":return Object.assign({},E,{isOnline:B.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},E,{chipBarIsSticky:B.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},E,{frostedGlassMode:B.payload});default:return E}};
LWi=function(E,B){E=E===void 0?uA4:E;switch(B.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},E,{transcription:B.payload});case "SET_OVERLAY_STATE":return Object.assign({},E,{overlay:B.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return E}};
Joi=function(){return Yh(Object.assign({},{continuation:xeJ,entities:vbD,download:Gsd,reportChannelAbuse:O_J,share:n8i,talkToRecs:MuB,ui:s5d,voiceSearch:LWi,watch:H_d,ypc:NBF,shorts:g8d,radioButtonGroup:dec,collabInviteLink:med},SAi))};
roJ=function(){return _.d("web_player_entities_middleware")?new kN(Joi(),[WWJ,Xx4]):new kN(Joi(),[WWJ])};
_.t2=function(){b_B||(b_B=roJ());return b_B};
o8c=function(E,B,I){if(E.length)return{titleText:_.KO(B!=null?B:_.yu("DOWNLOADS",void 0,"Downloads")),contents:E.map(function(T){var e=T.videoEntity;T={videoId:e.videoId,title:R2(e.title),shortBylineText:R2(T.channelEntity.title),thumbnail:e.thumbnail};var c=e.videoId?Sj(_.t2().getState(),e.videoId):0;e.videoId&&I?T.navigationEndpoint=_.DB(e.videoId,I,void 0,void 0,c):e.videoId&&(T.navigationEndpoint=fYF(e.videoId,c,e.lengthSeconds));e.lengthSeconds&&(T.thumbnailOverlays=Cfi(e.lengthSeconds,c));return{playlistPanelVideoRenderer:T}}),
totalVideos:E.length}};
Ao4=function(E){return(E=(0,_.a_.getValueByKeys)(E,"playlistId"))?{playlistId:E}:null};
j5G=function(){return{}};
Ue6=function(E,B){return new _.cC(function(I,T){E.then(function(e){if(e){if(e=B(e))return I(e);T()}},T)})};
ksG=function(E){var B,I,T,e=(B=E.contents)==null?void 0:(I=B.twoColumnWatchNextResults)==null?void 0:(T=I.autoplay)==null?void 0:T.autoplay,c,Y,v;B=(c=E.contents)==null?void 0:(Y=c.twoColumnWatchNextResults)==null?void 0:(v=Y.playlist)==null?void 0:v.playlist;return e&&B&&B.playlistId?{rawResponse:E,autoplayRenderer:e,playlistPanelRenderer:B,playlistId:B.playlistId}:null};
f3c=function(E){var B=B===void 0?"UNKNOWN_INTERFACE":B;if(E.length===1)return E[0];var I=tui[B];if(I){I=new RegExp(I);for(var T=_.p(E),e=T.next();!e.done;e=T.next())if(e=e.value,I.exec(e))return e}var c=[];Object.entries(tui).forEach(function(Y){var v=_.p(Y);Y=v.next().value;v=v.next().value;B!==Y&&c.push(v)});
I=new RegExp(c.join("|"));E.sort(function(Y,v){return Y.length-v.length});
T=_.p(E);for(e=T.next();!e.done;e=T.next())if(e=e.value,!I.exec(e))return e;return E[0]};
_.f9=function(E){return"/youtubei/v1/"+f3c(E)};
_.VF=function(E){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:E}}}}};
_.qg=function(E){return _.VF(_.jj(E))};
Vuf=function(E,B){var I={mode:"NORMAL"};E&&(I.autoplayVideo=E.navigationEndpoint,I.nextButtonVideo=E.navigationEndpoint);B&&(I.previousButtonVideo=B.navigationEndpoint);return I};
Def=function(E,B,I){if(!I||!I.sets)return{sets:[Vuf(E,B)]};var T=I.sets.find(function(Y){return Y.mode==="NORMAL"}),e=(0,_.a_.unsafeClone)(I);
if(!T)return e.sets.push(Vuf(E,B)),e;if(!E)return I;T=_.a_.getValueByKeys.apply(null,[T].concat(_.ad(qA4)));var c=_.a_.getValueByKeys.apply(null,[E].concat(_.ad(FWG)));if(T===c)return I;e.sets=e.sets.filter(function(Y){return Y.mode!=="NORMAL"});
e.sets.push(Vuf(E,B));return e};
KWd=function(E){return!!E.playlistPanelVideoRenderer&&!E.playlistPanelVideoRenderer.unplayableText};
RED=function(E){return!!E.playlistPanelVideoRenderer&&!!E.playlistPanelVideoRenderer.title};
ECc=function(E,B){if(B.contents&&!(E>=B.contents.length)&&(E=B.contents.slice(E).find(KWd)))return E.playlistPanelVideoRenderer};
B5Q=function(E,B){if(B.contents)return(B=B.contents.find(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===E}))?B.playlistPanelVideoRenderer:void 0};
$l6=function(E,B){return B.contents?B.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===E}):-1};
IGc=function(E,B){return B.contents?B.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.playlistSetVideoId===E}):-1};
T56=function(E,B){E.contents&&B!==-1&&E.contents.splice(B,1).length===1&&E.totalVideos!==void 0&&(--E.totalVideos,delete E.videoCountText)};
_.e8c=function(E){var B=[];if(!E||!E.contents)return B;E=_.p(E.contents);for(var I=E.next();!I.done;I=E.next())I=I.value,I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId&&B.push(I.playlistPanelVideoRenderer.videoId);return B};
_.lGc=function(E){if(E&&E.contents)return(E=E.contents.find(function(B){return!!B.playlistPanelVideoRenderer&&!!B.playlistPanelVideoRenderer.selected})||E.contents[E.currentIndex])?E.playlistPanelVideoRenderer:void 0};
chD=function(E,B,I,T,e,c,Y){e=e===void 0?!1:e;c=c===void 0?!1:c;Y=Y===void 0?!1:Y;if(E.contents&&E.contents.length!==0){T&&(E.contents=E.contents.filter(T));T=E.contents.length;for(var v=0;v<T;v++){var y=E.contents[v].playlistPanelVideoRenderer;y&&(v===B?(c&&delete y.menu,y.indexText=_.jj("\u25b6")):e||E.isInfinite||y.indexText===void 0?delete y.indexText:y.indexText=_.jj((v+1+I).toString()))}E.currentIndex=B+I;Y&&(delete E.videoCountText,E.totalVideos=T)}};
YyG=function(E){E=iMc(E,!0);if(E){var B=E.length;var I=-38%B;I<0&&(I=B+I);E=E.slice(B-I)+E.slice(0,B-I)}else E="";I="";for(B=0;B<E.length&&E[B]!==pcJ;B++)I+=E[B];return I};
aGi=function(E,B){var I=document.body;B=B===void 0?function(v){return v}:B;
var T,e=null;E=_.p(E);for(T=E.next();!T.done;T=E.next()){var c=T.value;T=document.createElement("div");e||(e=T);var Y=c[0];c=c[1];Y&&(T.id=B(Y));if(c)for(Y=_.p(c),c=Y.next();!c.done;c=Y.next())T.classList.add(B(c.value));I.appendChild(T);I=T}return[e,I]};
vCQ=function(E,B){for(var I="",T=0;T<B;T++)I+=E.charAt(Math.floor(Math.random()*E.length));return I};
FO=function(E){return vCQ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",E)};
Dm=function(E){return vCQ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",E)};
K9=function(E){return vCQ("0123456789",E)};
RY=function(){var E=performance.now(),B=new Date;var I="2."+B.getFullYear()+String(B.getMonth()+1).padStart(2,"0")+String(B.getDate()).padStart(2,"0");for(var T,e=Math.floor(Math.random()*11)+15,c=[],Y=0;Y<e;Y++)c.push(Math.floor(Math.random()*26476865)+24547720);T=c.join(",");var v=FO(10),y=FO(100),Z=FO(102),P=FO(106),z=FO(108),m=FO(11),u=FO(1140),x=FO(123),M=FO(14),N=FO(16),W=FO(1900),U=FO(23),q=FO(26),f=FO(34),ed=FO(397),K=FO(44),p4=FO(5),sc=FO(72),Gf=FO(74),xi=FO(75),ki=FO(88),WG=FO(91),rJ="rr2---sn-q4flrnee rr3---sn-q4fl6nds rr1---sn-5hne6nzk rr3---sn-5hnednss rr2---sn-t0a7lnee rr1---sn-5hnekn7l rr5---sn-5hneknes rr3---sn-5hnekn7l rr1---sn-q4fzen7e rr4---sn-5hne6n6e rr1---sn-q4flrnsl rr1---sn-q4fl6nsl rr1---sn-q4fl6ns6 rr2---sn-q4fzen7s rr4---sn-q4flrnle rr3---sn-5hneknek rr2---sn-q4fl6nss rr1---sn-q4flrnsk rr2---sn-aigl6nzs rr1---sn-q4fl6nz6".split(" ");
var Uc=rJ[Math.floor(Math.random()*rJ.length)];var CV=(new Date("2010-01-01")).getTime();var Bm=(new Date(CV+Math.random()*((new Date).getTime()-CV))).toISOString().split("T")[0];for(var LV,I$=[],bc=0;bc<4;bc++)I$.push(Math.floor(Math.random()*100));LV=I$.join(".");var hz=Number(K9(5)),TU=Number(K9(6)),Wm=Number(K9(7)),z2=Number(K9(9)),cG=K9(1),$I=K9(10),tz=K9(16),pX=K9(19),OZ=K9(2),kl=K9(20),Qd=K9(21),Yl=K9(3),jd=K9(4),wr=K9(5),et=K9(6),Qh=K9(7),ds=K9(8),mq=K9(9);var ec=vCQ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var ZK=[Dm(5),Dm(5),Dm(5)].join("%2C"),WL=[K9(3),K9(5),K9(5)].join("%2C"),lT=Dm(0),nK=Dm(1),ND=Dm(10),iW=Dm(108),Rh=Dm(11),cn=Dm(12),pc=Dm(13),cU=Dm(14),$a=Dm(15),h1=Dm(16),aj=Dm(17),mQ=Dm(18),NG=Dm(19),oB=Dm(2),ZX=Dm(20),Ig=Dm(22),G2=Dm(23),ag=Dm(24),mR=Dm(266),zU=Dm(3),vm=Dm(30),sX=Dm(34),c6=Dm(35),wf=Dm(36),YP=Dm(4),NV=Dm(40),je=Dm(43),HM=Dm(47),h2=Dm(5),cp=Dm(6),FF=Dm(7),ws=Dm(75),Z1=Dm(8),nX=Dm(80),BL=Dm(9),$y="https://www."+Dm(12)+".com",Wh={},s8={},U1={},rHD={},Qe={},jL={},U2={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:T}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:I},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Dm(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:I},{key:"client.name",value:"WEB"},{key:"client.fexp",value:T}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Qd+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Dm(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:NV,ypcGetOfflineUpsellEndpoint:{params:nX}},trackingParams:c6+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&cnr="+OZ+"&ratebypass=yes&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&c=WEB&txp="+Qh+"&n="+N+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:TU,width:640,height:360,lastModified:tz,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Qh,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+WL+"&mn="+
ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&cnr="+OZ+"&ratebypass=yes&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&c=WEB&txp="+Qh+"&n="+N+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+iW+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:TU,width:1280,
height:720,lastModified:tz,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Qh,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+WL+"&mn="+ZK+"&ms="+
ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&gir="+zU+"&clen="+mq+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Wm,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:mq,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wm,approxDurationMs:Qh},{itag:248,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+WL+"&mn="+ZK+"&ms="+ZK+"&mv="+
nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fwebm&ns="+ag+"&gir="+zU+"&clen="+mq+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:Wm,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:mq,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wm,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qh},{itag:399,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+
WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&gir="+zU+"&clen="+mq+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Wm,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:mq,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wm,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qh},{itag:136,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+
WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&gir="+zU+"&clen="+mq+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Wm,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:mq,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:TU,approxDurationMs:Qh},{itag:247,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+WL+"&mn="+
ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fwebm&ns="+ag+"&gir="+zU+"&clen="+mq+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:Wm,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:mq,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:TU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qh},{itag:398,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+
WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&gir="+zU+"&clen="+mq+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Wm,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:mq,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:TU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qh},{itag:135,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+
WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:TU,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:TU,approxDurationMs:Qh},{itag:244,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+WL+"&mn="+
ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fwebm&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+iW+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:TU,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:TU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qh},{itag:397,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+
WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:TU,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:TU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qh},{itag:134,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+
WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:TU,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:TU,highReplication:!0,approxDurationMs:Qh},{itag:243,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+
WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fwebm&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:TU,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:TU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qh},{itag:396,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+
WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:TU,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:TU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qh},{itag:133,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+
WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:TU,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:TU,approxDurationMs:Qh},{itag:242,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+WL+"&mn="+
ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fwebm&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:TU,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:TU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qh},{itag:395,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+
WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:TU,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:TU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qh},{itag:160,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+
WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:TU,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:hz,approxDurationMs:Qh},{itag:278,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+WL+"&mn="+
ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fwebm&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:TU,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:hz,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qh},{itag:394,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&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="+
WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=video%2Fmp4&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:hz,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:hz,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qh},{itag:140,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=audio%2Fmp4&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:TU,
initRange:{start:"0",end:"631"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:TU,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Qh,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+
OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=audio%2Fwebm&ns="+ag+"&gir="+zU+"&clen="+Qh+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'audio/webm; codecs="opus"',bitrate:hz,initRange:{start:"0",end:"265"},indexRange:{start:Yl,
end:jd},lastModified:tz,contentLength:Qh,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:hz,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Qh,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=audio%2Fwebm&ns="+
ag+"&gir="+zU+"&clen="+Qh+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'audio/webm; codecs="opus"',bitrate:hz,initRange:{start:"0",end:"265"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:Qh,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:hz,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Qh,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Uc+".googlevideo.com/videoplayback?expire="+$I+"&ei="+U+"&ip="+LV+"&id=o-AF"+je+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+WL+"&mn="+ZK+"&ms="+ZK+"&mv="+nK+"&mvi="+cG+"&pl="+OZ+"&initcwndbps="+Qh+"&siu="+cG+"&spc="+K+"&vprv="+cG+"&svpuc="+cG+"&mime=audio%2Fwebm&ns="+ag+"&gir="+zU+"&clen="+ds+"&dur="+ds+"&lmt="+tz+"&mt="+$I+"&fvip=3&keepalive="+zU+"&c=WEB&txp="+
Qh+"&n="+h1+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'audio/webm; codecs="opus"',bitrate:TU,initRange:{start:"0",end:"265"},indexRange:{start:Yl,end:jd},lastModified:tz,contentLength:ds,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:TU,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Qh,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="+mq+"&docid="+m+"&ei="+U+"&feature="+v+"&fexp="+lT+"&ns="+oB+"&plid="+N+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+nK+"&el="+ND+"&len="+jd+"&of="+Ig+
"&uga="+OZ+"&vm="+mR},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+mq+"&docid="+m+"&ei="+U+"&feature="+v+"&fexp="+lT+"&ns="+oB+"&plid="+N+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+nK+"&el="+ND+"&len="+jd+"&of="+Ig+"&uga="+OZ+"&vm="+mR},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+mq+"&docid="+m+"&ei="+U+"&feature="+v+"&fexp="+lT+"&ns="+oB+"&plid="+N+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
nK+"&el="+ND+"&len="+jd+"&of="+Ig+"&uga="+OZ+"&vm="+mR},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+U+"&m="+ki+"&oid="+Ig+"&plid="+N+"&pltype="+FF+"&ptchn="+Ig+"&ptk="+M+"&video_id="+m},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+mq+"&docid="+m+"&ei="+U+"&event="+cU+"&feature="+v+"&fexp="+lT+"&ns="+oB+"&plid="+N+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+nK},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+m+"&ei="+U+"&feature="+
v+"&len="+jd+"&ns="+oB+"&plid="+N+"&ver="+cG,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+m+"&caps="+zU+"&opi="+mq+"&xoaf="+cG+"&hl="+oB+"&ip="+LV+"&ipbits="+cG+"&expire="+$I+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+LV+"&key="+zU+"&lang="+p4,name:{simpleText:aj},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+m+"&caps="+zU+"&opi="+mq+"&xoaf="+cG+"&hl="+oB+"&ip="+LV+"&ipbits="+cG+"&expire="+$I+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+LV+"&key="+zU+"&kind="+zU+"&lang="+oB,name:{simpleText:aj},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:Rh,title:ZX,lengthSeconds:"1155",keywords:[Rh,h2,aj,NG],
channelId:ag,isOwnerViewing:!1,shortDescription:FF,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+wf+"G&rs="+sX,width:168,height:94},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+wf+"G&rs="+sX,width:196,height:110},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+wf+"G&rs="+f,width:246,height:138},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+wf+"G&rs="+f,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
m+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Qh,author:pc,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Qh,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+Ig+"/featured_channel.jpg?v="+Z1,width:40,height:40}]},trackingParams:c6+"=",navigationEndpoint:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{url:"/channel/"+ag,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ag}},channelName:pc,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Z1}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ag,showPreferences:!1,subscribedButtonText:{runs:[{text:Rh}]},unsubscribedButtonText:{runs:[{text:mQ}]},trackingParams:c6+"=",unsubscribeButtonText:{runs:[{text:FF}]},serviceEndpoints:[{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[ag],params:Z1}},{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:NV,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:c6+"=",dialogMessages:[{runs:[{text:cp},{text:pc},{text:cn}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:FF}]},serviceEndpoint:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ag],params:Z1}},accessibility:{label:ZX},trackingParams:c6+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:pc}]},accessibility:{label:cn},trackingParams:c6+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:ND}},unsubscribeAccessibility:{accessibilityData:{label:Rh}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:ds},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ag],params:Z1}},unsubscribeCommand:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ag],params:Z1}},addToWatchLaterCommand:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Rh,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Rh}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+m+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+wf+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
m+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Rh,width:1280,height:720},title:{simpleText:BL},description:{simpleText:h1},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+ND,externalChannelId:ag,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:Qh,category:"Travel & Events",publishDate:Bm,ownerChannelName:pc,uploadDate:Bm}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:cn},trackingParams:c6+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:NV,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:c6+"="}}],headerText:{simpleText:Z1},icon:{infoCardIconRenderer:{trackingParams:c6+"="}},closeButton:{infoCardIconRenderer:{trackingParams:c6+"="}},trackingParams:c6+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:c6+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Rh+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:ec,interpreterSafeUrl:(Wh.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+vm+".js",Wh),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:cp},{text:h1,bold:!0}]},endpoint:{clickTrackingParams:NV,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:c6+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:aj}]},actionButton:{buttonRenderer:{text:{runs:[{text:BL}]},navigationEndpoint:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+m,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
m,target:"TARGET_NEW_WINDOW"}},trackingParams:c6+"="}},trackingParams:c6+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+sc+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+sc+"=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:Qh,endMs:Qh,title:{accessibility:{accessibilityData:{label:pc}},simpleText:cp},metadata:{simpleText:cU},callToAction:{simpleText:cn},dismiss:{simpleText:Z1},endpoint:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{url:"/channel/"+ag,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ag}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:YP}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ag,showPreferences:!1,
subscribedButtonText:{runs:[{text:cU}]},unsubscribedButtonText:{runs:[{text:pc}]},trackingParams:c6+"=",unsubscribeButtonText:{runs:[{text:h2}]},serviceEndpoints:[{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ag],params:Z1}},{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:NV,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:c6+
"=",dialogMessages:[{runs:[{text:cU},{text:h2},{text:$a}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:h2}]},serviceEndpoint:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ag],params:Z1}},accessibility:{label:h1},trackingParams:c6+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:h1}]},
accessibility:{label:Z1},trackingParams:c6+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:mQ}},unsubscribeAccessibility:{accessibilityData:{label:h1}}}},trackingParams:c6+"=",isSubscribe:!0,id:kl}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+wf+"G&rs="+f,width:168,height:94},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+wf+"G&rs="+sX,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+wf+"G&rs="+f,width:246,height:138},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+wf+"G&rs="+f,width:336,height:188},{url:"https://i.ytimg.com/vi/"+m+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Qh,endMs:Qh,title:{accessibility:{accessibilityData:{label:aj}},simpleText:h1},metadata:{simpleText:mQ},endpoint:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Rh,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Rh,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Uc+".googlevideo.com/videoplayback?source=youtube&oeis="+cG+"&c=WEB&oad="+jd+"&ovd="+jd+"&oaad="+wr+"&oavd="+wr+"&ocs="+Yl+"&oewis="+cG+"&oputc="+cG+"&ofpcc="+cG+"&siu="+cG+"&msp="+cG+"&odepv="+cG+
"&id=o-AF"+je+"&ip="+LV+"&initcwndbps="+Qh+"&mt="+$I+"&oweuc="+lT}}}}},trackingParams:c6+"=",id:kl,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:ND}},simpleText:NG},style:"DEFAULT"}}]}}],startMs:Qh,trackingParams:c6+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:cG,offsetEndMilliseconds:wr},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+mq+";dc_trk_cid="+mq+";dc_dbm_token="+z+";ord="+$I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cG+";dc_rui="+cG+";dc_exteid="+kl+";dc_av="+Yl+";dc_sk="+cG+";dc_ctype="+OZ+";dc_ref=http://www.youtube.com/video/"+Rh+";dc_pubid="+cG+";dc_btype=23?gclid="+WG+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+cG+"&ns="+cG+"&event="+cG+"&device="+cG+"&content_v="+m+"&el="+ND+"&ei="+U+"&devicever="+I+"&bti="+Qh+"&format="+et+"&break_type="+cG+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+cG+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+LV+"&slot_pos="+cG+"&slot_len="+cG+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+WL+"&ad_len="+wr+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Rh+"&aqi="+U+"&ad_rmp="+cG+"&sli="+cG}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+
";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+et+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+Qh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
u+"____________"+x+"AxAA&sigh="+m+"&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"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&ctype="+Yl+"&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"+
u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_engaged_view&ctype="+Yl+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+et+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
mq+";dc_trk_cid="+mq+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cG+";ord="+mq+";dc_rui="+cG+";dc_exteid="+pX+";dc_av="+cG+";dc_sk="+cG+";dc_ctype="+OZ+";dc_pubid="+cG+";dc_btype=3?gclid="+WG+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Z+"&sig="+G2+"&ad_cpn=[AD_CPN]&id="+cp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+cp+"&dc_pubid="+cG+"&dc_exteid="+kl+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Z+"&sig="+G2+"&ad_cpn=[AD_CPN]&id="+cp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+cG},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+cp+"&avm="+cG+"&dc_pubid="+cG+"&dc_exteid="+
kl+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&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="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
Z+"&sig="+G2+"&ad_cpn=[AD_CPN]&id="+cp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+cG},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+cp+"&dc_pubid="+cG+"&dc_exteid="+kl+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+et+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+et+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:NV,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+
Yl+"&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/"+m+"/mqdefault.jpg",width:320,height:180}]},trackingParams:c6+"="},trackingParams:c6+
"=",templatedCountdown:{templatedAdText:{text:mQ,isTemplated:!0,trackingParams:c6+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:h2,isTemplated:!1,trackingParams:c6+"="},trackingParams:c6+"="}},trackingParams:c6+"=",skipOffsetMilliseconds:5E3}},trackingParams:c6+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Z1},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:c6+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:YP,isTemplated:!1,trackingParams:c6+"="},trackingParams:c6+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:YP,isTemplated:!0,trackingParams:c6+"="}},trackingParams:c6+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:NV,openPopupAction:{popup:{aboutThisAdRenderer:{url:(s8.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+oB+"&origin=www.youtube.com&ata_theme="+YP,s8),trackingParams:c6+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:c6+"="}},hoverText:{runs:[{text:Z1}]},trackingParams:c6+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+HM+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:c6+"="},headline:{text:$a,isTemplated:!1,trackingParams:c6+"="},description:{text:$a,
trackingParams:c6+"="},actionButton:{buttonRenderer:{text:{simpleText:$a},navigationEndpoint:{clickTrackingParams:NV,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+mq+";dc_trk_cid="+mq+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cG+";ord="+mq+";dc_rui="+cG+";dc_exteid="+kl+";dc_av="+cG+";dc_sk="+cG+";dc_ctype="+OZ+";dc_pubid="+cG+";dc_btype=3?gclid="+WG+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:c6+"="}},startMs:cG,trackingParams:c6+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ZX},elementId:cU}},elementId:h2,trackingParams:c6+"=",legacyInfoCardVastExtension:ND,sodarExtensionData:{siub:h1,bgub:cn,scs:cn,bgp:$a},externalVideoId:Rh,adLayoutLoggingData:{serializedAdServingDataEntry:cp},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+HM+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:c6+"="},
headline:{text:aj,isTemplated:!1,trackingParams:c6+"="},description:{text:Rh,isTemplated:!1,trackingParams:c6+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:pc},navigationEndpoint:{clickTrackingParams:NV,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+mq+";dc_trk_cid="+mq+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cG+";ord="+mq+";dc_rui="+cG+";dc_exteid="+
kl+";dc_av="+cG+";dc_sk="+cG+";dc_ctype="+OZ+";dc_pubid="+cG+";dc_btype=3?gclid="+WG+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+
cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:c6+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:c6+"="}},navigationEndpoint:{clickTrackingParams:NV,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+mq+";dc_trk_cid="+
mq+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cG+";ord="+mq+";dc_rui="+cG+";dc_exteid="+kl+";dc_av="+cG+";dc_sk="+cG+";dc_ctype="+OZ+";dc_pubid="+cG+";dc_btype=3?gclid="+WG+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+
x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:c6+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:c6+"="},abandonCommands:{commands:[{clickTrackingParams:NV,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&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="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+
cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:NV,commandExecutorCommand:{commands:[{clickTrackingParams:NV,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:h2,isTemplated:!1,trackingParams:c6+
"="},trackingParams:c6+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:h1},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+Qh+";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="+mq+";dc_trk_cid="+mq+";ord="+$I+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cG+";dc_rui="+cG+";dc_exteid="+kl+";dc_av="+Yl+";dc_sk="+cG+";dc_ctype="+OZ+";dc_ref=http://www.youtube.com/video/"+Rh+";dc_pubid="+cG+";dc_btype=23?gclid="+WG+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+cG+"&ns="+cG+"&event="+cG+"&device="+cG+"&content_v="+m+"&el="+ND+"&ei="+U+"&devicever="+I+"&bti="+Qh+"&format="+et+"&break_type="+cG+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+cG+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+LV+"&slot_pos="+cG+"&slot_len="+cG+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
WL+"&ad_len="+wr+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Rh+"&aqi="+U+"&ad_rmp="+cG+"&sli="+cG}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+et+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+
q+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+Qh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&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"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&ctype="+Yl+"&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"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_engaged_view&ctype="+Yl+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+et+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Z+"&sig="+G2+"&ad_cpn=[AD_CPN]&id="+
cp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+cp+"&dc_pubid="+cG+"&dc_exteid="+kl+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Z+
"&sig="+G2+"&ad_cpn=[AD_CPN]&id="+cp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+cG},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+cp+"&avm="+cG+"&dc_pubid="+cG+"&dc_exteid="+kl+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&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="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+Z+"&sig="+G2+"&ad_cpn=[AD_CPN]&id="+cp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+cG},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+cp+"&dc_pubid="+cG+"&dc_exteid="+kl+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+et+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+et+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+
Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&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/"+m+"/mqdefault.jpg",width:320,height:180}]},trackingParams:c6+"="},trackingParams:c6+"=",templatedCountdown:{templatedAdText:{text:cn,isTemplated:!0,trackingParams:c6+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:ZX,isTemplated:!1,trackingParams:c6+"="},trackingParams:c6+"="}},
trackingParams:c6+"=",skipOffsetMilliseconds:5E3}},trackingParams:c6+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:FF},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:c6+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:mQ,isTemplated:!1,trackingParams:c6+"="},trackingParams:c6+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:ZX,
isTemplated:!0,trackingParams:c6+"="}},trackingParams:c6+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:NV,openPopupAction:{popup:{aboutThisAdRenderer:{url:(U1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+oB+"&origin=www.youtube.com&ata_theme="+YP,U1),trackingParams:c6+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:c6+"="}},hoverText:{runs:[{text:cp}]},trackingParams:c6+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Gf+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:c6+"="},headline:{text:BL,isTemplated:!1,trackingParams:c6+"="},description:{text:NG,trackingParams:c6+"="},actionButton:{buttonRenderer:{text:{simpleText:NG},navigationEndpoint:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:c6+"="}},startMs:cG,trackingParams:c6+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Rh},elementId:ND}},elementId:h1,trackingParams:c6+"=",legacyInfoCardVastExtension:cn,sodarExtensionData:{siub:h1,bgub:ZX,scs:Z1,bgp:cn},externalVideoId:Rh,adLayoutLoggingData:{serializedAdServingDataEntry:Rh},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Gf+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:c6+"="},headline:{text:NG,
isTemplated:!1,trackingParams:c6+"="},description:{text:pc,isTemplated:!1,trackingParams:c6+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:cU},navigationEndpoint:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:c6+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:c6+"="}},navigationEndpoint:{clickTrackingParams:NV,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+
cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:c6+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:c6+"="},abandonCommands:{commands:[{clickTrackingParams:NV,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&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="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+OZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:NV,commandExecutorCommand:{commands:[{clickTrackingParams:NV,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Z1,isTemplated:!1,trackingParams:c6+"="},trackingParams:c6+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Rh},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cG+";dc_exteid="+kl+";met="+cG+";ecn"+cG+"="+cG+";etm1="+cG+";eid1="+
Qh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:cp}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:aj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wr,offsetEndMilliseconds:et},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+U+"&m_pos="+OZ+"&token=ALHj"+ed+"&index="+cG+"&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="+I+"&m_pos_ms="+wr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:YP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:et,offsetEndMilliseconds:et},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+U+"&m_pos="+Yl+"&token=ALHj"+ed+"&index="+cG+"&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="+
I+"&m_pos_ms="+et}},adSlotLoggingData:{serializedSlotAdServingDataEntry:cp}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:et,offsetEndMilliseconds:et},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+U+"&m_pos="+Yl+"&token=ALHj"+ed+"&index="+cG+"&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="+
I+"&m_pos_ms="+et}},adSlotLoggingData:{serializedSlotAdServingDataEntry:cn}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:et,offsetEndMilliseconds:et},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+U+"&m_pos="+Yl+"&token=ALHj"+ed+"&index="+cG+"&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="+
I+"&m_pos_ms="+et}},adSlotLoggingData:{serializedSlotAdServingDataEntry:cn}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:et,offsetEndMilliseconds:OZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+U+"&m_pos="+Yl+"&token=ALHj"+ed+"&index="+cG+"&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="+
I+"&m_pos_ms="+et}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Z1}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:OZ,offsetEndMilliseconds:OZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+U+"&m_pos="+OZ+"&token=ALHj"+ed+"&index="+cG+"&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="+
I+"&m_pos_ms="+OZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$a}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:aj,isTemplated:!1,trackingParams:c6+"="},description:{text:FF,isTemplated:!1,trackingParams:c6+"="},actionButton:{buttonRenderer:{text:{simpleText:h2},navigationEndpoint:{clickTrackingParams:NV,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
mq+";dc_trk_cid="+mq+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cG+";ord="+mq+";dc_rui="+cG+";dc_exteid="+kl+";dc_av="+cG+";dc_sk="+cG+";dc_ctype="+OZ+";dc_pubid="+cG+";dc_btype=3?gclid="+WG+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:c6+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+HM+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:c6+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+xi+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:c6+"="},navigationEndpoint:{clickTrackingParams:NV,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+mq+";dc_trk_cid="+mq+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cG+";ord="+mq+
";dc_rui="+cG+";dc_exteid="+kl+";dc_av="+cG+";dc_sk="+cG+";dc_ctype="+OZ+";dc_pubid="+cG+";dc_btype=3?gclid="+WG+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:c6+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:NV,openPopupAction:{popup:{aboutThisAdRenderer:{url:(rHD.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+oB+"&origin=www.youtube.com&ata_theme="+YP,rHD),trackingParams:c6+"="}},popupType:"DIALOG"}},trackingParams:c6+"="}},hoverText:{runs:[{text:Rh}]},trackingParams:c6+"="}},adVideoId:Rh,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:h1},associatedCompositePlayerBytesLayoutId:h1}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:h2}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:FF,isTemplated:!1,trackingParams:c6+"="},description:{text:Z1,isTemplated:!1,trackingParams:c6+"="},actionButton:{buttonRenderer:{text:{simpleText:YP},navigationEndpoint:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+
x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:c6+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Gf+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:c6+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ws+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:c6+"="},navigationEndpoint:{clickTrackingParams:NV,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+
cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:c6+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:NV,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Qe.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+oB+"&origin=www.youtube.com&ata_theme="+YP,Qe),trackingParams:c6+"="}},popupType:"DIALOG"}},trackingParams:c6+"="}},
hoverText:{runs:[{text:BL}]},trackingParams:c6+"="}},adVideoId:Rh,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+Rh+"&cid="+q+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:cU},associatedCompositePlayerBytesLayoutId:h1}},adSlotLoggingData:{serializedSlotAdServingDataEntry:cn}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:BL,
isTemplated:!1,trackingParams:c6+"="},description:{text:FF,isTemplated:!1,trackingParams:c6+"="},actionButton:{buttonRenderer:{text:{simpleText:Z1},navigationEndpoint:{clickTrackingParams:NV,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+mq+";dc_trk_cid="+mq+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cG+";ord="+mq+";dc_rui="+cG+";dc_exteid="+kl+";dc_av="+cG+";dc_sk="+cG+";dc_ctype="+
OZ+";dc_pubid="+cG+";dc_btype=3?gclid="+WG+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+
f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:c6+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+HM+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:c6+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+xi+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:c6+
"="},navigationEndpoint:{clickTrackingParams:NV,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+mq+";dc_trk_cid="+mq+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cG+";ord="+mq+";dc_rui="+cG+";dc_exteid="+kl+";dc_av="+cG+";dc_sk="+cG+";dc_ctype="+OZ+";dc_pubid="+cG+";dc_btype=3?gclid="+WG+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+x+"AxAA&ase=2&num="+cG+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+$y+"&label=video_click_to_advertiser_site&ctype="+Yl+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:c6+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:NV,openPopupAction:{popup:{aboutThisAdRenderer:{url:(jL.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+oB+"&origin=www.youtube.com&ata_theme="+YP,jL),trackingParams:c6+"="}},popupType:"DIALOG"}},trackingParams:c6+
"="}},hoverText:{runs:[{text:Z1}]},trackingParams:c6+"="}},adVideoId:Rh,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+x+"AxAA&sigh="+m+"&cid="+q+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:h2},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:h1}},adSlotLoggingData:{serializedSlotAdServingDataEntry:cn}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:vm,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:vm,command:{innertubeCommand:{clickTrackingParams:NV,ypcGetOfflineUpsellEndpoint:{params:nX}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:c6+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:$I,nanos:z2}}}},aRQ=JSON.stringify(U2),kX=performance.now()-E;return{objectRepresentation:U2,jsonRepresentation:aRQ,generationTime:kX}};
yhD=function(E,B){if(E===B)return!0;if(!E||!B||typeof E!==typeof B)return!1;if(E instanceof Array&&B instanceof Array){if(E.length!==B.length)return!1;for(var I=0;I<E.length;I++)if(!yhD(E[I],B[I]))return!1;return!0}if(typeof E==="object"&&typeof B==="object"&&E&&B){for(I in E)if(!(I in B&&yhD(E[I],B[I])))return!1;for(var T in B)if(!(T in E))return!1;return!0}return!1};
_.B8=function(){if(!Eq){Eq=new $9(new C9c);var E=_.RI("client_streamz_web_flush_count",-1);E!==-1&&(Eq.invocationLimit=E)}return Eq};
$G=function(E,B,I,T){if(E===B)return!0;if(Array.isArray(E)&&Array.isArray(B)){if(E.length!==B.length)return!1;for(var e=0;e<E.length;e++)if(!$G(E[e],B[e],I,T))return!1;return!0}if(E instanceof Set||B instanceof Set){if(E instanceof Set&&B instanceof Set){if(E.size!==B.size)return!1;T=_.p(E.values());for(e=T.next();!e.done;e=T.next())if(!B.has(e.value))return!1;return!0}return!1}if(E instanceof Function){if(T)return!0;E.name===""&&_.xV(Error("Gf"),"ERROR");return!1}if(E instanceof Date&&B instanceof
Date)return E.getTime()===B.getTime();if(E instanceof Object&&B instanceof Object){if(wcB(E)&&wcB(B))try{return E.equals(B)}catch(Y){_.xV(Error("Hf`"+Y),"ERROR")}e=Object.getOwnPropertyNames(E).filter(function(Y){return I?E[Y]!==void 0:!0});
var c=Object.getOwnPropertyNames(B).filter(function(Y){return I?B[Y]!==void 0:!0});
if(e.length!==c.length)return!1;e=_.p(e);for(c=e.next();!c.done;c=e.next())if(c=c.value,!$G(E[c],B[c],I,T))return!1;return!0}return!1};
wcB=function(E){E=Object.getPrototypeOf(E).equals;return E instanceof Function&&E.length===1};
z8i=function(){return _.a(function(E){if(E.nextAddress==1)return ZM6!==2?E.jumpTo(2):_.C(E,P9d(),3);E.nextAddress!=2&&(ZM6=E.yieldResult);return E.return(ZM6)})};
dlG=function(){return _.a(function(E){if(E.nextAddress==1)return _.d("ab_pl_man")?mlG!==2?E.jumpTo(2):_.C(E,Qyd(),3):E.return(1);E.nextAddress!=2&&(mlG=E.yieldResult);return E.return(mlG)})};
ueB=function(){return _.a(function(E){if(E.nextAddress==1)return _.d("ab_fk_sk_cl")?h8t!==2?E.jumpTo(2):_.C(E,syJ(),3):E.return(1);E.nextAddress!=2&&(h8t=E.yieldResult);return E.return(h8t)})};
G06=function(){return _.a(function(E){if(E.nextAddress==1)return _.d("ab_det_apb_b")?LEJ!==2?E.jumpTo(2):_.C(E,xlt(),3):E.return(1);E.nextAddress!=2&&(LEJ=E.yieldResult);return E.return(LEJ)})};
M74=function(){var E;return _.a(function(B){if(B.nextAddress==1)return _.C(B,Promise.all([z8i(),G06(),dlG(),ueB()]),2);if(B.nextAddress!=3)return OM6()?B.return(!0):_.C(B,nCc(),3);E=B.yieldResult;return B.return(E===0)})};
OM6=function(){var E=!1,B=function(I,T){HM4.increment(T,I);I===0&&(E=!0)};
B(N5B(),"j.s_");B(ZM6,"f.i_");B(LEJ,"a.b_");B(mlG,"p.m_");B(h8t,"i.f_");gCD===2&&(gCD=SyJ(aGi(JhJ)));B(gCD,"e.h_");_.d("ks_det_gpbl")||B(WEG(),"p.i_");_.d("ks_get_o_pp")||B(Xct(),"g.o_");_.d("ab_deg_unex_thr")||B(rht(),"a.o_");B(bMJ,"s.t_");_.d("ab_det_sc_inj_enf")&&B(oCi(),"s.i_");B(Ah6,"d.p_");_.d("ab_det_pp_ov")&&B(jyf(UlB),"o.p_");B(k06()===0?0:t7Q(),"o.a_");return _.d("debug_sk_em_precheck")?!0:E};
V7Q=function(){var E=[].concat(_.ad(fGQ));try{var B=RY();E.push({jsonRepresentation:B.jsonRepresentation,objectRepresentation:B.objectRepresentation})}catch(I){E=[].concat(_.ad(fGQ))}return E};
qy6=function(){var E=["adPlacements","adSlots"];try{return E.filter(function(){return!0}).length!==E.length?0:1}catch(B){return 0}};
Xct=function(){if(qy6()===0)return 0;var E=RY(),B=E.objectRepresentation,I=(0,_.a_.unsafeClone)(B),T=[];if(B&&typeof B==="object")for(var e in B)T.push(e);else return 4;E=E.objectRepresentation.adPlacements;if(!(E&&E.length>0))return 4;try{if(!yhD(T,Object.getOwnPropertyNames(B)))return 0}catch(c){return 0}return yhD(I,B)?1:0};
jyf=function(E){var B=Object.getOwnPropertyNames(Object.prototype);E=_.p(E);for(var I=E.next();!I.done;I=E.next()){I=iMc(I.value);for(var T=_.p(B),e=T.next();!e.done;e=T.next())if(I===e.value)return 0}return 1};
FEG=function(E){var B=YyG(E[1]);if(E[0]===null)return B;E=E[0];for(var I={},T=0;T<E.length;T++){var e=YyG(E[T]);if(T===0)I[e]=B;else{var c={};c[e]=I;I=c}}return I};
k06=function(){for(var E=_.IN,B=0;B<E.length;B++){var I=FEG(E[B]),T=[];T.push(I);if(T.length===0)return 0}return 1};
t7Q=function(){for(var E=_.IN,B={},I=0;I<E.length;B={gfQ:void 0},I++){var T=[FEG(E[I])];B.gfQ=[];T.forEach(function(e){return function(c){e.gfQ[e.gfQ.length]=c}}(B));
if(B.gfQ.length===0)return 0}return 1};
N5B=function(){for(var E=_.p(V7Q()),B=E.next();!B.done;B=E.next()){var I=B.value;B=I.jsonRepresentation;I=I.objectRepresentation;try{var T=JSON.parse(B);if(!$G(T,I,!1,!1))return 0}catch(e){return 0}}return 1};
oCi=function(){try{var E=_.B7("ab_det_sc_inj_val");E.length===1&&E[0]===""&&(E=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var B=document.querySelectorAll("script"),I=_.p(B),T=I.next();!T.done;T=I.next())for(var e=T.value,c=_.p(E),Y=c.next();!Y.done;Y=c.next()){var v=Y.value;B=void 0;if((B=e.textContent)==null?0:B.includes(v))return 0}}catch(y){return 4}return 1};
nCc=function(){var E,B,I,T,e,c,Y;return _.a(function(v){switch(v.nextAddress){case 1:_.q7(v,2),E=_.p(fGQ),B=E.next();case 4:if(B.done)return v.return(1);T=I=B.value;e=T.jsonRepresentation;c=T.objectRepresentation;return _.C(v,(new Response(e,{status:200})).json(),7);case 7:Y=v.yieldResult;if(!$G(Y,c,!1,!1))return v.return(0);B=E.next();v.jumpTo(4);break;case 2:return _.RG(v),v.return(4)}})};
rht=function(){try{btoa("abc")}catch(E){return 0}return 1};
P9d=function(){var E,B,I,T,e,c,Y,v,y,Z,P;return _.a(function(z){switch(z.nextAddress){case 1:_.q7(z,2),E=_.p(V7Q()),B=E.next();case 4:if(B.done)return z.return(1);T=I=B.value;e=T.jsonRepresentation;c=T.objectRepresentation;Y=btoa(e);v="data:application/json;base64,"+Y;y=new Request(v);Object.defineProperty(y,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(y,"method",{get:function(){return"POST"}});
Object.defineProperty(y,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(y,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(y,"body",{get:function(){return new ReadableStream}});
return _.C(z,fetch(y),7);case 7:return Z=z.yieldResult,_.C(z,Z.json(),8);case 8:P=z.yieldResult;if(!$G(P,c,!1,!1))return z.return(0);B=E.next();z.jumpTo(4);break;case 2:return _.RG(z),z.return(4)}})};
SyJ=function(E){var B=_.p(E);E=B.next().value;B=B.next().value;try{var I=document.createElement("div");document.body.appendChild(I);var T=getComputedStyle(I).display;document.body.removeChild(I);if(T==="none")return 4;var e=getComputedStyle(B).display==="none"?0:1;document.body.removeChild(E);return e}catch(c){return 4}};
syJ=function(){var E,B,I;return _.a(function(T){E=new _.Tv;B=document.createElement("button");B.classList.add("ytp-ad-skip-button");B.style.opacity="0";B.style.height="0px";B.style.width="0px";B.style.padding="0px";B.style.border="none";I=function(){B.parentElement&&B.parentElement.removeChild(B)};
B.onclick=function(){E.resolve(0);I()};
document.body.appendChild(B);setTimeout(function(){I();E.resolve(1)},50);
return T.return(E.promise)})};
Qyd=function(){var E,B,I,T,e,c,Y;return _.a(function(v){E=new _.Tv;B=document.createElement("ytd-player");try{document.body.prepend(B)}catch(y){return v.return(4)}I=function(){B.parentElement&&B.parentElement.removeChild(B)};
B.getElementsByTagName("div").length>0?T=B.getElementsByTagName("div")[0]:(T=document.createElement("div"),B.appendChild(T));e=document.createElement("div");T.appendChild(e);c=document.createElement("video");Y=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"});c.src=_.e6(_.YM(Y));c.ontimeupdate=function(){I();E.resolve(0)};
e.appendChild(c);c.classList.add("html5-main-video");setTimeout(function(){e.classList.add("ad-interrupting")},200);
setTimeout(function(){I();E.resolve(1)},5E3);
return v.return(E.promise)})};
Dld=function(E,B){var I,T;return _.a(function(e){switch(e.nextAddress){case 1:I=[],T=0;case 2:if(!(T<3)){e.jumpTo(4);break}return _.C(e,fetch(E,{cache:"no-store",method:B}).then(function(c){I.push(c.status)}).catch(function(){I.push(-1)}),3);
case 3:T++;e.jumpTo(2);break;case 4:return e.return(I)}})};
KEF=function(E){return E.domainLookupStart===0&&E.domainLookupEnd===0&&E.connectStart===0&&E.connectEnd===0};
R8B=function(E,B,I){I=I===void 0?"GET":I;var T,e,c,Y,v,y,Z,P,z,m;return _.a(function(u){if(u.nextAddress==1)return _.C(u,Promise.all([Dld(E,I),Dld(B,I)]),2);T=u.yieldResult;e=_.p(T);c=e.next().value;Y=e.next().value;v=c;y=Y;if(Math.min.apply(Math,_.ad(y))!==Math.max.apply(Math,_.ad(y))||Math.min.apply(Math,_.ad(v))!==Math.max.apply(Math,_.ad(v)))return u.return(2);if(Math.min.apply(Math,_.ad(y))===Math.min.apply(Math,_.ad(v)))return u.return(1);P=(Z=performance.getEntriesByName(E))==null?void 0:Z[0];
m=(z=performance.getEntriesByName(B))==null?void 0:z[0];return P&&m?KEF(m)?u.return(1):KEF(P)?u.return(0):u.return(1):u.return(2)})};
xlt=function(){var E;return _.a(function(B){var I=[];var T;var e,c,Y;(e=T=(e=RY().objectRepresentation.streamingData)==null?void 0:(c=e.formats)==null?void 0:(Y=c[0])==null?void 0:Y.url)&&e&&!T.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(e=e.replace("initcwndbps","ctier=L&initcwndbps"),T={testUrl:e,baseUrl:T,method:"GET"}):T=void 0;T&&I.push(T);_.d("ab_net_tp_e")&&I.push({testUrl:_.$i.location.origin+"/ad_companion",baseUrl:_.$i.location.origin+"/generate_204",method:"OPTIONS"});if(_.d("ad_net_pb_ab")){var v;
b:{T=/api\/stats\/ads/;var y,Z,P,z;e=(v=RY().objectRepresentation.adPlacements)==null?void 0:(y=v[0])==null?void 0:(Z=y.adPlacementRenderer)==null?void 0:(P=Z.renderer)==null?void 0:(z=P.linearAdSequenceRenderer)==null?void 0:z.linearAds;if(e!=null&&e.length&&(v=_.h(e[0],ExD))&&(v=v.pings,v!=null&&v.impressionPings))for(y=[].concat(_.ad(v.impressionPings)),v.progressPings&&(y=[].concat(_.ad(y),_.ad(v.progressPings))),v=_.p(y),y=v.next();!y.done;y=v.next())if(y=y.value,y.baseUrl&&T.test(y.baseUrl)){v=
y.baseUrl.replace("https://www.youtube.com","");break b}v=void 0}v&&I.push({testUrl:_.$i.location.origin+v,baseUrl:_.$i.location.origin+"/feed/download",method:"GET"})}if(_.d("ad_net_pb_pbp")){var m;b:{v=/api\/stats\/qoe/;if(y=RY().objectRepresentation.playbackTracking){Z=[];Z.push(y==null?void 0:(m=y.videostatsPlaybackUrl)==null?void 0:m.baseUrl);var u;Z.push(y==null?void 0:(u=y.videostatsDelayplayUrl)==null?void 0:u.baseUrl);var x;Z.push(y==null?void 0:(x=y.videostatsWatchtimeUrl)==null?void 0:
x.baseUrl);var M;Z.push(y==null?void 0:(M=y.ptrackingUrl)==null?void 0:M.baseUrl);var N;Z.push(y==null?void 0:(N=y.qoeUrl)==null?void 0:N.baseUrl);var W;Z.push(y==null?void 0:(W=y.atrUrl)==null?void 0:W.baseUrl);m=_.p(Z);for(u=m.next();!u.done;u=m.next())if((u=u.value)&&v.test(u)){m=u.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}m=void 0}m&&I.push({testUrl:_.$i.location.origin+m,baseUrl:_.$i.location.origin+"/feed/download",method:"GET"})}I=I.length!==0?I[Math.floor(Math.random()*
I.length)]:void 0;return(E=I)?B.return(R8B(E.testUrl,E.baseUrl,E.method)):B.return(4)})};
WEG=function(){if(_.$i.uYx===void 0||_.$i.uYx===null||typeof _.$i.uYx!=="function")return 2;try{return _.$i.uYx()===!0?0:1}catch(E){return 0}};
BSi=function(E){switch(E){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.E9(E,"unknown result type")}};
_.$kf=function(E,B){var I=Number(_.HA("CATSTAT",0));if(B.onD===void 0)return I;B=B.onD;E=BSi(E);return I&~(3<<B)|E<<B};
Il6=function(E){var B,I;if((E=(B=E.auxiliaryUi)==null?void 0:(I=B.messageRenderers)==null?void 0:I.bkaEnforcementMessageViewModel)&&E.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return E};
ead=function(){for(var E=_.p(Object.values(_.TSc)),B=E.next();!B.done;B=E.next())B=B.value,B.isAsync&&B.onD&&_.MD("CATSTAT",_.$kf(2,B))};
_.ij=function(E,B){E=_.eP("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",E);(B===void 0?0:B)?_.llJ(E,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.lj(_.c8(),E,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
ijB=function(){if(!c4d){if(Polymer.Base){var E=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{E.apply(this,arguments)}catch(z){_.SI(z)}};
var B=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{B.apply(this,arguments)}catch(z){_.SI(z)}};
var I=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{I.apply(this,arguments)}catch(z){_.SI(z)}};
var T=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{T.apply(this,arguments)}catch(z){_.SI(z)}};
var e=Polymer.Base._listen,c=new WeakMap;Polymer.Base._listen=function(z,m,u){var x=function(){try{u.apply(this,arguments)}catch(M){_.SI(M)}};
c.set(u,x);e.call(this,z,m,x)};
var Y=Polymer.Base._unlisten;Polymer.Base._unlisten=function(z,m,u){Y.call(this,z,m,c.get(u))}}if(Polymer.Async){var v=Polymer.Async,y=v._atEndOfMicrotask;
v._atEndOfMicrotask=function(){try{y.apply(v,arguments)}catch(z){_.SI(z)}}}if(Polymer.RenderStatus){var Z=Polymer.RenderStatus,P=Z.afterNextRender;
Z.afterNextRender=function(z,m,u){P.call(Z,z,function(){try{m.apply(this,arguments)}catch(x){_.SI(x)}},u)}}c4d=!0}};
_.Y6i=function(E){var B=E?_.c7(E):"";if(B){if(B.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(B.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(B.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(B.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(B.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(B.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";B=B.toLowerCase();if(B==="/")return"home";if(B===
"/channel_memberships")return"channel-memberships-shopfront";if(B.indexOf("/feed/trending")===0)return"trending";if(B.indexOf("/feed/explore")===0)return"explore";if(B.indexOf("/live")===0)return"live";if(B.indexOf("/results")===0)return"search";if(B.indexOf("/sports")===0)return"sports";if(B.indexOf("/fashion")===0||B.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(B))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(B))return"learning";
if(B.indexOf("/channel/")===0||B.indexOf("/user/")===0||B.indexOf("/gaming")===0||B.indexOf("/post/")===0)return"channel";if(pFD(E))return"show";if(B==="/playlist"||B.indexOf("/playlist/")===0||B==="/view_play_list"||B.indexOf("/view_play_list/")===0||B.indexOf("/show/")===0)return"playlist";if(B==="/feed/history"||B.indexOf("/feed/history/")===0)return"history";if(B==="/new")return"labs";if(B==="/feed/subscriptions")return"subscriptions";if(B.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(B==="/history_controls")return"standalone";if(B.indexOf("/account")===0||B==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(B.indexOf("/paid_memberships")===0||B.indexOf("/refund")===0||B.indexOf("/purchases")===0||B.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(B.indexOf("/product")===0)return"yts-products";if(B.indexOf("/premium")===0||B.indexOf("/musicpremium")===0)return B.indexOf("/premium/offers")===0||B.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(B===
"/cart/checkout"||B==="/cart")return"ypc-checkout";if(B.indexOf("/feed/downloads")===0||B.indexOf("/redeem")===0||B.indexOf("/reporthistory")===0)return"browse";if(B.indexOf("/hashtag")===0)return"hashtag-landing-page";if(B.indexOf("/handle")===0)return"handle";if(B.indexOf("/source")===0)return"audio-pivot";if(B.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(B.indexOf("/playables")===0)return"playables";if(B.indexOf("/create/live/join")===0)return"open-in-app";if(B.indexOf("/shorts")===
0)return"shorts";if(B.indexOf("/feed/channels")===0)return"subscriptions-channels";(B=E?_.c7(E):"")&&B.indexOf("/watch")===0&&_.d("web_watch_enable_learning_journey")?(E=_.AA(E),E=!!E.list&&E.list.indexOf("LJPP")===0):E=!1;if(E)return"learning-journey-watch"}};
pFD=function(E){var B=E?_.c7(E):"";if(!B)return!1;B=B.toLowerCase();return B.indexOf("/show/")===0||B.indexOf("/playlist")===0&&(E=_.AA(E),E.list&&E.list.indexOf("EL")===0)?!0:!1};
aN=function(E){var B="unknown",I;var T=((I=_.h(E==null?void 0:E.commandMetadata,_.D$))==null?void 0:I.webPageType)||"";T?(I=T.toLowerCase(),I.startsWith("web_page_type_")&&(I=I.slice(14))):I=T;I&&alc[I.toUpperCase()]?B=alc[I.toUpperCase()]:_.h(E,_.pq)||_.h(E,vxc)?B="browse":_.h(E,_.YG)?B="search":_.h(E,_.kh)&&(B="watch");B==="unknown"&&_.OG(Error("Jf`"+JSON.stringify({clickTrackingParams:E==null?void 0:E.clickTrackingParams,commandMetadata:E==null?void 0:E.commandMetadata,allEndpointKeys:Object.keys(E||
[])})));return B};
_.v8=function(E){if(!_.y4i||E)_.y4i=_.Rd();return _.y4i};
_.CFG=function(E){return!!_.h(E,_.kh)||!!_.h(E,_.yQ)&&_.d("kevlar_enable_shorts_prefetch")};
_.wFG=function(E,B){E=_.h(E,_.kh)||_.h(E,_.yQ);return"v"+E.videoId+(E.playlistId?"-pl"+E.playlistId:"")+(B?"-an1":"")+(E.params?"-pr"+E.params:"")};
PFF=function(E){var B=_.RI("web_pbj_log_warning_rate",0);B=B>0&&Math.random()<B;if(!_.h(E,_.yQ))return B&&_.OG(Error("Mf")),!1;var I;return _.d("shorts_controller_retrieve_seedless_sequence_v2")&&((I=_.h(E,_.yQ))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:ZjF(E)?!0:(B&&_.OG(Error("Nf")),!1)};
ZjF=function(E){var B=(_.h(E,_.kh)||_.h(E,_.yQ)).videoId;if(!B||!zaD.test(B))return!1;var I;return(E=(I=_.h(E.commandMetadata,_.D$))==null?void 0:I.url)&&(E.includes(B)||E.startsWith("/clip"))?!0:!1};
_.QvD=function(){var E=_.ZB();return E.getFlag(192)?E.getFlag(190):!(_.d("web_watch_cinematics_disabled_by_default")||_.d("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&mkF())};
_.Cq=function(E,B,I){var T={};T.currentUrl=B;T.vis=E.vis!==void 0?E.vis:0;T.splay=!1;B=_.ZB();T.autoCaptionsDefaultOn=B.getFlag(66);B.getFlag(141)?B.getFlag(140)?T.autonavState="STATE_OFF":T.autonavState="STATE_ON":T.autonavState="STATE_NONE";T.html5Preference="HTML5_PREF_WANTS";isNaN(_.HA("STS"))||(T.signatureTimestamp=_.HA("STS"));E.autonav&&(T.autoplay=!0,T.autonav=!0);E.mutedAutoplay&&(T.autoplay=!0,T.mutedAutoplay=!0);E.inlinePlayback&&(T.autoplay=!0,T.autonav=!1,T.isInlineUnmutedPlayback=!!E.inlineUnmuted);
T.referer=I;T.lactMilliseconds=E.lact!==void 0?E.lact.toString():"-1";_.d("enable_unknown_lact_fix_on_html5")&&T.lactMilliseconds==="-1"&&_.OG(new _.P7("Unknown LACT is set in playbackContext.",{"lact in tempData":E.lact||"undefined",autonav:E.autonav||"undefined"}));E={};B.getFlag(194)&&(E.hasShownAmbientMode=!0);B.getFlag(192)&&(E.hasToggledOffAmbientMode=!0);_.QvD()&&(E.watchAmbientModeEnabled=!0);T.watchAmbientModeContext=E;return T};
dk4=function(E){var B={},I=E.pbis||0;I&&(B.playbackBeginsInSeconds=I);E.prefetch_reason&&E.prefetch_reason==="hc_pbis"&&(B.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return B};
_.hac=function(E){var B=new wE(_.HA("ONE_PICK_URL",""));B.urlParamMap_.set("hostId",E);(E=_.HA("GAPI_LOCALE"))&&B.urlParamMap_.set("hl",E);(E=_.HA("SESSION_INDEX"))&&B.urlParamMap_.set("authuser",E);(E=_.HA("DELEGATED_SESSION_ID"))&&B.urlParamMap_.set("groupId",E);return B};
u_4=function(){var E=_.Q(),B=E.resolve(_.Zk);E=E.resolve(_.P8);return new svi(B,E)};
xk4=function(E){if(window.IntersectionObserver)return new LNB(E,400);throw new TypeError("Wf");};
OjD=function(){var E=Hammer.TouchAction,B=E.prototype.preventDefaults;E.prototype.preventDefaults=function(I){var T=this.actions.indexOf("pan-down")>-1;if(!T)return B.call(this,I);if(!Gm6){var e=I.srcEvent;I=I.direction;var c;if((c=this.manager)==null?0:c.session.prevented)e.preventDefault();else if(T&&I&Hammer.DIRECTION_DOWN)return this.preventSrc(e)}}};
nxG=function(E){if(!E||E.size===0)return Hammer.DIRECTION_ALL;if(E.size===2){if(E.has("up")&&E.has("down"))return Hammer.DIRECTION_VERTICAL;if(E.has("right")&&E.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(E.size===1){if(E.has("up"))return Hammer.DIRECTION_UP;if(E.has("down"))return Hammer.DIRECTION_DOWN;if(E.has("right"))return Hammer.DIRECTION_RIGHT;if(E.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.HjD=function(){return M1f?Promise.resolve(M1f):new Promise(function(E,B){var I=self.indexedDB.open("swpushnotificationsdb");I.onerror=B;I.onsuccess=function(){var T=I.result;if(T.objectStoreNames.contains("swpushnotificationsstore"))M1f=T,E(M1f);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.HjD()};
I.onupgradeneeded=NSt})};
NSt=function(E){E=E.target.result;E.objectStoreNames.contains("swpushnotificationsstore")&&E.deleteObjectStore("swpushnotificationsstore");E.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
S6d=function(E){var B=gx4(),I;return _.a(function(T){switch(T.nextAddress){case 1:return _.q7(T,2),_.C(T,E.match(B,{cacheName:"yt-appshell-assets"}),4);case 4:I=T.yieldResult;_.W7(T,3);break;case 2:_.RG(T);case 3:return T.return(I)}})};
gx4=function(){var E=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?J4J.registration.scope:WNd;E.endsWith("/")&&(E=E.slice(0,-1));return E+"/app_shell_home"};
XF4=function(E){E.map(function(B){return B.source}).join("|")};
_.r4i=function(E){return _.a(function(B){return B.return(S6d(E))})};
bjJ=function(){var E=window.caches,B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,_.r4i(E),2);B=I.yieldResult;return I.return(!!B)})};
fl6=function(){_.a(function(E){if(E.nextAddress==1){if(oxF)return E.jumpTo(0);oxF=!0;if(_.d("enable_system_health_primes_monitoring"))return _.eg(A4c,3E4),jvt(),E.return();if(!(Math.random()<_.RI("web_system_health_fraction")))return E.jumpTo(0);UkJ={heightPixels:screen.height,widthPixels:screen.width};zv&&!isNaN(zv.jsHeapSizeLimit)&&(UkJ.memoryTotalKbytes=String(Math.round(zv.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(UkJ.devicePixelRatio=window.devicePixelRatio);return _.C(E,km6(),4)}_.eg(A4c,
3E4);return _.C(E,t1d(),0)})};
km6=function(){return _.a(function(E){if(E.nextAddress==1)return mh.intersectionObserverPresent="IntersectionObserver"in window,mh.serviceWorkerPresent="serviceWorker"in navigator,mh.webSharePresent="share"in navigator,mh.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,mh.cacheStoragePresent="caches"in window,mh.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,mh.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
mh.webkitTemporaryStoragePresent="webkitTemporaryStorage"in QQ&&QQ.webkitTemporaryStorage&&"queryUsageAndQuota"in QQ.webkitTemporaryStorage,mh.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.C(E,XUQ(),2);mh.indexedDbPresent=E.yieldResult;mh.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;mh.broadcastChannelPresent="BroadcastChannel"in window;mh.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(mh.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,mh.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.ER(E)})};
A4c=function(){var E=9E4+Math.random()*2E3;_.DD()>E||(_.d("enable_system_health_primes_monitoring")?jvt():t1d())};
t1d=function(){var E;return _.a(function(B){if(B.nextAddress==1)return _.C(B,V1d(),2);E=B.yieldResult;_.hK("systemHealthCaptured",E);_.ER(B)})};
jvt=function(){var E={metric:{}},B=q6c();B.networkEvents.length&&(E.metric.networkEvents=FNc(B));_.hK("systemHealthCaptured",E)};
V1d=function(){var E,B,I,T,e,c,Y,v,y,Z;return _.a(function(P){switch(P.nextAddress){case 1:E={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)};B=window.screen;_.d("enable_is_extended_monitoring")&&B&&"isExtended"in B&&(E.isExtended=!!B.isExtended);I={metric:{staticContext:UkJ,dynamicContext:E,webMetric:DkG,webApiSupport:mh}};
if(T=_.nC())I.csn=T;zv&&(I.metric.webMetric.currentHeapKbytes=Math.round(zv.usedJSHeapSize/1E3));window.matchMedia&&(I.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,I.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,I.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in QQ&&typeof QQ.getBattery==="function")){P.jumpTo(2);break}return _.C(P,QQ.getBattery(),3);case 3:if(e=
P.yieldResult)I.metric.dynamicContext.chargingStatus=e.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(I.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(mh.storageEstimatePresent)return _.C(P,navigator.storage.estimate(),8);if(!mh.webkitTemporaryStoragePresent){P.jumpTo(5);break}return _.C(P,KN4(),7);case 7:c=P.yieldResult;P.jumpTo(5);break;case 8:c=P.yieldResult;case 5:return I.metric.dynamicContext.deviceStorageQuotaMbytes=((Y=c)==null?0:Y.quota)?String(Math.round(c.quota/
1048576/10)*10):"-1",I.metric.dynamicContext.deviceStorageUsageMbytes=((v=c)==null?0:v.usage)?String(Math.round(c.usage/1048576/10)*10):"-1",y=I.metric.dynamicContext,_.C(P,bjJ(),9);case 9:return y.hasAppShell=P.yieldResult,Z=q6c(),Z.networkEvents.length&&(I.metric.networkEvents=FNc(Z)),P.return(I)}})};
KN4=function(){return new Promise(function(E){var B;mh.webkitTemporaryStoragePresent&&(B=QQ.webkitTemporaryStorage)!=null&&B.queryUsageAndQuota?QQ.webkitTemporaryStorage.queryUsageAndQuota(function(I,T){E({usage:I,quota:T})}):E(void 0)})};
_.dE=function(E){E&=16777215;E=[(E&16711680)>>16,(E&65280)>>8,E&255];return RaQ(E[0],E[1],E[2])};
_.hR=function(E){E=[(E&16711680)>>>16,(E&65280)>>>8,E&255,(E&4278190080)>>>24];var B=_.E2d(E,function(I){return I==(I&255)});
E[3]=(E[3]/255).toFixed(3);if(!B)throw Error("Xf`"+E.join(","));return"rgba("+E.join(",")+")"};
_.BhF=function(E){return[(E&16711680)>>>16,(E&65280)>>>8,E&255]};
_.$96=function(E){E=E.map(function(B){B/=255;return B<=.03928?B/12.92:Math.pow((B+.05)/1.05,2.4)});
return E[0]*.2126+E[1]*.7152+E[2]*.0722};
sq=function(E,B){E=_.BhF(E);return"rgba("+E[0]+", "+E[1]+", "+E[2]+", "+B+")"};
_.IvF=function(){try{return!!self.localStorage}catch(E){return!1}};
c6G=function(){if(ThD())_.OG(Error("Yf"));else{var E=document.createElement("iframe");E.style.display="none";var B=B===void 0?window.location.href:B;var I=_.xv(_.HA("PERSIST_IDENTITY_IFRAME_URL"));B=I?I:(new URL(B)).host.indexOf("studio")===0?_.jR(eHF,"persist_identity"):_.jR(lvc,"persist_identity");_.mVQ(E,1,B);E.id="persist_identity";var T;(T=document.body)==null||T.appendChild(E)}};
ThD=function(){var E=izQ;E||(E=document.querySelector("#persist_identity"));return E};
py4=function(){var E=!1;try{E=!!window.sessionStorage.getItem("session_logininfo")}catch(B){E=!0}return(_.HA("INNERTUBE_CLIENT_NAME")==="WEB"||_.HA("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&E};
YuF=function(E,B){if(!py4())return!1;B||(B=_.HA("LOGIN_INFO"));return B?(E.session_logininfo=B,!0):!1};
v2B=function(E,B){E=E===void 0?!1:E;if((B===void 0||!B)&&avG!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.gU("LOG_STICKINESS",!1)){B=_.nC();var I=_.Oi(),T={identityStickinessData:{initialState:avG}};B&&I&&_.UK(B,I,T)}if(B=ThD())if(I=B.src?(new URL(B.src)).origin:"*",E){var e;(e=B.contentWindow)==null||e.postMessage({action:"clear"},I)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(E=window.sessionStorage.getItem("session_logininfo"))){var c;(c=B.contentWindow)==null||c.postMessage({loginInfo:E},I)}};
_.uj=function(E){E=E===void 0?!0:E;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.MD("LOGIN_INFO",""),E&&window.sessionStorage.setItem("from_switch_account","1"),v2B(!0,E)}catch(B){}};
y6G=function(E){E&&(E.startsWith("https://accounts.google.com/AddSession")?_.uj():E.startsWith("https://accounts.google.com/ServiceLogin")?_.uj():E.startsWith("https://myaccount.google.com")&&_.Se(E).getPath().endsWith("/youtubeoptions")&&_.uj())};
Lq=function(E,B){y6G(E);if(_.gU("LOGGED_IN",!0)&&py4()){var I=pdc(E);I==null&&(I={});YuF(I,B)&&_.qU(E,I)}};
CS6=function(){function E(B){for(B=B.target;B&&B.nodeName!=="A";)if(B=B.parentNode,!(B&&B instanceof HTMLElement))return;if(B&&!B.hasAttribute("download")&&B.getAttribute("rel")!=="external"&&B.href)return B.href}
document.addEventListener("mousedown",function(B){B.button!==0&&(B=E(B))&&Lq(B)});
document.addEventListener("click",function(B){(B=E(B))&&Lq(B)})};
PSi=function(){var E=new wyF;try{if(_.gU("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(v){E.increment(5,!1);return}if(_.HA("LOGIN_INFO")){var B=ZzG?ZzG:window.location;_.HA("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&c6G();var I=pdc(B.href);I==null&&(I={});var T=I.session_logininfo,e=Number(window.sessionStorage.getItem("stickiness_reload")),c=T===_.HA("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
e>=2||c)e>=2?E.increment(2,c):c?E.increment(7,c):window.sessionStorage.getItem("session_logininfo")||(E.increment(3,c),avG="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.HA("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.HA("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))E.increment(4,c),window.sessionStorage.removeItem("stickiness_reload");
else if(e<2){window.sessionStorage.setItem("stickiness_reload",String(e+1));var Y=B.href;Y=_.F$(Y,"sttick");Lq(Y,window.sessionStorage.getItem("session_logininfo"));Y=_.jI(Y,{sttick:e});E.increment(e,c);_.S6(B,Y)}}else E.increment(6,!1)}else _.uj(!1)}catch(v){}};
_.xG=function(E,B,I,T,e){B=B===void 0?{}:B;I=I===void 0?"":I;T=T===void 0?window:T;E=_.Ur(E,B);Lq(E);I=_.pr(E+I,e);_.S6(T.location,I)};
zHD=function(E){if(E.urlEndpoint){if(E=_.AA(E.urlEndpoint.url),E.adurl)return qD(E.adurl)}else if(E.watchEndpoint)return"//www.youtube.com/watch?v="+E.watchEndpoint.videoId;return null};
m9c=function(E){if(!E||!E.reportingPings)return null;var B={};E.reportingPings.forEach(function(I){I.pingType in B?B[I.pingType].push(I.url):B[I.pingType]=[I.url]});
return{adpings:vq4(B)}};
_.Oq=function(E){E=E===void 0?!1:E;var B=_.ZB(),I="USER_INTERFACE_THEME_LIGHT";B.getFlag(165)?I="USER_INTERFACE_THEME_DARK":B.getFlag(174)?I="USER_INTERFACE_THEME_LIGHT":_.Gv()&&(I="USER_INTERFACE_THEME_DARK");return E?I:QeG()||I};
_.d94=function(){return!_.d("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Gv=function(){return _.d94()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.nq=function(){var E=_.ZB();return _.d94()&&!E.getFlag(165)&&!E.getFlag(174)};
QeG=function(){var E=E===void 0?window.location.href:E;if(_.d("kevlar_disable_theme_param"))return null;var B=_.c7(E);if(_.hHQ(B))return"USER_INTERFACE_THEME_DARK";try{var I=_.AA(E).theme;return sei.get(I)||null}catch(T){}return null};
_.hHQ=function(E){return _.d("enable_dark_theme_only_on_shorts")?!(E==null||!E.startsWith("/shorts/")):!1};
_.x96=function(E,B,I,T,e){B=B===void 0?!1:B;I=I===void 0?!1:I;var c=_.HA("INNERTUBE_CONTEXT");if(!c)return _.xV(Error("bg")),{};c=(0,_.a_.unsafeClone)(c);_.d("web_no_tracking_params_in_shell_killswitch")||delete c.clickTracking;c.client||(c.client={});var Y=c.client;Y.clientName==="MWEB"&&Y.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Y.clientFormFactor=_.HA("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");Y.screenWidthPoints=window.innerWidth;Y.screenHeightPoints=window.innerHeight;Y.screenPixelDensity=
Math.round(window.devicePixelRatio||1);Y.screenDensityFloat=window.devicePixelRatio||1;Y.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());Y.userInterfaceTheme=_.Oq();if(!B){var v=_.eS6();v&&(Y.connectionType=v);_.d("web_log_effective_connection_type")&&(v=cQF())&&(c.client.effectiveConnectionType=v)}var y;if(_.d("web_log_memory_total_kbytes")&&((y=_.$i.navigator)==null?0:y.deviceMemory)){var Z;y=(Z=_.$i.navigator)==null?void 0:Z.deviceMemory;c.client.memoryTotalKbytes=""+y*1E6}B&&T&&!_.d("web_it_context_set_original_url_ks")&&
(Y.originalUrl=uKD(_.$i.location.href,T).toString());_.d("web_gcf_hashes_innertube")&&(v=zDG())&&(Z=v.coldConfigData,y=v.coldHashData,v=v.hotHashData,c.client.configInfo=c.client.configInfo||{},Z&&(c.client.configInfo.coldConfigData=Z),y&&(c.client.configInfo.coldHashData=y),v&&(c.client.configInfo.hotHashData=v));Z=_.AA(_.$i.location.href);!_.d("web_populate_internal_geo_killswitch")&&Z.internalcountrycode&&(Y.internalGeo=Z.internalcountrycode);!_.d("web_populate_client_screen_killswitch")&&e&&(Y.clientScreen=
e);Y.clientName==="MWEB"||Y.clientName==="WEB"?(Y.mainAppWebInfo={graftUrl:T||_.$i.location.href},_.d("kevlar_woffle")&&_.MK.instance&&(T=_.MK.instance,Y.mainAppWebInfo.pwaInstallabilityStatus=!T.appInstalledEventFired&&T.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),Y.mainAppWebInfo.webDisplayMode=YK6(),Y.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Y.clientName==="TVHTML5"&&(!_.d("web_lr_app_quality_killswitch")&&
(T=_.HA("LIVING_ROOM_APP_QUALITY"))&&(Y.tvAppInfo=Object.assign(Y.tvAppInfo||{},{appQuality:T})),T=_.HA("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Y.tvAppInfo=Object.assign(Y.tvAppInfo||{},{certificationScope:T}));!_.d("web_populate_time_zone_itc_killswitch")&&(T=I$c())&&(Y.timeZone=T);(T=u74())?Y.experimentsToken=T:delete Y.experimentsToken;Y=LSi();T=_.Lvt();T=(0,_.a_.getValues)(T.tokenJars);c.request=Object.assign({},c.request,{internalExperimentFlags:Y,consistencyTokenJars:T});!_.d("web_prequest_context_killswitch")&&
(Y=_.HA("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(c.request.externalPrequestContext=Y);T=_.ZB();Y=T.getFlag(58);T=T.get("gsml","");c.user=Object.assign({},c.user);Y&&(c.user.enableSafetyMode=Y);T&&(c.user.lockedSafetyMode=!0);_.d("warm_op_csn_cleanup")?I&&(B=_.nC())&&(c.clientScreenNonce=B):!B&&(B=_.nC())&&(c.clientScreenNonce=B);E&&(c.clickTracking={clickTrackingParams:E});if(E=_.WA("yt.mdx.remote.remoteClient_"))c.remoteClient=E;_.H8.getInstance().setLocationOnInnerTubeContext(c);try{var P=JJi(),
z=P.bid;delete P.bid;c.adSignalsInfo={params:[],bid:z};for(var m=_.p(Object.entries(P)),u=m.next();!u.done;u=m.next()){var x=_.p(u.value),M=x.next().value,N=x.next().value;P=M;z=N;E=void 0;(E=c.adSignalsInfo.params)==null||E.push({key:P,value:""+z})}var W,U;if(((W=c.client)==null?void 0:W.clientName)==="TVHTML5"||((U=c.client)==null?void 0:U.clientName)==="TVHTML5_UNPLUGGED"){var q=_.HA("INNERTUBE_CONTEXT");q.adSignalsInfo&&(c.adSignalsInfo.advertisingId=q.adSignalsInfo.advertisingId,c.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",c.adSignalsInfo.limitAdTracking=q.adSignalsInfo.limitAdTracking)}}catch(f){_.xV(f)}return c};
_.NK=function(){return{isShellLoad:_.gU("IS_SHELL_LOAD",!1)}};
OzD=function(){navigator.serviceWorker.getRegistrations().then(function(E){E.forEach(GJG)})};
GJG=function(E){E&&_.n2c(M_c,E.scope)};
_.n2c=function(E,B){B={scope:B||_.EF("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Ef(E),B)};
gE=function(E,B,I,T){if(B&&B.serializedYpcCujLoggingParams){if(I){var e={};e.transactionErrorType=I;T&&(e.errorMessage=T);B.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:e}}}I={};I.ypcCujContext=B;E=_.eP("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",E,I);_.lj(_.c8(),E,"FLOW_TYPE_YPC_ACQUISITION")}};
_.HzD=function(E,B,I,T){var e={};e.serializedTransactionFlowLoggingParams=B;I&&(e.errorType=I);T&&(e.errorMessage=T);_.hK(E,e);_.Li()};
_.Nhi=function(E){E&&_.HzD("transactionFlowStarted",E)};
_.g26=function(E){E&&_.HzD("transactionFlowCancelled",E)};
_.SP=function(E,B,I){B&&_.HzD("transactionFlowFailed",B,E,I)};
_.JR=function(){this.megabloxUrl_=null};
_.W8=function(E){try{var B=Suc==null?void 0:Suc.composedPath(E)}catch(I){B=E.composedPath?E.composedPath():[]}return B&&B.length>0?B:E.composedPath?E.composedPath():[]};
_.XN=function(E){return _.W8(E)[0]};
_.rE=function(E){if(!(E instanceof Element))return null;E=E.classList?Array.from(E.classList):void 0;if(!E)return null;var B=E.indexOf("style-scope");return B>-1&&B+1<E.length?E[B+1]:null};
bj=function(E){if(!(E instanceof HTMLElement))return null;var B=E&&(E.$$||E.polymerController)?E.tagName.toLowerCase():null;return B?B:_.rE(E)};
J6J=function(E,B){return E.replace(/[^a-z]*[^\s]+/g,function(I){return I+".style-scope."+B})};
WvJ=function(E,B){return B?E.split(",").map(function(I){return J6J(I.trim(),B)}).join(", "):E};
_.oN=function(E){var B,I,T,e;return(e=(T=(I=(B=E.root)!=null?B:E.shadowRoot)!=null?I:E.__shady_native_shadowRoot)!=null?T:E.__shady_shadowRoot)!=null?e:E};
AR=function(E){return E instanceof ShadowRoot?ShadowRoot:E instanceof DocumentFragment?DocumentFragment:E instanceof Document?Document:HTMLElement};
Xyd=function(E){var B,I,T;return(T=(I=(B=E.parentElement)!=null?B:E.__shady_native_parentElement)!=null?I:E.__shady_parentElement)!=null?T:null};
r6c=function(E){var B,I,T;return(T=(I=(B=E.parentNode)!=null?B:E.__shady_native_parentNode)!=null?I:E.__shady_parentNode)!=null?T:null};
bz4=function(E){var B,I,T;return(T=(I=(B=E.__shady_parentNode)!=null?B:E.__shady_native_parentNode)!=null?I:E.parentNode)!=null?T:null};
o26=function(E){var B,I;return(I=(B=r6c(E))!=null?B:E.host)!=null?I:null};
A66=function(E){var B,I,T;return(T=(I=(B=E.nextSibling)!=null?B:E.__shady_native_nextSibling)!=null?I:E.__shady_nextSibling)!=null?T:null};
jec=function(E){var B,I,T;return(T=(I=(B=E.previousSibling)!=null?B:E.__shady_native_previousSibling)!=null?I:E.__shady_previousSibling)!=null?T:null};
U9Q=function(E){var B,I,T;return(T=(I=(B=E.nextElementSibling)!=null?B:E.__shady_native_nextElementSibling)!=null?I:E.__shady_nextElementSibling)!=null?T:null};
kJG=function(E){var B,I,T;return(T=(I=(B=E.previousElementSibling)!=null?B:E.__shady_native_previousElementSibling)!=null?I:E.__shady_previousElementSibling)!=null?T:null};
t_F=function(E){var B,I,T;return new Set([].concat(_.ad((B=E.children)!=null?B:[]),_.ad((I=E.__shady_native_children)!=null?I:[]),_.ad((T=E.__shady_children)!=null?T:[])))};
fvD=function(E){var B,I,T;return new Set([].concat(_.ad((B=E.childNodes)!=null?B:[]),_.ad((I=E.__shady_native_childNodes)!=null?I:[]),_.ad((T=E.__shady_childNodes)!=null?T:[])))};
V_i=function(E){if(!E)return null;var B=_.rE(E);if(!B){var I;return(I=Node.prototype.getRootNode)==null?void 0:I.call(E)}B=B.toUpperCase();for(E=Xyd(E);E&&E.tagName!==B;)E=Xyd(E);return E?_.oN(E):null};
qu6=function(E){for(;E&&!(E instanceof HTMLElement);)E=o26(E);return E};
Fvc=function(E){var B=qu6(E);return E===B?_.rE(E):B?bj(B):null};
D9c=function(E){return(E=qu6(E))?bj(E):null};
Kvc=function(E){if(E instanceof Comment)return!1;if(E instanceof Text){var B,I;if(((I=(B=E.textContent)==null?void 0:B.trim())!=null?I:"")==="")return!1}return!0};
jP=function(E,B,I){var T=B(E);for(I=I===void 0?D9c(E):I;T&&(Fvc(T)!==I||!Kvc(T));)E=T,T=B(E);return T};
RHD=function(E,B,I){if(!B)return null;E=D9c(E);return Fvc(B)===E&&Kvc(B)?B:jP(B,I,E)};
EJt=function(E){return jP(E,bz4,_.rE(E))};
BQc=function(E){return jP(E,U9Q)};
$rt=function(E){return jP(E,A66)};
IT4=function(E){return jP(E,kJG)};
TQt=function(E){return jP(E,jec)};
exc=function(E){return RHD(E,E.firstChild||E.__shady_native_firstChild||E.__shady_firstChild||null,A66)};
lT6=function(E){var B,I,T;var e=(T=(I=(B=E.firstElementChild)!=null?B:E.__shady_native_firstElementChild)!=null?I:E.__shady_firstElementChild)!=null?T:null;return RHD(E,e,U9Q)};
cyG=function(E){var B,I,T;var e=(T=(I=(B=E.lastChild)!=null?B:E.__shady_native_lastChild)!=null?I:E.__shady_lastChild)!=null?T:null;return RHD(E,e,jec)};
itc=function(E){var B,I,T;var e=(T=(I=(B=E.lastElementChild)!=null?B:E.__shady_native_lastElementChild)!=null?I:E.__shady_lastElementChild)!=null?T:null;return RHD(E,e,kJG)};
pZc=function(E){var B=D9c(E);return Array.from(fvD(E)).filter(function(I){return Fvc(I)===B})};
Yv4=function(E){var B=bj(E);return Array.from(t_F(E)).filter(function(I){return _.rE(I)===B})};
_.Uq=function(E,B,I){if(E instanceof HTMLElement&&_.rE(E)===I){var T=Array.from(E.classList).indexOf("style-scope");if(T===-1)E.classList.add("style-scope"),E.classList.add(B);else if(!(T+1>=E.classList.length)){T=E.classList[T+1];var e,c;E==null||(e=E.classList)==null||(c=e.replace)==null||c.call(e,T,B)}}if(E instanceof HTMLElement||E instanceof DocumentFragment)for(e=_.p(t_F(E)),c=e.next();!c.done;c=e.next())_.Uq(c.value,B,I);return E};
kG=function(E,B){if(E instanceof HTMLElement&&_.rE(E)===B){var I=Array.from(E.classList).indexOf("style-scope");I===-1||I+1>=E.classList.length||E.classList.remove("style-scope",E.classList[I+1])}if(E instanceof HTMLElement||E instanceof DocumentFragment){I=_.p(E.children);for(var T=I.next();!T.done;T=I.next())kG(T.value,B)}return E};
_.aTi=function(E,B){return AR(E).prototype.appendChild.call(E,B)};
vJB=function(E,B){if(E===B)return!0;E=fvD(E);return Array.from(E).some(function(I){return vJB(I,B)})};
_.n=function(E,B){if(E instanceof tR)return E;(B==null?0:B.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(E,"ownerDocument")&&Object.defineProperty(E,"ownerDocument",{get:function(){return window.document}});
return new tR(E)};
C_i=function(){var E=tR.prototype,B=[].concat(_.ad(yyc?[]:["getRootNode"]),["setAttribute","removeAttribute"]);B=_.p(B);for(var I=B.next(),T={};!I.done;T={method$jscomp$49:void 0},I=B.next())T.method$jscomp$49=I.value,E[T.method$jscomp$49]=function(e){return function(){return this.host[e.method$jscomp$49].apply(this.host,arguments)}}(T)};
ZtG=function(){var E=tR.prototype,B=[].concat(_.ad(yyc?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.ad(wZB?[]:["querySelector","querySelectorAll"]));B=_.p(B);for(var I=B.next(),T={};!I.done;T={method$jscomp$50:void 0},I=B.next())T.method$jscomp$50=I.value,E[T.method$jscomp$50]=function(e){return function(){return this.root[e.method$jscomp$50].apply(this.root,arguments)}}(T)};
mr6=function(){var E=tR.prototype,B=[].concat(_.ad(P_D?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.ad(zxQ?[]:["parentNode"]));B=_.p(B);for(var I=B.next(),T={};!I.done;T={prop$jscomp$62:void 0},I=B.next())T.prop$jscomp$62=I.value,Object.defineProperty(E,T.prop$jscomp$62,{get:function(e){return function(){return this.host[e.prop$jscomp$62]}}(T),
configurable:!0})};
hxc=function(){var E=tR.prototype,B=["activeElement"].concat(_.ad(P_D?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.ad(QZF?[]:["children"]),_.ad(drt?[]:["lastChild"]));B=_.p(B);for(var I=B.next(),T={};!I.done;T={prop$jscomp$63:void 0},I=B.next())T.prop$jscomp$63=I.value,Object.defineProperty(E,T.prop$jscomp$63,{get:function(e){return function(){return this.root[e.prop$jscomp$63]}}(T),
configurable:!0})};
sZc=function(){for(var E=tR.prototype,B=_.p(["innerHTML","textContent"]),I=B.next(),T={};!I.done;T={prop$jscomp$64:void 0},I=B.next())T.prop$jscomp$64=I.value,Object.defineProperty(E,T.prop$jscomp$64,{get:function(e){return function(){return this.root[e.prop$jscomp$64]}}(T),
set:function(e){return function(c){this.root[e.prop$jscomp$64]=c}}(T),
configurable:!0})};
uPJ=function(E){var B=tR.prototype;E=_.p(Object.entries(E));for(var I=E.next(),T={};!I.done;T={fn$jscomp$359:void 0},I=E.next()){var e=_.p(I.value);I=e.next().value;e=e.next().value;T.fn$jscomp$359=e;B[I]=function(c){return function(){return c.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.ad(arguments)))}}(T)}};
xr4=function(){for(var E=tR.prototype,B=_.p(Object.entries(Lfc)),I=B.next(),T={};!I.done;T={fn$jscomp$360:void 0},I=B.next()){var e=_.p(I.value);I=e.next().value;e=e.next().value;T.fn$jscomp$360=e;Object.defineProperty(E,I,{get:function(c){return function(){return c.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.ad(arguments)))}}(T),
configurable:!0})}};
_.fq=function(E){return E instanceof GSc||E instanceof Document?E:new GSc(E)};
OtG=function(){for(var E=GSc.prototype,B=_.p("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),I=B.next(),T={};!I.done;T={method$jscomp$51:void 0},I=B.next())T.method$jscomp$51=I.value,E[T.method$jscomp$51]=function(e){return function(){return HTMLElement.prototype[e.method$jscomp$51].call.apply(HTMLElement.prototype[e.method$jscomp$51],[this.node].concat(_.ad(arguments)))}}(T)};
nJD=function(){for(var E=GSc.prototype,B=_.p("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),I=B.next(),T={};!I.done;T={prop$jscomp$65:void 0},I=B.next())T.prop$jscomp$65=I.value,Object.defineProperty(E,T.prop$jscomp$65,{get:function(e){return function(){var c;return(c=this.node["__shady_native_"+e.prop$jscomp$65])!=null?c:this.node[e.prop$jscomp$65]}}(T),
configurable:!0})};
_.VQ=function(E,B,I){I===void 0&&(I=!E.classList.contains(B));I?E.classList.add(B):E.classList.remove(B)};
_.qK=function(E,B,I){I===void 0&&(I=!E.hasAttribute(B));if(B==="class")throw Error("fg");I?_.fq(E).setAttribute(B,""):_.fq(E).removeAttribute(B)};
MmB=function(E){return(E.localName!=="slot"?[]:(0,_.FN)(E).assignedNodes({flatten:!0})).filter(function(B){return B.nodeType===Node.ELEMENT_NODE})};
_.Htd=function(E){return(E=_.n(E).querySelector("slot"))&&E.localName==="slot"?MmB(E):[]};
_.Dk=function(E,B){window.ShadyCSS&&window.ShadyCSS.styleSubtree(E,B)};
NQD=function(E,B){var I=B.bind(E);return function(T){I(T,T.detail)}};
_.Kq=function(E,B){var I=gJi.get(E);I||(I=new WeakMap,gJi.set(E,I));if(I.has(B))return I.get(B);if(_.d("web_fi_listen_disable_bound_fn_helper")){var T=B.bind(E);E=function(e){T(e,e==null?void 0:e.detail)}}else E=NQD(E,B);
I.set(B,E);return E};
WfQ=function(E,B){SvG(E);E.created[JyG].push(B)};
SvG=function(E){if(!E.created||!E.created[JyG]){var B=E.created,I=B?[B]:[];E.created=function(){for(var T=_.p(I),e=T.next();!e.done;e=T.next())e.value.apply(this)};
E.created[JyG]=I}};
XZc=function(E){return function(){var B=_.aG.apply(0,arguments);return function(I,T,e){E.apply(null,_.ad(B))(I,T,e)}}};
ryB=function(){return function(){var E=_.aG.apply(0,arguments);return function(B,I,T){xsF.apply(null,_.ad(E))(B,I,T)}}};
_.g=function(E){return ryB()(E)};
_.S=function(){return XZc(MD6).apply(null,_.ad(_.aG.apply(0,arguments)))};
_.RN=function(E){return _.d("pbcm_fi_listen_decorators")?btQ(E):XZc(OJi)(E)};
btQ=function(E){return function(B,I){WfQ(B,function(){var T=this[I],e=_.d("web_fi_listen_disable_bound_fn_helper")?function(c){T(c,c.detail)}.bind(this):NQD(this,T);
oJd.has(E)?sp(this.hostElement,E,e):this.hostElement.addEventListener(E,e)})}};
_.EM=function(){return XZc(nmF).apply(null,_.ad(_.aG.apply(0,arguments)))};
_.X=function(E){E=E===void 0?{}:E;return XZc(GXd)(E)};
_.Bl=function(E){if(E.hostElement&&E!==E.hostElement){var B=_.QT(E.hostElement);B=E.renderIdom?B:B.shadowRoot}B||(E=E.root,B=E instanceof Node?_.QT(E):null);return B};
_.$7=function(E){return AyG?jZ6(E):function(B,I){Object.defineProperty(B,I,{get:function(){var T;return(T=_.Bl(this))==null?void 0:T.querySelector(E)},
enumerable:!0,configurable:!0})}};
jZ6=function(E){return function(B,I){Object.defineProperty(B,I,{get:function(){var T,e=(T=_.n(this.hostElement))==null?void 0:T.querySelector(E);if(e)return e;var c;T=(c=this.is)!=null?c:"yt-undefined-target";Urc!=null||(Urc=Date.now());(JQ(T)+Urc)%100>_.RI("pbcm_fi_query_decorators_fallback_logging_pct")||(kS6!=null||(kS6=new tmt),fT4.has(T)||(fT4.add(T),kS6.increment(T)));var Y;return(Y=_.Bl(this))==null?void 0:Y.querySelector(E)},
enumerable:!0,configurable:!0})}};
_.eV=function(E){return AyG?Vm4(E):function(B,I){Object.defineProperty(B,I,{get:function(){var T;return(T=_.Bl(this))==null?void 0:T.querySelectorAll(E)},
enumerable:!0,configurable:!0})}};
Vm4=function(E){return function(B,I){Object.defineProperty(B,I,{get:function(){var T,e=(T=_.n(this.hostElement))==null?void 0:T.querySelectorAll(E);if(e==null?0:e.length)return e;var c;return(c=_.Bl(this))==null?void 0:c.querySelectorAll(E)},
enumerable:!0,configurable:!0})}};
qvB=function(E){return function(B){if(![_.kq,_.r].includes(Object.getPrototypeOf(B.prototype).constructor))throw Error("gg");zVG(Object.assign({},typeof E!=="string"?E:{is:E,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(B)}};
_.cl=function(){var E=E===void 0?{}:E;return function(B){if(![tJ,_.l6].includes(Object.getPrototypeOf(B.prototype).constructor))throw Error("hg");msG(Object.assign({},E,{disableInheritanceCheck:!0}))(B)}};
DrG=function(E,B){FfB[E]!=null||(FfB[E]=new Set);FfB[E].add(B)};
_.i6=function(){var E=_.EM.apply(null,_.ad(_.aG.apply(0,arguments)));return function(B,I){DrG(B.is,I);E(B,I)}};
a3=function(E,B,I){if(p$(E)&&!Kft.has(B)){B=B.replace(/^JSC\$[\d]+_/,"");B=B.replace(/\.\d+(\.|$)/g,function(c,Y){return".#"+Y});
Y7[E]!=null||(Y7[E]={});var T,e;(T=Y7[E])[e=B]!=null||(T[e]=new Set);Y7[E][B].has(I)||(Y7[E][B].add(I),_.hK("polymerPropertyAccessEvent",{componentName:E,propertyName:B,accessType:I}))}};
Rx6=function(){return _.d("polymer_property_access_logging_debug")||_.d("polymer_enable_property_access_logging")};
p$=function(E){if(_.d("polymer_property_access_logging_debug"))return!0;if(!_.d("polymer_enable_property_access_logging"))return!1;Ek4||(Ek4=Date.now());return(JQ(E)+Ek4)%100<_.RI("polymer_property_access_logging_percent")};
BiJ=function(E,B){return p$(B)&&E.hostElement.loggingStatus?new Proxy(E,{get:function(I,T,e){if(I.hostElement.loggingStatus.bypassProxyController)return I[T];I.hostElement.loggingStatus.isExternalGet=!0;var c=I[T];I.hostElement.loggingStatus.isExternalGet=!1;if(c instanceof Function)return function(){var Y=_.aG.apply(0,arguments);try{return I.hostElement.loggingStatus.currentExternalCall=T,a3(B,T,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),c.apply(this===e?I:this,Y)}finally{I.hostElement.loggingStatus.currentExternalCall=
void 0}};
a3(B,T,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return c},
set:function(I,T,e){if(I.hostElement.loggingStatus.bypassProxyController)return I[T]=e,!0;I.hostElement.loggingStatus.isRendererStamper?a3(B,T,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):I.hostElement.loggingStatus.isDeclarativeExternal||a3(B,T,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{I.hostElement.loggingStatus.currentExternalSet=T,I[T]=e}finally{I.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):E};
$cc=function(E,B){E&&E.loggingStatus&&!E.loggingStatus.isDeclarativeExternal&&!E.loggingStatus.isExternalGet&&E.loggingStatus.currentExternalSet!==B&&a3(E.tagName.toLowerCase(),B,"PROPERTY_ACCESS_GET_INTERNAL")};
vl=function(E,B,I){E&&(I||E.loggingStatus&&!E.loggingStatus.isInitializing&&!E.loggingStatus.isDefiningPropertyAccessor&&E.loggingStatus.currentExternalSet!==B)&&a3(E.tagName.toLowerCase(),B,"PROPERTY_ACCESS_SET_INTERNAL")};
Idi=function(){return{_definePropertyAccessor:function(E,B){var I=this,T=I.hostElement.loggingStatus;T&&(T.isDefiningPropertyAccessor=!0);var e=I[E];e!==void 0&&(I.__data?I._setPendingProperty(E,e):(I.__dataProto!=null||(I.__dataProto={}),I.__dataProto[E]=e));T&&(T.isDefiningPropertyAccessor=!1);Object.defineProperty(this,E,{get:function(){$cc(I.hostElement,E);return this.__data[E]},
set:function(c){B||this._setPendingProperty(E,c,!0)&&this._invalidateProperties()}})},
created:function(){var E=this._setPendingProperty.bind(this);this._setPendingProperty=function(B,I,T){vl(this.hostElement,B);return E.apply(this,[B,I,T])}}}};
Tii=function(E){Rx6()&&_.g(yE.prototype)(E.prototype,"__templateBindingLoggingBehavior")};
ezc=function(E,B){if(B.resolvedFactories.length!==E.resolvedFactories.length)return!0;B=_.p(B.resolvedFactories.entries());for(var I=B.next();!I.done;I=B.next()){var T=_.p(I.value);I=T.next().value;T=T.next().value;if(T.providerClass){if(T.providerClass!==E.resolvedFactories[I].providerClass)return!0}else if(T.providerValue){if(T.providerValue!==E.resolvedFactories[I].providerValue)return!0}else if(T.factory!==E.resolvedFactories[I].factory)return!0}return!1};
ldf=function(E,B){E=_.p(E);for(var I=E.next();!I.done;I=E.next())if(I=I.value,I.constructor===Array)ldf(I,B);else{var T=B;T.has(I)||(I.inject&&T.add(I),I.behaviors&&ldf(I.behaviors,T))}};
C$=function(E,B){var I=E[B];E[B]=function(){var T=_.aG.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(I)return I.apply(this,T)}};
YCc=function(){_.wp.Class=function(I,T){I=cFG(I,T);C$(I.prototype,"created");return I};
C$(ZN.prototype,"_initializeProperties");C$(_.Pl.prototype,"_initializeProperties");if(iG6)C$(p4D,"created");else{var E=function(){C$(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))E();else{var B=customElements.define;customElements.define=function(I,T,e){B.call(customElements,I,T,e);I==="tp-yt-iron-list"&&(E(),customElements.define=B)}}}};
vkc=function(E,B){E.prototype.behaviors=E.prototype.behaviors||[];E.prototype.behaviors.unshift(adi.InjectBehavior);E.prototype.provide=B};
_.QE=function(E){return function(B){if(!E.disableElementRegistration){E.noInjection||vkc(B,E.providers);var I=B.prototype;I.__templateHelpers||xsF(zg.prototype)(I,"__templateHelpers");I=E.is;yFG||(yFG=Date.now());(JQ(I)+yFG)%100<_.RI("polymer_log_prop_change_observer_percent")&&xsF(mB.prototype)(B.prototype,"__propertyObserverObserver");B.prototype.behaviors=B.prototype.behaviors||[];B.prototype.behaviors.unshift(_.Cg4.YtHostElementBehavior);Tii(B);qvB({is:E.is,notifyObserversOnUndefined:E.notifyObserversOnUndefined!==
!1,fastInit:E.fastInit,template:E.template,disableEnforceFastDefaultValuesCheck:!0})(B)}}};
_.b=function(E){return _.QE({is:E.is,template:E.template,disableElementRegistration:E.disableElementRegistration,cssBuildOptOut:E.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
Pgc=function(E,B){if(w4J){E=new E;for(var I=_.p(Object.getOwnPropertyNames(E)),T=I.next();!T.done;T=I.next())T=T.value,B[T]=E[T];for(I=B;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){T=_.p(Object.getOwnPropertyNames(I));for(var e=T.next();!e.done;e=T.next())e=e.value,E.hasOwnProperty(e)||Object.defineProperty(E,e,ZGG(B,e))}}else E.apply(B)};
ZGG=function(E,B){return{get:function(){var I=E[B];return I instanceof Function?I.bind(E):I},
set:function(I){E[B]=I}}};
mcJ=function(E,B){for(var I=E._noAccessors,T=_.p(Object.getOwnPropertyNames(E)),e=T.next();!e.done;e=T.next())if(e=e.value,!zzD.has(e))if(I)B[e]=E[e];else{var c=Object.getOwnPropertyDescriptor(E,e);c&&(c.configurable=!0,Object.defineProperty(B,e,c))}};
QMd=function(E,B,I){return function(T){if(I){var e=I();T.model=e}if(E[B])E[B](T,T.detail)}};
dp=function(E){var B=[];if(typeof E==="string")E.length>0&&B.push.apply(B,_.ad(E.split(".")));else{E=_.p(E);for(var I=E.next();!I.done;I=E.next())I=I.value,typeof I==="string"?B.push.apply(B,_.ad(I.split("."))):B.push(I)}return B};
dc4=function(E,B){if(B[B.length-1]!=="*"&&B[B.length-1]!=="splices"){for(var I=0;I<B.length;I++){if(!E)return;E=E[B[I]]}return E}};
hz6=function(E,B){if(E.length>B.length)return!1;for(var I=0;I<E.length;I++)if(E[I]!==B[I])return!1;return!0};
uti=function(E,B,I){if(B.type==="compute"){var T=B.getter.bind(I);var e=B.args}else T=function(){return I[B.method.methodName].apply(I,_.ad(_.aG.apply(0,arguments)))},e=B.method.args;
sMi(E,B.propertyKey,T,e,B.value)};
xcf=function(E,B){if(B.readOnly){var I=Object.getOwnPropertyDescriptor(E.model,B.propertyKey);Object.defineProperty(E.model,B.propertyKey,{get:I.get,set:function(){}});
E.model[Ljd(B.propertyKey)]=I.set}};
GK4=function(E,B,I){if(I){var T=B.propertyKey,e=B.selector;B=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.ad(B.selectorArgs.map(function(c){return{type:"path",path:c}})));
sMi(E,T,function(c){var Y=_.aG.apply(1,arguments);return e.apply(null,[I.getState()].concat(_.ad(Y)))},B)}};
nkJ=function(E,B,I){var T=_.vU(B.propertyKey)+"-changed";OGc(E,function(e){var c={value:e.value,queueProperty:!0};e.path.split(".").length>1&&(c.path=e.path);I.dispatchEvent(new CustomEvent(T,{detail:c}))},[{type:"wildcard",
path:B.propertyKey}])};
MSt=function(E,B,I){OGc(E,function(){I[B.method.methodName].apply(I,_.ad(_.aG.apply(0,arguments)))},B.method.args)};
Ljd=function(E){return"_set"+(E.charAt(0).toUpperCase()+E.slice(1))};
HG4=function(){var E,B=hx(function(I){E=I},!1);
return[E,B]};
WjG=function(E){E=E.trim().replace(NiQ,",").replace(gkt,"$1");var B=E[0];B==="-"&&(B=E[1]);if(B>="0"&&B<="9")return{type:"literal",value:Number(E)};if(B==="'"||B==='"')return{type:"literal",value:E.slice(1,-1)};if(B=E.match(SCd)){B=B[1];var I=JFG[B];if(I)return{type:I,path:E.slice(0,-(B.length+1))}}return{type:"path",path:E}};
oki=function(E){var B=E.match(X4G);if(B)return E={methodName:B[1],args:rF4},B[2].trim()&&(B=B[2].replace(bGB,"&comma;").split(","),E.args=B.map(WjG)),E};
AFG=function(E,B,I){B=_.vU(B);var T=vu;T&&(I=T(I,B,"attribute",E));hd(E,I,B)};
hd=function(E,B,I){B=jMF(B);B===void 0?E.removeAttribute(I):E.setAttribute(I,B)};
jMF=function(E){switch(typeof E){case "object":if(E instanceof Date)return E.toString();if(E){var B=window.trustedTypes?window.trustedTypes.isHTML(E)||window.trustedTypes.isScript(E)||window.trustedTypes.isScriptURL(E):void 0;if(B)return E;try{return JSON.stringify(E)}catch(I){_.OG(Error("Dg`"+E))}}break;case "boolean":return E?"":void 0;default:return E!==null&&E!==void 0?E.toString():void 0}};
UcD=function(E){if(E===void 0)throw Error("Eg");return E};
qCJ=function(E,B,I,T){var e=kKc(T);if(e.length){T=I;var c="property";tSi.test(I)?c="attribute":I[I.length-1]==="$"&&(I=I.slice(0,-1),c="attribute");var Y=fdf(e);Y&&c==="attribute"&&(I==="class"&&E.hasAttribute("class")&&(Y+=" "+E.getAttribute(I)),hd(E,Y,I));c==="attribute"&&T==="disable-upgrade$"&&E.setAttribute("disable-upgrade","");E.localName==="input"&&T==="value"&&E.setAttribute("value","");E.removeAttribute(T);c==="property"&&(I=_.yT(I));B=UcD(B);VSF(B,c,I,e);return!0}return I.slice(0,3)===
"on-"?(E.removeAttribute(I),(c=B).events!=null||(c.events=[]),B.events.push({name:I.slice(3),value:T}),!0):I==="id"?(B.id=T,!0):!1};
kKc=function(E){for(var B=[],I=0,T;(T=Fj6.exec(E))!==null;){T.index>I&&B.push({type:"literal",value:E.slice(I,T.index)});var e=T[1][0];I=!!T[2];T=T[3].trim();if(e==="{")throw Error("Fg");(e=oki(T))?B.push({type:"method",negate:I,signature:e}):B.push({type:"path",negate:I,path:T});I=Fj6.lastIndex}I&&I<E.length&&(E=E.substring(I))&&B.push({type:"literal",value:E});return B};
fdf=function(E){for(var B="",I=0;I<E.length;I++){var T=E[I];T.type==="literal"&&(B+=T.value)}return B};
VSF=function(E,B,I,T){E.bindings!=null||(E.bindings=[]);E.bindings.push({kind:B,target:I,parts:T})};
BzD=function(E,B,I){var T=!1;if(E.localName==="template"){T=I;var e=B.stripWhitespace;e=Dci(E,e===void 0?!1:e);var c=E.content.ownerDocument.createDocumentFragment();e.content=c;c.appendChild(E.content);T&&(T.templateInfo=e);T=!0}else E.localName==="slot"&&(B.hasInsertionPoint=!0);if(E.firstChild&&(e=I,E.localName!=="script"&&E.localName!=="style")){c=0;for(var Y=E.firstChild;Y;){var v=Y;if(v.localName==="template"){var y=v.getAttribute("is");if((Y=y==="dom-if")||y==="dom-repeat"){v.removeAttribute("is");
y=v.ownerDocument.createElement("ps-"+y);v.parentNode.replaceChild(y,v);y.appendChild(v);var Z=Array.from(v.attributes);Z=_.p(Z);for(var P=Z.next();!P.done;P=Z.next())P=P.value,Y?KjG.has(P.name)&&hd(y,P.value,P.name):Rzc.has(P.name)?hd(y,P.value,P.name):EoG.has(P.name),v.removeAttribute(P.name);Y=y}else Y=v}if(Y.nodeType===Node.TEXT_NODE){v=void 0;y=E;for(Z=Y;((v=Z.nextSibling)==null?void 0:v.nodeType)===Node.TEXT_NODE;)P=void 0,(P=Z).textContent!=null||(P.textContent=""),Z.nextSibling.textContent&&
(Z.textContent+=Z.nextSibling.textContent),y.removeChild(Z.nextSibling);if(B.stripWhitespace&&Y.textContent&&!Y.textContent.trim()){E.removeChild(Y);Y=Y.nextSibling;continue}}BzD(Y,B,{parentIndex:c,parentInfo:e});Y.parentNode&&c++;Y=Y.nextSibling}}var z;if((z=E.hasAttributes)==null?0:z.call(E)){z=I=UcD(I);e=!1;c=Array.from(E.attributes);c=_.p(c);for(v=c.next();!v.done;v=c.next())v=v.value,e=qCJ(E,z,v.name,v.value)||e;T=e||T}E.nodeType===Node.TEXT_NODE&&(z=kKc(E.textContent),z.length&&(E.textContent=
fdf(z)||" ",I=UcD(I),VSF(I,"text","textContent",z),T=!0));I&&T&&(I.infoIndex=B.nodeInfoList.push(I)-1)};
Dci=function(E,B){B={nodeInfoList:[],stripWhitespace:(B===void 0?!1:B)||E.hasAttribute("strip-whitespace")};BzD(E.content,B);return B};
$Xi=function(E){Object.assign(E,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
TzJ=function(E,B,I){B.signalCache!=null||(B.signalCache={});var T=B.signalCache[I];if(!T){var e=I.split("."),c,Y;T=_.d("web_polysi_immutable_root_fix_killswitch")?!((c=E.options)==null?0:(Y=c.immutableProps)==null?0:Y.has(e[0])):!Ib4(E,e[0]);if(e.length>1&&T){var v=E.getPathMutationSignal(e);T=function(){var y=uQ(E.owner,function(){return E.getWithPath([e[0]])}),Z,P=(Z=v())==null?void 0:Z.value;
return{rootWasDefined:y!==void 0,value:P}}}else T=function(){var y=E.getWithPath(e);
return{rootWasDefined:y!==void 0,value:y}};
B.signalCache[I]=T}return T()};
lbQ=function(E,B,I,T,e){B=B.parts.map(function(Y,v){if(Y.type==="literal"){I.partWasDefined!=null||(I.partWasDefined=[]);var y;(y=I.partWasDefined)[v]||(y[v]=Y.value!==void 0);return Y.value}var Z;if(Y.type==="method"){var P,z=(P=(Z=I.partWasDefined)==null?void 0:Z[v])!=null?P:!1;z||(z=Y.signature.args.every(function(x){return x.type==="literal"}));
var m=!1,u=!0;Z=Y.signature.args.map(function(x){if(x.type==="literal")return x.value;if(x.type!=="path")throw Error("Gg`"+x.type);var M=TzJ(E,I,x.path);x=M.value;M=M.rootWasDefined;m||(m=M);u&&(u=M);return x});
z||(z=e===1?u:m);I.partWasDefined!=null||(I.partWasDefined={});I.partWasDefined[v]=z;if(!z)return;Z=(v=TzJ(E,I,Y.signature.methodName).value)&&typeof v==="function"?v.apply(T,Z):void 0}else P=TzJ(E,I,Y.path),Z=P.value,I.partWasDefined!=null||(I.partWasDefined={}),(z=I.partWasDefined)[v]||(z[v]=Z!==void 0||P.rootWasDefined);Y.negate&&(Z=!Z);return Z});
if(B.length===1){var c;return((c=I.partWasDefined)==null?0:c[0])?B[0]:eQ6}return B.join("")};
cNf=function(E){return typeof E==="object"&&!!E&&"notifyPath"in E&&"canNotifyPath"in E};
imJ=function(E){return typeof E==="object"&&!!E&&"notifyPath"in E};
pHJ=function(E){return"polymerController"in E};
YU6=function(E,B){B=""+dp(B)[0];if(cNf(E))return E.canNotifyPath(B);if(pHJ(E)&&cNf(E.polymerController))return E.polymerController.canNotifyPath(B);if(imJ(E)){var I;return!((I=E.properties)==null||!I[B])}if(pHJ(E)&&imJ(E.polymerController)){var T;return!((T=E.polymerController.properties)==null||!T[B])}return!1};
abQ=function(E,B,I){cNf(E)||imJ(E)?E.notifyPath(B,I):pHJ(E)&&(cNf(E.polymerController)||imJ(E.polymerController))&&E.polymerController.notifyPath(B,I)};
yNd=function(E,B,I){if(I!==eQ6){E.kind==="attribute"||E.target!=="textContent"&&(E.target!=="value"||B.localName!=="input"&&B.localName!=="textarea")||(I=I===void 0?"":I);var T,e=(T=vo6.Polymer)==null?void 0:T.sanitizeDOMValue;e&&(I=e(I,E.target,E.kind,B));if(E.kind==="attribute"){E=E.target;if(E==="class"||E==="name"||E==="slot")B=(0,_.FN)(B);hd(B,I,E)}else if(E=E.target,I!==B[E]||typeof I==="object")B.loggingStatus&&(B.loggingStatus.isDeclarativeExternal=!0,a3(B.localName,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
B[E]=I,B.loggingStatus&&(B.loggingStatus.isDeclarativeExternal=!1)}};
CYD=function(E,B,I,T){var e=B.parts[0];if(B.parts.length!==1||e.type!=="path"||!YU6(I,B.target))return!1;var c=_.p(e.path.split(".")),Y=c.next().value,v=bi(c);if(!_.d("web_polysi_immutable_root_fix_killswitch")&&Ib4(E,Y))return!1;T.signalCache!=null||(T.signalCache={});c=T.signalCache[e.path];var y;c=(y=c)==null?void 0:y().value;if((c==null?void 0:c.path)!==void 0){T=dp(c.path);var Z=dp(e.path);T=[B.target].concat(_.ad(T.slice(Z.length-1)));abQ(I,T,e.negate?!c.value:c.value);return!0}var P=sM(E,Y);
var z=P.getChangeRecordSignal(v),m=!1;c=function(){if(!m){var x=uQ(E.owner,function(){return P.getWithPath([])});
m||(m=x!==void 0)}return{value:z(),rootWasDefined:m}};
T.signalCache[e.path]=c;T.partWasDefined!=null||(T.partWasDefined={});c=c();(Z=T.partWasDefined)[0]||(Z[0]=c.rootWasDefined);var u=uQ(E.owner,function(){return P.getWithPath(v)});
T.partWasDefined[0]&&uQ(E.owner,function(){return void yNd(B,I,e.negate?!u:u)});
return!0};
wHB=function(E,B,I,T,e,c){if(!CYD(E,B,I,T)){var Y=lbQ(E,B,T,e,c);uQ(E.owner,function(){return void yNd(B,I,Y)})}};
ZmF=function(E,B,I,T,e,c){I=_.p(I);for(var Y=I.next(),v={};!Y.done;v={infoIndex:void 0},Y=I.next()){Y=Y.value;var y=Y.bindings;v.infoIndex=Y.infoIndex;Y=Y.parentInfo;if(y){y=_.p(y);for(var Z=y.next(),P={};!Z.done;P={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},Z=y.next()){P.b$jscomp$254=Z.value;if(v.infoIndex===void 0)throw Error("Hg");P.bindingCtx$jscomp$4={};E.effect(function(z,m){return function(){e&&!e()||wHB(E,z.b$jscomp$254,B[m.infoIndex],z.bindingCtx$jscomp$4,T,c)}}(P,v))}}Y&&ZmF(E,B,[Y],
T,e,c)}};
PYd=function(E,B){E=(B.parentInfo?PYd(E,B.parentInfo):E).firstChild;for(var I=0;E;E=E.nextSibling)if(B.parentIndex===I++)return E;throw Error("Ig");};
mXf=function(E,B,I,T){E=document.importNode(E.content,!0);E.__noInsertionPoint=!(T==null?0:T.hasInsertionPoint);for(var e=Array(B.length),c={},Y=0;Y<B.length;Y++){var v=B[Y],y=PYd(E,v);e[Y]=y;v.id&&(c[v.id]=y);if(v.templateInfo){var Z=y.parentElement;Z&&(Z.templateInfo=v.templateInfo,Z.parentSignalProxy=I,Z.eventListenerHost=T.eventListenerHost,Z.stampingEnabled=T.enabledSignal)}Z=void 0;if((Z=v.events)==null?0:Z.length)for(Z=0;Z<v.events.length;Z++){var P=v.events[Z];zQQ(T.eventListenerHost,y,P.name,
P.value,T.getModel)}}ZmF(I,e,B,T.thisCtx,T.enabledSignal,T.methodInvocationRequirement);return{root:E,nodes:e,nodesById:c}};
dXt=function(E,B){E=E();var I;(I=QWt.ShadyCSS)==null||I.prepareTemplate(E,B);B=Dci(E);return{template:E,nodeInfoList:B.nodeInfoList,hasInsertionPoint:B.hasInsertionPoint}};
u9d=function(){hQc=!1;for(var E=u6.length,B=0;B<E;B++){var I=u6[B];if(I)try{I()}catch(T){Promise.resolve().then(function(){throw T;})}}u6.splice(0,E);
sWf+=E};
Omi=function(E){hQc||(hQc=!0,L6t.textContent=(xXB++).toString());u6.push(E);return GtG++};
_.Gg=function(E,B,I){L$++;E=B?new noJ(L$,E,B,I):new MrG(L$,E);x7.set(L$,E);return L$};
HmQ=function(E){(E=x7.get(E))&&E.cancel()};
goF=function(E,B){E=NzJ.get(E);return E?(B=E.get(B))?B:null:null};
_.OM=function(E,B,I,T){var e=goF(E,B);if(!e){e=new SUB;var c=NzJ.get(E);c||(c=new Map,NzJ.set(E,c));c.set(B,e)}E=I.bind(E);e.run(E,T,void 0)};
_.JNc=function(E,B){var I;(I=goF(E,B))==null||I.cancel()};
W64=function(E){var B;(B=goF(E,"doRender"))==null||B.flush()};
n$=function(E){var B;return(B=E.hostElement)!=null?B:E};
XHc=function(E){var B=E.indexOf(".");return B===-1?E:E.slice(0,B)};
rNc=function(E,B,I,T,e,c){c=(e=(T=c?XHc(B):B)?B:null)?E.get(e):E.__data[B];e&&c===void 0&&(c=I[B]);_.$O(E.hostElement,lri(T)+"-changed",{value:c,queueProperty:!0,path:e!=null?e:void 0},{bubbles:!1,composed:!1})};
bmF=function(E,B){E.__isReflecting=!0;AFG(E.hostElement,B,E.__data[B]);E.__isReflecting=!1};
ooc=function(E){if(E._onIronRequestResizeNotifications){var B=E._onIronRequestResizeNotifications.bind(E);E._onIronRequestResizeNotifications=function(I){_.XN(I)!==E.hostElement&&B(I)}}E._ariaActiveAttributeChanged&&(E._ariaActiveAttributeChanged=E._ariaActiveAttributeChanged.bind(E.hostElement));
E._activeChanged&&(E._activeChanged=function(I){E.toggles?hd(E.hostElement,I?"true":"false",E.ariaActiveAttribute):E.hostElement.removeAttribute(E.ariaActiveAttribute);E._changedButtonState()});
E._asyncClick&&(E._asyncClick=function(){_.Gg(function(){E.hostElement.click()},1)});
!E.keyEventTarget||E.keyEventTarget instanceof EventTarget||(E.keyEventTarget=n$(E.keyEventTarget));E._disabledChanged&&(E._disabledChanged=E._disabledChanged.bind(E.hostElement));E._observeItems&&(E._observeItems=function(I){var T=n$(I);return _.QT(T).observeNodes(function(e){E._updateItems();E._updateSelected();_.$O(T,"iron-items-changed",e,{bubbles:!1,cancelable:!1})})});
E._updateItems&&E._updateItems===_.Mi._updateItems&&(E._updateItems=function(){var I=_.QT(E.hostElement).queryDistributedElements(E.selectable||"*");I=Array.prototype.filter.call(I,E._bindFilterItem);E._setItems(I)});
E._computeKeyboardClass&&(E._computeKeyboardClass=function(I){_.VQ(E.hostElement,"keyboard-focus",I)});
E.ensureRipple&&(E.ensureRipple=function(I){if(E.hasRipple&&!E.hasRipple()){if(!E._createRipple)return;E._ripple=E._createRipple();E._ripple.noink=E.noink;var T=E._rippleContainer||E.hostElement;T&&_.n(T).appendChild(E._ripple)}var e;if(I&&((e=E._ripple)==null?0:e.uiDownAction)){T=_.n(E._rippleContainer||E.hostElement);var c;e=(c=I.composedPath())==null?void 0:c[0];T.contains(e)&&E._ripple.uiDownAction(I)}});
E._updateMultiselectable&&(E._updateMultiselectable=function(I){I?E.hostElement.setAttribute("aria-multiselectable","true"):E.hostElement.removeAttribute("aria-multiselectable")})};
ANB=function(E,B,I){I=_.p(I);for(var T=I.next();!T.done;T=I.next())Pgc(T.value.constructor,E);Pgc(B.constructor,E)};
UXG=function(E,B){E=_.p(E);for(var I=E.next();!I.done;I=E.next())if(I=I.value,I.type==="signal"){var T=I.propertyKey;if(B.hasOwnProperty(T)&&B[T]!=null&&I.attributeType===Object){a:{T=B[T].constructor;for(var e=_.p(jWQ),c=e.next();!c.done;c=e.next())if(c=c.value,T===c){T=c;break a}T=Object}I.attributeType=T}}};
ktd=function(){};
trB=function(E){var B;return(B=E.hostElement)!=null?B:E};
fbc=function(){throw Error("Mg");};
VrQ=function(E,B){E.constructor.prototype.useSignals=!0;var I=new E.constructor;ANB(I,E,B.behaviors);UXG(B.reactiveSchemas,I);I={};for(var T=_.p(B.reactiveSchemas),e=T.next();!e.done;e=T.next())e=e.value,e.type==="signal"&&(I[e.propertyKey]=e.attributeType);var c={copyPropertiesToProto:fbc,didRegister:!1,typesForSignals:I},Y=["disable-upgrade"].concat(_.ad(B.observedAttributes)),v=function(y){Hl.call(this,E,B,c,y)};
_.L(v,Hl);_.Up.Object.defineProperties(v,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Y}}});
c.copyPropertiesToProto=function(){for(var y=0;y<B.behaviors.length;y++)mcJ(B.behaviors[y],v.prototype);mcJ(E,v.prototype)};
B.legacyOptimizations||c.copyPropertiesToProto();v.prototype.is=E.is;return v};
qUc=function(E,B){if(Object.getPrototypeOf(B.prototype).constructor!==_.r)throw Error("Ng");B.prototype.is=E.is;return VrQ(B.prototype,E)};
F6F=function(E){return E.type==="compute"||E.type==="computeWithMethod"};
DXi=function(E){for(var B=E.reactiveSchemas.filter(F6F),I=new Map,T=new Map,e=new Map,c=_.p(B),Y=c.next();!Y.done;Y=c.next())Y=Y.value,I.set(Y.propertyKey,Y),T.set(Y.propertyKey,[]),e.set(Y.propertyKey,0);c=0;B=_.p(B);for(Y=B.next();!Y.done;Y=B.next()){Y=Y.value;for(var v=_.p(Y.type==="computeWithMethod"?Y.method.args:Y.args),y=v.next();!y.done;y=v.next())y=y.value,y.type!=="literal"&&(y=y.path.split(".")[0],T.has(y)&&(T.get(y).push(Y.propertyKey),e.set(Y.propertyKey,e.get(Y.propertyKey)+1),c++))}Y=
[].concat(_.ad(T.keys())).filter(function(Z){return e.get(Z)===0});
for(B=[];Y.length;)for(v=Y.shift(),B.push(I.get(v)),v=_.p(T.get(v)),y=v.next();!y.done;y=v.next())y=y.value,e.set(y,e.get(y)-1),c--,e.get(y)===0&&Y.push(y);I=E.reactiveSchemas.filter(function(Z){return!F6F(Z)});
E.reactiveSchemas=[].concat(_.ad(I),_.ad(B))};
K6F=function(E,B){if(B.properties)for(var I=_.p(Object.entries(B.properties)),T=I.next();!T.done;T=I.next()){var e=_.p(T.value);T=e.next().value;e=e.next().value;E.properties[T]=typeof e==="function"?{type:e}:e}B.observers&&E.observers.push.apply(E.observers,_.ad(B.observers));B.disabledPolySiReactions&&E.disabledPolySiReactions.push.apply(E.disabledPolySiReactions,_.ad(B.disabledPolySiReactions))};
RQd=function(E,B){for(var I=B.length-1;I>=0;I--){var T=B[I];Array.isArray(T)?RQd(E,T):E.indexOf(T)<0&&E.unshift(T)}};
Ewf=function(E,B){E.reactiveSchemas=E.reactiveSchemas.filter(function(I){return I.type==="observe"&&B.includes(I.method.methodName)||F6F(I)&&B.includes(I.propertyKey)?!1:!0})};
$A4=function(E,B){var I=B.prototype,T,e,c={is:E.is,reactiveSchemas:[],observedAttributes:[],behaviors:[adi.InjectBehavior,zg.prototype],disableElementRegistration:E.disableElementRegistration,provide:(T=E.providers)!=null?T:[],reactivityMode:E.reactivityMode,signalProperties:(e=I.signalProperties)!=null?e:[]};"template"in B?c.templateGetter=function(){return B.template}:E.getTemplate&&(c.templateGetter=E.getTemplate);
I.behaviors&&RQd(c.behaviors,I.behaviors);BPQ(c,B);return c};
BPQ=function(E,B){for(var I=B.prototype,T={properties:{},observers:[],disabledPolySiReactions:[]},e=_.p(E.behaviors),c=e.next();!c.done;c=e.next())K6F(T,c.value);K6F(T,I);if(E.signalProperties)for(I=_.p(E.signalProperties),e=I.next();!e.done;e=I.next())delete T.properties[e.value];I=_.p(Object.entries(T.properties));for(e=I.next();!e.done;e=I.next()){c=_.p(e.value);e=c.next().value;c=c.next().value;var Y=void 0;if((Y=E.signalProperties)==null||!Y.includes(e)){Y=void 0;var v=E,y=c.type;if(!y)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{y=Reflect.getMetadata("design:type",B,e);for(var Z=_.p(IPi),P=Z.next();!P.done;P=Z.next())if(P=P.value,y===P){y=P;break a}y=Object}else y=String;c.computed||c.selector||(v.reactiveSchemas.push({type:"signal",propertyKey:e,value:c.value,attributeType:y,readOnly:c.readOnly}),v.observedAttributes.push(_.vU(e)));c.reflectToAttribute&&v.reactiveSchemas.push({type:"reflect",propertyKey:e});if(c.computed){y=oki(c.computed);if(!y)throw Error("Og");v.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:e,method:y,value:c.value})}c.observer&&v.reactiveSchemas.push({type:"observe",method:{methodName:c.observer,args:[{type:"path",path:e}]}});c.notify&&v.reactiveSchemas.push({type:"notify",propertyKey:e});c.selector&&v.reactiveSchemas.push({type:"redux",propertyKey:e,selector:c.selector,selectorArgs:(Y=c.selectorArgs)!=null?Y:[]})}}TPd&&DXi(E);B=_.p(T.observers);for(e=B.next();!e.done;e=B.next())I=E,e=e.value,(c=oki(e))?I.reactiveSchemas.push({type:"observe",method:c}):console.log('Warning: unable to parse observe declaration: "'+
e+'"');Ewf(E,T.disabledPolySiReactions)};
e6G=function(E,B){for(var I=0;I<B.length;I++){var T=B[I],e=void 0;(e=T).showHideApi!=null||(e.showHideApi={});e=void 0;!!E!==!((e=T.showHideApi)==null||!e.hideTemplateChildren)&&(T.nodeType===Node.TEXT_NODE?E?(T.showHideApi.polymerTextContent=T.textContent,T.textContent=""):(e=void 0,T.textContent=(e=T.showHideApi.polymerTextContent)!=null?e:null):T instanceof Element&&T.localName==="slot"?E?(T.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.FN)((0,_.FN)(T).parentNode).replaceChild(T.showHideApi.polymerReplaced,
T)):(e=T.showHideApi.polymerReplaced)&&(0,_.FN)((0,_.FN)(e).parentNode).replaceChild(T,e):T instanceof HTMLElement&&T.style&&(E?(T.showHideApi.polymerDisplay=T.style.display,T.style.display="none"):T.style.display=T.showHideApi.polymerDisplay));T.showHideApi.hideTemplateChildren=E;T.showHideChildren&&T.showHideChildren(E)}};
cuc=function(){if(!lPB){var E=document.createElement("style");E.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(E);lPB=!0}};
Ni=function(){return _.d("disable_hidden_dom_if_using_stamper")||_.d("creator_disable_hidden_dom_if_using_stamper")};
iDQ=function(E,B){var I=_.gp().getState();return B?E.apply(null,[I].concat(_.ad(B))):E(I)};
aPD=function(){if(pbt)return pbt;var E=_.p(_.lQ(0,void 0,"Nl6eIe")),B=E.next().value;E.next();var I=E.next().value;_.gp().subscribe(function(){Y5G(I)});
return pbt=B};
Y5G=function(E){_.d("delay_redux_signal_update_killswitch")?E(function(B){return B+1}):vwt||(vwt=!0,Promise.resolve().then(function(){E(function(B){return B+1});
vwt=!1}))};
_.gp=function(){return yuD.getAppStore()};
SV=function(E,B){return yuD.getSelectFn()(E,B)};
_.Jd=function(E){yuD.getDispatchFn()(E)};
CNc=function(E,B){var I={},T;for(T in E)I[T]=B(E[T],T);return I};
_.Wl=function(E,B){return function(){var I;return(I=_.s_(E))!=null?I:B}};
_.XS=function(E,B){var I=Object.assign({},E),T;for(T in B)B.hasOwnProperty(T)&&(I[T]=_.Wl(E[T],B[T]));return I};
wbQ=function(E,B,I){E instanceof Element&&(I.debugName||(I.debugName="<"+E.tagName.toLowerCase()+(E.tagName.includes("-")?">":"."+E.className+">")),_.d("ytwiz_enable_debug_component_props")&&(E.debugProps||(E.debugProps=CNc(B,function(T){return function(){return T()}}))))};
_.rp=function(E,B){var I=function(T){var e={stack:[],error:void 0,hasError:!1};try{var c=ZDt={};var Y=PNd(e,rLc("component()")),v;if(((v=I)==null?0:v.idomCompat)&&T.renderedFromIdom){Y==null||Y.attr("idomCompat",!0);var y,Z=typeof I.idomCompat==="object"?(y=I)==null?void 0:y.idomCompat.callbacks:{},P=_.p(z6c(T,Z,I.debugName)),z=P.next().value;P.next();var m=P.next().value,u=mAQ(E,z);c.privateValue=u;ZDt=void 0;wbQ(u,z,I);Y==null||Y.attr("debugName",I.debugName);var x=tnJ(u),M=Array.isArray(x)?x[0]:
x;M[BA]||(M[BA]={});M[BA].updateSignalsFromIdomProps=m;return u}var N=CNc(T,QFc);var W=mAQ(E,N);c.privateValue=W;ZDt=void 0;wbQ(W,N,I);Y==null||Y.attr("debugName",I.debugName);return W}catch(U){e.error=U,e.hasError=!0}finally{dAF(e)}};
I.debugName=B===void 0?"":B;return I};
mAQ=function(E,B){E=E(B);return eI(E)};
h6c=function(E,B){E[B]||(E=new _.P7("IDOM interop setter undefined. Key:",B),_.xV(E))};
QFc=function(E,B){return B==="children"||B==="ref"||typeof E==="function"||E===void 0?E:function(){return _.s_(E)}};
z6c=function(E,B,I){var T={},e={},c={},Y={},v;for(v in E){Y={key$jscomp$886:Y.key$jscomp$886};Y.key$jscomp$886=v;var y=E[Y.key$jscomp$886];if(Y.key$jscomp$886==="children"||Y.key$jscomp$886==="ref")T[Y.key$jscomp$886]=y;else if(typeof y==="function")Y.key$jscomp$886 in B||y.length>0?(c[Y.key$jscomp$886]=y,T[Y.key$jscomp$886]=function(P){return function(){return c[P.key$jscomp$886].apply(c,_.ad(_.aG.apply(0,arguments)))}}(Y)):T[Y.key$jscomp$886]=y;
else if(!(E[Y.key$jscomp$886]===void 0&&Y.key$jscomp$886 in B)){var Z=_.p(_.lQ(E[Y.key$jscomp$886],{debugName:"__cwis:"+I+":"+Y.key$jscomp$886},"cEBU8c"));y=Z.next().value;Z=Z.next().value;T[Y.key$jscomp$886]=y;e[Y.key$jscomp$886]=Z}}return[T,e,function(P){var z={},m;for(m in P)z={key$jscomp$887:z.key$jscomp$887,val$jscomp$116:void 0},z.key$jscomp$887=m,z.val$jscomp$116=P[z.key$jscomp$887],z.key$jscomp$887!=="children"&&z.key$jscomp$887!=="ref"&&(typeof z.val$jscomp$116==="function"?z.key$jscomp$887 in
B?c[z.key$jscomp$887]=z.val$jscomp$116:z.val$jscomp$116.length>0&&(c[z.key$jscomp$887]=z.val$jscomp$116,_.OG(new _.P7("Callback detected that was not set in the idomCompat callbacks map. Key:",z.key$jscomp$887))):z.key$jscomp$887 in B&&z.val$jscomp$116===void 0||(h6c(e,z.key$jscomp$887),vh(function(u){return function(){e[u.key$jscomp$887](u.val$jscomp$116)}}(z))))}]};
Ltc=function(E,B,I){var T=Cb4(E.prototype,sFt,E.prototype.behaviors);T.prototype.is=B;T.prototype.localName=B;I&&uMG(T,I);return function(e){e&&(T.prototype.hostElement=e);var c=new T;c.root=c;c.hostElement=e;return c}};
uMG=function(E,B){var I;Object.defineProperty(E.prototype,"_template",{get:function(){I===void 0&&(I=B());return I},
set:function(T){I=T},
configurable:!0,enumerable:!0})};
MUG=function(E,B,I,T){function e(){if(!u){for(var x=new Set,M=_.p(P),N=M.next();!N.done;N=M.next()){N=N.value;for(var W=_.p(Object.getOwnPropertyNames(N)),U=W.next();!U.done;U=W.next()){U=U.value;var q=void 0,f=(q=Object.getOwnPropertyDescriptor(N,U))==null?void 0:q.value;f&&f instanceof Function&&!b6(U)&&x.add(U)}}M=_.p(Object.entries(Object.getOwnPropertyDescriptors(E.prototype)));for(N=M.next();!N.done;N=M.next())W=_.p(N.value),N=W.next().value,W=W.next().value,W.value instanceof Function&&!b6(N)&&
x.add(N);u=x}return u}
xAD(E,B,T==null?void 0:T.providers);w3G(E.prototype,E,!0);var c=Ltc(E,B,I),Y,v=(Y=E.prototype.properties)!=null?Y:{},y,Z,P=(Z=(y=E.prototype.behaviors)==null?void 0:y.flat(Infinity))!=null?Z:[];I=_.p(P);for(Y=I.next();!Y.done;Y=I.next())v=Object.assign({},Y.value.properties,v);var z=[].concat(_.ad(G6i),_.ad(Object.keys(v).map(function(x){return _.vU(x)}))),m=!1,u;
return{ctor:function(x,M){var N=c(x),W,U;x=[].concat(_.ad((W=T==null?void 0:T.allowedProps)!=null?W:[]),_.ad((U=T==null?void 0:T.allowedPropsFromBehaviors)!=null?U:[]));N.allowedProps=x.length>0?x:void 0;W={};U=_.p(z);for(x=U.next();!x.done;x=U.next())x=x.value,W[x]=_.yT(x);N.__dataAttributes=W;var q=N.ready.bind(N);N.ready=function(){M.beforeReady();q();if(p$(B)&&!m){var f=N.__templateInfo;if(f==null?0:f.hostProps){f=_.p(Object.keys(f.hostProps));for(var ed=f.next();!ed.done;ed=f.next())a3(B,ed.value,
"PROPERTY_ACCESS_GET_INTERNAL")}m=!0}};
N._overrideLegacyUndefined=!0;return N},
props:v,observedAttributes:z,getInitialMethods:e,getPropsToForwardBeforeRegister:function(){for(var x=[],M=new Set,N=_.p(Object.keys(v)),W=N.next();!W.done;W=N.next())W=W.value,x.push([W,v[W].readOnly]),M.add(W);N=e();W=_.p(Object.keys(Object.getOwnPropertyDescriptors(E.prototype)));for(var U=W.next();!U.done;U=W.next())U=U.value,!ODc(U)||N.has(U)||M.has(U)||(x.push([U,!1]),M.add(U));M=_.p(nwJ);for(N=M.next();!N.done;N=M.next())x.push([N.value,!0]);return x},
getPropsToForwardBeforeReady:function(x){for(var M=[],N=_.p(Object.entries(x)),W=N.next();!W.done;W=N.next()){var U=_.p(W.value);W=U.next().value;U=U.next().value;if(ODc(W)&&!(U instanceof Function)&&(M.push([W,!1]),p$(B))){var q=U=void 0;(q=(U=x)._createPropertyAccessor)==null||q.call(U,W)}}return M},
shouldForwardProp:ODc,shouldLog:p$}};
xAD=function(E,B,I){vkc(E,I);E.prototype.behaviors.unshift(HDF);if(Rx6()){if(p$(B)){var T;(T=E.prototype).behaviors!=null||(T.behaviors=[]);E.prototype.behaviors.unshift(Idi())}Tii(E)}_.g(zg.prototype)(E.prototype,"__templateHelpers")};
b6=function(E){return NPi.has(E)||E.startsWith("__compute__")};
ODc=function(E){return!b6(E)&&!E.startsWith("_")&&!E.endsWith("_")};
XbF=function(E,B){function I(){var m=y();m=_.p(m);for(var u=m.next();!u.done;u=m.next()){var x=_.p(u.value);u=x.next().value;x=x.next().value;gwd(z.prototype,u,x)}T=!0}
var T=!1,e=E.ctor,c=E.getInitialMethods,Y=E.observedAttributes,v=E.getPropsToForwardBeforeReady,y=E.getPropsToForwardBeforeRegister,Z=E.shouldForwardProp,P=E.shouldLog,z=function(){var m=HTMLElement.call(this)||this;m.didForwardDynamicProps=!1;m.loggingStatus={};T||I();m.inst=e(m,{beforeReady:function(){m.didForwardDynamicProps||(m.forwardDynamicProps(),m.didForwardDynamicProps=!0)}});
m.controllerProxy=BiJ(m.inst,B);m.forwardMethods();return m};
_.L(z,HTMLElement);z.prototype.forwardMethods=function(){for(var m=this,u=_.p(this.inst.getExtraMethodsToForward()),x=u.next(),M={};!x.done;M={method$jscomp$61:void 0},x=u.next()){var N=_.p(x.value);x=N.next().value;N=N.next().value;M.method$jscomp$61=N;this[x]=function(W){return function(){return W.method$jscomp$61.call.apply(W.method$jscomp$61,[m.inst].concat(_.ad(_.aG.apply(0,arguments))))}}(M)}u=_.p(c());
for(M=u.next();!M.done;M=u.next())M=M.value,Z(M)&&S5i(this,M),P(B)&&!b6(M)&&Juc(this.inst,M)};
z.prototype.forwardDynamicProps=function(){var m=v(this.inst);m=_.p(m);for(var u=m.next();!u.done;u=m.next()){var x=_.p(u.value);u=x.next().value;x=x.next().value;gwd(this,u,x);P(B)&&!b6(u)&&WtJ(this.inst,u)}};
z.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
z.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
z.prototype.attributeChangedCallback=function(m,u,x){this.inst.attributeChangedCallbackWrapper(m,u,x)};
_.Up.Object.defineProperties(z.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return B}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Up.Object.defineProperties(z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Y}}});
customElements.define(B,z)};
gwd=function(E,B,I){E.hasOwnProperty(B)||Object.defineProperty(E,B,{get:function(){var T,e=((T=E.is)!=null?T:E.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||a3(e,B,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,T=this.polymerController[B],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,T},
set:function(T){if(!I){var e,c=((e=E.is)!=null?e:E.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||a3(c,B,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=B,this.loggingStatus.bypassProxyController=!0,this.polymerController[B]!==T&&(e={},this.polymerController.setProperties((e[B]=T,e)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
S5i=function(E,B,I){var T=E.polymerController;E[B]=function(){var e=_.aG.apply(0,arguments);E.loggingStatus.currentExternalCall=B;E.loggingStatus.bypassProxyController=!0;var c,Y=((c=E.is)!=null?c:E.tagName).toLowerCase();a3(Y,B,"PROPERTY_ACCESS_CALL_EXTERNAL");var v;c=(v=I!=null?I:T[B])==null?void 0:v.call.apply(v,[T].concat(_.ad(e)));E.loggingStatus.currentExternalCall=void 0;E.loggingStatus.bypassProxyController=!1;return c}};
Juc=function(E,B){var I=E.hostElement,T=E[B];E[B]=function(){var e=_.aG.apply(0,arguments);if(I.loggingStatus.currentExternalCall!==B){var c,Y=((c=I.is)!=null?c:I.tagName).toLowerCase();a3(Y,B,"PROPERTY_ACCESS_CALL_INTERNAL")}return T==null?void 0:T.apply(E,e)}};
WtJ=function(E,B){var I=Object.getOwnPropertyDescriptor(E,B);I&&!I.get&&Object.defineProperty(E,B,{get:function(){$cc(E.hostElement,B);return I.value},
set:function(T){vl(E.hostElement,B);I.value=T}})};
ruG=function(E){return _.d("poly_si_dom_repeat_detached_fix_killswitch")||E.tagName!=="PS-DOM-REPEAT"?E.tagName==="DOM-REPEAT":!0};
ow6=function(E,B){var I=bDB(E);E instanceof Element&&I.unshift(E);E=_.p(I.filter(ruG));for(var T=E.next();!T.done;T=E.next()){T=_.p(T.value.__instances);for(var e=T.next();!e.done;e=T.next())if(e=e.value,e.root){e=Array.from(e.root.children);e=_.p(e);for(var c=e.next();!c.done;c=e.next())I.push.apply(I,_.ad(ow6(c.value,B)))}}return I.filter(function(Y){return Y.usePatchedLifecycles&&Y.lifecycleIsConnected===B})};
bDB=function(E){var B=null;E instanceof Element?B=Element.prototype.querySelectorAll:E instanceof DocumentFragment&&(B=DocumentFragment.prototype.querySelectorAll);return B?Array.from(B.call(E,"*")):[]};
o3=function(E){e2(function(){for(var B=_.p(ow6(E,!1)),I=B.next();!I.done;I=B.next()){I=I.value;I.lifecycleIsConnected=!0;try{var T=void 0,e=void 0,c=void 0,Y=void 0;(T=(Y=I.polymerController)!=null?Y:I)==null||(c=(e=T).connectedCallback)==null||c.call(e)}catch(v){_.xV(v)}}})};
Ad=function(E){e2(function(){for(var B=_.p(ow6(E,!0)),I=B.next();!I.done;I=B.next()){I=I.value;I.lifecycleIsConnected=!1;try{var T=void 0,e=void 0,c=void 0,Y=void 0;(T=(Y=I.polymerController)!=null?Y:I)==null||(c=(e=T).disconnectedCallback)==null||c.call(e)}catch(v){_.xV(v)}}})};
VUQ=function(){if(!AuQ){AuQ=!0;var E=[Node];jV&&E.push(jV.Wrapper);var B=Node.prototype.insertBefore,I=Node.prototype.removeChild;E=_.p(E);for(var T=E.next(),e={};!T.done;e={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},T=E.next())T=T.value,e.nativeInsertBefore=T.prototype.insertBefore,T.prototype.insertBefore=function(Y){return function(v,y){if(v instanceof DocumentFragment){var Z=Array.from(v.children);v=Y.nativeInsertBefore.call(this,v,y);
if(this.isConnected&&Y.nativeInsertBefore===B)for(y=_.p(Z),Z=y.next();!Z.done;Z=y.next())o3(Z.value);return v}Z=v instanceof Element&&v.isConnected;y=Y.nativeInsertBefore.call(this,v,y);Z&&Ad(v);this.isConnected&&o3(v);return y}}(e),e.nativeAppendChild=T.prototype.appendChild,T.prototype.appendChild=function(Y){return function(v){if(v instanceof DocumentFragment){var y=Array.from(v.children);
v=Y.nativeAppendChild.call(this,v);if(this.isConnected){y=_.p(y);for(var Z=y.next();!Z.done;Z=y.next())o3(Z.value)}return v}y=v instanceof Element&&v.isConnected;Z=Y.nativeAppendChild.call(this,v);y&&Ad(v);this.isConnected&&o3(v);return Z}}(e),e.nativeRemoveChild=T.prototype.removeChild,T.prototype.removeChild=function(Y){return function(v){var y=v instanceof Element&&v.isConnected,Z=Y.nativeRemoveChild.call(this,v);
y&&I===Y.nativeRemoveChild&&Ad(v);return Z}}(e),e.nativeReplaceChild=T.prototype.replaceChild,T.prototype.replaceChild=function(Y){return function(v,y){if(v instanceof DocumentFragment){var Z=Array.from(v.children);
v=Y.nativeReplaceChild.call(this,v,y);if(this.isConnected)for(Ad(y),y=_.p(Z),Z=y.next();!Z.done;Z=y.next())o3(Z.value);return v}Z=v instanceof Element&&v.isConnected;var P=this.isConnected,z=Y.nativeReplaceChild.call(this,v,y);P&&Ad(y);Z&&Ad(v);P&&o3(v);return z}}(e);
E=[Element];jV&&E.push(jV.Wrapper);E=_.p(E);T=E.next();for(e={};!T.done;e={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},T=E.next())T=T.value,T.prototype.before=jFt(T.prototype.before),T.prototype.after=jFt(T.prototype.after),e.nativeReplaceWith=T.prototype.replaceWith,T.prototype.replaceWith=function(Y){return function(){var v=_.aG.apply(0,arguments),y=_.p(UAF(v)),Z=y.next().value,
P=y.next().value;y=this.isConnected;Y.nativeReplaceWith.apply(this,v);v=_.p(P);for(P=v.next();!P.done;P=v.next())Ad(P.value);if(y)for(Ad(this),Z=_.p(Z),y=Z.next();!y.done;y=Z.next())y=y.value,y instanceof Element&&o3(y)}}(e),e.nativeRemove=T.prototype.remove,T.prototype.remove=function(Y){return function(){var v=this.isConnected;
Y.nativeRemove.call(this);v&&Ad(this)}}(e),e.nativeInsertAdjacentElement=T.prototype.insertAdjacentElement,T.prototype.insertAdjacentElement=function(Y){return function(v,y){var Z=y.isConnected;
v=Y.nativeInsertAdjacentElement.call(this,v,y);Z&&Ad(y);v.isConnected&&o3(v);return v}}(e),e.nativeSetAttribute=T.prototype.setAttribute,T.prototype.setAttribute=function(Y){return function(v,y){var Z=k6c(this);
if(!Z.usePatchedLifecycles)return Y.nativeSetAttribute.call(this,v,y);var P=this.getAttribute(v);Y.nativeSetAttribute.call(this,v,y);y=this.getAttribute(v);tUF(Z,v,P,y)}}(e),e.nativeRemoveAttribute=T.prototype.removeAttribute,T.prototype.removeAttribute=function(Y){return function(v){var y=k6c(this);
if(!y.usePatchedLifecycles)return Y.nativeRemoveAttribute.call(this,v);var Z=this.getAttribute(v);Y.nativeRemoveAttribute.call(this,v);Z!==null&&tUF(y,v,Z,null)}}(e),e.nativeToggleAttribute=T.prototype.toggleAttribute,T.prototype.toggleAttribute=function(Y){return function(v,y){var Z=k6c(this);
if(!this.usePatchedLifecycles)return Y.nativeToggleAttribute.call(this,v,y);var P=this.getAttribute(v),z=P!==null;y=Y.nativeToggleAttribute.call(this,v,y);y!==z&&tUF(Z,v,P,y?"":null);return y}}(e);
E=[Document,DocumentFragment,Element,ShadowRoot];jV&&E.push(jV.Wrapper);E=_.p(E);for(e=E.next();!e.done;e=E.next())e=e.value,e.prototype.prepend=jFt(e.prototype.prepend),e.prototype.append=jFt(e.prototype.append);(jV==null?void 0:jV.noPatch)===!0&&fPt();document.readyState==="complete"?o3(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&o3(document.body)});
var c=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");c&&c.get&&c.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(Y){Y||Ad(this);c.set.call(this,Y);return Y}})}};
jFt=function(E){return function(){var B=_.aG.apply(0,arguments),I=_.p(UAF(B)),T=I.next().value;I=I.next().value;E.apply(this,B);B=_.p(I);for(I=B.next();!I.done;I=B.next())Ad(I.value);if(this.isConnected)for(T=_.p(T),B=T.next();!B.done;B=T.next())B=B.value,B instanceof Element&&o3(B)}};
fPt=function(){for(var E=_.p(q5i),B=E.next();!B.done;B=E.next()){B=B.value.prototype;for(var I=_.p(FtF),T=I.next();!T.done;T=I.next()){T=T.value;var e=Object.getOwnPropertyDescriptor(B,T);e&&Object.defineProperty(B,"__shady_native_"+T,e)}}};
tUF=function(E,B,I,T){var e,c;if((e=E.polymerController)==null?0:(c=e.observedAttributes)==null?0:c.includes(B))if(E=E.polymerController,E.attributeChangedCallbackWrapper)E.attributeChangedCallbackWrapper.call(E,B,I,T);else{var Y;(Y=E.attributeChangedCallback)==null||Y.call(E,B,I,T)}};
UAF=function(E){var B=[],I=[];E=_.p(E);for(var T=E.next();!T.done;T=E.next())T=T.value,T instanceof Element&&T.isConnected&&I.push(T),T instanceof DocumentFragment?B.push.apply(B,_.ad(Array.from(T.children))):B.push(T);return[B,I]};
k6c=function(E){return!(E instanceof Element)&&E.node instanceof Element?E.node:E};
DAi=function(E,B){var I=B?["children"].concat(_.ad(B)):["children"];B=[];I=_.p(I);for(var T=I.next();!T.done;T=I.next()){var e=T.value;if(E.hasOwnProperty(e)){T=E[e];T=typeof T==="function"?T():T;T=eI(Array.isArray(T)?T:[T]).flat();if(e!=="children"){e=lri(e);for(var c=_.p(T),Y=c.next();!Y.done;Y=c.next())Y=Y.value,Y instanceof Element&&Y.setAttribute("slot",e)}B.push(T)}}B.length===0?E=[]:(E=eI(_.w("div",null,B)),E=Array.from(E.childNodes));return E};
R6c=function(E,B,I){var T={};_.QS(function(){var e={},c;for(c in B)if(B.hasOwnProperty(c)){var Y=void 0,v=void 0;if(!(((Y=I.slotProps)==null?0:Y.includes(c))||c==="children"||((v=I.callbackProps)==null?0:v.includes(c))||c==="ref")&&(Y=_.s_(B[c]),T[c]!==Y)){T[c]=Y;v=void 0;var y=(v=E.hostElement)!=null?v:E;Ktc.has(c)&&(y[c]=Y);e[c]=Y}}vh(function(){if(E.setProperties)E.setProperties(e);else for(var Z=_.p(Object.entries(e)),P=Z.next();!P.done;P=Z.next()){var z=_.p(P.value);P=z.next().value;z=z.next().value;
E[P]=z}})})};
ByD=function(E,B,I,T){var e=DAi(I,T.slotProps),c=_.d("web_wcw_disable_slot_host_shady_dom_wrap")?E:(0,_.FN)(E);e=_.p(e);for(var Y=e.next();!Y.done;Y=e.next())c.appendChild(Y.value);R6c(B,I,T);T=_.p(T.callbackProps||[]);e=T.next();for(c={};!e.done;c={kebabEventName:void 0,eventListener:void 0},e=T.next())Y=e=e.value,String(e).substring(0,2)==="on"&&I[Y]?(c.kebabEventName=lri(String(e).substring(2)),c.eventListener=I[Y],E.addEventListener(c.kebabEventName,c.eventListener),_.dt(function(P){return function(){E.removeEventListener(P.kebabEventName,
P.eventListener)}}(c))):B[Y]=I[Y];
if(I.ref){I=_.p(EsG(I.ref));var v=I.next().value,y=I.next().value,Z=B.attached.bind(B);B.attached=function(){v(E);Z()};
_.dt(function(){y()})}};
EsG=function(E){if(typeof E==="function"){var B;return[function(I){B=E(I)},
function(){var I;(I=B)==null||I()}]}if(!E.onRender||!E.onUnmount)throw Error("Sg");
return[E.onRender,E.onUnmount]};
eMJ=function(E,B,I,T,e){T=T===void 0?{}:T;var c=$JD,Y=!1;c?(Y=!0,$JD=void 0):(I5i=B,c=document.createElement(B),I5i=void 0);var v=c;v.usePatchedLifecycles=!0;v.lifecycleIsConnected=!1;c.loggingStatus={};var y=Tyc(E,B,c,T,e);_.dt(function(){v.lifecycleIsConnected&&(v.lifecycleIsConnected=!1,y.disconnectedCallback())});
Y||ByD(c,y,I,T);return c};
Tyc=function(E,B,I,T,e){e=e===void 0?MUG:e;l5d[B]!=null||(l5d[B]=e(E,B,T==null?void 0:T.getTemplate,T));var c=l5d[B],Y=c.ctor;e=c.getInitialMethods;var v=c.getPropsToForwardBeforeReady;E=c.getPropsToForwardBeforeRegister;T=c.shouldForwardProp;var y=c.observedAttributes,Z=c.shouldLog,P=Y(I,{beforeReady:function(){var z=P;z._takeAttributes?z._takeAttributes():z.setPropertiesFromInitialAttributeValues&&z.setPropertiesFromInitialAttributeValues();z=_.p(v(I.polymerController));for(var m=z.next();!m.done;m=
z.next()){var u=_.p(m.value);m=u.next().value;u=u.next().value;gwd(I,m,u);Z(B)&&!b6(m)&&WtJ(I.polymerController,m)}I.polymerController=BiJ(P,B)}});
I.polymerController=P;I.polymerController.observedAttributes=y;c=_.p(P.getExtraMethodsToForward());for(Y=c.next();!Y.done;Y=c.next())y=_.p(Y.value),Y=y.next().value,y=y.next().value,S5i(I,Y,y);e=_.p(e());for(c=e.next();!c.done;c=e.next())c=c.value,T(c)&&S5i(I,c),Z(B)&&!b6(c)&&Juc(P,c);E=_.p(E());for(T=E.next();!T.done;T=E.next())e=_.p(T.value),T=e.next().value,e=e.next().value,gwd(I,T,e);return P};
iEB=function(E,B){return UM===B?(E.isInert=!0,UM="",!0):crF===B?(E.isInert=!0,crF="",!0):!1};
p5c=function(E){var B=k7;k7=E;return B};
a5J=function(E){if(td.has(E))crF=E;else if(f$.has(E)&&k7&&YNG(k7)===E){var B;(B=k7)._numRenders!=null||(B._numRenders=0);k7._numRenders++;if(k7._numRenders>1)throw Error("Tg");return k7}};
vs6=function(E){td.has(YNG(E))?crF=YNG(E):f$.has(YNG(E))&&k7!==E&&(E._isInert=!0)};
YNG=function(E){var B;return(B=E==null?void 0:E.tagName.toLowerCase())!=null?B:""};
yrF=function(E,B){if(E.componentType===Z0)throw Error("Ug");f$.add(B);var I=function(){var T=HTMLElement.call(this)||this;T.is=B;if(I5i===B)return T.isInert=!0,T;T.createElement();return T};
_.L(I,HTMLElement);I.prototype.createElement=function(){if(!this.isInert){$JD=this;var T=_.p(P04(function(){return _.w(E,null)})).next().value;
$JD=void 0;$Xi(this);return T}};
customElements.define(B,I)};
w5Q=function(E,B,I,T,e){E.prototype.is=B;(T==null?0:T.useSink)?CPc(E,B,I,T,e):(I=MUG(E,B,I,T),XbF(I,B));return E};
CPc=function(E,B,I,T,e){VUQ();var c=_.rp(function(Y){return eMJ(E,B,Y,Object.assign({},T,{getTemplate:I}),e)},"a");
yrF(c,B);return c};
PPi=function(E){return!ZEi.has(E)};
Qfi=function(E,B,I,T){function e(){if(!z){for(var m=new Set(zMi),u=_.p(c.behaviors),x=u.next();!x.done;x=u.next()){x=x.value;for(var M=_.p(Object.getOwnPropertyNames(x)),N=M.next();!N.done;N=M.next()){N=N.value;var W=void 0,U=(W=Object.getOwnPropertyDescriptor(x,N))==null?void 0:W.value;U&&U instanceof Function&&m.add(N)}}u=_.p(Object.entries(Object.getOwnPropertyDescriptors(E.prototype)));for(x=u.next();!x.done;x=u.next())M=_.p(x.value),x=M.next().value,M=M.next().value,M.value instanceof Function&&
m.add(x);z=m}return z}
var c=$A4({is:B,disableElementRegistration:!1,getTemplate:I,providers:T==null?void 0:T.providers,reactivityMode:T==null?void 0:T.reactivityMode},E);if((T==null?0:T.allowedProps)||(T==null?0:T.allowedPropsFromBehaviors)){var Y,v;c.allowedProps=[].concat(_.ad((Y=T.allowedProps)!=null?Y:[]),_.ad((v=T.allowedPropsFromBehaviors)!=null?v:[]))}var y=qUc(c,E);B=y.observedAttributes;var Z={};I=_.p(c.reactiveSchemas);for(T=I.next();!T.done;T=I.next())if(T=T.value,T.type==="signal")Z[T.propertyKey]={readOnly:T.readOnly},
T.readOnly&&(Z[Ljd(T.propertyKey)]={readOnly:!0});else if(T.type==="compute"||T.type==="computeWithMethod"||T.type==="redux")Z[T.propertyKey]={readOnly:!0};var P=c.reactiveSchemas.length,z;return{ctor:function(m,u){m=new y(m);m.beforeReady=u.beforeReady;return m},
props:Z,observedAttributes:B,getInitialMethods:e,getPropsToForwardBeforeRegister:function(){for(var m=[],u=new Set,x=_.p(mJf),M=x.next();!M.done;M=x.next())M=M.value,m.push([M,M!=="observers"&&M!=="properties"]),u.add(M);x=_.p(Object.keys(Z));for(M=x.next();!M.done;M=x.next())M=M.value,m.push([M,Z[M].readOnly]),u.add(M);x=e();M=_.p(Object.keys(Object.getOwnPropertyDescriptors(E.prototype)));for(var N=M.next();!N.done;N=M.next())N=N.value,!PPi(N)||x.has(N)||u.has(N)||(m.push([N,!1]),u.add(N));m.push(["allowedProps",
!0]);return m},
getPropsToForwardBeforeReady:function(m){var u=[];m=_.p(Object.keys(m));for(var x=m.next();!x.done;x=m.next()){x=x.value;var M=e();PPi(x)&&!M.has(x)&&u.push([x,!1])}m=_.p(c.reactiveSchemas.slice(P));for(x=m.next();!x.done;x=m.next())x=x.value,x.type!=="compute"&&x.type!=="computeWithMethod"&&x.type!=="redux"&&x.type!=="signal"||u.push([x.propertyKey,x.type==="signal"?x.readOnly:!0]);return u},
shouldForwardProp:PPi,shouldLog:p$}};
_.A=function(E,B,I,T){var e,c,Y=(c=(e=T)==null?void 0:e.mode)!=null?c:0;T!=null||(T={});var v;(v=T).reactivityMode!=null||(v.reactivityMode=0);Y===1&&_.B7("creator_poly_si_disable_list").includes(B)&&(Y=2);return Y===1?w5Q(E,B,I,Object.assign({},T,{useSink:!0}),Qfi):w5Q(E,B,I,Object.assign({},T,{useSink:Y===2}))};
_.VE=function(){return function(E,B,I,T){var e,c,Y=(c=(e=T)==null?void 0:e.mode)!=null?c:2;T!=null||(T={});var v;(v=T).reactivityMode!=null||(v.reactivityMode=0);if(Y===0)throw Error("Vg`"+Y);return CPc(E,B,I,T,Y===1?Qfi:void 0)}};
_.qi=function(E){return _.d("creator_poly_si_killswitch")?!1:_.d("force_all_poly_si_batches")&&(E==="poly_si_all_on_test_check"||E==="creator_poly_si_batch_050"?0:E)||document.documentElement.hasAttribute("use-signals")?!0:!E||_.d(E+"_holdback_enabled")&&_.d("kevlar_polysi_holdback")?!1:_.d(E)};
FS=function(E){return E?E.icon?E.icon.iconType.toLowerCase():E.customThumbnail?"member":"":""};
dJd=function(E){if(!E)return"";E=_.p(E);for(var B=E.next();!B.done;B=E.next())if((B=B.value)&&B.liveChatAuthorBadgeRenderer&&(B=FS(B.liveChatAuthorBadgeRenderer))&&B!=="verified")return B;return""};
hMG=function(E,B){if(!E)return null;var I;return((I=E.find(function(T){return T&&T.liveChatAuthorBadgeRenderer?FS(T.liveChatAuthorBadgeRenderer)===B:!1}))==null?void 0:I.liveChatAuthorBadgeRenderer)||null};
_.OEJ=function(E){var B=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;E=sfi(E);B=sfi(B);var I=upi(E.hex);B=upi(B.hex);var T=B[0]/255;var e=B[1]/255,c=B[2]/255,Y=Math.max(T,e,c),v=Math.min(T,e,c),y=0,Z=0,P=.5*(Y+v);Y!=v&&(Y==T?y=60*(e-c)/(Y-v):Y==e?y=60*(c-T)/(Y-v)+120:Y==c&&(y=60*(T-e)/(Y-v)+240),Z=0<P&&P<=.5?(Y-v)/(2*P):(Y-v)/(2-2*P));T=[Math.round(y+360)%360,Z,P];I=LTf(I,B);for(E=xJf(E.hex);I<4.5;){E=T[2]>=.5?E.darker((4.5-I)/2):E.brighter((4.5-I)/2);I=E.toString();
e=G9c(I);if(!e.length)throw Error("Rd`"+I);I=e;I=LTf(I,B)}return E.hex()};
LTf=function(E,B){E=_.$96(E);B=_.$96(B);return(Math.max(E,B)+.05)/(Math.min(E,B)+.05)};
_.DN=function(E){return"#"+("000000"+(E&16777215).toString(16)).slice(-6)};
_.nsf=function(E){for(var B=0,I=0;I<E.length;I++)B=E.charCodeAt(I)+((B<<5)-B);E="#";for(I=0;I<3;I++)E+=("00"+(B>>I*8&255).toString(16)).slice(-2);return E};
Mkt=function(E){E=(E||"").split(":");E.length===1&&E.unshift("yt-icons");E[1]=E[1].toLowerCase();return E};
WTF=function(E,B){var I=(B=B===void 0?!1:B)?HE6:Nyi,T=B?gsQ:SNc;E.getIconNames().forEach(function(e){e=B?e:e.substring(e.indexOf(":")+1);E.name==="yt-icons"?Jrc.add(e):e.includes("-filled")?I.add(e):T.add(e)})};
K$=function(E,B,I,T){I=I===void 0?!1:I;T=T===void 0?!1:T;var e,c,Y;return _.a(function(v){if(v.nextAddress==1)return _.C(v,X5F,2);if(T)return v.return(Jrc.has(E));e=I?HE6:Nyi;c=I?gsQ:SNc;return B?(Y=E.includes("-filled")?E:E.concat("-filled"),v.return(e.has(Y))):v.return(c.has(E))})};
_.osD=function(E){if(rrG(E))return E;var B=E=E.toLowerCase();(E=bEi.get(E))&&(B=E);return B};
_.R3=function(E){if(rrG(E))return E.toString();var B=Arf.get(E);if(B)return B;B=E.toLowerCase();var I="yt-icons",T=B.replace(/_/g,"-");switch(E){case "MY_CHANNEL":B="account_circle";break;case "ADD_TO_LIBRARY":B="add";break;case "ALERT_WARN_RED":B="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":B="person_music";break;case "BLOCK_USER":B="block";break;case "CAPTIONS":B="closed_caption";break;case "CLOSED_CAPTION":I="av";B="closed-caption";break;case "COLLECTION":I="maps";B="layers";break;case "CONTACT":I=
"icons";B="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":I="ytcp-icons";B=T.split("creator-studio-")[1];break;case "DISMISSAL":B="close";break;case "DO_NOT_DISTURB":B="block";break;case "DOGFOOD":I="icons";B="pets";break;case "DRAFT":B="paper_corner_folded";break;
case "EMPTY_LIKE":B="like_outline";break;case "EXIT_APP":B="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":B=T;break;case "GAMES":I="ytg";B="my-games";break;case "GO_TO_PAGE":B="arrow-forward";break;case "GROUP":I="social";break;case "HIDE":B="not_interested";break;case "INPUT_COMPONENT":I="icons";B="settings-input-component";break;case "KIDS_BLOCK":B="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":I="ytg";B="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":I=
"ytg";B="membership-post-purchase";break;case "MULTIVIEW":B="screen_multi_view";break;case "MY_LOCATION":I="maps";B=T;break;case "NOTIFICATIONS_INBOX":B="NOTIFICATIONS";break;case "NEXT":B="chevron_right";break;case "OFFLINE":B="power-settings-new";break;case "PAUSE":I="miniplayer";break;case "PAYMENT":I="icons";break;case "PHONE_DOWNLOAD":B="phone_download";break;case "PREMIUM_STANDALONE":I="yt-logos";B="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":I="yt-logos";B="premium_standalone_cairo";
break;case "QUESTION_ANSWER":B="question_answer";break;case "REDEEM":I="icons";B="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":B="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":B="library_add";break;case "SCHOOL":I="yt-sys-icons";B="creator_academy";break;case "SETTINGS_LIGHT":B="settings_applications";break;case "SETTINGS_MATERIAL":B="settings";break;case "SEARCH_HISTORY":B="watch_history";break;case "SHOPPING_BAG":B="bag";break;case "SOCIAL":case "PEOPLE":I=
"yt-icons";B="people";break;case "STAFF_PICK":I="ytg";B="spotlight";break;case "START_DVR":B="add";break;case "STOP_DVR":I="av";B="stop";break;case "TAB_LIKED":B="like";break;case "TAB_INBOX":B="mail";break;case "TERMS_OF_SERVICE":I="icons";B="description";break;case "TRENDING":B="fire";break;case "UNBLOCK_USER":B="remove";break;case "UNPLUGGED_DARK_THEME":I="image";B="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":B="live";break;case "UNPLUGGED_SPORTS":I="ytu";B="visibility-off";break;
case "VIDEOS":I="av";B="play-circle-filled";break;case "YOUTUBE":I="yt-logos";B="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":I="yt-logos-ext";B="yt-logo-red-updated";break;case "YOUTUBE_LOGO":I="yt-logos-ext";B="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":I="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":I="shorts";B=T;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":I="yt-sys-icons";B="youtube_improve_tv";break;case "OUTLINE_BAG":I=
"yt-sys-icons";B="bag";break;case "QUEUE_PLAY_LAST":I="yt-sys-icons";B="list_queue_last";break;case "SLASH_CIRCLE_LEFT":B="slash_circle_left";break;case "SPEED_1_POINT_2X":B="1_point_2x";break;case "SPEED_1_POINT_5X":B="1_point_5x";break;case "SPEED_1_POINT_8X":B="1_point_8x";break;case "SPEED_POINT_2X":B="point_2x";break;case "SPEED_POINT_5X":B="point_5x";break;case "SPEED_POINT_8X":B="point_8x";break;case "SPEED_1X":B="1x";break;case "SPEED_2X":B="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":I="yt-sys-icons";
B="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":I="yt-sys-icons";B="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":I="yt-sys-icons",B="tic_tac_toe"}B=I+":"+B;Arf.set(E,B);return B};
rrG=function(E){var B;_.d("kevlar_use_wil_icons")?B=!!_.Q().resolve(_.Ee).resolveIcon({iconName:E.toString()}):B=!1;return B};
_.$g=function(E,B,I,T){I=I===void 0?{}:I;T=T===void 0?!1:T;I===null&&(I={});var e=_.B7("kevlar_command_handler_command_banlist");e=_.p(e);for(var c=e.next();!c.done;c=e.next())if(c=E?E.hasOwnProperty(c.value):void 0,c)return!1;e=_.h(E.commandMetadata,_.D$);return T&&e!=null&&e.url?!1:!B.disableCommandHandlerOverride&&_.BV.instance?(T=_.BV.instance,I.form||(I.form={element:B}),I.form.element||(I.form.element=B),!I.clickedVisualElement&&B.visualElement&&(I.clickedVisualElement=B.visualElement),T.resolveCommand(E,
I),!0):!1};
jfc=function(E,B){E=IQ(E);for(var I=_.p(E.visibilityMonitorKeys||[]),T=I.next();!T.done;T=I.next())B.unobserveByKey(T.value);E.visibilityMonitorKeys=void 0};
f5c=function(E,B){if(_.nC()){if(_.d("kevlar_vimio_use_shared_monitor"))UJG(E,B.data);else if(!UJG(E,B.data))return;var I=B.data,T=k9D(I);if(_.d("enable_client_ve_spec_logging"))jfc(E,B.observer);else{var e=IQ(E);e.trackedParams&&e.trackedParams!==T&&jfc(E,B.observer)}e=IQ(E);!I||e.data&&e.data===I||(e.data=I);tki(E,B);e.trackedParams=T}};
tki=function(E,B){var I=B.observer;if(!I&&_.d("web_skip_missing_vimio_observer")){var T,e;_.OG(new _.P7("VisibilityObserver is not defined.",E.tagName,E.trackedParams,(T=B.data)==null?void 0:T.trackingParams,(e=B.data)==null?void 0:e.loggingDirectives))}else{var c=B.layer,Y=B.visibilityCallback||function(){},v=B.prescanCallback,y=IQ(E);
T=[];B.showOption&&T.push(I.observe(E,function(){B.skipLogging&&B.skipLogging()||_.TA().reportShown(y,void 0,c);Y(!0)},B.showOption));
B.hideOption&&T.push(I.observe(E,function(){_.TA().reportHidden(y,void 0,c);Y(!1)},B.hideOption));
B.prescanOption&&v&&T.push(I.observe(E,function(){v()},B.prescanOption));
y.visibilityMonitorKeys=T}};
UJG=function(E,B){E=IQ(E);if(E.visualElement&&!B)return!0;if(!B)return!1;var I=!1;if(_.d("enable_client_ve_spec_logging")){var T,e;I=!!((T=B.loggingDirectives)==null?0:(e=T.clientVeSpec)==null?0:e.uiType)}T=k9D(B);if(!T&&!I)return!1;_.d("mweb_component_visibility_logging")&&(E.veContainer||(E.veContainer={}),E.veContainer.trackingParams=T);if(E.trackedParams&&E.trackedParams===T)return!1;var c;if(_.d("enable_client_ve_spec_logging")&&((c=E.visualElement)==null?0:c.isClientVe())){var Y;c=(Y=E.visualElement)==
null?void 0:Y.getAsJspb();var v,y,Z,P;if(_.kr(c,2)===((v=B.loggingDirectives)==null?void 0:(y=v.clientVeSpec)==null?void 0:y.uiType)&&_.kr(c,3,-1)===((Z=B.loggingDirectives)==null?void 0:(P=Z.clientVeSpec)==null?void 0:P.elementIndex))return!1}if(_.d("enable_client_ve_spec_logging")){var z,m;!E.visualElement&&((z=B.loggingDirectives)==null?0:(m=z.clientVeSpec)==null?0:m.uiType)&&(v=B.loggingDirectives.clientVeSpec,B=v.uiType,Y=v.elementIndex,v=v.clientYoutubeData,E.visualElement=_.eO(_.lu(),{veType:B,
elementIndex:Y,clientYouTubeData:v}))}return!0};
k9D=function(E){if(E==null?0:E.rendererContext){var B=_.h(E.rendererContext,_.Vkc);if(B==null?0:B.loggingDirectives)return B.loggingDirectives.trackingParams}return(E==null?0:E.loggingDirectives)?E.loggingDirectives.trackingParams:E==null?void 0:E.trackingParams};
IQ=function(E){var B;return(B=E.polymerController)!=null?B:E};
KTG=function(E){_.TA();if(_.JA(cV().JSC$10351_elementShouldLogGesture).bind(cV())(E,4)){qNG(E);var B=FT4(E);DJc.set(E,B)}};
qNG=function(E){DJc.has(E)&&(DJc.get(E).cancel("untrack hover element"),DJc.delete(E))};
FT4=function(E){var B,I=[],T=!1,e=new _.cC(function(c,Y){iu(E,"mouseenter",_.JA(function(){var v,y,Z;return _.a(function(P){if(P.nextAddress==1)return B=(0,_.VZ)(),v=RMf(E),I.push(v),y=EWG(E,function(){T=!0;Y(Error("Wg"))}),_.C(P,v,2);
if(P.nextAddress!=3)return y&&p8(y),Z=Bu6(E),I.push(Z),_.C(P,Z,3);c();_.ER(P)})}))});
e.then(function(){var c=(0,_.VZ)()-B;c=Math.round(c);if(!(500>c||6E5<=c)){var Y=E.getScreenLayer?E.getScreenLayer():void 0;Y=_.nC(Y)||"";var v=$zi(_.TA(),E);_.jY(Y,E.visualElement?E.visualElement:_.Yg(v),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:c}})}KTG(E)},function(){aQ&&(aQ(),aQ=null);
T&&(qNG(E),KTG(E))});
return e};
RMf=function(E){var B;return(new _.cC(function(I,T){aQ=function(){T(Error("Xg"))};
B=_.Ll.debounce(_.JA(function(){p8(e);I()}),1,100);
var e=_.vV(E,"mousemove",B)})).thenCatch(function(){var I=_.Ll.cancelDebouncedJobMap.get(B);
I&&_.Ll.cancelJob(I)})};
Bu6=function(E){var B;return(new _.cC(function(I,T){aQ=function(){T(Error("Yg"))};
B=iu(E,"mouseleave",_.JA(function(){I()}))})).thenCatch(function(){p8(B)})};
EWG=function(E,B){return iu(E,"mouseleave",_.JA(B))};
Tui=function(E){ILG&&_.yA.cancel(ILG);ILG=_.yA.run(function(){_.$O(E,"yt-visibility-refresh");ILG=0})};
egi=function(E){E=Number(E);return"rgba("+[E>>16&255,E>>8&255,E&255,(E>>24&255)/255].join()+")"};
cXB=function(E){if(!E)return!1;if(_.h(E,_.lLF))return!0;var B;if(E=(B=_.h(E,_.pO))==null?void 0:B.commands)for(B=_.p(E),E=B.next();!E.done;E=B.next())if(_.h(E.value,_.lLF))return!0;return!1};
i1D=function(E){var B=!0;B=B===void 0?!0:B;if(!E.useSignals&&!E.experimentalPropertiesChanged||_.d("experimental_templating_behavior_nopatch_killswitch")){var I=E._propertiesChanged;E._propertiesChanged=function(T,e,c){B?E.debounceRender():E.doRender();I&&I.call(E,T,e,c)}}};
pjG=function(E,B){if(E.useSignals||E.experimentalPropertiesChanged)if(_.d("experimental_templating_behavior_nopatch_killswitch"))E.experimentalPropertiesChanged=function(){};
else return;var I=new Set,T=[E].concat(_.ad(E.behaviors));T=_.p(T);for(var e=T.next();!e.done;e=T.next()){e=e.value;for(var c in e.properties)I.has(c)||(E._addPropertyEffect(c,"function",B),I.add(c))}};
YL6=function(){var E=Polymer.Element,B=E._prepareTemplate;E._prepareTemplate=function(){B.call(this);var I=this.prototype;if(I.experimentalTemplatingInUse&&I.experimentalTemplatingInUse()&&I.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.xV(Error("Zg"));else{I=this.template.content.childNodes;for(var T=I.length-1;T>=0;T--){var e=I[T];e.nodeName!=="STYLE"&&e.nodeName!=="LINK"&&e.nodeName!=="SCRIPT"&&e.nodeName!=="#comment"&&e.remove()}}}};
aLQ=function(E){var B=!0;B=B===void 0?!0:B;YL6();var I=E.ready;E.ready=function(){this._template=null;I.call(this)};
pjG(E,B?E.debounceRender:E.doRender)};
yXt=function(E,B,I){if(I===null||I===void 0)return I;var T=lDc(E.tagName.toLowerCase(),B,function(){throw Error("Pb");});
if(T===null)return I;T=vWi[T];var e;if((e=T.isUnwrappable)==null?0:e.call(T,I)){if(T.unwrap)return T.unwrap(I);throw Error("bh");}return T.filterString?T.filterString(E.tagName,B,String(I)):I};
CCt=function(E,B,I){var T=B[B.length-1]!=="$",e=yXt(E,B,I);if(T)if(typeof e==="function"&&B.startsWith("reactiveon")&&B===B.toLowerCase()){var c=U7;ZlD(E,B.slice(8),function(Y){uQ(c,function(){e(Y)})})}else E[B]=e;
else I=e==null?null:String(e),wni(E,B.slice(0,-1),I)};
C8=function(E){wjt.length===0&&requestAnimationFrame(function(){setTimeout(function(){var B=wjt.slice();wjt.length=0;B=_.p(B);for(var I=B.next();!I.done;I=B.next()){I=I.value;try{I()}catch(T){_.rG(T)}}})});
wjt.push(E)};
Z16=function(E){if(E){var B=E.component;if(B){var I;B==null||(I=B.events)==null||I.publish("DISCONNECTED");var T;B==null||(T=B.onDisconnected)==null||T.call(B)}var e,c;(e=E.__spec)==null||(c=e.didUnmount)==null||c.call(e);for(B=0;B<E.childNodes.length;B++)Z16(E.childNodes[B])}};
Zx=function(E,B,I){var T=B&&B.key,e=XX;e[0]=E;e[1]=T;e[2]=void 0;for(var c in B)B.hasOwnProperty(c)&&(E=B[c],T=rt,T.push(c),T.push(E));B=XX;a:{if(c=XX[2])for(E=0;E<c.length;E+=2)if(c[E]==="nonce"){c=c[E+1];break a}c=""}c=nvi(B[0],B[1],c);E=O_(c);T=B[2];if(!E.staticsApplied&&(E.staticsApplied=!0,T&&T.length))if((e=E._attrsArr)&&e.length){for(e=0;e<T.length;e+=2)wX[T[e]]=e+1;e=E._attrsArr||(E._attrsArr=CyG(0));for(var Y=0,v=0;v<e.length;v+=2){var y=e[v],Z=e[v+1],P=wX[y];P?T[P]===Z&&delete wX[y]:(e[Y]=
y,e[Y+1]=Z,Y+=2)}xp(e,Y);for(var z in wX)d36(c,z,T[wX[z]],kV),delete wX[z]}else for(z=0;z<T.length;z+=2)d36(c,T[z],T[z+1],kV);Wgi(c,E,kV);xp(B,0);I&&I(nd);MnF()};
PCi=function(E){var B=E.toString().toLowerCase();return function(I,T){Zx(B,I,T)}};
_.PV=function(E,B,I){I===void 0?delete E[B.name]:E[B.name]=I};
_.zA=function(E){var B={androidIncludeFontPadding:!1},I=0,T=[],e=[],c=[];if(E.simpleText)return B.content=E.simpleText,B;if(E.runs===void 0)return B.content="",B;E=_.p(E.runs);for(var Y=E.next();!Y.done;Y=E.next()){Y=Y.value;var v=Y.text,y=void 0,Z=(y=v)==null?void 0:y.length;if(v&&Z){T.push(v);if(Y.bold||Y.italics||Y.strikethrough||Y.underline||Y.textColor!=null&&Y.textColor!==0||Y.deemphasize){v=e;y=v.push;var P={startIndex:I,length:Z};Y.bold&&(P.weightLabel="FONT_WEIGHT_MEDIUM");Y.italics&&(P.italic=
!0);Y.strikethrough&&(P.strikethrough="LINE_STYLE_SINGLE");Y.underline&&(P.underline="LINE_STYLE_SINGLE");Y.textColor!=null&&Y.textColor!==0?document.documentElement.hasAttribute("dark")?P.fontColor=Y.darkModeTextColor||Y.textColor:P.fontColor=Y.textColor:Y.deemphasize&&(document.documentElement.hasAttribute("dark")?P.fontColor=parseInt("ff"+zgi("#aaa").substring(1),16):P.fontColor=parseInt("ff"+zgi("#606060").substring(1),16));y.call(v,P)}Y.navigationEndpoint&&(v=c,y=v.push,P={startIndex:I,length:Z,
onTap:{innertubeCommand:Y.navigationEndpoint}},Y.loggingDirectives&&_.PV(P,mzf,Y.loggingDirectives),y.call(v,P));I+=Z}}B.content=T.join("");B.styleRuns=e.length?e:void 0;B.commandRuns=c.length?c:void 0;return B};
dzD=function(E){if(E==null||!E.runs)return!0;E=_.p(E.runs);for(var B=E.next();!B.done;B=E.next())if(B=B.value,B.bracket||B.errorUnderline||B.deemphasize||_.h(B,m0)||_.h(B,Q7i))return!1;return!0};
hgQ=function(E,B){return function(I){var T=B.unit;if(T!==I)throw Error("eh`"+E+"`"+T+"`"+I);return B}};
QA=function(E){if(!((E==null?0:E.value)&&(E==null?0:E.unit)))return"";switch(E.unit){case "DIMENSION_UNIT_FRACTION":var B="%";break;default:B="px"}E=E.value;B==="%"&&(E*=100);return""+E+B};
s7J=function(E){try{return E()}catch(B){_.OG(B)}};
_.ha=function(E){var B=_.h(E,_.dX);if(B)return B;if((B=_.h(E,uIF))&&B.commands)return LOd(B.commands);if((B=_.h(E,xzJ))&&B.commands)return LOd(B.commands);if((E=_.h(E,Gnc))&&E.identifier&&E.command&&(O1D||(O1D=[]),!O1D.includes(E.identifier)))return O1D.push(E.identifier),_.h(E.command,_.dX)};
LOd=function(E){if(E.length!==0){var B=[];E=_.p(E);for(var I=E.next();!I.done;I=E.next())(I=_.ha(I.value))&&B.push(I);return{commandExecutorCommand:{commands:B}}}};
_.uu=function(E){var B=E.defaultTarget,I=E.elementConfig,T=E.elementsCommand,e=E.skipOnClick,c=E.forceNewState,Y=E.additionalCommandArgs,v=E.innertubeCommand||_.ha(T);if(v){E={};var y=nWi(v);T=y.navigatingCommand;y=y.href;T&&y?(E.href$=y,M4Q(E,T,y,B),_.d("web_atagconfig_pointerdown")&&H1B(E,T),c&&(E["force-new-state$"]=!0)):(E.role$="button",E.href$="javascript:void(0);");_.h(v,NuB)&&(E["aria-haspopup$"]=!0);e||(E.onclick=function(Z){if(gW4(Z)){var P=Object.assign({},{form:{element:Z.target,event:Z}},
Y);Z.preventDefault();_.se(v,P)}});
return Object.assign({},I,E)}};
SL6=function(E){if(E.length){if(E.length===1)return E[0];var B={};_.PV(B,_.pO,{commands:E});return B}};
L8=function(E){return E&&E.href$!=="javascript:void(0);"};
nWi=function(E){var B,I=((B=_.h(E,_.pO))==null?void 0:B.commands)||[E];E=_.p(I);for(B=E.next();!B.done;B=E.next()){B=B.value;var T=void 0,e=void 0;I=(e=_.h((T=B)==null?void 0:T.commandMetadata,_.D$))==null?void 0:e.url;_.d("web_remove_web_navigation_endpoint_data")||(T=void 0,I=I||((T=_.h(B,JXQ))==null?void 0:T.url));if(I&&I!=="/service_ajax"){if(T=c1(I,WOt))return E=_.e6(T),{navigatingCommand:B,href:E};_.OG(new _.P7("AttributedString URL could not be sanitized",I))}}return{}};
gW4=function(E){return E.button!==void 0?E.button===0&&!(E.shiftKey||E.altKey||E.metaKey||E.ctrlKey):!(E.shiftKey||E.altKey||E.metaKey||E.ctrlKey)};
M4Q=function(E,B,I,T){I=!V9(I);var e,c,Y;if((e=_.h(B,_.pq))!=null&&e.nofollow||(c=_.h(B,_.kh))!=null&&c.nofollow||(Y=_.h(B,_.JK))!=null&&Y.nofollow||I)E.rel$="nofollow";var v;B=((v=_.h(B,_.JK))==null?void 0:v.target)==="TARGET_NEW_WINDOW"?"_blank":T===void 0?"":T;E.target$=B};
H1B=function(E,B){B.clickTrackingParams&&(E.params={itct:B.clickTrackingParams});E.onpointerdown=function(I){Xjc(I)};
E._data=B};
rXB=function(E){(E.loggingUrls||[]).forEach(function(B){Wn(B.baseUrl,B.attributionSrcMode)})};
b1f=function(E){E.currentTarget._data&&rXB(E.currentTarget._data)};
Xjc=function(E){var B=E.currentTarget;E=s7J(function(){return B.href});
var I=B.params;E&&_.qU(E,I||{},8,!0)};
oWi=function(E,B){if(B=_.h(B,_.JK))(B==null?void 0:B.target)==="TARGET_NEW_WINDOW"&&(E.target="_blank"),B.nofollow&&(E.rel="nofollow")};
AXc=function(E){E=_.h(E==null?void 0:E.commandMetadata,_.D$);return(E==null?0:E.url)?E.url:null};
_.xg=function(E,B){(E=_.ha(E))&&_.se(E,B)};
_.se=function(E,B){h0G(function(I){B?I.resolveCommand(E,B):I.resolveCommand(E)})};
t4t=function(E,B){var I=["yt-core-attributed-string__link"];B!=null&&B.noLinkColor||((B==null?0:B.isOverlay)?I.push("yt-core-attributed-string__link--overlay-call-to-action-color"):I.push("yt-core-attributed-string__link--call-to-action-color"),(B==null?0:B.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color"));I={className:I.join(" "),tabindex$:"0"};var T=E.onTap||E.onLongPress;if(!T)return I;var e=j76(E);e&&(I["aria-label$"]=e);B=_.uu({elementsCommand:T,elementConfig:I,skipOnClick:!(B==
null||!B.skipOnClick),forceNewState:!0});E.onLongPress&&(T=new Uzc(function(){var c=_.ha(E.onLongPress);c&&_.Q().resolve(_.Dt).resolveCommand(c)}),B&&knJ(T,B));
return B||I};
j76=function(E){var B,I;return(B=E.onTapOptions)==null?void 0:(I=B.accessibilityInfo)==null?void 0:I.accessibilityLabel};
fLt=function(E){var B=E;E<=16777215&&(B+=parseInt("ff000000",16));return _.hR(B)};
V4G=function(E){var B=E.isDarkTheme;var I=E.extension;E=E.runColor;var T=void 0;if(I=I==null?void 0:I.colorMap){B=B?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";I=_.p(I);for(var e=I.next();!e.done;e=I.next())if(e=e.value,B===e.key){T=e.value;break}}T==null&&E&&(T=E);if(T)return fLt(T)};
GA=function(E){var B=E.config;var I=E.image;var T=E.imageConfig;var e=E.imageWrapperConfig;var c=E.run;var Y=E.tag;var v=E.textLength;var y=E.startIndex===void 0?0:E.startIndex;E=E.length;y===void 0&&(y=0);c={run:c,startIndex:y,endIndex:E!==void 0?y+E:v,tag:Y};I&&(c.image=I);T&&(c.imageConfig=T);e&&(c.imageWrapperConfig=e);B&&(c.config=B);return c};
FO4=function(E,B){var I=[];I.push("yt-core-attributed-string");(B==null?0:B.className)&&I.push(B==null?void 0:B.className);(B==null?0:B.ellipsisTruncate)?I.push("yt-core-attributed-string--ellipsis-truncate"):(B==null?0:B.noWrap)?I.push("yt-core-attributed-string--white-space-no-wrap"):(B==null?0:B.noPreWrap)||I.push("yt-core-attributed-string--white-space-pre-wrap");(B==null?0:B.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color");E.alignment&&I.push(qLc(E.alignment));E.lineBreakMode&&
I.push("yt-core-attributed-string--word-wrapping");return I.join(" ")};
Dzi=function(E){if(E.weight)return E.weight;switch(E.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
KOG=function(E){switch(E){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"}};
qLc=function(E){switch(E){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"}};
EjG=function(E,B,I){var T=B;E.content&&I&&(I=E.content.indexOf("\n"),I!==-1&&(T=Math.min(B,I)));if(!E.content||E.content.length<=T)B=E;else if(E.attachmentRuns||E.commandRuns||E.decorationRuns||E.styleRuns||E.paragraphStyleRuns){B=Oe(E.content,T);I=T;var e=E.attachmentRuns;if(e){var c=[];e=_.p(e);for(var Y=e.next();!Y.done;Y=e.next())Y=Object.assign({},Y.value),Y.startIndex===void 0||Y.startIndex>=I||(Y.length||(Y.length=0),Y.length+Y.startIndex>I&&(Y.length=I-Y.startIndex),c.push(Y));I=c}else I=
void 0;c=Rgd(T,E.commandRuns);e=T;var v=E.decorationRuns;if(v){Y=[];v=_.p(v);for(var y=v.next();!y.done;y=v.next()){y=y.value;var Z=_.h(y.textDecorator,n8);if(Z&&Z.startIndex!==void 0&&!(Z.startIndex>=e)){y=Object.assign({},y,{textDecorator:{highlightTextDecorator:Object.assign({},Z)}});Z=_.h(y.textDecorator,n8);if(!Z.length||Z.length+Z.startIndex>e)Z.length=e-Z.startIndex;Y.push(y)}}e=Y}else e=void 0;Y=Rgd(T,E.styleRuns);if(v=E.paragraphStyleRuns)for(E=[],v=_.p(v),y=v.next();!y.done;y=v.next()){var P=
y.value;y=Object.assign({},P);if(!(y.startIndex===void 0||y.startIndex>=T)){if(!y.length||y.length+y.startIndex>T)y.length=T-y.startIndex;Z=[];var z=void 0,m=void 0;if((z=P)==null?0:(m=z.listGroup)==null?0:m.listItems)for(P=_.p(P.listGroup.listItems),z=P.next();!z.done;z=P.next())if(z=Object.assign({},z.value),!(z.startIndex===void 0||z.startIndex>=T)){if(!z.length||z.length+z.startIndex>T)z.length=T-z.startIndex;Z.push(z)}Z.length>0&&(y.listGroup||(y.listGroup={}),y.listGroup=Object.assign({},y.listGroup,
{listItems:Z}));E.push(y)}}else E=void 0;B={content:B,attachmentRuns:I,commandRuns:c,decorationRuns:e,styleRuns:Y,paragraphStyleRuns:E}}else B=Object.assign({},E,{content:Oe(E.content,T)});return B};
Rgd=function(E,B){if(B){var I=[];B=_.p(B);for(var T=B.next();!T.done;T=B.next())if(T=Object.assign({},T.value),!(T.startIndex===void 0||T.startIndex>=E)){if(!T.length||T.length+T.startIndex>E)T.length=E-T.startIndex;I.push(T)}return I}};
Oe=function(E,B){var I=B,T;if(T=I>0)T=E.charCodeAt(I-1),T=T>=55296&&T<=56319;T&&(I=E.charCodeAt(I),T=I>=56320&&I<=57343);T&&--B;return E.substring(0,B)};
T$f=function(E,B,I){I=I===void 0?B$c:I;if(E){var T=_.Q().resolve(fi);T||_.d("mweb_no_observer_killswitch")?f5c(E,{data:B,observer:T,visibilityCallback:I,hideOption:$RD,showOption:I86,layer:E.layer}):_.OG(new _.P7("Warning: monitorVisibility called with null observer",E.tagName,B==null?void 0:B.loggingDirectives,B==null?void 0:B.trackingParams))}else _.OG(new _.P7("Warning: monitorVisibility called with null element",B==null?void 0:B.loggingDirectives,B==null?void 0:B.trackingParams,B==null?void 0:
B.rendererContext))};
a8i=function(E,B){var I=[],T=E.content.length,e,c=(e=_.Q().resolve(_.Fx(_.ME)))==null?void 0:e();if(E.paragraphStyleRuns){e=_.p(E.paragraphStyleRuns);for(var Y=e.next();!Y.done;Y=e.next()){var v=I.push,y=v.apply;var Z=void 0;Y=Y.value;if((Z=Y.listGroup)!=null&&Z.listItems){Z=[];b:switch(Y.listGroup.listType){case "LIST_TYPE_BULLET":var P="ul";break b;default:P="span"}Z.push(GA({run:Y,textLength:T,tag:P,config:{className:"yt-core-attributed-string__list-group"},startIndex:Y.startIndex,length:Y.length}));
P=_.p(Y.listGroup.listItems);for(var z=P.next();!z.done;z=P.next()){z=z.value;b:switch(Y.listGroup.listType){case "LIST_TYPE_BULLET":var m="li";break b;default:m="span"}Z.push(GA({run:Y,textLength:T,tag:m,startIndex:z.startIndex,length:z.length}))}Y=Z}else Y=[];y.call(v,I,_.ad(Y))}}if(E.styleRuns&&(B==null||!B.noStyleRuns))for(e=_.p(E.styleRuns),v=e.next();!v.done;v=e.next()){v=v.value;y=V4G({extension:_.h(v.styleRunExtensions,eFd),isDarkTheme:c===void 0?!1:c,runColor:v.fontColor});Z=[];y&&Z.push("yt-core-attributed-string--link-inherit-color");
v.italic&&Z.push("yt-core-attributed-string--italicized");v.underline&&v.strikethrough?Z.push("yt-core-attributed-string--underline-strikethrough",KOG(v.underline)):v.underline?Z.push("yt-core-attributed-string--underlined",KOG(v.underline)):v.strikethrough&&Z.push("yt-core-attributed-string--strikethrough",KOG(v.strikethrough));if(v.baselineOffset){a:switch(v.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Y="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":Y=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:Y="yt-core-attributed-string--baseline-offset-unknown"}Z.push(Y)}Y=Z.join(" ");Z=v;P={};if(Z.weight||Z.weightLabel)P.fontWeight=Dzi(Z).toString();y&&(P.color=y);I.push(GA({run:v,textLength:T,tag:"span",config:{className:Y,style:P},startIndex:v.startIndex,length:v.length}))}if(E.decorationRuns)for(e=_.p(E.decorationRuns),v=e.next();!v.done;v=e.next())v=v.value,y={},v.textDecorator&&(P=v.textDecorator,Y=c===void 0?!1:c,z=[],Z=
_.h(P,n8),P=_.h(P,l84),Z?(P=z,z=P.concat,m=[],(Y=V4G({extension:_.h(Z.highlightTextDecoratorExtensions,cni),isDarkTheme:Y,runColor:Z.backgroundColor}))&&m.push("background-color: "+Y+";"),Z.backgroundCornerRadius!==void 0&&m.push("border-radius: "+Z.backgroundCornerRadius+"px;"),Z.leftPadding!==void 0&&m.push("padding-left: "+Z.leftPadding+"px;"),Z.rightPadding!==void 0&&m.push("padding-right: "+Z.rightPadding+"px;"),Z.topPadding!==void 0&&m.push("padding-top: "+Z.topPadding+"px;"),Z.bottomPadding!==
void 0&&m.push("padding-bottom: "+Z.bottomPadding+"px;"),z=z.call(P,m)):P&&(Z=z,z=Z.concat,Y=Y?"#2ba640":"#107516",Y=P.color?fLt(P.color):Y,Y=["padding: 2px;","border-top: solid "+Y+" 2px;","border-bottom: solid "+Y+" 2px;","background: linear-gradient(135deg, "+Y+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Y+" 3px, rgba(0, 0, 0, 0) 3px);"],z=z.call(Z,Y)),Y=z.join(" "),y.style$=Y,Y=v.textDecorator,Z=[],P=_.h(Y,l84),_.h(Y,n8)?Z.push("yt-core-attributed-string--highlight-text-decorator"):
P&&Z.push("yt-core-attributed-string--bracket-text-decorator"),Y=Z.join(" "),y.className=Y,y.dir="auto"),Y=_.h(v.textDecorator,n8),Z=_.h(v.textDecorator,l84),P=_.h(v.textDecorator,n8),z=_.h(v.textDecorator,l84),I.push(GA({run:v,textLength:T,tag:"span",config:y,startIndex:(Y==null?void 0:Y.startIndex)||(Z==null?void 0:Z.startIndex)||0,length:(P==null?void 0:P.length)||(z==null?void 0:z.length)||0}));if(E.commandRuns&&(B==null||!B.noEndpoints))for(c=_.p(E.commandRuns),e=c.next();!e.done;e=c.next())e=
e.value,v=t4t(e,B),I.push(GA({run:e,textLength:T,tag:"a",config:v,startIndex:e.startIndex,length:e.length}));if(E.attachmentRuns)for(E=_.p(E.attachmentRuns),c=E.next();!c.done;c=E.next()){c=c.value;y=v=void 0;e={className:"yt-core-attributed-string--inline-block-mod"};if((y=c.element)==null?0:y.properties){y=(v=c.element)==null?void 0:v.properties;v=[];y=_.h(y,iRG);if(y==null?0:y.margin)y=y.margin,y.left&&v.push("margin-left: "+QA(y.left)+";"),y.right&&v.push("margin-right: "+QA(y.right)+";"),y.top&&
v.push("margin-top: "+QA(y.top)+";"),y.bottom&&v.push("margin-bottom: "+QA(y.bottom)+";");v=v.length!==0?v.join(" "):void 0;e.style$=v}Y=void 0;v={alt:"",preserveHeight:!0,preserveWidth:!0};y=["yt-core-attributed-string__image-element"];if(c.alignment){a:switch(c.alignment){case "ALIGNMENT_BASELINE":Z="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":Z="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:Z=
"yt-core-attributed-string__image-element--image-alignment-bottom"}y.push(Z)}if((Y=c.element)==null?0:Y.properties)Y=[],Z=_.h(c.element.properties,iRG),(Z==null?0:Z.height)&&Y.push("height: "+QA(Z.height)+";"),(Z==null?0:Z.width)&&Y.push("width: "+QA(Z.width)+";"),Y=Y.length!==0?Y.join(" "):void 0,v.style$=Y,Z=void 0,Y=((Z=_.h(c.element.properties,pzF))==null?void 0:Z.label)||"",v.alt=Y;v.className=y.join(" ");y=void 0;P=Z=void 0;Y=((P=c.element)==null?0:P.type)?(Z=_.h(c.element.type,Ylc))==null?
void 0:Z.image:void 0;I.push(GA({run:c,textLength:T,tag:"img",image:Y,imageConfig:v,imageWrapperConfig:e,startIndex:c.startIndex,length:(y=c.length)!=null?y:0}))}if(B==null?0:B.headerRuns)for(B=_.p(B.headerRuns),E=B.next();!E.done;E=B.next())if(E=E.value,E.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(E.headerMapping)){a:{switch(E.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":c=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":c="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":c="yt-core-attributed-string--heading-3";break a}c=void 0}I.push(GA({run:E,textLength:T,tag:"span",config:c?{className:c}:void 0,startIndex:E.startIndex,length:E.length}))}return I};
_.HV=function(E){return(E==null?void 0:E.content)!==void 0};
vjc=function(E){return _.HV(E)?E:_.zA(E)};
ynJ=function(E){return E.image!==void 0&&E.imageConfig!==void 0};
CBQ=function(E,B){if(B==null?0:B.userInput)for(E=_.p(E),B=E.next();!B.done;B=E.next())if(B=B.value,B.tag!=="a"&&B.tag!=="li"){var I=void 0;(I=B).config||(I.config={});B.config.dir=B.tag==="ul"?_.Q().resolve(_.NE):"auto"}};
wzJ=function(E){return function(B){var I=E.run;(I.onTap!==void 0||I.onLongPress!==void 0)&&_.h(I,mzf)&&T$f(B,{loggingDirectives:_.h(I,mzf)})}};
ZRc=function(E){return function(B){for(var I in E)(kV[I]||kV[G5["default"]])(B,I,E[I])}};
Qtf=function(E,B){PBQ(B);var I={data:null,start:0,end:E.length,parts:[]};B=_.p(B);for(var T=B.next();!T.done;T=B.next())T=T.value,zFD(I,T.startIndex,T.endIndex,T);mRJ(E,I);return I};
zFD=function(E,B,I,T){for(var e=_.p(E.parts),c=e.next();!c.done;c=e.next()){c=c.value;if(typeof c==="string")throw Error("gh");if(c.start<=B&&I<=c.end){zFD(c,B,I,T);return}}E.parts.push({data:T,parts:[],start:B,end:I})};
mRJ=function(E,B){for(var I=B.parts.length;I>=0;I--){var T=B.parts[I],e=B.parts[I-1],c=I===B.parts.length?B.end:T.start;e=I===0?B.start:e.end;c!==e&&B.parts.splice(I,0,E.slice(e,c));T&&mRJ(E,T)}};
PBQ=function(E){E.sort(function(B,I){if(B.startIndex<I.startIndex)return-1;if(I.startIndex<B.startIndex)return 1;B=B.endIndex-B.startIndex;I=I.endIndex-I.startIndex;return B>I?-1:I>B?1:0})};
_.dR6=function(E){var B=E.thumbnails;if(B){E={sources:[]};B=_.p(B);for(var I=B.next();!I.done;I=B.next()){I=I.value;var T={};T.url=I.url;T.width=I.width;T.height=I.height;E.sources.push(T)}return E}};
hF6=function(E,B,I,T){if(!B)return E.length>=1?E[E.length-1]:null;if(T)for(var e=_.p(E),c=e.next();!c.done;c=e.next()){c=c.value;var Y=void 0,v=(Y=c.url)==null?void 0:Y.indexOf(T);if(v!==void 0&&v>=0)return c}T=_.p(E);for(e=T.next();!e.done;e=T.next())if(e=e.value,e.width&&e.height&&(I&&e.width>=B||!I&&e.height>=B))return e;for(B=E.length-1;B>=0;B--)if(I&&E[B].width||!I&&E[B].height)return E[B];return E[0]};
_.stc=function(E){var B;return(E=(B=E.sources)==null?void 0:B[0])?E.width/E.height:0};
ukF=function(E){if(E.sources){E=_.p(E.sources);for(var B=E.next();!B.done;B=E.next()){B=B.value;var I=void 0;if((I=B.clientResource)==null?0:I.imageName)return B}}};
LwG=function(E){var B;if((B=E.clientResource)!=null&&B.imageColor)return _.hR(E.clientResource.imageColor)};
_.GuG=function(E,B,I,T,e,c,Y){if(!B||B.length===0||B[0].clientResource)return null;if(I&&B[0].url)return B[0].url;T===void 0&&(T=!0);if(T){var v;E=xRQ*(e||(E==null?void 0:(v=E.getBoundingClientRect())==null?void 0:v.width)||0)}else{var y;E=xRQ*(c||(E==null?void 0:(y=E.getBoundingClientRect())==null?void 0:y.height)||0)}B=hF6(B,E,T,Y);return(B==null?0:B.url)?B.url:(B==null?0:B.imageData)?B.imageData:null};
ORd=function(E,B,I){I=I?[I]:[];E.opacity&&I.push("opacity: "+E.opacity+";");B&&E.placeholderColor?(E=_.hR(E.placeholderColor),I.push("background-color: "+E+";")):I.push("background-color: transparent;");return I.join(" ")};
nji=function(E,B,I,T,e){var c=["yt-core-image"];B&&c.push(B);I||c.push("yt-core-image--fill-parent-height");T||c.push("yt-core-image--fill-parent-width");switch(E.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":c.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":c.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":c.push("yt-core-image--content-mode-center");break;default:c.push("yt-core-image--content-mode-scale-to-fill")}E.flipForRtlLayout&&
c.push("yt-core-image--flip-rtl");switch(e){case "TOP_START":var Y;c.push(((Y=document.body)==null?void 0:Y.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return c.join(" ")};
HRJ=function(E){var B;if(E==null?0:(B=E.clientResource)==null?0:B.imageName){var I;E=(I=E.clientResource)==null?void 0:I.imageName;a:{switch(E){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":I="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":I="yt-logos-ext:yt-logo-updated";break a}I=void 0}return I||M3c.get(E)||E}};
gX=function(E){return _.d("mweb_wiz_skip_render")?N$c(E):gji(E)};
N$c=function(E){return function(B){var I=nvi("wink-root");Jx();MnF();DEc(I,_.w(E,B))}};
gji=function(E){var B=B===void 0?!1:B;return function(I){if(!B||!_.d("mweb_skip_keto_to_c3_if_no_data")||I.data!==void 0){var T=qS(!1);try{var e=I.children;_.d("mweb_render_outside_patch_killswitch")||nd?e?UG(_.w(E,I,e)):UG(_.w(E,I)):_.OG(new _.P7("ketoToC3 called outside of a patch",{tagName:E.TAG_NAME}))}finally{qS(T)}}}};
Slt=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Wwi=function(E,B){E.onViewportEntered=B;JnQ.observe(E)};
XzF=function(){var E={rootMargin:"10%",threshold:.01};_.d("mweb_enable_set_io_root_to_null_safari")?E.root=null:_.d("mweb_enable_set_io_root_to_body_safari")&&(E.root=document.body);return new IntersectionObserver(function(B,I){B.filter(function(T){return T.intersectionRect.height>0}).forEach(function(T){T=T.target;
if(!_.d("mweb_enable_only_update_image_when_connected")||T.isConnected!==!1){var e;(e=T.onViewportEntered)==null||e.call(T);I.unobserve(T)}})},E)};
rnc=function(E,B,I,T,e){function c(){if(T){var v=T.loadedClass,y=T.notifyOnUnloaded;v&&_.SO(E,v);y&&E.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function Y(){var v=I(B,E);v&&E.getAttribute("src")!==v&&(_.d("mweb_enable_only_update_image_when_connected")&&E.isConnected===!1||v===E.src||(E.src=v),c())}
e=e===void 0?!0:e;E.removeAttribute("src");c();B&&(e?Wwi(E,Y):Y())};
bRc=function(E,B){for(var I in B)I==="className"?E.className=B[I]:(kV[I]||kV[G5.default])(E,I,B[I])};
ojc=function(E,B,I,T){gX(_.Ja)({contentMode:B.contentMode,loadedClass:B.loadedClass,isPreloaded:B.isPreloaded,notifyOnLoaded:B.notifyOnLoaded,notifyOnUnloaded:B.notifyOnUnloaded,preferredThumbnail:B.preferredThumbnail,preserveHeight:B.preserveHeight,preserveWidth:B.preserveWidth,objectPosition:B.objectPosition,targetWidth:B.targetWidth,targetHeight:B.targetHeight,shouldShowPlaceholder:B.shouldShowPlaceholder,useWidth:B.useWidth,alt:B.alt,className:B.className,onerror:B.onerror,onload:B.onload,style$:B.style$,
color:B.color,width:B.width,height:B.height,"aria-hidden$":B["aria-hidden$"],draggable:B.draggable,"data-disabled$":B["data-disabled$"],data:E,callback:I,renderLazy:T===void 0?!0:T,hideOn404:!1})};
jtG=function(E,B,I){I=I===void 0?!1:I;var T=E.sources!==void 0?E:_.dR6(E);if(T){var e=B.onload;B.onload=function(y){var Z=y.target;I&&Z.naturalWidth===120||_.WV(Z,"yt-core-image--loaded");B.notifyOnLoaded&&Z.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));e==null||e(y)};
B.targetWidth&&B.preserveWidth&&(B.width=B.targetWidth);B.targetHeight&&B.preserveHeight&&(B.height=B.targetHeight);var c=ukF(T),Y=c&&HRJ(c);if(Y)return(E=LwG(c))&&(B.color=E),{type:"icon",iconName:Y,config:Object.assign({},B,B.alt?{}:{"aria-hidden$":"true"},{"aria-label$":B.alt,role:"img"})};if(E.sources===void 0){B.alt=E.accessibility&&E.accessibility.accessibilityData&&E.accessibility.accessibilityData.label||B.alt;B.style$=ORd(E,B.shouldShowPlaceholder,B.style$);var v;B.isPreloaded=!((v=_.h(E,
An6))==null||!v.isPreloaded)}B.contentMode&&!T.contentMode&&(T.contentMode=B.contentMode);B.className=nji(T,B.className,B.preserveHeight,B.preserveWidth,B.objectPosition);B.loadedClass="yt-core-image--loaded";return{type:"image",image:T,config:B}}};
_.URG=function(){var E=_.aG.apply(0,arguments);return _.AK(function(B){var I=E.map(function(T){return T(B)});
return function(){return void I.forEach(function(T){return void(T==null?void 0:T())})}})};
XC=function(E,B){var I=B==null?void 0:B.initial;return _.aJ(function(){_.s_(!0);return I=E(I)},{equals:B==null?void 0:B.isEqual},"rSlKsc")};
kuc=function(E,B){if(E===B)return!0;if(E===void 0||B===void 0)return!1;var I,T,e,c,Y,v,y,Z;return E.content===B.content&&((I=E.styleRuns)==null?void 0:I.length)===((T=B.styleRuns)==null?void 0:T.length)&&((e=E.commandRuns)==null?void 0:e.length)===((c=B.commandRuns)==null?void 0:c.length)&&((Y=E.attachmentRuns)==null?void 0:Y.length)===((v=B.attachmentRuns)==null?void 0:v.length)&&((y=E.decorationRuns)==null?void 0:y.length)===((Z=B.decorationRuns)==null?void 0:Z.length)};
V36=function(E,B){if(E){var I=vjc(E);if(I!=null&&I.content)if(_.d("attr_string_reactive"))gX(t3B)({text:E,config:B});else{var T=!(B==null||!B.ariaLabel)||!(I.commandRuns&&I.commandRuns.length!==0||I.paragraphStyleRuns&&I.paragraphStyleRuns.length!==0);E=T?B==null?void 0:B.ariaLabel:null;T=T?"text":null;Zx("span",{className:FO4(I,B),dir$:(B==null?0:B.userInput)?"auto":void 0,"aria-label$":E,role$:T},function(){if(I.styleRuns||I.commandRuns||I.attachmentRuns||I.decorationRuns){var e=a8i(I,B);CBQ(e,
B);e=Qtf(I.content,e);e=_.p(e.parts);for(var c=e.next();!c.done;c=e.next())f8B(c.value)}else kp(I.content)})}}};
f8B=function(E){typeof E==="string"?kp(E):ynJ(E.data)?Zx("span",E.data.imageWrapperConfig,function(){ojc(E.data.image,E.data.imageConfig)}):Zx(E.data.tag,E.data.config,function(B){wzJ(E.data)(B);
B=_.p(E.parts);for(var I=B.next();!I.done;I=B.next())f8B(I.value)})};
Fwd=function(E){return E.parts.map(qlF)};
qlF=function(E){if(typeof E==="string")return E;E=ynJ(E.data)?_.w("span",{el:_.URG(ZRc(E.data.imageWrapperConfig))},_.w(_.Ja,Object.assign({},{data:E.data.image},E.data.imageConfig))):_.w(E.data.tag,{el:_.URG(wzJ(E.data),ZRc(E.data.config))},E.parts.map(qlF));return eI(E)};
DRG=function(E,B){return E===B?!0:E===void 0||B===void 0?!1:E.noStyleRuns===B.noStyleRuns&&E.noLinkColor===B.noLinkColor&&E.noEndpoints===B.noEndpoints&&E.headerRuns===B.headerRuns&&E.isOverlay===B.isOverlay&&E.linkInheritColor===B.linkInheritColor&&E.userInput===B.userInput};
Kwc=function(E){return function(){var B,I,T,e,c,Y,v,y,Z,P,z,m,u,x;return{ariaLabel:(B=E.ariaLabel)==null?void 0:B.call(E),className:(I=E.className)==null?void 0:I.call(E),ellipsisTruncate:(T=E.ellipsisTruncate)==null?void 0:T.call(E),isOverlay:(e=E.isOverlay)==null?void 0:e.call(E),linkInheritColor:(c=E.linkInheritColor)==null?void 0:c.call(E),noEndpoints:(Y=E.noEndpoints)==null?void 0:Y.call(E),noStyleRuns:(v=E.noStyleRuns)==null?void 0:v.call(E),noLinkColor:(y=E.noLinkColor)==null?void 0:y.call(E),
noPreWrap:(Z=E.noPreWrap)==null?void 0:Z.call(E),noWrap:(P=E.noWrap)==null?void 0:P.call(E),skipOnClick:(z=E.skipOnClick)==null?void 0:z.call(E),stopPropagation:(m=E.stopPropagation)==null?void 0:m.call(E),userInput:(u=E.userInput)==null?void 0:u.call(E),headerRuns:(x=E.headerRuns)==null?void 0:x.call(E)}}};
RFt=function(E){return E.value===""||E.value==="true"?!0:E.value==="false"?!1:isNaN(Number(E.value))?E.value:Number(E.value)};
rX=function(E,B){E=new E_d(E,B);_.xV(E);throw E;};
BW6=function(E,B,I){var T=p5c(E);E._numRenders=0;try{var e=P04(function(){return _.w(B,Object.assign({},I))})}catch(Y){var c=function(v){v.args||(v.args=[]);
v.args.push("Error in web component wrapper");v.args.push(E.tagName.toLowerCase());return v};
_.GF(Y instanceof Error?c(Y):new E_d("Wiz rendering error",E.tagName.toLowerCase()));throw Y;}finally{p5c(T)}return e};
_.oQ=function(E,B,I){function T(P){var z={};P=_.p(P);for(var m=P.next();!m.done;m=P.next()){m=m.value;var u=void 0,x=void 0,M=void 0,N=_.yT((M=(x=(u=m).getAttribute)==null?void 0:x.call(u,"slot"))!=null?M:"children");if(u=z[N])u.push(m);else if(N in c||N==="children")z[N]=[m]}if($uF)for(P=_.p(Object.keys(z)),N=P.next(),m={};!N.done;m={content$jscomp$55:void 0},N=P.next())N=N.value,N!=="children"&&(m.content$jscomp$55=z[N],z[N]=function(W){return function(){return W.content$jscomp$55}}(m));
return z}
I=I===void 0?{}:I;E.componentType!==Z0||rX("Components must be marked reactive to be used from web component wrapper.",B);td.has(B)&&rX("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",B);var e,c=(e=I.props)!=null?e:{};f$.add(B);var Y=IWi();e=function(){var P=Y.apply(this,arguments)||this;P.rawProps={};P.queuingRender=!1;P.dispose=function(){};
P.isWebComponentWrapper=!0;P.isReparenting=!1;P.hasAttached=!1;return P};
_.L(e,Y);e.prototype.render=function(){this.hasAttached=!0;for(var P=_.p([].concat(_.ad(this.attributes))),z=P.next();!z.done;z=P.next())z=z.value,z.name!=="slot"&&this.removeAttribute(z.name);P=Object.assign({},this.componentProps,this.slotProps);z=_.p(BW6(this,E,P));P=z.next().value;z=z.next().value;!(P[0]instanceof Element)||P.length>1?rX("Wrapped Wiz components must return a single root element.",B):(P=P[0].tagName.toLowerCase(),P!==B&&rX("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(P+" !== '"+B),B),this.dispose=z)};
e.prototype.setUpProps=function(){for(var P=this.rawProps,z=this.attributes,m=_.p(Object.keys(c)),u=m.next();!u.done;u=m.next()){u=u.value;var x=void 0;((x=this)==null?0:x[u])&&this[u]!==TWi&&P[u]===void 0&&(P[u]=this[u],(x=Object.getOwnPropertyDescriptor(this.constructor.prototype,u))&&Object.defineProperty(this,u,x))}m=_.p(z);for(u=m.next();!u.done;u=m.next()){x=u.value;u=_.yT(x.name);var M=u==="class"&&!z.getNamedItem("class-name");if(u in c||M)x=RFt(x),u!=="class"||P.className?P[u]=x:P.className=
x}z={};for(var N in c)c[N]===_.bu||$uF&&c[N]===ePG||(P[N]instanceof Function&&rX("Function props must be configured as STATIC, not SIGNAL.",B),u=_.p(_.lQ(P[N],void 0,"uFSkac")),m=u.next().value,u=u.next().value,z[N]=u,P[N]=m);P=_.p([P,z]);this.componentProps=P.next().value;this.setters=P.next().value;this.slotProps=T(this.childNodes)};
e.prototype.connectedCallback=function(){UM===B&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in c&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render()))};
e.prototype.disconnectedCallback=function(){if(!this._isInert){var P;a:{if(_.lW4)for(P=this;P;){if(_.cUf.has(P)){P=!0;break a}P=P.parentElement}P=!1}if(P)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){P=_.p([].concat(_.ad(this.attributes)));for(var z=P.next();!z.done;z=P.next())z=z.value,z.name!=="slot"&&this.removeAttribute(z.name)}this.innerText="";$Xi(this)}}};
e.prototype._setPendingPropertyOrPath=function(){};
e.prototype.notifyPath=function(){};
_.Up.Object.defineProperties(e.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var v=_.p(Object.keys(c)),y=v.next(),Z={};!y.done;Z={prop$jscomp$103:void 0},y=v.next())Z.prop$jscomp$103=y.value,y=void 0,((y=I.legacyPolymer)==null?0:y.forwardHostProps)&&Ktc.has(Z.prop$jscomp$103)||Object.defineProperty(e.prototype,Z.prop$jscomp$103,{set:function(P){return function(z){var m=this;this._isInert||(this.setters?vh(function(){var u,x;return void((x=(u=m.setters)[P.prop$jscomp$103])==null?void 0:x.call(u,z))}):(this.rawProps[P.prop$jscomp$103]=z,this.queuingRender&&P.prop$jscomp$103===
"data"&&z!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(Z),
get:iBQ.has(Z.prop$jscomp$103)?void 0:function(){return TWi}});
customElements.define(B,e)};
_.prd=function(E,B){return(E=_.Aa(E,B))?_.e6(_.pr(E)):null};
_.jO=function(E){if(E=_.Aa(E,Number.MAX_VALUE,void 0,"width"))return _.pr(E)};
_.Aa=function(E,B,I,T){T=T===void 0?"width":T;if(!E||!E.length)return null;if(_.d("kevlar_tuner_should_always_use_device_pixel_ratio")){var e=window.devicePixelRatio;_.d("kevlar_tuner_should_clamp_device_pixel_ratio")?e=Math.min(e,_.RI("kevlar_tuner_clamp_device_pixel_ratio")):_.d("kevlar_tuner_should_use_thumbnail_factor")&&(e=_.RI("kevlar_tuner_thumbnail_factor"));YWB=e}else YWB||(YWB=window.devicePixelRatio);e=YWB;_.d("kevlar_tuner_should_always_use_device_pixel_ratio")?B*=e:e>1&&(B*=e);if(_.d("kevlar_tuner_min_thumbnail_quality"))return E[0].url||
null;e=E.length;if(_.d("kevlar_tuner_max_thumbnail_quality"))return E[e-1].url||null;if(I)for(var c=0;c<e;c++)if(E[c].url.indexOf(I)>=0)return E[c].url||null;for(I=0;I<e;I++)if(E[I][T]>=B)return E[I].url||null;for(B=e-1;B>0;B--)if(E[B][T])return E[B].url||null;return E[0].url||null};
yUf=function(){Ue.size?setTimeout(function(){kg(aWJ)},0):v_i=0};
aWJ=function(){var E=(0,_.VZ)(),B=null,I=!1;Ue.forEach(function(e){e.loaded=!0;e.loadTime=E;e.pendingPaint=!1;var c=CzG.get(e);c&&c.resolve(E);B=e;I||!e.ftlEligible&&e.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(I=!0)});
var T;((T=B)==null?0:T.markDirty)&&B.markDirty();Ue.clear();v_i=0;I&&wrQ(E)};
ZB6=function(E){Ue.add(E);E.pendingPaint=!0;v_i||(v_i=_.ta(_.Ll,yUf))};
PzQ=function(E){E.loaded=!1;E.loadTime=Infinity;var B=CzG.get(E);B&&(B.reject(Error("mh")),CzG.delete(E));E.pendingPaint&&(Ue.delete(E),E.pendingPaint=!1)};
_.zPd=function(E){var B=E.indexOf(":");return B===-1?{originalName:E}:{originalName:E.substring(0,B),datasyncId:E.substring(B+1)}};
_.Qu6=function(){return _.a(function(E){if(muB!==void 0)return E.return(muB);muB=new Promise(function(B){var I;return _.a(function(T){switch(T.nextAddress){case 1:return _.q7(T,2),_.C(T,_.f8.open("test-only"),4);case 4:return _.C(T,_.f8.delete("test-only"),5);case 5:_.W7(T,3);break;case 2:if(I=_.RG(T),I instanceof Error&&I.name==="SecurityError")return B(!1),T.return();case 3:B("caches"in window),_.ER(T)}})});
return E.return(muB)})};
suB=function(){return _.a(function(E){if(E.nextAddress==1)return _.C(E,_.Qu6(),2);if(!E.yieldResult)return E.return(void 0);duc||(duc=new hP6);return E.return(duc)})};
uVJ=function(E){var B,I,T,e;return _.a(function(c){switch(c.nextAddress){case 1:return _.C(c,suB(),2);case 2:B=c.yieldResult;if(!B)throw Error("oh");return _.C(c,B.open("yt-player-local-img"),3);case 3:return I=c.yieldResult,_.C(c,I.match(E),4);case 4:T=c.yieldResult;if(!T)throw Error("ph");return _.C(c,T.blob(),5);case 5:return e=c.yieldResult,c.return(e)}})};
LPG=function(E,B){for(var I in E)if(E.hasOwnProperty(I)&&B[I])return I;return null};
xuG=function(E){return"stamp"+E.replace("-","_")+"_"};
GhG=function(E){var B=E.match(/\[\[([\w\.]+)\]\]/);if(B&&B.length>1)return B[1];_.xV(Error("rh`"+E));return null};
OBt=function(E){return E===void 0?_.gU("REUSE_COMPONENTS",!1):E||!1};
HBc=function(E,B,I){I&&(B.is?(n_6.has(B)&&(E=n_6.get(B),I=E.listener,delete B[E.property],I.type==="element"&&B.removeEventListener(I.eventName,I.handler),n_6.delete(B)),MFc(B)):B.__proto__==HTMLElement.prototype&&(B=new _.P7("Rendererstamper removed a non custom element","Stamper: "+E+" element: "+(B&&B.nodeName)),_.OG(B)))};
NWF=function(E,B,I,T){var e=B.node?B.node:B;_.n(I).parentNode===e&&(B.removeChild(I),HBc(E,I,T));if(E=VA.get(I))VA.delete(I),_.Ll.cancelJob(E);I.hidden=!1};
g_F=function(E,B,I,T){if(B&&B.children&&(I=B.children[I]))if(_.gU("DEFERRED_DETACH"))for(;I&&!VA.has(I);){var e=E,c=B,Y=I,v=T;Y.hidden=!0;e=_.PC(_.Ll,NWF.bind(null,e,c,Y,v),0);VA.set(Y,e);I=I.nextElementSibling}else for(;(Y=B.lastElementChild)&&(B.removeChild(Y),HBc(E,Y,T),Y!=I););};
SWF=function(E){var B=_.oH();_.uW(function(){for(var I=_.p(E.slotContent),T=I.next();!T.done;T=I.next())B.value.appendChild(T.value)});
return _.w("__slot-el",{el:B,skip:!0})};
_.qE=function(E,B,I){I=I===void 0?JUt:I;td.add(B);var T;(T=I).propNames!=null||(T.propNames=[]);var e=new Set(I.propNames),c=IWi();T=function(){var Z=c.call(this)||this;Z.props={};Z.isUpdating=!1;Z.hasAttached=!1;Z.isInert=!1;Z.updateQueued=!1;Z.initialClasses=[];iEB(Z,B);return Z};
_.L(T,c);T.prototype.forwardKebabCaseProp=function(Z,P){Z=_.yT(Z);if(e.has(Z)||Z==="children")this.props[Z]=P};
T.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var Z=_.p(this.initialClasses),P=Z.next();!P.done;P=Z.next())(P=P.value)&&this.classList.add(P);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
T.prototype.handleSlottedContent=function(){for(var Z=new Map,P=_.p(this.children),z=P.next();!z.done;z=P.next()){z=z.value;var m=void 0,u=(m=z.getAttribute("slot"))!=null?m:"children";(m=Z.get(u))?m.push(z):Z.set(u,[z]);if(!z.getAttribute("key")){var x=void 0,M=void 0;z.setAttribute("key",u+"_"+((M=(x=m)==null?void 0:x.length)!=null?M:0))}}Z=_.p(Z);for(P=Z.next();!P.done;P=Z.next())z=_.p(P.value),P=z.next().value,z=z.next().value,this.forwardKebabCaseProp(P,_.w(SWF,{slotContent:z}))};
T.prototype.connectedCallback=function(){var Z=this;if(!iEB(this,B)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var P=_.p(this.attributes),z=P.next();!z.done;z=P.next())z=z.value,this.forwardKebabCaseProp(z.name,RFt(z));this.handleSlottedContent();I.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){Z.afterFirstPatch()});
this.hasAttached=!0}};
T.prototype.attributeChangedCallback=function(Z,P,z){this.isInert||this.isUpdating||this.isConnected||Z!=="class"||this.initialClasses.push.apply(this.initialClasses,_.ad(z.split(" ")))};
T.prototype.disconnectedCallback=function(){MsB(this)};
T.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var Z,P;DEc(this,_.w(E,Object.assign({},this.props,{idomKey:(P=(Z=this.__incrementalDOMData)==null?void 0:Z.key)!=null?P:B})),!0)}catch(m){var z=m instanceof Error?m:new _.P7("Wiz rendering error");z.args||(z.args=[]);z.args.push("Error in deprecated web component wrapper");z.args.push(B.toLowerCase());_.xV(z);throw m;}finally{this.updateQueued=this.isUpdating=!1}}};
T.prototype.enqueueUpdate=function(){var Z=this;return _.a(function(P){if(I.synchronous)return Z.update(),P.return();if(Z.updateQueued)return P.return();Z.updateQueued=!0;return P.return(Promise.resolve().then(function(){Z.update()}))})};
T.prototype.notifyPath=function(){I.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Up.Object.defineProperties(T,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var Y=_.p(I.propNames),v=Y.next(),y={};!v.done;y={prop$jscomp$105:void 0},v=Y.next())y.prop$jscomp$105=v.value,Object.defineProperty(T.prototype,y.prop$jscomp$105,{set:function(Z){return function(P){this.isInert||P===this.props[Z.prop$jscomp$105]||(this.props[Z.prop$jscomp$105]=P,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(y)});
customElements.define(B,T)};
_.WPB=function(E,B){return _.cP(E.entities,"markersEngagementPanelSyncEntity",B)};
XrB=function(E,B){return _.cP(E.entities,"fantasyWinProbabilityEntity",B)};
rUc=function(E,B){return _.cP(E.entities,"fantasyTeamEntity",B)};
bBc=function(E,B){return _.cP(E.entities,"fantasyPlayerEntity",B)};
o_F=function(E,B){return _.cP(E.entities,"booleanEntity",B)};
AUi=function(E,B){return _.cP(E.entities,"qrCodeEntity",B)};
juQ=function(E){return _.cP(E.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
UuF=function(){if(FC)return FC;if(window.lottie)return FC=Promise.resolve(window.lottie);var E=_.xv(_.HA("LOTTIE_URL"));return E?FC=new Promise(function(B,I){var T=document.createElement("script");T.addEventListener("load",function(){B(lottie)});
T.addEventListener("error",function(e){var c="Lottie library failed to load.";e?e.message&&(c+=" Original description: "+e.message,_.ni(e,c)):e=Error(c);_.OG(e);I(e)});
T.setAttribute("async","");_.nr(T,E);document.head.appendChild(T)}):Promise.reject(Error("sh"))};
khQ=function(){return FC?FC:UuF()};
tFc=function(){var E=juQ(_.t2().getState());if(E&&E.animationStyle)switch(E.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return Dx.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return Dx.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return Dx.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
fWt=function(E){if(E)switch(E){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.d("kevlar_use_wil_icons"))return(E=tFc())?E:Dx.get("LIKE")}};
VFQ=function(E){var B=fWt(E);if(B)return B;switch(E){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Dx.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Dx.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Dx.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Dx.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Dx.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Dx.get("NOTIFICATION_BELL")}};
FPG=function(E,B){if(!E||qWd)B=!1;else{if(E.closest){var I=!!fWt(B);I=_.HA("ID_TOKEN")&&I?!!E.closest("segmented-like-dislike-button-view-model"):!1}else I=!1;if(!I)if(E.closest)if(I=!_.HA("ID_TOKEN"),E=E.closest("ytd-subscription-notification-toggle-button-renderer-next"),I||!E)I=!1;else{var T;I=((T=E.data)==null?void 0:T.targetId)==="notification-bell"&&B!=="EXPAND_MORE"}else I=!1;B=I}return B};
DuF=function(E){var B,I;return _.a(function(T){switch(T.nextAddress){case 1:return _.q7(T,2),_.C(T,fetch(E),4);case 4:return B=T.yieldResult,_.C(T,B.json(),5);case 5:return T.return(T.yieldResult);case 2:I=_.RG(T),_.OG(I),_.ER(T)}})};
KPc=function(E,B){var I,T,e;return _.a(function(c){if(c.nextAddress==1)return(I=B?E.pathDarkTheme:E.path)?_.C(c,Promise.all([DuF(I),UuF()]),2):c.return();T=c.yieldResult;e=T[0];K8.set(I,e);_.ER(c)})};
_.RQ=function(){var E=_.aG.apply(0,arguments);return function(){for(var B="",I=_.p(E),T=I.next();!T.done;T=I.next())if(T=T.value,typeof T==="function"&&(T=T()),T)if(typeof T==="string")B+=" "+T;else for(var e in T)if(T.hasOwnProperty(e)){var c=T[e];typeof c==="function"&&(c=c());c&&(B+=" "+e)}B=B.trim()||void 0;return _.s_(B)}};
_.E1=function(E){var B;var I=E.data;var T=E.className;var e=E.animationName;var c=E.animationRef;var Y=(B=E.elRefForInterop)||_.oH(),v;_.dt(function(){var P;return void((P=v)==null?void 0:P.destroy())});
var y;_.m$(function(){var P=_.s_(e);if(P!==y){y=P;var z=Object.assign({},{animationName:P,animationRef:_.s_(c)},_.s_(I));try{_.Q().resolve(RPD)().then(function(x){var M;(M=v)==null||M.destroy();M=z.animationRef;var N=z.listeners;x=x.loadAnimation(Object.assign({},{container:Y.value},z.animationConfig));M&&(M.lottieEl=x);if(N)for(M=_.p(Object.entries(N)),N=M.next();!N.done;N=M.next()){var W=_.p(N.value);N=W.next().value;(W=W.next().value)&&x.addEventListener(N,W)}v=x})}catch(x){P=x;
var m="LottieComponent error.";P.message&&(m+=" Original description: "+P.message);_.ni(P,m);_.OG(P);var u;((u=z.listeners)==null?0:u.error)&&z.listeners.error(P)}}});
var Z=_.RQ("ytLottieComponentHost",T);return _.w(WFQ,{cond:function(){return!B},
then:function(){return _.w("lottie-component",{class:Z,el:Y})}})};
EZ6=function(E){var B=_.oH(),I=_.p(TlD(E.data.animationConfig.name||"",E.className)),T=I.next().value;I=I.next().value;var e=xP(function(){return E.data.animationRef});
sr(function(){E.data.animationRef&&(E.data.animationRef.lottieEl=e==null?void 0:e.lottieEl)},[E.data.animationRef]);
return _.w("lottie-component",{skip:!0,class:_.RQ(I,"ytLottieComponentHost"),el:B},_.w(_.E1,{data:E.data,animationRef:e,animationName:T,elRefForInterop:B}))};
$Qc=function(E,B,I,T){function e(Y,v){if(B.value===v&&E!=null&&E.value){for(;E.value.firstChild;)E.value.removeChild(E.value.firstChild);E.value.classList.add("yt-spec-icon-shape");Y(E.value,T)}}
I=_.Bxd(_.Q().resolve(_.Ee),I);if(typeof I==="function")B.value=null,e(I,null);else{var c=new _.cC(I.then,I);B.value=c;c.then(function(Y){e(Y,c)})}};
Tx4=function(E,B){var I=document.createElement("div"),T=_.dU(I,function(){return _.w(_.wU,{cond:E,then:function(e){return _.w(I9i,{data:e,options:B})}})});
return[I,T]};
_.B$=function(){for(var E=[],B=_.p(_.aG.apply(0,arguments)),I=B.next();!I.done;I=B.next())if(I=I.value)if(typeof I==="string")E.push(I);else{I=_.p(Object.entries(I));for(var T=I.next();!T.done;T=I.next()){var e=_.p(T.value);T=e.next().value;(e=e.next().value)&&E.push(T)}}return E.join(" ")};
ikG=function(E){var B=_.oH(),I=Gb(),T=fC(E.character)||fC(E.previousCharacter);Q9(function(){if(E.marginMultiplier){var e;(e=I.value)==null||e.cancel();T?(e=E.previousCharacter?Number(E.previousCharacter)+10:E.rollUp?0:30,E.shouldAnimate||(e-=ey6(E,e))):(e=E.rollUp?0:2,E.shouldAnimate||(e-=E.rollUp?-1:1));B.value.style.marginTop="-"+e*E.marginMultiplier+"px";E.shouldAnimate?I.value=l9G(B.value,E,e,T):B.value.style.display=E.character?"":"none"}});
return _.w("animated-rolling-character",{el:B,class:"animated-rolling-character-wiz"},_.AV(T,function(){for(var e=[],c=1;c<30;c++)e.push(_.w("div",null,c%10));return _.w(_.VS,null,_.w("div",null,"\u00a0"),e,_.w("div",null,"\u00a0"))},function(){return c$4(E.character)}))};
c$4=function(E){return _.w(_.VS,null,_.w("div",null,"\u00a0"),_.w(_.VS,null,_.AV(!E||_.aB(E),function(){return _.w("div",null,"\u00a0")},function(){return _.w("div",null,E)})),_.w("div",null,"\u00a0"))};
l9G=function(E,B,I,T){I=new Animation(new KeyframeEffect(E,[{transform:"translateY(0px)"},{transform:"translateY("+(T?ey6(B,I):B.rollUp?-1:1)*B.marginMultiplier+"px)"}],psJ),document.timeline);B.character?(E.style.display="",I.onfinish=null):I.onfinish=function(){E.style.display="none"};
I.play();return I};
ey6=function(E,B){var I=Number(E.character)+10;if(E.previousCharacter)if(E.character){var T=Number(E.character),e=Number(E.previousCharacter);E=E.rollUp?e<T?I:I+10:e<T?I-10:I}else E=E.rollUp?30:0;else E=E.character==="0"?I:E.rollUp?I-10:I+10;return B-E};
_.$3=function(E,B){return function(I){var T={},e;for(e in I){var c=void 0,Y=void 0;((c=B)==null?0:(Y=c.callbacks)==null?0:Y[e])||(T[e]=I[e])}return _.w(Zp4,null,function(){for(var v in T)I[v]=_.s_(T[v]);I.disableReactiveLogging=!0;return _.w(E,Object.assign({},I))})}};
_.IS=function(E){var B=Gb(),I=Gb();sr(function(){B.value=E.numberText;I.value=E.numberValue},[E.numberText]);
var T=E.fontSizeMultiplier?E.heightPx*E.fontSizeMultiplier:E.heightPx,e=Lc(function(){if(E.numberText){var Y=E.numberText;var v=E.forceRollUp||!I.value||!E.numberValue||I.value<E.numberValue;var y=!!E.shouldAnimate,Z=B.value,P=[],z=0,m=0,u=(Z?Z.replace(/\D/g,"").length:0)-(Y?Y.replace(/\D/g,"").length:0);Z=Z?Z.split(/(\d)/).filter(Boolean):[];for(Y=Y.split(/(\d)/).filter(Boolean);u<0;){var x=Y[m];P.push({character:x,rollUp:v,marginMultiplier:T,shouldAnimate:y});m++;fC(x)&&u++}for(;z<u;)x=Z[z],P.push({previousCharacter:x,
rollUp:v,marginMultiplier:T,shouldAnimate:y}),z++,fC(x)||u++;for(;m<Y.length;)u=Y[m],x=Z[z],fC(u)===fC(x)?(m++,z++):fC(u)?(z++,u=void 0):fC(x)&&(m++,x=void 0),P.push({character:u,previousCharacter:x,rollUp:v,marginMultiplier:T,shouldAnimate:y});v=P}else v=[];return v},[E.numberText]),c=E.numberText?["height: "+T+"px;",
"line-height: "+E.heightPx+"px;"].join(" "):"";return _.w("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:c,dir:"ltr","aria-hidden":"true"},e.map(function(Y){return _.w(ikG,Object.assign({},Y))}))};
Y0d=function(E){var B=E.nodeName;if(E.id)return B+="#"+E.id;if(E.classList)for(var I=_.p(E.classList),T=I.next();!T.done;T=I.next())B+="."+T.value;E.parentElement&&(B=Y0d(E.parentElement)+" > "+B);return B};
a9J=function(E){return function(B){var I=rLc("event",{type:B.type});I&&B.target&&I.attr("nodepath",Y0d(B.target));return ALB(I,E,B)}};
_.TI=function(E){E&&bLQ("event")&&(E=a9J(E));return UEc(function(B){var I,T=(I=E)==null?void 0:I(B);return typeof T==="boolean"?T:!0})};
ex=function(E){return function(){return E()?E():void 0}};
vZt=function(E){return new KeyframeEffect(E,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
y$6=function(E){return new KeyframeEffect(E,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
C8f=function(E){var B=_.p(_.lQ(E,void 0,"Clci1e")),I=B.next().value,T=B.next().value;I.current=E;return[I,function(e){return void T(I.current=e)}]};
_.l0=function(E){var B=XC(function(){return C8f(E())},{isEqual:function(I,T){return I[0].current===T[0].current}});
return[function(){return B()[0]()},
function(I){return void B()[1](I)}]};
_.c$=function(E){return function(){var B="",I;for(I in E){for(var T=E[I];typeof T==="function";)T=T();T!==void 0&&T!==null&&(B+="; "+I+": "+T)}return B.length>0?_.s_(B.slice(2)):_.s_()}};
wsD=function(E){switch(E){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"}};
zyi=function(E,B,I,T,e,c){var Y=Zkf(E),v=Y.disabled,y=Y.iconPosition,Z=Y.style,P=Y.focused,z=function(){return!!x()&&y()==="icon-only"},m=function(){return!!x()&&y()==="icon-only-40"},u=function(){return!!x()&&y()==="icon-with-label"},x=function(){return!!B||!(T==null||!T())};
return{type:function(){return Z()==="call-to-action-inverse"?"text":Z()==="overlay-dark"&&E().type!=="filled"&&E().type!=="tonal"?"tonal":E().type},
shouldFocus:function(){return(P()||(c==null?void 0:c()))&&!v()},
hasIconLeading:function(){return!!x()&&y()==="leading"},
hasIconTrailing:function(){return!!x()&&y()==="trailing"},
hasIconLeadingTrailing:function(){return!!x()&&!!(I||e!=null&&e())&&y()==="leading-trailing"},
hasIconOnly:z,hasIconOnly40:m,hasIconWithLabel:u,iconButton:function(){return z()||m()||u()},
visiblyDisabled:function(){return(v()?"disabled":E().state)==="disabled"||v()},
overrideSmallSizeIcon:function(){return P8c(E(),x())},
iconToRender:B?B:function(){return _.w(_.i0,{icon:T,size:function(){return pp(E(),!0)},
active:function(){return E().toggled}})},
secondaryIconToRender:I?I:function(){return _.w(_.i0,{icon:e,size:function(){return pp(E(),!0)},
active:function(){return E().toggled}})}}};
Zkf=function(E){return{size:function(){return E().size},
style:function(){return E().style},
focused:function(){return E().focused},
disabled:function(){return E().disabled},
onTap:function(B){var I,T;return(T=(I=E()).onTap)==null?void 0:T.call(I,B)},
alignByText:function(){return E().alignByText},
aTagConfig:function(){return E().aTagConfig},
customColors:function(){return E().customColors},
segmentedPosition:function(){return E().segmentedPosition},
toggled:function(){return E().toggled},
toggleable:function(){return E().toggleable},
accessibilityLabel:function(){return E().accessibilityLabel},
onToggle:function(B){var I,T;return(T=(I=E()).onToggle)==null?void 0:T.call(I,B)},
iconPosition:function(){return E().iconPosition},
oneOffCustomTextWrap:function(){return E().oneOffCustomTextWrap},
disableTextEllipsis:function(){return E().disableTextEllipsis},
disableBackdropFilter:function(){return E().disableBackdropFilter},
tooltipText:function(){return E().tooltipText},
ariaHidden:function(){return E().ariaHidden},
tabIndex:function(){return E().tabIndex},
buttonText:function(){return E().buttonText},
formattedButtonText:function(){return E().formattedButtonText},
animatedTextProps:function(){return E().animatedTextProps}}};
mQQ=function(E){return E.style==="overlay-dark"?4:E.style==="overlay"?E.type==="filled"?4:3:E.type==="filled"||E.style==="call-to-action-inverse"||E.style==="mono-inverse"?2:1};
P8c=function(E,B){B=(E.iconPosition==="icon-only"||E.iconPosition==="icon-only-40"||E.iconPosition==="icon-with-label")&&B;return!E.segmentedPosition&&B&&E.size==="S"};
Qii=function(){return!_.d("web_disable_backdrop_filter")};
pp=function(E,B){switch(E.size){case "XS":return 16;case "S":return P8c(E,B)?24:16;default:return 24}};
dQG=function(E){switch(E){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"}};
hyD=function(E){switch(E){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"}};
siJ=function(E){switch(E){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"}};
ucB=function(E){if(E.style==="overlay-dark"&&E.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
L8i=function(E){if(!E)return{};var B=E.color,I=E.backgroundColor;E=E.borderColor;var T="";B&&(T+="color: "+B+";");I&&(T+="background-color: "+I+";");E&&(T+="border-color: "+E+";");return{style:T}};
xQc=function(E,B){if(!U7){var I;IDF(function(){return I=C0c(E,B)});
return I}return C0c(E,B)};
G_J=function(){var E=sIt(U7||void 0,aQQ);return E===Vj||(E==null?void 0:E.name)==="\u0275NotFound"?void 0:E};
MXQ=function(E){var B=E.data;var I=E.icon;var T=E.secondaryIcon;var e=E.iconName;var c=E.secondaryIconName;G_J();var Y=B.size;E=B.style;var v=B.focused,y=B.disabled,Z=B.onTap,P=B.alignByText,z=B.aTagConfig,m=B.customColors,u=B.segmentedPosition,x=B.toggled,M=B.toggleable,N=B.accessibilityLabel,W=B.onToggle,U=B.iconPosition,q=B.oneOffCustomTextWrap,f=B.disableTextEllipsis,ed=B.disableBackdropFilter,K=B.tooltipText,p4=B.ariaHidden,sc=B.tabIndex,Gf=!!I||!!e,xi=I,ki=T;if(e){var WG=pp(B,!0);xi=function(){return _.w(_.i0,
{icon:e,size:WG,active:B.toggled})}}if(c){var rJ=pp(B,!0);
ki=function(){return _.w(_.i0,{icon:c,size:rJ,active:B.toggled})}}var Uc=B.state;
I=B.type;E==="call-to-action-inverse"&&(I="text");E==="overlay-dark"&&I!=="filled"&&I!=="tonal"&&(I="tonal");var CV=Gf&&U==="leading",Bm=Gf&&U==="trailing",LV=Gf&&(!!T||!!c)&&U==="leading-trailing";T=Gf&&U==="icon-only";var I$=Gf&&U==="icon-only-40";U=Gf&&U==="icon-with-label";var bc=T||I$||U;y&&(Uc="disabled");var hz=Uc==="disabled"||y;Gf=P8c(B,Gf);Uc={};var TU=_.B$((Uc["yt-spec-button-shape-next"]=!0,Uc[dQG(I)]=!0,Uc[hyD(E)]=!hz,Uc["yt-spec-button-shape-next--disabled"]=!!hz,Uc[siJ(Y)]=!0,Uc["yt-spec-button-shape-next--focused"]=
!!v&&!y,Uc["yt-spec-button-shape-next--icon-trailing"]=Bm,Uc["yt-spec-button-shape-next--icon-leading"]=CV,Uc["yt-spec-button-shape-next--icon-leading-trailing"]=LV,Uc["yt-spec-button-shape-next--icon-button"]=T||U,Uc["yt-spec-button-shape-next--icon-only-default"]=I$,Uc["yt-spec-button-shape-next--align-by-text"]=!!P,Uc["yt-spec-button-shape-next--segmented-start"]=u==="start",Uc["yt-spec-button-shape-next--segmented-end"]=u==="end",Uc["yt-spec-button-shape-next--override-small-size-icon"]=Gf,Uc["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!q,Uc["yt-spec-button-shape-next--disable-text-ellipsis"]=!!f,Uc["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!ed&&Qii(),Uc)),Wm=_.TI(function(z2){Z==null||Z(z2);M&&(W==null||W(z2))});
Y=function(){return z?_.w(_.Y3,{aTagConfig:z,disabled:y,className:TU,style:L8i(m).style,title:K!=null?K:"",ariaLabel:N,ariaCurrent:M&&x},_.w(_.VS,null,Okd(B,CV,LV,Bm,bc,xi,ki))):_.w("button",{"on:click":Wm,class:TU,title:K!=null?K:"",style:y&&z?"pointer-events:none":L8i(m).style,disabled:y,"aria-pressed":M?!!x:void 0,"aria-label":N?N:void 0,"aria-disabled":hz,"aria-hidden":p4,tabindex:sc},_.w(_.VS,null,Okd(B,CV,LV,Bm,bc,xi,ki)))};
v={};E=(v["yt-spec-button-shape-with-label"]=!0,v["yt-spec-button-shape-with-label--is-overlay"]=E==="overlay"||E==="overlay-dark",v);return _.w("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},U?_.w("label",{class:_.B$(E)},Y(),_.w("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},nZF(B))):Y())};
nZF=function(E){var B=E.formattedButtonText,I=E.animatedTextProps,T=E.buttonText,e=E.oneOffCustomTextWrap;E=E.iconPosition;return I?_.w(_.IS,{numberText:I.numberText,numberValue:I.numberValue,heightPx:I.heightPx,fontSizeMultiplier:I.fontSizeMultiplier,shouldAnimate:I.shouldAnimate,forceRollUp:I.forceRollUp}):B?(I=E==="icon-with-label"||e,_.w(_.aS,{text:Object.assign({},B,I?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!I})):T};
Okd=function(E,B,I,T,e,c,Y){return _.w(_.VS,null,_.AV(c&&(B||I||e),function(){return _.w(_.VS,null,_.w("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},c==null?void 0:c()))}),_.AV((E.buttonText||E.formattedButtonText||E.animatedTextProps)&&!e,function(){return _.w(_.VS,null,_.w("div",{class:"yt-spec-button-shape-next__button-text-content"},nZF(E)))}),_.AV(T,function(){return _.w(_.VS,null,_.w("div",{class:"yt-spec-button-shape-next__icon"},c==null?void 0:c()))}),_.AV(I,function(){return _.w(_.VS,
null,_.w("div",{class:"yt-spec-button-shape-next__secondary-icon"},Y==null?void 0:Y()))}),_.AV(!E.disabled&&!0,function(){return _.w(_.v$,{model:{color:mQQ(E)}})}))};
HkB=function(E,B,I){gX(MXQ)({data:E,icon:B?function(){return _.w(js,null,B)}:void 0,
secondaryIcon:I?function(){return _.w(js,null,I)}:void 0})};
J$d=function(E,B,I){var T=E.buttonText,e=E.formattedButtonText,c=E.formattedButtonTextLegacy,Y=E.animatedTextProps,v=E.style,y=E.size,Z=E.focused,P=E.disabled,z=E.onTap,m=E.alignByText,u=E.aTagConfig,x=E.customColors,M=E.segmentedPosition,N=E.toggled,W=E.toggleable,U=E.accessibilityLabel,q=E.onToggle,f=E.iconPosition,ed=E.oneOffCustomTextWrap,K=E.disableTextEllipsis,p4=E.disableBackdropFilter,sc=E.tooltipText,Gf=E.ariaHidden,xi=E.tabIndex,ki=E.state,WG=E.type;v==="call-to-action-inverse"&&(WG="text");
v==="overlay-dark"&&WG!=="filled"&&WG!=="tonal"&&(WG="tonal");var rJ=!!B&&f==="leading",Uc=!!B&&f==="trailing",CV=!!B&&!!I&&f==="leading-trailing",Bm=!!B&&f==="icon-only",LV=!!B&&f==="icon-only-40",I$=!!B&&f==="icon-with-label",bc=Bm||LV||I$;P&&(ki="disabled");var hz=ki==="disabled"||P;ki=P8c(E,!!B);var TU={},Wm=(TU["yt-spec-button-shape-next"]=!0,TU[dQG(WG)]=!0,TU[hyD(v)]=!hz,TU["yt-spec-button-shape-next--disabled"]=!!hz,TU[siJ(y)]=!0,TU["yt-spec-button-shape-next--focused"]=!!Z&&!P,TU["yt-spec-button-shape-next--icon-trailing"]=
Uc,TU["yt-spec-button-shape-next--icon-leading"]=rJ,TU["yt-spec-button-shape-next--icon-leading-trailing"]=CV,TU["yt-spec-button-shape-next--icon-button"]=Bm||I$,TU["yt-spec-button-shape-next--icon-only-default"]=LV,TU["yt-spec-button-shape-next--align-by-text"]=!!m,TU["yt-spec-button-shape-next--segmented-start"]=M==="start",TU["yt-spec-button-shape-next--segmented-end"]=M==="end",TU["yt-spec-button-shape-next--override-small-size-icon"]=ki,TU["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!ed,TU["yt-spec-button-shape-next--disable-text-ellipsis"]=!!K,TU["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!p4&&Qii(),TU),z2=function(){if(Y)gX(_.IS)(Y);else if(c)c(f==="icon-with-label"||ed?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(e){var kl=f==="icon-with-label"||ed;V36(Object.assign({},e,kl?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!kl})}else T&&
kp(T)},cG=function(kl){z==null||z(kl);
W&&(q==null||q(kl))},$I=u?Nxc:gZJ,tz=u?"aria-current$":"aria-pressed$",pX=function(){B&&(rJ||CV||bc)&&function(){yH({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){B()})}();
(T||e||c||Y)&&!bc&&function(){yH({className:"yt-spec-button-shape-next__button-text-content"},function(){z2()})}();
Uc&&function(){yH({className:"yt-spec-button-shape-next__icon"},function(){B()})}();
CV&&function(){yH({className:"yt-spec-button-shape-next__secondary-icon"},function(){I()})}();
P||gX(_.v$)({model:{color:mQQ(E)}})},OZ=function(){var kl={};
$I(Object.assign({},(kl.className=_.B$(Wm),kl.onclick=u?void 0:cG,kl.disabled=P,kl["aria-disabled$"]=hz,kl.style=P&&u?"pointer-events:none":void 0,kl[tz]=W?!!N:void 0,kl["aria-label$"]=U,kl.title$=sc!=null?sc:"",kl["aria-hidden$"]=Gf,kl.tabindex$=xi,kl),u,L8i(x)),function(){pX()})};
I$?(y={},v=(y["yt-spec-button-shape-with-label"]=!0,y["yt-spec-button-shape-with-label--is-overlay"]=v==="overlay"||v==="overlay-dark",y),S0c({className:_.B$(v)},function(){OZ();yH({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},z2)})):OZ()};
W8J=function(E,B,I){_.d("web_wiz_button_shape")?HkB(E,B,I):J$d(E,B,I)};
Cp=function(E,B){_.se(E,Object.assign({},B,{forceClickLogging:!0}))};
XsG=function(E,B,I,T){var e=void 0;return function(c){var Y=_.ha(I?E==null?void 0:E.onDisabledTap:E==null?void 0:E.onTap);if(Y){var v;e=(v=e)!=null?v:B==null?void 0:B.value;if(Y)if(_.d("web_button_vm_click_client_ve_killswitch"))Cp(Y,Object.assign({},{form:{element:e,event:c}},void 0));else{var y;v=Y==null?void 0:Y.clickTrackingParams;var Z,P=E==null?void 0:(y=E.loggingDirectives)==null?void 0:(Z=y.clientVeSpec)==null?void 0:Z.uiType;y=P&&!v?_.wA(P):void 0;Cp(Y,Object.assign({},{form:{element:e,event:c}},
{clickedVisualElement:y}))}}T&&T(c)}};
r$c=function(E){switch(E){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"}};
bkD=function(E){switch(E){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"}};
oZF=function(E){switch(E){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"}};
A$G=function(E){switch(E){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"}};
jid=function(E,B){return _.cP(E.entities,"engagementToolbarStateEntityPayload",B)};
k_D=function(E){(E=_.Yg(E))&&_.UQG(E)};
_.UQG=function(E){var B=_.nC();B&&_.rY(B,E)};
tXd=function(E,B,I){_.I2(E,"yt-open-popup-action",[B,I||E])};
f9D=function(E,B){var I=_.Or(E,"endpoint"),T=_.Or(E,"action");return(I=T?T:I)&&B&&(I=B.navigationEndpointPopupMap[I])&&(E=_.WA(I,E),(I=_.Or(E,"renderer"))&&B.supportedPopups.hasOwnProperty(I))?{openPopupAction:{popupType:B.popupTypeMap[I],popup:E}}:null};
VXi=function(E,B,I,T){if(T){var e;I=I==null?void 0:(e=I.data)==null?void 0:e.contents;(e=I instanceof Array&&I.length?I[0]:I)&&(I=_.Or(e,"renderer"))&&T.supportedPopups.hasOwnProperty(I)&&(B.stopPropagation(),tXd(E,{openPopupAction:{popupType:T.popupTypeMap[I],popup:e}}))}};
DQt=function(E,B,I,T){T=T===void 0?!1:T;var e=q0f(B);if(e){e.href&&Lq(e.href);var c=B.button;c=c!==void 0?c===0&&!ZQ(B):!ZQ(B);e.data&&c&&F8d(E,e,B,I,T)}};
F8d=function(E,B,I,T,e){e=e===void 0?!1:e;var c=_.RI("pbj_navigate_limit",-1)===0;K8c(B);_.Q().resolve(_.Fx(Ss));var Y=B.data;if(Object.keys(Y).length!==0)if(!_.d("unplugged_web_disable_actions_for_cec_endpoint")&&_.h(Y,_.pO))_.d("endpoint_behavior_command_executor_fix_killswitch")||(I.preventDefault(),I.stopPropagation()),_.cN(E,[Y],E);else if(T=f9D(Y,T))Y.loggingUrls&&Y.loggingUrls.forEach(function(y){y.baseUrl&&_.JI(y.baseUrl)}),I.preventDefault(),I.stopPropagation(),tXd(E,T,B);
else{var v=RyD(0,B.data,I);if(E=B.getForm)E=E(),v.tempData=v.tempData||{},v.tempData=Object.assign({},v.tempData,E);E=_.W8(I);if(T=E.find(function(y){return!!y.visualElement}))v.createScreenConfig=v.createScreenConfig||{},v.createScreenConfig.clickedVisualElement=T.visualElement;
if(!c)if(I.preventDefault(),I.stopPropagation(),_.h(Y,_.EHF)&&!e&&_.BV.instance)_.BV.instance.resolveCommand(Y,v);else if(_.d("kevlar_command_handler_formatted_string")&&!e&&_.BV.instance&&Bkc(Y))e=E.find(function(y){return!!y.is})||I.target,I={form:Object.assign({},v,{event:I,
element:e,originatingNode:B})},_.BV.instance.resolveCommand(Y,I);else{Y=_.W8(I);I=[];for(e=0;e<Y.length;e++)(c=Y[e].is)&&I.push(c);GAQ({parents:I.join(","),text:B.innerText},function(){_.$O(B,"yt-navigate",v)})}}};
$1B=function(E){if(E=q0f(E))K8c(E),y6G(E.href)};
q0f=function(E){E=_.W8(E);for(var B,I=0;I<E.length;I++)if(B=E[I],B.tagName==="A"&&B.classList.contains("yt-simple-endpoint")){if(!B.data)break;return B}return null};
ZQ=function(E){return E.shiftKey||E.altKey||E.metaKey||E.ctrlKey};
ISi=function(E,B){var I={itct:B.clickTrackingParams};_.d("kevlar_client_side_screens")&&(!_.h(B,_.yQ)||_.d("kevlar_exclude_endpoint_killswitch"))&&(I.endpoint=JSON.stringify(B));_.d("enable_unknown_lact_fix_on_html5")&&_.Q().resolve(_.Fx(_.P$))&&(I.lact=_.DD());YuF(I);_.qU(E,I)};
K8c=function(E){E.href&&Object.keys(E.data).length!==0&&ISi(E.href,E.data)};
Bkc=function(E){for(var B=_.p(Tkc),I=B.next();!I.done;I=B.next())if(E[I.value])return!1;return!0};
_.zI=function(E,B){if(B){var I={};e1B.forEach(function(T){T=lSD(B,T,"--yt-lightsource-");Object.assign(I,T)});
cef.forEach(function(T){T=lSD(B,T,"--yt-basic-");Object.assign(I,T)});
_.Dk(E,I)}};
lSD=function(E,B,I){var T={};T[I+_.vU(B)]=E&&E[B]?_.hR(E[B]):"";return T};
_.QH=function(E,B,I){ma[E]||(ma[E]={});ma[E][B]=I};
_.dA=function(E){ma[E]||(ma[E]={});return ma[E]};
i6F=function(E){if(!E)return{};var B=E.foregroundTitleColor,I=E.backgroundColor;E=E.borderColor;var T="text";E?T="outline":I&&(T="filled");return{type:T,customColors:{color:B?_.hR(B):void 0,backgroundColor:I?_.hR(I):void 0,borderColor:E?_.hR(E):void 0}}};
yeD=function(E){var B=E.renderer;var I=E.element;var T=E.commandController;var e=E.onTapCallback;var c=E.skipCommandHandling;var Y=E.overrides;var v=E.forceIcon;var y=E.forceModernIconButton;var Z=E.forceDisabled;var P=E.isSubscribe===void 0?!1:E.isSubscribe;var z=E.isPressed===void 0?!1:E.isPressed;var m=E.useButtonSize===void 0?!1:E.useButtonSize;E=pIi(B);P&&(E.style="mono",E.type="filled");v=!B.icon||!v&&B.text?B.icon?B.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:y?"icon-only":"icon-only-40";v==="icon-only-40"&&(E.type="text");var u;y=Object;P=y.assign;m=YTd(B,m);z=!!B.isSelected||!_.d("web_propagate_is_pressed_killswitch")&&!!z;var x=B.isSelected!==void 0;Z=Z===void 0?B.isDisabled:Z;var M=B.text?_.zA(B.text):void 0;var N,W,U,q=((N=B.accessibilityData)==null?void 0:(W=N.accessibilityData)==null?void 0:W.label)||((U=B.accessibility)==null?void 0:U.label);N=q?q:_.U3(B.text);I=aSt(B,I,T,e,c);T=vHf(B);T!=null&&T.length?(T=_.uu({innertubeCommand:SL6(T),
forceNewState:!0}),T=L8(T)?T:void 0):T=void 0;return P.call(y,{},E,m,{iconPosition:v},Y,{focused:!1,toggled:z,toggleable:x,disabled:Z,formattedButtonText:M,accessibilityLabel:N,onTap:I,aTagConfig:T},i6F((u=B.colorData)==null?void 0:u.basicColorPaletteData),{oneOffCustomTextWrap:B.oneOffCustomTextWrap})};
aSt=function(E,B,I,T,e){return function(c){var Y=vHf(E);T(Y,c);if(!e){Y=_.p(Y);for(var v=Y.next();!v.done;v=Y.next())Cp(v.value,{form:{element:B,event:c},commandController:I})}}};
vHf=function(E){var B=[];E.command&&B.push(E.command);E.serviceEndpoint&&B.push(E.serviceEndpoint);E.navigationEndpoint&&B.push(E.navigationEndpoint);return B};
YTd=function(E,B){if(B)switch(E.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(E.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
pIi=function(E){switch(E.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.hk=function(E){return _.aJ(function(){aPD()();return SV(E)},void 0,"Icv7j")};
s1=function(E,B){return _.cP(E.entities,"likeStatusEntity",B)};
Cxt=function(E,B){return _.cP(E.entities,"likeCountEntity",B)};
_.wIi=function(E,B){return _.cP(E.entities,"stringEntity",B)};
Z66=function(E,B){if(!E)return!1;var I,T=(I=_.h(E,_.a2))==null?void 0:I.signal;if(T&&B.signalEndpointMap)return!!B.signalEndpointMap[T];var e;if((I=(e=_.h(E,_.u0))==null?void 0:e.request)&&B.continuationEndpointMap)return!!B.continuationEndpointMap[I];for(var c in E)if(B.commandEndpointMap[c])return!0;return!1};
PxQ=function(E,B){if(B.streamingEndpointMap)for(var I in E)if(B.streamingEndpointMap[I]&&(E=B.streamingEndpointMap[I]))return E()};
z14=function(E,B){var I,T=(I=_.h(E,_.a2))==null?void 0:I.signal;if(T&&B.signalEndpointMap&&(I=B.signalEndpointMap[T]))return I();var e;if((I=(e=_.h(E,_.u0))==null?void 0:e.request)&&B.continuationEndpointMap&&(e=B.continuationEndpointMap[I]))return e();for(var c in E)if(B.commandEndpointMap[c]&&(E=B.commandEndpointMap[c]))return E()};
m1d=function(E){var B={"Content-Type":"application/json"};_.HA("EOM_VISITOR_DATA")?B["X-Goog-EOM-Visitor-Id"]=_.HA("EOM_VISITOR_DATA"):_.HA("VISITOR_DATA")&&(B["X-Goog-Visitor-Id"]=_.HA("VISITOR_DATA"));B["X-Youtube-Bootstrap-Logged-In"]=_.HA("LOGGED_IN",!1);_.HA("DEBUG_SETTINGS_METADATA")&&(B["X-Debug-Settings-Metadata"]=_.HA("DEBUG_SETTINGS_METADATA"));E!=="cors"&&((E=_.HA("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(B["X-Youtube-Client-Name"]=E),(E=_.HA("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(B["X-Youtube-Client-Version"]=
E),(E=_.HA("CHROME_CONNECTED_HEADER"))&&(B["X-Youtube-Chrome-Connected"]=E),(E=_.HA("DOMAIN_ADMIN_STATE"))&&(B["X-Youtube-Domain-Admin-State"]=E),_.gU("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(E=_.HA("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(B["X-YouTube-Lava-Device-Context"]=E));return B};
Q9f=function(E,B){B.watchNextResponse||B.reelItemWatchResponse?B.watchNextResponse?E.content=B.watchNextResponse:E.content=B.reelItemWatchResponse:B.playerResponse?E.player=B.playerResponse:B.reelWatchSequenceResponse&&(E.reelSequence=B.reelWatchSequenceResponse)};
Lp=function(E){return function(){return new E}};
x3=function(E){var B=_.Q();return function(){return B.resolve(E)}};
_.GI=function(E){if(!E)return null;for(var B=[],I=0;I<E.textSegments.length;I++){var T=E.textSegments[I];T.text?B.push(T):T.emojiId&&B.push({emoji_id:T.emojiId})}return{text_segments:B}};
LHJ=function(E,B,I,T,e,c,Y){c=c===void 0?[]:c;var v=new _.O1;v.endpoint=I;if(!I)return _.GF(new _.P7("handle undefined endpoint",B.tagName)),v;var y=W0i(I);y.length&&(_.cN(E,y,B,T),v.actions=y);I.loggingUrls&&I.loggingUrls.forEach(function(P){P.baseUrl&&Wn(P.baseUrl,P.attributionSrcMode)});
y=!_.d("web_skip_impression_click_killswitch")&&T&&T.impression;if(I.clickTrackingParams&&!d1i(I)&&!h1c(B)&&!y&&(y=_.lu(),!_.np(y,B))){var Z=B.getScreenLayer&&B.getScreenLayer();Z?y.clickCommand(I,null,Z):y.clickCommand(I,null)}y=!1;for(Z=0;Z<c.length;Z++)if((0,c[Z])(B,I,T)){y=!0;break}!y&&s9B(I)&&(v.ajaxPromise=udG(E,B,I,T,e,Y));return v};
h1c=function(E){var B;return(E=(B=E.data)==null?void 0:B.navigationEndpoint)&&!!E.clickTrackingParams};
d1i=function(E){var B=_.h(E,_.a2);if(B&&(B=B.signal)&&x1d.indexOf(B)>=0)return!0;for(var I in E)if(GH4.indexOf(I)>=0)return!0;return!1};
s9B=function(E){var B;if(((B=_.h(E,_.a2))==null?void 0:B.signal)==="CLIENT_SIGNAL")return!1;for(var I in E)if(O6c.indexOf(I)>=0)return!1;E=Object.keys(E);return E.length===1&&E[0]==="loggingUrls"?!1:!0};
WHQ=function(E,B,I,T,e,c,Y){var v=_.MN.instance;if(v&&_.H$(v,T))var y=_.NN(v,T,e).then(function(P){return(P==null?0:P.data)?P:{data:P}});
else y=E.requestDataForServiceEndpoint(T,e),_.h(T,nHc)||_.h(T,MvQ)||_.h(T,_.H64)||_.h(T,NkQ)||_.OG(new _.P7("No RequestBuilder for endpoint",T));var Z=_.gA();Z.promise.thenCatch(function(){var P=_.Or(T,"action")||_.Or(T,"command")||_.Or(T,"endpoint");P&&(P=T[P],P.hasOwnProperty("onFailureAction")?_.cN(B,[P.onFailureAction],I):P.hasOwnProperty("onFailureCommand")&&_.cN(B,P.onFailureCommand,I));y.cancel("Resolver promise rejected")});
y.then(function(P){if(P){var z=P.error;if(z){if(c&&c.onServerError)c.onServerError(T,P);Z.reject(new _.P7("Response error",T,z))}else if(P=P.data)if(z=P.error){if(c&&c.onServerError)c.onServerError(T,P);Z.reject(new _.P7("Returned error",T,z))}else{gH4(B,I,P,T);STJ(P);if(z=JaD(P))for(var m=_.p(z),u=m.next();!u.done;u=m.next()){u=u.value;var x=_.Q().resolve(_.Fx(Jei))||Sx;if(!_.MN.instance||!x.some(function(N){return!!_.h(T,N)})||_.d("kevlar_response_processor_allowlist_killswitch")){var M=x=void 0;
((M=_.h((x=u)==null?void 0:x.commandMetadata,_.D$))==null?0:M.sendPost)?_.l1(B,[u]):_.cN(B,[u],I)}}(m=_.h(P==null?void 0:P.frameworkUpdates,Jk))&&Y&&Y(m);if(c&&c.onSuccess)c.onSuccess(T,P);Z.resolve(new _.W$(P,z))}}else Z.reject(new _.P7("Invalid service endpoint provided",T))},function(P){Z.reject(P)});
return Z.promise};
STJ=function(E){var B;(E=(B=_.h(E==null?void 0:E.onResponseReceivedCommand,_.XIG))==null?void 0:B.continuationItems)&&(E==null?void 0:E.length)===1&&_.h(E[0],reQ)&&_.nO("so_r",void 0,"search_overview_answer")};
udG=function(E,B,I,T,e,c){var Y;return(Y=B.getNetworkManager&&B.getNetworkManager()?B.getNetworkManager():_.Q().resolve(_.Fx(_.Zk)))?WHQ(Y,E,B,I,T,e,c):_.rG("No network manager.")};
gH4=function(E,B,I,T){if(I=I.trackingParams||I.loggingDirectives&&I.loggingDirectives.trackingParams){var e;(_.h(T,b6G)||_.h(T,oHG)||_.h(T,Ae4))&&T.clickTrackingParams?e=_.Yg(T.clickTrackingParams):_.d("web_graft_to_parent_command")&&T.clickTrackingParams&&(e=_.Yg(T.clickTrackingParams));var c;T=(c=B.getScreenLayer)==null?void 0:c.call(B);B=_.lu().graftServerVe(I,e,T);_.Ta(E,"yt-store-grafted-ve-action",[B])}};
_.j9B=function(E){var B=new Image;return new _.cC(function(I,T){B.addEventListener("load",function(){I()});
B.addEventListener("error",function(){T()});
B.src=E})};
U1G=function(E){return!!E};
kHJ=function(E){return!!E};
tvD=function(E,B,I){var T=E.rowIndex;T!==void 0&&_.Ta(E.hostElement,"yt-section-reactive-dismissal",[T,B,I])};
_.XZ=function(E,B,I){E=_.p(E);for(var T=E.next();!T.done;T=E.next()){T=T.value;if(T===B)break;for(var e=_.p(I),c=e.next();!c.done;c=e.next())if(c=c.value,T.tagName===c||!_.d("web_event_button_role_check_killswitch")&&T.role==="button"&&c==="BUTTON")return!0}return!1};
_.rA=function(E,B,I){E=_.p(E);for(var T=E.next();!T.done;T=E.next()){T=T.value;if(T===B)break;for(var e=_.p(I),c=e.next();!c.done;c=e.next())if(T.id===c.value)return!0}return!1};
b0=function(E,B){if(!E&&!B)return"medium";E=Math.max(E||0,B||0);return E>=256?"large":E>=96?"medium":"small"};
fSi=function(E){switch(E){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.jx=function(){var E=_.Q().resolve(_.Fx(_.oS));return E?(E=E.getCurrentPage())?_.Ak(E):null:null};
_.k3=function(){var E=_.jx();if(!E){var B=_.Q().resolve(_.Fx(_.oS)),I=B?typeof B:"no page manager";B=B?B.getCurrentPage():null;I=new _.P7("Player is missing when requested.",I,B?B.tagName:"no page");_.xV(I)}return E};
_.Ak=function(E){return E&&E.getPlayer?E.getPlayer():null};
Vv4=function(E,B){E={args:{raw_player_response:E}};B&&(E.args=Object.assign({},E.args,B));return E};
qTQ=function(E){if(E.args){if(E.args.raw_player_response)return E.args.raw_player_response;if(E.args.player_response)return JSON.parse(E.args.player_response)}};
_.FHc=function(E,B){var I={url:"/watch?v="+E.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};E.playlistId&&(I.url+="&list="+E.playlistId);E.playerParams&&(I.url+="&pp="+E.playerParams);E={watchEndpoint:E,commandMetadata:{webCommandMetadata:I}};B&&(E.clickTrackingParams=B);return E};
KHQ=function(){return D14||!!_.WA("yt.player.Application")};
ERQ=function(){return R1G||!!document.querySelector("link#player-css")};
$Mf=function(){function E(){D14=!0;BgJ.resolve()}
var B,I;return _.a(function(T){BgJ||(BgJ=new _.Tv,KHQ()?E():(B=document.createElement("script"),B.addEventListener("load",E),I=_.Pp(_.HA("PLAYER_JS_URL")),_.nr(B,I),document.head.appendChild(B)));return T.return(BgJ.promise)})};
TgD=function(){function E(){R1G=!0;IpB.resolve()}
if(!IpB)if(IpB=new _.Tv,ERQ())E();else{var B=document.createElement("link");B.id="player-css";B.addEventListener("load",E);var I=_.Pp(_.HA("PLAYER_CSS_URL"));_.N7(B,I,"stylesheet");document.head.appendChild(B)}return IpB.promise};
e5B=function(){return KHQ()&&ERQ()?Promise.resolve([]):Promise.all([$Mf(),TgD()])};
lpi=function(E,B,I){var T={args:{}};E&&(T.args.raw_player_response=E);B&&(T.args.raw_watch_next_response=B);I&&(T.args=Object.assign({},T.args,I));return T};
Ybi=function(E,B,I){var T=!1;T=T===void 0?!0:T;E=typeof E==="string"?_.tk(document,E):E;var e=cZQ+"_"+_.$l(E),c=iHD[e];if(c&&T)return p_J(B,I)?c.api.loadVideoByPlayerVars(B.args||null):c.loadNewVideoConfig(B),c.api;c=new fp(E,e,B,I,void 0);iHD[e]=c;c.addOnDisposeCallback(function(){delete iHD[c.getId()]});
return c.api};
p_J=function(E,B){return B&&B.serializedExperimentFlags?B.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):E&&E.args&&E.args.fflags?E.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
apc=function(){var E=new _.Tv;E.resolved=!1;var B=E.resolve;E.resolve=function(I){E.resolved=!0;B(I)};
return E};
yZF=function(E){var B={};vRc().install((B.document_disposed={callback:E},B))};
VH=function(E,B){if(!E&&Math.random()<=_.RI("kevlar_unified_player_logging_threshold")){E=Error("uh`"+(B?B:"Unspecified error"));if(_.d("kevlar_unified_player_throw_errors"))throw E;_.OG(E)}};
_.C7t=function(){var E=_.WA("ytDebugData.callbacks");E||(E={},_.ka("ytDebugData.callbacks",E));return E};
ZHf=function(E,B){var I=_.C7t();if(_.d("web_dd_iu")||w_t.includes(E))I[E]=B};
P7c=function(){return _.a(function(E){return E.return({isLeader:_.N8G(_.t2().getState()),c:_.HA("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.HA("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
z5i=function(){var E;_.a(function(B){if(B.nextAddress==1)return ZHf("APP_STATE",P7c),_.C(B,_.Q().resolve(_.qN),2);E=B.yieldResult;ZHf("PI",function(){return _.a(function(I){return I.return(E.getVideoStats())})});
_.ER(B)})};
mMD=function(E){var B=_.VT(_.bT(_.$i.location.href));E=_.VT(_.bT(E));return _.d("kevlar_clear_non_displayable_url_params")?B==FZ(E):FZ(B)==FZ(E)};
FZ=function(E){var B=_.Q4J(E);E=E.slice(0);var I=["frags"];_.d("kevlar_hide_pp_url_param")&&I.push("pp");_.d("kevlar_hide_time_continue_url_param")&&I.push("time_continue");I=_.p(I);for(var T=I.next();!T.done;T=I.next())T=T.value,E=_.F$(_.VT(E),T);return _.VT(E)+(B?"#"+B:"")};
DQ=function(E,B){B=Number(B)*1E3;var I=Math.round((0,_.VZ)()),T=I.toString();E={innertubeResponse:E,serverDateTimestampMs:T,lastModifiedTimestampMs:T,expireTimestampMs:(I+B).toString()};if(B=_.HA("INNERTUBE_CONTEXT_CLIENT_NAME"))E.clientName=B;return E};
h56=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++dM4};
_.s44=function(){var E=_.Oi(),B=_.nC();B&&E&&_.o2(B,[E],!0)};
L1f=function(E){return E&&uhF.some(function(B){return E.includes(B)})};
HHf=function(E){var B=_.h(E,_.JK);if(!B)return!1;var I=B.url,T=B.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!I)return _.xV(Error("zh")),!1;if(B.target==="TARGET_NEW_WINDOW"){var e={};_.d("resolve_url_parent_tracking_params")&&(!_.tA(I)||fc(window.location.href,I))&&(e={endpoint:E,itct:E.clickTrackingParams});YuF(e);E=null;try{if(T){a:{var c=I,Y=e;T=T===void 0?!1:T;Y&&_.qU(c,Y);var v=_.pr(c),y=_.e6(v);c!=y&&_.Xx(Error("Zf`"+c));c=y;try{if(T){y=c;y=ZqQ(y);Lq(y);E=_.sf(window,y,"_blank",
"attributionsrc");break a}}catch(m){_.SI(m)}Lq(c);E=_.sf(window,v,"_blank")}xMd(_.Q().resolve(GL4),E,I);return!0}}catch(m){_.xV(m)}_.qU(I,e);e={target:"_blank",noopener:_.d("set_window_noopener_ks")&&!B.allowOpener};B=window;v=T1(I)?I:_.pr(typeof I.href!="undefined"?I.href:String(I));E=self.crossOriginIsolated!==void 0;c="strict-origin-when-cross-origin";window.Request&&(c=(new Request("/")).referrerPolicy);y=e.noreferrer;if(E&&y&&c==="unsafe-url")throw Error("pe");c=y&&!E;y=e.target||I.target;T=
[];Y=[];var Z=!1;for(z in e){var P=e[z];switch(z){case "width":case "height":case "top":case "left":T.push(z+"="+P);break;case "target":break;case "noopener":case "noreferrer":P?Y.push(z):(Z=!0,Y.push(z+"=false"));break;case "attributionsrc":T.push(z+(P?"="+P:""));break;default:T.push(z+"="+(P?1:0))}}var z=y!==void 0&&!["_blank","_self","_top","_parent",""].includes(y);z=uc()&&z;OHc&&E&&T.length===0&&Y.length>0&&!z&&!Z?(Y.length===2&&(Y=["noreferrer"]),_.sf(B,v,y,Y[0]),E=nR4()):(z=T.join(","),_.HG()&&
B.navigator&&B.navigator.standalone&&y&&y!="_self"?(z=_.li("A"),Cr(z,v),z.target=y,c&&(z.rel="noreferrer"),((e=e.attributionsrc)||e==="")&&z.setAttribute("attributionsrc",e),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,B,1),z.dispatchEvent(e),z=nR4()):c?(z=_.sf(B,"",y,z),B=_.e6(v),z&&(z.opener=null,B===""&&(B="javascript:''"),B='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Kp(B)+'">',B=z1(B),(e=z.document)&&e.write&&(e.write(mm(B)),
e.close()))):((z=_.sf(B,v,y,z))&&e.noopener&&(z.opener=null),z&&e.noreferrer&&(z.opener=null)),E=z);xMd(_.Q().resolve(GL4),E,I);return!0}z=_.c7(I);z=L1f(z)||I==="https://studio.youtube.com/";B=!(!_.tA(I)||fc(window.location.href,I));e=I.indexOf("disable_polymer=1")>=0;if(B||e||z)Lq(I),u1(),_.xG(I,void 0,void 0,window.top,M5G);else return _.OG(new _.P7("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",E)),!1;return!0};
_.Sbi=function(E,B){B=B===void 0?0:B;if(!(_.h(E,Ngc)||_.h(E,gRf)||_.h(E,_.JK)&&_.h(E,_.JK).url))return!1;var I,T=(I=_.h(E,_.JK))==null?void 0:I.url;I=T?{externalLinkData:{url:T}}:null;return _.lu().clickCommand(E,I,B)};
_.RS=function(E,B){return _.cP(E.entities,"subscriptionStateEntity",B)};
JZJ=function(E,B){return _.cP(E.entities,"subscriptionNotificationStateEntity",B)};
W1D=function(E,B){return _.cP(E.entities,"upcomingEventReminderStateEntity",B)};
X_Q=function(E,B){return _.cP(E.entities,"engagementToolbarSurfaceEntityPayload",B)};
rZF=function(E,B){return _.cP(E.entities,"triStateButtonStateEntityPayload",B)};
bHD=function(E,B){return _.cP(E.entities,"commerceCartCheckoutButtonEntity",B)};
_.oR4=function(E,B){return _.cP(E.entities,"playlistLoopStateEntity",B)};
AZG=function(E,B){return _.cP(E.entities,"commandEntity",B)};
UMc=function(E,B,I,T,e){e=e===void 0?{}:e;return function(c){var Y,v;var y=((Y=E.loggingDirectives)==null?0:(v=Y.clientVeSpec)==null?0:v.uiType)?_.wA(E.loggingDirectives.clientVeSpec.uiType):void 0;e.clickedVisualElement||(e.clickedVisualElement=y);y=j4G(E,B);I(y,c);y=_.p(y);for(Y=y.next();!Y.done;Y=y.next()){Y=Y.value;v=T;var Z=c,P=e;P.form?P.form.event=Z:P.form={element:v,event:Z};Cp(Y,P)}}};
j4G=function(E,B){var I=[];B?(E.toggledCommand&&I.push(E.toggledCommand),E.toggledServiceEndpoint&&I.push(E.toggledServiceEndpoint)):(E.defaultCommand&&I.push(E.defaultCommand),E.defaultServiceEndpoint&&I.push(E.defaultServiceEndpoint),E.defaultNavigationEndpoint&&I.push(E.defaultNavigationEndpoint));return I};
kLB=function(E,B){var I=E.toggledStyle||E.style,T;switch((T=B?I:E.style)==null?void 0:T.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"}}};
t5G=function(E,B){B=B.uniqueId+"-border";var I,T;var e=(T=(I=_.Q().resolve(_.Fx(_.ME)))==null?void 0:I())!=null?T:!1;return{animationRef:E,animationConfig:{name:B,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(e?"dark":"light")+"_v2.json"}}};
_.EO=function(){return _.a(function(E){return E.nextAddress==1?_.C(E,_.Q().resolve(_.qN),2):E.return(_.Q().resolve(fpD)())})};
_.BE=function(){return _.Q().resolve(fpD)()};
_.$4=function(){return xP(function(){return{lottieEl:void 0}})};
V5F=function(E,B){return E.startsWith(B.uniqueId)};
qbB=function(E){var B,I;_.a(function(T){if(T.nextAddress==1)return _.C(T,_.EO(),2);B=T.yieldResult;if((I=B)==null||!I.addEventListener)return IL(),T.return();B.addEventListener("onCueRangeEnter",E);_.ER(T)})};
F1c=function(E){var B,I;_.a(function(T){if(T.nextAddress==1)return _.C(T,_.EO(),2);B=T.yieldResult;if((I=B)==null||!I.removeEventListener)return IL(),T.return();B.removeEventListener("onCueRangeEnter",E);_.ER(T)})};
DMJ=function(E){var B,I,T,e,c;_.a(function(Y){if(Y.nextAddress==1)return _.C(Y,_.EO(),2);B=Y.yieldResult;if((I=B)==null||!I.addCueRange)return IL(),Y.return();T=_.p(E.timings);for(e=T.next();!e.done;e=T.next())c=e.value,B.addCueRange(E.uniqueId+"-"+c,c/1E3,(c+100)/1E3);_.ER(Y)})};
K1d=function(E){var B,I,T,e,c;_.a(function(Y){if(Y.nextAddress==1)return _.C(Y,_.EO(),2);B=Y.yieldResult;if((I=B)==null||!I.removeCueRange)return IL(),Y.return();T=_.p(E.timings);for(e=T.next();!e.done;e=T.next())c=e.value,B.removeCueRange(E.uniqueId+"-"+c);_.ER(Y)})};
R56=function(){var E,B,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,_.EO(),2);E=T.yieldResult;if((B=E)==null||!B.getPlayerState)return IL(),T.return();I=E.getPlayerState();return T.return(I===2)})};
IL=function(){_.OG(new _.P7("Smartimation player does not exist or is corrupted"))};
Iq6=function(E){var B=Eni;Bm6.push(E);$nf||(B(function(){for(var I=_.p(Bm6),T=I.next();!T.done;T=I.next())T=T.value,T();Bm6.length=0;$nf=!1}),$nf=!0)};
Eni=function(E){Promise.resolve().then(E)};
T8=function(E){E=_.p(p$d(E));var B=E.next().value,I=E.next().value,T=!1;_.uW(function(){return function(){T=!0}});
return[B,function(e){Iq6(function(){T&&!_.d("cow_prevent_state_setter_after_cleanup_killswitch")||I(e)})}]};
ejc=function(E){function B(Z){var P;return _.a(function(z){if(z.nextAddress==1)return(P=!V5F(Z,T)||!T.enabled)?z.jumpTo(2):_.C(z,R56(),3);z.nextAddress!=2&&(P=z.yieldResult);if(P)return z.return();I();setTimeout(function(){y(!1)},1500);
_.ER(z)})}
function I(){setTimeout(function(){y(!0);var Z;(Z=c.lottieEl)==null||Z.goToAndPlay(0)},150)}
var T=E.settings;var e=E.className;E=E.children;var c=_.$4(),Y=_.p(T8(!1)),v=Y.next().value,y=Y.next().value;T||(T={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.OG(new _.P7("Smartimation Settings is undefined")));sr(function(){if(T.experimentEnabled)return T.enabled?qbB(B):(y(!1),F1c(B)),function(){F1c(B)}},[T.enabled,
T.experimentEnabled]);sr(function(){if(T.experimentEnabled)return DMJ(T),function(){K1d(T)}},[T.timings.join("")]);
return _.w("yt-smartimation",{class:_.RQ(e,TmJ(v,T))},_.AV(T.experimentEnabled,function(){return _.w("div",{class:"smartimation__border"},_.w(EZ6,{className:"smartimation__border-gradient",data:t5G(c,T)}))}),_.w("div",{class:"smartimation__content"},E))};
TmJ=function(E,B){var I=["smartimation"];B.experimentEnabled&&I.push("smartimation--experiment-enabled");E&&I.push("smartimation--active-border");try{var T;var e=(T=window.CSS)!=null&&T.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(c){_.OG(new _.P7("Smartimation CSS.supports threw an error")),e=!1}e&&I.push("smartimation--enable-masking");
return I.join(" ")};
lq4=function(){try{var E;return(E=window.CSS)!=null&&E.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(B){return _.OG(new _.P7("Smartimation CSS.supports threw an error")),!1}};
ySF=function(E,B,I,T,e){var c=E.playlistId?cSi:i3G;B=B();I=I();e=!!E.videoId&&e()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Zm(B))return pBc({data:E,actionType:c,disabled:e},I);if(E.videoId&&T())return Ydc({data:E,actionType:c,disabled:e});switch(B){case "TRANSFER_STATE_UNKNOWN":return Ydc({data:E,actionType:c,disabled:e});case "TRANSFER_STATE_FAILED":return E.videoId?aqi({data:E,actionType:c,disabled:e}):vnt({data:E,actionType:c,disabled:e});case "TRANSFER_STATE_COMPLETE":return vnt({data:E,
actionType:c,disabled:e});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return pBc({data:E,actionType:c,disabled:e},I);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return E.videoId?aqi({data:E,actionType:c,disabled:e}):Ydc({data:E,actionType:c,disabled:e});default:return Ydc({data:E,actionType:c,disabled:e})}};
CXF=function(E,B){var I=E.onTapCommand,T=_.ha(I);if(E.videoId&&_.h(T,_.ef))return _.h(T,_.ef).action=B,I;E.playlistId&&_.h(T,_.lO)&&(_.h(T,_.lO).action=B);return I};
Ydc=function(E){var B=E.data;var I=E.actionType;E=E.disabled;return{text:wBc,iconType:"OFFLINE_DOWNLOAD",onTap:CXF(B,I.ACTION_ADD),disabled:E}};
pBc=function(E,B){var I=E.data;var T=E.actionType;E=E.disabled;var e="OFFLINE_DOWNLOAD";B>=0&&B<=.1?e="OFFLINE_DOWNLOADING_ZERO":B>.1&&B<=.3?e="OFFLINE_DOWNLOADING_TWENTY":B>.3&&B<=.5?e="OFFLINE_DOWNLOADING_FORTY":B>.5&&B<=.7?e="OFFLINE_DOWNLOADING_SIXTY":B>.7&&B<1?e="OFFLINE_DOWNLOADING_EIGHTY":B===1&&(e="OFFLINE_PIN");return{text:Z3D,iconType:e,onTap:CXF(I,T.ACTION_REMOVE_WITH_PROMPT),disabled:E}};
vnt=function(E){var B=E.data;var I=E.actionType;E=E.disabled;return{text:PXc,iconType:"OFFLINE_PIN",onTap:CXF(B,I.ACTION_REMOVE_WITH_PROMPT),disabled:E}};
aqi=function(E){var B=E.data;var I=E.actionType;E=E.disabled;return{text:zji,iconType:"OFFLINE_DOWNLOAD",onTap:CXF(B,I.ACTION_RETRY),disabled:E}};
mnF=function(){var E=_.p(T8(!1)),B=E.next().value,I=E.next().value;return function(){I(!B)}};
QCG=function(E){return xP(function(){return{value:E}})};
dnQ=function(E,B){var I=QCG(E),T=QCG(B);sr(function(){I.value=E},[E]);
sr(function(){T.value=B},B&&B.length>=1?B:[void 0]);
var e=xP(function(){return{value:void 0}});
if(E!==I.value||T.value!==B||e.value===void 0)e.value=SV(E,B);var c=mnF();_.uW(function(){function Y(){var y=SV(I.value,B);y!==e.value&&(e.value=y,c())}
var v=_.gp().subscribe(Y);Y();return v});
return e.value};
_.cE=function(E,B){return dnQ(E,[B])};
_.iO=function(E,B){var I=aPD();return _.aJ(function(){I();return SV(E,[_.s_(B)||""])},void 0,"HaeHEc")};
hj4=function(E){var B=_.iO(_.Mg,function(){return E().videoId}),I=_.iO(_.HP,function(){return E().playlistId});
return function(){return E().videoId?B:E().playlistId?I:_.p(_.lQ("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
sCF=function(E){var B=_.iO(gK,function(){return E().videoId}),I=_.iO(_.HUD,function(){return E().playlistId});
return function(){return E().videoId?B:E().playlistId?I:_.p(_.lQ(0,void 0,"K4tgOc")).next().value}};
ui6=function(E){var B=_.iO(_.bUd,function(){return E().videoId});
return function(){return E().videoId?B:_.p(_.lQ(!1,void 0,"Oaxwcf")).next().value}};
Lc4=function(E){var B=_.iO(SSF,function(){return E().videoId});
return function(){return E().videoId?B:_.p(_.lQ("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
xn6=function(){return{}};
nni=function(E){var B=E.backgroundLottieRef;var I=E.foregroundLottieRef;var T=E.children;var e=E.wrapperClass;E=E.disableAnimation;E=(_.d("web_animated_actions")||_.d("web_animated_actions_v2"))&&!E;return _.w("yt-animated-action",{class:_.RQ("animated-action__container",e)},_.w("div",{class:"animated-action__content-with-background"},_.AV(E,function(){return _.w(GCi,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:B,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(O3t()?"dark":"light")+"_v5.json"}}})}),T),_.AV(E,function(){return _.w(GCi,{lottiePlayerProps:{animationRef:I,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(O3t()?"dark":"light")+"_v4.json"}}})}))};
GCi=function(E){var B=E.wrapperClass;var I=E.lottieClass;E=E.lottiePlayerProps;return _.w("div",{class:_.B$("animated-action__lottie",B),"aria-hidden":"true"},_.w(EZ6,{className:I,data:E}))};
O3t=function(){var E,B;return(B=(E=_.Q().resolve(_.Fx(_.ME)))==null?void 0:E())!=null?B:!1};
MTc=function(){var E,B;return(B=(E=_.Q().resolve(_.Fx(_.ME)))==null?void 0:E())!=null?B:!1};
Nm4=function(E,B){E=E===void 0?H3B:E;switch(B.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},E,{isOpen:B.payload});default:return E}};
SdJ=function(E,B){E=E===void 0?gnG:E;switch(B.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},E,{isAllowed:B.payload});default:return E}};
WcJ=function(E,B){E=E===void 0?JSJ:E;switch(B.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},E,{errorMessage:B.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},E,{title:B.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},E,{privacy:B.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},E,{isDisabled:B.payload});default:return E}};
rSF=function(E,B){E=E===void 0?XBc:E;switch(B.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},E,{isOpen:B.payload});default:return E}};
onJ=function(E,B){E=E===void 0?b3t:E;switch(B.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},E,{isFullscreen:B.payload});case "SET_NAVIGATION_BUTTON":var I=B.payload.targetId,T=Object.assign({},E.navigationButtons);T[I]=B.payload.button;return Object.assign({},E,{navigationButtons:T});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},E,{topPanelId:B.payload});case "SET_SECONDARY_HEADER":return I=B.payload.panelId,T=Object.assign({},E.secondaryHeader),T[I]=B.payload.secondaryHeader,
Object.assign({},E,{secondaryHeader:T});default:return E}};
kCc=function(){return Yh(Object.assign({},{entities:vbD,voiceSearch:LWi,engagementPanel:onJ,bottomSheet:Nm4,cinematicSetting:SdJ,shorts:g8d,drawerLayout:rSF,createPlaylist:WcJ,locationCollection:ASc,reportChannel:jCF,reportForm:UnF},SAi))};
tTc=function(E,B){return"https://www.gstatic.com/youtube/img/lottie/"+E+"/"+B+".json"};
fqc=function(E){return{lottiePlayerProps:{animationConfig:{name:E.name,path:tTc("custom_animated_like_icon",E.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:E.totalFrames,lazyLoad:!0}};
VTB=function(E,B){_.Ll.addLowPriorityJob(function(){var I,T,e;return _.a(function(c){switch(c.nextAddress){case 1:return _.q7(c,2),_.C(c,UuF(),4);case 4:return _.C(c,fetch(E),5);case 5:return I=c.yieldResult,_.C(c,I.json(),6);case 6:T=c.yieldResult;K8.set(E,T);requestAnimationFrame(function(){B(T)});
_.W7(c,0);break;case 2:e=_.RG(c),_.OG(e),_.ER(c)}})})};
qdB=function(E){var B={animationConfig:{},listeners:{}},I=function(){E(!0)};
B.listeners.data_failed=I;B.listeners.error=I;B.listeners.data_ready=function(){E(!1)};
return B};
pe=function(E){var B=E.model;var I=E.subscribed;var T=E.isOverlay;var e=E.element;var c=E.commandController;var Y=E.notificationState;if(I){var v,y;var Z=(B==null?void 0:(v=B.buttonStyle)==null?void 0:v.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:B==null?void 0:(y=B.unsubscribeButtonContent)==null?void 0:y.buttonText}else{var P;Z=B==null?void 0:(P=B.subscribeButtonContent)==null?void 0:P.buttonText}a:{var z;switch(B==null?void 0:(z=B.buttonStyle)==
null?void 0:z.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":v="S";break a;default:v="M"}}a:if(T)T="overlay";else switch(B.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":T="overlay";break a;default:T="mono"}a:if(I)var m="tonal";else switch((m=B.buttonStyle)==
null?void 0:m.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":m="tonal";break a;default:m="filled"}return{style:T,type:m,state:B.disableSubscribeButton?"disabled":"active",size:v,focused:E.focused,toggled:I,accessibilityLabel:Fcf(B,I,Y),buttonText:Z,iconPosition:B.disableNotificationBell?"none":"leading-trailing",onTap:Dnt(B,I,e,c),disableTextEllipsis:!!E.disableTextEllipsis}};
Dnt=function(E,B,I,T){return function(e){if(B){var c;var Y=E.disableNotificationBell?_.ha(E==null?void 0:(c=E.unsubscribeButtonContent)==null?void 0:c.onTapCommand):_.ha(E==null?void 0:E.onShowSubscriptionOptions)}else{var v;Y=_.ha(E==null?void 0:(v=E.subscribeButtonContent)==null?void 0:v.onTapCommand)}Y&&Cp(Y,{form:{element:I},commandController:T});e.stopPropagation()}};
Fcf=function(E,B,I){if(B){if(E==null?0:E.disableNotificationBell){var T;return E==null?void 0:(T=E.unsubscribeButtonContent)==null?void 0:T.accessibilityText}switch(I){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var e;return E==null?void 0:(e=E.bellAccessibilityData)==null?void 0:e.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var c;return E==null?void 0:(c=E.bellAccessibilityData)==null?void 0:c.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var Y;return E==null?void 0:(Y=
E.bellAccessibilityData)==null?void 0:Y.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var v;return E==null?void 0:(v=E.bellAccessibilityData)==null?void 0:v.disabledLabel;default:var y;return E==null?void 0:(y=E.unsubscribeButtonContent)==null?void 0:y.accessibilityText}}else{var Z;return E==null?void 0:(Z=E.subscribeButtonContent)==null?void 0:Z.accessibilityText}};
Y4=function(E){if(!E)return null;switch(E){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":E="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":E="NOTIFICATIONS_OFF";break;default:E="NOTIFICATIONS_NONE"}return E};
KcF=function(E,B,I){I.subscribed!==B&&((I=I.key)&&_.Jd(_.aL("subscriptionStateEntity",I,{key:I,subscribed:B})),E.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:B})),B||_.I2(E,"yt-unsubscribe-action"))};
EEG=function(E){E=_.h(_.ha(E),_.vE);var B,I,T,e;return(e=_.h(E==null?void 0:(B=E.panelLoadingStrategy)==null?void 0:(I=B.inlineContent)==null?void 0:(T=I.sheetViewModel)==null?void 0:T.content,Rjd))==null?void 0:e.listItems};
BeQ=function(E,B){if(E.onShowSubscriptionOptions&&B&&(E=EEG(E.onShowSubscriptionOptions),E!=null&&E.length)){var I=Y4(B);E.forEach(function(T){T=_.h(T,_.Ce);var e,c,Y,v,y=T==null?void 0:(e=T.leadingImage)==null?void 0:(c=e.sources)==null?void 0:(Y=c[0])==null?void 0:(v=Y.clientResource)==null?void 0:v.imageName;T&&y&&(T.isSelected=y===I)})}};
$LB=function(E,B,I,T){B&&I?E.style.width=I+"px":!B&&T&&(E.style.width=T+"px")};
Iec=function(E,B,I){var T;(T=E.lottieEl)==null||T.goToAndPlay(0);var e;(e=B.lottieEl)==null||e.goToAndPlay(0);_.wT(_.Ll,function(){var c;(c=I.lottieEl)==null||c.goToAndPlay(0)},300)};
iI4=function(E){var B=_.oH(),I=_.oH(),T=_.oH(),e=_.$4(),c=_.$4(),Y=_.$4(),v=_.Q().resolve(Tef),y,Z=(y=_.cE(_.RS,E.data.stateEntityStoreKey))!=null?y:void 0,P,z,m,u=(m=_.cE(JZJ,(z=(P=E.data.notificationStateEntityStoreKeys)==null?void 0:P.subsNotificationStateKey)!=null?z:""))!=null?m:void 0;y=!!E.data.disableNotificationBell;var x=!E.data.enableSubscribeButtonPostClickAnimation;P=_.p(T8(0));var M=P.next().value,N=P.next().value;P=_.p(T8(0));var W=P.next().value,U=P.next().value;P=_.p(T8(!1));var q=
P.next().value,f=P.next().value;P=_.p(T8(!1));var ed=P.next().value,K=P.next().value,p4=Gb(!1),sc=Gb("");P=_.p(T8(!1));var Gf=P.next().value,xi=P.next().value,ki=function(){K(!0);_.wT(_.Ll,function(){K(!1)},1500)};
sr(function(){ed&&!x&&Z&&Iec(e,c,Y)},[ed]);
sr(function(){!x&&Z&&(E.animateWidth&&$LB(B.value,!!Z.subscribed,M,W),Z.subscribed&&Z.key===sc.value&&ki(),Z.key&&(sc.value=Z.key))},[Z==null?void 0:Z.subscribed,
Z==null?void 0:Z.key]);var WG=Lc(function(){var hz=E.data,TU=!(Z==null||!Z.subscribed),Wm=!!E.isOverlay,z2=q?B.value:void 0,cG=u==null?void 0:u.state;BeQ(hz,cG);return pe({model:hz,subscribed:TU,isOverlay:Wm,element:z2,notificationState:cG,disableTextEllipsis:!0,focused:Gf})},[E.data,
Z,u,Gf,E.isOverlay,q]),rJ=function(){var hz=_.Q().resolve(_.Fx(_.ZR));hz&&xi(hz.isKeyBoardInUse())},Uc=function(){xi(!1)};
fxF(B,function(hz){CV();Z&&(hz.detail.endpoint.subscribeEndpoint||hz.detail.endpoint.unsubscribeEndpoint)&&KcF(B.value,!Z.subscribed,Z)});
_.bE("yt-player-subscribe",function(hz){Z&&hz===E.data.channelId&&KcF(B.value,!0,Z)});
_.bE("yt-player-unsubscribe",function(hz){Z&&hz===E.data.channelId&&KcF(B.value,!1,Z)});
_.bE("yt-update-subscribe-button-action",function(hz){hz=_.h(hz,e$c);Z&&hz&&hz.channelId===E.data.channelId&&KcF(B.value,!!hz.subscribed,Z)});
_.uW(function(){B.value&&(B.value.addEventListener("focusin",rJ),B.value.addEventListener("focusout",Uc));_.PC(_.Ll,function(){CV()});
f(!0);return function(){B.value&&(B.value.removeEventListener("focusin",rJ),B.value.removeEventListener("focusout",Uc))}});
var CV=function(){if(!x&&E.animateWidth&&(I==null?0:I.value)&&(T==null?0:T.value)&&!p4.value){var hz=_.p((Z==null?0:Z.subscribed)?[I,T]:[T,I]),TU=hz.next().value;hz=hz.next().value;TU=Math.ceil(TU.value.getBoundingClientRect().width);hz=Math.ceil(hz.value.getBoundingClientRect().width);N(TU);U(hz);$LB(B.value,!(Z==null||!Z.subscribed),TU,hz);p4.value=!0}},Bm=function(){var hz=Y4(u==null?void 0:u.state);
return x||hz!=="NOTIFICATIONS_NONE"?function(){return v(hz)}:function(){gX(leQ)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:Y})}};
P=function(){var hz=Y4(u==null?void 0:u.state);return x||hz!=="NOTIFICATIONS_NONE"?function(){return _.w(_.i0,{icon:hz!=null?hz:void 0})}:function(){return _.w(leQ,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:Y})}};
var LV=!(Z==null||!Z.subscribed)&&!y&&!(u==null||!u.state),I$=!(Z==null?0:Z.subscribed),bc=I$&&!y&&!(u==null||!u.state);y={};z={};return _.w("yt-subscribe-button-view-model",{class:_.B$("yt-subscribe-button-view-model-wiz",(y["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(Z==null||!Z.subscribed)&&E.animateWidth&&ed,y["yt-subscribe-button-view-model-wiz--hidden"]=!(Z==null?0:Z.subscribed)&&E.data.hideWhenUnsubscribed,y)),el:B},_.w(c7J,{backgroundLottieRef:e,foregroundLottieRef:c,wrapperClass:_.B$("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(z["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=E.animateWidth&&ed,z["yt-subscribe-button-view-model-wiz__static-width"]=!E.animateWidth,z)),disableAnimation:x},_.w("div",{el:I,class:_.B$("yt-subscribe-button-view-model-wiz__container"),idomKey:E.data.channelId},_.d("web_wiz_button_shape")?_.w(MXQ,{data:WG,icon:LV?P():void 0,secondaryIcon:LV?function(){return _.w(_.i0,{icon:"EXPAND"})}:void 0}):_.w(js,null,function(){W8J(WG,LV?Bm():void 0,LV?function(){return v("EXPAND")}:
void 0)}))),_.w("div",{el:T,
class:"yt-subscribe-button-view-model-wiz__invisible"},!E.animateWidth||x||p4.value?null:_.d("web_wiz_button_shape")?_.w(MXQ,{data:pe({model:E.data,subscribed:I$,isOverlay:!!E.isOverlay,element:B.value,disableTextEllipsis:!0}),icon:bc?function(){var hz;return _.w(_.i0,{icon:(hz=Y4(u==null?void 0:u.state))!=null?hz:void 0})}:void 0,
secondaryIcon:bc?function(){return _.w(_.i0,{icon:"EXPAND"})}:void 0}):_.w(js,null,function(){W8J(pe({model:E.data,
subscribed:I$,isOverlay:!!E.isOverlay,element:B.value,disableTextEllipsis:!0}),bc?function(){return v(Y4(u==null?void 0:u.state))}:function(){},bc?function(){return v("EXPAND")}:void 0)})))};
pJf=function(E){if(E){switch(E){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":E="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":E="NOTIFICATIONS_OFF";break;default:E="NOTIFICATIONS_NONE"}return E}};
Y$B=function(E,B,I){I.subscribed!==B&&((I=I.key)&&_.Jd(_.aL("subscriptionStateEntity",I,{key:I,subscribed:B})),E.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:B})),B||_.I2(E,"yt-unsubscribe-action"))};
aeF=function(E){E=_.h(_.ha(E),_.vE);var B,I,T,e;return(e=_.h(E==null?void 0:(B=E.panelLoadingStrategy)==null?void 0:(I=B.inlineContent)==null?void 0:(T=I.sheetViewModel)==null?void 0:T.content,Rjd))==null?void 0:e.listItems};
vEF=function(E,B){if(E.onShowSubscriptionOptions&&B&&(E=aeF(E.onShowSubscriptionOptions),E!=null&&E.length)){var I=pJf(B);E.forEach(function(T){T=_.h(T,_.Ce);var e,c,Y,v,y=T==null?void 0:(e=T.leadingImage)==null?void 0:(c=e.sources)==null?void 0:(Y=c[0])==null?void 0:(v=Y.clientResource)==null?void 0:v.imageName;T&&y&&(T.isSelected=y===I)})}};
y7D=function(E,B,I,T){B&&I?E.style.width=I+"px":!B&&T&&(E.style.width=T+"px")};
Ckc=function(E,B,I){var T;(T=E.lottieEl)==null||T.goToAndPlay(0);var e;(e=B.lottieEl)==null||e.goToAndPlay(0);_.wT(_.Ll,function(){var c;(c=I.lottieEl)==null||c.goToAndPlay(0)},300)};
PE=function(){return _.Q().resolve(_.Fx(wJc))||{}};
ZIG=function(E){return typeof E==="function"};
_.z8=function(E){Object.keys(E);var B=function(I,T){var e=B.mapping||E;if(!I)return _.w(_.VS,null);if(Array.isArray(I)&&(I=PkB(e,B,I),Array.isArray(I))){if(!I.length)return _.w(_.VS,null);if(I.length>1){for(var c=!1,Y=!1,v=[],y={},Z=0;Z<I.length;y={data$jscomp$1831:void 0},Z++)if(y.data$jscomp$1831=I[Z],y.data$jscomp$1831){var P=z$Q(y.data$jscomp$1831,e),z=P.mappingEntry;P=P.rendererName;z&&P&&(z&&(!ZIG(z)&&mLi(z)&&(Y=!0),!ZIG(z)&&z.asyncId||(c=!0)),v.push(Qcf(y.data$jscomp$1831,z,P,B,T)))}return Y&&
!c?_.w(_.VS,null,dLD()):_.w(_.VS,null,v)}I=I[0]}if(!I)return _.w(_.VS,null);I=PkB(e,B,[I])[0];if(!I)return _.w(_.VS,null);c=z$Q(I,e);e=c.mappingEntry;c=c.rendererName;return e&&c?_.w(_.VS,null,Qcf(I,e,c,B,T)):_.w(_.VS,null)};
B.mapping=E;return B};
_.h$Q=function(E){var B=void 0,I;for(I in E)if(E.hasOwnProperty(I)){B=I;break}return B};
PkB=function(E,B,I){var T,e=(T=PE().preProcessOptions)==null?void 0:T.idomOptions;if(!e)return I;PE();return e.preProcessPropsIdom(E,I,B.triggerRerender)};
z$Q=function(E,B){return(E=_.h$Q(E))?{mappingEntry:B[E],rendererName:E}:{mappingEntry:void 0,rendererName:void 0}};
Qcf=function(E,B,I,T,e){if(!B)return _.w(_.VS,null);var c={};e&&e[I]&&(c=Object.assign({},e[I]));E[I]!==void 0&&(c.data=E[I]);if(ZIG(B))return B.debugName||(B.debugName=I),_.w(B,c);B.asyncId&&(T.pendingIdsMap=T.pendingIdsMap||{},T.pendingIdsMap[I]=B.asyncId);return B.templateFn?B.templateFn(c):mLi(B)?dLD():_.w(_.VS,null)};
mLi=function(E){var B;return(B=E.showPlaceholder)!=null?B:PE().defaultShowPlaceholder};
dLD=function(){var E=PE().placeholder;return E()};
sc6=function(E,B){B=B===void 0?{shouldPersist:!0}:B;return{useUpdatableData:function(I,T){var e=[],c=_.p(_.l0(function(){var Z=I();if(T!=null&&T.length&&e){var P=e.length>0;for(var z=!1,m=0;m<T.length;m++){var u=T[m]();P&&u!==e[m]&&(z=!0);e[m]=u}P=z}else P=!1;if(P)_.mV.remove(y());else if(P=_.mV.get(y()))return P;return Z})),Y=c.next().value,v=c.next().value,y=_.aJ(function(){return E(I())},void 0,"VFraLb");
_.m$(function(){if(y()!=null){QW.set(y(),[Y,v,!1]);var Z=y();_.dt(function(){QW.delete(Z)})}});
return[Y,function(Z){v(Z);B.shouldPersist&&_.mV.set(y(),Z)}]},
getData:function(I){var T;return(T=QW.get(E(I)))==null?void 0:T[0]()},
updateData:function(I,T){I=E(I);var e=QW.get(I);if(!e)return!1;var c=_.p(e);e=c.next().value;c=c.next().value;T=T(e());c(T);B.shouldPersist&&_.mV.set(I,T);return!0},
useUpdatableDataIdom:function(I,T){var e=E(I),c=_.mV.get(e),Y=_.p(T8(c!=null?c:I)),v=Y.next().value,y=Y.next().value,Z=Gb(c!=null?c:I);sr(function(){if(e!=null)return QW.set(e,[function(){return Z.value},
function(P){y(P);Z.value=P},
QW.has(e)]),_.Ll.addJob(function(){_.dT(_.Ll,function(){var P=QW.get(e);P&&(P[2]=!1)},0)},8),function(){var P;
((P=QW.get(e))==null?0:P[2])||QW.delete(e)}},[e]);
sr(function(){v!==I&&(y(I),Z.value=I)},T?[].concat(_.ad(T),[e]):[e]);
return[v,y]}}};
uBD=function(E){var B=_.p(_.lQ(!0,void 0,"bKtO6d")),I=B.next().value;B.next();return function(){var T=eI(E.children());return _.w(_.wU,{cond:I,then:function(){return T},
else:E.fallback})}()};
_.hM=function(E){var B=L5Q(E),I=B.data,T=B.mapping,e=B.wrapper;B=B.pendingFallback;var c=function(){return xL4(_.s_(I))},Y=function(){var v=c(),y=[];
v=_.p(v);for(var Z=v.next();!Z.done;Z=v.next()){var P=void 0;Z=Z.value;var z=void 0;for(P in Z)if(!(!Z).hasOwnProperty(P)){z=P;break}(P=z)&&y.push(P)}return y};
return E.data?_.w(uBD,{fallback:B},function(){return _.w(_.Zt,{each:Y},function(v,y){var Z=e?function(z){return e(function(){return T[v](z,y)},P,y)}:function(z){return T[v](z,y)};
Z.debugName||(Z.debugName=String(v));if(!T[String(v)])return document.createComment("");var P=Got(c,v,y);return _.w(Z,{data:P})})}):_.w(_.VS,null)};
L5Q=function(E){var B=E.targetId||OI6(E.children);if(!E.data||!B||_.d("mweb_new_replaceables_killswitch"))return Object.assign({},E,{mapping:E.children,wrapper:void 0});var I="stamper-"+nEc++,T=function(){var v;return(v=_.s_(E.targetId))!=null?v:I};
B=_.p(MBc(function(){var v=xL4(E.data());v.targetId=T;return v})).next().value;
var e=Object.assign({},PE().replaceableMapping,E.children);if(E.replacementWrapper){var c=e.notificationTextRenderer,Y=e.notificationMultiActionRenderer;c&&(e.notificationTextRenderer=function(v,y){return E.replacementWrapper(c({data:v.data},y))});
Y&&(e.notificationMultiActionRenderer=function(v,y){return E.replacementWrapper(Y({data:v.data},y))})}return Object.assign({},E,{data:B,
mapping:e,wrapper:function(v,y,Z){return xQc({targetId:T,stamperIndex:Z},v)}})};
Got=function(E,B,I){var T;return _.aJ(function(){var e=E()[I()];if(e)T=e[B];else return _.OG(new _.P7("Stamper failed to find "+String(B)+" at index "+I()+" of data array of length "+(E().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),T;return e[B]},void 0,"DHuMIe")};
OI6=function(E){E=_.p(Object.keys(E));for(var B=E.next();!B.done;B=E.next())if(B=B.value,HIQ.includes(B)||Nei.includes(B)||gEc.includes(B))return!0;return!1};
xL4=function(E){return E?Array.isArray(E)?E:[E]:[]};
S$F=function(E){E=_.h(E,_.sO);return(E==null?void 0:E.iconName)&&!(E==null?0:E.title)};
XJD=function(E,B,I){var T;return _.w(_.VS,null,E==null?void 0:(T=E.actions)==null?void 0:T.map(function(e){return _.w("div",{class:function(){var c={"yt-flexible-actions-view-model-wiz__action":!0};c["yt-flexible-actions-view-model-wiz__action--row-action"]=B;c["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(S$F(e))var Y=!0;else if(Y=_.h(e,_.uO),(Y==null?0:Y.isToggled)&&S$F(Y==null?void 0:Y.toggledButtonViewModel)||(Y==null||!Y.isToggled)&&S$F(Y==null?void 0:Y.defaultButtonViewModel))Y=
!0;else{var v;Y=((v=_.h(e,J7G))==null?0:v.playlistId)?!0:!1}c=(c["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=Y,c["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=I,c);return _.B$(c)}},W5i([e],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!B}}))}))};
r7F=function(E){var B=E.layout===1,I,T=((I=E.data)==null?void 0:I.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";I={};T=(I["yt-flexible-actions-view-model-wiz"]=!0,I["yt-flexible-actions-view-model-wiz--inline"]=!B,I["yt-flexible-actions-view-model-wiz--scrollable"]=T,I);var e,c;return _.w("yt-flexible-actions-view-model",{class:_.B$(E.className,T)},(e=E.data)==null?void 0:(c=e.actionsRows)==null?void 0:c.map(function(Y){if(B){var v;return _.w("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
XJD(Y,B,!((v=E.data)==null||!v.respectActionIntrinsicWidth)))}return XJD(Y,B,!1)}))};
bId=function(E){return!(E==null||!E.iconName||(E==null?0:E.title))};
oED=function(E){var B=_.h(E.data.toggleButtonViewModel,_.uO),I,T=(I=E.data.dislikeEntityKey)!=null?I:"",e=_.cE(s1,T);B=Object.assign({},B,{isToggled:e?e.likeStatus==="DISLIKE":B.isToggled});return _.w("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.w(_.Le,{data:B,buttonShapeOverrides:E.buttonShapeOverrideables,onToggle:function(c){e&&c!==(e.likeStatus==="DISLIKE")&&e.key&&_.Jd(_.x4("likeStatusEntity",e.key,{likeStatus:c?"DISLIKE":"INDIFFERENT",hadUserInteraction:c}))}}))};
jcD=function(E){var B=_.d("web_supports_animations_api"),I=_.h(E.data.toggleButtonViewModel,_.uO),T,e,c,Y,v=_.p(T8({numberText:(Y=(T=E.likeCountEntity)==null?void 0:(e=T.likeCountIfIndifferent)==null?void 0:e.content)!=null?Y:"",numberValue:Number((c=E.likeCountEntity)==null?void 0:c.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),y=v.next().value,Z=v.next().value,P,z,m,u;T=_.p(T8({numberText:(u=(P=E.likeCountEntity)==null?void 0:(z=P.likeCountIfLiked)==null?void 0:z.content)!=null?
u:"",numberValue:Number((m=E.likeCountEntity)==null?void 0:m.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));P=T.next().value;var x=T.next().value;z=_.p(T8(void 0));var M=z.next().value,N=z.next().value,W;z=(W=E.data.likeStatusEntityKey)!=null?W:"";var U,q;W=(q=(U=E.likeCountEntity)==null?void 0:U.key)!=null?q:"";var f=_.cE(s1,z),ed=_.cE(Cxt,W);U=Lc(function(){return(f==null?void 0:f.likeStatus)==="LIKE"},[f]);
sr(function(){var K,p4=ed&&((K=ed.likeCountIfIndifferent)==null?void 0:K.content)!==y.numberText;if(!M&&p4){var sc,Gf;Z({numberText:(Gf=ed==null?void 0:(sc=ed.likeCountIfIndifferent)==null?void 0:sc.content)!=null?Gf:"",numberValue:Number(ed==null?void 0:ed.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var xi,ki;x({numberText:(ki=ed==null?void 0:(xi=ed.likeCountIfLiked)==null?void 0:xi.content)!=null?ki:"",numberValue:Number(ed==null?void 0:ed.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[ed]);
I=Object.assign({},I,{isToggled:U});B=B&&E.likeCountEntity;return _.w("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.w(_.Le,{data:I,buttonShapeOverrides:E.buttonShapeOverrideables,animatedTextPropsDefault:B?y:void 0,animatedTextPropsToggled:B?P:void 0,onToggle:function(K){A7c(K,f,M,N)},
style:function(){return E.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
A7c=function(E,B,I,T){I&&_.Ll.cancelJob(I);I=_.Ll.addLowPriorityJob(function(){T(void 0)},5E3);
T(I);B&&E!==(B.likeStatus==="LIKE")&&B.key&&_.Jd(_.aL("likeStatusEntity",B.key,{key:B.key,likeStatus:E?"LIKE":"INDIFFERENT",hadUserInteraction:E}))};
ULi=function(E,B,I,T){I&&_.Ll.cancelJob(I);I=_.Ll.addLowPriorityJob(function(){T(void 0)},5E3);
T(I);B&&E!==(B.likeStatus==="LIKE")&&B.key&&_.Jd(_.aL("likeStatusEntity",B.key,{key:B.key,likeStatus:E?"LIKE":"INDIFFERENT",hadUserInteraction:E}))};
F5D=function(E){var B,I=_.h((B=E.data)==null?void 0:B.likeButtonViewModel,koJ),T;B=_.h((T=E.data)==null?void 0:T.dislikeButtonViewModel,tBJ);var e,c=(e=_.cE(s1,(I==null?void 0:I.likeStatusEntityKey)||""))!=null?e:I==null?void 0:I.likeStatusEntity;T=Lc(function(){var Y=E.data,v;Y=(Y==null?void 0:(v=Y.timedAnimationData)==null?void 0:v.animationTiming)||[];return{uniqueId:"like-dislike",timings:Y,enabled:(c==null?void 0:c.likeStatus)==="INDIFFERENT"&&Y.length>0,experimentEnabled:Y.length>0}},[E.data,
c]);return _.w("segmented-like-dislike-button-view-model",{class:_.B$(E.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.w(_.fef,{settings:T},_.w("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},I?_.w(VB6,{data:I,likeCountEntity:E.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,B?_.w(q$i,{data:B,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
DLf=function(E,B){var I=tl(E)||{layerNode:B};I.layerNode=B;gQc(E,I);E.getScreenLayer=function(){return G8(I.layerNode)}};
K5d=function(E){var B;E=E.parentNode;for(var I;E&&((B=tl(E))==null||!B.isRenderer)&&!((I=E.polymerController)!=null?I:E).isRenderer_;)E=E.parentNode||E.host;if(B=E)return tl(B)};
R$B=function(E){if(E){kO.delete(E);var B=_.Q().resolve(fi);jfc(E,B)}};
B3c=function(E,B,I){if(I===void 0?0:I){if(I=E.getAttribute("client-ve-type"),B.data&&!B.disableReactiveLogging||I)_.QS(function(){Et6(E,_.s_(B.data))}),_.dt(function(){return void R$B(E)})}else typeof B.data!=="function"&&Et6(E,B.data)};
Et6=function(E,B){$jG++;Izf(E,B)&&_.Ll.addJob(function(){_.dT(_.Ll,function(){if(Izf(E,B)&&E.ownerDocument.documentElement===document.documentElement&&E){var I;if(E.getAttribute("layer")){var T=I=Number(E.getAttribute("layer")),e=tl(E);e?e.layerNode.layer=T:DLf(E,new T3F(T));(T=K5d(E))&&(e=tl(E))!=null&&(e.layerNode.parent=T.layerNode)}else if(I=tl(E))I=G8(I.layerNode);else{I=G8;T=new T3F;if(e=K5d(E))T.parent=e.layerNode;DLf(E,T);I=I(T)}I!=null||(I=0);T=E.getAttribute("client-ve-type");e=Number(T);
var c=!1;T=!1;var Y=tl(E),v;if((v=Y)&&!(v=Y[OO]!==B)&&(v=e)){var y;v=((y=kO.get(E))==null?void 0:y.clientVeType)===void 0}v&&(Y[OO]=B,c=T=Y.isRenderer=!0);kO.has(E)&&(kO.get(E).clientVeType=e);E.visualElement&&(T=!0);(y=B==null?void 0:B.loggingDirectives)&&y.clientVeSpec&&(Y=eWc(_.TA(),E),y=_.lzf(_.lu(),y,Y||void 0,I))&&(E.visualElement=y);!E.visualElement&&e&&c&&(E.veType=e,y=void 0,_.d("wiz_next_client_ve_parent_fix")&&(y=eWc(_.TA(),E)),y=_.eO(_.lu(),E,y,I),E.visualElement=y);T&&(y=_.Q().resolve(fi),
f5c(E,{data:B,observer:y,layer:I,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
Izf=function(E,B){return(B==null?0:B.trackingParams)||(B==null?0:B.loggingDirectives)||_.h(B==null?void 0:B.rendererContext,_.Vkc)||E.getAttribute("client-ve-type")?!0:!1};
iPQ=function(E){return _.d("cow_logging_in_component_wrapper")?function(B){B3c(B,E,!0)}:cYG};
cYG=function(){};
_.p0f=function(E,B){return _.cP(E.entities,"accountLinkStatusEntity",B)};
YwG=function(E,B){return _.cP(E.entities,"hatsSurveyEntity",B)};
azB=function(E,B){return _.cP(E.entities,"hatsSurveyStateEntity",B)};
vtB=function(E,B){return _.cP(E.entities,"quantityIncrementerEntity",B)};
P4t=function(E){var B=E.data;var I=E.className===void 0?"":E.className;var T=E.setMinWidth;E=E.forceIconOnly;var e=_.oH(iPQ({data:B}));T=T?"ytwAccountLinkButtonViewModelHostMinWidth":"";var c=_.iO(_.p0f,function(){var z;return(z=_.s_(B).accountLinkStatusEntityKey)!=null?z:""}),Y=_.iO(_.p0f,function(){var z;
return(z=_.s_(B).accountLinkStatusSecondaryEntityKey)!=null?z:""}),v=function(){if(!_.d("web_account_link_secondary_killswitch")){var z,m;
return((z=c())==null?void 0:z.linked)||((m=Y())==null?void 0:m.linked)}var u;return(u=c())==null?void 0:u.linked};
_.m$(function(){var z=c();if(z){var m=yYi(new C4c,w0f(new ZP6,!!z.linked));_.EO().then(function(u){u&&(u.setAccountLinkState(_.tH(m.JSC$9958_serializeBinary(),4)),u.updateAccountLinkingConfig(!!z.linked))})}});
var y=function(){return _.h(_.s_(B).toggleButtonViewModel,_.uO)};
_.bE("yt-signal-action-show-account-link-dialog",function(){if(y()){var z=v()?y().toggledButtonViewModel:y().defaultButtonViewModel;z=_.h(z,_.sO);var m;if((m=c())==null?0:m.isWarning){m=_.h(_.s_(B).warningButtonViewModel,_.sO);if(!m){_.Xx(Error("Ah"));return}z=m}var u;(m=_.ha((u=z)==null?void 0:u.onTap))&&_.YO([m],e.value)}else _.Xx(Error("Bh"))});
var Z=function(){var z=y();return Object.assign({},z,{isToggled:v()})},P=E?{iconPosition:"icon-only"}:{};
return _.w("account-link-button-view-model",{class:_.RQ("ytwAccountLinkButtonViewModelHost",function(){return _.s_(I)},T),
el:e,"button-renderer":!0},_.w("div",null,_.w(_.wU,{cond:function(){var z;if((z=c())==null?0:z.isWarning)return(z=_.h(_.s_(B).warningButtonViewModel,_.sO))||_.Xx(Error("Ah")),z},
then:function(z){return _.w(_.ne,{data:z,buttonOverrides:P})},
else:function(){return _.w(_.Le,{data:Z,buttonShapeOverrides:P})}})))};
zWi=function(E){switch(E){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
mj4=function(E){switch(E){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}};
Qot=function(E){switch(E){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.hWf=function(E){var B=_.RI("web_generic_client_event_wait_period ",0);B||(B=3E5);var I=djJ.get(E);!_.d("enable_web_client_experiment_event_timeout_killswitch")&&I&&(0,_.VZ)()-I<B||(djJ.set(E,(0,_.VZ)()),_.hK("genericClientExperimentEvent",{eventType:E}))};
Lbc=function(E){var B=E.data;var I=E.children;var T=sof(B),e=(B==null?0:B.thumbnailSize)?B.thumbnailSize:"medium";E=!(B==null||!B.doubleStack);var c=!(B==null||!B.experimentEnabled),Y={},v=(Y["collections-stack-wiz__collection-stack1"]=!0,Y[uvt(e)]=!0,Y);if(B==null?0:B.customClassName1stStack)v[B.customClassName1stStack]=!0;e={};var y=(e["collections-stack-wiz__collection-stack2"]=E,e["collections-stack-wiz__collection-stack2--responsive-mode"]=B==null?void 0:B.enableResponsiveMode,e);if(B==null?
0:B.customClassName2ndStack)y[B.customClassName2ndStack]=!0;return _.w("yt-collections-stack",{class:"collections-stack-wiz",hidden:!c},_.AV(B,function(){return _.w("div",null,_.AV(B.doubleStack,function(){return _.w("div",{class:_.B$(y),style:"background-color:"+T})}),_.w("div",{class:_.B$(v),
style:"background-color:"+T}),I)}))};
uvt=function(E){switch(E){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
sof=function(E){if(!E)return"";var B,I=(B=_.Q().resolve(_.Fx(_.ME)))==null?void 0:B(),T;if(!I&&((T=E.vibrantColorPalette)==null?0:T.iconInactiveColor))return sq(E.vibrantColorPalette.iconInactiveColor,"1");var e;return I&&((e=E.darkColorPalette)==null?0:e.iconInactiveColor)?sq(E.darkColorPalette.iconInactiveColor,"1"):E.color?sq(E.color,"1"):E.sampledThumbnailColor?(E=E.sampledThumbnailColor,"rgba("+E.red+","+E.green+","+E.blue+");"):""};
_.MH=function(E,B){if(!E.includes("DATE_PLACEHOLDER"))return E;var I=new Date(0);I.setUTCSeconds(B);return E.replace("DATE_PLACEHOLDER",xj6(I))};
_.HE=function(E){E=_.GdG(E);return _.d("web_watch_enable_single_column_grid_view")?E:!1};
_.GdG=function(E){return E.watch.isWatchNarrowWidth};
OPi=function(E,B,I){return function(T){var e=E.command;e&&(Cp(e,{form:{element:I}}),B([e],T))}};
MQc=function(E,B,I,T,e){return function(c){var Y=nti(E,I);Y&&Cp(Y,{form:{element:T},commandController:e});B&&B.stopPropagation&&c.stopPropagation()}};
nti=function(E,B){if(E.signInEndpoint&&!_.d("web_subscribe_sign_in_endpoint_killswitch"))return E.signInEndpoint;if(B){if(E.serviceEndpoints)return E.serviceEndpoints[1];if(E.onUnsubscribeEndpoints)return E.onUnsubscribeEndpoints[0]}else{if(E.serviceEndpoints)return E.serviceEndpoints[0];if(E.onSubscribeEndpoints)return E.onSubscribeEndpoints[0]}};
HPf=function(E,B){var I,T,e,c;B=B&&((I=E.unsubscribeAccessibility)==null?void 0:(T=I.accessibilityData)==null?void 0:T.label)||((e=E.subscribeAccessibility)==null?void 0:(c=e.accessibilityData)==null?void 0:c.label);return E.longSubscriberCountText?[B,_.U3(E.longSubscriberCountText)].filter(function(Y){return Y}).join(" "):B};
NH=function(E,B){return B||(E==null?0:E.isChannelDelegate)?"disabled":"active"};
N3B=function(E,B){var I;switch((I=E.style)==null?void 0:I.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:NH(E)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:NH(E)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:NH(E,!0)};case "OVERLAY":return B?{style:"overlay",type:"tonal",state:NH(E)}:{style:"overlay",type:"filled",state:NH(E)};default:return B?{style:"mono",type:"tonal",state:NH(E)}:{style:"mono",type:"filled",state:NH(E)}}};
gt6=function(E,B){var I=E.map(function(T){return T.toString()});
return _.TI(function(T){if(I.includes(T.key)){B&&T.preventDefault();var e;(e=T.currentTarget)==null||e.click()}})};
_.gT=function(){return gt6(["Enter"])};
_.SwF=function(){return gt6(["Enter"," "],!0)};
_.Sf=function(E){if(E.composedPath)return E.composedPath();if(!E.__composedPath){for(var B=[],I=E.target;I;)B.push(I),I=I.parentNode;B.push(window);E.__composedPath=B}return E.__composedPath};
_.JYf=function(E,B,I){E=_.p(E);for(var T=E.next();!T.done;T=E.next()){T=T.value;if(T===B)break;for(var e=_.p(I),c=e.next();!c.done;c=e.next())if(c=c.value,T.tagName===c||T.role==="button"&&c==="BUTTON")return!0}return!1};
X04=function(E,B){var I,T=(I=B.observer)!=null?I:_.Q().resolve(fi);if(E){I=Wbt(E);var e=[];B.showOption&&e.push(T.observe(E,function(){B.visibilityCallback(!0)},B.showOption));
B.hideOption&&e.push(T.observe(E,function(){B.visibilityCallback(!1)},B.hideOption));
B.prescanOption&&B.prescanCallback&&e.push(T.observe(E,function(){B.prescanCallback()},B.prescanOption));
var c;I.visibilityMonitorKeys=((c=I.visibilityMonitorKeys)!=null?c:[]).concat(e)}};
Wbt=function(E){var B;return(B=E.polymerController)!=null?B:E};
_.WE=function(E){return!!_.JM(E)};
_.X3=function(E,B){var I=G_J();sr(function(){var T=E.value;if(T)return rYJ(T,B),bPQ(T,B,void 0,void 0,void 0,I)},[B])};
_.rT=function(E,B,I,T,e,c){var Y=G_J();_.m$(function(){var v=E.value;v&&(rYJ(v,B(),c),v=bPQ(v,B(),I,T,e,Y),_.dt(v))})};
rYJ=function(E,B,I){var T=ot4(B),e=AYc(B);B=T&&joD;var c=e&&Ujc;(T||e)&&X04(E,{visibilityCallback:function(Y){var v=_.Q().resolve(_.Dt);Y&&T?v.resolveCommand(T,{form:{element:I?E:void 0},disableClickTracking:!0}):!Y&&e&&v.resolveCommand(e,{form:{element:I?E:void 0},disableClickTracking:!0})},
showOption:B,hideOption:c})};
bPQ=function(E,B,I,T,e,c){var Y=new Map;if(B=_.JM(B)){var v;E=(T==null?void 0:(v=T.onTap)==null?void 0:v.value)||E;I=kdd(B,E,I==null?void 0:I.onTap,e,c);E.addEventListener("click",I);Y.set("click",I)}return function(){for(var y=_.p(Y),Z=y.next();!Z.done;Z=y.next()){var P=_.p(Z.value);Z=P.next().value;P=P.next().value;E.removeEventListener(Z,P)}}};
_.JM=function(E){var B;return(E=(B=_.h(E,tQD))==null?void 0:B.onTap)&&_.ha(E)};
ot4=function(E){var B;return(E=(B=_.h(E,tQD))==null?void 0:B.onVisible)&&_.ha(E)};
AYc=function(E){var B;return(E=(B=_.h(E,tQD))==null?void 0:B.onHidden)&&_.ha(E)};
kdd=function(E,B,I,T,e){var c=function(v){_.Q().resolve(_.Dt).resolveCommand(E,v)},Y=function(v){T&&_.JYf(_.Sf(v),B,T)||c(v.target?{form:{element:v.target,
sourceData:E,mutationContext:e}}:void 0)};
I&&(Y=function(v){I(v,c)});
return Y};
fzB=function(E){var B=E.data;var I=E.className;E=E.alwaysShow;var T=_.oH();_.X3(T,B.rendererContext);a:switch(B.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var e="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:e="ytThumbnailHoverOverlayViewModelStyleCover"}e=_.B$("ytThumbnailHoverOverlayViewModelScrim",e);var c,Y=(c=_.h(B==null?void 0:B.rendererContext,_.bO))==null?void 0:c.label,v=_.JM(B.rendererContext)!==void 0;c=v?"button":void 0;v=v?0:void 0;var y=_.SwF(),Z={};return _.w("thumbnail-hover-overlay-view-model",
{el:T,class:_.B$("ytThumbnailHoverOverlayViewModelHost",I,(Z.ytThumbnailHoverOverlayViewModelHostForceHover=E,Z)),"aria-label":Y,role:c,tabindex:v,"on:keypress":y},_.w("div",{class:e},B.icon?_.w(_.Ja,{data:B.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,B.text?_.w(_.aS,{text:B.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
VQG=function(E){switch(E){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}};
qw4=function(E){switch(E){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""}};
Fbf=function(E){switch(E){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""}};
Dji=function(E){switch(E){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}};
Kbc=function(E){return E==="medium"||E==="48"||E==="large"||E==="extra-large"||E==="extra-extra-large"||E==="giant"};
RWJ=function(E){return!!((E==null?0:E.includes(3))||(E==null?0:E.includes(5)))};
B26=function(E){return{size:EzD(E.data.avatarImageSize),onTap:E.onTap,decorations:E.decorations||[],badgeText:E.badgeText,accessibilityText:E.accessibilityText,avatarButtonCustomClassName:E.avatarButtonCustomClassName}};
EzD=function(E){switch(E){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_48":return"48";default:return"medium"}};
$Y6=function(E){function B(){I.endpoint&&_.xg(I.endpoint)}
var I=E.data;var T=E.decorations;var e=E.avatarButtonCustomClassName;E=E.isOverlay;return _.w("avatar-view-model",null,I.image?_.w(oL,{data:B26({data:I,onTap:I.endpoint?B:void 0,decorations:T,badgeText:void 0,accessibilityText:I.accessibilityText,avatarButtonCustomClassName:e}),image:I.image,iconType:"RADAR_LIVE",overlays:function(){return _.w(AM,{data:I})},
isOverlay:E}):null)};
T2J=function(E){var B=E.data;var I=E.avatar;var T=E.onTap;var e=E.element;E=E.commandController;T=T?Iyc(T,e,E):void 0;e=[];B.liveData&&e.push(0);var c;E=(c=B.liveData)==null?void 0:c.liveBadgeText;var Y;c=(Y=_.h(B.rendererContext,_.bO))==null?void 0:Y.label;return B26({data:I,onTap:T,decorations:e,badgeText:E,accessibilityText:c?c:B.a11yLabel})};
Iyc=function(E,B,I){return function(){Cp(E,{form:{element:B},commandController:I})}};
ew4=function(E,B,I,T){return B?T2J({data:E,avatar:B,onTap:I,element:T}):{size:"medium"}};
lyi=function(E){var B=E.data;E=E.className;var I=_.AK(),T=_.h(B.avatar,_.jf),e=_.JM(B.rendererContext),c,Y=ew4(B,T,e,(c=I.value)!=null?c:void 0);return _.w("yt-decorated-avatar-view-model",{class:_.B$("yt-decorated-avatar-view-model-wiz",E),el:I},_.AV(T==null?void 0:T.image,function(){var v,y,Z;return _.w(oL,{data:Y,image:T.image,iconType:"RADAR_LIVE",overlays:function(){return _.w(AM,{data:T})},
idomKey:T==null?void 0:(v=T.image)==null?void 0:(y=v.sources)==null?void 0:(Z=y.at(0))==null?void 0:Z.url})}))};
c9t=function(E){switch(E){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_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}};
ihB=function(E){switch(E){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
pvG=function(E){var B=0;E.avatars&&(B+=E.avatars.length);E.decoratedText&&(B+=1);return B};
ayG=function(E){var B=E.data,I=B.avatars,T=B.text,e=B.rendererContext,c=B.decoratedText,Y=(B=_.oH())&&_.WE(e);_.X3(B,e);var v=pvG(E.data)>1,y,Z=I&&I.length>0?c9t((y=_.h(I[0],_.jf))==null?void 0:y.avatarImageSize):0,P,z=I&&I.length>0?(P=_.h(I[0],_.jf))==null?void 0:P.avatarImageSize:"AVATAR_SIZE_UNKNOWN",m,u;y={};return _.w("yt-avatar-stack-view-model",{el:B,class:_.B$("yt-avatar-stack-view-model-wiz",E.className,(y["yt-avatar-stack-view-model-wiz--tappable"]=Y,y["yt-avatar-stack-view-model-wiz--is-overlay"]=
E.isOverlay,y["yt-avatar-stack-view-model-wiz--medium-text"]=E.useMediumText,y)),tabindex:Y?0:void 0,role:Y?"link":void 0,"aria-label":(u=(m=_.h(e,_.bO))==null?void 0:m.label)!=null?u:""},_.AV(I&&!E.hideAvatar,function(){return _.w("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.AV(c,function(){var x={};return _.w("div",{class:_.B$("yt-avatar-stack-view-model-wiz__text-container",(x["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=z==="AVATAR_SIZE_XXS"||z==="AVATAR_SIZE_XS",
x["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=E.isOverlay&&(z==="AVATAR_SIZE_XXS"||z==="AVATAR_SIZE_XS"),x)),style:"width: "+Z+"px; height: "+Z+"px"},_.w(_.aS,{text:c,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),I.slice().reverse().map(function(x){return _.w("div",{class:ihB(z)},YmB(x,{avatarViewModel:{decorations:E.decorations?E.decorations:v?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:E.isOverlay}}))}))}),_.AV(T,function(){return _.w(_.aS,{text:T,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
vzc=function(E){switch(E){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_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}};
y94=function(E){switch(E){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
Cd6=function(E){switch(E){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
wvF=function(E){var B=E.data;return _.w("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:E.hidden===void 0?!1:E.hidden},_.w(_.aS,{text:B.title,className:"yt-thumbnail-overlay-title-view-model__title"}),B.subtitle?_.w(_.aS,{text:B.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
Zh4=function(E){switch(E){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
PdG=function(E){var B=E.data;E=E.hidden===void 0?!1:E.hidden;var I={};E={class:_.B$("yt-page-indicator-view-model",(I["yt-page-indicator-view-model__indicator--hidden"]=!B.indicatorCount,I)),hidden:E};if(B.indicatorCount){I=[];for(var T=0;T<B.indicatorCount;T++){var e={};e=_.B$("yt-page-indicator-view-model__indicator",(e["yt-page-indicator-view-model__indicator--selected"]=B.selectedIndex===T,e));I.push(_.w("div",{class:e}))}B=_.w(_.VS,null,I)}else B=_.w(_.VS,null);return _.w("yt-page-indicator-view-model",
E,B)};
mYc=function(E){E&&(zwt(E)?delete E.inlinePlayerData:"inlinePlaybackEndpoint"in E&&delete E.inlinePlaybackEndpoint)};
QVF=function(E){if("accessibilityText"in E)return E.accessibilityText||"";if("title"in E){var B,I,T;return((B=E.title)==null?void 0:(I=B.accessibility)==null?void 0:(T=I.accessibilityData)==null?void 0:T.label)||""}if("accessibility"in E){var e,c;return((e=E.accessibility)==null?void 0:(c=e.accessibilityData)==null?void 0:c.label)||""}return""};
zwt=function(E){return"inlinePlayerData"in E};
UO=function(E){return new dYt(E)};
_.hwc=function(E,B,I,T,e,c){var Y=function(Z){Z.preventDefault()},v=function(){var Z=E.value;
if(Z)return(Z._data=B)?(Z.addEventListener("touchstart",Xjc,{passive:!0}),Z.addEventListener("click",b1f),B.clickTrackingParams&&(Z.params={itct:B.clickTrackingParams}),oWi(Z,B),Cr(Z,AXc(B)||"")):Z.addEventListener("click",Y),function(){B?(Z.removeEventListener("touchstart",Xjc,{passive:!0}),Z.removeEventListener("click",b1f)):Z.removeEventListener("click",Y)}},y=function(){var Z=E.value;
if(Z){var P=_.uu({innertubeCommand:B,elementsCommand:I,forceNewState:T,stopPropagation:c});if(P)return Z._data=P._data,P["aria-haspopup$"]&&Z.setAttribute("aria-haspopup",P["aria-haspopup$"].toString()),P["force-new-state$"]&&Z.setAttribute("force-new-state",P["force-new-state$"].toString()),P.href$&&Cr(Z,P.href$),P.rel$&&(Z.rel=P.rel$),P.role$&&Z.setAttribute("role",P.role$),P.target$&&(Z.target=P.target$),Z.params=P.params,P.onclick&&Z.addEventListener("click",P.onclick),P.onpointerdown&&Z.addEventListener("onpointerdown",
P.onpointerdown),function(){P.onclick&&Z.removeEventListener("click",P.onclick);P.onpointerdown&&Z.removeEventListener("onpointerdown",P.onpointerdown)}}};
sr(e?y:v,[B,I])};
sVG=function(E){var B=E.children;var I=E.className;var T=E.dir;var e=E.style;var c=E.role;var Y=E.ariaSelected;var v=E.ariaLabel;var y=E.ariaHidden;var Z=E.ariaLabelledby;var P=E.ariaDescribedby;var z=E.command;var m=E.elementsCommand;var u=E.forceNewState;var x=E.isPlaceholder;var M=E.tabIdentifier;var N=E.target;var W=E.tabIndex;var U=E.useATagConfig;var q=E.stopPropagation;E=_.oH();_.hwc(E,z,m,u,U,q);m=_.TI(function(){return q===!1});
return _.w("a",{el:E,"on:click":m,class:I,style:e,dir:T,role:c?c:z?void 0:"group","aria-hidden":y?!0:void 0,"aria-label":v,"aria-labelledby":Z,"aria-describedby":P,"aria-selected":Y,tabindex:W!==void 0?W:void 0,target:N,"tab-identifier":M,"force-new-state":u?!0:void 0,"is-placeholder":x?!0:void 0},B)};
LoQ=function(E){var B=E.data;E=_.TI(function(){var e=_.h(B.onTap,_.dX);e&&_.Q().resolve(_.Dt).resolveCommand(e);return!1});
var I={sources:[{url:B.thumbnailUrl,width:120,height:90}]},T=B.rating&&B.ratingA11yLabel&&B.reviewsCount&&B.reviewsCountA11yLabel;return _.w("place-data-view-model",null,B.placeName&&B.placeCategory?_.w("div",{class:"yt-spec-place-data-view-model-shape","on:click":E},_.w(_.Ja,{data:I,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+uwt}),_.w(sVG,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.h(B.onTap,_.dX),forceNewState:!0,
useATagConfig:!0},_.w("h3",{class:"yt-spec-place-data-view-model-shape__name",title:B.placeName},B.placeName)),_.w("div",{class:"yt-spec-place-data-view-model-shape__metadata"},T?_.w("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.w("span",{class:"score",title:B.ratingA11yLabel},B.rating),_.w("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.w(_.i0,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.w("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:B.reviewsCountA11yLabel},B.reviewsCount)):_.w("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.w("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.w("span",{class:"category",title:B.placeCategory},B.placeCategory)))):null)};
xYf=function(E){return function(B){E&&(E.thumbnailElRef=B.thumbnailElRef,E.thumbnail=B.thumbnail,E.thumbnailOverlays=B.thumbnailOverlays,E.thumbnailSize=B.thumbnailSize)}};
G3B=function(E){var B;return(B=E.sharedUi)==null?void 0:B.animatedThumbnailEnabled};
OhJ=function(E){var B;return(B=E.sharedUi)==null?void 0:B.inlinePreviewEnabled};
_.nzf=function(E){var B;return(B=E.sharedUi)==null?void 0:B.currentPageSubType};
M0i=function(){return _.w("div",{class:"yt-pinking"},_.w("svg",{class:"yt-pinking__pinking-left"},_.w("defs",null,_.w("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.w("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.w("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.w("svg",{class:"yt-pinking__pinking-right"},_.w("defs",null,_.w("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.w("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.w("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
Hhc=function(E){switch(E){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
Xvt=function(E){var B=[],I=E.data,T=b0(E.width,E.height),e=_.Q().resolve(_.Fx(N2Q)),c=_.oH(function(){B.push("elRef.value set")});
_.uW(function(){B.push("onInit");return function(){B.push("onCleanup")}});
_.uW(function(){var N;(N=E.playbackRef)==null||N.call(E,{thumbnailElRef:c,thumbnail:I.image,thumbnailOverlays:I.overlays,thumbnailSize:T})});
var Y=dnQ(G3B),v,y=(v=E.aspectRatio)!=null?v:0,Z=(v=(I.image?_.stc(I.image):y)<=1&&y===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",P=function(){c.value||_.OG(new _.P7("Thumbnail elRef.value is null",B.join("\n")));e&&c.value&&e(c.value)},z={};
a:{if(!E.disableRounding&&!E.isClip)switch(T){case "large":var m="yt-thumbnail-view-model--large";break a;case "small":m="yt-thumbnail-view-model--small";break a;default:m="yt-thumbnail-view-model--medium";break a}m=void 0}y=_.B$("yt-thumbnail-view-model",E.className,Hhc(y),m,(z["yt-thumbnail-view-model--cinematic"]=v,z));z=void 0;var u,x;(m=v?(u=E.data)==null?void 0:(x=u.backgroundColor)==null?void 0:x.lightTheme:void 0)&&(z="background-color:"+sq(m,"1")+";");var M;u=E.hovered&&T!=="large"&&((M=
I.overlays)==null?void 0:M.some(function(N){return _.h(N,gzt)}));
return _.w("yt-thumbnail-view-model",{class:y,style:z,el:c},_.AV(v,function(){return _.w("div",{class:"yt-thumbnail-view-model__blurred-image"},_.w(_.Ja,{data:I.image,alt:"",contentMode:Z,targetWidth:E.width,onload:P}))}),_.w("div",{class:"yt-thumbnail-view-model__image"},_.w(_.Ja,{data:I.image,
alt:"",contentMode:Z,targetWidth:E.width,onload:P}),null),_.AV(!u,function(){return Smt(I.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:T,isClip:E.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:E.lockupExperiments}})}),_.AV(E.hovered,function(){return J9f(I.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),_.AV(E.hovered&&Y,function(){return WoF(I.overlays)}),_.AV(E.isClip,function(){return M0i()}))};
r9Q=function(E){switch(E){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
UYF=function(E){var B=_.p(T8(-1)),I=B.next().value,T=B.next().value,e=xP(function(){return new bhi(T)});
_.uW(function(){ozt(e,E.data.thumbnails.length);return function(){A9Q(e)}});
var c;return _.w("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(c=E.data.thumbnails)==null?void 0:c.map(function(Y,v){var y=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!E.data.primaryThumbnail&&v===0&&y.push("yt-collection-thumbnail-slideshow--first-slide");v<=I&&y.push("yt-collection-thumbnail-slideshow--show-slide");v=y.join(" ");return _.w("div",{class:v},jVi(Y,{thumbnailViewModel:{disableRounding:E.disableRounding}}))}))};
t0Q=function(E){var B=_.p(T8(!1)),I=B.next().value,T=B.next().value;_.uW(function(){if(E){var e=_.Q().resolve(_.Fx(k3J));if(e){var c={triggeringElement:E,onDwellTriggeredFn:function(){T(!0)},
onDwellEndFn:function(){T(!1)}};
e.registerElement(c);return function(){e.unregisterElement(c)}}}});
return I};
fyd=function(E){var B=_.p(_.lQ(!1,void 0,"RIOonf")),I=B.next().value,T=B.next().value;_.uW(function(){var e=E==null?void 0:E();if(e){var c=_.Q().resolve(_.Fx(k3J));if(c){var Y={triggeringElement:e,onDwellTriggeredFn:function(){T(!0)},
onDwellEndFn:function(){T(!1)}};
c.registerElement(Y);_.dt(function(){c.unregisterElement(Y)})}}});
return I};
Foc=function(E){var B,I=(B=_.Q().resolve(_.Fx(_.ME)))==null?void 0:B(),T=t0Q(E.triggeringElement),e=!!E.data.primaryThumbnail,c=function(){var v;return _.w("div",null,V0d(E.data.primaryThumbnail,{thumbnailViewModel:{width:E.width,height:E.height,aspectRatio:E.aspectRatio,disableRounding:E.disableRounding,className:e?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:E.hovered,playbackRef:E.playbackRef}}),_.AV(T&&((v=E.data.thumbnails)==null?void 0:v.length),function(){return _.w("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.w(qm6,{data:E.data,disableRounding:!e}))}))};
B=E.data.stackColor;var Y={experimentEnabled:e,thumbnailSize:b0(E.width,E.height),doubleStack:E.doubleStack,color:I?B==null?void 0:B.darkTheme:B==null?void 0:B.lightTheme,enableResponsiveMode:!1};return _.w("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.AV(e,function(){return _.w(Lbc,{data:Y},c())}),_.AV(!e,c))};
DYJ=function(E,B,I){I?I(B):_.xg(B,E.target?{form:{element:E.target}}:void 0)};
_.k4=function(E,B,I,T){_.m$(function(){var e=E.value;if(e){var c=new Map,Y,v=(Y=B())==null?void 0:Y.onTap;v&&(Y=function(y){a:{var Z=y.composedPath();Z=_.p(Z);for(var P=Z.next();!P.done;P=Z.next()){P=P.value;if(P===e)break;if(P.className.indexOf("HostIsClickableAdComponent")>=0||P.tagName==="A".toString()||P.tagName==="BUTTON".toString()){Z=!0;break a}}Z=!1}Z||(_.d("enable_square_image_components_ui_web_with_float_button")?_.$O(E.value,"yt-navigate",{endpoint:_.ha(v)}):DYJ(y,v,I))},(T==null?0:T())||
_.d("enable_web_home_top_landscape_image_layout_level_click")?(e.addEventListener("tap",Y),c.set("tap",Y)):(e.addEventListener("click",Y),c.set("click",Y)));
_.dt(function(){for(var y=_.p(c),Z=y.next();!Z.done;Z=y.next()){var P=_.p(Z.value);Z=P.next().value;P=P.next().value;e.removeEventListener(Z,P)}})}})};
Kod=function(E,B){var I,T=(I=E.interaction)==null?void 0:I.onTap;if(E=_.uu({elementsCommand:T,forceNewState:!0,skipOnClick:!0}))return E.onclick=function(e){gW4(e)&&(e.preventDefault(),T&&DYJ(e,T,B))},L8(E)?E:void 0};
RwG=function(E){switch(E){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
ED6=function(E){switch(E){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"}};
Bni=function(E){switch(E){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"}};
_.$aJ=function(E){return _.d("rich_grid_enable_dynamic_offset")&&E?Math.max(Math.round((E-_.RI("rich_grid_dynamic_offset_anchor_width",1300))/100*_.RI("rich_grid_dynamic_offset_offset_per_100",10)),_.RI("rich_grid_dynamic_offset_lower_bound",-60)):0};
Ifd=function(E,B){switch(B){case 4:return 16;case 1:return E<528?16:E<1024?32:48;case 2:return(E>=528?16:8)/2;case 3:return(E<528?16:E<1024?32:48)+(E>=528?16:8)/2;default:return 0}};
TnG=function(E){var B=E.originalContainerWidth;var I=E.sizing;var T=E.standardUnit;if(E.isCompactList&&B<528)return 1;switch(I){case "STANDARD":return T;case "COMPACT":return T+1;case "EXTRA_COMPACT":return _.d("web_responsive_extra_compact_2x")?T*2:_.d("web_responsive_current")?T===1?2:T%2===0?T/2*3:T+2:T<4?T*2:Math.ceil(T*3/2);case "MINI":return T>1?T*2:3;default:return T}};
lfi=function(E){var B=E.containerWidth;var I=E.peek;var T=E.gutter;var e=E.numItems;E=E.ignoreMaxWidthLimit;B=I?Math.max((B-I-T*e)/e,0):Math.max((B-T*(e-1))/e,0);return E?B:Math.min(B,enD)};
_.tM=function(E){var B=E.containerWidth;var I=E.hasPeek;var T=E.sizing;var e=E.marginSettings;var c=E.isCompactList;var Y=E.enableFullBleedForSingleCol;var v=E.standardUnitMinWidth;T=T||"STANDARD";I=!!I;E=B>=528?16:8;var y=I?B>=528?48:24:0;e=Ifd(B,e);var Z=Math.max(B-e*2,0);v=_.d("kevlar_disable_min_width_override")?void 0:v;v=Math.min(Math.max(Math.floor((Z-y+E)/((v!=null?v:cEJ)+_.$aJ(B)+E)),1),6);var P=(Y=!!Y&&v===1)||v===1&&T!=="STANDARD";I=I||P?Z:Math.min(Z,(enD+E)*v-E);T=TnG({originalContainerWidth:B,
sizing:T,standardUnit:v,isCompactList:c});return{itemWidth:lfi({containerWidth:I,peek:y,gutter:E,numItems:T,ignoreMaxWidthLimit:P}),gutter:E,maxContainerWidth:I,numItems:T,margin:Y?0:e,contentMargin:Ifd(B,1),typographyBump:lfi({containerWidth:I,peek:y,gutter:E,numItems:v,ignoreMaxWidthLimit:P})>400&&!(c&&B<528),standardUnit:v}};
iWQ=function(E){switch(E){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.pKJ=function(E){if(E){var B;if((B=E.responsiveContainerConfiguration)==null?0:B.responsiveSize)return iWQ(E.responsiveContainerConfiguration.responsiveSize);if(E.layoutSizing)switch(E.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"}}};
Ynt=function(E){if(E.fullbleed)return 1;switch(E.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
Cwd=function(E,B,I,T,e,c,Y,v){a:switch(E){case 4:c=!!(c&&c<100);break a;default:c=!1}a:switch(E){case 3:case 4:var y=T==="LOCKUP_CONTENT_TYPE_CHANNEL"||T==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:y=!1}a:switch(E){case 5:var Z=!0;break a;case 4:Z=!1;break a;default:Z=!1}a:if(E===4&&T==="LOCKUP_CONTENT_TYPE_SOURCE")var P=1;else switch(E){case 3:P=1;break a;default:P=0}return{isOverlay:Z,isCard:af4(T,Y),sizing:B!=null?B:"STANDARD",typographyBump:I!=null?I:!1,isTiny:c,isCentered:y,isCollection:vDi(T),
arrangement:P,addMarginForFullbleed:E===1&&T!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:E===1&&T==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:yEi(T,e,v),disableRounding:E===5||af4(T,Y)||E===1&&T==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:vDi(T)?2:0,useLegacyTypography:!(v==null||!v.useLegacyTypography),useRichGridLegacyTypography:!(v==null||!v.useRichGridLegacyTypography)}};
vDi=function(E){switch(E){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}};
af4=function(E,B){if(B&&E==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(E){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
yEi=function(E,B,I){if(B&&(I==null||!I.alwaysRespectPodcastShowAspectRatio||E!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(E){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}};
wK6=function(E){switch(E){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"}};
zn4=function(E,B,I){a:switch(E.badgeStyle){case "BADGE_OVERLAY":var T=!0;break a;default:T=!1}return{type:B?16:ZWQ(E.badgeStyle),brNzRatingBadgeType:Pwc(E.badgeStyle),text:E.badgeText,icon:E.iconName,isOverlay:T,modern:I||_.d("web_modern_badge_view_model")}};
ZWQ=function(E){switch(E){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
Pwc=function(E){switch(E){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}};
QDQ=function(E){var B=E.data?zn4(E.data,!!E.workaroundShortsIsThumbnailBadge,E.modern):void 0;return _.w("yt-badge-view-model",{class:_.B$("yt-badge-view-model-wiz",E.class)},_.AV(B==null?void 0:B.brNzRatingBadgeType,function(){return _.w(mad,{data:B})}),_.AV(B&&!B.brNzRatingBadgeType,function(){return _.w(_.fe,{data:B})}))};
_.VW=function(E){if(E){var B;return((B=_.Q().resolve(_.Fx(_.ME)))==null?0:B())?E.darkThemeImage:E.image}};
sDD=function(E,B,I,T,e,c){if(!I)return e&&c&&B==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+e+"px; height: "+c+"px;":"";e=I.size;I=I.allowFullWidth;if(B==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&I)return"width: 100%;";if(e===void 0)return"";switch(E){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+e+"px; height: "+e+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+e+"px; height: "+1/da4*
e+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+e*hnd+"px; height: "+e+"px;";default:return(T==null?0:T.height)&&(T==null?0:T.width)?T.width/T.height>1?"max-width: "+e*hnd+"px;":"max-width: "+e+"px;":"max-width: "+e+"px;"}};
ulB=function(E){var B;return E&&((B=_.VW(E.themedImage))!=null?B:E.image)};
LCc=function(E){var B;return E==null?void 0:(B=E.sources)==null?void 0:B[0]};
GYi=function(E,B){var I,T;return!!((E==null?0:(I=E.byline)==null?0:I.hideAvatar)&&((T=_.h(B,xaD))==null?void 0:T.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
OW4=function(E,B){var I,T;return!!((E==null?0:(I=E.byline)==null?0:I.addPadding)&&((T=_.h(B,xaD))==null?void 0:T.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
nD6=function(E,B,I,T){var e={},c=(e["yt-content-metadata-view-model-wiz__delimiter"]=!0,e["yt-content-metadata-view-model-wiz__delimiter--standalone"]=T,e);return _.AV(B-1>I,function(){return _.w("span",{class:_.B$(c),"aria-hidden":!0},E)})};
HW4=function(E,B){return _.w(_.aS,{text:E.text,linkInheritColor:!0,className:M8c(B),userInput:!0})};
gDc=function(E){var B=E.metadataPart;var I=E.isOverlay;var T=E.useMediumText;var e=E.hideAvatar;var c=1;B.maxLines!==void 0&&(c=B.maxLines);return _.w(_.VS,null,_.AV(B.avatarStack,function(){return NnD(B.avatarStack,{avatarStackViewModel:{isOverlay:I,useMediumText:T,hideAvatar:e}})}),_.AV(B.text,function(){var Y=c;
return _.w(_.VS,null,B.tooltip?_.w("span",{title:B.tooltip,role:"tooltip"},HW4(B,Y)):HW4(B,Y))}))};
M8c=function(E){switch(E){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
Sn6=function(E){var B=E.metadataRow;var I=E.isInline;var T=E.delimiter;var e=E.isOverlay;var c=E.useMediumText;var Y=E.extensions;var v=GYi(Y==null?void 0:Y.lockupMetadata,B);E=OW4(Y==null?void 0:Y.lockupMetadata,B);Y=!!((Y==null?0:Y.lockupMetadata)&&B.badges);var y={};E=(y["yt-content-metadata-view-model-wiz__metadata-row"]=!0,y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=I,y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=E,y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
Y,y);var Z,P;return _.w("div",{class:_.B$(E)},(Z=B.badges)==null?void 0:Z.map(function(z){return _.w("div",{class:"yt-content-metadata-view-model-wiz__badge"},NnD(z))}),(P=B.metadataParts)==null?void 0:P.map(function(z,m){return _.w(_.VS,null,gDc({metadataPart:z,
isOverlay:e,useMediumText:c,hideAvatar:v}),nD6(T,B.metadataParts.length,m,!1))}),_.AV(B.isSpacerRow&&!I,function(){return _.w("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
JEf=function(E){var B=E.className;var I=E.data;var T=E.layout===void 0?0:E.layout;var e=E.isOverlay===void 0?!1:E.isOverlay;var c=E.useMediumText;var Y=E.extensions;E=_.oH();var v=T===0;T={};T=(T["yt-content-metadata-view-model-wiz"]=!0,T["yt-content-metadata-view-model-wiz--inline"]=v,T["yt-content-metadata-view-model-wiz--tappable"]=_.WE(I.rendererContext),T["yt-content-metadata-view-model-wiz--medium-text"]=c,T);_.X3(E,I.rendererContext);return _.w("yt-content-metadata-view-model",{class:_.B$(B,
T),el:E},_.AV(I.metadataRows,function(){return I.metadataRows.map(function(y,Z){return _.w(_.VS,null,Sn6({metadataRow:y,isInline:v,delimiter:I.delimiter,isOverlay:e,useMediumText:c,extensions:Y}),_.AV(v&&!y.isSpacerRow,function(){return nD6(I.delimiter,I.metadataRows.length,Z,!0)}))})}))};
WCi=function(E){switch(E){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
XKi=function(E){if(E==null?0:E.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(E==null?void 0:E.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
rEQ=function(E){if(E==null?0:E.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(E==null?void 0:E.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
oDf=function(E){var B,I,T,e,c,Y,v={},y=_.B$(XKi(E.lockupStyle),rEQ(E.lockupStyle),(v["yt-lockup-metadata-view-model-wiz"]=!0,v["yt-lockup-metadata-view-model-wiz--overlay"]=(B=E.lockupStyle)==null?void 0:B.isOverlay,v["yt-lockup-metadata-view-model-wiz--card"]=(I=E.lockupStyle)==null?void 0:I.isCard,v["yt-lockup-metadata-view-model-wiz--centered"]=(T=E.lockupStyle)==null?void 0:T.isCentered,v["yt-lockup-metadata-view-model-wiz--typography-bump"]=(e=E.lockupStyle)==null?void 0:e.typographyBump,v["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(c=E.lockupStyle)==null?void 0:c.useLegacyTypography,v["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(Y=E.lockupStyle)==null?void 0:Y.useRichGridLegacyTypography,v)),Z,P,z,m,u,x;return _.w("yt-lockup-metadata-view-model",{class:y},_.AV(E.data.image,function(){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},bWG(E.data.image))}),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.w("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(Z=E.data.title)==null?void 0:Z.content},_.AV(E.data.title,function(){return _.w(_.Y3,{command:E.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:E.lockupAccessibilityLabel},_.w(_.aS,{text:E.data.title}))})),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},bWG(E.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((P=E.lockupStyle)==null?void 0:P.typographyBump)||((z=E.lockupStyle)==null?void 0:z.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((m=E.lockupStyle)==null?void 0:m.arrangement)===0,addPadding:((u=E.lockupStyle)==null?void 0:u.arrangement)===1}}}}})),_.AV(E.data.attribution,function(){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},bWG(E.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))})),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},
bWG(E.data.menuButton,((x=E.lockupStyle)==null?0:x.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
AEG=function(E){switch(E.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"}}};
jDi=function(E){var B=_.nzf(_.gp().getState())||"";return E?E+B:""};
UaF=function(E){switch(E){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
t8F=function(E){var B=_.p(_.lQ(void 0,void 0,"BIquNb")),I=B.next().value,T=B.next().value,e=_.p(_.lQ(void 0,void 0,"eR0GH"));B=e.next().value;var c=e.next().value,Y=_.p(_.lQ(void 0,void 0,"UmkP0"));e=Y.next().value;var v=Y.next().value;Y=_.TI(function(P){if(kY6(_.Sf(P)))return!1;T(P);c(void 0);v(void 0);return!0});
var y=_.TI(function(P){E==null||E(P);if(kY6(_.Sf(P)))return!1;c(P);T(void 0);v(void 0);return!0}),Z=_.TI(function(P){kY6(_.Sf(P))||(v(P),c(void 0),T(void 0))});
return{touchFeedbackEvents:{pointerUpEvent:I,pointerDownEvent:B,pointerLeaveEvent:e},touchFeedbackOnPointerUp:Y,touchFeedbackOnPointerDown:y,touchFeedbackOnPointerLeave:Z}};
kY6=function(E){var B=["BUTTON".toString()];E=_.p(E);for(var I=E.next();!I.done;I=E.next()){I=I.value;for(var T=_.p(B),e=T.next();!e.done;e=T.next())if(I.tagName===e.value)return!0}return!1};
ffd=function(E){switch(E){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"}};
V8Q=function(E){var B;return EjG(E,((B=E.content)==null?void 0:B.length)||0,!0)};
qnD=function(E){var B=V8Q(E),I,T;return(((I=E.content)==null?void 0:I.length)||0)>(((T=B.content)==null?void 0:T.length)||0)};
FCG=function(E){var B=E.isTruncated;var I=E.isAbsoluteButton;var T=E.lineHeight;var e=E.contentRef.value,c=E.placeholderTruncationTextRef.value,Y=E.truncationTextRef.value;E=E.appDirection==="rtl";if(e&&c){var v=c.offsetLeft;E&&(v=e.offsetWidth-c.offsetWidth-c.offsetLeft);if(B){B=c.offsetWidth;c=e.offsetWidth;var y=I?c-B-70:v-70;T="linear-gradient(\n      to top, transparent 0%,\n      transparent "+T+"px,\n      #000 "+T+"px,\n      #000 100%), linear-gradient(\n      to "+((E?"left":"right")+",\n      #000 0px,\n      #000 "+
y+"px,\n      transparent "+(I?c-B:y+70)+"px)");e.style.setProperty("-webkit-mask-image",T);e.style.setProperty("mask-image",T)}else e.style.setProperty("-webkit-mask-image",""),e.style.setProperty("mask-image","");I?E?(Y.style.setProperty("left","0"),Y.style.setProperty("right","unset")):(Y.style.setProperty("left",""),Y.style.setProperty("right","0")):E?(Y.style.setProperty("left","unset"),Y.style.setProperty("right",v+"px")):(Y.style.setProperty("left",v+"px"),Y.style.setProperty("right","unset"))}};
DaJ=function(E,B,I,T,e){var c=_.oH(),Y=_.oH(),v=_.oH(),y=V8Q(E),Z=_.Q().resolve(_.NE),P=_.p(T8(qnD(E))),z=P.next().value,m=P.next().value,u=Gb(null);sr(function(){function x(){if(c.value&&Y.value&&v.value){var W=c.value;W.scrollHeight-W.offsetHeight>1?(m(!0),T||FCG({isTruncated:!0,isAbsoluteButton:!0,lineHeight:I,contentRef:c,placeholderTruncationTextRef:Y,truncationTextRef:v,appDirection:Z})):(W=qnD(E),m(W),T||FCG({isTruncated:W,isAbsoluteButton:!1,lineHeight:I,contentRef:c,placeholderTruncationTextRef:Y,
truncationTextRef:v,appDirection:Z}))}}
var M,N;(M=u.value)==null||(N=M.stop)==null||N.call(M);M=new _.qH(x,17);x();u.value=M},[E.content,
B,I,Z,T,e]);_.uW(function(){var x=function(){var N,W;(N=u.value)==null||(W=N.fire)==null||W.call(N)};
if(window.ResizeObserver){var M=new ResizeObserver(x);M.observe(c.value);return function(){var N,W;(N=u.value)==null||(W=N.stop)==null||W.call(N);M.disconnect()}}window.addEventListener("resize",x);
return function(){var N,W;(N=u.value)==null||(W=N.stop)==null||W.call(N);window.removeEventListener("resize",x)}});
return{isTruncated:z,displayText:y,contentRef:c,placeholderTruncationTextRef:Y,truncationTextRef:v}};
KCi=function(E){return _.w("button",{"aria-disabled":!0,disabled:!0,class:E.className,el:E.elRef,style:"line-height: "+E.lineHeight+"px;"},_.w(_.aS,{text:E.text}))};
RnD=function(E){var B=E.text;var I=E.alwaysShowTruncationText;var T=E.truncationText;var e=E.onExpandClick;var c=E.lineHeight===void 0?16:E.lineHeight;var Y=E.maxLines===void 0?2:E.maxLines;var v=E.disableTextMask===void 0?!1:E.disableTextMask;var y=E.isOverlay===void 0?!1:E.isOverlay;var Z=E.accessibilityLabel===void 0?"":E.accessibilityLabel;var P=E.useMediumText===void 0?!1:E.useMediumText;E=_.TI(function(){return void(e==null?void 0:e())});
var z=DaJ(B,Y,c,v,P),m=z.isTruncated;B=z.displayText;var u=z.contentRef,x=z.placeholderTruncationTextRef;z=z.truncationTextRef;var M={};I=_.B$((M["truncated-text-wiz__absolute-button"]=!v,M["truncated-text-wiz__bottom-button"]=v,M["truncated-text-wiz--hidden"]=!(I||m),M));v={};y=_.B$((v["truncated-text-wiz"]=!0,v["truncated-text-wiz--overlay"]=y,v["truncated-text-wiz--medium-text"]=P,v));return _.w("truncated-text",{class:y,"on:click":E,style:"line-height: "+c+"px;"},_.w("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:u,style:"max-height: "+Y*c+"px;"},_.w(_.aS,{text:B}),_.w(KCi,{text:T,lineHeight:c,elRef:x,className:"truncated-text-wiz__inline-button"})),_.w("button",{"aria-label":Z,class:I,el:z,style:"line-height: "+c+"px;"},_.w(_.aS,{text:T})))};
EFf=function(E){return{content:E!=null?E:""}};
IEt=function(E){var B=E.data;var I;E={class:E.className};a:switch(B.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var T="yt-video-attribute-view-model--vertical";break a;default:T="yt-video-attribute-view-model--horizontal"}a:switch(B.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var e="yt-video-attribute-view-model--image-small";break a;default:e="yt-video-attribute-view-model--image-large"}a:switch(B.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var c="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":c="yt-video-attribute-view-model--image-avatar";break a;default:c=""}a:switch(B.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var Y="yt-video-attribute-view-model--metadata-header";break a;default:Y=""}a:switch(B.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var v="yt-video-attribute-view-model--container-card";break a;default:v=""}var y=_.ha(B.onTap)||_.JM(B.rendererContext)?"yt-video-attribute-view-model--clickable":"";
T=["yt-video-attribute-view-model",T,e,c,Y,v,y].join(" ");if(B.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var Z="";else e=B.lightColorPalette,c=B.darkColorPalette,Y=((Z=_.Q().resolve(_.Fx(_.ME)))==null?0:Z())&&c?c:e,Z=(Z=Y==null?void 0:Y.section2Color)?_.hR(Z):"";return _.w("yt-video-attribute-view-model",E,_.w("div",{class:T,style:_.c$({"background-color":Z})},_.w(sVG,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(I=_.ha(B.onTap))!=
null?I:_.JM(B.rendererContext),role:"group",ariaLabel:B.title,forceNewState:!0},B.heroText||B.image?_.w(Bv4,{data:B}):null,_.w($4G,{data:B,sizeSmall:B.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
Tvc=function(E){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:E.overflowMenuA11yLabel,onTap:function(B){B.preventDefault();B.stopPropagation();if(E.overflowMenuOnTap){var I=_.uu({elementsCommand:E.overflowMenuOnTap,forceNewState:!0});if(I==null?0:I.onclick)I.onclick(B)}}}};
Bv4=function(E){E=E.data;var B,I=((B=_.Q().resolve(_.Fx(_.ME)))==null?0:B())&&E.darkThemeImage?E.darkThemeImage:E.image;B=Tvc(E);return _.w("div",{class:"yt-video-attribute-view-model__hero-section"},I?_.w(_.Ja,{data:I,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):E.heroText?_.w("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.w("span",{class:"yt-video-attribute-view-model__hero-text"},E.heroText)):null,E.overflowMenuOnTap?
_.w("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.w(F3,{data:B,iconName:"MORE_VERT"})):null)};
$4G=function(E){var B=E.data;E=E.sizeSmall;var I=B.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",T=_.ha(B.onTap)||_.JM(B.rendererContext);T=_.uu({innertubeCommand:T});T=L8(T);var e={};E={class:_.B$("yt-video-attribute-view-model__metadata",(e["yt-video-attribute-view-model--small-font"]=E,e)),role:T?"link":"group"};T=_.w("h1",{class:"yt-video-attribute-view-model__title"},B.title);I=B.subtitle?_.w("h4",{class:"yt-video-attribute-view-model__subtitle"},I?_.w(RnD,{text:EFf(B.subtitle),truncationText:EFf(B.subtitleTruncationText),
maxLines:2}):_.w("span",null,B.subtitle)):null;if(B.secondarySubtitle){e=B.secondarySubtitle;if(e!=null&&e.attachmentRuns){for(var c=[],Y=_.p(e.attachmentRuns),v=Y.next();!v.done;v=Y.next())v=v.value,v.element&&c.push(Object.assign({},v,{element:Object.assign({},v.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));e=Object.assign({},e,{attachmentRuns:c})}e=_.w("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.w(_.aS,{text:e}))}else e=null;return _.w("div",E,T,I,e,B.buttonViewModel?eCd(B.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
cmf=function(E){var B={};B=_.B$("video-summary-content-view-model-wiz",E.className,(B["video-summary-content-view-model-wiz--is-search"]=!!E.isSearch,B));var I=_.h(E.data.likeButtonViewModel,koJ),T=_.h(E.data.dislikeButtonViewModel,tBJ),e=Lc(function(){var c=[],Y,v=(Y=E.data)==null?void 0:Y.paragraphs;if(v==null||!v.length)return[];for(Y=0;Y<v.length;Y++){var y=_.h(v[Y],lEf),Z=void 0;Y>0&&(Z=_.h(v[Y-1],lEf));Z&&!!Z.marker===!!y.marker?c[c.length-1].paragraphs.push(y):c.push({isList:!!y.marker,paragraphs:[y]})}return c},
[E.data]);
return _.w("video-summary-content-view-model",{class:B},e.map(function(c){return c.isList?_.w("ul",{class:"video-summary-content-view-model-wiz__list"},c.paragraphs.map(function(Y){return _.w("li",{class:"video-summary-content-view-model-wiz__list-item"},_.w(_.aS,{text:Y.text}))})):c.paragraphs.map(function(Y){return _.w("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.w(_.aS,{text:Y.text}))})}),_.AV(!!I&&!!T,function(){return _.w("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.w("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.w(VB6,{data:I,
disableIconAnimation:!0})),_.w(q$i,{data:T}))}))};
_.DR=function(E,B,I,T,e){T=T===void 0?{}:T;if(!e||Math.random()<5E-4){B=B||null;I=I||null;E=E instanceof Error?E:new _.P7(E);if(E.args)for(var c=_.p(E.args),Y=c.next();!Y.done;Y=c.next())Y=Y.value,Y instanceof Object&&(T=Object.assign({},Y,T));T.category="H5 Ads Control Flow";B&&(T.slot=B?"slot:  "+B.slotType:"");I&&(T.layout=I?"layout:  "+I.layoutType:"",T.layoutId=I.layoutId);e&&(T.known_error_aggressively_sampled=!0);E.args=[T];_.OG(E)}};
_.iuf=function(E,B){_.I2(E,"yt-open-popup-action",[_.VF(B),E])};
YE6=function(E){if(!E)return"";if(pwB[E])return pwB[E];Ke||(Ke=_.li("A"));Ke.href!==E&&Cr(Ke,E);var B=Ke.pathname;pwB[E]=B.startsWith("/")?B:"/"+B;return pwB[E]};
aEc=function(){var E=YE6(window.location.href);if(E==="/")return"home";if(E.startsWith("/results"))return"search";if(E.startsWith("/watch"))return"watch";if(E.startsWith("/shorts"))return"shorts";if(E.startsWith("/hashtag"))return"hashtag";if(E.startsWith("/create_channel"))return"create_channel";if(E.startsWith("/@")||E.startsWith("/user/")||E.startsWith("/channel/"))return"channel";if(E.startsWith("/experiments"))return"experiments";if(E.startsWith("/sponsor_channel"))return"sponsorship";if(E.startsWith("/select_site"))return"settings";
if(E.startsWith("/locate"))return"locate";if(E.startsWith("/redeem"))return"redeem";if(E.startsWith("/musicpremium")||E.startsWith("/premium")||E.startsWith("/red"))return"premium";if(E.startsWith("/paid_memberships"))return"paid_memberships";if(E.startsWith("/oops"))return"oops";if(E.startsWith("/clip"))return"clip";var B;return(RL==null?void 0:(B=RL.response)==null?void 0:B.page)==="404"?"404":E.startsWith("/feed/history")?"history":E.startsWith("/feed/library")?"library":E.startsWith("/feed/subscriptions")?
"subscriptions":E.startsWith("/feed/trending")?"trending":E.startsWith("/feed/news_destination")?"news":E.startsWith("/playlist")?"playlist":E.startsWith("/minor_moment")?"minor_moment":E.startsWith("/playable/")||E.match("^/playables/(?!saved).")?"mini_app":E.startsWith("/playables")?"playables":E.startsWith("/create/live/join")?"open_in_app":E.startsWith("/feed/explore")?"explore":"browse"};
_.wwQ=function(){var E=RL==null?void 0:RL.response,B=E==null?void 0:E.endpoint;if(!B)return(E==null?void 0:E.page)==="watch"?"watch":aEc();var I;E=(I=_.h(B==null?void 0:B.commandMetadata,_.D$))==null?void 0:I.webPageType;I=!1;if(E&&!vFt.includes(E))switch(E){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 T;return((T=_.h(B==null?void 0:B.commandMetadata,_.D$))==null?0:T.url)&&YE6(_.h(B.commandMetadata,_.D$).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var e;return(B=(e=_.h(B,_.pq))==null?void 0:e.browseId)?ymG[B]||"browse":"browse";default:I=!0}if(_.h(B,_.Ej)||_.h(B,Crf))return"sponsorship";e=YE6(window.location.href);if(e.startsWith("/experiments"))return"experiments";if(e.startsWith("/create_channel"))return"create_channel";
if(_.h(B,_.JK)&&e.startsWith("/shorts"))return"shorts";if(_.h(B,_.JK)&&e.startsWith("/watch"))return"watch";I&&(B=new _.P7("Unsupported mWeb page type",{pathname:e,webPageType:E}),_.xV(B));return"browse"};
hCc=function(E){var B=E.data;var I=E.inlineMetadata;var T=E.aspectRatio;var e=E.scrimStyle;var c=E.useDefaultStyle;var Y=E.className;var v=Gb(new Zu4);E=_.d("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";E=c?E==="SHORTS_LOCKUP_STYLE_SLIM":B.style==="SHORTS_LOCKUP_STYLE_SLIM";I=I||E||!1;e=e!==void 0?e:1;var y=_.oH(function(N){v.value&&(v.value.hostElement=N,M())});
_.VU(y,{visibilityCallback:function(N){N&&B.onFirstVisible&&_.xg(B.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});Y=_.B$("shortsLockupViewModelHost",Y);var Z=_.uu({elementsCommand:B.onTap}),P=_.oH();_.hwc(P,_.ha(B.onTap));var z=_.TI(function(N){if(Z==null?0:Z.onclick)Z.onclick(N);return!1}),m=_.oH(),u=[];
u.push("shortsLockupViewModelHostThumbnailContainer");T===1?u.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):T===2&&u.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");E||u.push("shortsLockupViewModelHostThumbnailContainerRounded");_.d("web_shorts_2_by_3_lockups_study")||_.d("desktop_search_enable_two_by_three_shorts_aspect_ratio")||u.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var x,M=function(){if(v.value){var N;(N=x)==null||
BD(N);N=v.value;var W;N.hostElement&&((W=N.data)==null?0:W.inlinePlayerData)&&(x=UO({mediaRenderer:N,lockupElement:N.hostElement,thumbnailElement:m.value,videoPreviewOpts:PrD}))}};
sr(function(){v.value&&(v.value.data=B,M())},[B]);
return _.w("ytm-shorts-lockup-view-model",{el:y,class:Y},_.w("a",{el:P,"on:click":z,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!I,tabindex:I?0:-1},_.w("div",{el:m,class:u.join(" ")},_.AV(B.thumbnail,function(){return _.w(_.VS,null,_.w(_.Ja,{data:B.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),I?_.w(zCc,{data:B,
scrimStyle:e,useDefaultStyle:c}):null,m4G(B.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),I&&B.menuOnTap?_.w(Qmt,{data:B,inlineMetadata:I}):null,I?null:_.w(d4F,{useDefaultStyle:c,data:B}))};
zCc=function(E){var B=E.data;var I=E.scrimStyle;var T=E.useDefaultStyle;var e=_.d("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";E=T&&_.d("web_hide_primary_text_for_pivot_panel");var c={};T=_.B$("shortsLockupViewModelHostInlineMetadata",(c.shortsLockupViewModelHostMetadataRounded=!(T?e==="SHORTS_LOCKUP_STYLE_SLIM":B.style==="SHORTS_LOCKUP_STYLE_SLIM"),c.shortsLockupViewModelHostInlineMetadataShortScrim=I===3&&!_.d("enable_shorts_lockup_new_scrim"),
c.shortsLockupViewModelHostInlineMetadataShortScrimNew=I===3&&_.d("enable_shorts_lockup_new_scrim"),c.shortsLockupViewModelHostInlineMetadataMediumScrim=I===2||I===4,c.shortsLockupViewModelHostShowOverPlayer=!0,c));var Y,v;e={};return _.w("div",{class:T+" image-overlay-text"},_.w("h3",{class:_.RQ("shortsLockupViewModelHostMetadataTitle",(e.shortsLockupViewModelHostMetadataTitleTextShadow=I===4,e)),"aria-label":B.accessibilityText},_.AV(((Y=B.overlayMetadata)==null?void 0:Y.primaryText)&&!E,function(){return _.w(_.aS,
{text:B.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((v=B.overlayMetadata)==null?0:v.secondaryText)?_.w(smc,{data:B,
scrimStyle:I}):null)};
d4F=function(E){var B=E.data;var I=_.d("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";E=(E.useDefaultStyle?I==="SHORTS_LOCKUP_STYLE_SLIM":B.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var T=_.uu({elementsCommand:B.onTap});I=_.oH();_.hwc(I,_.ha(B.onTap));var e=_.TI(function(z){if(T==null?0:T.onclick)T.onclick(z);return!1}),c,Y,
v,y,Z,P={};
return _.w("div",{class:E+" image-overlay-text","on:click":e},_.w("h3",{class:_.RQ("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(P.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((c=B.overlayMetadata)==null?0:(Y=c.primaryText)==null?0:Y.content),P)),"aria-label":B.accessibilityText},_.w("a",{el:I,"on:click":e,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(v=B.overlayMetadata)==null?void 0:(y=v.primaryText)==
null?void 0:y.content},_.AV(B.overlayMetadata,function(){return _.w(_.aS,{text:B.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((Z=B.overlayMetadata)==null?0:Z.secondaryText)?_.w(smc,{data:B,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,B.menuOnTap?_.w(Qmt,{data:B,inlineMetadata:!1}):null)};
smc=function(E){var B=E.data;var I=E.scrimStyle;E=E.className;var T,e={};return _.w("div",{class:_.RQ((e.shortsLockupViewModelHostMetadataSubhead=I!==4,e.shortsLockupViewModelHostMetadataSubheadNew=_.d("enable_shorts_lockup_new_scrim"),e.shortsLockupViewModelHostMetadataSubheadTextShadow=I===4,e),E),"aria-hidden":"true"},_.w(_.aS,{text:(T=B.overlayMetadata)==null?void 0:T.secondaryText,noStyleRuns:!0}))};
Qmt=function(E){var B={};B=_.B$((B.shortsLockupViewModelHostInlineMetadataMenu=E.inlineMetadata,B.shortsLockupViewModelHostOutsideMetadataMenu=!E.inlineMetadata,B.shortsLockupViewModelHostShowOverPlayer=!0,B));return _.w("div",{class:B},_.w(F3,{data:{style:E.inlineMetadata?"overlay":"mono",accessibilityLabel:E.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(I){I.preventDefault();I.stopPropagation();var T=_.uu({elementsCommand:E.data.menuOnTap,forceNewState:!0});
if(T==null?0:T.onclick)T.onclick(I)}},
iconName:"MORE_VERT"}))};
$6=function(E,B,I,T){return E&&B?E!==I||B!==T?(_.DR(Error("Hh"),void 0,void 0,{"stored-slot":E,"stored-layout":B,"latest-slot":I,"latest-layout":T}),!1):!0:!1};
um4=function(E,B,I){return E({targetId:B},function(T){return I.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},T,{header:I.continuationItems?I.continuationItems[0]:void 0}):Object.assign({},T,{contents:I.continuationItems?I.continuationItems:[]})})};
L7D=function(E,B,I,T){if(B=B.trackingParams){var e,c=(e=I.getScreenLayer)==null?void 0:e.call(I);I=_.nC(c);e=_.Oi(c);if(I&&e){var Y=_.Yg(B);_.d("combine_ve_grafts")?E.graftServerVe(B,e,c):_.XD(I,e,Y);T==null||T(Y)}}};
GDf=function(E){var B;return((B=x46.get(E))==null?void 0:B.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
MK6=function(E,B){var I={type:B.slotType,controlFlowManagerLayer:OuJ.get(B.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};B.slotEntryTrigger&&(I.entryTriggerType=B.slotEntryTrigger.triggerType);B.slotPhysicalPosition!==1&&(I.slotPhysicalPosition=B.slotPhysicalPosition);if(E){I.debugData={slotId:B.slotId};if(E=B.slotEntryTrigger)I.debugData.slotEntryTriggerData=nFQ(E);E=B.slotFulfillmentTriggers;I.debugData.fulfillmentTriggerData=[];E=_.p(E);for(var T=E.next();!T.done;T=E.next())I.debugData.fulfillmentTriggerData.push(nFQ(T.value));
B=B.slotExpirationTriggers;I.debugData.expirationTriggerData=[];B=_.p(B);for(E=B.next();!E.done;E=B.next())I.debugData.expirationTriggerData.push(nFQ(E.value))}return I};
nFQ=function(E,B){var I={type:E.triggerType};B!=null&&(I.category=B);E.triggeringSlotId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedSlotId=E.triggeringSlotId);E.triggeringLayoutId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedLayoutId=E.triggeringLayoutId);return I};
Huf=function(E,B,I,T){B={opportunityType:B};E&&(T||I)&&(T=_.yl(T||[],function(e){return MK6(E,e)}),B.debugData=Object.assign({},I&&I.length>0?{associatedSlotId:I}:{},T.length>0?{slots:T}:{}));
return B};
Nvi=function(E){return I0(E.opportunityAdapterMap).concat(I0(E.triggerAdapterMap)).concat(I0(E.fulfillmentAdapterFactoryMap)).concat(I0(E.slotAdapterFactoryMap)).concat(I0(E.layoutRenderingAdapterFactoryMap))};
I0=function(E){var B=[];E=_.p(E.values());for(var I=E.next();!I.done;I=E.next())I=I.value,I.isAdsControlFlowEventListener&&B.push(I);return B};
e9=function(E){var B=E.slotId,I=E.slotType,T=E.slotPhysicalPosition;return B===void 0?new TN("Cannot construct a slot due to the missing id.",{adSlotMetadata:E}):I===void 0?new TN("Cannot construct a slot due to the missing type.",{adSlotMetadata:E}):T===void 0?new TN("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:E}):{slotId:B,slotType:I,slotPhysicalPosition:T,managerLayer:"external",adSlotLoggingData:E.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new gFi}};
SEc=function(E){var B=E.layoutId,I=E.layoutType;return B===void 0?new lJ("Cannot construct a layout due to the missing id.",{adLayoutMetadata:E}):I===void 0?new lJ("Cannot construct a layout due to the missing type.",{adLayoutMetadata:E}):{layoutId:B,layoutType:I,managerLayer:"external",adLayoutLoggingData:E.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new gFi,interactionLoggingAdsClientData:{}}};
Jmc=function(E){if((E=E.value)&&E.querySelector("img")){var B=E.querySelector("img");B.addEventListener("error",function(){uVJ(B.src).then(function(I){(I=_.YM(I).toString())?B.src=I:B.removeAttribute("src")}).catch(function(){B.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
iJ=function(E,B){if(B&&(W7d(B.viewableCommand)||W7d(B.endOfSessionCommand))){E=E.value;var I=Xwd(B==null?void 0:B.viewableCommand);B=Xwd(B==null?void 0:B.endOfSessionCommand);if(!cD){var T=_.HA("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);cD=new rmt((T==null?void 0:T.length)===2?T[1]:null)}bu6(cD,E);oFG(cD,E,I,B)}};
pf=function(E){cD&&bu6(cD,E.value)};
W7d=function(E){E=_.ha(E);return!(E==null||!E.loggingUrls)&&E.loggingUrls.length>0};
Xwd=function(E){if(!E)return[];var B=[],I,T;((T=(I=_.ha(E))==null?void 0:I.loggingUrls)!=null?T:[]).forEach(function(e){e.baseUrl&&B.push(e.baseUrl)});
return B};
Am4=function(E){return E.shorts.isDesktopSmallWidth};
_.jmF=function(E){return E.shorts.isWatchWhileMode};
_.Y6=function(E){return E.shorts.isFullscreen};
_.a0=function(E){return E.shorts.isShortsPipActive};
kDG=function(E){var B,I;if(E=(B=_.h(E.reelsAdCardButtoned,U4c))==null?void 0:(I=B.animatedRenderingConfig)==null?void 0:I.easeOutSeconds)return E+"s"};
fEQ=function(E,B,I){return _.a(function(T){return T.return(new Promise(function(e){var c=new Image;c.onload=function(){e(new tKt(E,B,I,c.naturalWidth,c.naturalHeight))};
c.src=I.toString()}))})};
VKJ=function(E,B){return Math.round(E/1E-5)===Math.round(B/1E-5)};
qEc=function(E,B){return Math.round(E/1E-5)===Math.round(B/1E-5)};
F7G=function(E,B){return E.year===B.year&&E.month===B.month&&E.day===B.day};
D4D=function(E,B){return E.year!==B.year?E.year<B.year:E.month!==B.month?E.month<B.month:E.day<B.day};
RCd=function(E){return E.day===K7G(E.year,E.month)?E.month===11?{year:E.year+1,month:0,day:1}:{year:E.year,month:E.month+1,day:1}:{year:E.year,month:E.month,day:E.day+1}};
EXF=function(){var E=new Date,B={year:E.getFullYear(),month:E.getMonth(),day:E.getDate()};return{start:B,end:{year:E.getFullYear()+2,month:E.getMonth(),day:E.getDate()},selectedDate:RCd(B)}};
BaG=function(E){return(new oY(2)).format(new Date(E.year,E.month,E.day))};
$5J=function(E){return{year:E.getFullYear(),month:E.getMonth(),day:E.getDate()}};
I6G=function(E,B){E=(E+(Number(B.utcOffsetSec)+(new Date(E*1E3)).getTimezoneOffset()*60))*1E3;B=$5J(new Date(E));return{date:B,secondsSinceMidnight:Math.floor((E-(new Date(B.year,B.month,B.day)).getTime())/1E3)}};
Tac=function(E,B){B=B.months.findIndex(function(I){return I.year===E.year&&I.month===E.month});
return B>=0?B:void 0};
ec6=function(E){if(!E)return!1;try{if(E.host&&E.host.tagName==="YT-FORMATTED-STRING"&&E.host.id==="contenteditable-textarea"||E.nodeType===Node.ELEMENT_NODE&&E.tagName==="YTD-COMMENTBOX")return!0}catch(B){return!1}return ec6(E.parentNode)};
vD=function(E){return E?!(E.tagName!=="A"||!E.href||!E.classList.contains("yt-simple-endpoint")):!1};
l6B=function(E){return E?E.tagName==="IMG"&&E.classList.contains("emoji"):!1};
ctG=function(E,B,I){if(!E)return null;var T=vD(E);if(T&&I)return B=E.pathname.substring(E.pathname.indexOf("/channel/")+9),document.createTextNode("@"+B);if(T&&!I)return document.createTextNode("");if(l6B(E))return I=E.alt,E=E.dataset.emojiId,!E&&B&&(B=_.yL(B,I))&&B.isCustomEmoji&&(E=B.emojiId),E?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+E+">"):document.createTextNode(I);T=E.cloneNode(!1);for(var e=0;e<E.childNodes.length;++e){var c=ctG(E.childNodes[e],B,I);c&&T.appendChild(c)}return T};
Cf=function(E){return E?vD(E)?E:Cf(E.lastChild):null};
iAc=function(E){return E?vD(E)?E:iAc(E.firstChild):null};
pXJ=function(E){if(!E)return null;for(var B=E.previousSibling;B;)if(B.nodeType===Node.ELEMENT_NODE&&B.nodeName==="BR")B=B.previousSibling;else if(B.nodeType===Node.TEXT_NODE&&/\s+/.test(B.textContent))B=B.previousSibling;else break;(B=Cf(B))?E=B:E=(E=E.parentNode)?Cf(E.previousElementSibling):null;return E};
Y2Q=function(E){if(!E)return null;for(var B=E.nextSibling;B;)if(B.nodeType===Node.ELEMENT_NODE&&B.nodeName==="BR")B=B.nextSibling;else if(B.nodeType===Node.TEXT_NODE&&/\s+/.test(B.textContent))B=B.nextSibling;else break;return(B=iAc(B))?B:Y2Q(E.parentNode)};
a6c=function(E){var B=_.wZ(),I=B.JSC$9140_getStartNode();if(!ec6(I.parentNode))return null;B=B.JSC$9140_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var T=_.Ql(I,vD);if(T){if(E&&B===0||!E&&B===I.length)return T}else{if(E&&B===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.Zu(I.nextElementSibling,"display")==="block"?null:iAc(I.nextElementSibling);if(!E&&B===0)return I?Cf(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(E){if(0<=B&&B<I.childNodes.length)return iAc(I.childNodes[B])}else if(0<
B&&B<=I.childNodes.length)return Cf(I.childNodes[B-1]);return null};
vX6=function(E,B,I){if(!E)return null;if(E.nodeType===Node.TEXT_NODE)if(I){var T=pXJ(E);if(T&&!/^\s+\S/.test(E.wholeText.substr(0,B)))return T}else if((T=Y2Q(E))&&!/\S\s+/.test(E.wholeText.substr(B,E.wholeText.length)))return T;return E.nodeType===Node.ELEMENT_NODE?I?pXJ(E.childNodes[B]):Y2Q(E.childNodes[B]):vX6(E.parentNode,B,I)};
ytF=function(E){if(E.hasChildNodes())switch(E.tagName){case "DIV":case "A":case "SPAN":var B="";for(E=E.firstChild;E;E=E.nextSibling)B+=ytF(E);return B;default:return""}else switch(E.nodeType){case 3:return E.textContent;default:return""}};
PD=function(E,B){return E.year===B.year&&E.month===B.month&&E.day===B.day};
zN=function(E,B){return E.year!==B.year?E.year<B.year:E.month!==B.month?E.month<B.month:E.day<B.day};
C$c=function(E){return{year:E.getFullYear(),month:E.getMonth(),day:E.getDate()}};
wXt=function(E){var B=qSc;B=B===void 0?qSc:B;B(new Date(E.year,E.month,E.day))};
mx=function(E){return C$c(new Date(Number(E.seconds)*1E3))};
ZAF=function(E){return E.year!==void 0&&E.month!==void 0&&E.day!==void 0};
P$B=function(E){return E.start!==void 0&&E.end!==void 0};
zct=function(E){return P$B(E)?E.start:E};
m56=function(E){return P$B(E)?E.end:void 0};
d5c=function(E,B){for(var I=[],T=new Date(E.start.year,E.start.month);T.getFullYear()<E.end.year||T.getFullYear()===E.end.year&&T.getMonth()<=E.end.month;){var e=I,c=e.push,Y=T.getFullYear(),v=T.getMonth(),y=E,Z=B,P=void 0,z=[],m=Object.freeze({extraCssClass:"invisible"}),u=new Date(Y,v),x=C$c(u);u=u.getDay();for(var M=C$c(new Date);x.month===v;){u!==QXQ&&P||(P=Array.from({length:7}).fill(m),z.push(P));var N={date:{year:Y,month:v,day:x.day},extraCssClass:"",debugClass:""};N.extraCssClass=Z(N.date,
x,M,y).trim();P[(u-QXQ+7)%7]=N;x=x.day===K7G(x.year,x.month)?x.month===11?{year:x.year+1,month:0,day:1}:{year:x.year,month:x.month+1,day:1}:{year:x.year,month:x.month,day:x.day+1};u=(u+1)%7}c.call(e,{weeks:z,monthLabel:QL.SHORTMONTHS[v]+" "+Y,year:Y,month:v,monthLabelExtraCssClass:z[0][2]===m?"shift-down-label":""});T.setMonth(T.getMonth()+1)}return I};
hcf=function(E,B){B=B.months.findIndex(function(I){return I.year===E.year&&I.month===E.month});
return B>=0?B:void 0};
uad=function(E,B){a:{var I=I===void 0?[2,3]:I;I=_.p(I);for(var T=I.next();!T.done;T=I.next()){var e=new Date;if((new sXc(T.value)).parse(B,e,{validate:!0})){e.setHours(0,0,0,0);B=e;break a}}B=null}if(!B)return{isValid:!1,value:void 0};B=C$c(B);I=E.end;return zN(B,E.start)||zN(I,B)?{isValid:!1,value:void 0}:{isValid:!0,value:B}};
nXB=function(E){var B=LLi;B=B===void 0?x5J:B;var I=E.columnsToShow||[],T=G$6(E.columnDimensions,E.columnsToShow,E.leftFloatingColumns,B);return I.map(function(e,c){var Y=E.columns[e];if(Y===void 0)throw Error("Nh");var v=T?T[c]:"";var y=E.getCustomTooltip?E.getCustomTooltip(e,Y.headerTooltipParagraphs):Y.headerTooltipParagraphs;var Z=OA6(E,e);return{type:e,index:c,style:v,classes:Z,headerName:Y.headerName||"",headerIcon:Y.headerIcon,headerTooltipParagraphs:y||[],headerTooltipHelpContext:Y.headerTooltipHelpContext,
sortOrders:Y.sortOrders||[],selectionState:Y.isSelectionCheckbox?E.selectionState:void 0}})};
OA6=function(E,B){var I=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],T=E.columns[B];if(T===void 0)return"";var e=I.includes("DEFAULTS")&&T.cssClass?[T.cssClass]:[];if(I.includes("SORTING")){T.sortOrders&&T.sortOrders.length&&e.push("sortable");if(E.sorting&&E.sorting.columnType===B)a:switch(E.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var c="column-sorted";break a;default:c=""}else c="";c&&e.push(c)}I.includes("FLOATING")&&(B=E.columnsToShow.indexOf(B),E.leftFloatingColumns&&B<E.leftFloatingColumns&&
e.push("floating-column"),E.leftFloatingColumns&&B===E.leftFloatingColumns-1&&e.push("last-floating-column"));I.includes("RIGHT_ALIGN")&&T.rightAlignHeader&&e.push("right-align");return e.filter(function(Y){return Y}).join(" ")};
G$6=function(E,B,I,T){I=I===void 0?0:I;T=T===void 0?x5J:T;if(E){var e=[],c=0;MLf(E,B,T).forEach(function(Y,v){var y="min-width:"+Y.minWidth+"px;padding-left:"+Y.paddingLeft+"px;padding-right:"+Y.paddingRight+"px;flex:"+Y.flexGrow+" 0 "+Y.minWidth+"px;";Y.maxWidth!==Infinity&&(y=[y,"max-width:"+Y.maxWidth+"px;"].join(""));c>0&&v<I&&(y=[y,"left:"+c+"px;"].join(""));e.push(y);c+=Y.minWidth+Y.paddingLeft+Y.paddingRight});
return e}};
MLf=function(E,B,I){I=I===void 0?x5J:I;return B.map(function(T,e){T=E&&E[T]||{};var c=e===0?I.paddingLeftFirstColumn:I.padding;T.paddingLeft!==void 0&&(c=T.paddingLeft);e=e===B.length-1?I.paddingRightLastColumn:I.padding;T.paddingRight!==void 0&&(e=T.paddingRight);return{paddingLeft:c,paddingRight:e,minWidth:T.minWidth!==void 0?T.minWidth:I.minWidth,maxWidth:T.maxWidth!==void 0?T.maxWidth:I.maxWidth,flexGrow:T.flexGrow!==void 0?T.flexGrow:I.flexGrow}})};
HA4=function(E){var B=E.reduce(function(T,e){var c=e.columnId,Y={};e.headerText&&(Y.headerName=_.U3(e.headerText));e.rightAlignHeader&&(Y.rightAlignHeader=e.rightAlignHeader);var v;if((v=e.headerIcon)==null?0:v.iconType)Y.headerIcon=_.R3(e.headerIcon.iconType);T[c]=Y;return T},{}),I=E.filter(function(T){return!T.hideColumn}).map(function(T){return T.columnId});
E=E.filter(function(T){return!!T.dimensions}).reduce(function(T,e){T[e.columnId]=e.dimensions;
return T},{});
return{columns:B,columnsToShow:I,columnDimensions:E}};
_.Naf=function(E){return E?E.simpleText?E.simpleText:E.runs?E.runs.map(function(B){return B.text}).join(""):"":""};
XXF=function(E){var B=E.data;var I=E.onTap;var T=E.isSelected;var e=E.onFocusIn;if(!B)return{};E=gXd(B);T===void 0&&(T=B==null?void 0:B.isSelected);var c;return{text:S2f(B,E),startIcon:(c=B.icon)==null?void 0:c.iconType,state:T?0:2,type:0,onTap:Jt6(B,I),accessibilityLabel:WLJ(B,E),onFocusIn:function(){return e==null?void 0:e()}}};
S2f=function(E,B){if(!B)return E.text?_.Naf(E.text):void 0};
Jt6=function(E,B){return function(I){B==null||B(I,E)}};
gXd=function(E){E=E.style&&E.style.styleType;return!rtd&&E==="STYLE_EXPLORE_LAUNCHER_CHIP"};
WLJ=function(E,B){if(B){var I,T,e;return(e=(I=E.accessibilityData)==null?void 0:(T=I.accessibilityData)==null?void 0:T.label)!=null?e:S2f(E,!1)}};
dZ=function(E){return{signalAction:{signal:E}}};
Att=function(){return _.HA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?bAB:_.oXF};
jXB=function(E,B){E=E===void 0?"SOFT_RELOAD_PAGE":E;B=B===void 0?49504:B;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.KO(_.yu("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:B}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:E}}]}}}};
U5G=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.KO(_.yu("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:Att()}};
k$f=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.KO(_.yu("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:Att()}};
tLc=function(E,B){var I=_.KO(_.yu("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),T=_.KO(_.yu("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),e={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.KO(_.yu("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};e.serviceEndpoint=E?E:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[dZ("SOFT_RELOAD_PAGE")]}};return{title:I,bodyText:T,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:e},
style:{value:B!=null?B:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
VLt=function(E){E=E===void 0?{}:E;return{title:_.KO(E.localizedZeroStateTitleText===void 0?"":E.localizedZeroStateTitleText),bodyText:_.KO(E.localizedZeroStateMessage===void 0?"":E.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.KO(E.localizedZeroStateButtonText===void 0?"":E.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[f6F]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.D5d=function(E,B,I,T,e,c,Y,v){T=T===void 0?!1:T;e=e===void 0?!1:e;c=c===void 0?0:c;Y=Y===void 0?-Infinity:Y;v=v===void 0?!1:v;var y=[],Z=_.KO(_.yu("SMART_DOWNLOADS",void 0,"Smart downloads"));Y=_.KO(q2B(c,Y,E.length));c=void 0;T?c=E.length>0?FLd(E,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.d("kevlar_manual_downloads_above"),Z,Y):v?{alertBannerViewModel:{heading:{content:I.localizedOptInBannerTitleText===void 0?"":I.localizedOptInBannerTitleText},body:{content:I.localizedPromptMessage===
void 0?"":I.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.yu("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.yu("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:_.a_6}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.KO(_.yu("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"}}}:e&&(c={alertBannerViewModel:{heading:{content:I.localizedOptInBannerTitleText===void 0?"":I.localizedOptInBannerTitleText},body:{content:I.localizedOptInMessage===
void 0?"":I.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.yu("TURN_ON",void 0,"Turn on"),accessibilityText:_.yu("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}}}}}});I=_.KO(_.yu("YOUR_DOWNLOADS",void 0,"Your downloads"));e=void 0;B.length>0?(e=void 0,_.d("kevlar_display_downloads_numbers")&&(e=_.KO(_.CO("VIDEO_COUNT",B.length))),e=FLd(B,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,I,e)):T||E.length||(e={backgroundPromoRenderer:{bodyText:_.KO(_.yu("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}}}});c&&!_.d("kevlar_manual_downloads_above")&&y.push({richSectionRenderer:{content:c,loggingDirectives:{clientVeSpec:{uiType:139572}}}});e&&y.push({richSectionRenderer:{content:e,loggingDirectives:{clientVeSpec:{uiType:51721}}}});c&&_.d("kevlar_manual_downloads_above")&&y.push({richSectionRenderer:{content:c,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(B.length>0||T&&E.length>0)&&y.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.KO(_.yu("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:y}};
_.RcD=function(E){return KLG(E,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.E16=function(E){return KLG(E,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
KLG=function(E,B){var I=[];E=FLd(E,B,!0);I.push({richSectionRenderer:{content:E}});return{contents:I}};
FLd=function(E,B,I,T,e){I=I===void 0?!1:I;E={isExpanded:I,contents:hC(E),entitySelectorType:B};T&&(E.title=T);e&&(E.subtitle=e);I||(_.d("kevlar_smart_downloads_show_more_button")?(E.showMoreButton={buttonRenderer:{accessibility:{label:_.yu("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.KO(_.yu("SHOW_MORE",void 0,"Show more"))}},E.showLessButton={buttonRenderer:{accessibility:{label:_.yu("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.KO(_.yu("SHOW_LESS",void 0,"Show less"))}}):(E.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.yu("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}}}},E.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.yu("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}}}},E.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.yu("VIEW_ALL",void 0,"View all"),accessibilityText:_.yu("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:FD("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:E}};
hC=function(E){var B=[];E=_.p(E);for(var I=E.next();!I.done;I=E.next())if(I=I.value,fMi(I)){var T=B,e=T.push;var c=void 0;if(I==null?0:(c=I.videoEntity)==null?0:c.videoId){c=Sj(_.t2().getState(),I.videoEntity.videoId);var Y=_.t2().getState();var v=_.lm(I.videoEntity.videoId,"mainVideoEntity");Y=!!_.dK(Y.entities)[v];Y={videoId:I.videoEntity.videoId,title:R2(I.videoEntity.title),shortBylineText:R2(I.channelEntity.title),thumbnail:I.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:Y&&_.d("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:fYF(I.videoEntity.videoId,c,I.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.yu("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};I.videoEntity.lengthSeconds&&(Y.thumbnailOverlays=Cfi(I.videoEntity.lengthSeconds,c));Y.isWatched=c>0;_.d("kevlar_modern_downloads_page")&&(Y.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:I.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.yu("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},Y.badges=void 0);I=Y}else I={};e.call(T,{richItemRenderer:{content:{videoRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(tyi(I)){T=B;e=T.push;var y=v=c=void 0,Z=void 0,P=void 0,z=void 0,m=void 0,u=void 0,x=void 0,M=void 0,N=void 0,W=void 0;Y=I.mainPlaylistEntity.playlistId;var U=I==null?void 0:(W=I.mainPlaylistEntity)==null?void 0:(N=W.thumbnailStyleData)==null?void 0:(M=N[0])==null?void 0:(x=M.value)==null?void 0:(u=x.collageThumbnail)==
null?void 0:u.coverThumbnail;if(Y&&U){u=VJG(Y);!_.d("enable_offline_playlist_page")&&(I==null?0:(m=I.mainPlaylistEntity)==null?0:m.videos)&&(m=I==null?void 0:(z=I.mainPlaylistEntity)==null?void 0:(P=z.videos)==null?void 0:P[0],P=_.IY(m).entityId,P=JSON.parse(P).videoId,P!==void 0&&(z=Sj(_.t2().getState(),P),u=_.DB(P,Y,void 0,void 0,z)));P=[];if(I==null?0:(Z=I.mainPlaylistEntity)==null?0:(y=Z.videos)==null?0:y.length)P=[VpB(),Object.assign({},(v=f_c(I==null?void 0:I.mainPlaylistEntity.videos.length))!=
null?v:{})];I={playlistId:Y,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:U}},navigationEndpoint:u,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:P,title:R2(I.mainPlaylistEntity.title),shortBylineText:R2(I==null?void 0:(c=I.channelEntity)==null?void 0:c.title),badges:[{metadataBadgeRenderer:{label:_.yu("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.d("kevlar_modern_downloads_page")&&(I.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:BLG,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.yu("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},I.badges=void 0)}else I=void 0;e.call(T,{richItemRenderer:{content:{playlistRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return B};
q2B=function(E,B,I){E=E?$Fi(E):"";B!==void 0&&isFinite(B)?B===0?B=_.yu("UPDATING",void 0,"Updating..."):(B=yo4(new Date(B),new Date),B=_.yu("UPDATED_TIME",{relative_time:B},"Updated "+B)):B="";var T="";E&&B&&(T=" \u2022 ");if(I&&_.d("kevlar_display_downloads_numbers")){I=_.CO("VIDEO_COUNT",I);if(E||B)T=" \u2022 ";return I+T+E+T+B}return E+T+B};
InB=function(E){return XOf(E.entities).length};
_.TLc=function(E,B){var I=iWQ(E.responsiveSize),T;E=!((T=E.responsiveMap)==null||!T.some(function(e){return e.containerSize==="CONTAINER_SIZE_NARROW"&&e.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:B,sizing:I,enableFullBleedForSingleCol:!1,isCompactList:I==="COMPACT"&&E}};
ev4=function(E,B){return _.cP(E.entities,"votingEntity",B)};
ln4=function(E){if(E){var B;return((B=_.Q().resolve(_.Fx(_.ME)))==null?0:B())?E.darkTheme:E.lightTheme}};
cjc=function(E,B,I){return _.w(_.VS,null,QIQ(I,[[0,function(){return _.w("h2",{class:B},E)}],
[1,function(){return _.w("h3",{class:B},E)}],
[2,function(){return _.w("h4",{class:B},E)}]],function(){return _.w("h2",{class:B},E)}))};
iQi=function(E){var B=["shelf-header-layout-wiz"];E.disableHorizontalPadding&&B.push("shelf-header-layout-wiz--disable-horizontal-padding");E.disableVerticalPadding&&B.push("shelf-header-layout-wiz--disable-vertical-padding");E.useResponsiveLayout&&(B.push("shelf-header-layout-wiz--responsive"),E.forceSmallLayout&&B.push("shelf-header-layout-wiz--narrow"));E.isOverlay&&B.push("shelf-header-layout-wiz--is-overlay");E.onClick&&B.push("shelf-header-layout-wiz--tappable");var I=["shelf-header-layout-wiz__title"];
E.forceSmallLayout&&I.push("shelf-header-layout-wiz__title--small-title");var T=["shelf-header-layout-wiz__leading-image"];E.circularImage&&T.push("shelf-header-layout-wiz__leading-image--circular-image");var e=_.TI(function(c){var Y;(Y=E.onClick)==null||Y.call(E,c)});
return _.w("yt-shelf-header-layout",{class:B.join(" "),"on:click":e,tabindex:E.onClick?0:void 0},E.leadingIcon?_.w("div",{class:"shelf-header-layout-wiz__leading-icon"},_.w(_.i0,{icon:E.leadingIcon})):E.leadingImage?_.w("div",{class:T.join(" ")},E.leadingImage()):_.w(_.VS,null),_.w("div",{class:"shelf-header-layout-wiz__label-container"},E.superlabel?_.w("div",{class:"shelf-header-layout-wiz__superlabel"},E.superlabel()):_.w(_.VS,null),_.w("div",{class:"shelf-header-layout-wiz__title-row"},cjc(E.title(),
I.join(" "),E.tagLevel),_.AV(E.detail,function(){return _.w("div",{class:"shelf-header-layout-wiz__detail"},E.detail())})),E.sublabel?_.w("div",{class:"shelf-header-layout-wiz__sublabel"},E.sublabel()):_.w(_.VS,null)),E.trailingActions?_.w("div",{class:"shelf-header-layout-wiz__trailing-actions"},E.trailingActions()):_.w(_.VS,null))};
pat=function(E){var B=_.h(E==null?void 0:E.avatar,_.jf),I,T=(I=E==null?void 0:E.image)!=null?I:_.VW(E==null?void 0:E.themedImage);return _.w(_.VS,null,_.AV(T,function(){return _.w(_.Ja,{data:T,alt:"",preserveWidth:!0,preserveHeight:!0})}),_.AV(B,function(){return _.w(_.sj,{data:B})}))};
v1Q=function(E){var B=_.h(E.bottomBadge,YBG),I=B&&E.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.w(_.VS,null,_.AV(B,function(){return B&&_.w(anG,{data:B,class:I})}),_.AV(E.sublabel,function(){return _.w(_.aS,{text:E.sublabel})}))};
yj6=function(E){var B=_.h(E.topBadge,YBG),I=B&&E.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.w(_.VS,null,_.AV(B,function(){return B&&_.w(anG,{data:B,class:I})}),_.AV(E.superlabel,function(){return _.w(_.aS,{text:E.superlabel})}))};
waQ=function(E){var B=E.data;var I=E.disableHorizontalPadding;var T=E.disableVerticalPadding;var e=E.forceSmallLayout;var c=E.useResponsiveLayout;E=E.isOverlay;var Y=B.sublabel||B.bottomBadge,v=B.superlabel||B.topBadge,y=_.WE(B.rendererContext);I={title:function(){return _.w(_.aS,{text:B.headline})},
sublabel:Y&&function(){return v1Q(B)},
superlabel:v&&function(){return yj6(B)},
leadingImage:B.leadingAccessory&&function(){return pat(B.leadingAccessory)},
trailingActions:B.trailingActions&&function(){return _.w(_.VS,null,CRD(B.trailingActions))},
disableHorizontalPadding:I,disableVerticalPadding:T,forceSmallLayout:e,useResponsiveLayout:c,isOverlay:E,onClick:y?function(Z){var P=_.JM(B.rendererContext);P&&_.se(P,{form:{element:Z.target,event:Z}})}:void 0};
T=(T=ln4(B==null?void 0:B.backgroundColor))?"background-color: "+_.hR(T)+";":void 0;return _.w("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:T},_.w(iQi,Object.assign({},I)))};
ZQ4=function(E,B){if(E.simpleText)return Object.assign({},E,{simpleText:Oe(E.simpleText,B)});if(!E.runs)return E;for(var I=Object.assign({},E,{runs:[]}),T=0,e=_.p(E.runs),c=e.next();!c.done;c=e.next())if(c=c.value,c.text)if(T+c.text.length<=B)I.runs.push(c),T+=c.text.length;else return I.runs.push(Object.assign({},c,{text:Oe(c.text,B-T)})),I;return E};
PRf=function(E,B){return _.cP(E.entities,"chipBarStateEntity",B)};
zvi=function(E,B){return _.cP(E.entities,"chipEntity",B)};
QsQ=function(E,B,I,T){return function(){var e=mFJ.has(E.displayType)&&E.selected,c=e&&E.deselectCommand?E.deselectCommand:E.tapCommand;!c||e&&T||_.xg(c,{form:{element:B==null?void 0:B.value}});I==null||I()}};
dF6=function(E){switch(E){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
hvJ=function(E,B){return{triggeringElement:E,onDwellTriggeredFn:function(){var I={triggeringElement:E,loadVideoPreviewEventData:B},T=document.querySelector(".video-preview");T&&T.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:I}))},
onDwellEndFn:function(){var I=document.querySelector(".video-preview");I&&I.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
ssB=function(E,B){var I=_.Q().resolve(_.Fx(k3J)),T=function(){var e=B();return I&&e?hvJ(E.value,e):null};
_.m$(function(){var e=T();I&&e&&Promise.resolve().then(function(){I.registerElement(e)});
_.dt(function(){I&&e&&Promise.resolve().then(function(){I.unregisterElement(e)})})})};
LZf=function(E){var B=E.dataset.resizeObserverId;if(B)return B;B=""+uoG++;return E.dataset.resizeObserverId=B};
xFc=function(E,B){var I=LZf(E);uJ.has(I)||uJ.set(I,new Set);uJ.get(I).add(B);Lf.has(I)&&B(Object.assign({},{target:E},Lf.get(I)))};
GZc=function(E){E=_.p(E);for(var B=E.next();!B.done;B=E.next()){B=B.value;var I=LZf(B.target),T=Object.assign({},{target:B.target},Lf.get(I));if(T!=null&&T.contentRect?T.contentRect.width!==B.contentRect.width||T.contentRect.height!==B.contentRect.height:1)for(Lf.set(I,{borderBoxSize:B.borderBoxSize,contentBoxSize:B.contentBoxSize,contentRect:B.contentRect,devicePixelContentBoxSize:B.devicePixelContentBoxSize}),I=_.p(uJ.get(I)||[]),T=I.next();!T.done;T=I.next())T=T.value,T(B)}};
n1G=function(){return x6?x6:x6=new OQB(GZc)};
Mbd=function(E,B){var I=LZf(E);uJ.has(I)&&(uJ.get(I).delete(B),uJ.get(I).size===0&&(uJ.delete(I),Lf.delete(I),x6.unobserve(E),delete E.dataset.resizeObserverId));uJ.size===0&&x6&&(x6.disconnect(),x6=void 0)};
NL4=function(E,B){var I=_.Q().resolve(fi);return HQc.map(function(T){return I.observe(E,B,T)})};
g1i=function(E){var B=_.Q().resolve(fi);E.forEach(function(I){B.unobserveByKey(I)})};
_.WZt=function(E,B){var I=Object.assign({},SBi,B);B=_.p(OFB());var T=B.next().value,e=B.next().value,c=function(Y){var v=Y.contentRect.height;if((Y=Y.contentRect.width)||v||I.canHaveZeroSize)T.width()===Y&&T.height()===v||e(T,{height:v,width:Y})};
_.uW(function(){var Y=E instanceof HTMLElement?E:E.value,v=Jji(c,I.throttleMs),y=[];I.useVisibilityObserver&&(y=NL4(Y,function(Z,P){requestAnimationFrame(function(){P==="visible"?(xFc(Y,v),n1G().observe(Y)):Mbd(Y,v)})}));
y.length||(xFc(Y,v),n1G().observe(Y));_.dt(function(){y.length&&(g1i(y),y.length=0);Mbd(Y,v)})});
return T};
rj6=function(E){var B=E.data;var I=E.callback;var T=E.enableSingleChipSelection;var e=E.disableChipsScrollAnimation;var c=_.oH(),Y=Gb(!1),v=Gb(0);E={};E=_.p(T8(B.autoselectedChipIndex!=null?(E[B.autoselectedChipIndex]=!0,E):{}));var y=E.next().value,Z=E.next().value,P=function(){var sc=c.value;return sc==null||sc.scrollLeft-1<=0},z=function(){var sc=c.value;
return sc==null?!1:sc.scrollLeft+1>=(sc==null?NaN:sc.scrollWidth)-(sc==null?NaN:sc.clientWidth)};
E=_.p(T8(P()));var m=E.next().value,u=E.next().value;E=_.p(T8(z()));var x=E.next().value,M=E.next().value;E=B.isHorizontallyScrollable;var N=function(sc){c.value!=null&&(_.HA("HTML_DIR")==="rtl"&&(sc=-sc),c.value.scrollBy({left:sc,behavior:e?"instant":"smooth"}))},W=function(){N(-320)},U=function(){N(320)},q=_.TI(function(sc){Y.value=!0;
v.value=sc.clientX}),f=_.TI(function(sc){if(Y.value){sc=sc.clientX;
var Gf=sc-v.value;v.value=sc;c.value.scrollBy({left:-Gf})}}),ed=_.TI(function(){var sc=P(),Gf=z();
sc!==m&&u(sc);Gf!==x&&M(Gf)});
tK("pointerup",function(){Y.value&&(Y.value=!1)});
var K={},p4={};return _.w("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},(B==null?void 0:B.title)&&_.w("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},B.title),_.w("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.AV(B.previousButton!=null,function(){var sc={};return _.w("div",{class:_.B$("ytChipsShelfViewModelLeftArrowContainer",(sc.ytChipsShelfViewModelLeftArrowContainerIsHidden=m,sc))},XaQ(B.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:W}}))}),
_.w("div",{el:c,
"on:pointerdown":q,"on:pointermove":f,"on:scroll":ed,class:_.B$("ytChipsShelfViewModelChipsScrollContainer",(K.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!E,K))},_.w("div",{class:_.B$("ytChipsShelfViewModelChipsContainer",(p4.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!E,p4.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!E&&!1,p4))},(B.contents||[]).map(function(sc,Gf){return _.w("div",{class:"ytChipsShelfViewModelChipWrapper"},XaQ(sc,
{chipViewModel:{callback:function(xi,ki){if(T){var WG={};Z((WG[Gf]=ki,WG))}else WG={},Z(Object.assign({},y,(WG[Gf]=ki,WG)));I==null||I(xi,ki,Gf)},
disableDeselection:T,selected:!!y[Gf]}}))}))),_.AV(B.nextButton!=null,function(){var sc={};
return _.w("div",{class:_.B$("ytChipsShelfViewModelRightArrowContainer",(sc.ytChipsShelfViewModelRightArrowContainerIsHidden=x,sc))},XaQ(B.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:U}}))})))};
bQG=function(){return rtd&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true"};
o16=function(E,B){if(!((B==null?0:B.entitySelectorType)&&(B==null?0:B.entityKey)))return{};switch(B.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return E=_.wIi(E,B.entityKey),E=E==null?void 0:E.value,B=!1,E==="CAPTIONS_UNAVAILABLE"&&(B=!0,E=""),Object.assign({},!!E&&{selectionText:{content:E}},{isSelected:!!E},!!E&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:B});default:return{}}};
jsG=function(E,B,I,T,e){E=B?E.switchOffCommand:E.switchOnCommand;if(T&&e)Ajt(E,I,e);else{var c,Y;(c=_.uu({elementsCommand:E}))==null||(Y=c.onclick)==null||Y.call(c,I)}};
Ajt=function(E,B,I){E=_.uu({elementsCommand:E,additionalCommandArgs:{commandController:{onSuccess:function(){I(!1)},
onServerError:function(){I(!1)}}}});
if(E==null?0:E.onclick)E.onclick(B),I(!0)};
kZ6=function(E){if(E)return _.h(E,UFF)};
tbG=function(E){E=E.selectElementClass;var B={};E=_.B$("checkbox-shape-wiz__checkbox",E,(B["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!E,B));return _.w("div",{class:E,"aria-hidden":"true"},_.w(_.i0,{icon:_.d("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.w(_.i0,{icon:_.d("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))};
fn6=function(E){var B=E.name;var I=E.onChange;var T=E.onClick;var e=E.checked===void 0?!1:E.checked;var c=E.labelRenderable;var Y=E.hasLeadingLabel;var v=E.labelClass;var y=E.isCompact;var Z=E.selectElementClass;var P=E.disableHorizontalPadding;E="checkbox"+_.GN(_.Oj);var z=_.oH(),m=_.TI(function(M){T==null||T(M);return!1}),u=_.TI(function(M){z.value.checked=e;
I==null||I(M);return!1}),x={};
v=_.B$("checkbox-shape-wiz",v,(x["checkbox-shape-wiz--compact"]=!!y,x["checkbox-shape-wiz--disable-horizontal-padding"]=!!P,x));return _.w("checkbox-shape",null,_.w("label",{class:v},_.w("input",{el:z,class:"checkbox-shape-wiz__input",id:E,checked:e,name:B,type:"checkbox","on:change":u,"on:click":m}),_.AV(!Y,function(){return tbG({isLeading:!0,selectElementClass:Z})}),_.AV(c,function(){return _.w("div",{class:"checkbox-shape-wiz__label"},c==null?void 0:c())}),_.AV(Y,function(){return tbG({isLeading:!1,
selectElementClass:Z})})))};
VbF=function(E){var B=E.useCheckIcon===void 0?!1:E.useCheckIcon;var I=E.selectElementClass;E=B?"CHECK":"CIRCLE";var T="",e=_.d("radio_shape_filled_icon_manual_setting_killswitch");e&&(T=B?"CHECK":"CIRCLE_FILLED");var c={};I=_.B$("radio-shape-wiz__radio",I,(c["radio-shape-wiz__radio--check-icon"]=!!B,c["radio-shape-wiz__radio--radio-default-style"]=!I,c));return e?_.w("div",{class:I,"aria-hidden":"true"},_.w(_.i0,{icon:E}),_.w(_.i0,{icon:T,active:!B})):_.w("div",{class:I,"aria-hidden":"true"},_.w(_.i0,
{icon:E}),_.w(_.i0,{icon:E,active:!B}))};
qBD=function(E){function B(){var f;((f=_.Q().resolve(_.Fx(_.ZR)))==null?0:f.isKeyBoardInUse())&&N.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function I(){N.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var T=E.name;var e=E.onChange;var c=E.onClick;var Y=E.checked===void 0?!1:E.checked;var v=E.labelRenderable;var y=E.useCheckIcon;var Z=E.hasLeadingLabel;var P=E.labelClass;var z=E.isCompact;var m=E.selectElementClass;var u=E.ariaLabel;var x=E.className;E=xP(function(){return"radio"+_.GN(_.Oj)});
var M=_.oH(),N=_.oH(),W=_.TI(function(f){M.value.checked=Y;e==null||e(f);return!1}),U=_.TI(function(f){c==null||c(f);
return!1}),q=["radio-shape-wiz"];
x&&q.push(x);x={};P=_.B$("radio-shape-wiz__label-container",P,(x["radio-shape-wiz--compact"]=!!z,x));Q9(function(){document.activeElement===M.value&&B()});
_.uW(function(){var f=M.value;f.addEventListener("focusin",B);f.addEventListener("focusout",I);return function(){f.removeEventListener("focusin",B);f.removeEventListener("focusout",I)}});
return _.w("radio-shape",{class:q.join(" ")},_.w("input",{el:M,class:"radio-shape-wiz__input",id:E,"prop:checked":Y,name:T,type:"radio","on:change":W,"on:click":U,"aria-label":u}),_.w("label",{class:P,for:E,el:N},_.AV(!Z,function(){return VbF({checked:Y,useCheckIcon:y,isLeading:!0,selectElementClass:m})}),_.AV(v,function(){return _.w("div",{class:"radio-shape-wiz__label",
"aria-hidden":u?"true":"false"},v==null?void 0:v())}),_.AV(Z,function(){return VbF({checked:Y,
useCheckIcon:y,isLeading:!1,selectElementClass:m})})))};
FZi=function(E,B){return!!(B&&(E.leadingImage||E.leadingAccessory)||!B&&(E.trailingImage||E.trailingButton||E.trailingButtons||E.selectionText))};
RvG=function(E){var B=E.data;var I=E.isLeading;var T=E.hideSelectionTextChevron;if(FZi(B,I)){var e=_.B$("yt-list-item-view-model-wiz__button-container");E={};var c=_.B$("yt-list-item-view-model-wiz__image-container",(E["yt-list-item-view-model-wiz__leading"]=I,E["yt-list-item-view-model-wiz__trailing"]=!I,E)),Y=I?B.leadingImage:B.trailingImage,v=_.B$("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");E={};var y=_.B$("yt-list-item-view-model-wiz__accessory",(E["yt-list-item-view-model-wiz__leading"]=
I,E["yt-list-item-view-model-wiz__trailing"]=!I,E)),Z=!!B.selectionText,P=DFc(B.listItemIconAfterSelectionText);return function(){var z;return _.w(_.VS,null,_.AV(Y,function(){return _.w("div",{class:c,"aria-hidden":"true"},_.w(_.Ja,{data:Y,alt:"",preserveWidth:!0,preserveHeight:!0,className:v}))}),_.AV(I&&B.leadingAccessory,function(){return _.w("div",{class:c},KZc(B.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:v}}))}),_.AV(!I&&B.trailingButton,function(){return _.w("div",{class:e},
KZc(B.trailingButton,{buttonViewModel:{className:y}}))}),_.AV(!I&&((z=B.trailingButtons)==null?void 0:z.buttons),function(){var m;
return _.w("div",{class:e},KZc((m=B.trailingButtons)==null?void 0:m.buttons,{buttonViewModel:{className:y},accountLinkButtonViewModel:{className:y},switchButtonViewModel:{className:y},subscribeButtonViewModel:{isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:y}}))}),_.AV(!I&&Z,function(){return _.w(_.VS,null,_.w(_.aS,{text:B.selectionText,
className:_.B$("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.AV(!T,function(){return _.w(_.i0,{icon:P,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
DFc=function(E){switch(E){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":return"expand_more";default:return"chevron_right"}};
EKB=function(E){return E.title||E.subtitle?function(){return _.w("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.w("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.AV(E.title,function(){return _.w(_.aS,{text:E.title,className:"yt-list-item-view-model-wiz__title"})})),_.AV(E.subtitle,function(){return _.w(_.aS,{text:E.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.w(_.VS,null)}};
IhQ=function(E){function B(){var ki;((ki=_.Q().resolve(_.Fx(_.ZR)))==null?0:ki.isKeyBoardInUse())&&ed.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function I(){ed.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var T=E.data;var e=E.isMenuItem;var c=E.isCompact;var Y=E.onTap;var v=E.trailingAccessory;var y=E.hideSelectionTextChevron;var Z=E.disabled;var P=E.inPopup;var z=E.disableHorizontalPadding;var m=E.isOverlay;E=dnQ(function(ki){return o16(ki,T)});
var u=_.d("enable_web_shorts_captions_language_command")?Object.assign({},T,E):T;E=!(u.isSelected===void 0||!u.selectionStyle||u.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var x=(_.WE(u.rendererContext)||Y)&&!E,M=_.WE(u.rendererContext)||E;Z=!!u.isDisabled||!!Z;var N={};m=_.B$("yt-list-item-view-model-wiz",(N["yt-list-item-view-model-wiz--is-overlay"]=!!m,N));N={};var W=_.B$("yt-list-item-view-model-wiz__label",(N["yt-list-item-view-model-wiz__container"]=!E,N["yt-list-item-view-model-wiz__container--disabled"]=
Z,N["yt-list-item-view-model-wiz__container--has-subtitle"]=!!u.subtitle,N["yt-list-item-view-model-wiz__container--compact"]=!!c,N["yt-list-item-view-model-wiz__container--tappable"]=x,N["yt-list-item-view-model-wiz__container--in-popup"]=!!P,N));Z={};Z=_.B$("yt-list-item-view-model-wiz__container",(Z["yt-list-item-view-model-wiz__container--tappable"]=M,Z["yt-list-item-view-model-wiz__container--compact"]=!!c,Z["yt-list-item-view-model-wiz__container--in-popup"]=!!P,Z["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!z,Z));N=u.leadingImage||u.leadingAccessory;var U=_.B$("yt-list-item-view-model-wiz__image-container",N?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),q=_.d("apply_button_role_to_list_item");P=_.oH();var f=_.oH(),ed=q?f:P,K=function(){var ki,WG,rJ;return _.w(_.VS,null,(ki=RvG({data:u,isLeading:!0,hideSelectionTextChevron:!!y}))==null?void 0:ki(),(WG=EKB(u))==null?void 0:WG(),v?_.w("div",{class:"yt-list-item-view-model-wiz__trailing"},v()):(rJ=RvG({data:u,isLeading:!1,
hideSelectionTextChevron:!!y}))==null?void 0:rJ())},p4=function(){return q?_.w("div",{class:W,
el:f,role:M||x?"button":void 0,tabindex:Y||x?0:void 0,"on:keydown":xi,"on:click":Gf},K()):_.w("div",{class:W,el:f},K())},sc={labelRenderable:p4,
isCompact:c,checked:u.isSelected,hasLeadingLabel:!!N,labelClass:Z,selectElementClass:U,disableHorizontalPadding:!!z};_.X3(P,u.rendererContext);var Gf=_.TI(function(ki){return void(Y==null?void 0:Y(ki))}),xi=_.gT();
_.uW(function(){x&&(ed.value.addEventListener("focusin",B),ed.value.addEventListener("focusout",I));return function(){ed.value&&x&&(ed.value.removeEventListener("focusin",B),ed.value.removeEventListener("focusout",I))}});
c=_.TI(function(){return!1});
return _.w("yt-list-item-view-model",{el:P,class:m,role:e?"menuitem":"listitem",tabindex:q?void 0:Y||x?0:void 0,"on:keydown":q?c:xi,"on:click":q?c:Gf},_.AV(E,function(){return QIQ(u.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.w(BqJ,Object.assign({},sc))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.w($w6,Object.assign({},sc))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.w($w6,Object.assign({},sc,{useCheckIcon:!0}))}]],function(){return p4()})},function(){return p4()}))};
iwQ=function(E,B,I){if(B)return[TqG];switch(E){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[nf];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return I?[nf]:[eqi,nf];case "TRANSFER_STATE_PAUSED_BY_USER":return[lhJ,nf];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[c3F,nf];default:return[TqG]}};
pQ6=function(E,B,I,T){return iwQ(E,B,T).map(function(e){var c=e.text,Y=e.iconType,v=e.videoAction;e=e.playlistAction;c=c?{content:c}:void 0;Y=Y&&{sources:[{clientResource:{imageName:Y}}]};var y=(0,_.a_.unsafeClone)(I);if(y){var Z=_.h(y,_.ef),P=_.h(y,_.lO);Z&&v?Z.action=v:P&&e&&(P.action=e)}return{title:c,leadingImage:Y,rendererContext:y&&{commandContext:{onTap:{innertubeCommand:y}}}}})};
YPt=function(E){E=_.JM(E.rendererContext);var B;return(B=_.h(E,_.lO))==null?void 0:B.playlistId};
ahi=function(E){var B;return(B=E.listItems)==null?void 0:B.some(function(I){var T;return _.WE((T=_.h(I,_.Ce))==null?void 0:T.rendererContext)})};
y3J=function(E){var B=E.data;var I=E.isCompact;var T=E.hideSelectionTextChevron;var e=E.inPopup;E=E.isOverlay;var c=ahi(B)&&e,Y={};return _.w("yt-list-view-model",{class:_.B$("yt-list-view-model-wiz",(Y["yt-list-view-model-wiz--kaios-spat-nav"]=bQG(),Y)),role:c?"menu":"list"},vKf(B.listItems,{listItemViewModel:{isMenuItem:c,isCompact:I,hideSelectionTextChevron:T,inPopup:e,isOverlay:E},downloadListItemViewModel:{isMenuItem:c,isCompact:I,inPopup:e}}))};
Mo=function(E){var B=_.Q().resolve(_.Fx(_.ME));return B!=null&&B()?E.darkThemeColorPalette:E.lightThemeColorPalette};
No=function(E){return{primaryTextColor:HD(E,0),secondaryTextColor:HD(E,1),optionColor:HD(E,2),backgroundColor:HD(E,3),videoBackgroundColor:HD(E,4)}};
HD=function(E,B){if(E){switch(B){case 0:E=E.primaryTitleColor;break;case 1:E=E.secondaryTitleColor;break;case 2:E=E.surgeColor;break;case 3:E=E.section2Color;break;case 4:E=E.section3Color;break;default:return}if(E)return _.dE(E)}};
C2i=function(E){return E?_.hR(E):""};
wQJ=function(E){return(E==null?void 0:E.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
Zwf=function(E,B){var I;return"linear-gradient(to bottom, "+((I=B==null?void 0:B.map(function(T){var e=E?T.darkThemeColor:T.lightThemeColor;return e?_.hR(e)+" "+((T==null?void 0:T.startLocation)||0)*100+"%":"transparent"}))==null?void 0:I.join(", "))+")"};
P24=function(E){var B=E.className;var I=E.data;var T=E.isOverlay;var e=E.maxLinesOverride;var c=E.useMediumText;E=_.oH();var Y=I.description,v=I.alwaysShowTruncationText,y=I.truncationText,Z=I.maxLines,P,z=!((P=_.h(I.rendererContext,tQD))==null||!P.onTap),m,u,x=(u=(m=_.h(I.rendererContext,_.bO))==null?void 0:m.label)!=null?u:"";P=_.p(T8(!1));var M=P.next().value,N=P.next().value;_.X3(E,I.rendererContext);P=_.TI(function(){I.expandOnTap&&N(!M);return!1});
m={};return _.w("yt-description-preview-view-model",{el:E,class:_.B$("yt-description-preview-view-model-wiz",B,(m["yt-description-preview-view-model-wiz--clickable"]=z,m["yt-description-preview-view-model-wiz--is-overlay"]=T,m)),"on:click":P},_.AV(Y,function(){var W={};return M?_.w("div",{class:_.B$("yt-description-preview-view-model-wiz__description",(W["yt-description-preview-view-model-wiz__description--medium-text"]=c,W))},_.w(_.aS,{text:Y})):_.w(RnD,{text:Y,alwaysShowTruncationText:v,truncationText:y,
maxLines:e!=null?e:Z,isOverlay:T,accessibilityLabel:x,useMediumText:c})}))};
QEc=function(E,B,I,T,e){var c=!E.metadata;var Y=B?_.h(E.heroImage,zqc):_.h(E.animatedImage||E.image,zqc);if(!Y)return{size:0};E=Y.style;var v=Y.layoutMode;Y=LCc(ulB(Y));if(B)B=mwJ(I,E,v,Y,e);else a:if(c)B=I===1?{size:48}:{size:72};else switch(I){case 1:B={size:72};break a;case 2:B={size:120};break a;default:B=T<4?{size:120}:{size:160}}return B};
mwJ=function(E,B,I,T,e){if(!((T==null?0:T.height)&&(T==null?0:T.width)))return{size:0};var c=T.width;T=T.height;if(e)return B==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||B==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&c>T?{size:312/hnd}:B==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(I!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||E!==1&&E!==2||B!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&B!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&B!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(B==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||B==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||T===c)switch(E){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(B==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||T>c)switch(E){case 1:case 3:return{size:240*da4};default:return{size:360*da4}}switch(E){case 1:case 2:return{size:1/hnd*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.dw4=function(E){if(!("matchMedia"in window))return _.Xx(Error("Oh")),function(){return!1};
var B=window.matchMedia(E);E=_.p(_.lQ(B.matches,void 0,"jLJc8e"));var I=E.next().value,T=E.next().value,e=function(c){T(c.matches)};
B.addEventListener?(B.addEventListener("change",e),_.dt(function(){B.removeEventListener("change",e)})):B.addListener&&(B.addListener(e),_.dt(function(){B.removeListener(e)}));
return I};
hqF=function(E){return E==="IMAGE_BANNER_STYLE_INSET"||E==="IMAGE_BANNER_STYLE_UNKNOWN"};
sEG=function(){var E=_.d("web_enable_sink_page_header_view_model"),B=E?_.lQ:T8;if(!("matchMedia"in window))return _.Xx(Error("Oh")),0;var I=xP(function(){return window.matchMedia("(max-width: 527.9px)")}),T=xP(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),e=xP(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),c=xP(function(){return window.matchMedia("(min-width: 1024px)")}),Y=_.p(B(I.matches)),v=Y.next().value,y=Y.next().value;
Y=_.p(B(T.matches));var Z=Y.next().value,P=Y.next().value;Y=_.p(B(e.matches));var z=Y.next().value,m=Y.next().value;B=_.p(B(c.matches));var u=B.next().value,x=B.next().value,M=xP(function(){return function(q){y(q.matches)}}),N=xP(function(){return function(q){P(q.matches)}}),W=xP(function(){return function(q){m(q.matches)}}),U=xP(function(){return function(q){x(q.matches)}});
_.uW(function(){I.addEventListener?(I.addEventListener("change",M),T.addEventListener("change",N),e.addEventListener("change",W),c.addEventListener("change",U)):I.addListener&&(I.addListener(M),T.addListener(N),e.addListener(W),c.addListener(U));var q=function(){I.removeEventListener?(I.removeEventListener("change",M),T.removeEventListener("change",N),e.removeEventListener("change",W),c.removeEventListener("change",U)):I.removeListener&&(I.removeListener(M),T.removeListener(N),e.removeListener(W),
c.removeListener(U))};
if(E)_.dt(q);else return q});
return E?function(){return v()?1:Z()?2:z()?3:u()?4:0}:v?1:Z?2:z?3:u?4:0};
uHt=function(E){var B=0;E=_.p([E.title,E.metadata,E.actions,E.description,E.attribution]);for(var I=E.next();!I.done;I=E.next())I.value&&B++;return B};
xwi=function(E,B,I){var T=E.image,e=_.h(T,LDG),c=e==null?void 0:e.avatar,Y=_.h(c,_.jf);if(T&&c&&Y){switch(B){case 1:Y.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Y.avatarImageSize="AVATAR_SIZE_XXL";break;default:I<4?Y.avatarImageSize="AVATAR_SIZE_XXL":Y.avatarImageSize="AVATAR_SIZE_XXXL"}_.d("web_enable_sink_page_header_view_model")&&(_.PV(c,_.jf,Object.assign({},Y)),e.avatar=Object.assign({},c),_.PV(T,LDG,Object.assign({},e)),E.image=Object.assign({},T))}};
Gri=function(E){return E===1||E===2?1:0};
OwJ=function(E,B){return E?_.w("div",{class:"page-header-view-model-wiz__scroll-container"},B()):B()};
MGQ=function(E){var B=E.data;var I=E.noPadding;var T=E.enableBanner;var e=E.cinematicContainerTopbarOffset;var c=E.allowCinematicContainerOverflow;var Y=E.displayAsSidebar;var v=E.displayAsPanel;E=uHt(B);var y=!!B.heroImage,Z=!!B.image||!!B.animatedImage,P=!!B.background,z=Y||v?1:sEG(),m=z===1,u=z===2,x=m||u,M=z===4,N=QEc(B,y,z,E,Y),W={};I=_.B$((W["page-header-view-model-wiz"]=!0,W["page-header-view-model-wiz--no-padding"]=!!I,W["page-header-view-model-wiz--small-top-padding"]=m&&!B.actions||u&&!(Z||
y),W["page-header-view-model-wiz--small-bottom-padding"]=x&&!B.actions,W["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!c,W["page-header-view-model-wiz--display-as-sidebar"]=Y,W["page-header-view-model-wiz--display-as-panel"]=v,W));c={};var U=_.B$((c["page-header-view-model-wiz__page-header-headline"]=!0,c["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=N.allowFullWidth,c)),q=x&&!N.allowFullWidth;v=(c=m&&(y||Z)&&E>0)&&v;u={};v=(u["page-header-view-model-wiz__page-header-title"]=
!0,u["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!c,u["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=c&&!v,u["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=v,u["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=P,u);c={};c=(c["page-header-view-model-wiz__page-header-headline-image"]=!0,c["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
y&&x,c);var f;u={};var ed=(u["page-header-view-model-wiz__page-header-banner-container"]=T,u["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=T&&((f=_.h(B.banner,_.nKG))==null?void 0:f.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",u);f={};f=(f["page-header-view-model-wiz__page-header-content-metadata"]=!0,f["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=P,f);u={};u=(u["page-header-view-model-wiz__page-header-flexible-actions"]=!0,
u["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=!!B.metadata||x,u["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!x,u);W={};W=(W["page-header-view-model-wiz__page-header-attribution"]=!0,W["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=P,W);var K={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:P,
maxLinesOverride:m?void 0:1,useMediumText:M},dynamicTextViewModel:{className:_.B$(v)},contentPreviewImageViewModel:{className:_.B$(c),imageSizeConfig:N},contentMetadataViewModel:{layout:m?1:0,className:_.B$(f),isOverlay:P,useMediumText:M},flexibleActionsViewModel:{layout:Gri(z),className:_.B$(u)},attributionViewModel:{className:_.B$(W),useMediumText:M},decoratedAvatarViewModel:{className:_.B$(c)},cinematicContainerViewModel:{topbarOffset:e},flexibleContainer:{isOverlay:P}};Z&&xwi(B,z,E);return _.w("yt-page-header-view-model",
{class:I},_.AV(P,function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-background"},gZ(B.background,K))}),OwJ(!!Y,function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-content"},_.AV(T&&(B==null?void 0:B.banner),function(){return _.w("div",{class:_.B$(ed)},gZ(B==null?void 0:B.banner,K))}),_.w("div",{class:U},_.AV(Z,function(){return gZ((B==null?void 0:B.animatedImage)||(B==null?void 0:B.image),K)}),_.AV(y&&!q,function(){return gZ(B==null?void 0:B.heroImage,
K)}),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.AV(y&&q,function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},gZ(B==null?void 0:B.heroImage,K))}),_.AV(B==null?void 0:B.title,function(){return gZ(B==null?void 0:B.title,K)}),_.AV(B.metadata,function(){return gZ(B.metadata,K)}),_.AV(B.description&&!m,function(){return gZ(B.description,K)}),_.AV(B.attribution&&!x,function(){return gZ(B.attribution,K)}),_.AV(B.actions&&
!x,function(){return gZ(B.actions,K)}))),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.AV(B.description&&m,function(){return gZ(B.description,K)}),_.AV(B.attribution&&x,function(){return gZ(B.attribution,K)}),_.AV(B.actions&&x,function(){return gZ(B.actions,K)})),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.AV(B.bottomMetadataFlexibleContainer,function(){return gZ(B.bottomMetadataFlexibleContainer,K)})))}))};
NqB=function(E){var B,I=((B=_.Q().resolve(_.Fx(_.ME)))==null?0:B())&&E.data.darkThemeImage?E.data.darkThemeImage:E.data.image;B=_.w("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.w("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},I?_.w(_.Ja,{data:I,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),Hwf(E.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));I=_.w(_.aS,{text:E.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var T=E.data;if(T.bodyText){var e=[];T=_.p(T.bodyText);for(var c=T.next();!c.done;c=T.next())e.push(_.w(_.aS,{text:c.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else e=_.w(_.VS,null);return _.w("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},B,I,e,Hwf(E.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.w(_.aS,{text:E.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.w(_.aS,{text:E.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
SPt=function(E){E=(new gK4).parse(E);return(new iT).render(E).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(B){var I=B.split(":").map(Number),T=0,e=0;if(I.length===3)I=_.p(I),T=I.next().value,e=I.next().value,I=I.next().value;else if(I.length===2)I=_.p(I),e=I.next().value,I=I.next().value;else if(I.length===1)I=_.p(I).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(T*3600+e*60+I)+'" role="button">'+B+"</span>"})};
J3D=function(E){E=_.p(E.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var B=E.next(),I={};!B.done;I={clickHandler$jscomp$4:void 0},B=E.next()){B=B.value;I.clickHandler$jscomp$4=function(e){e=Number(e.target.getAttribute("data-time"));if(isNaN(e))throw Error("Qh");var c=document.querySelector("video");c&&(c.currentTime=e)};
var T=function(e){return function(c){c.key!=="Enter"&&c.key!=="Space"||(0,e.clickHandler$jscomp$4)(c)}}(I);
B.setAttribute("tabindex","0");B.removeEventListener("click",I.clickHandler$jscomp$4);B.removeEventListener("keydown",T);B.addEventListener("click",I.clickHandler$jscomp$4);B.addEventListener("keydown",T)}};
WDB=function(){return _.w("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.w(S9,{percentWidth:100}),_.w(S9,{animationDelay:200}),_.w(S9,{animationDelay:400}),_.w(S9,{animationDelay:600}),_.w(S9,{animationDelay:800,percentWidth:60}),_.w("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.w(S9,{percentWidth:100}),_.w(S9,{animationDelay:200}),_.w(S9,{animationDelay:400}),_.w(S9,{animationDelay:600,percentWidth:50}))};
S9=function(E){return _.w("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(E.percentWidth===void 0?100:E.percentWidth)+"%"},_.w("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(E.animationDelay===void 0?0:E.animationDelay)+"ms"}))};
XQc=function(){var E=_.p(_.lQ(function(){return""},void 0,"v2wS5e")),B=E.next().value;
return[function(){return B()()},
E.next().value]};
bwB=function(E){E=E===void 0?{}:E;return{title:_.KO(E.localizedOptInBannerTitleText===void 0?"":E.localizedOptInBannerTitleText),titleLength:19,subtitle:_.KO(E.localizedOptInMessage===void 0?"":E.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.KO(_.yu("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:_.KO(_.yu("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:[r3G]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
oKG=function(E,B){E=E?$Fi(E):"";B!==void 0&&isFinite(B)?B===0?B=_.yu("UPDATING",void 0,"Updating..."):(B=yo4(new Date(B),new Date),B=_.yu("UPDATED_TIME",{relative_time:B},"Updated "+B)):B="";var I="";E&&B&&(I=" \u2022 ");return _.KO(E+I+B)};
Uwf=function(E,B,I,T,e,c){B=B===void 0?0:B;var Y=A36[B],v=Y.title,y=Y.iconType,Z=Y.topButtonRenderer,P=Y.sectionClientVE;Y=Y.videoClientVE;var z;if(B!==1||E.length){I=[];E=_.p(E);for(T=E.next();!T.done;T=E.next()){var m=T.value;if(fMi(m))I.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:m.videoEntity.videoId,title:R2(m.videoEntity.title),shortBylineText:R2(m.channelEntity.title),thumbnail:m.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:m.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.yu("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Y}}}}}});else if(tyi(m)){T=I;var u=T.push;var x=void 0,M=void 0,N=void 0,W=void 0,U=void 0,q=void 0,f=void 0,ed=void 0,K=m.mainPlaylistEntity.playlistId,p4=m==null?void 0:(ed=m.mainPlaylistEntity)==null?void 0:(f=ed.thumbnailStyleData)==null?void 0:(q=f[0])==null?void 0:(U=q.value)==null?void 0:(W=U.collageThumbnail)==null?void 0:W.coverThumbnail;W=VJG(K);if(!_.d("enable_offline_playlist_page")&&
(m==null?0:(N=m.mainPlaylistEntity)==null?0:N.videos)){b:{N=m==null?void 0:(M=m.mainPlaylistEntity)==null?void 0:M.videos;M=_.t2().getState().entities;if(N!=null&&N.length&&M)for(N=_.p(N),U=N.next();!U.done;U=N.next())if(U=_.IY(U.value).entityId,(U=JSON.parse(U).videoId)&&ehG(M,U)==="TRANSFER_STATE_COMPLETE"){M=U;break b}M=""}M!==void 0&&(W=Sj(_.t2().getState(),M),W=_.DB(M,K,void 0,void 0,W))}M=FnG(_.yu("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),VJG(K));m=K&&p4&&M?{playlistId:K,navigationEndpoint:W,
viewPlaylistText:M,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:p4}},title:R2(m.mainPlaylistEntity.title),shortBylineText:R2(m==null?void 0:(x=m.channelEntity)==null?void 0:x.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:jE4,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:K,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.yu("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Y}}}:
void 0;u.call(T,{gridPlaylistRenderer:m})}}Y={gridRenderer:{items:I}};B===1&&(z=oKG(e,c))}else if(T){var sc=_.KO((u=I==null?void 0:I.localizedPromptMessage)!=null?u:"");Y={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.KO(_.yu("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.a_6}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.KO(_.yu("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};z=oKG(e,c)}else sc=_.KO(_.yu("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
Y={};return{contents:[{shelfRenderer:{title:v,titleAnnotation:z,icon:{iconType:y},subtitle:sc,content:Y,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:Z}]}}}}],loggingDirectives:{clientVeSpec:{uiType:P}}}};
krG=function(E,B,I,T,e,c,Y,v){I=I===void 0?{}:I;T=T===void 0?!1:T;e=e===void 0?!1:e;c=c===void 0?!1:c;Y=Y===void 0?0:Y;v=v===void 0?-Infinity:v;if(!B.length&&!E.length&&!T)return e?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:VLt(I)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.KO(_.yu("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 y=[];E.length&&y.push(Uwf(E,0));T?y.push(Uwf(B,1,I,c,Y,v)):e&&y.push({contents:[{statementBannerRenderer:bwB(I)}]});(T&&B.length||E.length)&&y.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.KO(_.yu("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 y.map(function(Z){return{itemSectionRenderer:Z}})};
JC=function(E,B){if(typeof E!=="object")return null;E=_.p(Object.entries(E));for(var I=E.next();!I.done;I=E.next()){var T=_.p(I.value);I=T.next().value;T=T.next().value;if(I===B)return I;if(T=JC(T,B))return I+"."+T}return null};
WD=function(E){var B=E.content;return(E=E.styleRuns)&&B?{runs:E.map(function(I){var T={text:B.slice(I.startIndex,I.startIndex+I.length)};I.fontColor&&(T.textColor=I.fontColor);return T})}:{simpleText:B}};
VGF=function(E,B,I,T){var e=tG4;T&&(E.quantity=T);if(!E.quantity||!E.maxQuantity)return{};T=E.minusButton;var c=E.plusButton,Y,v,y,Z;return{value:E.quantity,maxValue:E.maxQuantity,onChangeCallback:function(P){e(E,P)},
minusLabel:(Y=_.h(T,fhG))==null?void 0:Y.label,minimumReachedLabel:(v=_.h(T,fhG))==null?void 0:v.limitReachedLabel,plusLabel:(y=_.h(c,fhG))==null?void 0:y.label,maximumReachedLabel:(Z=_.h(c,fhG))==null?void 0:Z.limitReachedLabel,disabled:B,onRemoveCommand:I}};
tG4=function(E,B){var I=E.quantityIncrementerEntityKey;if(I){var T={};T.quantity=B;_.Jd(_.x4("quantityIncrementerEntity",I,T));E.onChangeCommand&&_.xg(E.onChangeCommand)}};
qPG=function(E){return _.d("kevlar_comments_clone_data_killswitch")?E:_.a_.unsafeClone(E)};
KDi=function(E,B){(E=FDf(E))&&(B?Dwd.push({command:E,sourceData:{},commandContext:void 0}):_.Q().resolve(_.Dt).resolveCommand(E))};
FDf=function(E){return _.h(E,_.dX)};
Rqi=function(){var E=window.performance.timeOrigin+window.performance.now(),B=(new _.Xz).setSeconds(E/1E9);return _.Yy(B,2,_.z7(E%1E9),0)};
rZ=function(E,B){var I=_.h(_.h(E,_.dX),Eu4);I&&(B&&(I.serializedAdditionalMetadata=_.tH(B)),KDi(E,!0))};
B_B=function(E){switch(E){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"}};
$pc=function(){return!!_.HA("ID_TOKEN")};
eN4=function(E){return E instanceof Error&&E.cause instanceof Iof&&E.cause.rpcErrorCode!==void 0?!T_B.includes(E.cause.rpcErrorCode):!0};
c8Q=function(){return _.Ur(lo6,{authuser:""+(_.HA("SESSION_INDEX")||0)})};
bJ=function(E,B,I,T){I=I===void 0?"MINI_APP_SDK_API_UNSPECIFIED":I;T=T===void 0?"":T;var e=new _.P7;I={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:T,sdkApi:I};E instanceof Error&&(e.message=E.message,e.name=E.name,E.cause instanceof Iof&&E.cause.rpcErrorCode!==void 0&&(I.rpcErrorCode=E.cause.rpcErrorCode));var c;(c=B.onError)==null||c.call(B,{loggingError:e,metadata:I})};
pYG=function(E,B,I,T){switch(E){case "MINI_APP_SOURCE_GAMESNACKS":return new o0(B,I,T);default:return new isG(B,I,T)}};
YhG=function(E){switch(E){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"}};
aod=function(E){switch(E){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"}};
vut=function(E){switch(E){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"}};
y8c=function(){return Math.floor(Math.random()*4)+1};
CVG=function(E,B,I,T){E=_.p(Object.entries(E));for(var e=E.next(),c={};!e.done;c={message$jscomp$957:void 0},e=E.next()){var Y=_.p(e.value);e=Y.next().value;Y=Y.next().value;c.message$jscomp$957=Y;B.push(setTimeout(function(v){return function(){T(!1);I(v.message$jscomp$957.text)}}(c),c.message$jscomp$957.delayMs));
Number(e)>0&&B.push(setTimeout(function(){T(!0)},c.message$jscomp$957.delayMs-400))}};
wYG=function(E,B){var I=I===void 0?B$c:I;_.d("mweb_fix_monitor_visibility_after_render")?E&&C8(function(){T$f(E,B,I)}):C8(function(){T$f(E,B,I)})};
mp6=function(E){ZsJ||(ZsJ=PVc(new _.WP(1,void 0,void 0,zNf),0));var B=ZsJ.format(Math.floor(E));B=_.J2==="be"||_.J2==="bg"||_.J2==="es"||_.J2==="et"||_.J2==="hu"||_.J2==="ka"||_.J2==="lv"||_.J2==="pl"||_.J2==="pt-PT"||_.J2==="sq"?B.replace(new RegExp("^(\\d)"+zNf.GROUP_SEP.replace(".","\\.")+"(\\d+("+zNf.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):B;return E>=1E3&&E<=9999&&B[1]==="."&&(_.J2==="sl"||_.J2==="it")?B.replace(".",""):B};
QRt=function(E,B){Zx("ytd-button-renderer",{data:E,className:B?B.className:"",overrides:B==null?void 0:B.buttonOverrides},Jx)};
sRd=function(E,B,I,T){if(E)return T=T||E.likeStatus,B?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:T==="LIKE",isDisabled:!E.likesAllowed,defaultIcon:{iconType:I},defaultText:T==="LIKE"?E.likeCountWithUnlikeText:E.likeCountText,toggledText:T==="LIKE"?E.likeCountText:E.likeCountWithLikeText,defaultNavigationEndpoint:dp6(E,"LIKE"),defaultServiceEndpoint:hN4(E,"LIKE"),toggledServiceEndpoint:hN4(E,"INDIFFERENT"),defaultTooltip:_.U3(E.likeCountTooltipText),toggledTooltip:_.U3(E.likeCountTooltipText),
targetId:E.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:T==="DISLIKE",isDisabled:!E.likesAllowed,defaultIcon:{iconType:I},defaultText:T==="DISLIKE"?E.dislikeCountWithUndislikeText:E.dislikeCountText,toggledText:T==="DISLIKE"?E.dislikeCountText:E.dislikeCountWithDislikeText,defaultNavigationEndpoint:dp6(E,"DISLIKE"),defaultServiceEndpoint:hN4(E,"DISLIKE"),toggledServiceEndpoint:hN4(E,"INDIFFERENT"),defaultTooltip:_.U3(E.dislikeCountTooltipText),
toggledTooltip:_.U3(E.dislikeCountTooltipText)}};
dp6=function(E,B){if(B==="LIKE")return E.likeCommand;if(B==="DISLIKE")return E.dislikeNavigationEndpoint};
hN4=function(E,B){var I;return(I=E.serviceEndpoints)==null?void 0:I.find(function(T){var e;return((e=_.h(T,_.AC))==null?void 0:e.status)===B})};
ur6=function(E,B){B=B===void 0?{}:B;if(E){var I=!!B.activeState,T=B.iconSize,e=B.className,c=B["aria-hidden$"],Y=B["aria-label$"],v=B.role;B=B.style$+";width: "+((B.width||T)+"px;height: ")+((B.height||T)+"px;color: ")+(B.color+";");E={icon:E};I!==void 0&&(E.active=I);T!==void 0&&(E.size=T);B!==void 0&&(E.style=B);e!==void 0&&(E.className=e);c!==void 0&&(E.ariaHidden=c);Y!==void 0&&(E.ariaLabel=Y);v!==void 0&&(E.role=v);Zx("yt-icon",E,Jx)}};
_.GEi=function(E,B,I){return window.spf&&!_.d("web_disable_spfjs_client")?LyD(E,B,I):xpc(E,B)};
LyD=function(E,B,I){var T=null,e=(new _.cC(function(c,Y){var v={};if(B){v.method=B.method;var y=B.postParams||{};rJf(E,B)&&(y[_.HA("XSRF_FIELD_NAME")]=_.HA("XSRF_TOKEN"));v.postData=_.pF(y);B.type&&(v.type=B.type);y=B.headers}v.headers=NlF(E,y);_.d("debug_forward_web_query_parameters")&&(E=_.WSB(E,window.location.search));v.experimental_headers=v.headers;v.onError=function(Z){Z.err&&Z.xhr&&(Z.err.params={url:Z.xhr.responseURL,response:Z.xhr.responseText.substr(0,64)});Y(Z.err)};
v.onPartDone=function(Z){I&&I.call(null,Z.part)};
v.onDone=function(Z){var P=OsD(Z.response,"xsrf_token");fc(window.location.href,E)&&P&&_.MD("XSRF_TOKEN",P);if(P=OsD(Z.response,"service_worker_killswitch"))_.MD("SERVICE_WORKER_KILLSWITCH",P),OzD();c(Z.response)};
T=spf.request(E,v)})).then(nui);
e.thenCatch(function(c){var Y=c instanceof _.X$,v=c&&c.hasOwnProperty("params")&&c.params.response?c.params.response:"";c instanceof Error&&(v?Y?xEc(c):v===')]}\'\n{"reload":"now"}'?xEc(c):(MAt(c,E,v),HsF(c,v)?_.OG(c):_.xV(c)):xEc(c));T&&T.abort()});
return e};
nui=function(E){if(E.type==="multipart"){var B=E.timing;E=E.parts.reduce(function(I,T){Object.assign(I,T);return I},{});
E.timing=E.timing||{};Object.assign(E.timing,B);E.type="reduced"}return E};
xpc=function(E,B){B=B===void 0?{}:B;var I=null,T=new _.cC(function(e,c){B.onFinish=function(Y){if(Y.readyState===XMLHttpRequest.DONE)if(Y.status===200){if(Y.responseType!=="json"){var v=Y.response;v.substring(0,5)===")]}'\n"&&(v=v.substring(5));try{var y=JSON.parse(v)}catch(Z){y=Z}}else y=Y.response;y instanceof Error?c(y):(v=OsD(y,"xsrf_token"),fc(window.location.href,E)&&v&&_.MD("XSRF_TOKEN",v),Y=Y.responseURL,window.performance&&window.performance.getEntriesByName?(v=window.performance.getEntriesByName(Y).pop())?
Y={responseStart:(0,_.VZ)()-(v.responseEnd-v.responseStart)}:(Math.random()<.01&&(v=Error("bi"),v.params=Y,_.OG(v)),Y={responseStart:-1}):Y={responseStart:0},y.timing=y.timing||{},Object.assign(y.timing,Y),e(y))}else c(Error("ai`"+Y.status))};
(I=_.iK(E,B))||c(Error("ai`"+I.status))});
T.thenCatch(function(e){e instanceof Error&&(MAt(e,E),HsF(e)&&(e.level="WARNING"))});
_.d("cancel_pending_navs")&&T.thenCatch(function(){I.abort()});
return T};
OsD=function(E,B){var I=E[B],T=E.parts;E.type==="multipart"&&T&&(I=(E=T.find(function(e){return B in e}))&&E[B]);
return I};
MAt=function(E,B,I){var T=E.message||"";B={original:T,url:B};if(I)if(T=T.match(/position:?\s*(\d+)/)){T=T&&Number(T[1])?Number(T[1]):0;var e=Math.max(T-25,0);B.position=T;B.response=I.substring(e,T+25)}else B.response=I.substring(0,50);_.ni(E,B);try{E.message="JSON parse error"}catch(c){}};
HsF=function(E,B){E=E.message||"";E=!!(E.indexOf("<")>=0||E.indexOf("end of ")>=0||E.indexOf("Unterminated string")>=0||E.indexOf("Unexpected EOF"));if(!E&&B)for(var I=B.length,T=!1,e=0;e<I;e++)if(T&&B[e]==="\\")e++;else if(B[e]==='"')T=!T;else if(B[e]==="<"&&!T){E=!0;break}return E};
N_F=function(){return document.documentElement.hasAttribute("dark")};
_.guB=function(E,B){if(E!=="GFEEDBACK"&&E!=="GUIDED_HELP")_.SI(Error("ci`"+E));else{var I=_.Q().resolve(_.Fx(_.oS));if(I&&(I=I.getCurrentPage())&&I.getServiceTrackingParams&&(I=I.getServiceTrackingParams()))for(var T=0,e;e=I[T++];)if(e.service===E){if(E=e.params)for(I=0;T=E[I++];)B[T.key]=T.value;break}}};
_.Shd=function(E){var B=_.jx();B&&(B=B.getPlayer())&&(B.pauseVideo(),E.playback_id=B.getVideoData().cpn,E.eid=B.getVideoData().eventId,Object.assign(E,B.getFeedbackProductData()))};
J86=function(){var E={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.HA("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(E.enableAnonymousFeedback=!0);_.HA("SESSION_INDEX")&&(E.authuser=String(_.HA("SESSION_INDEX")));_.d("enable_pageid_for_feedback")&&_.HA("DELEGATED_SESSION_ID")&&(E.pageId=String(_.HA("DELEGATED_SESSION_ID")));return E};
_.j9=function(E){_.d("enable_ypc_spinners")&&_.I2(E,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},E])};
_.Uj=function(E){_.d("enable_ypc_spinners")&&_.I2(E,"yt-close-popup-action",["yt-loading-renderer"])};
Wy6=function(E){return new Promise(function(B,I){_.se({verifyCommand:{recaptchaToken:E.recaptchaResponse}},{commandController:{onSuccess:function(T,e){e||I("ChallengeService did not return a response.");var c;B({challengeCompleted:(c=e.verified)!=null?c:!1})},
onServerError:function(T,e){I(e)}}})})};
XYF=function(E,B,I,T){B({recaptchaResponse:T}).then(function(e){e.challengeCompleted?_.CF()?(I(3),_.Q().resolve(_.Dt).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:E}})):I(2):I(4)},function(){I(4)})};
r84=function(E,B,I){_.Sc("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.HA("HL"),function(){var T;(T=window.grecaptcha)==null||T.ready(function(){var e=window.grecaptcha;e?(I(e.render(E,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:XYF.bind(null,E,Wy6,B)})),B(1)):B(4)})})};
bs4=function(E,B){return function(){switch(B()){case 0:return E().captchaLoadingMessage;case 1:return E().challengeReason;case 3:return E().captchaSuccessfulMessage;case 2:return E().captchaCookieSetFailureMessage;case 4:return E().captchaFailedMessage;default:return E().challengeReason}}()};
_.k6=function(){if(!oui){var E=document.querySelector("#player.skeleton");E&&(_.ii(E),oui=!0)}};
_.jRG=function(){return A8d=OM6()};
tAB=function(){return _.a(function(E){return UpG!==void 0?E.return():_.C(E,kED(),0)})};
kED=function(){return _.a(function(E){if(E.nextAddress==1)return _.C(E,M74(),2);A8d=E.yieldResult;UpG=_.Ll.addLowPriorityJob(kED,5E3);_.ER(E)})};
KyJ=function(E){var B=B===void 0?foD:B;var I,T,e=(I=E.responseContext)==null?void 0:(T=I.mainAppWebResponseContext)==null?void 0:T.trackingParam;if(!e){B.increment("MISSING");var c,Y,v,y,Z,P;_.OG(new _.P7("282054944_a",{rg8:!!((c=E.responseContext)==null?0:(Y=c.mainAppWebResponseContext)==null?0:Y.loggedOut),dIo:((v=E.responseContext)==null?void 0:v.mainAppWebResponseContext)===void 0,yOj:E.responseContext===void 0,j0o:(y=E.playabilityStatus)==null?void 0:y.contextParams,cQn:(((Z=E.streamingData)==
null?void 0:Z.formats)||[]).length>0,rQ8:(((P=E.streamingData)==null?void 0:P.adaptiveFormats)||[]).length>0,os:!!E.offlineState,cotn:E.cotn}));return 2}I="";try{I=VAQ(e)}catch(u){return B.increment("C_ERROR"),_.xV(u),2}try{var z=_.qhQ(I);var m=FyF(z)}catch(u){return B.increment("P_ERROR"),_.xV(u),2}m=_.jC(m,Dpf,1,_.Ux());e=[];m=_.p(m);for(z=m.next();!z.done;z=m.next())T=z.value,z=T.getPath(),I=(0,_.a_.getValueByKeys)(E,z.split(".")),I=String(I===void 0||I===null?"":I),T=T.getValue()||"",c=/[+\-\/_]/g,
I.replace(c,"")!==T.replace(c,"")&&(B.increment("MISMATCH"),_.d("ab_mis_log_err")&&(I=new _.P7("282054944_p",{xdn:z,g:String(I),e:String(T)}),_.xV(I)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(z)||(z.match(/enforcementMessageViewModel/i)?e.push(3):e.push(2)));if(e.length>0)return Math.max.apply(Math,_.ad(e));B.increment("SUCCESS");return 1};
BNf=function(E){var B=new tC;if(E.interpreterJavascript){var I=_.CmG(E.interpreterJavascript);I=G1(I).toString();var T=new RNf;_.$r(T,6,I);_.fX(B,1,T,Xu)}else E.interpreterUrl&&(I=_.xv(E.interpreterUrl),I=_.Ef(I).toString(),T=new _.E$t,_.$r(T,4,I),_.fX(B,2,T,Xu));E.interpreterHash&&_.Fz(B,3,E.interpreterHash,Xu);E.program&&_.Fz(B,4,E.program,Xu);E.globalName&&_.Fz(B,5,E.globalName,Xu);E.clientExperimentsStateBlob&&_.Fz(B,7,E.clientExperimentsStateBlob,Xu);return B};
Du=function(E){var B={};E=_.p(E.split("&"));for(var I=E.next();!I.done;I=E.next())I=I.value.split("="),I.length===2&&(B[I[0]]=I[1]);return B};
$Zt=function(E){return Number(E.t)||7200};
n9c=function(){if(_.d("bg_st_hr"))return"havuokmhhs-0";var E,B=((E=performance)==null?void 0:E.timeOrigin)||0;return"havuokmhhs-"+Math.floor(B)};
Iwc=function(){return new Promise(function(E){var B=window.top;B.ntpevasrs!==void 0?E(new Kf(B.ntpevasrs)):(B.ntpqfbel===void 0&&(B.ntpqfbel=[]),B.ntpqfbel.push(function(I){E(new Kf(I))}))})};
TNB=function(E){var B=E.guy.bind(E);_.ka("yt.aba.att",B);E=E.rpC.bind(E);_.ka("yt.aba.att2",E)};
lwG=function(E){switch(_.c7(E.input)){case _.f9(eYG):var B={};return B.encryptedVideoId=E.innerTubeRequest.externalVideoId,B}return{}};
i5F=function(E){switch(_.c7(E.input)){case _.f9(eYG):if(_.d("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.f9(R0):if(_.d("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&E.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.f9(c0f):var B,I;if(_.d("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((I=_.h((B=E.config)==null?void 0:B.command,
b6G))==null?0:I.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.YVQ=function(E){var B;if(E.playlistVideoRenderer&&((B=E.playlistVideoRenderer)==null?0:B.engagementBar))return poG(E.playlistVideoRenderer.engagementBar);if(_.h(E,Eg)){var I;if(E=(I=_.h(E,Eg))==null?void 0:I.engagementBar)return poG(E)}return""};
poG=function(E){if(!E)return"";E=_.h(E,_.awQ);if(E==null||!E.actions)return"";E=_.p(E.actions);for(E=E.next();!E.done;E=E.next()){E=_.h(E.value,_.v$F);var B=void 0;if((B=E)==null||!B.itemId)break;return E.itemId}return""};
_.y0F=function(E){var B;if(E.playlistVideoRenderer&&((B=E.playlistVideoRenderer)==null?0:B.videoId))return E.playlistVideoRenderer.videoId;if(_.h(E,Eg)){var I,T;if(E=(I=_.h(E,Eg))==null?void 0:(T=I.playlistItemData)==null?void 0:T.videoId)return E}return""};
_.C5J=function(E){var B;if(E.playlistVideoRenderer&&((B=E.playlistVideoRenderer)==null?0:B.voteCount))return E.playlistVideoRenderer.voteCount;if(_.h(E,Eg)){var I,T;if(E=(I=_.h(E,Eg))==null?void 0:(T=I.playlistItemData)==null?void 0:T.voteCount)return E}return 0};
_.B3=function(E,B){return _.cP(E.entities,"flowStateEntity",B)};
Z5B=function(E,B,I,T){var e=void 0;E=_.p(E[B.iconName]||[]);for(var c=E.next();!c.done;c=E.next()){c=c.value;var Y=B.iconSize;var v=B.iconStyle;Y=!Y||Y===c[2];var y=woJ[c[0]];T&&T!==c[1]||!Y||v&&v!==y?v=!1:e?(v=woJ[c[0]],v=!!B.iconStyle||v==="youtube_outline",Y=e.version<=c[1],v=(!!B.iconSize||c[2]===24)&&v&&Y):v=!0;v&&(e={name:B.iconName,style:woJ[c[0]],size:c[2],version:c[1],allowMirroring:!!c[3],url:I(B.iconName,c)})}return e};
P5c=function(E,B,I,T){return E+(""+woJ[I[0]]+((T===void 0?0:T)?"_experimental":"")+"/"+B+"/v"+I[1]+"/")+(I[2]+"px.svg")};
$m=function(E){return _.d("web_bookmark_playlist_save_icon")?"bookmark":E};
zYD=function(E,B){return P5c("https://fonts.gstatic.com/s/i/",E,B)};
mZf=function(E,B){return P5c("https://fonts.gstatic.com/s/i/",E,B,!0)};
Q1c=function(E,B){return P5c("https://www.gstatic.com/youtube/img/icons/web/",E,B)};
dZi=function(E){var B=E.enabled;var I=E.itemPlaybackModel;var T=E.thumbnailElRef;var e=E.containerElRef;var c=E.options;var Y;_.m$(function(){var v=e==null?void 0:e.value;var y,Z=(y=T())==null?void 0:y.value;y=I();var P=c();if(B&&y&&v&&Z&&(P==null?0:P.thumbnail)){var z,m;v={mediaRenderer:{data:y,hostElement:v},lockupElement:v,thumbnailElement:Z,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.ha((z=y.inlinePlayerData)==null?void 0:z.onVisible),navigationEndpoint:_.ha((m=y.inlinePlayerData)==
null?void 0:m.onSelect),thumbnail:P.thumbnail,thumbnailOverlays:P.thumbnailOverlays||[],accessibilityText:P.accessibilityText||""},thumbnailSize:P.thumbnailSize,enableRounding:P.enableRounding}}}else v=void 0;if(z=v){var u;(u=Y)==null||BD(u);Y=UO(z)}});
_.dt(function(){var v;(v=Y)==null||BD(v)})};
hYG=function(E){E=atob(E);for(var B=[],I=0;I<E.length;I++)B.push(E.charCodeAt(I));return new Blob([new Uint8Array(B)],{type:"image/png"})};
ujc=function(E,B,I,T){T=T===void 0?"INSERTION_POSITION_UNSPECIFIED":T;return E({targetId:B},function(e){var c,Y=(c=e.contents)!=null?c:[];c=I!=null?I:[];var v=s1J(Y);switch(T){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},e,{contents:[].concat(_.ad(Y.slice(0,v)),_.ad(c),_.ad(Y.slice(v+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},e,{contents:[].concat(_.ad(c),_.ad(Y))});case "INSERTION_POSITION_LAST":return Object.assign({},e,{contents:[].concat(_.ad(Y),_.ad(c))});
default:return e}})};
xZ6=function(E,B,I,T,e){e=e===void 0?"RELATIVE_INSERTION_POSITION_AFTER":e;return E({targetId:B},function(c){var Y,v=(Y=c.contents)!=null?Y:[];Y=LkB(v,I);if(Y<0)return c;Y=e==="RELATIVE_INSERTION_POSITION_BEFORE"?Y:Y+1;return Object.assign({},c,{contents:[].concat(_.ad(v.slice(0,Y)),_.ad(T),_.ad(v.slice(Y)))})})};
s1J=function(E){var B=E.findIndex(function(I){return _.h(I,_.IP)});
return B>=0?B:E.length};
LkB=function(E,B){return E.map(function(I){return _.h(I,_.GWf)}).findIndex(function(I){return(I==null?void 0:I.targetId)===B})};
n$t=function(E,B,I){return E({targetId:B},function(T){var e,c=(e=T.contents)!=null?e:[];return Object.assign({},T,{contents:O54(c,I)})})};
O54=function(E,B){return E.filter(function(I){var T=B.includes;a:{I=_.p(Object.values(I));for(var e=I.next();!e.done;e=I.next())if((e=e.value)&&e.targetId){I=e.targetId;break a}I=""}return!T.call(B,I||"")})};
_.TX=function(E,B){return{engagementPanelSectionListRenderer:{panelIdentifier:E,identifier:B,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
MhB=function(E){return E.getOption("captions","tracklist",{includeAsr:!0})};
H5c=function(E){var B=MhB(E);if(B==null?0:B.length)return B;E.loadModule("captions");return MhB(E)};
NNc=function(E,B,I){if(E.getVideoData){var T,e=(T=H5c(E))==null?void 0:T.find(function(c){return c.languageCode===I});
T=_.lm("/youtube/app/player_caption_language_entity_key","stringEntity",2);B.dispatch(_.aL("stringEntity",T,{key:T,value:(e==null?void 0:e.displayName)||""}));e?E.setOption("captions","track",e):(E.setOption("captions","stickyLoading",{}),E.setOption("captions","track",{}))}};
g$Q=function(E){return E.getOption("captions","tracklist",{includeAsr:!0})};
SVi=function(E){return E.getOption("captions","tracklist",{includeAsr:!0})};
J0B=function(E){var B=SVi(E);if(B==null?0:B.length)return B;E.loadModule("captions");return SVi(E)};
Wk4=function(E){var B=E.getOption("captions","track");if(B)return B;E.loadModule("captions");return E.getOption("captions","track")};
Xof=function(E){var B=J0B(E);if(B!=null&&B.length){var I=Wk4(E);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.yu("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(I==null?0:I.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.ad(B.map(function(T){return{listItemViewModel:{title:{content:T.displayName},
isSelected:T.languageCode===(I==null?void 0:I.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:T.languageCode}}]}}}}}}}})))}}}}}}}}};
A06=function(E){return new Promise(function(B,I){if(E===void 0)_.xV(Error("Di"),"ERROR"),I(Error("Di"));else{I=new _.r0i;var T=_.b54();I=I.init();var e=_.o$d(_.HA("YPC_MB_URL"),!0);Promise.all([I,e]).then(function(){var c=payments.business.integration.ClientTokenFactory.createClientToken(E,T);B(c)})}})};
kWi=function(E,B,I,T,e,c,Y){var v=_.gA();I=I.replace(/-/g,"+").replace(/_/g,"/");var y=_.ZB().get("hl"),Z=_.eD(_.JR),P=B==null?void 0:B.element;P&&_.j9(P);j1D(B,!0);_.UZB(Z,I,v.resolve,function(){P&&_.Uj(P)},function(z){P&&_.Uj(P);
v.reject(z)},y,T?function(z){T&&_.NN(E,T,{backend_analytics:z})}:void 0,v.resolve,e,c,Y);
return v.promise};
j1D=function(E,B){!(E=E==null?void 0:E.element)||E.tagName!=="YT-BUTTON-RENDERER"&&E.tagName!=="YTD-BUTTON-RENDERER"||(E.disabled=B)};
tht=function(){var E=_.yu("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.KO(E),actionButton:{buttonRenderer:k$f()}}},popupType:"TOAST"}};
fw6=function(){var E=_.yu("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.KO(E),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
Vhd=function(E){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:E}]}}};
lb=function(E,B,I,T){var e;return _.a(function(c){if(c.nextAddress==1)return _.q7(c,2),_.C(c,E,4);if(c.nextAddress!=2)return(e=_.zP(B.getState().entities).length>0)?c.return({title:_.KO(_.yu("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.KO(_.yu("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:U5G()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
c.return(tLc(I,T));_.RG(c);return c.return(tLc(I,T))})};
qVG=function(E,B){return B?B==="PPSV"||rci(E,B):!1};
Fk6=function(E){E.responseContext||(E.responseContext={});E.responseContext.maxAgeSeconds=0;return E};
ib=function(E){var B;return _.a(function(I){return I.nextAddress==1?_.C(I,DZB(E,"service:topbar:fallback"),2):(B=I.yieldResult)&&_.c3(B)?I.return(Fk6(_.c3(B))):I.return()})};
KkD=function(E){var B;return _.a(function(I){return I.nextAddress==1?_.C(I,DZB(E,"service:downloads_settings:fallback"),2):(B=I.yieldResult)&&_.c3(B)?I.return(B):I.return()})};
DZB=function(E,B){var I;return _.a(function(T){if(T.nextAddress==1)return E?_.C(T,E.get(B),2):T.return();I=T.yieldResult;return!I||!_.c3(I)||!isNaN(Number(I.data.expireTimestampMs))&&I.isExpired()?T.return():T.return(I)})};
RYc=function(E){var B=_.Q().resolve(pJ).getState().entities;return E.playlistId?qVG(B,E.playlistId):!1};
EAB=function(E,B){var I;if(B==null?0:(I=B.requestTemplate)==null?0:I.panelId)E.panelId=B.requestTemplate.panelId;var T;if(B==null?0:(T=B.requestTemplate)==null?0:T.params)E.params=B.requestTemplate.params};
$bG=function(){if(BbF)return BbF();var E=!_.d("idb_response_store_auth_killswitch"),B={};BbF=fF("yt-it-response-store",{objectStores:(B.ResponseStore={addedAtVersion:1},B),shared:!E,upgrade:function(I,T){T(1)&&(I=N3(I,"ResponseStore",{keyPath:["key","clientName"]}),g7(I,"byExpiration","expireTimestampMs"),g7(I,"byInterface","clientName"))},
version:1});return BbF()};
ICF=function(E){return _.r0($bG(),E)};
eXG=function(E,B){var I;return _.a(function(T){return T.nextAddress==1?_.C(T,_.tg(),2):(I=T.yieldResult)?T.return(new TbG(E,B,I)):T.return()})};
lCd=function(E){var B=Object.keys(E)[0];if(B)return E.screenExit&&(B=B+";"+E.screenExit.screen),B};
c_G=function(E){var B=new Map;E=_.p(E);for(var I=E.next();!I.done;I=E.next())I=I.value,I!=null&&(B.has(I.taskType)||B.set(I.taskType,[]),B.get(I.taskType).push(I));return B};
iyG=function(E){return!isNaN(E)&&E>0};
p26=function(E){E=[].concat(_.ad(E)).sort(function(I,T){return I-T});
var B=Math.floor(E.length/2);return E.length%2?E[B]:(E[B-1]+E[B])/2};
vA6=function(E,B){_.ka("yt.logging.errors.log",_.xV);pVt();Yad(Z8i(),B);window.onerror=E;aC6=YeD;window.addEventListener("unhandledrejection",function(I){if(I.reason instanceof Error){var T=I.reason;_.ni(T,{source:"unhandledrejection"});T.name==="AbortError"&&(T.level="WARNING")}YeD(I.reason);I.preventDefault()})};
_.y_J=function(E){return E.a11y.ephemeralAction||null};
_.C3J=function(E){var B,I,T,e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q,f,ed,K,p4,sc,Gf,xi,ki,WG,rJ,Uc,CV,Bm,LV,I$,bc,hz,TU,Wm,z2,cG;return _.a(function($I){if($I.nextAddress==1)return _.C($I,_.yF(E,{mode:"readonly",enableRetries:!0},function(tz){return C9(tz,"playbackData").then(function(pX){var OZ=pX.map(function(jd){return jd.transfer}).filter(function(jd){return!!jd}),kl=pX.map(function(jd){return jd.offlineVideoPolicy}).filter(function(jd){return!!jd}),Qd=pX.filter(function(jd){return!!jd.key}).map(function(jd){return _.lm(_.IY(jd.key).entityId,
"downloadStatusEntity")});
OZ=C9(tz,"transfer",OZ);kl=C9(tz,"offlineVideoPolicy",kl);Qd=C9(tz,"downloadStatusEntity",Qd);var Yl=OZ.then(function(jd){jd=jd.reduce(function(wr,et){(et==null?0:et.offlineVideoStreams)&&wr.push.apply(wr,_.ad(et.offlineVideoStreams));return wr},[]).filter(function(wr){return!!wr});
return C9(tz,"offlineVideoStreams",jd)});
return N_.all([OZ,kl,Yl,Qd]).then(function(jd){var wr=_.p(jd);jd=wr.next().value;var et=wr.next().value;var Qh=wr.next().value;wr=wr.next().value;return[pX,jd,et,Qh,wr]})})}),2);
if($I.nextAddress!=3)return B=$I.yieldResult,_.C($I,_.yF(E,{mode:"readonly",enableRetries:!0},function(tz){return C9(tz,"mainDownloadsListEntity").then(function(pX){var OZ,kl;return(kl=(OZ=pX[0])==null?void 0:OZ.downloads)!=null?kl:[]})}),3);
I=$I.yieldResult;T=_.p(B);e=T.next().value;c=T.next().value;Y=T.next().value;v=T.next().value;y=T.next().value;Z=e;P=c;z=Y;m=v;u=y;x={};M={};N={};W={};U={};q=[];f=_.p(P);for(ed=f.next();!ed.done;ed=f.next())(K=ed.value)&&(x[K.key]=K);p4=_.p(z);for(sc=p4.next();!sc.done;sc=p4.next())(Gf=sc.value)&&(M[Gf.key]=Gf);xi=_.p(u);for(ki=xi.next();!ki.done;ki=xi.next())(WG=ki.value)&&(N[WG.key]=WG);rJ=_.p(m);for(Uc=rJ.next();!Uc.done;Uc=rJ.next())(CV=Uc.value)&&(W[CV.key]=CV);Bm=_.p(I);for(LV=Bm.next();!LV.done;LV=
Bm.next())I$=LV.value,bc=void 0,U[(bc=I$.videoItem)!=null?bc:""]=!0,I$.videoItem&&(TU=hz=void 0,Wm=(TU=(hz=_.IY(I$.videoItem))==null?void 0:hz.entityId)!=null?TU:"",q.push({externalVideoId:Wm}));z2=Z.filter(function(tz){if(!tz||!tz.key||!tz.offlineVideoPolicy)return!1;tz=_.IY(tz.key).entityId;tz=_.lm(tz,"downloadStatusEntity");var pX;return!(tz&&((pX=N[tz])==null?void 0:pX.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
cG=z2.map(function(tz){var pX=x[tz.transfer],OZ=[];if(pX==null?0:pX.offlineVideoStreams)for(var kl=_.p(pX.offlineVideoStreams),Qd=kl.next();!Qd.done;Qd=kl.next())(Qd=W[Qd.value])&&OZ.push(Qd);kl=M[tz.offlineVideoPolicy];Qd=U;var Yl=tz==null?void 0:tz.playerResponseTimestamp,jd=_.IY(kl.key).entityId;tz=_.lm(jd,"mainVideoEntity");if(kl.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var wr="OFFLINE_VIDEO_STATE_DISABLED";kl.expirationTimestamp&&Number(kl.expirationTimestamp)<Date.now()/1E3&&(wr="OFFLINE_VIDEO_STATE_EXPIRED")}else if(kl.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")wr="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(pX==null?void 0:pX.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":wr="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":wr="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":wr="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":wr="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":wr="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":wr="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:wr="OFFLINE_VIDEO_STATE_UNKNOWN"}if(wr==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(pX==null?void 0:pX.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":wr="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":wr="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":wr=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}jd={id:jd,videoState:wr};if(pX==null?0:pX.cotn)jd.cotn=pX.cotn;if(pX==null?0:pX.maximumDownloadQuality)jd.selectedVideoQuality=pX==null?void 0:pX.maximumDownloadQuality;if(pX==null?0:pX.lastProgressTimeMs)jd.lastProgressTimeMs=pX.lastProgressTimeMs;Yl&&(jd.playerResponseSavedTimeMs=String(Number(Yl)*1E3));pX=String;Yl=0;OZ=_.p(OZ);for(wr=OZ.next();!wr.done;wr=OZ.next())if(wr=wr.value,wr.streamsProgress){wr=_.p(wr.streamsProgress);for(var et=wr.next();!et.done;et=
wr.next()){var Qh=void 0;Yl+=Number((Qh=et.value.numBytesDownloaded)!=null?Qh:0)}}jd.downloadedBytes=pX(Yl);jd.selectedOfflineMode=Qd[tz]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";kl.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(jd.offlinePlaybackDisabledReason=kl.offlinePlaybackDisabledReason);return jd});
return $I.return({offlineVideos:cG,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:q}}})})};
w2i=function(){var E;return _.a(function(B){return B.nextAddress==1?_.C(B,_.YN(),2):(E=B.yieldResult)?B.return(_.C3J(E)):B.return({state:"PES Unavailable"})})};
zXF=function(){var E,B,I,T;return _.a(function(e){if(e.nextAddress==1)return _.C(e,_.YN(),2);if(e.nextAddress!=3)return(E=e.yieldResult)?_.C(e,ZyQ(E),3):e.return({state:"PES Unavailable"});B=e.yieldResult;I={};T=B.reduce(function(c,Y){c[Y.key]=Y;return c},I);
return e.return(P3i(T))})};
P3i=function(E){for(var B={},I=[],T=_.p(Object.keys(E)),e=T.next();!e.done;e=T.next()){var c=e.value;e=E[c];var Y=void 0;if(((Y=e)==null?void 0:Y.entityType)==="mainVideoEntity"){delete E[c];var v=e.data;e={};if(v){var y=void 0;Y=(y=v.videoId)!=null?y:"vid-"+c;c=E;e.video=v;delete e.video.formattedDescription;delete e.video.thumbnail;v.owner&&(y=c[v.owner],y==null?0:y.data)&&(delete c[y.key],e.video.owner=y.data,delete e.video.owner.avatar);if(v=v.downloadState)if(y=c[v],y==null?0:y.data)if(delete c[v],
v=y.data.playbackData)if(y=c[v],y!=null&&y.data){delete c[v];v=y.data;delete v.playerResponseJson;e.playbackData=v;if(v.transfer&&(y=c[v.transfer],y==null?0:y.data)){delete c[y.key];var Z=y.data;e.transfer=Z;y=[];Z=_.p(Z.offlineVideoStreams||[]);for(var P=Z.next();!P.done;P=Z.next())if(P=c[P.value])delete c[P.key],y.push(P.data);y&&(e.streams=y)}(v=v.offlineVideoPolicy)&&(v=c[v])&&v.data&&(delete c[v.key],e.offlineVideoPolicy=v.data)}B[Y]=e}}else e&&e.entityType==="offlineOrchestrationActionWrapperEntity"&&
e.data&&(delete E[e.key],Y=e.data,c=void 0,I.push({id:Y.rootActionId,type:((c=Y.actionProto)==null?void 0:c.actionType)||"",entity:e}))}B.wrapperEntities=I;Object.keys(E).length>0&&(B.unknownKeys=E);return B};
mbt=function(){var E,B,I,T,e,c,Y,v,y;return _.a(function(Z){if(Z.nextAddress==1)return E=!!(new _.M3("")).expiringStorage_,T=!!((B=_.$i.crypto)==null?0:(I=B.subtle)==null?0:I.importKey),e=!!_.$i.BroadcastChannel,c=!!_.$i.navigator.locks,_.C(Z,XUQ(),2);Y=Z.yieldResult;v=E&&T&&e&&c&&Y;y={isSupported:v};if(v)return Z.return(y);y.missingBrowserFeatures=[];Y||y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");E||y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
T||y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");e||y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");c||y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return Z.return(y)})};
Q6Q=function(){var E;return!((E=Ym?Ym:null)==null||!E.window)};
_.hXc=function(E){if(_.Oc()&&_.Yci("Chromium")>=120){var B=_.dbQ().mediaSession;try{B.setActionHandler("enterpictureinpicture",function(){E()})}catch(I){}}};
s6i=function(E){for(var B=[],I=_.p(document.styleSheets),T=I.next(),e={};!T.done;e={node$jscomp$724:void 0},T=I.next())e.node$jscomp$724=T.value.ownerNode,e.node$jscomp$724&&(e.node$jscomp$724 instanceof HTMLStyleElement||e.node$jscomp$724 instanceof HTMLLinkElement)&&B.push(new Promise(function(c){return function(Y){var v=c.node$jscomp$724.cloneNode(!0);v.onload=function(){Y()};
v.onerror=function(){_.OG(Error("fj"));Y()};
E.document.head.appendChild(v)}}(e)));
return Promise.all(B)};
gAG=function(E){var B=[_.od(uUG),_.od(Ldc),_.od(xb6)];Gl4(window.document.documentElement,E.document.documentElement,[_.od(OyG),_.od(nAc),_.od(MWc),_.od(Hyd),_.od(Nbf)]);Gl4(window.document.body,E.document.body,B)};
Gl4=function(E,B,I){E=_.p(E.attributes);for(var T=E.next();!T.done;T=E.next())if(T=T.value)try{_.H1(I,B,T.name,T.value)}catch(e){}};
J_i=function(E,B){E=new _.aP(E.document.documentElement);E.start(Sat,B);return E};
WdD=function(E){var B=E.document.documentElement;B.addEventListener("click",function(I){DQt(B,I)});
B.addEventListener("touchstart",function(I){$1B(I)});
B.addEventListener("mousedown",function(I){$1B(I)})};
r_6=function(E,B,I,T){T=T===void 0?!1:T;B=new X2J(B||E,I||E);return{x:E.x+((T===void 0?0:T)?B.lengthX*-1:B.lengthX)*.2,y:E.y+((T===void 0?0:T)?B.lengthY*-1:B.lengthY)*.2}};
byG=function(E){if(!E)return!1;var B=E.status==="OK"||E.status==="LIVE_STREAM_OFFLINE",I,T,e,c=(e=(I=E.errorScreen)==null?void 0:I.playerLegacyDesktopYpcTrailerRenderer)!=null?e:(T=E.errorScreen)==null?void 0:T.ypcTrailerRenderer;return!!B||!!c};
_.oA4=function(E,B){if(!E)return!1;var I,T=(I=E.errorScreen)==null?void 0:I.playerLegacyDesktopYpcOfferRenderer,e;B=!!(B==null?0:(e=B.playerOverlayRenderer)==null?0:e.gatedActionsOverlayRenderer);return!!byG(E)||!!T||!!B};
A_J=function(E){return E.includes("gclid")||E.includes("gad_source")};
klf=function(E){var B=[],I=0;return{push:function(T){B[I]=T;I=(I+1)%E},
iterate:function(){return function e(){var c,Y,v,y;return _.j6c(e,function(Z){switch(Z.nextAddress){case 1:_.Dg(Z,2),c=B.length,Y=0;case 4:if(!(Y<c)){Z.jumpTo(2);break}v=I+Y;y=_.UbQ;return _.C(Z,B[v%c],7);case 7:y(Z.yieldResult);Y++;Z.jumpTo(4);break;case 2:_.FL(Z),_.Kr(Z,0)}})}()}}};
fCc=function(){var E=_.RI("web_max_tracing_events",0);_.d("web_enable_tracing")&&E>0&&tWc(E)};
tWc=function(E){var B=klf(E);oQi({sample:function(I,T){return I==="event"?!VWc.has(T==null?void 0:T.type):!1},
spanProcessors:[{onSpanStart:function(I){B.push(I)}}]});
dEi.subscribe("handleError",function(I){Object.assign(I.params,{breadcrumbs:JSON.stringify(Array.from(B.iterate()))})})};
qad=function(E){return new Promise(function(B){window.setTimeout(B,E)})};
FdG=function(E){var B={bicf:function(c){E.nPi=c},
blc:function(){return E.getLatestChallengeResponse()},
bcr:function(c){E.rcP.push(c)}},I=window.top;
I.ntpevasrs=B;if(I.ntpqfbel!==void 0)for(var T=_.p(I.ntpqfbel),e=T.next();!e.done;e=T.next())e=e.value,e(B);I.ntpqfbel=void 0};
Db6=function(E){return _.a(function(B){if(B.nextAddress==1)return _.q7(B,2),_.C(B,E.moy(),4);if(B.nextAddress!=2)return _.W7(B,0);_.RG(B);_.ER(B)})};
Kdi=function(E){var B,I;(B=E.ytcsi)==null||(I=B.tick)==null||I.call(B,"pot_ist")};
RXJ=function(E){if(E instanceof Error){var B=_.WA("yt.logging.errors.log");B&&B(E,"WARNING")}};
E5d=function(E){try{var B=JSON.parse(E);if(B.bgChallenge)return B}catch(I){}};
$PJ=function(){var E=window,B={networkStatusManagerPromise:_.Q().resolve(new dq4(_.Xg)),initialChallengeSli:_.d("wpo_att_sli")?new _.MlF("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};E=E===void 0?window:E;var I=E.ytAtR,T;B==null||(T=B.initialChallengeSli)==null||_.v3(T);if(I){if(I=E5d(I)){var e;B==null||(e=B.initialChallengeSli)==null||_.yr(e,"SUCCESS");BOJ(I,B)}E.ytAtR=void 0}else E.ytAtRC=function(c){if(c=E5d(c)){var Y;B==null||(Y=B.initialChallengeSli)==null||_.yr(Y,
"SUCCESS");BOJ(c,B);E.ytAtRC=void 0}}};
eri=function(){if(IIf)return IIf;try{var E=_.li("IFRAME");_.QC(E,_.jR(TOc));E.sandbox.add("allow-same-origin");E.style.display="none";document.body.appendChild(E);return IIf=E}catch(B){E=new _.P7("Failed to create sandbox iframe"),_.xV(E)}};
lIf=function(E){var B,I;return(I=E==null?void 0:(B=E.contentWindow)==null?void 0:B.fetch)!=null?I:window.fetch};
cqc=function(E){var B,I;return(I=E==null?void 0:(B=E.contentWindow)==null?void 0:B.JSON.parse)!=null?I:JSON.parse};
iNc=function(E){var B,I;return(I=E==null?void 0:(B=E.contentWindow)==null?void 0:B.Request)!=null?I:window.Request};
aIG=function(){if(NEJ()==="hidden")var E="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else NEJ()==="visible"&&(E="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",pti=null);E&&YtJ(E)};
YtJ=function(E){if(E==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||E==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(v5G===E)return;v5G=E}var B=9E4+Math.random()*2E3;if(E!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.DD()>B)&&NEJ()==="visible"){B=-1;pti&&(B=Math.round((0,_.VZ)()-pti));var I=String;var T=_.WA("_fact",window);T=T==null||T==-1?-1:Math.max(Date.now()-T,0);_.hK("foregroundHeartbeat",{firstActivityMs:I(T),clientDocumentNonce:YkQ,index:String(yqi),lastEventDeltaMs:String(B),trigger:E});
_.ka("_fact",-1,window);yqi++;pti=(0,_.VZ)()}};
_.CnG=function(){try{return!!self.sessionStorage}catch(E){return!1}};
wtf=function(){var E=navigator;return new Promise(function(B,I){var T;(T=E.webkitTemporaryStorage)!=null&&T.queryUsageAndQuota?E.webkitTemporaryStorage.queryUsageAndQuota(function(e,c){B({usage:e,quota:c})},function(e){I(e)}):I(Error("nj"))})};
ZNd=function(E,B){var I={errorSeverity:B.errorSeverity.toString(),wizFeatureFlags:Object.entries(B.featureFlags).join("\n")};i8d(B,I);B=B.errorSeverity;B===3?_.xV(E,"ERROR",void 0,void 0,void 0,I):B===2&&_.xV(E,"WARNING",void 0,void 0,void 0,I);_.d("cow_if_errors_in_popup")&&B===3&&E.message.indexOf("<If>")!==-1&&window.alert(E.message)};
Pni=function(E,B,I){E.componentType!==Z0&&I instanceof HTMLElement&&B&&!_.d("cow_logging_in_component_wrapper")&&B3c(I,B,!0)};
zrF=function(E,B,I){B=B===void 0?{}:B;var T,e=(T=_.h(E.commandMetadata,_.D$))==null?void 0:T.url;T=B.form||{};!I||T.element||T.skipDefaultElement||(B.form=B.form||{},B.form.element=I);if(e&&e!=="/service_ajax")return{type:0,command:E,form:B.form};if(_.d("kevlar_service_command_check")){if(_.H$(_.Q().resolve(_.P8),E))return Object.assign({},{type:1,command:E},B)}else{var c;if((c=_.h(E.commandMetadata,_.D$))==null?0:c.apiUrl)return Object.assign({},{type:1,command:E},B)}return{type:2,command:E,form:B.form}};
mPi=function(E){if(E.form){var B=E.form,I=Object.assign({},B);B=B.element;I=(delete I.element,I);if(B)return[_.l1(B,[E.command,I,E.commandController])]}return[]};
Qlc=function(E){if(E.form){var B=E.form,I=Object.assign({},B);B=B.element;I=(delete I.element,I);B&&_.cN(B,[E.command],B,I)}};
hri=function(E,B,I){var T=new dPc(E,B),e=new CJ(E,B,I);E={"/youtubei/v1/browse":new w6(E,B,I),"/youtubei/v1/player":T,"/youtubei/v1/navigation/resolve_url":new Z4,"/youtubei/v1/next":e,"/youtubei/v1/guide":new P3(I),"/youtubei/v1/search":new zX(E,B,I),"/youtubei/v1/reel/reel_item_watch":new mi(E,B,I),"/youtubei/v1/get_watch":new Qr(T,e)};E["/youtubei/v1/account/account_menu"]=new d6;E["/youtubei/v1/notification/get_notification_menu"]=new hb;return E};
ub=function(){var E=_.Q().resolve(sg);return Promise.resolve(sli(E,_.$i.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
uEc=function(E){return E&&(E=_.LJ(_.Q4J(E)))?(new URLSearchParams(E)).get("service"):null};
Og=function(E,B){_.ta(_.xm(),function(){_.nO("adl")});
_.Q().resolve(LIB)(B);E=E.root;E.loadData&&E.loadData(B);(B==null?0:B.response)?_.yr(gTB(),"SUCCESS"):_.OG(new _.P7("Lifecycle: No response in data",_.gU("IS_SHELL_LOAD"),B?B.page:"NO_PAGE",B?B.endpoint:"NO_ENDPOINT"));E.polymerController.$["page-manager"].lazyPrepareCriticalPages((B==null?void 0:B.page)||"",B.endpoint);var I,T;((T=_.h(B==null?void 0:(I=B.endpoint)==null?void 0:I.commandMetadata,_.D$))==null?0:T.webPageType)&&_.t2().dispatch(_.GX(_.h(B.endpoint.commandMetadata,_.D$).webPageType))};
xPi=function(){var E,B;return _.a(function(I){switch(I.nextAddress){case 1:E=window;if(!E.getDataPromise){I.jumpTo(2);break}_.q7(I,3);return _.C(I,E.getDataPromise(),5);case 5:return I.return(I.yieldResult);case 3:return _.RG(I),_.C(I,ub(),6);case 6:return I.return(I.yieldResult);case 2:if(E.getInitialData)return B=E.getInitialData(),E.getInitialData=void 0,I.return(B);throw Error("pj`"+_.$i.location.href);}})};
ONd=function(){_.MD("CSI_SERVICE_NAME","youtube");_.LO({loadType:"cold"});_.d("kevlar_log_lcp")&&Gy4(function(E){_.nO("lcp",E.value)})};
n56=function(){var E=_.Nm(document.location.href,"enable");E&&E.indexOf("scraper")>-1&&_.MD("ADD_SCRAPER_ATTRIBUTES",!0)};
Stt=function(E){var B=E.root;E=[MzD,HNG,_.nJ];_.d("web_feedback_endpoint_autolog_allowlist_killswitch")&&E.push(_.Ms,NOi);g5F(function(I,T){return zrF(I,T,B)},function(I){if(!I.command)return[];
var T;((T=I.form)==null?0:T.element)?I.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},I.form,{endpoint:I.command})})):B.handleNavigate(I);return[]},E);
_.Q().addProvider({provide:_.Dt,useValue:_.BV.instance})};
WIt=function(){var E={},B={},I;for(I in JqG){var T=_.p(_.lQ(JqG[I],void 0,"UAX5pb"));E[I]=T.next().value;B[I]=T.next().value}return[E,function(e){for(var c in e){var Y=void 0;(Y=B[c])==null||Y(e[c])}}]};
_.bNd=function(E,B){var I=_.a_.getValueByKeys(E,"contents","twoColumnWatchNextResults","results","results","contents"),T=_.a_.getValueByKeys(E,"contents","twoColumnWatchNextResults","playlist","playlist")||null,e=null,c=null;if(T)e=_.a_.getValueByKeys(T,"titleText"),c=_.a_.unsafeClone(_.a_.getValueByKeys(T,"longBylineText")),I="",c&&(I=_.U3(c)),c=_.jj(I);else if(I){I=_.p(I);for(var Y=I.next();!Y.done;Y=I.next())Y=Y.value,Y.videoPrimaryInfoRenderer&&(e=_.a_.getValueByKeys.apply(_.a_,[Y].concat(_.ad(Xtd)))),
Y.videoSecondaryInfoRenderer&&(c=_.a_.getValueByKeys.apply(_.a_,[Y].concat(_.ad(rqG))))}else _.Xx(Error("uj"));var v;E.currentVideoEndpoint?v=E.currentVideoEndpoint:_.Xx(Error("vj"));var y;B&&(y=_.a_.getValueByKeys(B,"playabilityStatus","miniplayer","miniplayerRenderer"));E={miniplayerTitle:e,miniplayerSubtitle:c,watchEndpoint:v,playlistData:T};y&&(E.miniplayerRenderer=y);return E};
o5c=function(E){if(E)return _.zA(E)};
_.Aqi=function(){return{isFullscreen:function(){throw Error("wj");},
toggleFullscreen:function(){throw Error("xj");},
exitFullscreen:function(){throw Error("yj");},
isAutonavEnabled:function(){throw Error("zj");},
setAutonavEnabled:function(){throw Error("Aj");},
isAutoplaySetExplicitly:function(){throw Error("Bj");}}};
jl4=function(E){return E.videoDuration?E.numTaps>1&&E.tapDirection!==0?_.H3(E.draggedTime/E.videoDuration,0,1):_.H3((E.playedTime||0)/E.videoDuration,0,1):0};
UPG=function(E){return E.videoDuration?E.isDragging||E.numTaps>1&&E.tapDirection!==0?_.H3(E.draggedTime/E.videoDuration,0,1):_.H3((E.playedTime||0)/E.videoDuration,0,1):0};
tz4=function(E){var B,I,T;return _.h(E==null?void 0:(B=E.markersMap)==null?void 0:(I=B.find(function(e){return e.key==="HEATSEEKER"}))==null?void 0:(T=I.value)==null?void 0:T.heatmap,kyd)};
fI4=function(E){var B,I;return(I=(B=tz4(E))==null?void 0:B.heatMarkersDecorations)!=null?I:[]};
VzQ=function(E){if(_.d("mweb_supported_chapters_killswitch"))return!0;var B;return!!(E==null?0:(B=E.markersMap)==null?0:B.find(function(I){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(I.key)}))};
_.qtf=function(E){var B=Object,I=B.assign,T;E={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(T=E==null?void 0:E.getPlayerState())!=null?T:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return I.call(B,{},{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},E,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
FIi=function(E){return function(B){var I=E(),T,e=(T=I.playerApi)==null?void 0:T.getPlayerState();B&&B!==I.playerState&&(B===1||B===2)&&I.setState({playerState:e})}};
KIi=function(E){return function(B){var I=E(),T=I.playerApi;T&&(B==null?void 0:B.type)==="newdata"&&(DPi&&(clearTimeout(DPi),DPi=void 0),_.d("web_shorts_use_progress_state_for_gapless")?(B=T==null?void 0:T.getProgressState(B==null?void 0:B.playertype),B=B.seekableEnd-B.seekableStart):B=T==null?void 0:T.getDuration(B==null?void 0:B.playertype),I.setState({playedTime:0,videoDuration:B}))}};
RrD=function(E){return function(B){var I=E(),T=I.playerApi;if(T){var e=T.getPresentingPlayerType();_.d("web_shorts_use_progress_state_for_gapless")?(T=T.getProgressState(e),T=T.seekableEnd-T.seekableStart):T=T.getDuration(e);I.setState({playedTime:B,videoDuration:T})}}};
$2D=function(E){var B=E.element;var I=E.veType;var T=E.storedVisualElement===void 0?null:E.storedVisualElement;var e=E.elementIndex===void 0?0:E.elementIndex;E=E.clientYouTubeData;var c=_.nC();c!==ES6&&(Bjd.clear(),ES6=c);if(B.visualElement&&Bjd.has(B.visualElement))return null;if(T&&Bjd.has(T))return B.visualElement=T,null;I=_.eO(_.lu(),{veType:I,elementIndex:e,clientYouTubeData:E});if(!I)return null;B.visualElement=I;Bjd.add(I);return I};
_.Ns=function(E,B,I,T){I=I===void 0?null:I;T=T===void 0?B$c:T;var e=e===void 0?null:e;C8(function(){if(B){I instanceof Function&&(I=I());var c=$2D({element:B,veType:E,storedVisualElement:I,clientYouTubeData:void 0});c&&(T$f(B,e),T(c))}})};
TjB=function(E){_.Ns(112394,E,function(){return I2G},function(B){I2G=B})};
cfB=function(E,B){if(!E)return[];var I,T,e;E=((I=E.markersMap)==null?void 0:(T=I.find(function(c){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(c.key)}))==null?void 0:(e=T.value)==null?void 0:e.chapters)||[];
!es6(E)||(B==null?0:B.ignoreStub)||(E=[l26()].concat(_.ad(E)));return E};
l26=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
es6=function(E){if(E.length===0)return!1;var B;return((B=_.h(E[0],g6))==null?void 0:B.timeRangeStartMillis)!==0};
SD=function(E){return E?E.timeRangeStartMillis||0:0};
pSQ=function(E,B){if(E.isDragging&&B)return E=iYG(E,B),E===-1?l26():cfB(B)[E]};
iYG=function(E,B){return E.isDragging&&B?cfB(B,{ignoreStub:!0}).findIndex(function(I,T,e){I=YYJ(E);return a2i(I,e,T).scrubberHovering}):-1};
YYJ=function(E){return Object.assign({},E,{videoDuration:E.videoDuration*1E3,playedTime:E.playedTime*1E3,draggedTime:E.draggedTime*1E3})};
a2i=function(E,B,I){var T=SD(_.h(B[I],g6));B=SD(_.h(B[I+1],g6))||E.videoDuration;I=E.isDragging;var e;if(e=E.isDragging)e=E.draggedTime,e=e!==null&&e>=T&&e<B;var c=E.playedTime;return c!==null&&c>=T&&c<B?{videoPosition:"active",isScrubbing:I,scrubberHovering:e}:E.playedTime<T?{videoPosition:"pending",isScrubbing:I,scrubberHovering:e}:{videoPosition:"seen",isScrubbing:I,scrubberHovering:e}};
vS4=function(E,B){return E.videoPosition==="seen"||(B===void 0?0:B)>0};
yf4=function(E,B,I){B=E/B.storyboardInterval;var T=cfB(I);if(!T.length)return-B*72;I=0;T=_.p(T);for(var e=T.next();!e.done;e=T.next())if(SD(_.h(e.value,g6))/1E3<E)I++;else break;return-(B*72)-I*56};
CsB=function(E){return E?E.width/E.columns:0};
wSd=function(E){return E.isHovering?E.hoveredTime:E.draggedTime};
ZYB=function(E,B){E=E.draggedTime*1E3;return E>=B.visibleTimeRangeStartMillis&&E<=B.visibleTimeRangeEndMillis};
_.Pst=function(E){if(E===void 0||Number.isNaN(E))return"--:--";var B=Math.abs(Math.floor(E)),I=Math.floor(B/86400),T=Math.floor(B%86400/3600),e=Math.floor(B%3600/60);B=Math.floor(B%60);var c="";I>0&&(c+=I+":",T<10&&(c+="0"));if(I>0||T>0)c+=T+":",e<10&&(c+="0");c+=e+":";B<10&&(c+="0");c+=B;return E>=0?c:"-"+c};
zsi=function(E,B){return function(){var I=wSd(E());var T=B();var e=E().playerApi;if(e&&e.getNumberOfStoryboardLevels()!==0){var c=e.getStoryboardFrameIndex(I,1);c!==-1?T=e.getStoryboardFrame(c,1):(I=e.getStoryboardFrameIndex(I,0),e=e.getStoryboardFrame(I,0),T&&e&&(e.height*=3,e.width*=3),T=e)}else T=null;if(!T)return null;B()&&(T.width=90*T.columns,T.height=160*T.rows);return T}};
_.Jb=function(E){if(!E||E.getVideoData)return E};
m2G=function(){var E;return{playerApi:(E=_.BE())!=null?E:void 0}};
_.uJJ=function(E){function B(K){K!==0||z?K>50&&(z||!u)?(m(!1),x(!0)):K<=50&&(z||u)&&(m(!1),x(!1)):m(!0)}
function I(){var K;return _.a(function(p4){if(p4.nextAddress==1)return _.C(p4,_.EO(),2);(K=p4.yieldResult)&&(K.isMuted()?m(!0):m(!1));_.ER(p4)})}
var T=E.noSlider;var e=E.orientation;E=_.oH();var c=_.oH(),Y=_.AK(),v=_.p(T8(!1)),y=v.next().value,Z=v.next().value,P=_.p(T8(!1));v=P.next().value;P=P.next().value;var z=v,m=P;P=_.p(T8(!0));v=P.next().value;P=P.next().value;var u=v,x=P;v=e==="vertical_down";_.uW(function(){function K(){Z(!0)}
function p4(){Z(!1)}
T?(I(),B(z?0:100)):Y&&Y.value&&(Y.value.addEventListener("focus",K),Y.value.addEventListener("focusout",p4),QTF(Y.value).then(function(){B(Number(d2F(Y.value)))}));
c&&c.value&&(c.value.addEventListener("focus",K),c.value.addEventListener("focusout",p4));return function(){var sc;Y==null||(sc=Y.value)==null||sc.removeEventListener("focus",K);var Gf;Y==null||(Gf=Y.value)==null||Gf.removeEventListener("focusout",p4);c.value.removeEventListener("focus",K);c.value.removeEventListener("focusout",p4)}});
var M=_.TI(function(){if(Y&&Y.value){var K=Number(d2F(Y.value));hsc(K);Y.value.style.setProperty("--gradient-percent",K+"%");B(K)}return!1});
P={};P=(P.ytdDesktopShortsVolumeControlsHost=!0,P.ytdDesktopShortsVolumeControlsHostVertical=v,P.ytdDesktopShortsVolumeControlsHostExpanded=y,P);var N={},W=(N.ytdDesktopShortsVolumeControlsSliderContainer=!0,N.ytdDesktopShortsVolumeControlsSliderContainerExpanded=y,N.ytdDesktopShortsVolumeControlsSliderContainerVertical=v,N.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=e==="vertical_down",N.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=y&&v,N);e={};var U=(e.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,e.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=T?!1:y,e);y={};y=(y.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=v,y);e=_.TI(function(){Z(!0)});
N=_.TI(function(){Z(!1)});
var q=_.TI(function(){if(Y&&Y.value||T)sTf(Y.value,z,T),m(!z);return!1}),f=_.d("web_shorts_keyboard_enable_mute_shortcut")?z?_.yu("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.yu("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):z?_.yu("UNMUTE_VOLUME",void 0,"Unmute"):_.yu("MUTE_VOLUME",void 0,"Mute"),ed={sources:[{clientResource:{imageName:z?"VOLUME_OFF_FILLED":u?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.w("desktop-shorts-volume-controls",{"on:pointerleave":N,class:_.B$(P),el:E},_.AV(!v,function(){return _.w("div",{class:_.B$(U)})}),_.w("div",{class:_.B$(y)},_.w("button",{"aria-label":f,
title:f,el:c,"on:click":q,"on:pointerenter":e,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},ed?_.w(_.Ja,{data:ed,alt:f,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.AV(!T,function(){return _.w("div",{class:_.B$(W)},_.w("input",{"aria-label":_.yu("VOLUME"),title:_.yu("VOLUME"),el:Y,"on:input":M,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
QTF=function(E){var B,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,_.EO(),2);B=T.yieldResult;I=50;B&&(I=B.getVolume(),B.isMuted()?Lli(E,0):Lli(E,I));_.ER(T)})};
hsc=function(E){var B;_.a(function(I){if(I.nextAddress==1)return _.C(I,_.EO(),2);if(B=I.yieldResult)B.unMute(!0),B.setVolume(E,!0);_.ER(I)})};
Lli=function(E,B){E&&(E.value=""+B,E.style.setProperty("--gradient-percent",B+"%"))};
d2F=function(E){var B;return(B=E==null?void 0:E.value)!=null?B:0};
sTf=function(E,B,I){var T;_.a(function(e){if(e.nextAddress==1)return _.C(e,_.EO(),2);T=e.yieldResult;B&&T?(T.unMute(!0),!I&&E&&Lli(E,T.getVolume())):T&&(T.mute(!0),!I&&E&&Lli(E,0));_.ER(e)})};
x2c=function(){var E;_.a(function(B){if(B.nextAddress==1)return _.C(B,_.EO(),2);E=B.yieldResult;if(!E)return B.return();E.isMuted()?E.unMute(!0):E.mute(!0);_.ER(B)})};
GcB=function(E){var B=_.Q().resolve(_.W3).getPlayerElement();B&&E&&(E===1?B.pause():B.play())};
OY6=function(E){_.Ta(E,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
nSJ=function(E){_.Ta(E,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
HYc=function(E){return _.dU(E.document.body,function(){return _.w(MZi,null)})};
Nj4=function(){var E=window.performance.getEntriesByType("navigation");return E?E.map(function(B){return B.type}).includes("reload"):!1};
oSF=function(){XY(XY(XY(XY(XY(XY(XY(_.Q().resolve(_.r6),_.gSc),_.SYc),_.Jff),_.Wl4),_.XSF),_.rfc),_.bYJ)};
AfQ=function(E,B){B=B===void 0?!1:B;var I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return B||!_.d("kevlar_shorts_seedless_retry_initial_load")||(I=window,T=!(!I.getDataPromise&&!I.getInitialData),T)?_.C(Y,xPi(),2):(setTimeout(AfQ.bind(window,E,!0),1E3),Y.return());if(Y.nextAddress!=3)return e=Y.yieldResult,_.C(Y,jTQ(e),3);c=Y.yieldResult;Og(E,c);_.ER(Y)})};
jTQ=function(E){var B;if((B=E.response)==null||!B.replacementEndpoint)return _.i1(E);B=_.Q().resolve(sg);E=E.response;_.h(E.replacementEndpoint,_.yQ)&&E.sequenceContinuation&&(_.h(E.replacementEndpoint,_.yQ).sequenceParams=E.sequenceContinuation);return bb(B,E.replacementEndpoint,{},_.$i.location.href,"shorts",function(){},function(){return!1})};
U2G=function(E){var B=_.t2(),I,T=_.h((I=E.response)==null?void 0:I.frameworkUpdates,Jk),e;I=_.h((e=E.playerResponse)==null?void 0:e.frameworkUpdates,Jk);var c;E=_.h((c=E.reelWatchSequenceResponse)==null?void 0:c.frameworkUpdates,Jk);T&&_.vP(T,B);I&&_.vP(I,B);E&&_.vP(E,B)};
kcF=function(E){var B;_.d("enable_redirect_linking_for_desktop_web_client")&&((B=window.location.hash)==null?0:B.includes("redirect_state"))&&E.url&&(E.url=E.url.toString()+window.location.hash)};
VZD=function(E){var B=_.Q(),I=B.resolve(sg);B=B.resolve(_.tZt);E.endpoint&&(I=f26(I,E.endpoint),I.content&&E.response&&_.oP(B,E.response,I.content),I.player&&E.playerResponse&&_.oP(B,E.playerResponse,I.player),I.reelSequence&&E.reelWatchSequenceResponse&&_.oP(B,E.reelWatchSequenceResponse,I.reelSequence))};
Ab=function(E,B){U2G(B);var I;(B==null?0:B.url)&&((I=window.location.hash)==null?0:I.includes("redirect_state"))&&(kcF(B),(I=uEc(B.url))&&_.I2(E.root,"yt-initialize-third-party",[I,B]));VZD(B);I=_.Q();var T=I.resolve(qYQ);B.playerResponse&&I.resolve(Flc).handleResponse(B.playerResponse);if(B.playerResponse){I=void 0;if(_.d("ab_v_vid_sig")&&B.endpoint){var e,c=(e=_.h(B.endpoint,_.kh))!=null?e:_.h(B.endpoint,_.yQ);c&&(I=c.videoId)}D2G(T,B.playerResponse,I)}B.playerResponse&&Il6(B.playerResponse)&&_.d("web_enable_ab_rsp_cl")?
tAB().then(function(){KlD(T,B.playerResponse);Og(E,B)}):Og(E,B)};
Ect=function(E){if(E=E.root.data){var B=_.Q().resolve(Rsc);E.endpoint&&(E.response&&B.handleResponse(E.response,void 0,document.querySelector("ytd-app")),E.playerResponse&&B.handleResponse(E.playerResponse),E.reelWatchSequenceResponse&&B.handleResponse(E.reelWatchSequenceResponse))}};
BD6=function(E){var B,I,T,e,c,Y;return _.a(function(v){switch(v.nextAddress){case 1:B=window;if(!B.getDataPromise){v.jumpTo(2);break}_.q7(v,3);return _.C(v,B.getDataPromise(),5);case 5:I=v.yieldResult;Ab(E,I);_.W7(v,4);break;case 3:return _.RG(v),_.C(v,ub(),6);case 6:T=v.yieldResult,Og(E,T);case 4:return v.return();case 2:if(!_.d("sw_nav_preload_pbj")){v.jumpTo(7);break}B.fetchInitialData=function(){var y;return _.a(function(Z){if(Z.nextAddress==1)return _.C(Z,ub(),2);y=Z.yieldResult;Og(E,y);_.ER(Z)})};
if(B.getInitialData){B.loadInitialData=function(y){Ab(E,y)};
e=B.getInitialData();B.getInitialData=void 0;Ab(E,e);v.jumpTo(8);break}B.fetchInitialData=void 0;return _.C(v,ub(),9);case 9:c=v.yieldResult,Og(E,c);case 8:return v.return();case 7:B.getInitialData?(Y=B.getInitialData(),B.getInitialData=void 0,Ab(E,Y)):B.loadInitialData=function(y){Ab(E,y)},_.ER(v)}})};
$xF=function(E){var B=0;return function(){return B<E.length?{done:!1,value:E[B++]}:{done:!0}}};
IjD=typeof Object.defineProperties=="function"?Object.defineProperty:function(E,B,I){if(E==Array.prototype||E==Object.prototype)return E;E[B]=I.value;return E};
TDi=function(E){E=["object"==typeof globalThis&&globalThis,E,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var B=0;B<E.length;++B){var I=E[B];if(I&&I.Math==Math)return I}throw Error("a");};
_.Up=TDi(this);jD=function(E,B){if(B)a:{var I=_.Up;E=E.split(".");for(var T=0;T<E.length-1;T++){var e=E[T];if(!(e in I))break a;I=I[e]}E=E[E.length-1];T=I[E];B=B(T);B!=T&&B!=null&&IjD(I,E,{configurable:!0,writable:!0,value:B})}};
jD("Symbol",function(E){if(E)return E;var B=function(c,Y){this.$jscomp$symbol$id_=c;IjD(this,"description",{configurable:!0,writable:!0,value:Y})};
B.prototype.toString=function(){return this.$jscomp$symbol$id_};
var I="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",T=0,e=function(c){if(this instanceof e)throw new TypeError("b");return new B(I+(c||"")+"_"+T++,c)};
return e});
jD("Symbol.iterator",function(E){if(E)return E;E=Symbol("c");for(var B="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),I=0;I<B.length;I++){var T=_.Up[B[I]];typeof T==="function"&&typeof T.prototype[E]!="function"&&IjD(T.prototype,E,{configurable:!0,writable:!0,value:function(){return eI4($xF(this))}})}return E});
jD("Symbol.asyncIterator",function(E){return E?E:Symbol("d")});
var eI4=function(E){E={next:E};E[Symbol.iterator]=function(){return this};
return E},ljF=typeof Object.create=="function"?Object.create:function(E){var B=function(){};
B.prototype=E;return new B},cW6=function(){function E(){function I(){}
new I;Reflect.construct(I,[],function(){});
return new I instanceof I}
if(typeof Reflect!="undefined"&&Reflect.construct){if(E())return Reflect.construct;var B=Reflect.construct;return function(I,T,e){I=B(I,T);e&&Reflect.setPrototypeOf(I,e.prototype);return I}}return function(I,T,e){e===void 0&&(e=I);
e=ljF(e.prototype||Object.prototype);return Function.prototype.apply.call(I,e,T)||e}}(),inc;
if(typeof Object.setPrototypeOf=="function")inc=Object.setPrototypeOf;else{var pq4;a:{var YDG={a:!0},ajt={};try{ajt.__proto__=YDG;pq4=ajt.a;break a}catch(E){}pq4=!1}inc=pq4?function(E,B){E.__proto__=B;if(E.__proto__!==B)throw new TypeError("e`"+E);return E}:null}Ug=inc;
_.L=function(E,B){E.prototype=ljF(B.prototype);E.prototype.constructor=E;if(Ug)Ug(E,B);else for(var I in B)if(I!="prototype")if(Object.defineProperties){var T=Object.getOwnPropertyDescriptor(B,I);T&&Object.defineProperty(E,I,T)}else E[I]=B[I];E.superClass_=B.prototype};
_.p=function(E){var B=typeof Symbol!="undefined"&&Symbol.iterator&&E[Symbol.iterator];if(B)return B.call(E);if(typeof E.length=="number")return{next:$xF(E)};throw Error("f`"+String(E));};
bi=function(E){for(var B,I=[];!(B=E.next()).done;)I.push(B.value);return I};
_.ad=function(E){return E instanceof Array?E:bi(_.p(E))};
_.km=function(E){return vcQ(E,E)};
vcQ=function(E,B){E.raw=B;Object.freeze&&(Object.freeze(E),Object.freeze(B));return E};
tb=function(E,B){return Object.prototype.hasOwnProperty.call(E,B)};
yWt=typeof Object.assign=="function"?Object.assign:function(E,B){for(var I=1;I<arguments.length;I++){var T=arguments[I];if(T)for(var e in T)tb(T,e)&&(E[e]=T[e])}return E};
jD("Object.assign",function(E){return E||yWt});
var Ced=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},wqc=function(E){if(E.isRunning_)throw new TypeError("h");
E.isRunning_=!0};
Ced.prototype.JSC$6620_next_=function(E){this.yieldResult=E};
var ZnG=function(E,B){E.abruptCompletion_={exception:B,isException:!0};E.nextAddress=E.catchAddress_||E.finallyAddress_};
Ced.prototype.return=function(E){this.abruptCompletion_={return:E};this.nextAddress=this.finallyAddress_};
_.C=function(E,B,I){E.nextAddress=I;return{value:B}};
Ced.prototype.jumpTo=function(E){this.nextAddress=E};
_.ER=function(E){E.nextAddress=0};
_.q7=function(E,B,I){E.catchAddress_=B;I!=void 0&&(E.finallyAddress_=I)};
_.Dg=function(E,B){E.catchAddress_=0;E.finallyAddress_=B||0};
_.W7=function(E,B,I){E.nextAddress=B;E.catchAddress_=I||0};
_.RG=function(E,B){E.catchAddress_=B||0;B=E.abruptCompletion_.exception;E.abruptCompletion_=null;return B};
_.FL=function(E,B,I,T){T?E.finallyContexts_[T]=E.abruptCompletion_:E.finallyContexts_=[E.abruptCompletion_];E.catchAddress_=B||0;E.finallyAddress_=I||0};
_.Kr=function(E,B,I){I=E.finallyContexts_.splice(I||0)[0];(I=E.abruptCompletion_=E.abruptCompletion_||I)?I.isException?E.nextAddress=E.catchAddress_||E.finallyAddress_:I.jumpTo!=void 0&&E.finallyAddress_<I.jumpTo?(E.nextAddress=I.jumpTo,E.abruptCompletion_=null):E.nextAddress=E.finallyAddress_:E.nextAddress=B};
Pet=function(E){this.JSC$6625_context_=new Ced;this.program_=E};
mx6=function(E,B){wqc(E.JSC$6625_context_);var I=E.JSC$6625_context_.yieldAllIterator_;if(I)return zIG(E,"return"in I?I["return"]:function(T){return{value:T,done:!0}},B,E.JSC$6625_context_.return);
E.JSC$6625_context_.return(B);return fJ(E)};
zIG=function(E,B,I,T){try{var e=B.call(E.JSC$6625_context_.yieldAllIterator_,I);if(!(e instanceof Object))throw new TypeError("g`"+e);if(!e.done)return E.JSC$6625_context_.isRunning_=!1,e;var c=e.value}catch(Y){return E.JSC$6625_context_.yieldAllIterator_=null,ZnG(E.JSC$6625_context_,Y),fJ(E)}E.JSC$6625_context_.yieldAllIterator_=null;T.call(E.JSC$6625_context_,c);return fJ(E)};
fJ=function(E){for(;E.JSC$6625_context_.nextAddress;)try{var B=E.program_(E.JSC$6625_context_);if(B)return E.JSC$6625_context_.isRunning_=!1,{value:B.value,done:!1}}catch(I){E.JSC$6625_context_.yieldResult=void 0,ZnG(E.JSC$6625_context_,I)}E.JSC$6625_context_.isRunning_=!1;if(E.JSC$6625_context_.abruptCompletion_){B=E.JSC$6625_context_.abruptCompletion_;E.JSC$6625_context_.abruptCompletion_=null;if(B.isException)throw B.exception;return{value:B.return,done:!0}}return{value:void 0,done:!0}};
QUG=function(E){this.next=function(B){wqc(E.JSC$6625_context_);E.JSC$6625_context_.yieldAllIterator_?B=zIG(E,E.JSC$6625_context_.yieldAllIterator_.next,B,E.JSC$6625_context_.JSC$6620_next_):(E.JSC$6625_context_.JSC$6620_next_(B),B=fJ(E));return B};
this.throw=function(B){wqc(E.JSC$6625_context_);E.JSC$6625_context_.yieldAllIterator_?B=zIG(E,E.JSC$6625_context_.yieldAllIterator_["throw"],B,E.JSC$6625_context_.JSC$6620_next_):(ZnG(E.JSC$6625_context_,B),B=fJ(E));return B};
this.return=function(B){return mx6(E,B)};
this[Symbol.iterator]=function(){return this}};
_.j6c=function(E,B){B=new QUG(new Pet(B));Ug&&E.prototype&&Ug(B,E.prototype);return B};
dxG=function(E){function B(T){return E.next(T)}
function I(T){return E.throw(T)}
return new Promise(function(T,e){function c(Y){Y.done?T(Y.value):Promise.resolve(Y.value).then(B,I).then(c,e)}
c(E.next())})};
_.a=function(E){return dxG(new QUG(new Pet(E)))};
k2c=function(E){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return E};
this.next=function(B){return Promise.resolve(E.next(B))};
this["throw"]=function(B){return new Promise(function(I,T){var e=E["throw"];e!==void 0?I(e.call(E,B)):(I=E["return"],I!==void 0&&I.call(E),T(new TypeError("i")))})};
E["return"]!==void 0&&(this["return"]=function(B){return Promise.resolve(E["return"](B))})};
_.aG=function(){for(var E=Number(this),B=[],I=E;I<arguments.length;I++)B[I-E]=arguments[I];return B};
_.UbQ=function(E){return E};
jD("globalThis",function(E){return E||_.Up});
jD("Reflect",function(E){return E?E:{}});
jD("Reflect.construct",function(){return cW6});
jD("Reflect.setPrototypeOf",function(E){return E?E:Ug?function(B,I){try{return Ug(B,I),!0}catch(T){return!1}}:null});
jD("Promise",function(E){function B(){this.batch_=null}
function I(Y){return Y instanceof e?Y:new e(function(v){v(Y)})}
if(E&&(typeof _.Up.PromiseRejectionEvent!=="undefined"||!_.Up.Promise||_.Up.Promise.toString().indexOf("[native code]")===-1))return E;B.prototype.asyncExecute=function(Y){if(this.batch_==null){this.batch_=[];var v=this;this.asyncExecuteFunction(function(){v.executeBatch_()})}this.batch_.push(Y)};
var T=_.Up.setTimeout;B.prototype.asyncExecuteFunction=function(Y){T(Y,0)};
B.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var Y=this.batch_;this.batch_=[];for(var v=0;v<Y.length;++v){var y=Y[v];Y[v]=null;try{y()}catch(Z){this.asyncThrow_(Z)}}}this.batch_=null};
B.prototype.asyncThrow_=function(Y){this.asyncExecuteFunction(function(){throw Y;})};
var e=function(Y){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var v=this.createResolveAndReject_();try{Y(v.resolve,v.reject)}catch(y){v.reject(y)}};
e.prototype.createResolveAndReject_=function(){function Y(Z){return function(P){y||(y=!0,Z.call(v,P))}}
var v=this,y=!1;return{resolve:Y(this.resolveTo_),reject:Y(this.JSC$6641_reject_)}};
e.prototype.resolveTo_=function(Y){if(Y===this)this.JSC$6641_reject_(new TypeError("j"));else if(Y instanceof e)this.settleSameAsPromise_(Y);else{a:switch(typeof Y){case "object":var v=Y!=null;break a;case "function":v=!0;break a;default:v=!1}v?this.resolveToNonPromiseObj_(Y):this.fulfill_(Y)}};
e.prototype.resolveToNonPromiseObj_=function(Y){var v=void 0;try{v=Y.then}catch(y){this.JSC$6641_reject_(y);return}typeof v=="function"?this.settleSameAsThenable_(v,Y):this.fulfill_(Y)};
e.prototype.JSC$6641_reject_=function(Y){this.settle_(2,Y)};
e.prototype.fulfill_=function(Y){this.settle_(1,Y)};
e.prototype.settle_=function(Y,v){if(this.state_!=0)throw Error("k`"+Y+"`"+v+"`"+this.state_);this.state_=Y;this.result_=v;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
e.prototype.scheduleUnhandledRejectionCheck_=function(){var Y=this;T(function(){if(Y.notifyUnhandledRejection_()){var v=_.Up.console;typeof v!=="undefined"&&v.error(Y.result_)}},1)};
e.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var Y=_.Up.CustomEvent,v=_.Up.Event,y=_.Up.dispatchEvent;if(typeof y==="undefined")return!0;typeof Y==="function"?Y=new Y("unhandledrejection",{cancelable:!0}):typeof v==="function"?Y=new v("unhandledrejection",{cancelable:!0}):(Y=_.Up.document.createEvent("CustomEvent"),Y.initCustomEvent("unhandledrejection",!1,!0,Y));Y.promise=this;Y.reason=this.result_;return y(Y)};
e.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var Y=0;Y<this.onSettledCallbacks_.length;++Y)c.asyncExecute(this.onSettledCallbacks_[Y]);this.onSettledCallbacks_=null}};
var c=new B;e.prototype.settleSameAsPromise_=function(Y){var v=this.createResolveAndReject_();Y.callWhenSettled_(v.resolve,v.reject)};
e.prototype.settleSameAsThenable_=function(Y,v){var y=this.createResolveAndReject_();try{Y.call(v,y.resolve,y.reject)}catch(Z){y.reject(Z)}};
e.prototype.then=function(Y,v){function y(m,u){return typeof m=="function"?function(x){try{Z(m(x))}catch(M){P(M)}}:u}
var Z,P,z=new e(function(m,u){Z=m;P=u});
this.callWhenSettled_(y(Y,Z),y(v,P));return z};
e.prototype.catch=function(Y){return this.then(void 0,Y)};
e.prototype.callWhenSettled_=function(Y,v){function y(){switch(Z.state_){case 1:Y(Z.result_);break;case 2:v(Z.result_);break;default:throw Error("l`"+Z.state_);}}
var Z=this;this.onSettledCallbacks_==null?c.asyncExecute(y):this.onSettledCallbacks_.push(y);this.isRejectionHandled_=!0};
e.resolve=I;e.reject=function(Y){return new e(function(v,y){y(Y)})};
e.race=function(Y){return new e(function(v,y){for(var Z=_.p(Y),P=Z.next();!P.done;P=Z.next())I(P.value).callWhenSettled_(v,y)})};
e.all=function(Y){var v=_.p(Y),y=v.next();return y.done?I([]):new e(function(Z,P){function z(x){return function(M){m[x]=M;u--;u==0&&Z(m)}}
var m=[],u=0;do m.push(void 0),u++,I(y.value).callWhenSettled_(z(m.length-1),P),y=v.next();while(!y.done)})};
return e});
var Vr=function(E,B,I){if(E==null)throw new TypeError("m`"+I);if(B instanceof RegExp)throw new TypeError("n`"+I);return E+""};
jD("String.prototype.startsWith",function(E){return E?E:function(B,I){var T=Vr(this,B,"startsWith"),e=T.length,c=B.length;I=Math.max(0,Math.min(I|0,T.length));for(var Y=0;Y<c&&I<e;)if(T[I++]!=B[Y++])return!1;return Y>=c}});
jD("Object.setPrototypeOf",function(E){return E||Ug});
jD("Symbol.dispose",function(E){return E?E:Symbol("o")});
jD("SuppressedError",function(E){function B(I,T,e){if(!(this instanceof B))return new B(I,T,e);e=Error(e);"stack"in e&&(this.stack=e.stack);this.message=e.message;this.error=I;this.suppressed=T}
if(E)return E;_.L(B,Error);B.prototype.name="SuppressedError";return B});
var hIc=function(E,B,I){E instanceof String&&(E=String(E));for(var T=E.length,e=0;e<T;e++){var c=E[e];if(B.call(I,c,e,E))return{i:e,v:c}}return{i:-1,v:void 0}};
jD("Array.prototype.find",function(E){return E?E:function(B,I){return hIc(this,B,I).v}});
jD("WeakMap",function(E){function B(){}
function I(y){var Z=typeof y;return Z==="object"&&y!==null||Z==="function"}
function T(y){if(!tb(y,c)){var Z=new B;IjD(y,c,{value:Z})}}
function e(y){var Z=Object[y];Z&&(Object[y]=function(P){if(P instanceof B)return P;Object.isExtensible(P)&&T(P);return Z(P)})}
if(function(){if(!E||!Object.seal)return!1;try{var y=Object.seal({}),Z=Object.seal({}),P=new E([[y,2],[Z,3]]);if(P.get(y)!=2||P.get(Z)!=3)return!1;P.delete(y);P.set(Z,4);return!P.has(y)&&P.get(Z)==4}catch(z){return!1}}())return E;
var c="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var Y=0,v=function(y){this.JSC$6648_id_=(Y+=Math.random()+1).toString();if(y){y=_.p(y);for(var Z;!(Z=y.next()).done;)Z=Z.value,this.set(Z[0],Z[1])}};
v.prototype.set=function(y,Z){if(!I(y))throw Error("p");T(y);if(!tb(y,c))throw Error("q`"+y);y[c][this.JSC$6648_id_]=Z;return this};
v.prototype.get=function(y){return I(y)&&tb(y,c)?y[c][this.JSC$6648_id_]:void 0};
v.prototype.has=function(y){return I(y)&&tb(y,c)&&tb(y[c],this.JSC$6648_id_)};
v.prototype.delete=function(y){return I(y)&&tb(y,c)&&tb(y[c],this.JSC$6648_id_)?delete y[c][this.JSC$6648_id_]:!1};
return v});
jD("Map",function(E){if(function(){if(!E||typeof E!="function"||!E.prototype.entries||typeof Object.seal!="function")return!1;try{var v=Object.seal({x:4}),y=new E(_.p([[v,"s"]]));if(y.get(v)!="s"||y.size!=1||y.get({x:4})||y.set({x:4},"t")!=y||y.size!=2)return!1;var Z=y.entries(),P=Z.next();if(P.done||P.value[0]!=v||P.value[1]!="s")return!1;P=Z.next();return P.done||P.value[0].x!=4||P.value[1]!="t"||!Z.next().done?!1:!0}catch(z){return!1}}())return E;
var B=new WeakMap,I=function(v){this[0]={};this[1]=c();this.size=0;if(v){v=_.p(v);for(var y;!(y=v.next()).done;)y=y.value,this.set(y[0],y[1])}};
I.prototype.set=function(v,y){v=v===0?0:v;var Z=T(this,v);Z.list||(Z.list=this[0][Z.id]=[]);Z.entry?Z.entry.value=y:(Z.entry={next:this[1],previous:this[1].previous,head:this[1],key:v,value:y},Z.list.push(Z.entry),this[1].previous.next=Z.entry,this[1].previous=Z.entry,this.size++);return this};
I.prototype.delete=function(v){v=T(this,v);return v.entry&&v.list?(v.list.splice(v.index,1),v.list.length||delete this[0][v.id],v.entry.previous.next=v.entry.next,v.entry.next.previous=v.entry.previous,v.entry.head=null,this.size--,!0):!1};
I.prototype.clear=function(){this[0]={};this[1]=this[1].previous=c();this.size=0};
I.prototype.has=function(v){return!!T(this,v).entry};
I.prototype.get=function(v){return(v=T(this,v).entry)&&v.value};
I.prototype.entries=function(){return e(this,function(v){return[v.key,v.value]})};
I.prototype.keys=function(){return e(this,function(v){return v.key})};
I.prototype.values=function(){return e(this,function(v){return v.value})};
I.prototype.forEach=function(v,y){for(var Z=this.entries(),P;!(P=Z.next()).done;)P=P.value,v.call(y,P[1],P[0],this)};
I.prototype[Symbol.iterator]=I.prototype.entries;var T=function(v,y){var Z=y&&typeof y;Z=="object"||Z=="function"?B.has(y)?Z=B.get(y):(Z=""+ ++Y,B.set(y,Z)):Z="p_"+y;var P=v[0][Z];if(P&&tb(v[0],Z))for(v=0;v<P.length;v++){var z=P[v];if(y!==y&&z.key!==z.key||y===z.key)return{id:Z,list:P,index:v,entry:z}}return{id:Z,list:P,index:-1,entry:void 0}},e=function(v,y){var Z=v[1];
return eI4(function(){if(Z){for(;Z.head!=v[1];)Z=Z.previous;for(;Z.next!=Z.head;)return Z=Z.next,{done:!1,value:y(Z)};Z=null}return{done:!0,value:void 0}})},c=function(){var v={};
return v.previous=v.next=v.head=v},Y=0;
return I});
jD("Set",function(E){if(function(){if(!E||typeof E!="function"||!E.prototype.entries||typeof Object.seal!="function")return!1;try{var I=Object.seal({x:4}),T=new E(_.p([I]));if(!T.has(I)||T.size!=1||T.add(I)!=T||T.size!=1||T.add({x:4})!=T||T.size!=2)return!1;var e=T.entries(),c=e.next();if(c.done||c.value[0]!=I||c.value[1]!=I)return!1;c=e.next();return c.done||c.value[0]==I||c.value[0].x!=4||c.value[1]!=c.value[0]?!1:e.next().done}catch(Y){return!1}}())return E;
var B=function(I){this.JSC$6662_map_=new Map;if(I){I=_.p(I);for(var T;!(T=I.next()).done;)this.add(T.value)}this.size=this.JSC$6662_map_.size};
B.prototype.add=function(I){I=I===0?0:I;this.JSC$6662_map_.set(I,I);this.size=this.JSC$6662_map_.size;return this};
B.prototype.delete=function(I){I=this.JSC$6662_map_.delete(I);this.size=this.JSC$6662_map_.size;return I};
B.prototype.clear=function(){this.JSC$6662_map_.clear();this.size=0};
B.prototype.has=function(I){return this.JSC$6662_map_.has(I)};
B.prototype.entries=function(){return this.JSC$6662_map_.entries()};
B.prototype.values=function(){return this.JSC$6662_map_.values()};
B.prototype.keys=B.prototype.values;B.prototype[Symbol.iterator]=B.prototype.values;B.prototype.forEach=function(I,T){var e=this;this.JSC$6662_map_.forEach(function(c){return I.call(T,c,c,e)})};
return B});
jD("Math.log2",function(E){return E?E:function(B){return Math.log(B)/Math.LN2}});
jD("Object.values",function(E){return E?E:function(B){var I=[],T;for(T in B)tb(B,T)&&I.push(B[T]);return I}});
jD("Object.is",function(E){return E?E:function(B,I){return B===I?B!==0||1/B===1/I:B!==B&&I!==I}});
jD("Array.prototype.includes",function(E){return E?E:function(B,I){var T=this;T instanceof String&&(T=String(T));var e=T.length;I=I||0;for(I<0&&(I=Math.max(I+e,0));I<e;I++){var c=T[I];if(c===B||Object.is(c,B))return!0}return!1}});
jD("String.prototype.includes",function(E){return E?E:function(B,I){return Vr(this,B,"includes").indexOf(B,I||0)!==-1}});
jD("Array.from",function(E){return E?E:function(B,I,T){I=I!=null?I:function(v){return v};
var e=[],c=typeof Symbol!="undefined"&&Symbol.iterator&&B[Symbol.iterator];if(typeof c=="function"){B=c.call(B);for(var Y=0;!(c=B.next()).done;)e.push(I.call(T,c.value,Y++))}else for(c=B.length,Y=0;Y<c;Y++)e.push(I.call(T,B[Y],Y));return e}});
jD("Object.entries",function(E){return E?E:function(B){var I=[],T;for(T in B)tb(B,T)&&I.push([T,B[T]]);return I}});
jD("Number.isFinite",function(E){return E?E:function(B){return typeof B!=="number"?!1:!isNaN(B)&&B!==Infinity&&B!==-Infinity}});
jD("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
jD("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
jD("Number.isInteger",function(E){return E?E:function(B){return Number.isFinite(B)?B===Math.floor(B):!1}});
jD("Number.isSafeInteger",function(E){return E?E:function(B){return Number.isInteger(B)&&Math.abs(B)<=Number.MAX_SAFE_INTEGER}});
jD("String.prototype.endsWith",function(E){return E?E:function(B,I){var T=Vr(this,B,"endsWith");I===void 0&&(I=T.length);I=Math.max(0,Math.min(I|0,T.length));for(var e=B.length;e>0&&I>0;)if(T[--I]!=B[--e])return!1;return e<=0}});
var sUQ=function(E,B){E instanceof String&&(E+="");var I=0,T=!1,e={next:function(){if(!T&&I<E.length){var c=I++;return{value:B(c,E[c]),done:!1}}T=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
jD("Array.prototype.entries",function(E){return E?E:function(){return sUQ(this,function(B,I){return[B,I]})}});
jD("Math.imul",function(E){return E?E:function(B,I){B=Number(B);I=Number(I);var T=B&65535,e=I&65535;return T*e+((B>>>16&65535)*e+T*(I>>>16&65535)<<16>>>0)|0}});
jD("Math.trunc",function(E){return E?E:function(B){B=Number(B);if(isNaN(B)||B===Infinity||B===-Infinity||B===0)return B;var I=Math.floor(Math.abs(B));return B<0?-I:I}});
jD("Number.isNaN",function(E){return E?E:function(B){return typeof B==="number"&&isNaN(B)}});
jD("Array.prototype.keys",function(E){return E?E:function(){return sUQ(this,function(B){return B})}});
jD("Array.prototype.values",function(E){return E?E:function(){return sUQ(this,function(B,I){return I})}});
jD("Array.prototype.fill",function(E){return E?E:function(B,I,T){var e=this.length||0;I<0&&(I=Math.max(0,e+I));if(T==null||T>e)T=e;T=Number(T);T<0&&(T=Math.max(0,e+T));for(I=Number(I||0);I<T;I++)this[I]=B;return this}});
var qs=function(E){return E?E:Array.prototype.fill};
jD("Int8Array.prototype.fill",qs);jD("Uint8Array.prototype.fill",qs);jD("Uint8ClampedArray.prototype.fill",qs);jD("Int16Array.prototype.fill",qs);jD("Uint16Array.prototype.fill",qs);jD("Int32Array.prototype.fill",qs);jD("Uint32Array.prototype.fill",qs);jD("Float32Array.prototype.fill",qs);jD("Float64Array.prototype.fill",qs);
jD("Object.fromEntries",function(E){return E?E:function(B){var I={};if(!(Symbol.iterator in B))throw new TypeError("r`"+B);B=B[Symbol.iterator].call(B);for(var T=B.next();!T.done;T=B.next()){T=T.value;if(Object(T)!==T)throw new TypeError("s");I[T[0]]=T[1]}return I}});
jD("String.prototype.replaceAll",function(E){return E?E:function(B,I){if(B instanceof RegExp&&!B.global)throw new TypeError("t");return B instanceof RegExp?this.replace(B,I):this.replace(new RegExp(String(B).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),I)}});
jD("Object.getOwnPropertySymbols",function(E){return E?E:function(){return[]}});
jD("String.prototype.repeat",function(E){return E?E:function(B){var I=Vr(this,null,"repeat");if(B<0||B>1342177279)throw new RangeError("u");B|=0;for(var T="";B;)if(B&1&&(T+=I),B>>>=1)I+=I;return T}});
jD("Array.prototype.findIndex",function(E){return E?E:function(B,I){return hIc(this,B,I).i}});
jD("Array.prototype.flatMap",function(E){return E?E:function(B,I){var T=[];Array.prototype.forEach.call(this,function(e,c){e=B.call(I,e,c,this);Array.isArray(e)?T.push.apply(T,e):T.push(e)});
return T}});
jD("String.prototype.codePointAt",function(E){return E?E:function(B){var I=Vr(this,null,"codePointAt"),T=I.length;B=Number(B)||0;if(B>=0&&B<T){B|=0;var e=I.charCodeAt(B);if(e<55296||e>56319||B+1===T)return e;B=I.charCodeAt(B+1);return B<56320||B>57343?e:(e-55296)*1024+B+9216}}});
jD("String.fromCodePoint",function(E){return E?E:function(B){for(var I="",T=0;T<arguments.length;T++){var e=Number(arguments[T]);if(e<0||e>1114111||e!==Math.floor(e))throw new RangeError("v`"+e);e<=65535?I+=String.fromCharCode(e):(e-=65536,I+=String.fromCharCode(e>>>10&1023|55296),I+=String.fromCharCode(e&1023|56320))}return I}});
jD("String.prototype.padStart",function(E){return E?E:function(B,I){var T=Vr(this,null,"padStart");B-=T.length;I=I!==void 0?String(I):" ";return(B>0&&I?I.repeat(Math.ceil(B/I.length)).substring(0,B):"")+T}});
jD("Promise.prototype.finally",function(E){return E?E:function(B){return this.then(function(I){return Promise.resolve(B()).then(function(){return I})},function(I){return Promise.resolve(B()).then(function(){throw I;
})})}});
jD("Object.hasOwn",function(E){return E?E:function(B,I){return Object.prototype.hasOwnProperty.call(B,I)}});
var uft=function(E){E=Math.trunc(E)||0;E<0&&(E+=this.length);if(!(E<0||E>=this.length))return this[E]};
jD("Array.prototype.at",function(E){return E?E:uft});
var FY=function(E){return E?E:uft};
jD("Int8Array.prototype.at",FY);jD("Uint8Array.prototype.at",FY);jD("Uint8ClampedArray.prototype.at",FY);jD("Int16Array.prototype.at",FY);jD("Uint16Array.prototype.at",FY);jD("Int32Array.prototype.at",FY);jD("Uint32Array.prototype.at",FY);jD("Float32Array.prototype.at",FY);jD("Float64Array.prototype.at",FY);jD("String.prototype.at",function(E){return E?E:uft});
jD("Math.sign",function(E){return E?E:function(B){B=Number(B);return B===0||isNaN(B)?B:B>0?1:-1}});
jD("Array.prototype.flat",function(E){return E?E:function(B){B=B===void 0?1:B;var I=[];Array.prototype.forEach.call(this,function(T){Array.isArray(T)&&B>0?(T=Array.prototype.flat.call(T,B-1),I.push.apply(I,T)):I.push(T)});
return I}});
jD("String.raw",function(E){return E?E:function(B,I){if(B==null)throw new TypeError("w");for(var T=B.raw,e=T.length,c="",Y=0;Y<e;++Y)c+=T[Y],Y+1<e&&Y+1<arguments.length&&(c+=String(arguments[Y+1]));return c}});
jD("Reflect.ownKeys",function(E){return E?E:function(B){var I=[],T=Object.getOwnPropertyNames(B);B=Object.getOwnPropertySymbols(B);for(var e=0;e<T.length;e++)(T[e].substring(0,14)=="jscomp_symbol_"?B:I).push(T[e]);return I.concat(B)}});
jD("Object.getOwnPropertyDescriptors",function(E){return E?E:function(B){for(var I={},T=Reflect.ownKeys(B),e=0;e<T.length;e++)I[T[e]]=Object.getOwnPropertyDescriptor(B,T[e]);return I}});
jD("WeakSet",function(E){if(function(){if(!E||!Object.seal)return!1;try{var I=Object.seal({}),T=Object.seal({}),e=new E([I]);if(!e.has(I)||e.has(T))return!1;e.delete(I);e.add(T);return!e.has(I)&&e.has(T)}catch(c){return!1}}())return E;
var B=function(I){this.JSC$6668_map_=new WeakMap;if(I){I=_.p(I);for(var T;!(T=I.next()).done;)this.add(T.value)}};
B.prototype.add=function(I){this.JSC$6668_map_.set(I,!0);return this};
B.prototype.has=function(I){return this.JSC$6668_map_.has(I)};
B.prototype.delete=function(I){return this.JSC$6668_map_.delete(I)};
return B});
jD("Promise.allSettled",function(E){function B(T){return{status:"fulfilled",value:T}}
function I(T){return{status:"rejected",reason:T}}
return E?E:function(T){var e=this;T=Array.from(T,function(c){return e.resolve(c).then(B,I)});
return e.all(T)}});
jD("Number.parseInt",function(E){return E||parseInt});
_._DumpException=window._DumpException||function(E){throw E;};
window._DumpException=_._DumpException;var Lui,D4,KJ,RP,xx6,GQf,On4,nc6,og,Mqt;Lui=Lui||{};_.$i=this||self;_.ka=function(E,B,I){E=E.split(".");I=I||_.$i;for(var T;E.length&&(T=E.shift());)E.length||B===void 0?I[T]&&I[T]!==Object.prototype[T]?I=I[T]:I=I[T]={}:I[T]=B};
D4=function(E){var B=_.WA("WIZ_global_data.oxN3nb");E=B&&B[E];return E!=null?E:!1};
KJ=_.$i._F_toggles||[];RP=function(){};
RP.get=function(){return null};
_.WA=function(E,B){E=E.split(".");B=B||_.$i;for(var I=0;I<E.length;I++)if(B=B[E[I]],B==null)return null;return B};
_.E8=function(E){E.instance_=void 0;E.getInstance=function(){return E.instance_?E.instance_:E.instance_=new E}};
_.cm=function(E){var B=typeof E;return B!="object"?B:E?Array.isArray(E)?"array":B:"null"};
_.Di=function(E){var B=_.cm(E);return B=="array"||B=="object"&&typeof E.length=="number"};
_.B6=function(E){var B=typeof E;return B=="object"&&E!=null||B=="function"};
_.$l=function(E){return Object.prototype.hasOwnProperty.call(E,xx6)&&E[xx6]||(E[xx6]=++GQf)};
xx6="closure_uid_"+(Math.random()*1E9>>>0);GQf=0;On4=function(E,B,I){return E.call.apply(E.bind,arguments)};
nc6=function(E,B,I){if(!E)throw Error();if(arguments.length>2){var T=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,T);return E.apply(B,e)}}return function(){return E.apply(B,arguments)}};
_.w1=function(E,B,I){_.w1=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?On4:nc6;return _.w1.apply(null,arguments)};
_.wY=function(E,B){var I=Array.prototype.slice.call(arguments,1);return function(){var T=I.slice();T.push.apply(T,arguments);return E.apply(this,T)}};
_.Bf=function(){return Date.now()};
og=function(E){return E};
_.$U=function(E,B){function I(){}
I.prototype=B.prototype;E.superClass_=B.prototype;E.prototype=new I;E.prototype.constructor=E;E.base=function(T,e,c){for(var Y=Array(arguments.length-2),v=2;v<arguments.length;v++)Y[v-2]=arguments[v];return B.prototype[e].apply(T,Y)}};
Mqt=function(E){return E};var PNd,dAF;_.k=function(E,B,I,T){var e=arguments.length,c=e<3?B:T===null?T=Object.getOwnPropertyDescriptor(B,I):T,Y;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")c=Reflect.decorate(E,B,I,T);else for(var v=E.length-1;v>=0;v--)if(Y=E[v])c=(e<3?Y(c):e>3?Y(B,I,c):Y(B,I))||c;return e>3&&c&&Object.defineProperty(B,I,c),c};
_.t=function(E,B){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(E,B)};
PNd=function(E,B){if(B!==null&&B!==void 0){if(typeof B!=="object"&&typeof B!=="function")throw new TypeError("x");if(I===void 0){if(!Symbol.dispose)throw new TypeError("z");var I=B[Symbol.dispose]}if(typeof I!=="function")throw new TypeError("A");E.stack.push({value:B,dispose:I,async:!1})}return B};
dAF=function(E){function B(c){E.error=E.hasError?new SuppressedError(c,E.error,"An error was suppressed during disposal."):c;E.hasError=!0}
function I(){for(;T=E.stack.pop();)try{if(!T.async&&e===1)return e=0,E.stack.push(T),Promise.resolve().then(I);if(T.dispose){var c=T.dispose.call(T.value);if(T.async)return e|=2,Promise.resolve(c).then(I,function(Y){B(Y);return I()})}else e|=1}catch(Y){B(Y)}if(e===1)return E.hasError?Promise.reject(E.error):Promise.resolve();
if(E.hasError)throw E.error;}
var T,e=0;I()};_.$U(_.Ec,Error);_.Ec.prototype.name="CustomError";var HnJ;var NDQ=void 0,gc4,SDQ=typeof TextDecoder!=="undefined",Iif,$Gi=typeof String.prototype.isWellFormed==="function",BJ4=typeof TextEncoder!=="undefined";var JWG;_.vp=function(E){for(var B=[],I=0,T=0;T<E.length;T++){var e=E.charCodeAt(T);e<128?B[I++]=e:(e<2048?B[I++]=e>>6|192:((e&64512)==55296&&T+1<E.length&&(E.charCodeAt(T+1)&64512)==56320?(e=65536+((e&1023)<<10)+(E.charCodeAt(++T)&1023),B[I++]=e>>18|240,B[I++]=e>>12&63|128):B[I++]=e>>12|224,B[I++]=e>>6&63|128),B[I++]=e&63|128)}return B};
JWG=function(E){for(var B=[],I=0,T=0;I<E.length;){var e=E[I++];if(e<128)B[T++]=String.fromCharCode(e);else if(e>191&&e<224){var c=E[I++];B[T++]=String.fromCharCode((e&31)<<6|c&63)}else if(e>239&&e<365){c=E[I++];var Y=E[I++],v=E[I++];e=((e&7)<<18|(c&63)<<12|(Y&63)<<6|v&63)-65536;B[T++]=String.fromCharCode(55296+(e>>10));B[T++]=String.fromCharCode(56320+(e&1023))}else c=E[I++],Y=E[I++],B[T++]=String.fromCharCode((e&15)<<12|(c&63)<<6|Y&63)}return B.join("")};var WuG,Xqi,rWQ,bni,ocd,AWF,jUd;_.Ir=String.prototype.trim?function(E){return E.trim()}:function(E){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(E)[1]};
WuG=/&/g;Xqi=/</g;rWQ=/>/g;bni=/"/g;ocd=/'/g;AWF=/\x00/g;jUd=/[\x00&<>"']/;var TO=!!(KJ[0]>>14&1),Ux6=!!(KJ[0]>>15&1),kQc=!!(KJ[0]&2),tq4=!!(KJ[0]&4),fjF=!!(KJ[0]&32),Vqt=!!(KJ[0]&256);var wJ=TO?Ux6:D4(610401301),qDQ=TO?kQc:D4(513659523),Fut=TO?tq4:D4(568333945),OHc=TO?fjF:D4(1331761403),DxQ=TO?Vqt:D4(103340015);var Zi,Ku6=_.$i.navigator;Zi=Ku6?Ku6.userAgentData||null:null;var by;_.XF=function(E,B){return Array.prototype.indexOf.call(E,B,void 0)};
_.bW=function(E,B,I){Array.prototype.forEach.call(E,B,I)};
_.ei=function(E,B,I){return Array.prototype.filter.call(E,B,I)};
_.yl=function(E,B,I){return Array.prototype.map.call(E,B,I)};
by=function(E,B,I){return Array.prototype.some.call(E,B,I)};
_.E2d=function(E,B,I){return Array.prototype.every.call(E,B,I)};var lq=function(E){lq[" "](E);return E},PM;
lq[" "]=function(){};
PM=function(E,B){try{return lq(E[B]),!0}catch(I){}return!1};
_.zpD=function(E,B,I,T){T=T?T(B):B;return Object.prototype.hasOwnProperty.call(E,T)?E[T]:E[T]=I(B)};var RIt,jg,E0F,BRG,IHD,TR4,EeD,eRG,lHF,cp4,rtd,piG,YJf,wii;_.dbQ=function(){return _.$i.navigator||null};
RIt=hD();_.cf=eti();jg=Q6("Edge");E0F=jg||_.cf;_.iq=Q6("Gecko")&&!(_.y6(_.C4(),"WebKit")&&!Q6("Edge"))&&!(Q6("Trident")||Q6("MSIE"))&&!Q6("Edge");_.pa=_.y6(_.C4(),"WebKit")&&!Q6("Edge");BRG=_.pa&&Q6("Mobile");_.$OG=_.yD4();IHD=_.CcF();TR4=(MG()?Zi.platform==="Linux":Q6("Linux"))||_.wGi();EeD=_.ait();eRG=viJ();lHF=Q6("iPad");cp4=Q6("iPod");_.ivi=_.HG();rtd=_.y6(_.C4(),"KaiOS");piG=function(){var E=_.$i.document;return E?E.documentMode:void 0};
a:{var aHd="",v0i=function(){var E=_.C4();if(_.iq)return/rv:([^\);]+)(\)|;)/.exec(E);if(jg)return/Edge\/([\d\.]+)/.exec(E);if(_.cf)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(E);if(_.pa)return/WebKit\/(\S+)/.exec(E);if(RIt)return/(?:Version)[ \/]?(\S+)/.exec(E)}();
v0i&&(aHd=v0i?v0i[1]:"");if(_.cf){var ypf=piG();if(ypf!=null&&ypf>parseFloat(aHd)){YJf=String(ypf);break a}}YJf=aHd}_.Cad=YJf;if(_.$i.document&&_.cf){var ZvF=piG();wii=ZvF?ZvF:parseInt(_.Cad,10)||void 0}else wii=void 0;_.Pac=wii;var wUt,ZCc,zRi;_.YU=uc();wUt=viJ()||Q6("iPod");ZCc=Q6("iPad");zRi=_.cDc();_.ar=_.Oc();_.M_=_.n4()&&!_.HG();var mO4,vf,Qqt,V6J,dO6,iMc,sqd,hR6;mO4={};vf=null;Qqt=_.iq||_.pa;V6J=Qqt||typeof _.$i.btoa=="function";dO6=Qqt||!_.M_&&typeof _.$i.atob=="function";_.tH=function(E,B){B===void 0&&(B=0);hR6();B=mO4[B];for(var I=Array(Math.floor(E.length/3)),T=B[64]||"",e=0,c=0;e<E.length-2;e+=3){var Y=E[e],v=E[e+1],y=E[e+2],Z=B[Y>>2];Y=B[(Y&3)<<4|v>>4];v=B[(v&15)<<2|y>>6];y=B[y&63];I[c++]=Z+Y+v+y}Z=0;y=T;switch(E.length-e){case 2:Z=E[e+1],y=B[(Z&15)<<2]||T;case 1:E=E[e],I[c]=B[E>>2]+B[(E&3)<<4|Z>>4]+y+T}return I.join("")};
iMc=function(E,B){if(dO6&&!B)return _.$i.atob(E);var I="";sqd(E,function(T){I+=String.fromCharCode(T)});
return I};
_.qhQ=function(E){var B=[];sqd(E,function(I){B.push(I)});
return B};
_.pV=function(E){var B=E.length,I=B*3/4;I%3?I=Math.floor(I):_.vG("=.",E[B-1])&&(I=_.vG("=.",E[B-2])?I-2:I-1);var T=new Uint8Array(I),e=0;sqd(E,function(c){T[e++]=c});
return e!==I?T.subarray(0,e):T};
sqd=function(E,B){function I(y){for(;T<E.length;){var Z=E.charAt(T++),P=vf[Z];if(P!=null)return P;if(!_.aB(Z))throw Error("E`"+Z);}return y}
hR6();for(var T=0;;){var e=I(-1),c=I(0),Y=I(64),v=I(64);if(v===64&&e===-1)break;B(e<<2|c>>4);Y!=64&&(B(c<<4&240|Y>>2),v!=64&&B(Y<<6&192|v))}};
hR6=function(){if(!vf){vf={};for(var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),B=["+/=","+/","-_=","-_.","-_"],I=0;I<5;I++){var T=E.concat(B[I].split(""));mO4[I]=T;for(var e=0;e<T.length;e++){var c=T[e];vf[c]===void 0&&(vf[c]=e)}}}};var JDd=typeof Uint8Array!=="undefined",xG6=!_.cf&&typeof btoa==="function",Gfd=/[-_.]/g,uFi={"-":"+",_:"/",".":"="},gr={};var Nt,Led;Nt=function(E,B){if(B!==gr)throw Error("G");this.JSC$6699_value_=E;if(E!=null&&E.length===0)throw Error("F");};
_.SN=function(){return uq4||(uq4=new Nt(null,gr))};
Led=function(E){return new Uint8Array(Q$(E)||0)};
Nt.prototype.isEmpty=function(){return this.JSC$6699_value_==null};
Nt.prototype.sizeBytes=function(){var E=Q$(this);return E?E.length:0};
var Q$=function(E){if(gr!==gr)throw Error("G");var B=E.JSC$6699_value_;B=B==null||JDd&&B!=null&&B instanceof Uint8Array?B:typeof B==="string"?O4B(B):null;return B==null?B:E.JSC$6699_value_=B},uq4;var Md6=void 0;var dr=typeof Symbol==="function"&&typeof Symbol()==="symbol",xOD=P6("jas",void 0,!0),rs=P6(void 0,"0di"),y$=P6(void 0,"1oa"),AH=P6(void 0,Symbol()),GUi=P6(void 0,"0ub"),AzQ=P6(void 0,"0ubs"),JHJ=P6(void 0,"0ubsb"),fXi=P6(void 0,"0actk"),JH=P6("m_m","messagePrototypeMarker",!0),bVG=P6(void 0,"vps"),nli=P6();var NJD,H44,Ih,G4Q;NJD={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};H44=Object.defineProperties;_.sZ=dr?xOD:"internalArrayState";G4Q=[];xl(G4Q,7);Ih=Object.freeze(G4Q);var X8={},Mt={},Ov6=function(E,B,I){this.iterable=E;this.mapper=B;this.thisArg=I};
Ov6.prototype.next=function(){var E=this.iterable.next();E.done||(E.value=this.mapper.call(this.thisArg,E.value));return E};
Ov6.prototype[Symbol.iterator]=function(){return this};
var n0c=Object.freeze({}),Xu={};_.MHG=bD(function(E){return E!==null&&E!==void 0});var oic=bD(function(E){return typeof E==="number"}),b44=bD(function(E){return typeof E==="string"}),ADB=bD(function(E){return typeof E==="boolean"}),Hvi=bD(function(E){return E!=null&&typeof E==="object"&&typeof E.then==="function"}),F$c=bD(function(E){return typeof E==="function"}),F4f=bD(function(E){return!!E&&(typeof E==="object"||typeof E==="function")});var o$=typeof _.$i.BigInt==="function"&&typeof _.$i.BigInt(0)==="bigint";var Hm=bD(function(E){return o$?E>=NRi&&E<=g0F:E[0]==="-"?jBD(E,SJG):jBD(E,Jpd)}),SJG=Number.MIN_SAFE_INTEGER.toString(),NRi=o$?BigInt(Number.MIN_SAFE_INTEGER):void 0,Jpd=Number.MAX_SAFE_INTEGER.toString(),g0F=o$?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Wei=typeof Uint8Array.prototype.slice==="function",UZ=0,fV=0,rF;var uL,G7,iL,O9,FQf;uL=typeof BigInt==="function"?BigInt.asIntN:void 0;_.nT=typeof BigInt==="function"?BigInt.asUintN:void 0;G7=Number.isSafeInteger;iL=Number.isFinite;O9=Math.trunc;FQf=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var olc={};var LRi={},XiD=function(){try{var E=function(){return cW6(Map,[],this.constructor)};
_.L(E,Map);lq(new E);return!1}catch(B){return!0}}(),ym=function(){this.JSC$6727_map_=new Map};
_.l=ym.prototype;_.l.get=function(E){return this.JSC$6727_map_.get(E)};
_.l.set=function(E,B){this.JSC$6727_map_.set(E,B);this.size=this.JSC$6727_map_.size;return this};
_.l.delete=function(E){E=this.JSC$6727_map_.delete(E);this.size=this.JSC$6727_map_.size;return E};
_.l.clear=function(){this.JSC$6727_map_.clear();this.size=this.JSC$6727_map_.size};
_.l.has=function(E){return this.JSC$6727_map_.has(E)};
_.l.entries=function(){return this.JSC$6727_map_.entries()};
_.l.keys=function(){return this.JSC$6727_map_.keys()};
_.l.values=function(){return this.JSC$6727_map_.values()};
_.l.forEach=function(E,B){return this.JSC$6727_map_.forEach(E,B)};
ym.prototype[Symbol.iterator]=function(){return this.entries()};
var fT=function(){if(XiD)return Object.setPrototypeOf(ym.prototype,Map.prototype),Object.defineProperties(ym.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),ym;var E=function(){return cW6(Map,[],this.constructor)};
_.L(E,Map);return E}(),bL=function(E,B,I,T){I=I===void 0?Q$i:I;
T=T===void 0?Q$i:T;var e=fT.call(this)||this;e.arrayState=E[_.sZ]|0;e.valueCtor=B;e.keyToApi=I;e.valueToApi=e.valueCtor?hZJ:T;for(var c=0;c<E.length;c++){var Y=E[c],v=I(Y[0],!1,!0),y=Y[1];B?y===void 0&&(y=null):y=T(Y[1],!1,!0,void 0,void 0,e.arrayState);fT.prototype.set.call(e,v,y)}return e};
_.L(bL,fT);var rp4=function(E){if(E.arrayState&2)throw Error("K");};
_.l=bL.prototype;_.l.clear=function(){rp4(this);fT.prototype.clear.call(this)};
_.l.delete=function(E){rp4(this);return fT.prototype.delete.call(this,this.keyToApi(E,!0,!1))};
_.l.entries=function(){if(this.valueCtor){var E=fT.prototype.keys.call(this);E=new Ov6(E,s$i,this)}else E=fT.prototype.entries.call(this);return E};
_.l.values=function(){if(this.valueCtor){var E=fT.prototype.keys.call(this);E=new Ov6(E,bL.prototype.get,this)}else E=fT.prototype.values.call(this);return E};
_.l.forEach=function(E,B){this.valueCtor?fT.prototype.forEach.call(this,function(I,T,e){E.call(B,e.get(T),T,e)}):fT.prototype.forEach.call(this,E,B)};
_.l.set=function(E,B){rp4(this);E=this.keyToApi(E,!0,!1);return E==null?this:B==null?(fT.prototype.delete.call(this,E),this):fT.prototype.set.call(this,E,this.valueToApi(B,!0,!0,this.valueCtor,!1,this.arrayState))};
_.l.has=function(E){return fT.prototype.has.call(this,this.keyToApi(E,!1,!1))};
_.l.get=function(E){E=this.keyToApi(E,!1,!1);var B=fT.prototype.get.call(this,E);if(B!==void 0){var I=this.valueCtor;return I?(I=this.valueToApi(B,!1,!0,I,this.callToMutableOnAccess,this.arrayState),I!==B&&fT.prototype.set.call(this,E,I),I):B}};
bL.prototype[Symbol.iterator]=function(){return this.entries()};
bL.prototype.toJSON=void 0;var uuf;var SZc=function(){},U9=function(E,B){for(var I in E)!isNaN(I)&&B(E,+I,E[I])},JzB=function(E){var B=new SZc;
U9(E,function(I,T,e){B[T]=R$(e)});
B.reviveUnknownFields=E.reviveUnknownFields;return B},MNG={reviveIntoImmutable:!0};var glF;var j$c,Utt;var bv6,c9,iE,yU,o0D,dV,aH,Ap6,jqG,xU,UOD,GO,Md,Hf;bv6=_.jN(0);_.Ca={};_.wV=function(E,B,I,T,e){B=c9(E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B,I,e);if(B!==null||T&&E.noLegacyNull!==Mt)return B};
c9=function(E,B,I,T){if(B===-1)return null;var e=B+(I?0:-1),c=E.length-1;if(!(c<1+(I?0:-1))){if(e>=c){var Y=E[c];if(Y!=null&&typeof Y==="object"&&Y.constructor===Object){I=Y[B];var v=!0}else if(e===c)I=Y;else return}else I=E[e];if(T&&I!=null){T=T(I);if(T==null)return T;if(!Object.is(T,I))return v?Y[B]=T:E[e]=T,T}return I}};
_.Rk=function(E,B,I,T){EX(E);var e=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;B9(e,e[_.sZ]|0,B,I,T);return E};
_.Zc=function(E,B,I){E=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return wF(E,E[_.sZ]|0,B,I)!==void 0};
_.Pf=function(E,B,I,T){var e=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return wF(e,e[_.sZ]|0,B,yU(E,T,I))!==void 0};
_.Ux=function(E){return E===n0c?2:4};
_.zO=function(E,B){E=_.wV(E,B,void 0,void 0,EIc);return E==null?_.SN():E};
iE=function(E,B,I,T){EX(E);var e=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=e[_.sZ]|0;if(T==null){var Y=$It(e);if(I1D(Y,e,c,I)===B)Y.set(I,0);else return E}else c=Ts4(e,c,I,B);B9(e,c,B,T);return E};
_.mp=function(E,B,I,T){var e=E[_.sZ]|0,c=rr(e);e=Ts4(E,e,I,B,c);B9(E,e,B,T,c)};
yU=function(E,B,I){return _.Qm(E,B)===I?I:-1};
_.Qm=function(E,B){E=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return I1D($It(E),E,void 0,B,void 0)};
o0D=function(E,B,I){var T=E[_.sZ]|0,e=rr(T),c=c9(E,I,e);if(c!=null&&c[JH]===X8){if(!H6(c))return Rg(c),c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var Y=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(c)&&(Y=c);if(Y){var v=Y[_.sZ]|0;v&2&&(Y=D1(Y,v))}Y=F8(Y,B,!0);Y!==c&&B9(E,T,I,Y,e);return Y};
_.DZ=function(E,B,I,T){var e=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=e[_.sZ]|0;B=wF(e,c,B,I,T);if(B==null)return B;c=e[_.sZ]|0;if(!H6(E,c)){var Y=dti(B);Y!==B&&(Rg(E)&&(e=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=e[_.sZ]|0),B=Y,B9(e,c,I,B,T))}return B};
_.jC=function(E,B,I,T){var e=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return eOJ(E,e,e[_.sZ]|0,B,I,T,!1,!0)};
_.fX=function(E,B,I,T){I=l1i(I);_.Rk(E,B,I,T);return E};
_.V$=function(E,B,I,T){T=l1i(T);iE(E,B,I,T);return E};
dV=function(E,B,I){EX(E);var T=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=T[_.sZ]|0;if(I==null)return B9(T,e,B),E;for(var c=I===Ih?7:I[_.sZ]|0,Y=c,v=lh(c),y=v||Object.isFrozen(I),Z=!0,P=!0,z=0;z<I.length;z++){var m=I[z];v||(m=H6(m),Z&&(Z=!m),P&&(P=m))}v||(c=Z?13:5,c=P?c&-4097:c|4096);y&&c===Y||(I=R$(I),Y=0,c=T2(c,e));c!==Y&&xl(I,c);B9(T,e,B,I);return E};
aH=function(E,B,I,T){iTc(E,B,I,T);return E};
Ap6=function(E,B,I){iTc(E,B,hs,void 0,I,1,!0);return E};
_.uq=function(E,B,I){E=_.wV(E,B,void 0,I);B=typeof E;E=E==null?E:B==="bigint"?_.jN((0,_.nT)(64,E)):_.pT(E)?B==="string"?_.aXB(E):_.p6t(E):void 0;return E};
_.La=function(E,B){var I=I===void 0?!1:I;var T;return(T=_.qcd(_.wV(E,B)))!=null?T:I};
_.kr=function(E,B,I){I=I===void 0?0:I;var T;return(T=_.m2(_.wV(E,B)))!=null?T:I};
jqG=function(E,B){var I=I===void 0?0:I;E=_.hH(_.wV(E,B));return E!=null?E:I};
xU=function(E,B,I){I=I===void 0?bv6:I;var T;return(T=_.CDJ(_.wV(E,B)))!=null?T:I};
UOD=function(E){var B=B===void 0?bv6:B;var I;return(I=_.uq(E,23))!=null?I:B};
GO=function(E,B){var I=I===void 0?0:I;var T;return(T=_.wV(E,B,void 0,void 0,_.lL))!=null?T:I};
_.O8=function(E,B,I,T){I=I===void 0?"":I;var e;return(e=_.St(_.wV(E,B,T)))!=null?e:I};
_.na=function(E,B){var I=I===void 0?0:I;var T;return(T=_.yd(_.wV(E,B)))!=null?T:I};
Md=function(E,B){var I=I===void 0?"0":I;E=yzf(_.wV(E,B),!0);return E!=null?E:I};
Hf=function(E,B,I){return _.O8(E,yU(E,I,B))};
_.Nd=function(E,B,I,T){return _.DZ(E,B,yU(E,T,I),void 0)};
_.ee=function(E,B){return _.St(_.wV(E,B,void 0,_.Ca))};
_.q8=function(E,B,I){return _.Rk(E,B,Vd4(I))};
_.LC=function(E,B,I){return _.Yy(E,B,Vd4(I),!1)};
_.gV=function(E,B,I){return _.Rk(E,B,_.z7(I))};
_.w9=function(E,B,I){return _.Rk(E,B,xI(I))};
_.$r=function(E,B,I){return _.Rk(E,B,gs(I))};
_.Fz=function(E,B,I,T){return _.Yy(E,B,gs(I),"",T)};
_.KF=function(E,B,I){return _.Rk(E,B,I==null?I:_.YI(I))};
_.Si=function(E,B,I){return _.Yy(E,B,I==null?I:_.YI(I),0)};var P9=function(E,B,I){this.buffer=E;if(I&&!B)throw Error();this.JSC$6739_isImmutable=B};var k4i=function(E,B,I,T){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6742_start_=0;this.init(E,B,I,T)},Js,fHf,VHc,Fec,G7d;
_.l=k4i.prototype;_.l.init=function(E,B,I,T){var e=T===void 0?{}:T;T=e.aliasBytesFields===void 0?!1:e.aliasBytesFields;e=e.treatNewDataAsImmutable===void 0?!1:e.treatNewDataAsImmutable;this.aliasBytesFields=T;this.treatNewDataAsImmutable=e;E&&(E=pmF(E,this.treatNewDataAsImmutable),this.bytes_=E.buffer,this.bytesAreImmutable_=E.JSC$6739_isImmutable,this.JSC$6742_start_=B||0,this.end_=I!==void 0?this.JSC$6742_start_+I:this.bytes_.length,this.cursor_=this.JSC$6742_start_)};
_.l.free=function(){this.clear();tHF.length<100&&tHF.push(this)};
_.l.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6742_start_=0;this.aliasBytesFields=!1};
_.l.reset=function(){this.cursor_=this.JSC$6742_start_};
_.l.atEnd=function(){return this.cursor_==this.end_};
_.Wf=function(E,B){var I=0,T=0,e=0,c=E.bytes_,Y=E.cursor_;do{var v=c[Y++];I|=(v&127)<<e;e+=7}while(e<32&&v&128);e>32&&(T|=(v&127)>>4);for(e=3;e<32&&v&128;e+=7)v=c[Y++],T|=(v&127)<<e;Js(E,Y);if(v<128)return B(I>>>0,T>>>0);throw Error("X");};
Js=function(E,B){E.cursor_=B;if(B>E.end_)throw Error("Y`"+B+"`"+E.end_);};
_.XG=function(E){var B=E.bytes_,I=E.cursor_,T=B[I++],e=T&127;if(T&128&&(T=B[I++],e|=(T&127)<<7,T&128&&(T=B[I++],e|=(T&127)<<14,T&128&&(T=B[I++],e|=(T&127)<<21,T&128&&(T=B[I++],e|=T<<28,T&128&&B[I++]&128&&B[I++]&128&&B[I++]&128&&B[I++]&128&&B[I++]&128)))))throw Error("X");Js(E,I);return e};
_.rV=function(E){var B=E.bytes_,I=E.cursor_,T=B[I],e=B[I+1],c=B[I+2];B=B[I+3];Js(E,E.cursor_+4);return(T<<0|e<<8|c<<16|B<<24)>>>0};
fHf=function(E){var B=_.rV(E);E=_.rV(E);return td6(B,E)};
VHc=function(E){var B=_.rV(E),I=_.rV(E);E=(I>>31)*2+1;var T=I>>>20&2047;B=4294967296*(I&1048575)+B;return T==2047?B?NaN:E*Infinity:T==0?E*4.9E-324*B:E*Math.pow(2,T-1075)*(B+4503599627370496)};
_.qJi=function(E){for(var B=0,I=E.cursor_,T=I+10,e=E.bytes_;I<T;){var c=e[I++];B|=c;if((c&128)===0)return Js(E,I),!!(B&127)}throw Error("X");};
Fec=function(E,B){if(B<0)throw Error("Z`"+B);var I=E.cursor_,T=I+B;if(T>E.end_)throw Error("Y`"+(E.end_-I)+"`"+B);E.cursor_=T;return I};
G7d=function(E,B){if(B==0)return _.SN();var I=Fec(E,B);E.aliasBytesFields&&E.bytesAreImmutable_?I=E.bytes_.subarray(I,I+B):(E=E.bytes_,B=I+B,I=I===B?new Uint8Array(0):Wei?E.slice(I,B):new Uint8Array(E.subarray(I,B)));return I.length==0?_.SN():new Nt(I,gr)};
k4i.prototype.getDataView=function(){var E=this.dataView_;E||(E=this.bytes_,E=this.dataView_=new DataView(E.buffer,E.byteOffset,E.byteLength));return E};
var tHF=[];var KeB=function(E,B,I,T){if(tHF.length){var e=tHF.pop();e.init(E,B,I,T);E=e}else E=new k4i(E,B,I,T);this.decoder_=E;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;DOG(this,T)},DOG=function(E,B){B=B===void 0?{}:B;
E.discardUnknownFields=B.discardUnknownFields===void 0?!1:B.discardUnknownFields},Mti=function(E,B,I,T){if(RRJ.length){var e=RRJ.pop();
DOG(e,T);e.decoder_.init(E,B,I,T);return e}return new KeB(E,B,I,T)},L2t,OX,EdD,RRJ;
KeB.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;RRJ.length<100&&RRJ.push(this)};
KeB.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
L2t=function(E){if(E.decoder_.atEnd())return!1;E.fieldCursor_=E.decoder_.cursor_;var B=_.XG(E.decoder_)>>>0,I=B>>>3;B&=7;if(!(B>=0&&B<=5))throw Error("T`"+B+"`"+E.fieldCursor_);if(I<1)throw Error("U`"+I+"`"+E.fieldCursor_);E.nextField_=I;E.nextWireType_=B;return!0};
OX=function(E){switch(E.nextWireType_){case 0:E.nextWireType_!=0?OX(E):_.qJi(E.decoder_);break;case 1:E=E.decoder_;Js(E,E.cursor_+8);break;case 2:if(E.nextWireType_!=2)OX(E);else{var B=_.XG(E.decoder_)>>>0;E=E.decoder_;Js(E,E.cursor_+B)}break;case 5:E=E.decoder_;Js(E,E.cursor_+4);break;case 3:B=E.nextField_;do{if(!L2t(E))throw Error("V");if(E.nextWireType_==4){if(E.nextField_!=B)throw Error("W");break}OX(E)}while(1);break;default:throw Error("T`"+E.nextWireType_+"`"+E.fieldCursor_);}};
EdD=function(E,B,I){var T=E.decoder_.end_,e=_.XG(E.decoder_)>>>0,c=E.decoder_.cursor_+e,Y=c-T;Y<=0&&(E.decoder_.end_=c,I(B,E,void 0,void 0,void 0),Y=c-E.decoder_.cursor_);if(Y)throw Error("S`"+e+"`"+(e-Y));E.decoder_.cursor_=c;E.decoder_.end_=T};
_.Bci=function(E){var B=_.XG(E.decoder_)>>>0;E=E.decoder_;var I=Fec(E,B);E=E.bytes_;if(SDQ){var T=E,e;(e=gc4)||(e=gc4=new TextDecoder("utf-8",{fatal:!0}));B=I+B;T=I===0&&B===T.length?T:T.subarray(I,B);try{var c=e.decode(T)}catch(Z){if(NDQ===void 0){try{e.decode(new Uint8Array([128]))}catch(P){}try{e.decode(new Uint8Array([97])),NDQ=!0}catch(P){NDQ=!1}}!NDQ&&(gc4=void 0);throw Z;}}else{c=I;B=c+B;I=[];for(var Y=null,v,y;c<B;)v=E[c++],v<128?I.push(v):v<224?c>=B?BG():(y=E[c++],v<194||(y&192)!==128?(c--,
BG()):I.push((v&31)<<6|y&63)):v<240?c>=B-1?BG():(y=E[c++],(y&192)!==128||v===224&&y<160||v===237&&y>=160||((e=E[c++])&192)!==128?(c--,BG()):I.push((v&15)<<12|(y&63)<<6|e&63)):v<=244?c>=B-2?BG():(y=E[c++],(y&192)!==128||(v<<28)+(y-144)>>30!==0||((e=E[c++])&192)!==128||((T=E[c++])&192)!==128?(c--,BG()):(v=(v&7)<<18|(y&63)<<12|(e&63)<<6|T&63,v-=65536,I.push((v>>10&1023)+55296,(v&1023)+56320))):BG(),I.length>=8192&&(Y=EiG(Y,I),I.length=0);c=EiG(Y,I)}return c};
_.$vi=function(E){var B=_.XG(E.decoder_)>>>0;return G7d(E.decoder_,B)};
_.IJd=function(E,B,I){var T=_.XG(E.decoder_)>>>0;for(T=E.decoder_.cursor_+T;E.decoder_.cursor_<T;)I.push(B(E.decoder_))};
RRJ=[];_.LX=function(E,B,I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E,B,I)};
_.LX.prototype.toJSON=function(){return Vd(this)};
_.LX.prototype.serialize=function(E){return JSON.stringify(Vd(this,E))};
var IKi=function(E,B){if(B==null||B=="")return new E;B=JSON.parse(B);if(!Array.isArray(B))throw Error("$");return new E(Sc4(B))};
_.LX.prototype.getExtension=function(E){OVc(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E.fieldIndex);HVc(this,E.fieldIndex);return E.ctor?E.isRepeated?E.getExtensionFn(this,E.ctor,E.fieldIndex,_.Ux(),E.JSC$6752_hasMessageId):E.getExtensionFn(this,E.ctor,E.fieldIndex,E.JSC$6752_hasMessageId):E.isRepeated?E.getExtensionFn(this,E.fieldIndex,_.Ux(),E.JSC$6752_hasMessageId):E.getExtensionFn(this,E.fieldIndex,E.defaultValue,E.JSC$6752_hasMessageId)};
_.LX.prototype.clone=function(){var E=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return new this.constructor(D1(E,E[_.sZ]|0,!1))};
_.LX.prototype[JH]=X8;_.LX.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var TcD=function(E,B){this.JSC$6754_lo=E>>>0;this.JSC$6754_hi=B>>>0},lJi=function(E){if(!E)return eeB||(eeB=new TcD(0,0));
if(!/^\d+$/.test(E))return null;KV(E);return new TcD(UZ,fV)},eeB,jgF=function(E,B){this.JSC$6756_lo=E>>>0;
this.JSC$6756_hi=B>>>0},oIc=function(E){if(!E)return cOc||(cOc=new jgF(0,0));
if(!/^-?\d+$/.test(E))return null;KV(E);return new jgF(UZ,fV)},cOc;var iZc=function(){this.JSC$6758_buffer_=[]},AHQ,pgB;
iZc.prototype.length=function(){return this.JSC$6758_buffer_.length};
iZc.prototype.end=function(){var E=this.JSC$6758_buffer_;this.JSC$6758_buffer_=[];return E};
AHQ=function(E,B,I){for(;I>0||B>127;)E.JSC$6758_buffer_.push(B&127|128),B=(B>>>7|I<<25)>>>0,I>>>=7;E.JSC$6758_buffer_.push(B)};
pgB=function(E,B){for(;B>127;)E.JSC$6758_buffer_.push(B&127|128),B>>>=7;E.JSC$6758_buffer_.push(B)};
_.UIG=function(E,B){if(B>=0)pgB(E,B);else{for(var I=0;I<9;I++)E.JSC$6758_buffer_.push(B&127|128),B>>=7;E.JSC$6758_buffer_.push(1)}};
_.bh=function(E,B){E.JSC$6758_buffer_.push(B>>>0&255);E.JSC$6758_buffer_.push(B>>>8&255);E.JSC$6758_buffer_.push(B>>>16&255);E.JSC$6758_buffer_.push(B>>>24&255)};var YQ6,Sa,ttc,q9i;YQ6=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new iZc};
Sa=function(E,B){B.length!==0&&(E.blocks_.push(B),E.totalLength_+=B.length)};
_.yHJ=function(E,B){_.X5(E,B,2);B=E.encoder_.end();Sa(E,B);B.push(E.totalLength_);return B};
_.CLG=function(E,B){var I=B.pop();for(I=E.totalLength_+E.encoder_.length()-I;I>127;)B.push(I&127|128),I>>>=7,E.totalLength_++;B.push(I);E.totalLength_++};
_.X5=function(E,B,I){pgB(E.encoder_,B*8+I)};
ttc=function(E,B,I){if(I!=null){switch(typeof I){case "string":lJi(I)}_.X5(E,B,1);switch(typeof I){case "number":E=E.encoder_;UGB(I);_.bh(E,UZ);_.bh(E,fV);break;case "bigint":I=BigInt.asUintN(64,I);I=new TcD(Number(I&BigInt(4294967295)),Number(I>>BigInt(32)));E=E.encoder_;B=I.JSC$6754_hi;_.bh(E,I.JSC$6754_lo);_.bh(E,B);break;default:I=lJi(I),E=E.encoder_,B=I.JSC$6754_hi,_.bh(E,I.JSC$6754_lo),_.bh(E,B)}}};
q9i=function(E,B,I){_.X5(E,B,2);pgB(E.encoder_,I.length);Sa(E,E.encoder_.end());Sa(E,I)};var Y9Q,yOG,wgt;Y9Q=_.dF();_.aJc=_.dF();_.vdf=_.dF();yOG=_.dF();_.bq=_.dF();_.CHF=_.dF();wgt=_.dF();_.ZZJ=_.dF();_.PH6=_.dF();var h5=function(E,B,I){this.$$binaryReaderFn=E;this.$$binaryWriterFn=B;E=og(Y9Q);this.$$isMsg=!!E&&I===E||!1},zOc=a1d(function(E,B,I,T,e){if(E.nextWireType_!==2)return!1;
EdD(E,o0D(B,T,I),e);return!0},wmJ),mIf=a1d(function(E,B,I,T,e){if(E.nextWireType_!==2)return!1;
EdD(E,o0D(B,T,I),e);return!0},wmJ),H9=Symbol(),xy=Symbol(),u8f=Symbol(),Nsf=Symbol(),OTf=Symbol(),ZTd,PLJ;var Eyi,zec,mv6,QKc,dvG,heB,sKD,ubD,L9c,xvd,Gpf,ndt,MEc,Nct,gd4;Eyi=function(E,B){var I=new YQ6;gIi(E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I,uh(H9,MV,gF,B));Sa(I,I.encoder_.end());E=new Uint8Array(I.totalLength_);B=I.blocks_;for(var T=B.length,e=0,c=0;c<T;c++){var Y=B[c];E.set(Y,e);e+=Y.length}I.blocks_=[E];return E};
zec=_.J5(function(E,B,I){if(E.nextWireType_!==1)return!1;_.W9(B,I,VHc(E.decoder_));return!0},bTc,wgt);
mv6=_.J5(function(E,B,I,T){if(E.nextWireType_!==1)return!1;_.mp(B,I,T,VHc(E.decoder_));return!0},bTc,wgt);
QKc=_.J5(function(E,B,I,T){if(E.nextWireType_!==5)return!1;var e=_.rV(E.decoder_);E=(e>>31)*2+1;var c=e>>>23&255;e&=8388607;_.mp(B,I,T,c==255?e?NaN:E*Infinity:c==0?E*1.401298464324817E-45*e:E*Math.pow(2,c-150)*(e+8388608));return!0},function(E,B,I){B=_.lL(B);
B!=null&&(_.X5(E,I,5),E=E.encoder_,I=rF||(rF=new DataView(new ArrayBuffer(8))),I.setFloat32(0,+B,!0),fV=0,UZ=I.getUint32(0,!0),_.bh(E,UZ))},_.dF());
_.As=_.J5(function(E,B,I){if(E.nextWireType_!==0)return!1;_.W9(B,I,_.Wf(E.decoder_,Fu));return!0},_.oh,_.bq);
dvG=_.J5(function(E,B,I){if(E.nextWireType_!==0)return!1;E=_.Wf(E.decoder_,Fu);_.W9(B,I,E===0?void 0:E);return!0},_.oh,_.bq);
heB=_.J5(function(E,B,I,T){if(E.nextWireType_!==0)return!1;_.mp(B,I,T,_.Wf(E.decoder_,Fu));return!0},_.oh,_.bq);
_.ji=_.J5(function(E,B,I){if(E.nextWireType_!==0)return!1;_.W9(B,I,_.XG(E.decoder_));return!0},k7J,yOG);
sKD=_.J5(function(E,B,I){if(E.nextWireType_!==0)return!1;E=_.XG(E.decoder_);_.W9(B,I,E===0?void 0:E);return!0},k7J,yOG);
ubD=_.J5(function(E,B,I,T){if(E.nextWireType_!==0)return!1;_.mp(B,I,T,_.XG(E.decoder_));return!0},k7J,yOG);
L9c=_.J5(function(E,B,I){if(E.nextWireType_!==1)return!1;_.W9(B,I,fHf(E.decoder_));return!0},_.f1Q,_.CHF);
xvd=_.Xm4(function(E,B,I){if(E.nextWireType_!==1&&E.nextWireType_!==2)return!1;B=_.v9(B,B[_.sZ]|0,I);E.nextWireType_==2?_.IJd(E,fHf,B):B.push(fHf(E.decoder_));return!0},function(E,B,I){B=_.W2c(ZVD,B,!1);
if(B!=null)for(var T=0;T<B.length;T++)ttc(E,I,B[T])},_.CHF);
_.U8=_.J5(function(E,B,I){if(E.nextWireType_!==0)return!1;_.W9(B,I,_.qJi(E.decoder_));return!0},_.VtG,_.aJc);
Gpf=_.J5(function(E,B,I,T){if(E.nextWireType_!==0)return!1;_.mp(B,I,T,_.qJi(E.decoder_));return!0},_.VtG,_.aJc);
_.kU=_.J5(function(E,B,I){if(E.nextWireType_!==2)return!1;_.W9(B,I,_.Bci(E));return!0},_.F2G,_.vdf);
_.OZ6=_.J5(function(E,B,I,T){if(E.nextWireType_!==2)return!1;_.mp(B,I,T,_.Bci(E));return!0},_.F2G,_.vdf);
ndt=_.Xm4(function(E,B,I){if(E.nextWireType_!==2)return!1;E=_.Bci(E);_.v9(B,B[_.sZ]|0,I).push(E);return!0},function(E,B,I){B=_.W2c(_.St,B,!0);
if(B!=null)for(var T=0;T<B.length;T++){var e=E,c=I,Y=B[T];Y!=null&&q9i(e,c,TJf(Y))}},_.vdf);
MEc=void 0;MEc=MEc===void 0?Y9Q:MEc;_.ts=new h5(function(E,B,I,T,e){if(E.nextWireType_!==2)return!1;T=F8(void 0,T,!0);_.v9(B,B[_.sZ]|0,I).push(T);EdD(E,T,e);return!0},function(E,B,I,T,e){if(Array.isArray(B))for(var c=0;c<B.length;c++)DIi(E,B[c],I,T,e)},MEc);
_.fa=a1d(function(E,B,I,T,e,c){if(E.nextWireType_!==2)return!1;var Y=B[_.sZ]|0;Ts4(B,Y,c,I,rr(Y));B=o0D(B,T,I);EdD(E,B,e);return!0},DIi);
_.HZF=_.J5(function(E,B,I){if(E.nextWireType_!==2)return!1;_.W9(B,I,_.$vi(E));return!0},_.K2d,_.ZZJ);
Nct=_.J5(function(E,B,I,T){if(E.nextWireType_!==2)return!1;_.mp(B,I,T,_.$vi(E));return!0},_.K2d,_.ZZJ);
gd4=_.J5(function(E,B,I,T){if(E.nextWireType_!==0)return!1;_.mp(B,I,T,_.XG(E.decoder_)>>>0);return!0},function(E,B,I){B=_.hH(B);
B!=null&&B!=null&&(_.X5(E,I,0),pgB(E.encoder_,B))},_.dF());
_.Vm=_.J5(function(E,B,I){if(E.nextWireType_!==0)return!1;_.W9(B,I,_.XG(E.decoder_));return!0},_.ROi,_.PH6);var W9G=function(){var E=SQt,B=JOc;this.fieldIndex=175237375;this.ctor=B;this.isRepeated=0;this.getExtensionFn=_.DZ;this.defaultValue=void 0;this.JSC$6752_hasMessageId=E.messageId!=null?Xu:void 0};
W9G.prototype.register=function(){lq(this)};var XgF=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(XgF,_.LX);var rOF=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(rOF,_.LX);var lKJ=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(lKJ,_.LX);var bZc=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(bZc,_.LX);var odG=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(odG,_.LX);var AOt=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(AOt,_.LX);var jKi=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(jKi,_.LX);jKi.prototype.getData=function(){return _.zO(this,2)};var Uvi=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Uvi,_.LX);var kpG=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(kpG,_.LX);kpG.prototype.getStyle=function(){return _.DZ(this,XgF,1)};var t5=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(t5,_.LX);t5.prototype.getPayloadCase=function(){return _.Qm(this,qV)};
t5.prototype.getStyle=function(){return _.Nd(this,kpG,6,qV)};
var tEc=function(){var E=new t5,B=new odG;return _.V$(E,7,qV,B)},fJd=function(){var E=new t5,B=new AOt;
return _.V$(E,8,qV,B)},qV=[1,
2,3,4,5,6,7,8];var VEi=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(VEi,_.LX);var qQ6=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(qQ6,_.LX);var F9d=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(F9d,_.LX);var DvD=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(DvD,_.LX);var K9J=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(K9J,_.LX);var ReF=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(ReF,_.LX);var Ei6=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Ei6,_.LX);var BJV=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(BJV,_.LX);BJV.prototype.getData=function(){return _.zO(this,2)};var $GX=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L($GX,_.LX);var eGc=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(eGc,_.LX);eGc.prototype.getPayloadCase=function(){return _.Qm(this,qd)};
var qd=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var FG=function(E,B){E=Error.call(this,E);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.code=B===void 0?2:B};
_.L(FG,Error);var IiU=Promise;var TJU=function(E){this.channelPromise=E};
TJU.prototype.send=function(E,B,I){this.channelPromise.then(function(T){T.send(E,B,I)})};var etl=function(E,B){this.data=E;this.channel=B};
etl.prototype.reply=function(E,B,I){this.channel.send(E,B,I)};var li6=function(E){this.JSC$6830_port_=E};
li6.prototype.send=function(E,B,I){I=I===void 0?[]:I;var T=new MessageChannel;cDZ(T.port1,B);this.JSC$6830_port_.postMessage(E,[T.port2].concat(I))};
var i4N=function(E,B){cDZ(E,B);return new li6(E)},cDZ=function(E,B){B&&(E.onmessage=function(I){B(new etl(I.data,i4N(I.ports[0])))})};var pGX=function(E){this.verifier_=E},YcX=function(E){var B=Object.create(null);
(typeof E==="string"?[E]:E).forEach(function(I){if(I==="null")throw Error("ba");B[I]=!0});
return function(I){return B[I]===!0}};_.aiZ=function(){if(!_.$i.addEventListener||!Object.defineProperty)return!1;var E=!1,B=Object.defineProperty({},"passive",{get:function(){E=!0}});
try{var I=function(){};
_.$i.addEventListener("test",I,B);_.$i.removeEventListener("test",I,B)}catch(T){}return E}();var vir;_.Dc=function(E){var B=E.destination;var I=E.iframe;var T=E.origin;var e=E.channelName===void 0?"ZNWN1d":E.channelName;var c=E.onMessage===void 0?void 0:E.onMessage;E=E.onEstablished===void 0?void 0:E.onEstablished;return vir({destination:B,getSource:function(){return I.contentWindow},
originVerifier:T instanceof pGX?T:typeof T==="function"?new pGX(T):new pGX(YcX(T)),channelName:e,onMessage:c,onEstablished:E})};
vir=function(E){var B=E.destination;var I=E.getSource;var T=E.originVerifier;var e=E.token===void 0?void 0:E.token;var c=E.channelName;var Y=E.onMessage===void 0?void 0:E.onMessage;var v=E.onEstablished===void 0?void 0:E.onEstablished;return new TJU(new IiU(function(y,Z){var P=function(z){z.source&&z.source===I()&&T.verifier_(z.origin)&&(z.data.n||z.data)===c&&(B.removeEventListener("message",P,!1),e&&z.data.t!==e?Z(Error("ca`"+c+"`"+e+"`"+z.data.t)):(y(i4N(z.ports[0],Y)),v&&v(z)))};
B.addEventListener("message",P,!1)}))};var yDV=function(E){try{E()}catch(B){IB(B)}};var wGX=function(E){var B=this;var I=E.getMessageType;var T=E.onUnregisteredMessage===void 0?function(){}:E.onUnregisteredMessage;
var e=E.onBeforeRegisteredMessage===void 0?function(){}:E.onBeforeRegisteredMessage;
E=E.onAfterRegisteredMessage===void 0?function(){}:E.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=I;this.onUnregisteredMessage_=T;this.onBeforeRegisteredMessage_=e;this.onAfterRegisteredMessage_=E;this.onMessage=function(c){return Ccu(B,c)}};
wGX.prototype.register=function(E,B){this.registry_.set(E,B);return this};
var Ccu=function(E,B){var I=E.getMessageType_(B.data),T=E.registry_.get(I);T?(yDV(function(){return E.onBeforeRegisteredMessage_(B,I)}),yDV(function(){return T(B)}),yDV(function(){return E.onAfterRegisteredMessage_(B,I)})):yDV(function(){return E.onUnregisteredMessage_(B,I)})};var Z4D=function(E){this.JSC$6847_channel_=E},ztD,mG6;
Z4D.prototype.send=function(E,B,I){this.JSC$6847_channel_.send(Vd(E),B,I)};
_.Pcr=function(E,B){return function(I){var T=new E(I.data);return B(new etl(T,I.channel))}};
ztD=function(E){return function(B){return E(new etl(B.data,new Z4D(B.channel)))}};
mG6=function(E,B){return ztD(_.Pcr(E,B))};var QBr=function(E,B,I,T){this.registry=E;this.delegate=B;this.receiveMessageConstructor=I;this.createInitMessage=T;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},TFJ=function(E){var B=new wGX({getMessageType:E.getPayloadCase});
return new QBr(B,new Z4D(_.Dc({iframe:E.child,destination:window,origin:E.origin,channelName:E.channelName,onMessage:mG6(E.receiveMessageConstructor,B.onMessage)})),E.receiveMessageConstructor,E.createInitMessage)},dGV=function(E,B){E.createInitMessage=B};
QBr.prototype.send=function(E){if(!this.initialised)throw new FG("Attempted to send a message before initialisation.");this.delegate.send(E)};
var htz=function(E,B){return _.a(function(I){if(!E.initialised)throw new FG("Attempted to send a message before initialisation.");return I.return(new Promise(function(T){E.delegate.send(B,mG6(E.receiveMessageConstructor,T))}))})};
QBr.prototype.init=function(){var E=this;return _.a(function(B){if(E.initialised)throw new FG("Attempted to initialise twice. The SDK can only be initialised once.");if(E.createInitMessage!==void 0){var I=E.delegate,T=I.send,e=E.createInitMessage;var c=new rOF;var Y=[].concat(_.ad(E.features));c=_.ih(c,1,Y,_.YI);T.call(I,e.call(E,c))}E.initialised=!0;_.ER(B)})};
var Ka=function(E,B){if(E.initialised)throw new FG('Attempted to set up API "'+B+'" after initialisation. All APIs must be set up before initialising the SDK.');E.features.add(B);return E.registry};
_.Up.Object.defineProperties(QBr.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var sBD=function(E){this.channel=E;this.registered=!1};
sBD.prototype.update=function(E){if(this.channel.isInitialised){if(!this.registered)throw new FG("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var B=new t5;var I=new bZc;I=_.q8(I,1,E);B=_.V$(B,2,qV,I);this.channel.send(B)}else this.register();this.JSC$6861_audioEnabled=E};
sBD.prototype.register=function(){Ka(this.channel,1);this.registered=!0};
sBD.prototype.isAudioEnabled=function(){return this.JSC$6861_audioEnabled};var uFl=function(E){this.channel=E};
_.l=uFl.prototype;_.l.onFirstFrameReady=function(E){Ka(this.channel,2).register(11,function(B){B=_.Nd(B.data,VEi,11,qd);if(!B)throw new FG("Unexpectedly nonexistent GameFirstFrameReadyEvent");E(_.O8(B,1))})};
_.l.onReady=function(E){Ka(this.channel,2).register(4,function(B){B=_.Nd(B.data,F9d,4,qd);if(!B)throw new FG("Unexpectedly nonexistent GameReadyEvent");E(_.O8(B,1))})};
_.l.onLevelComplete=function(E){Ka(this.channel,2).register(5,function(B){B=_.Nd(B.data,DvD,5,qd);if(!B)throw new FG("Unexpectedly nonexistent LevelCompleteEvent");E(_.O8(B,1),_.kr(B,2))})};
_.l.onGameOver=function(E){Ka(this.channel,2).register(6,function(B){B=_.Nd(B.data,qQ6,6,qd);if(!B)throw new FG("Unexpectedly nonexistent GameOverEvent");E(_.O8(B,1))})};
_.l.pause=function(){var E=this;if(!this.channel.isInitialised)return Ka(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new FG("Using unregistered Game Feature: pause.");var B=tEc();return new Promise(function(I){return _.a(function(T){if(T.nextAddress==1)return _.C(T,htz(E.channel,B),2);I();_.ER(T)})})};
_.l.resume=function(){var E=this;if(!this.channel.isInitialised)return Ka(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new FG("Using unregistered Game Feature: resume.");var B=fJd();return new Promise(function(I){return _.a(function(T){if(T.nextAddress==1)return _.C(T,htz(E.channel,B),2);I();_.ER(T)})})};var LQl=function(E){this.channel=E};
LQl.prototype.onReady=function(E){Ka(this.channel,5).register(8,function(B){if(!_.Nd(B.data,K9J,8,qd))throw new FG("Unexpectedly nonexistent PageReadyEvent");E()})};var xGh=function(E){this.channel=E};
xGh.prototype.onChange=function(E){Ka(this.channel,3).register(7,function(B){B=_.Nd(B.data,ReF,7,qd);if(!B)throw new FG("Unexpectedly nonexistent ScoreEvent");E(_.O8(B,1),_.kr(B,2))})};var GfN={load:function(){throw new FG("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new FG("Storage used, but storage.onSave() listener not set!");}},O4$=function(E){this.channel=E;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},niV=function(E){Ka(E.channel,4).register(2,GfN.load).register(3,GfN.save);
E.initialSetupDone=!0};
O4$.prototype.onLoad=function(E){this.initialSetupDone||niV(this);this.loadRegistered||(this.loadRegistered=!0,Ka(this.channel,4).register(2,function(B){var I,T,e;return _.a(function(c){if(c.nextAddress==1){I=_.Nd(B.data,Ei6,2,qd);if(!I)throw new FG("Unexpectedly nonexistent StorageLoad");T=_.O8(I,1);return _.C(c,E(T),2)}e=c.yieldResult;var Y=B.reply,v=new t5;var y=new jKi;y=_.$r(y,1,T);y=_.Rk(y,2,_.Jz(e,!1));v=_.V$(v,3,qV,y);Y.call(B,v);_.ER(c)})}))};
O4$.prototype.onSave=function(E){this.initialSetupDone||niV(this);this.saveRegistered||(this.saveRegistered=!0,Ka(this.channel,4).register(3,function(B){var I,T,e;return _.a(function(c){if(c.nextAddress==1){I=_.Nd(B.data,BJV,3,qd);if(!I)throw new FG("Unexpectedly nonexistent StorageSave");T=_.O8(I,1);e=Led(I.getData());return _.C(c,E(T,e),2)}var Y=B.reply,v=new t5;var y=new Uvi;y=_.$r(y,1,T);v=_.V$(v,4,qV,y);Y.call(B,v);_.ER(c)})}))};var Mdh=function(E){this.channel=E};
Mdh.prototype.update=function(E){if(!this.channel.features.has(6))throw new FG("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var B=new t5,I=new kpG;E=_.fX(I,1,E);B=_.V$(B,6,qV,E);this.channel.send(B)};
Mdh.prototype.register=function(){Ka(this.channel,6)};var H4V=function(E){this.channel=E;this.userActivityLoggingIntervalMs=0};
H4V.prototype.onUserActivity=function(E,B){this.userActivityLoggingIntervalMs=B;Ka(this.channel,7).register(9,function(I){if(!_.Nd(I.data,$GX,9,qd))throw new FG("Unexpectedly nonexistent ClickEvent");E()})};var NJz=function(E){var B=this;this.channel=E;this.init=this.channel.init.bind(this.channel);this.page=new LQl(this.channel);this.game=new uFl(this.channel);this.audio=new sBD(this.channel);this.score=new xGh(this.channel);this.storage=new O4$(this.channel);this.style=new Mdh(this.channel);this.userActivity=new H4V(this.channel);dGV(this.channel,function(I){var T=new lKJ;I=_.fX(T,1,I);I=_.gV(I,3,B.userActivity.userActivityLoggingIntervalMs);T=B.audio.isAudioEnabled();T!==void 0&&_.q8(I,2,T);T=new t5;
return _.V$(T,5,qV,I)})};var giV=function(){this.timedFunctionContext=0};
giV.prototype.timeExecution=function(E,B){var I=this;return function(){var T=_.aG.apply(0,arguments);I.timedFunctionContext=E;return B.apply(null,_.ad(T))}};var ScV=function(){var E={};this.priorityTasks=(E[3]=[],E[2]=[],E[1]=[],E);this.isFlushing=!1},qh=function(E,B,I){var T=JDN(E,I);
E.priorityTasks[I].push(B);T&&E.priorityTasks[I].length===1&&E.flush()},JDN=function(E,B){return Object.keys(E.priorityTasks).map(function(I){return Number(I)}).filter(function(I){return!isNaN(I)&&I>B}).every(function(I){return E.priorityTasks[I].length===0})};
ScV.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(E){return E.length>0});)WQX(this,3),WQX(this,2),WQX(this,1)}catch(E){throw Object.values(this.priorityTasks).forEach(function(B){return void B.splice(0,B.length)}),E;
}finally{this.isFlushing=!1}}};
var WQX=function(E,B){for(;JDN(E,B)&&E.priorityTasks[B].length>0;)E.priorityTasks[B][0](),E.priorityTasks[B].shift()};
_.Up.Object.defineProperties(ScV.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(E){return E.length>0})}}});var vyt={};var XGN=globalThis.trustedTypes,iXQ=XGN,YXt;var DK=function(E){this.privateDoNotAccessOrElseWrappedResourceUrl=E};
DK.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var rD6=_.km([""]),b4V=vcQ(["\x00"],["\\0"]),oiD=vcQ(["\n"],["\\n"]),AD$=vcQ(["\x00"],["\\u0000"]);B1(function(E){return E(rD6)})||B1(function(E){return E(b4V)})||B1(function(E){return E(oiD)})||B1(function(E){return E(AD$)});var iv;_.$M=function(E,B){this.privateDoNotAccessOrElseWrappedUrl=B};
_.$M.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.jBz=IG("about:blank");iv=IG("about:invalid#zClosurez");var y54=function(E){this.isValid=E},UG$=new y54(function(E){return/^[^:]*([/?#]|$)/.test(E)}),kfZ=lv("data"),tdh=lv("http"),fiD=lv("https"),VdV=lv("ftp"),qcN=lv("mailto"),FQU=lv("intent"),DGR=lv("vnd.youtube"),Chi=[kfZ,
tdh,fiD,qcN,VdV,UG$],w96=F5(function(){return typeof URL==="function"}),KQl=["data:",
"http:","https:","mailto:","ftp:"],Ph6=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var P1=function(E){this.privateDoNotAccessOrElseWrappedHtml=E};
P1.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var wAG=F5(function(){return new P1(XGN?XGN.emptyHTML:"")});var Rtu={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"},df=function(E,B){var I=Error.call(this,E+" cannot be used with intent "+Rtu[B]);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.type=E;this.intent=B;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.L(df,Error);_.Lr=function(E){this.privateDoNotAccessOrElseWrappedScript=E};
_.Lr.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var dVQ=function(E){this.privateDoNotAccessOrElseWrappedAttributePrefix=E};
dVQ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var hGc="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var wVG=function(E){var B=_.WA("window.location.href");E==null&&(E='Unknown Error of type "null/undefined"');if(typeof E==="string")return{message:E,name:"Unknown error",lineNumber:"Not available",fileName:B,stack:"Not available"};var I=!1;try{var T=E.lineNumber||E.line||"Not available"}catch(Y){T="Not available",I=!0}try{var e=E.fileName||E.filename||E.sourceURL||_.$i.$googDebugFname||B}catch(Y){e="Not available",I=!0}B=Elz(E);if(!(!I&&E.lineNumber&&E.fileName&&E.stack&&E.message&&E.name)){I=E.message;
if(I==null){if(E.constructor&&E.constructor instanceof Function){if(E.constructor.name)I=E.constructor.name;else if(I=E.constructor,Rr[I])I=Rr[I];else{I=String(I);if(!Rr[I]){var c=/function\s+([^\(]+)/m.exec(I);Rr[I]=c?c[1]:"[Anonymous]"}I=Rr[I]}I='Unknown Error of type "'+I+'"'}else I="Unknown Error of unknown type";typeof E.toString==="function"&&Object.prototype.toString!==E.toString&&(I+=": "+E.toString())}return{message:I,name:E.name||"UnknownError",lineNumber:T,fileName:e,stack:B||"Not available"}}return{message:E.message,
name:E.name,lineNumber:E.lineNumber,fileName:E.fileName,stack:B}},Elz=function(E,B){B||(B={});
B[Bru(E)]=!0;var I=E.stack||"",T=E.cause;T&&!B[Bru(T)]&&(I+="\nCaused by: ",T.stack&&T.stack.indexOf(T.toString())==0||(I+=typeof T==="string"?T:T.message+"\n"),I+=Elz(T,B));E=E.errors;if(Array.isArray(E)){T=1;var e;for(e=0;e<E.length&&!(T>4);e++)B[Bru(E[e])]||(I+="\nInner error "+T++ +": ",E[e].stack&&E[e].stack.indexOf(E[e].toString())==0||(I+=typeof E[e]==="string"?E[e]:E[e].message+"\n"),I+=Elz(E[e],B));e<E.length&&(I+="\n... "+(E.length-e)+" more inner errors")}return I},Bru=function(E){var B=
"";
typeof E.toString==="function"&&(B=""+E);return B+E.stack},Rr={};var $tZ,qD,Kp,TrZ,eZV,IXX,g1,JQ,czD;$tZ=function(E,B){for(var I=E.split("%s"),T="",e=Array.prototype.slice.call(arguments,1);e.length&&I.length>1;)T+=I.shift()+e.shift();return T+I.join("%s")};
_.rU=function(E){return encodeURIComponent(String(E))};
qD=function(E){return decodeURIComponent(E.replace(/\+/g," "))};
Kp=function(E){jUd.test(E)&&(E.indexOf("&")!=-1&&(E=E.replace(WuG,"&amp;")),E.indexOf("<")!=-1&&(E=E.replace(Xqi,"&lt;")),E.indexOf(">")!=-1&&(E=E.replace(rWQ,"&gt;")),E.indexOf('"')!=-1&&(E=E.replace(bni,"&quot;")),E.indexOf("'")!=-1&&(E=E.replace(ocd,"&#39;")),E.indexOf("\x00")!=-1&&(E=E.replace(AWF,"&#0;")));return E};
TrZ=function(E){var B={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var I=_.$i.document.createElement("div");return E.replace(IXX,function(T,e){var c=B[T];if(c)return c;e.charAt(0)=="#"&&(e=Number("0"+e.slice(1)),isNaN(e)||(c=String.fromCharCode(e)));c||(_.M7(I,z1(T+" ")),c=I.firstChild.nodeValue.slice(0,-1));return B[T]=c})};
eZV=function(E){return E.replace(/&([^;]+);/g,function(B,I){switch(I){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return I.charAt(0)!="#"||(I=Number("0"+I.slice(1)),isNaN(I))?B:String.fromCharCode(I)}})};
IXX=/&([^;\s<&]+);?/g;_.baQ=function(E){return String(E).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.lXr=String.prototype.repeat?function(E,B){return E.repeat(B)}:function(E,B){return Array(B+1).join(E)};
_.Es=function(E,B){if(!Number.isFinite(E))return String(E);E=String(E);var I=E.indexOf(".");I===-1&&(I=E.length);var T=E[0]==="-"?"-":"";T&&(E=E.substring(1));return T+(0,_.lXr)("0",Math.max(0,B-I))+E};
g1=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.Bf()).toString(36)};
JQ=function(E){for(var B=0,I=0;I<E.length;++I)B=31*B+E.charCodeAt(I)>>>0;return B};
_.yT=function(E){return String(E).replace(/\-([a-z])/g,function(B,I){return I.toUpperCase()})};
_.vU=function(E){return String(E).replace(/([A-Z])/g,"-$1").toLowerCase()};
czD=function(E){return E.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(B,I,T){return I+T.toUpperCase()})};var iVl=function(){this.names=new Map};
iVl.prototype.getName=function(E){var B=this.names.get(E);if(B)return B;var I;B=(I=E.description)!=null?I:g1();this.names.set(E,B);return B};var p6Z=function(E){var B=Error.call(this,E?E.length+" errors occurred during unsubscription:\n"+E.map(function(I,T){return T+1+") "+I.toString()}).join("\n  "):"");
this.message=B.message;"stack"in B&&(this.stack=B.stack);this.errors=E;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.L(p6Z,Error);var XL=function(E){this.initialTeardown=E;this.closed=!1;this._teardowns=this._parentage=null};
_.l=XL.prototype;
_.l.unsubscribe=function(){if(!this.closed){this.closed=!0;var E=this._parentage;if(Array.isArray(E))for(var B=_.p(E),I=B.next();!I.done;I=B.next())I.value.remove(this);else E==null||E.remove(this);B=this.initialTeardown;if(W1(B))try{B()}catch(c){var T=c instanceof p6Z?c.errors:[c]}var e=this._teardowns;if(e)for(this._teardowns=null,B=_.p(e),I=B.next();!I.done;I=B.next()){I=I.value;try{W1(I)?I():I.unsubscribe()}catch(c){I=void 0,T=(I=T)!=null?I:[],c instanceof p6Z?T=[].concat(_.ad(T),_.ad(c.errors)):
T.push(c)}}if(T)throw new p6Z(T);}};
_.l.add=function(E){if(E&&E!==this)if(this.closed)W1(E)?E():E.unsubscribe();else{if(E instanceof XL){if(E.closed||E._hasParent(this))return;E._addParent(this)}var B;(this._teardowns=(B=this._teardowns)!=null?B:[]).push(E)}};
_.l._hasParent=function(E){var B=this._parentage;return B===E||Array.isArray(B)&&B.includes(E)};
_.l._addParent=function(E){var B=this._parentage;this._parentage=Array.isArray(B)?(B.push(E),B):B?[B,E]:E};
_.l._removeParent=function(E){var B=this._parentage;B===E?this._parentage=null:Array.isArray(B)&&J1(B,E)};
_.l.remove=function(E){var B=this._teardowns;B&&J1(B,E);E instanceof XL&&E._removeParent(this)};
var YZX=new XL;YZX.closed=!0;XL.JSC$6957_EMPTY=YZX;var xVD=function(){setTimeout.apply(null,_.ad(_.aG.apply(0,arguments)))};var BT=function(E){XL.call(this);this.JSC$6962_isStopped=!1;this.destination=E instanceof BT?E:new $L(!E||W1(E)?{next:E!=null?E:void 0}:E);LqB(E)&&E.add(this)};
_.L(BT,XL);BT.JSC$6957_EMPTY=XL.JSC$6957_EMPTY;BT.create=function(E,B,I){return new Iz(E,B,I)};
_.l=BT.prototype;_.l.next=function(E){this.JSC$6962_isStopped||this._next(E)};
_.l.error=function(E){this.JSC$6962_isStopped||(this.JSC$6962_isStopped=!0,this._error(E))};
_.l.complete=function(){this.JSC$6962_isStopped||(this.JSC$6962_isStopped=!0,this._complete())};
_.l.unsubscribe=function(){this.closed||(this.JSC$6962_isStopped=!0,XL.prototype.unsubscribe.call(this))};
_.l._next=function(E){this.destination.next(E)};
_.l._error=function(E){this.destination.error(E);this.unsubscribe()};
_.l._complete=function(){this.destination.complete();this.unsubscribe()};
var $L=function(E){this.partialObserver=E};
$L.prototype.next=function(E){var B=this.partialObserver;if(B.next)try{B.next(E)}catch(I){oG(I)}};
$L.prototype.error=function(E){var B=this.partialObserver;if(B.error)try{B.error(E)}catch(I){oG(I)}else oG(E)};
$L.prototype.complete=function(){var E=this.partialObserver;if(E.complete)try{E.complete()}catch(B){oG(B)}};
var Iz=function(E,B,I){BT.call(this);var T;W1(E)||!E?T={next:E!=null?E:void 0,error:B!=null?B:void 0,complete:I!=null?I:void 0}:T=E;this.destination=new $L(T)};
_.L(Iz,BT);Iz.JSC$6957_EMPTY=BT.JSC$6957_EMPTY;Iz.create=BT.create;var t1=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Uf=function(E){E&&(this._subscribe=E)};
_.l=Uf.prototype;_.l.lift=function(E){var B=new Uf;B.source=this;B.operator=E;return B};
_.l.subscribe=function(E,B,I){E=E&&E instanceof BT||E&&W1(E.next)&&W1(E.error)&&W1(E.complete)&&LqB(E)?E:new Iz(E,B,I);B=this.operator;I=this.source;E.add(B?B.call(E,I):I?this._subscribe(E):this._trySubscribe(E));return E};
_.l._trySubscribe=function(E){try{return this._subscribe(E)}catch(B){E.error(B)}};
_.l.forEach=function(E,B){var I=this;B=OXi(B);return new B(function(T,e){var c=I.subscribe(function(Y){try{E(Y)}catch(v){e(v),c==null||c.unsubscribe()}},e,T)})};
_.l._subscribe=function(E){var B;return(B=this.source)==null?void 0:B.subscribe(E)};
Uf.prototype[t1]=function(){return this};
Uf.prototype.pipe=function(){var E=_.aG.apply(0,arguments);return E.length?G2i(E)(this):this};
Uf.create=function(E){return new Uf(E)};var aX$=function(){var E=Error.call(this,"object unsubscribed");this.message=E.message;"stack"in E&&(this.stack=E.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.L(aX$,Error);var tv=function(){this.observers=[];this.hasError=this.JSC$6978_isStopped=this.closed=!1;this.thrownError=null};
_.L(tv,Uf);_.l=tv.prototype;_.l.lift=function(E){var B=new TV(this,this);B.operator=E;return B};
_.l._throwIfClosed=function(){if(this.closed)throw new aX$;};
_.l.next=function(E){this._throwIfClosed();if(!this.JSC$6978_isStopped){var B=this.observers.slice();B=_.p(B);for(var I=B.next();!I.done;I=B.next())I.value.next(E)}};
_.l.error=function(E){this._throwIfClosed();if(!this.JSC$6978_isStopped){this.hasError=this.JSC$6978_isStopped=!0;this.thrownError=E;for(var B=this.observers;B.length;)B.shift().error(E)}};
_.l.complete=function(){this._throwIfClosed();if(!this.JSC$6978_isStopped){this.JSC$6978_isStopped=!0;for(var E=this.observers;E.length;)E.shift().complete()}};
_.l.unsubscribe=function(){this.JSC$6978_isStopped=this.closed=!0;this.observers=null};
_.l._trySubscribe=function(E){this._throwIfClosed();return Uf.prototype._trySubscribe.call(this,E)};
_.l._subscribe=function(E){this._throwIfClosed();this._checkFinalizedStatuses(E);return this._innerSubscribe(E)};
_.l._innerSubscribe=function(E){var B=this,I=this.JSC$6978_isStopped,T=this.observers;return this.hasError||I?XL.JSC$6957_EMPTY:(T.push(E),new XL(function(){return J1(B.observers,E)}))};
_.l._checkFinalizedStatuses=function(E){var B=this.thrownError,I=this.JSC$6978_isStopped;this.hasError?E.error(B):I&&E.complete()};
tv.create=function(E,B){return new TV(E,B)};
var TV=function(E,B){tv.call(this);this.destination=E;this.source=B};
_.L(TV,tv);TV.create=tv.create;TV.prototype.next=function(E){var B,I;(B=this.destination)==null||(I=B.next)==null||I.call(B,E)};
TV.prototype.error=function(E){var B,I;(B=this.destination)==null||(I=B.error)==null||I.call(B,E)};
TV.prototype.complete=function(){var E,B;(E=this.destination)==null||(B=E.complete)==null||B.call(E)};
TV.prototype._subscribe=function(E){var B,I;return(I=(B=this.source)==null?void 0:B.subscribe(E))!=null?I:XL.JSC$6957_EMPTY};var ul=function(E){tv.call(this);this._value=E};
_.L(ul,tv);ul.create=tv.create;ul.prototype._subscribe=function(E){var B=tv.prototype._subscribe.call(this,E);!B.closed&&E.next(this._value);return B};
ul.prototype.getValue=function(){var E=this.thrownError,B=this._value;if(this.hasError)throw E;this._throwIfClosed();return B};
ul.prototype.next=function(E){tv.prototype.next.call(this,this._value=E)};
_.Up.Object.defineProperties(ul.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var PL=new Uf(function(E){return E.complete()});var kM=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Wqc=function(E){return E&&typeof E.length==="number"&&typeof E!=="function"};var vlr={now:function(){return(vlr.delegate||Date).now()},
delegate:void 0};var Nh=function(E,B,I){E=E===void 0?Infinity:E;B=B===void 0?Infinity:B;I=I===void 0?vlr:I;tv.call(this);this.JSC$7000_bufferSize=E;this.windowTime=B;this.timestampProvider=I;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=B===Infinity;this.JSC$7000_bufferSize=Math.max(1,E);this.windowTime=Math.max(1,B)};
_.L(Nh,tv);Nh.create=tv.create;Nh.prototype.next=function(E){var B=this.buffer,I=this.infiniteTimeWindow,T=this.timestampProvider,e=this.windowTime;this.JSC$6978_isStopped||(B.push(E),!I&&B.push(T.now()+e));yzU(this);tv.prototype.next.call(this,E)};
Nh.prototype._subscribe=function(E){this._throwIfClosed();yzU(this);for(var B=this._innerSubscribe(E),I=this.infiniteTimeWindow,T=this.buffer.slice(),e=0;e<T.length&&!E.closed;e+=I?1:2)E.next(T[e]);this._checkFinalizedStatuses(E);return B};
var yzU=function(E){var B=E.JSC$7000_bufferSize,I=E.timestampProvider,T=E.buffer;E=E.infiniteTimeWindow;var e=(E?1:2)*B;B<Infinity&&e<T.length&&T.splice(0,T.length-e);if(!E){B=I.now();I=0;for(E=1;E<T.length&&T[E]<=B;E+=2)I=E;I&&T.splice(0,I+1)}};var w6V=function(E,B){B=B===void 0?CDr:B;this.schedulerActionCtor=E;this.now=B};
w6V.prototype.schedule=function(E,B,I){B=B===void 0?0:B;return(new this.schedulerActionCtor(this,E)).schedule(I,B)};
var CDr=vlr.now;var G1Q=function(){var E=Error.call(this,"no elements in sequence");this.message=E.message;"stack"in E&&(this.stack=E.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.L(G1Q,Error);var iA=function(E,B,I,T,e){BT.call(this,E);this.onUnsubscribe=e;B&&(this._next=function(c){try{B(c)}catch(Y){this.destination.error(Y)}});
I&&(this._error=function(c){try{I(c)}catch(Y){this.destination.error(Y)}this.unsubscribe()});
T&&(this._complete=function(){try{T()}catch(c){this.destination.error(c)}this.unsubscribe()})};
_.L(iA,BT);iA.JSC$6957_EMPTY=BT.JSC$6957_EMPTY;iA.create=BT.create;iA.prototype.unsubscribe=function(){var E;this.closed||(E=this.onUnsubscribe)!=null&&E.call(this);BT.prototype.unsubscribe.call(this)};var Mh=function(E,B){this.source=E;this.subjectFactory=B;this._subject=null;this._refCount=0;this._connection=null};
_.L(Mh,Uf);Mh.create=Uf.create;Mh.prototype._subscribe=function(E){return ZVz(this).subscribe(E)};
var ZVz=function(E){var B=E._subject;if(!B||B.JSC$6978_isStopped)E._subject=E.subjectFactory();return E._subject};
Mh.prototype._teardown=function(){this._refCount=0;var E=this._connection;this._subject=this._connection=null;E==null||E.unsubscribe()};
Mh.prototype.connect=function(){var E=this,B=this._connection;if(!B){B=this._connection=new XL;var I=ZVz(this);B.add(this.source.subscribe(new iA(I,void 0,function(T){E._teardown();I.error(T)},function(){E._teardown();
I.complete()},function(){return E._teardown()})));
B.closed&&(this._connection=null,B=XL.JSC$6957_EMPTY)}return B};var qXQ=Array.isArray;var DVG=Array.isArray,PDt=Object,KqJ=PDt.getPrototypeOf,RGd=PDt.prototype,EMt=PDt.keys;var yM=function(E,B,I){BT.call(this,E);this._next=B;this.shouldComplete=I};
_.L(yM,BT);yM.JSC$6957_EMPTY=BT.JSC$6957_EMPTY;yM.create=BT.create;yM.prototype._complete=function(){this.shouldComplete()?BT.prototype._complete.call(this):this.unsubscribe()};var ird=["addListener","removeListener"],c1B=["addEventListener","removeEventListener"],YfD=["on","off"];var ew=function(){XL.call(this)};
_.L(ew,XL);ew.JSC$6957_EMPTY=XL.JSC$6957_EMPTY;ew.prototype.schedule=function(){return this};var zZh=function(E,B){return setInterval.apply(null,[E,B].concat(_.ad(_.aG.apply(2,arguments))))};var lt=function(E,B){XL.call(this);this.scheduler=E;this.work=B;this.pending=!1};
_.L(lt,ew);lt.JSC$6957_EMPTY=ew.JSC$6957_EMPTY;lt.prototype.schedule=function(E,B){B=B===void 0?0:B;if(this.closed)return this;this.state=E;E=this.id;var I=this.scheduler;E!=null&&(this.id=mtD(this,E,B));this.pending=!0;this.delay=B;this.id=this.id||this.requestAsyncId(I,this.id,B);return this};
lt.prototype.requestAsyncId=function(E,B,I){I=I===void 0?0:I;return zZh(E.flush.bind(E,this),I)};
var mtD=function(E,B,I){I=I===void 0?0:I;if(I!=null&&E.delay===I&&E.pending===!1)return B;clearInterval(B)};
lt.prototype.execute=function(E,B){if(this.closed)return Error("la");this.pending=!1;if(E=this._execute(E,B))return E;this.pending===!1&&this.id!=null&&(this.id=mtD(this,this.id,null))};
lt.prototype._execute=function(E){var B=!1;try{this.work(E)}catch(T){B=!0;var I=!!T&&T||Error(T)}if(B)return this.unsubscribe(),I};
lt.prototype.unsubscribe=function(){if(!this.closed){var E=this.id,B=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;J1(B,this);E!=null&&(this.id=mtD(this,E,null));this.delay=null;ew.prototype.unsubscribe.call(this)}};var Q$l=function(E,B){B=B===void 0?CDr:B;w6V.call(this,E,B);this.actions=[];this.active=!1;this.scheduled=void 0};
_.L(Q$l,w6V);Q$l.prototype.flush=function(E){var B=this.actions;if(this.active)B.push(E);else{var I;this.active=!0;do if(I=E.execute(E.state,E.delay))break;while(E=B.shift());this.active=!1;if(I){for(;E=B.shift();)E.unsubscribe();throw I;}}};var cM=new Uf(bv);var agi=Array.isArray;var cT=function(E,B){lt.call(this,E,B);this.scheduler=E;this.work=B};
_.L(cT,lt);cT.JSC$6957_EMPTY=lt.JSC$6957_EMPTY;cT.prototype.schedule=function(E,B){B=B===void 0?0:B;if(B>0)return lt.prototype.schedule.call(this,E,B);this.delay=B;this.state=E;this.scheduler.flush(this);return this};
cT.prototype.execute=function(E,B){return B>0||this.closed?lt.prototype.execute.call(this,E,B):this._execute(E,B)};
cT.prototype.requestAsyncId=function(E,B,I){I=I===void 0?0:I;return I!=null&&I>0||I==null&&this.delay>0?lt.prototype.requestAsyncId.call(this,E,B,I):E.flush(this)};var dtX=function(){Q$l.apply(this,arguments)};
_.L(dtX,Q$l);var fKG=new dtX(cT);var hZr=function(){this.performanceMonitor=new giV;this.queue=new ScV;this.internalSymbol=Symbol();this.debugNames=new iVl};
hZr.prototype.getOnBackgrounded=function(){return cM};
_.Up.Object.defineProperties(hZr.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var p7=function(E,B){B=Error.call(this,B?E+": "+B:String(E));this.message=B.message;"stack"in B&&(this.stack=B.stack);this.code=E;this.__proto__=p7.prototype;this.name=String(E)};
_.L(p7,Error);var il=function(E){p7.call(this,1E3,'sfr:"'+E+'"');this.measurementStrategyFailureReason=E;this.__proto__=il.prototype};
_.L(il,p7);var pb=function(){p7.call(this,1003);this.__proto__=pb.prototype};
_.L(pb,p7);var YL=function(){p7.call(this,1009);this.__proto__=YL.prototype};
_.L(YL,p7);var s$l=function(){p7.call(this,1011);this.__proto__=s$l.prototype};
_.L(s$l,p7);var uuU=function(){p7.call(this,1007);this.__proto__=pb.prototype};
_.L(uuU,p7);var I_=function(E){p7.call(this,1004,String(E));this.inputObservableIndex=E;this.__proto__=I_.prototype};
_.L(I_,p7);var rvF=function(E){p7.call(this,1010,E);this.__proto__=Ti.prototype};
_.L(rvF,p7);var Ti=function(E){p7.call(this,1005,E);this.__proto__=Ti.prototype};
_.L(Ti,p7);var LRl=function(E){var B=_.aG.apply(1,arguments),I=this;this.orderedFactories=[];this.orderedFactories.push(E);B.forEach(function(T){I.orderedFactories.push(T)})};
LRl.prototype.isSupported=function(E){return this.orderedFactories.some(function(B){return B.isSupported(E)})};
LRl.prototype.makeBeacon=function(E,B){for(var I=0;I<this.orderedFactories.length;I++)if(this.orderedFactories[I].isSupported(B))return this.orderedFactories[I].makeBeacon(E,B);throw new YL;};var s_i=Symbol("ma"),xtZ=Symbol("na"),dH=function(E,B){this.value=E;this.timeline=B},QM=function(E,B){if(B.timeline!==E.timeline)throw new uuU;
return E.value-B.value};
_.l=dH.prototype;_.l.equals=function(E){return QM(this,E)===0};
_.l.maximum=function(E){if(E.timeline!==this.timeline)throw new uuU;return this.value>=E.value?this:E};
_.l.round=function(){return new dH(Math.round(this.value),this.timeline)};
_.l.add=function(E){return new dH(this.value+E,this.timeline)};
_.l.toString=function(){return String(this.value)};var az=function(E,B){this.context=E;this.JSC$7084_pinger=B};
az.prototype.isSupported=function(E){return this.JSC$7084_pinger.isSupported(E)};
az.prototype.makeBeacon=function(E,B){if(!this.isSupported(B))throw new YL;return new vT(this.context,this.JSC$7084_pinger,B!=null?B:void 0,E)};
var vT=function(E,B,I,T){var e=this;this.JSC$7090_pinger=B;this.properties=I;this.url=T;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var c;this.method=(c=I==null?void 0:I.beaconMethod)!=null?c:"GET";this.backgroundedSubscription=E.getOnBackgrounded().subscribe(function(){e.sendNow()})};
vT.prototype.deactivate=function(){this.internalIsPending=!1};
vT.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7090_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var E,B;this.JSC$7090_pinger.pingWithHeadersAndBody((E=this.properties)!=null?E:{},this.customHeaders,(B=this.body)!=null?B:"",this.url)}else this.JSC$7090_pinger.ping(this.url);this.internalIsPending=!1}catch(I){}else this.internalIsPending=!1};
vT.prototype.setHeader=function(E){this.customHeaders.set(E,void 0)};
_.Up.Object.defineProperties(vT.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var OVD=function(){for(var E=_.p(_.aG.apply(0,arguments)),B=E.next();!B.done;B=E.next())if(B=B.value,B.available()){this.timeProvider=B;return}this.timeProvider=new GUX};
_.l=OVD.prototype;_.l.available=function(){return this.timeProvider.available()};
_.l.now=function(){return this.timeProvider.now()};
_.l.setTimeout=function(E,B){return this.timeProvider.setTimeout(E,B)};
_.l.clearTimeout=function(E){this.timeProvider.clearTimeout(E)};
_.l.interval=function(E,B){var I=this.intervalObservable(E).subscribe(B);return function(){return void I.unsubscribe()}};
_.l.intervalObservable=function(E){return this.timeProvider.intervalObservable(E)};
_.Up.Object.defineProperties(OVD.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var GUX=function(){this.timeline=Symbol()};
_.l=GUX.prototype;_.l.available=function(){return!1};
_.l.now=function(){return new dH(0,this.timeline)};
_.l.setTimeout=function(){return 0};
_.l.clearTimeout=function(){};
_.l.interval=function(){return function(){}};
_.l.intervalObservable=function(){return cM};var y_=function(E,B){this.intrinsicFunctionNamespace=E;this.performanceMonitor=B};
_.l=y_.prototype;_.l.setTimeout=function(E,B){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,E),B)};
_.l.clearTimeout=function(E){this.intrinsicFunctionNamespace.clearTimeout(E)};
_.l.interval=function(E,B){var I=this.intervalObservable(E).subscribe(B);return function(){return void I.unsubscribe()}};
_.l.intervalObservable=function(E){var B=this;return new Uf(function(I){var T=0,e=B.intrinsicFunctionNamespace.setInterval(function(){I.next(T++)},E);
return function(){B.intrinsicFunctionNamespace.clearInterval(e)}})};
_.l.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var nlX=function(E,B){y_.call(this,E,B);this.timeline=xtZ};
_.L(nlX,y_);nlX.prototype.now=function(){return new dH(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
nlX.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&y_.prototype.available.call(this)};var MNt=function(E,B){y_.call(this,E,B);this.timeline=s_i};
_.L(MNt,y_);MNt.prototype.now=function(){return new dH(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
MNt.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&y_.prototype.available.call(this)};var Nru=function(E){this.context=E;if(HVD===void 0)a:{var B,I,T=(B=E.global)==null?void 0:(I=B.document)==null?void 0:I.createElement("meta");if(T)try{T.httpEquiv="origin-trial";T.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";E.global.document.head.append(T);HVD=T;break a}catch(e){}HVD=void 0}},
HVD;
Nru.prototype.isSupported=function(E){return d7c(this.context)!==void 0&&!(E==null||!E.endOfSession)&&!C7(this.context)&&!(E==null?0:E.attributionEnabled)&&!(E==null?0:E.customHeaders)&&!(E==null?0:E.customBody)};
Nru.prototype.makeBeacon=function(E,B){if(!this.isSupported(B))throw new YL;return new ww(this.context,E,B)};
var ww=function(E,B,I){this.context=E;this.properties=I;this.JSC$7117_urlWithoutToken=B;var T;this.beaconMethod=(T=I==null?void 0:I.beaconMethod)!=null?T:"GET";E=d7c(this.context);if(E===void 0)throw Error();this.fetchLater=E;glu(this,SZZ(this))},glu=function(E,B){E.beaconResult&&E.beaconResult.activated||(E.beaconAbort=new AbortController,E.beaconResult=E.fetchLater(B,{method:E.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:E.beaconAbort.signal,activateAfter:96E4}))},SZZ=function(E){E=E.JSC$7117_urlWithoutToken;
return(E.slice(-1)[0]==="&"?E:E+"&")+"flapi=1"};
ww.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
ww.prototype.sendNow=function(){};
ww.prototype.setHeader=function(){};
_.Up.Object.defineProperties(ww.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7117_urlWithoutToken},
set:function(E){this.JSC$7117_urlWithoutToken=E;E=SZZ(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);glu(this,E)}},
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 Jz$=function(E){this.context=E};
Jz$.prototype.isSupported=function(){return!C7(this.context)&&!!this.context.global.fetch};
Jz$.prototype.ping=function(){var E=this;return zB.apply(null,_.ad(_.aG.apply(0,arguments).map(function(B){return VC(E.context.global.fetch(B,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(YB(function(I){return I.status===200}))}))).pipe(Orc(function(B){return B}),M6d())};
Jz$.prototype.pingWithHeadersAndBody=function(E,B,I){for(var T=_.aG.apply(3,arguments),e=this,c=new Headers,Y=_.p(B.entries()),v=Y.next();!v.done;v=Y.next()){var y=_.p(v.value);v=y.next().value;y=y.next().value;c.set(v,y)}var Z,P=(Z=E.keepAlive)!=null?Z:!1;zB.apply(null,_.ad(T.map(function(z){return VC(e.context.global.fetch(z,Object.assign({},{method:String(E.beaconMethod),cache:"no-cache"},P?{keepalive:!0}:{},{mode:"no-cors",headers:c,body:I}))).pipe(YB(function(m){return m.status===200}))}))).pipe(Orc(function(z){return z}),
M6d())};var WRD,Jji;_.ZU=function(){};
_.JD=function(E){return E};
WRD=function(E){var B=B||0;return function(){return E.apply(this,Array.prototype.slice.call(arguments,0,B))}};
_.PT=function(E){var B=!1,I;return function(){B||(I=E(),B=!0);return I}};
_.zV=function(E,B){var I=0;return function(T){_.$i.clearTimeout(I);var e=arguments;I=_.$i.setTimeout(function(){E.apply(void 0,e)},B)}};
Jji=function(E,B){var I=0,T=!1,e=[],c=function(){I=0;T&&(T=!1,Y())},Y=function(){I=_.$i.setTimeout(c,B);
var v=e;e=[];E.apply(void 0,v)};
return function(v){e=arguments;I?T=!0:Y()}};var rzZ=function(){return wJ&&Zi?Zi.mobile:!X6Z()&&(Q6("iPod")||Q6("iPhone")||Q6("Android")||Q6("IEMobile"))},X6Z=function(){return wJ&&Zi?!Zi.mobile&&(Q6("iPad")||Q6("Android")||Q6("Silk")):Q6("iPad")||Q6("Android")&&!Q6("Mobile")||Q6("Silk")};var bVt;_.a_={};bVt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.a_.add=function(E,B,I){if(E!==null&&B in E)throw Error("pa`"+B);E[B]=I};
_.a_.clear=function(E){for(var B in E)delete E[B]};
_.a_.clone=function(E){var B={},I;for(I in E)B[I]=E[I];return B};
_.a_.contains=function(E,B){return gMc(E,B)};
_.a_.containsKey=function(E,B){return E!==null&&B in E};
_.a_.containsValue=gMc;_.a_.create=WmQ;_.a_.createImmutableView=function(E){var B=E;Object.isFrozen&&!Object.isFrozen(E)&&(B=Object.create(E),Object.freeze(B));return B};
_.a_.createSet=X1G;_.a_.equals=function(E,B){for(var I in E)if(!(I in B)||E[I]!==B[I])return!1;for(var T in B)if(!(T in E))return!1;return!0};
_.a_.every=function(E,B,I){for(var T in E)if(!B.call(I,E[T],T,E))return!1;return!0};
_.a_.extend=function(E,B){for(var I,T,e=1;e<arguments.length;e++){T=arguments[e];for(I in T)E[I]=T[I];for(var c=0;c<bVt.length;c++)I=bVt[c],Object.prototype.hasOwnProperty.call(T,I)&&(E[I]=T[I])}};
_.a_.filter=function(E,B,I){var T={},e;for(e in E)B.call(I,E[e],e,E)&&(T[e]=E[e]);return T};
_.a_.findKey=Sf6;_.a_.findValue=function(E,B,I){return(B=Sf6(E,B,I))&&E[B]};
_.a_.forEach=function(E,B,I){for(var T in E)B.call(I,E[T],T,E)};
_.a_.get=function(E,B,I){return E!==null&&B in E?E[B]:I};
_.a_.getAllPropertyNames=function(E,B,I){if(!E)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return NfD(E);for(var T={};E&&(E!==Object.prototype||B)&&(E!==Function.prototype||I);){for(var e=Object.getOwnPropertyNames(E),c=0;c<e.length;c++)T[e[c]]=!0;E=Object.getPrototypeOf(E)}return NfD(T)};
_.a_.getAnyKey=function(E){for(var B in E)return B};
_.a_.getAnyValue=function(E){for(var B in E)return E[B]};
_.a_.getCount=function(E){var B=0,I;for(I in E)B++;return B};
_.a_.getKeys=NfD;_.a_.getSuperClass=function(E){return(E=Object.getPrototypeOf(E.prototype))&&E.constructor};
_.a_.getValueByKeys=function(E,B){var I=_.Di(B),T=I?B:arguments;for(I=I?0:1;I<T.length;I++){if(E==null)return;E=E[T[I]]}return E};
_.a_.getValues=function(E){var B=[],I=0,T;for(T in E)B[I++]=E[T];return B};
_.a_.isEmpty=function(E){for(var B in E)return!1;return!0};
_.a_.isImmutableView=function(E){return!!Object.isFrozen&&Object.isFrozen(E)};
_.a_.map=function(E,B,I){var T={},e;for(e in E)T[e]=B.call(I,E[e],e,E);return T};
_.a_.remove=function(E,B){var I;(I=B in E)&&delete E[B];return I};
_.a_.set=function(E,B,I){E[B]=I};
_.a_.setIfUndefined=function(E,B,I){return B in E?E[B]:E[B]=I};
_.a_.setWithReturnValueIfNotSet=function(E,B,I){if(B in E)return E[B];I=I();return E[B]=I};
_.a_.some=function(E,B,I){for(var T in E)if(B.call(I,E[T],T,E))return!0;return!1};
_.a_.transpose=function(E){var B={},I;for(I in E)B[E[I]]=I;return B};
_.a_.unsafeClone=J1G;var mY=function(E,B,I,T,e){this.allowedElements=E;this.elementPolicies=B;this.allowedGlobalAttributes=I;this.globalAttributePolicies=T;this.globallyAllowedAttributePrefixes=e},olZ=function(E,B,I){I=E.elementPolicies.get(I);
return(I==null?0:I.has(B))?I.get(B):E.allowedGlobalAttributes.has(B)?{policyAction:1}:(I=E.globalAttributePolicies.get(B))?I:E.globallyAllowedAttributePrefixes&&[].concat(_.ad(E.globallyAllowedAttributePrefixes)).some(function(T){return B.indexOf(T)===0})?{policyAction:1}:{policyAction:0}};var AzR="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(" "),
j$D=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],UtZ="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
kUz=[["dir",{policyAction:3,conditions:F5(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:F5(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:F5(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:F5(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],tNh=new mY(new Set(AzR),new Map(j$D),new Set(UtZ),new Map(kUz)),fXl=new mY(new Set(AzR.concat(["BUTTON",
"INPUT"])),new Map(j$D),new Set(F5(function(){return UtZ.concat(["class","id","name"])})),new Map(F5(function(){return kUz.concat([["style",
{policyAction:1}]])})));var VN6,qZV,Dt$;VN6=function(E,B,I,T){this.JSC$7177_sanitizerTable=E;this.styleElementSanitizer=B;this.styleAttributeSanitizer=I;this.JSC$7177_resourceUrlPolicy=T;this.changes=[]};
_.FRt=function(E,B){var I=document.implementation.createHTMLDocument("");E=qZV(E,B,I);I=I.body;I.appendChild(E);I=(new XMLSerializer).serializeToString(I);I=I.slice(I.indexOf(">")+1,I.lastIndexOf("</"));return z1(I)};
qZV=function(E,B,I){B=brt(B,I);B=document.createTreeWalker(B,5,function(v){if(v.nodeType===3)v=1;else if(A1i(v))if(v=oMF(v),v===null)v=2;else{var y=E.JSC$7177_sanitizerTable;v=v!=="FORM"&&(y.allowedElements.has(v)||y.elementPolicies.has(v))?1:2}else v=2;return v});
for(var T=B.nextNode(),e=I.createDocumentFragment(),c=e;T!==null;){var Y=void 0;if(T.nodeType===3)E.styleElementSanitizer&&c.nodeName==="STYLE"?(T=E.styleElementSanitizer(T.data),Y=E.createTextNode(T)):Y=E.createTextNode(T.data);else if(A1i(T))Y=Dt$(E,T,I);else throw Error("da");c.appendChild(Y);if(T=B.firstChild())c=Y;else for(;!(T=B.nextSibling())&&(T=B.parentNode());)c=c.parentNode}return e};
VN6.prototype.createTextNode=function(E){return document.createTextNode(E)};
Dt$=function(E,B,I){var T,e=oMF(B);I=I.createElement(e);B=B.attributes;for(var c=_.p(B),Y=c.next();!Y.done;Y=c.next()){var v=Y.value;Y=v.name;v=v.value;var y=olZ(E.JSC$7177_sanitizerTable,Y,e);a:{if(T=y.conditions){T=_.p(T);for(var Z=T.next();!Z.done;Z=T.next()){var P=_.p(Z.value);Z=P.next().value;P=P.next().value;var z=void 0;if((Z=(z=B.getNamedItem(Z))==null?void 0:z.value)&&!P.has(Z)){T=!1;break a}}}T=!0}if(T)switch(y.policyAction){case 1:Av(I,Y,v);break;case 2:y=_.ZXF(v);v=y!==void 0&&KQl.indexOf(y.toLowerCase())!==
-1?v:"about:invalid#zClosurez";Av(I,Y,v);break;case 3:Av(I,Y,v.toLowerCase());break;case 4:E.styleAttributeSanitizer?(v=E.styleAttributeSanitizer(v),Av(I,Y,v)):Av(I,Y,v);break;case 5:E.JSC$7177_resourceUrlPolicy?(y={type:2,attributeName:Y,elementName:e},v=r1J(v),(v=E.JSC$7177_resourceUrlPolicy(v,y))&&Av(I,Y,v.toString())):Av(I,Y,v);break;case 6:if(E.JSC$7177_resourceUrlPolicy){y={type:2,attributeName:Y,elementName:e};T=[];v=_.p(v.split(","));for(Z=v.next();!Z.done;Z=v.next())P=_.p(Z.value.trim().split(/\s+/,
2)),Z=P.next().value,P=P.next().value,T.push({url:Z,descriptor:P});v={parts:[]};T=_.p(T);for(Z=T.next();!Z.done;Z=T.next())Z=Z.value,P=r1J(Z.url),(P=E.JSC$7177_resourceUrlPolicy(P,y))&&v.parts.push({url:P.toString(),descriptor:Z.descriptor});Av(I,Y,jGG(v))}else Av(I,Y,v)}}return I};
_.KR$=F5(function(){return new VN6(tNh)});
_.RZu=F5(function(){return new VN6(fXl)});var EIZ=function(){this.calledBuild=!1;this.JSC$7189_sanitizerTable=tNh},BsV=function(){EIZ.apply(this,arguments)};
_.L(BsV,EIZ);BsV.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new VN6(this.JSC$7189_sanitizerTable,void 0,void 0,this.JSC$7189_resourceUrlPolicy)};var $IZ=/[^#]*/;var SC=function(E){try{return!!E&&E.location.href!=null&&PM(E,"foo")}catch(B){return!1}},TsV=function(E){var B=I1z;
if(B)for(var I in B)Object.prototype.hasOwnProperty.call(B,I)&&E(B[I],I,B)},eOr=function(){var E=[];
TsV(function(B){E.push(B)});
return E},I1z={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"},l1l=_.PT(function(){return eOr()}),iTD=function(){var E=cHh("IFRAME"),
B={};
_.bW(l1l(),function(I){E.sandbox&&E.sandbox.supports&&E.sandbox.supports(I)&&(B[I]=!0)});
return B},cHh=function(E,B){B=B===void 0?document:B;
return B.createElement(String(E).toLowerCase())};var Q_;_.H3=function(E,B,I){return Math.min(Math.max(E,B),I)};
Q_=function(E,B,I){return E+I*(B-E)};_.Cb=function(E,B){this.x=E!==void 0?E:0;this.y=B!==void 0?B:0};
_.l=_.Cb.prototype;_.l.clone=function(){return new _.Cb(this.x,this.y)};
_.l.equals=function(E){return E instanceof _.Cb&&(this==E?!0:this&&E?this.x==E.x&&this.y==E.y:!1)};
_.l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.l.translate=function(E,B){E instanceof _.Cb?(this.x+=E.x,this.y+=E.y):(this.x+=Number(E),typeof B==="number"&&(this.y+=B));return this};
_.l.scale=function(E,B){this.x*=E;this.y*=typeof B==="number"?B:E;return this};_.KK=function(E,B){this.width=E;this.height=B};
_.l=_.KK.prototype;_.l.clone=function(){return new _.KK(this.width,this.height)};
_.l.area=function(){return this.width*this.height};
_.l.aspectRatio=function(){return this.width/this.height};
_.l.isEmpty=function(){return!this.area()};
_.l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.l.scale=function(E,B){this.width*=E;this.height*=typeof B==="number"?B:E;return this};var MW=function(E,B){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=E===z4c&&B||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=pmu};
MW.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Y9R=function(E){return E instanceof MW&&E.constructor===MW&&E.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===pmu?E.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},pmu={},z4c={};
new MW(z4c,"");var BM,px,hw,a1N,CLt,yHr,wM,ZTN,zOZ,PLr,xL,mIU,xI6,L2Z,u8U,G7N,OTU,nIN,MtX,JRi,HT6,gIl,S9U,NsU,dw;BM=function(E){return E?new dw(_.Zs(E)):HnJ||(HnJ=new dw)};
_.tk=function(E,B){return typeof B==="string"?E.getElementById(B):B};
px=function(E,B){return(B||document).getElementsByTagName(String(E))};
_.vIU=function(E){return a1N("yt-formatted-string","paper-input-input",E)};
hw=function(E,B,I,T){E=T||E;return(B=B&&B!="*"?String(B).toUpperCase():"")||I?E.querySelectorAll(B+(I?"."+I:"")):E.getElementsByTagName("*")};
a1N=function(E,B,I){var T=document,e=E&&E!="*"?String(E).toUpperCase():"";return e||B?(I||T).querySelector(e+(B?"."+B:"")):hw(T,E,B,I)[0]||null};
CLt=function(E,B){_.a_.forEach(B,function(I,T){T=="style"?E.style.cssText=I:T=="class"?E.className=I:T=="for"?E.htmlFor=I:yHr.hasOwnProperty(T)?E.setAttribute(yHr[T],I):_.lc(T,"aria-")||_.lc(T,"data-")?E.setAttribute(T,I):E[T]=I})};
yHr={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"};_.Rd=function(E){E=(E||window).document;E=E.compatMode=="CSS1Compat"?E.documentElement:E.body;return new _.KK(E.clientWidth,E.clientHeight)};
_.wmr=function(E){var B=_.ss(E);E=E.defaultView;return new _.Cb(E.pageXOffset||B.scrollLeft,E.pageYOffset||B.scrollTop)};
_.ss=function(E){return E.scrollingElement?E.scrollingElement:_.pa||E.compatMode!="CSS1Compat"?E.body||E.documentElement:E.documentElement};
wM=function(E){return E?E.defaultView:window};
_.ut=function(E,B,I){return ZTN(document,arguments)};
ZTN=function(E,B){var I=B[1],T=PLr(E,String(B[0]));I&&(typeof I==="string"?T.className=I:Array.isArray(I)?T.className=I.join(" "):CLt(T,I));B.length>2&&zOZ(E,T,B,2);return T};
zOZ=function(E,B,I,T){function e(v){v&&B.appendChild(typeof v==="string"?E.createTextNode(v):v)}
for(;T<I.length;T++){var c=I[T];if(!_.Di(c)||_.B6(c)&&c.nodeType>0)e(c);else{a:{if(c&&typeof c.length=="number"){if(_.B6(c)){var Y=typeof c.item=="function"||typeof c.item=="string";break a}if(typeof c==="function"){Y=typeof c.item=="function";break a}}Y=!1}_.bW(Y?_.V6(c):c,e)}}};
_.li=function(E){return PLr(document,E)};
PLr=function(E,B){B=String(B);E.contentType==="application/xhtml+xml"&&(B=B.toLowerCase());return E.createElement(B)};
_.L7=function(){return document.createTextNode("\n")};
xL=function(E){if(E.nodeType!=1)return!1;switch(E.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};
mIU=function(E,B){zOZ(_.Zs(E),E,arguments,1)};
_.GV=function(E){for(var B;B=E.firstChild;)E.removeChild(B)};
_.Os=function(E,B){B.parentNode&&B.parentNode.insertBefore(E,B)};
_.n7=function(E,B){B.parentNode&&B.parentNode.insertBefore(E,B.nextSibling)};
_.ii=function(E){return E&&E.parentNode?E.parentNode.removeChild(E):null};
_.Qgt=function(E,B){var I=B.parentNode;I&&I.replaceChild(E,B)};
_.dID=function(E){var B,I=E.parentNode;if(I&&I.nodeType!=11)if(E.removeNode)E.removeNode(!1);else{for(;B=E.firstChild;)I.insertBefore(B,E);_.ii(E)}};
_.My=function(E){return E.children!=void 0?E.children:Array.prototype.filter.call(E.childNodes,function(B){return B.nodeType==1})};
_.sgZ=function(E){return E.nextElementSibling!==void 0?E.nextElementSibling:_.hOV(E.nextSibling,!0)};
_.hOV=function(E,B){for(;E&&E.nodeType!=1;)E=B?E.nextSibling:E.previousSibling;return E};
_.jn=function(E){return _.B6(E)&&E.nodeType==1};
_.Hp=function(E,B){if(!E||!B)return!1;if(E.contains&&B.nodeType==1)return E==B||E.contains(B);if(typeof E.compareDocumentPosition!="undefined")return E==B||!!(E.compareDocumentPosition(B)&16);for(;B&&E!=B;)B=B.parentNode;return B==E};
xI6=function(E,B){if(E==B)return 0;if(E.compareDocumentPosition)return E.compareDocumentPosition(B)&2?1:-1;if("sourceIndex"in E||E.parentNode&&"sourceIndex"in E.parentNode){var I=E.nodeType==1,T=B.nodeType==1;if(I&&T)return E.sourceIndex-B.sourceIndex;var e=E.parentNode,c=B.parentNode;return e==c?u8U(E,B):!I&&_.Hp(e,B)?-1*L2Z(E,B):!T&&_.Hp(c,E)?L2Z(B,E):(I?E.sourceIndex:e.sourceIndex)-(T?B.sourceIndex:c.sourceIndex)}T=_.Zs(E);I=T.createRange();I.selectNode(E);I.collapse(!0);E=T.createRange();E.selectNode(B);
E.collapse(!0);return I.compareBoundaryPoints(_.$i.Range.START_TO_END,E)};
L2Z=function(E,B){var I=E.parentNode;if(I==B)return-1;for(;B.parentNode!=I;)B=B.parentNode;return u8U(B,E)};
u8U=function(E,B){for(;B=B.previousSibling;)if(B==E)return-1;return 1};
G7N=function(E){var B,I=arguments.length;if(!I)return null;if(I==1)return arguments[0];var T=[],e=Infinity;for(B=0;B<I;B++){for(var c=[],Y=arguments[B];Y;)c.unshift(Y),Y=Y.parentNode;T.push(c);e=Math.min(e,c.length)}c=null;for(B=0;B<e;B++){Y=T[0][B];for(var v=1;v<I;v++)if(Y!=T[v][B])return c;c=Y}return c};
_.Zs=function(E){return E.nodeType==9?E:E.ownerDocument||E.document};
OTU=function(E){return E.contentDocument||E.contentWindow.document};
_.HT=function(E,B){if("textContent"in E)E.textContent=B;else if(E.nodeType==3)E.data=String(B);else if(E.firstChild&&E.firstChild.nodeType==3){for(;E.lastChild!=E.firstChild;)E.removeChild(E.lastChild);E.firstChild.data=String(B)}else _.GV(E),E.appendChild(_.Zs(E).createTextNode(String(B)))};
nIN={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};MtX={IMG:" ",BR:"\n"};JRi=function(E){var B;E.tagName=="A"&&E.hasAttribute("href")||E.tagName=="INPUT"||E.tagName=="TEXTAREA"||E.tagName=="SELECT"||E.tagName=="BUTTON"?B=!E.disabled&&(!E.hasAttribute("tabindex")||HT6(E)):B=E.hasAttribute("tabindex")&&HT6(E);return B};
HT6=function(E){E=E.tabIndex;return typeof E==="number"&&E>=0&&E<32768};
gIl=function(E){var B=[];NsU(E,B,!0);E=B.join("");E=E.replace(/ \xAD /g," ").replace(/\xAD/g,"");E=E.replace(/\u200B/g,"");E=E.replace(/ +/g," ");E!=" "&&(E=E.replace(/^\s*/,""));return E};
S9U=function(E){var B=[];NsU(E,B,!1);return B.join("")};
NsU=function(E,B,I){if(!(E.nodeName in nIN))if(E.nodeType==3)I?B.push(String(E.nodeValue).replace(/(\r\n|\r|\n)/g,"")):B.push(E.nodeValue);else if(E.nodeName in MtX)B.push(MtX[E.nodeName]);else for(E=E.firstChild;E;)NsU(E,B,I),E=E.nextSibling};
_.JHr=function(E,B,I){if(!B&&!I)return null;var T=B?String(B).toUpperCase():null;return _.Ql(E,function(e){return(!T||e.nodeName==T)&&(!I||typeof e.className==="string"&&_.AD(e.className.split(/\s+/),I))},!0)};
_.Ql=function(E,B,I){E&&!I&&(E=E.parentNode);for(I=0;E;){if(B(E))return E;E=E.parentNode;I++}return null};
dw=function(E){this.JSC$7214_document_=E||_.$i.document||document};
_.l=dw.prototype;_.l.getElement=function(E){return _.tk(this.JSC$7214_document_,E)};
_.l.$=dw.prototype.getElement;_.l.getElementsByTagName=function(E,B){return(B||this.JSC$7214_document_).getElementsByTagName(String(E))};
_.l.getElementsByTagNameAndClass=function(E,B,I){return hw(this.JSC$7214_document_,E,B,I)};
_.l.$$=dw.prototype.getElementsByTagNameAndClass;_.l.setProperties=CLt;_.l.JSC$7216_createDom=function(E,B,I){return ZTN(this.JSC$7214_document_,arguments)};
_.l.createElement=function(E){return PLr(this.JSC$7214_document_,E)};
_.l.createTextNode=function(E){return this.JSC$7214_document_.createTextNode(String(E))};
_.l.getWindow=function(){return this.JSC$7214_document_.defaultView};
var Ex=function(E){return _.wmr(E.JSC$7214_document_)};
_.l=dw.prototype;_.l.appendChild=function(E,B){E.appendChild(B)};
_.l.append=mIU;_.l.canHaveChildren=xL;_.l.removeNode=_.ii;_.l.getChildren=_.My;_.l.contains=_.Hp;_.l=kB.prototype;_.l.getWidth=function(){return this.right-this.left};
_.l.getHeight=function(){return this.bottom-this.top};
_.l.clone=function(){return new kB(this.top,this.right,this.bottom,this.left)};
_.l.contains=function(E){return this&&E?E instanceof kB?E.left>=this.left&&E.right<=this.right&&E.top>=this.top&&E.bottom<=this.bottom:E.x>=this.left&&E.x<=this.right&&E.y>=this.top&&E.y<=this.bottom:!1};
_.l.expand=function(E,B,I,T){_.B6(E)?(this.top-=E.top,this.right+=E.right,this.bottom+=E.bottom,this.left-=E.left):(this.top-=E,this.right+=Number(B),this.bottom+=Number(I),this.left-=Number(T));return this};
_.l.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};
_.l.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};
_.l.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};
_.l.translate=function(E,B){E instanceof _.Cb?(this.left+=E.x,this.right+=E.x,this.top+=E.y,this.bottom+=E.y):(this.left+=E,this.right+=E,typeof B==="number"&&(this.top+=B,this.bottom+=B));return this};
_.l.scale=function(E,B){B=typeof B==="number"?B:E;this.left*=E;this.right*=E;this.top*=B;this.bottom*=B;return this};var Ny=function(E,B,I,T){this.left=E;this.top=B;this.width=I;this.height=T};
_.l=Ny.prototype;_.l.clone=function(){return new Ny(this.left,this.top,this.width,this.height)};
_.l.boundingRect=function(E){var B=Math.max(this.left+this.width,E.left+E.width),I=Math.max(this.top+this.height,E.top+E.height);this.left=Math.min(this.left,E.left);this.top=Math.min(this.top,E.top);this.width=B-this.left;this.height=I-this.top};
_.l.contains=function(E){return E instanceof _.Cb?E.x>=this.left&&E.x<=this.left+this.width&&E.y>=this.top&&E.y<=this.top+this.height:this.left<=E.left&&this.left+this.width>=E.left+E.width&&this.top<=E.top&&this.top+this.height>=E.top+E.height};
_.l.distance=function(E){var B=E.x<this.left?this.left-E.x:Math.max(E.x-(this.left+this.width),0);E=E.y<this.top?this.top-E.y:Math.max(E.y-(this.top+this.height),0);return Math.sqrt(B*B+E*E)};
_.l.getSize=function(){return new _.KK(this.width,this.height)};
_.l.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};
_.l.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};
_.l.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};
_.l.translate=function(E,B){E instanceof _.Cb?(this.left+=E.x,this.top+=E.y):(this.left+=E,typeof B==="number"&&(this.top+=B));return this};
_.l.scale=function(E,B){B=typeof B==="number"?B:E;this.left*=E;this.width*=E;this.top*=B;this.height*=B;return this};var XmV,Jw,vrQ,Sw,AHR,oID,jgu,HJG,UI6,ttZ;_.gw=function(E,B,I){if(typeof B==="string")(B=_.W2Z(E,B))&&(E.style[B]=I);else for(var T in B){I=E;var e=B[T],c=_.W2Z(I,T);c&&(I.style[c]=e)}};
XmV={};_.W2Z=function(E,B){var I=XmV[B];if(!I){var T=_.yT(B);I=T;E.style[T]===void 0&&(T=(_.pa?"Webkit":_.iq?"Moz":null)+czD(T),E.style[T]!==void 0&&(I=T));XmV[B]=I}return I};
_.Zu=function(E,B){var I=_.Zs(E);return I.defaultView&&I.defaultView.getComputedStyle&&(E=I.defaultView.getComputedStyle(E,null))?E[B]||E.getPropertyValue(B)||"":""};
_.Mm=function(E,B){return _.Zu(E,B)||(E.currentStyle?E.currentStyle[B]:null)||E.style&&E.style[B]};
_.rHz=function(E){return _.Mm(E,"position")};
Jw=function(E,B,I){if(B instanceof _.Cb){var T=B.x;B=B.y}else T=B,B=I;E.style.left=Sw(T,!1);E.style.top=Sw(B,!1)};
vrQ=function(E){try{return E.getBoundingClientRect()}catch(B){return{left:0,top:0,right:0,bottom:0}}};
_.zi=function(E){var B=_.Zs(E),I=new _.Cb(0,0);if(E==(B?_.Zs(B):document).documentElement)return I;E=vrQ(E);B=Ex(BM(B));I.x=E.left+B.x;I.y=E.top+B.y;return I};
_.bTZ=function(E,B,I){if(B instanceof _.KK)I=B.height,B=B.width;else if(I==void 0)throw Error("sa");E.style.width=Sw(B,!0);E.style.height=Sw(I,!0)};
Sw=function(E,B){typeof E=="number"&&(E=(B?Math.round(E):E)+"px");return E};
AHR=function(E){return oID(E)};
oID=function(E){var B=jgu;if(_.Mm(E,"display")!="none")return B(E);var I=E.style,T=I.display,e=I.visibility,c=I.position;I.visibility="hidden";I.position="absolute";I.display="inline";E=B(E);I.display=T;I.position=c;I.visibility=e;return E};
jgu=function(E){var B=E.offsetWidth,I=E.offsetHeight,T=_.pa&&!B&&!I;return(B===void 0||T)&&E.getBoundingClientRect?(E=vrQ(E),new _.KK(E.right-E.left,E.bottom-E.top)):new _.KK(B,I)};
HJG=function(E){var B=_.zi(E);E=oID(E);return new Ny(B.x,B.y,E.width,E.height)};
UI6=function(E,B){E=E.style;"opacity"in E?E.opacity=B:"MozOpacity"in E?E.MozOpacity=B:"filter"in E&&(E.filter=B===""?"":"alpha(opacity="+Number(B)*100+")")};
_.Xs=function(E,B){E.style.display=B?"":"none"};
_.k7r=function(E){return"rtl"==_.Mm(E,"direction")};
ttZ=function(E){var B=_.Zu(E,"marginLeft"),I=_.Zu(E,"marginRight"),T=_.Zu(E,"marginTop");E=_.Zu(E,"marginBottom");return new kB(parseFloat(T),parseFloat(I),parseFloat(E),parseFloat(B))};
_.f1R=function(E){var B=_.Zu(E,"borderLeftWidth"),I=_.Zu(E,"borderRightWidth"),T=_.Zu(E,"borderTopWidth");E=_.Zu(E,"borderBottomWidth");return new kB(parseFloat(T),parseFloat(I),parseFloat(E),parseFloat(B))};var WT=function(E){this.context=E};
WT.prototype.isSupported=function(E){return(E==null?0:E.attributionEnabled)||(E==null?void 0:E.beaconMethod)==="POST"||(E==null?0:E.customHeaders)||(E==null?0:E.customBody)||(E==null?0:E.keepAlive)?!1:!C7(this.context)};
WT.prototype.ping=function(){var E=this;return eR(_.aG.apply(0,arguments).map(function(B){try{var I=E.context.global,T=!1;T=T===void 0?!1:T;I.google_image_requests||(I.google_image_requests=[]);var e=cHh("IMG",I.document);T&&(e.attributionSrc="");e.src=B;I.google_image_requests.push(e);return!0}catch(c){return!1}}).every(function(B){return B}))};
WT.prototype.pingWithHeadersAndBody=function(E,B,I){this.ping.apply(this,_.ad(_.aG.apply(3,arguments)))};var Vtt=function(E){this.context=E};
Vtt.prototype.isSupported=function(E){return q9X&&!C7(this.context)&&k1D(this.context)!==void 0&&!(E==null?0:E.attributionEnabled)&&(E==null?void 0:E.beaconMethod)!=="POST"&&!(E==null?0:E.customHeaders)&&!(E==null?0:E.customBody)};
Vtt.prototype.makeBeacon=function(E,B){if(!this.isSupported(B))throw new YL;return new XT(this.context,E)};
var q9X=!1,XT=function(E,B){this.context=E;this.JSC$7235_urlWithoutToken=B;E=k1D(this.context);if(E===void 0)throw Error();this.wrappedBeacon=new E(F26(this),{})},F26=function(E){E=E.JSC$7235_urlWithoutToken;
return(E.slice(-1)[0]==="&"?E:E+"&")+"pbapi=1"};
XT.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
XT.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
XT.prototype.setHeader=function(){};
_.Up.Object.defineProperties(XT.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7235_urlWithoutToken},
set:function(E){this.JSC$7235_urlWithoutToken=E;this.wrappedBeacon.setURL(F26(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(E){if(E!=="GET")throw new YL;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var DIX=function(E){this.context=E};
DIX.prototype.isSupported=function(E){if((E==null?0:E.attributionEnabled)||(E==null?void 0:E.beaconMethod)==="GET"||(E==null?0:E.customHeaders)||(E==null?0:E.customBody)||(E==null?0:E.keepAlive))return!1;var B;return!C7(this.context)&&((B=this.context.global.navigator)==null?void 0:B.sendBeacon)!==void 0};
DIX.prototype.ping=function(){var E=this;return eR(_.aG.apply(0,arguments).map(function(B){var I;return(I=E.context.global.navigator)==null?void 0:I.sendBeacon(B)}).every(function(B){return B}))};
DIX.prototype.pingWithHeadersAndBody=function(E,B,I){this.ping.apply(this,_.ad(_.aG.apply(3,arguments)))};var FW=function(E){this.value=E},M8=function(E,B){return eR(E.value).pipe(VM(B))},WM=new FW(!1),Qac=new FW(!0);var dM=function(E){this.value=E;this.releasedSubject=new tv};
dM.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Up.Object.defineProperties(dM.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7248_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var THi=["FRAME","IMG","IFRAME"],Kmi=/^[01](px)?$/,I7i=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},$hF=function(){var E=new I7i;
E.crossDomainLoadedDefault=!0;E.pendingImagesBlockLoad=!0;return E};var K2N=function(E,B){var I=a74(E);if(I)if(I.onCreativeLoad)I.onCreativeLoad(B);else{var T=B?[B]:[],e=function(c){for(var Y=0;Y<T.length;++Y)try{T[Y](1,c)}catch(v){}T={push:function(v){v(1,c)}}};
I.onCreativeLoad=function(c){T.push(c)};
I.setAttribute("data-creative-load-listener","");I.addEventListener("creativeLoad",function(c){e(c.detail)});
_.$i.addEventListener("message",function(c){YRc(I,e,c)})}};var rw=function(E,B){var I=this;this.global=E;this.parentContext=B;this.JSC$7259_onVisibilityChange=this.document?zB(eR(!0),Z7(this.document,"visibilitychange")).pipe(hv(this.parentContext.performanceMonitor,748),YB(function(){return I.getVisibilityState()}),GB()):eR("visible");
this.document?Z7(this.document,"DOMContentLoaded").pipe(hv(this.parentContext.performanceMonitor,739),xB(1)):eR(FmQ("DOMContentLoaded"))},mmd=function(E){return E.document!==null&&E.document.visibilityState!==void 0};
rw.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
rw.prototype.querySelector=function(E){return this.document?this.document.querySelector(E):null};
rw.prototype.querySelectorAll=function(E){return this.document?_.V6(this.document.querySelectorAll(E)):[]};
rw.prototype.elementFromPoint=function(E,B){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;E=this.document.elementFromPoint(E,B);return E===null?null:new dM(E)};
var ixJ=function(E,B,I){I=I===void 0?!1:I;if(B.ref===void 0||!E.document)return eR(B).pipe(hv(E.parentContext.performanceMonitor,749));var T=new Nh(1),e=function(){T.next(B)};
I||K2N(B.ref,e);e94(B.ref,e);return T.pipe(hv(E.parentContext.performanceMonitor,749),xB(1))};
_.Up.Object.defineProperties(rw.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return PM(this.global,"document")?this.global.document||null:null}}});var vBi=_.km(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),yvQ=_.km(["./reach_worklet.js"]),CAf=_.km(["./reach_worklet.js"]),ROX=_.km(["./reach_worklet.html"]),Eyl=_.km(["./reach_worklet.js"]),BFV=_.km(["./reach_worklet.js"]);_.jR(ROX);_.jR(Eyl);_.jR(BFV);var Lb={left:0,top:0,width:0,height:0};var $VZ,IKl,TFr,eGD,fc,c56,iXR,p9D,vyZ,y5V,ChX;$VZ=function(E,B,I,T,e,c,Y){var v="";E&&(v+=E+":");I&&(v+="//",B&&(v+=B+"@"),v+=I,T&&(v+=":"+T));e&&(v+=e);c&&(v+="?"+c);Y&&(v+="#"+Y);return v};
IKl=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.kP=function(E){return E.match(IKl)};
_.LJ=function(E,B){return E?B?decodeURI(E):decodeURIComponent(E):E};
TFr=function(E){E=_.kP(E)[1]||null;!E&&_.$i.self&&_.$i.self.location&&(E=_.$i.self.location.protocol.slice(0,-1));return E?E.toLowerCase():""};
_.tA=function(E){return _.LJ(_.kP(E)[3]||null,!0)};
_.c7=function(E){return _.LJ(_.kP(E)[5]||null,!0)};
_.Q4J=function(E){var B=E.indexOf("#");return B<0?null:E.slice(B+1)};
eGD=function(E){E=_.kP(E);return $VZ(E[1],E[2],E[3],E[4])};
_.lKr=function(E){E=_.kP(E);return $VZ(E[1],null,E[3],E[4])};
_.bT=function(E){E=_.kP(E);return $VZ(null,null,null,null,E[5],E[6],E[7])};
_.VT=function(E){var B=E.indexOf("#");return B<0?E:E.slice(0,B)};
fc=function(E,B){E=_.kP(E);B=_.kP(B);return E[3]==B[3]&&E[1]==B[1]&&E[4]==B[4]};
c56=function(E,B){if(E){E=E.split("&");for(var I=0;I<E.length;I++){var T=E[I].indexOf("="),e=null;if(T>=0){var c=E[I].substring(0,T);e=E[I].substring(T+1)}else c=E[I];B(c,e?qD(e):"")}}};
iXR=function(E){var B=E.indexOf("#");B<0&&(B=E.length);var I=E.indexOf("?");if(I<0||I>B){I=B;var T=""}else T=E.substring(I+1,B);return[E.slice(0,I),T,E.slice(B)]};
p9D=function(E,B){return B?E?E+"&"+B:B:E};
_.YXZ=function(E,B){if(!B)return E;E=iXR(E);E[1]=p9D(E[1],B);return E[0]+(E[1]?"?"+E[1]:"")+E[2]};
_.aKN=function(E,B,I){if(Array.isArray(B))for(var T=0;T<B.length;T++)_.aKN(E,String(B[T]),I);else B!=null&&I.push(E+(B===""?"":"="+_.rU(B)))};
_.pF=function(E){var B=[],I;for(I in E)_.aKN(I,E[I],B);return B.join("&")};
_.Ur=function(E,B){B=_.pF(B);return _.YXZ(E,B)};
_.bt=function(E,B,I){I=I!=null?"="+_.rU(I):"";return _.YXZ(E,B+I)};
vyZ=function(E,B,I,T){for(var e=I.length;(B=E.indexOf(I,B))>=0&&B<T;){var c=E.charCodeAt(B-1);if(c==38||c==63)if(c=E.charCodeAt(B+e),!c||c==61||c==38||c==35)return B;B+=e+1}return-1};
y5V=/#|$/;_.Nm=function(E,B){var I=E.search(y5V),T=vyZ(E,0,B,I);if(T<0)return null;var e=E.indexOf("&",T);if(e<0||e>I)e=I;T+=B.length+1;return qD(E.slice(T,e!==-1?e:0))};
ChX=/[?&]($|#)/;_.F$=function(E,B){for(var I=E.search(y5V),T=0,e,c=[];(e=vyZ(E,T,B,I))>=0;)c.push(E.substring(T,e)),T=Math.min(E.indexOf("&",e)+1||I,I);c.push(E.slice(T));return c.join("").replace(ChX,"$1")};
_.HC=function(E,B,I){return _.bt(_.F$(E,B),B,I)};
_.w9h=function(E){var B=iXR(window.location.href),I=B[1],T=[];I&&I.split("&").forEach(function(e){var c=e.indexOf("=");c=c>=0?e.slice(0,c):e;E.hasOwnProperty(c)||T.push(e)});
B[1]=p9D(T.join("&"),_.pF(E));return B[0]+(B[1]?"?"+B[1]:"")+B[2]};var SR4=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(SR4,_.LX);SR4.prototype.getVersion=function(){return _.O8(this,2)};var gBJ=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(gBJ,_.LX);var GBf=function(E,B){return _.$r(E,2,B)},NHB=function(E,B){return _.$r(E,3,B)};
gBJ.prototype.getModel=function(){return _.O8(this,4)};
var nBB=function(E,B){return _.$r(E,4,B)},xhf=function(E,B){return _.$r(E,5,B)},HKD=function(E,B){return _.$r(E,9,B)},LXJ=function(E,B){return dV(E,10,B)},uWJ=function(E,B){return _.q8(E,11,B)},OK4=function(E,B){return _.$r(E,1,B)},MR4=function(E,B){return _.q8(E,7,B)};var h9i="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var Ji=function(E,B,I,T){E=E===void 0?window:E;B=B===void 0?null:B;I=I===void 0?new giV:I;T=T===void 0?wLd():T;hZr.call(this);var e=this;this.global=E;this.debugChannel=B;this.performanceMonitor=I;this.onPageHide=wH(function(){return Z7(e.global,"pagehide")}).pipe(hv(this.performanceMonitor,941));
this.onLoad=wH(function(){return Z7(e.global,"load")}).pipe(hv(this.performanceMonitor,738),xB(1));
this.onResize=wH(function(){return Z7(e.global,"resize")}).pipe(hv(this.performanceMonitor,741));
this.onMessage=wH(function(){return Z7(e.global,"message")}).pipe(hv(this.performanceMonitor,740));
this.document=new rw(this.global,this);this.timeProvider=new OVD(new MNt(this.intrinsicFunctionNamespace,this.performanceMonitor),new nlX(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new LRl(new Nru(this),new Vtt(this),new az(this,new Jz$(this)),new az(this,new DIX(this)),new az(this,new WT(this)))};
_.L(Ji,hZr);var C7=function(E){var B=E.global;return!!E.global.HTMLFencedFrameElement&&!!B.fence&&typeof B.fence.reportEvent==="function"};
_.l=Ji.prototype;_.l.reportFencedFrameEvent=function(E){C7(this)&&this.global.fence.reportEvent(E)};
_.l.getOnBackgrounded=function(){return this.onPageHide.pipe(hv(this.performanceMonitor,942),VM(this.queue),YB(function(){}))};
_.l.postMessage=function(E,B,I){I=I===void 0?[]:I;this.global.postMessage(E,B,I)};
_.l.getWidth=function(){return SC(this.global)?this.global.width:0};
_.l.getHeight=function(){return SC(this.global)?this.global.height:0};
_.l.isMobile=function(){return X6Z()||rzZ()};
var hi=function(E,B){try{var I=mhc(B,E.global,E.isMobile());return{left:I.left,top:I.top,width:I.getWidth(),height:I.getHeight()}}catch(T){return Lb}};
Ji.prototype.validate=function(){var E=this.beaconFactory.isSupported()||C7(this);return this.global&&this.timeProvider.available()&&E};
var fgG=function(E){return(E=WXF(E.global))?VC(E):null};
_.Up.Object.defineProperties(Ji.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(E){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!SC(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}}});_.ZXu=!_.cf&&!_.n4();var dmF=function(E){return E};var saD=function(E){return E.pipe(mX(function(B){var I=B.endOfSessionReason;var T;return((T=B.viewable)==null?void 0:T.extrapolateToNow().value)||I!=void 0}),xB(1),uA())};var jdc=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Uh6=function(E){var B=E.sequenceNumber.toString(10).padStart(2,"0");
B=""+E.startTime+B;E.sequenceNumber<99&&E.sequenceNumber++;return B};var zdd=j6(rH(function(E){return E.endOfSessionReason===void 0}),YB(function(E){return Object.assign({},E,{timestamps:eC(E)})}),mX(function(E){var B=E.viewable;
E=E.timestamps;var I;return(I=B==null?void 0:B.extrapolateUsingTimestampMap(E).value)!=null?I:!1}),YB(function(E){var B=E.beaconFactory;
var I=E.timestampedExposureHistory;var T=E.timeOnScreen;var e=E.binaryContext;E=E.timestamps;if(B===void 0||I===void 0||T===void 0||e===void 0)return!1;if(T.extrapolateUsingTimestampMap(E).value.every(function(c){return c>=0}))return!0;
I=I.map(function(c){return c.timestamp+":"+c.value}).join(",");
T=ll({bin:e,tos:T},E);B.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+T+("&eh="+I)).sendNow();return!0}),rH(function(E){return!E}),uA());var tRf=function(E){return{id:E.pingId,mcvt:E.maxConsecutiveViewTime,p:E.creativePosition,asp:E.adSpeedPosition,tm:E.totalMeasurementTime,tu:E.totalUnviewedTime,mtos:E.maxTimeOnScreen,tos:E.timeOnScreen,v:E.binaryVersion,bin:E.binaryContext,avms:E.measurementStrategy,bs:E.browserSize,mc:E.maximumExposure,"if":E.crossDomainIframeState,vu:E.delayedImpressionJsState,app:E.inApp,mse:E.mraidError,mtop:E.mraidSituation,itpl:E.injectedTemplateId,adk:E.adKey,exk:E.awbidKey,rs:E.requestSource,la:E.isLargeAd,
cr:E.isContentRecommendationAd,uach:E.userAgentClientHints,vs:E.viewState,r:E.reasonCode,pay:E.hasCpmavUrl,co:E.clientPingOrderCounter,rst:E.adRenderStartTime,rpt:E.adRenderPeriodTime,isd:E.initialScrollDepth,lsd:E.loadedScrollDepth,context:E.errorContext,msg:E.errorMessage,stack:E.errorStack,name:E.errorName,ec:E.hasElementChanged,sfr:E.strategyFailureReasons,met:E.creativeSearchResult,wmsd:E.webMeasurementStartDiagnostic,pv:E.pageVisible,epv:E.eosPageVisible,pbe:E.inStatefulBeaconExperiment,fle:E.inFetchLaterBeaconExperiment,
vae:E.inViewableAttributionExperiment,spb:E.supportsPendingBeacon,sfl:E.supportsFetchLater,ffslot:E.isFencedFrameSlotTurtlex,reach:E.sharedStorageReachMode,io2:E.v2VisibilityBitVector,rxdbg:E.rxDebugger,omida:E.omidAppId,omidp:E.omidPartner,omidpv:E.omidPartnerVersion,omidor:E.omidOcclusionReasons,omidv:E.omidVersion,omids:E.omidSessionType,omidam:E.omidAccessMode,omidct:E.omidCreativeType,omidia:E.omidInApp,omiddc:E.omidDeviceCategory,omidlat:E.omidLastActivity,omiddit:E.omidDeviceIdleTime,qid:E.errorEscapedQueryId}};var hdi=function(E){var B=[];return E.pipe(YB(function(I){var T=I.beaconFactory,e=I.fetchBeaconFactory,c=I.timeOnScreen,Y=I.timeOnScreenUrlPrefixes,v=I.payloadMapper,y=I.timeOnScreenPingId,Z=I.timeOnScreenReason,P=I.urlSerializer,z=I.viewable,m=I.hasImpressionFired,u=I.inStatefulBeaconExperiment,x=I.supportsPendingBeacon,M=I.supportsFetchLater,N=I.turtlexReportEventData;if(!I.geometryMeasurable||!m||I.maxTimeOnScreen===void 0||c===void 0||Y===void 0||v===void 0||y===void 0||P===void 0||T===void 0)return!1;
if(I.isTurtlex){if(Z===void 0)return!1;Y=I.reportFencedFrameEvent;if(!Y)return!1;Y({eventType:"active-view-time-on-screen",eventData:N!=null?N:"",destination:["buyer"]});return!0}if(!(u||M||Z))return!1;N=eC(I);var W;z=(W=z==null?void 0:z.extrapolateUsingTimestampMap(N).value)!=null?W:!1;W=P(Object.assign({},I,{pingId:y,viewState:z?4:3,reasonCode:Z!=null?Z:"u",payloadMapper:v,urlPrefixes:Y}),N);if(u){for(;B.length>Y.length;)I=void 0,(I=B.shift())==null||I.deactivate();W.forEach(function(q,f){f>=B.length?
B.push(T.makeBeacon(q)):B[f].url=q});
return x&&e&&Z!==void 0?(W.forEach(function(q){e.makeBeacon(q).sendNow()}),!0):Z!==void 0}if(x&&e&&Z!==void 0)return W.forEach(function(q){e.makeBeacon(q).sendNow()}),!0;
if(M&&e){for(;B.length>Y.length;)x=void 0,(x=B.shift())==null||x.deactivate();var U=P(Object.assign({},I,{pingId:y,viewState:z?4:3,reasonCode:Z!=null?Z:"u",payloadMapper:v,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),N)[0];W.forEach(function(q,f){f>=B.length?B.push(T.makeBeacon(U,{endOfSession:!0})):B[f].url=U});
return Z!==void 0?(W.forEach(function(q){e.makeBeacon(q).sendNow()}),!0):Z!==void 0}return Z!==void 0?(W.forEach(function(q){T.makeBeacon(q).sendNow()}),!0):!1}),rH(function(I){return!I}),uA())};var usQ=j6(mX(function(E){return E.immediateUrlPrefixes!==void 0&&E.payloadMapper!==void 0&&E.urlSerializer!==void 0&&E.inferredPingId!==void 0&&E.beaconFactory!==void 0}),mX(function(E){return ErD(E)!==null}),KXG(function(E){return E.activeViewUnmeasurableEvent},function(E){return E.emit}),YB(function(E){if(E.isTurtlex){var B=E.reportFencedFrameEvent;
if(B){var I;B({eventType:"active-view-unmeasurable",eventData:(I=E.turtlexReportEventData)!=null?I:"",destination:["buyer"]})}}else{I=void 0;var T=ErD(E);if(T==="x"){var e,c=(e=E.geometricMeasurementErrors)!=null?e:E.contextValidationErrors;c&&(B=c.stack,I=c.message)}E.urlSerializer(Object.assign({},E,{urlPrefixes:E.immediateUrlPrefixes,payloadMapper:E.payloadMapper,pingId:E.inferredPingId,viewState:2,reasonCode:T,errorMessage:I,errorStack:B}),eC(E)).forEach(function(Y){E.beaconFactory.makeBeacon(Y).sendNow()})}}),
xB(1),uA());var BMG=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Pii=j6(mX(function(E){return E.payloadMapper!==void 0&&E.immediateUrlPrefixes!==void 0&&E.urlSerializer!==void 0&&E.inferredPingId!==void 0&&E.beaconFactory!==void 0}),YB(function(E){return Object.assign({},E,{timestamps:eC(E)})}),mX(function(E){var B=E.viewable;
var I=E.hasImpressionFired;E=E.timestamps;var T;return!!I&&((T=B==null?void 0:B.extrapolateUsingTimestampMap(E).value)!=null?T:!1)}),KXG(function(E){return E.activeViewViewableEvent},function(E){return E.emit}),YB(function(E){var B=E.beaconFactory,I=E.turtlexReportEventData;
if(E.isTurtlex){var T=E.reportFencedFrameEvent;if(!T)return!1;T({eventType:"active-view-viewable",eventData:I!=null?I:"",destination:["buyer"]});return!0}I=E.urlSerializer(Object.assign({},E,{urlPrefixes:E.immediateUrlPrefixes,payloadMapper:E.payloadMapper,pingId:E.inferredPingId,viewState:4,reasonCode:"v"}),E.timestamps);(T=E.cpmavUrls)&&T.length>0&&E.viewUrlSerializer&&E.viewUrlSerializer(T,E).forEach(function(e){B.makeBeacon(e).sendNow()});
(T=E.viewableRelayUrls)&&T.length>0&&E.viewUrlSerializer&&E.viewUrlSerializer(T,E).forEach(function(e){B.makeBeacon(e).sendNow()});
I.forEach(function(e){B.makeBeacon(e,{attributionEnabled:E.isViewableAttributionEnabled}).sendNow()});
return!0}),rH(function(E){return!E}),uA());var j_d=YB(function(E){return[E.value.topWindowViewportExternalGeometry.width,E.value.topWindowViewportExternalGeometry.height]});var sx=function(E,B){this.callback=E;this.options=B;this.intersectionObserverV2=this.intersectionObserverV1=null},LKd=function(E,B){B?E.intersectionObserverV2||(B=Object.assign({},E.options,{delay:100,
trackVisibility:!0}),E.intersectionObserverV2=new IntersectionObserver(E.callback,B)):E.intersectionObserverV1||(E.intersectionObserverV1=new IntersectionObserver(E.callback,E.options))},Phh=function(E,B){E=B?E.intersectionObserverV2:E.intersectionObserverV1;
if(!E)throw new s$l;return E};
sx.prototype.observe=function(E,B){Phh(this,E).observe(B)};
sx.prototype.unobserve=function(E,B){Phh(this,E).unobserve(B)};
sx.prototype.disconnect=function(E){Phh(this,E).disconnect()};
sx.prototype.takeRecords=function(E){return Phh(this,E).takeRecords()};var mK={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Lb,topWindowViewportExternalGeometry:Lb,measurementRequests:new tv,elementGeometrySourceName:"ns",elementGeometry:Lb,intersectionGeometry:Lb,viewportLocalAppOffset:{x:0,y:0}};var zG6=function(E){return E.intersectionGeometry.width*E.intersectionGeometry.height/(E.elementGeometry.width*E.elementGeometry.height)},HbQ=xr(j6(YB(function(E){var B;
return(B=E.exposureOverride)!=null?B:zG6(E)}),YB(function(E){return isFinite(E)?E:0}))),rif=xr(j6(YB(function(E){var B;
return(B=E.exposureOverride)!=null?B:zG6(E)}),YB(function(E){return isFinite(E)?E:-1})));var oz=function(E,B){this.a=E;this.b=B;if(E.clock.timeline!==B.clock.timeline)throw Error();};
oz.prototype.equivalentTo=function(E){return E instanceof oz?this.a.equivalentTo(E.a)&&this.b.equivalentTo(E.b):!1};
oz.prototype.extrapolateToTime=function(E){var B=this.a.extrapolateToTime(E).value,I=this.b.extrapolateToTime(E).value;return{timestamp:E,value:[B,I]}};
_.Up.Object.defineProperties(oz.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 E=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),B=this.a.lastMeasurement.timestamp.equals(E)?this.a.lastMeasurement.value:this.a.extrapolateToTime(E).value,I=this.b.lastMeasurement.timestamp.equals(E)?this.b.lastMeasurement.value:this.b.extrapolateToTime(E).value;return{timestamp:E,value:[B,I]}}}});var Aw=function(E,B){this.input=E;this.mapFunction=B;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Aw.prototype.equivalentTo=function(E){return E instanceof Aw?this.input.equivalentTo(E.input)&&this.mapFunction===E.mapFunction:!1};
Aw.prototype.extrapolateToTime=function(E){E=this.input.extrapolateToTime(E);return{timestamp:E.timestamp,value:this.mapFunction(E.value)}};
_.Up.Object.defineProperties(Aw.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var jw=function(){};
jw.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
jw.prototype.extrapolateUsingTimestampMap=function(E){var B=this.clock.timeline,I,T=(I=E.get(B))!=null?I:this.clock.now();E.set(B,T);return this.extrapolateToTime(T)};
jw.prototype.map=function(E){return new mVR(this,E)};
jw.prototype.joinWith=function(E){return new QhZ(this,E)};
var QhZ=function(){oz.apply(this,arguments);this.map=jw.prototype.map;this.joinWith=jw.prototype.joinWith;this.extrapolateToNow=jw.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=jw.prototype.extrapolateUsingTimestampMap};
_.L(QhZ,oz);var mVR=function(){Aw.apply(this,arguments);this.map=jw.prototype.map;this.joinWith=jw.prototype.joinWith;this.extrapolateToNow=jw.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=jw.prototype.extrapolateUsingTimestampMap};
_.L(mVR,Aw);var Ox=function(E,B){this.lastMeasurement=B;this.extrapolateToNow=jw.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=jw.prototype.extrapolateUsingTimestampMap;this.map=jw.prototype.map;this.joinWith=jw.prototype.joinWith;this.clock=E};
Ox.prototype.equivalentTo=function(E){return E.active};
Ox.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Up.Object.defineProperties(Ox.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var AiJ=YB(function(E){if(E.value.viewportGeometrySourceName==="omid"){if(E.value.elementGeometrySourceName==="nio")return"omio";if(E.value.elementGeometrySourceName==="geo")return"omgeo"}return E.value.elementGeometrySourceName==="geo"||E.value.elementGeometrySourceName==="nio"?E.value.viewportGeometrySourceName:E.value.elementGeometrySourceName});var Obi=j6(mX(function(E){return!isNaN(E)}),SR(function(E,B){return isNaN(E)?B:Math.min(E,B)},NaN),GB());var NMd=xr(j6(YB(function(E){return E.intersectionGeometry.width*E.intersectionGeometry.height/(E.exposedViewportLocalGeometry.width*E.exposedViewportLocalGeometry.height)}),YB(function(E){return isFinite(E)?Math.min(1,E):0})));var orJ=j6(xr(YB(function(E){E=E.exposureOverride?E.elementGeometry.width*E.elementGeometry.height*E.exposureOverride/(E.topWindowViewportExternalGeometry.width*E.topWindowViewportExternalGeometry.height):E.intersectionGeometry.width*E.intersectionGeometry.height/(E.topWindowViewportExternalGeometry.width*E.topWindowViewportExternalGeometry.height);return isFinite(E)?E:0})));var kic=function(E,B){var I=this;this.timeProvider=E;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=B.pipe(GB()).subscribe(function(T){gM(I);I.measurementRequestObserver=T})},fsc=function(E,B){gM(E);
E.lastMeasurementRequest=E.timeProvider.setTimeout(function(){var I;return void((I=E.measurementRequestObserver)==null?void 0:I.next())},B)},gM=function(E){E.lastMeasurementRequest!==null&&E.timeProvider.clearTimeout(E.lastMeasurementRequest);
E.lastMeasurementRequest=null};
kic.prototype.dispose=function(){gM(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var dVR=function(){};var Cif=function(E,B){this.context=E;this.strategies=B};
_.L(Cif,dVR);Cif.prototype.buildGeometrySource=function(E,B){var I=this.strategies.map(function(c){return c.buildGeometrySource(E,B)}),T=KK4(I.map(function(c){return c.geometrySource})),e=T.capturedErrors.pipe(hGZ());
return{geometrySource:T.chain.pipe(VM(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:e,strategyErrors:T.capturedErrors}].concat(_.ad(I.map(function(c){return c.additionalOutputs}))))}};
var hGZ=function(){return SR(function(E,B){B instanceof il?E.push(B.measurementStrategyFailureReason):E.push(-1);return E},[])};var Zx6=function(E,B){this.context=E;this.poller=B};
_.L(Zx6,dVR);Zx6.prototype.buildGeometrySource=function(E,B){var I=RfB(B1i(this.context,this.poller),Cli(this.context,B.requestSource));return{geometrySource:D8i(E.measurableCreative.pipe(I),B.inApp),additionalOutputs:{}}};var wpi=function(E,B,I){I=I===void 0?Q_i(E,B):I;this.context=E;this.intersectionObserverStrategy=I};
_.L(wpi,dVR);wpi.prototype.buildGeometrySource=function(E,B){var I=this.intersectionObserverStrategy(B.useV2);return{geometrySource:D8i(E.measurableCreative.pipe(I,d8D(this.context)),B.inApp),additionalOutputs:{}}};var sh6=function(E,B,I){var T=T===void 0?Symbol():T;this.element=E;this.immediateUrls=B;this.timeOnScreenUrls=I;this.symbol=T};var N8=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),lVc=Object.freeze([1,.75,N8.exposureThreshold,N8.largeAdExposureThreshold,0]);var rmt=function(E){var B=B===void 0?36E5:B;var I=I===void 0?!0:I;this.creatives=new tv;this.elementsToUnregister=new tv;this.elementMap=new Map;var T=new Ji(window,null);T.beaconFactory=new az(T,new WT(T));yV4(T,this.creatives,this.elementsToUnregister,E,B,I).subscribe()},oFG=function(E,B,I,T){if(!E.elementMap.has(B)){var e=new dM(B);
E.elementMap.set(B,e);E.creatives.next(new sh6(e,I,T))}},bu6=function(E,B){E.elementsToUnregister.next(B);
var I=E.elementMap.get(B);I!==void 0&&(I.release(),E.elementMap.delete(B))};var akJ=L3c("adurl"),Yq6=L3c("ae"),p8c=L3c("dsh"),iq4=function(E){var B=E.url;E=E.uaDataValues;this.JSC$7364_url_=B;this.uaDataValues_=E;this.suid_=(new Date).getTime()-17040672E5},vGd=function(E){E=E.uaDataValues_;
if(!E)return"";var B=rM("uap",E.platform)+rM("uapv",E.platformVersion)+rM("uafv",E.uaFullVersion)+rM("uaa",E.architecture)+rM("uam",E.model)+rM("uab",E.bitness);E.fullVersionList&&(B+="&uafvl="+encodeURIComponent(E.fullVersionList.map(function(I){return encodeURIComponent(I.brand)+";"+encodeURIComponent(I.version)}).join("|")));
E.wow64!=null&&(B+="&uaw="+Number(E.wow64));return B.slice(1)};var Us=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Us,_.LX);Us.prototype.getId=function(){return _.O8(this,1)};
Us.prototype.setId=function(E){return _.Fz(this,1,E)};var kL=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(kL,_.LX);kL.prototype.getSeconds=function(){return xU(this,1)};
kL.prototype.setSeconds=function(E){return _.Yy(this,1,xI(E),"0")};_.Xz=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(_.Xz,_.LX);_.Xz.prototype.getSeconds=function(){return xU(this,1)};
_.Xz.prototype.setSeconds=function(E){return _.Yy(this,1,xI(E),"0")};
_.u5V=function(E){var B=Number(Md(E,1));E=_.kr(E,2);return new Date(B*1E3+E/1E6)};var tw=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(tw,_.LX);tw.prototype.getUrl=function(){return _.O8(this,1)};
tw.prototype.setUrl=function(E){return _.Fz(this,1,E)};
tw.prototype.getHeight=function(){return _.kr(this,2)};
tw.prototype.getWidth=function(){return _.kr(this,3)};var f7=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(f7,_.LX);f7.prototype.getAspectRatio=function(){return GO(this,1)};
f7.prototype.setAspectRatio=function(E){return _.Yy(this,1,_.T7(E),0)};
f7.prototype.getDuration=function(){return _.DZ(this,kL,2)};var Lq$=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Lq$,_.LX);var xVz=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(xVz,_.LX);var G2X=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(G2X,_.LX);var OXl=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(OXl,_.LX);var nyZ=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(nyZ,_.LX);var MaZ=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(MaZ,_.LX);var HXl=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(HXl,_.LX);var NFN=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(NFN,_.LX);var gyX=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(gyX,_.LX);var V_=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(V_,_.LX);var qy=[2,4,5,6,7];var SXZ=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(SXZ,_.LX);var hs=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(hs,_.LX);_.l=hs.prototype;_.l.getId=function(){return _.DZ(this,Us,1)};
_.l.setId=function(E){return _.fX(this,1,E)};
_.l.getName=function(){return _.O8(this,2)};
_.l.setDescription=function(E){return _.Fz(this,3,E)};
_.l.getUrl=function(){return _.O8(this,8)};
_.l.setUrl=function(E){return _.Fz(this,8,E)};
var FT=function(E){return _.jC(E,tw,10,_.Ux())};
hs.prototype.getOwner=function(E){var B=_.ea(this,40,_.St,3,!0);W6(B,E);return B[E]};
hs.prototype.getVersion=function(){return xU(this,45)};
var DU=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(DU,_.LX);_.J5U=[0,dvG,sKD];_.WqD=[0,dvG,sKD];var X9N=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(X9N,_.LX);var K7=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(K7,_.LX);K7.prototype.getStatus=function(){return _.na(this,1)};
K7.prototype.removeItem=function(E){return Ap6(this,2,E)};var r5D=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(r5D,_.LX);r5D.prototype.getName=function(){return _.O8(this,8)};var Rz=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Rz,_.LX);Rz.prototype.getCommand=function(){return _.na(this,1)};
Rz.prototype.getSource=function(){return _.DZ(this,r5D,2)};
Rz.prototype.setVisible=function(E){return _.LC(this,5,E)};
Rz.prototype.removeItem=function(E){return Ap6(this,7,E)};var bXV=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(bXV,_.LX);bXV.prototype.getCommand=function(){return _.na(this,1)};
bXV.prototype.removeItem=function(E){return Ap6(this,4,E)};
var oyu=_.ky(bXV);var Ek=function(E,B,I){I=I===void 0?Error():I;var T=Error.call(this);this.message=T.message;"stack"in T&&(this.stack=T.stack);this.code=E;B+=":";I instanceof Error?(this.message=B+I.message,this.stack=I.stack||""):(this.message=B+String(I),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.L(Ek,Error);_.Cx=function(){this.JSC$7422_disposed_=this.JSC$7422_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Cx.prototype.JSC$7422_disposed_=!1;_.Cx.prototype.isDisposed=function(){return this.JSC$7422_disposed_};
_.Cx.prototype.dispose=function(){this.JSC$7422_disposed_||(this.JSC$7422_disposed_=!0,this.disposeInternal())};
_.Cx.prototype[Symbol.dispose]=function(){this.dispose()};
_.Bp=function(E,B){E.addOnDisposeCallback(_.wY(_.bl,B))};
_.Cx.prototype.addOnDisposeCallback=function(E,B){this.JSC$7422_disposed_?B!==void 0?E.call(B):E():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),B&&(E=E.bind(B)),this.onDisposeCallbacks_.push(E))};
_.Cx.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var BR=function(E){_.Cx.call(this);this.wpc=E};
_.L(BR,_.Cx);BR.prototype.moy=function(){return this.wpc.f()};
BR.prototype.dhM=function(E){return this.wpc.c(E)};
BR.prototype.oL=function(E){return this.wpc.m(HxJ(E))};
BR.prototype.uO=function(E){return this.wpc.mws(HxJ(E))};
var Ai=function(E){_.Cx.call(this);var B=this;this.gS=E;this.wry="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.sjj=void 0;this.wTe=this.gS.p;this.w97=this.d0C.bind(this);this.addOnDisposeCallback(function(){return void A5D(B)})};
_.L(Ai,_.Cx);var jhZ=function(E){var B;return _.a(function(I){if(I.nextAddress==1){if(!E.gS.wpc)throw new Ek(30,"NWA");return E.ehE?I.return(E.ehE):_.C(I,E.gS.wpc(),2)}B=I.yieldResult;E.ehE=new BR(B);return I.return(E.ehE)})};
Ai.prototype.snapshot=function(E){return this.gS.s(Object.assign({},E.d6&&{c:E.d6},E.ufF&&{s:E.ufF},E.qJP!==void 0&&{p:E.qJP}))};
Ai.prototype.d0C=function(E){this.gS.e(E)};
Ai.prototype.isQ=function(E,B){return this.gS.c(E,B,!1)};
var A5D=function(E){E.sjj!==void 0&&(E.wry.forEach(function(B){var I;(I=E.sjj)==null||I.removeEventListener(B,E.w97)}),E.sjj=void 0)};
Ai.prototype.nzC=function(){return this.gS.l()};var UV$,$T=function(){_.Cx.apply(this,arguments);this.vUq=1;this[UV$]=this.dispose};
_.L($T,_.Cx);$T.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.vUq++;return this};
$T.prototype.dispose=function(){--this.vUq||_.Cx.prototype.dispose.call(this)};
UV$=Symbol.dispose;var K3d=function(E){this.koS=E;E.addNewEventMetric("/client_streamz/bg/frs",_.Vl("mk"))};
K3d.prototype.record=function(E,B){this.koS.record("/client_streamz/bg/frs",E,B)};
var $SB=function(E){this.y76=E;E.addNewEventMetric("/client_streamz/bg/wrl",_.Vl("mn"),fb("ac"),fb("sc"),_.Vl("rk"),_.Vl("mk"))};
$SB.prototype.record=function(E,B,I,T,e,c){this.y76.record("/client_streamz/bg/wrl",E,B,I,T,e,c)};
var Ept=function(E){this.uRS=E;E.addNewCounter("/client_streamz/bg/ec",_.Vl("en"),_.Vl("mk"))};
Ept.prototype.increment=function(E,B){this.uRS.JSC$7671_incrementCounter("/client_streamz/bg/ec",E,B)};
var BtG=function(E){this.oh3=E;E.addNewEventMetric("/client_streamz/bg/el",_.Vl("en"),_.Vl("mk"))};
BtG.prototype.record=function(E,B,I){this.oh3.record("/client_streamz/bg/el",E,B,I)};
var Rdf=function(E){this.tK3=E;E.addNewCounter("/client_streamz/bg/cec",fb("ec"),_.Vl("mk"))};
Rdf.prototype.increment=function(E,B){this.tK3.JSC$7671_incrementCounter("/client_streamz/bg/cec",E,B)};
var I0d=function(E){this.x0C=E;E.addNewCounter("/client_streamz/bg/po/csc",fb("cs"),_.Vl("mk"))};
I0d.prototype.increment=function(E,B){this.x0C.JSC$7671_incrementCounter("/client_streamz/bg/po/csc",E,B)};
var TtD=function(E){this.bXC=E;E.addNewCounter("/client_streamz/bg/po/ctav",_.Vl("av"),_.Vl("mk"))};
TtD.prototype.increment=function(E,B){this.bXC.JSC$7671_incrementCounter("/client_streamz/bg/po/ctav",E,B)};
var eB4=function(E){this.akS=E;E.addNewCounter("/client_streamz/bg/po/cwsc",_.Vl("su"),_.Vl("mk"))};
eB4.prototype.increment=function(E,B){this.akS.JSC$7671_incrementCounter("/client_streamz/bg/po/cwsc",E,B)};var M2Q=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(M2Q,_.LX);var npi=function(E,B){return _.ih(E,3,B,DGQ)};var k2Z=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(k2Z,_.LX);var ta$=[1,2,3];var fKt=[0,ta$,_.OZ6,ubD,Gpf];var VaD=[0,_.ts,[0,zec,_.As]];var qXR=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(qXR,_.LX);var FqZ=[1,2,3];var DVt=[0,FqZ,heB,mv6,_.fa,VaD];var Kqr=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Kqr,_.LX);var RGN=[0,_.ts,fKt,DVt];var EMZ=[0,[1,2,3],_.fa,[0,_.kU,-1,_.U8],_.fa,[0,_.kU,-1,_.ji,_.U8],_.fa,[0,_.kU]];var Bfl=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Bfl,_.LX);Bfl.prototype.JSC$7491_serializeBinary=BF4([0,_.kU,EMZ,ndt,_.ts,RGN,L9c,xvd]);var $7t=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L($7t,_.LX);var eA6=function(E){var B=new Bfl;B=_.$r(B,1,E.JSC$7607_metricName);var I=IgX(E);B=_.ih(B,3,I,_.NI);I=[];for(var T=[],e=_.p(E.cellMap.keys()),c=e.next();!c.done;c=e.next())T.push(c.value.split(","));for(e=0;e<T.length;e++){c=T[e];for(var Y=E.cellType,v=E.getCells(c)||[],y=[],Z=0;Z<v.length;Z++){var P=v[Z],z=P&&P.cellValue;P=new qXR;switch(Y){case 3:z=Number(z);Number.isFinite(z)&&iE(P,1,FqZ,xI(z));break;case 2:iE(P,2,FqZ,_.T7(Number(z)))}y.push(P)}Y=y;for(v=0;v<Y.length;v++){y=Y[v];Z=new Kqr;y=_.fX(Z,
2,y);Z=[];P=Tf$(E);for(z=0;z<P.length;z++){var m=P[z],u=c[z],x=new k2Z;switch(m){case 3:iE(x,1,ta$,gs(String(u)));break;case 2:m=Number(u);Number.isFinite(m)&&iE(x,2,ta$,_.z7(m));break;case 1:iE(x,3,ta$,Vd4(u==="true"))}Z.push(x)}dV(y,1,Z);I.push(y)}}dV(B,4,I);return B};var lgU=function(E){if(!E)return"";if(/^about:(?:blank|srcdoc)$/.test(E))return window.origin||"";E.indexOf("blob:")===0&&(E=E.substring(5));E=E.split("#")[0].split("?")[0];E=E.toLowerCase();E.indexOf("//")==0&&(E=window.location.protocol+E);/^[\w\-]*:\/\//.test(E)||(E=window.location.href);var B=E.substring(E.indexOf("://")+3),I=B.indexOf("/");I!=-1&&(B=B.substring(0,I));I=E.substring(0,E.indexOf("://"));if(!I)throw Error("ua`"+E);if(I!=="http"&&I!=="https"&&I!=="chrome-extension"&&I!=="moz-extension"&&
I!=="file"&&I!=="android-app"&&I!=="chrome-search"&&I!=="chrome-untrusted"&&I!=="chrome"&&I!=="app"&&I!=="devtools")throw Error("va`"+I);E="";var T=B.indexOf(":");if(T!=-1){var e=B.substring(T+1);B=B.substring(0,T);if(I==="http"&&e!=="80"||I==="https"&&e!=="443")E=":"+e}return I+"://"+B+E};var irN=function(E,B,I){var T=String(_.$i.location.href);return T&&E&&B?[B,c1$(lgU(T),E,I||null)].join(" "):null},c1$=function(E,B,I){var T=[],e=[];
if((Array.isArray(I)?2:1)==1)return e=[B,E],_.bW(T,function(v){e.push(v)}),p1t(e.join(" "));
var c=[],Y=[];_.bW(I,function(v){Y.push(v.key);c.push(v.value)});
I=Math.floor((new Date).getTime()/1E3);e=c.length==0?[I,B,E]:[c.join(":"),I,B,E];_.bW(T,function(v){e.push(v)});
E=p1t(e.join(" "));E=[I,E];Y.length==0||E.push(Y.join(""));return E.join("_")},p1t=function(E){var B=bxQ();
B.update(E);return B.digestString().toLowerCase()};var I8=function(E){this.JSC$7502_document_=E||{cookie:""}},Yfz;
_.l=I8.prototype;_.l.isEnabled=function(){if(!_.$i.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};
_.l.set=function(E,B,I){var T=!1;if(typeof I==="object"){var e=I.sameSite;T=I.secure||!1;var c=I.domain||void 0;var Y=I.path||void 0;var v=I.maxAge}if(/[;=\s]/.test(E))throw Error("wa`"+E);if(/[;\r\n]/.test(B))throw Error("xa`"+B);v===void 0&&(v=-1);I=c?";domain="+c:"";Y=Y?";path="+Y:"";T=T?";secure":"";v=v<0?"":v==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+v*1E3)).toUTCString();this.JSC$7502_document_.cookie=E+"="+B+I+Y+v+T+(e!=null?";samesite="+e:"")};
_.l.get=function(E,B){for(var I=E+"=",T=(this.JSC$7502_document_.cookie||"").split(";"),e=0,c;e<T.length;e++){c=_.Ir(T[e]);if(c.lastIndexOf(I,0)==0)return c.slice(I.length);if(c==E)return""}return B};
_.l.remove=function(E,B,I){var T=this.containsKey(E);this.set(E,"",{maxAge:0,path:B,domain:I});return T};
_.l.getKeys=function(){return Yfz(this).keys};
_.l.getValues=function(){return Yfz(this).values};
_.l.isEmpty=function(){return!this.JSC$7502_document_.cookie};
_.l.getCount=function(){return this.JSC$7502_document_.cookie?(this.JSC$7502_document_.cookie||"").split(";").length:0};
_.l.containsKey=function(E){return this.get(E)!==void 0};
_.l.containsValue=function(E){for(var B=Yfz(this).values,I=0;I<B.length;I++)if(B[I]==E)return!0;return!1};
_.l.clear=function(){for(var E=Yfz(this).keys,B=E.length-1;B>=0;B--)this.remove(E[B])};
Yfz=function(E){E=(E.JSC$7502_document_.cookie||"").split(";");for(var B=[],I=[],T,e,c=0;c<E.length;c++)e=_.Ir(E[c]),T=e.indexOf("="),T==-1?(B.push(""),I.push(e)):(B.push(e.substring(0,T)),I.push(e.substring(T+1)));return{keys:B,values:I}};
_.v7=new I8(typeof document=="undefined"?null:document);var RKc=function(){var E=_.$i.__SAPISID||_.$i.__APISID||_.$i.__3PSAPISID||_.$i.__1PSAPISID||_.$i.__OVERRIDE_SID;if(E)return!0;typeof document!=="undefined"&&(E=new I8(document),E=E.get("SAPISID")||E.get("APISID")||E.get("__Secure-3PAPISID")||E.get("__Secure-1PAPISID"));return!!E},agl=function(E,B,I,T){(E=_.$i[E])||typeof document==="undefined"||(E=(new I8(document)).get(B));
return E?irN(E,I,T):null},XPD=function(E){var B=lgU(String(_.$i.location.href)),I=[];
if(RKc()){B=B.indexOf("https:")==0||B.indexOf("chrome-extension:")==0||B.indexOf("chrome-untrusted://new-tab-page")==0||B.indexOf("moz-extension:")==0;var T=B?_.$i.__SAPISID:_.$i.__APISID;T||typeof document==="undefined"||(T=new I8(document),T=T.get(B?"SAPISID":"APISID")||T.get("__Secure-3PAPISID"));(T=T?irN(T,B?"SAPISIDHASH":"APISIDHASH",E):null)&&I.push(T);B&&((B=agl("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",E))&&I.push(B),(E=agl("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",E))&&I.push(E))}return I.length==
0?null:I.join(" ")};var vMR=function(){this.minSize=1024};
vMR.prototype.compress=function(E){var B,I,T,e;return _.a(function(c){switch(c.nextAddress){case 1:return B=new CompressionStream("gzip"),I=(new Response(B.readable)).arrayBuffer(),T=B.writable.getWriter(),_.C(c,T.write((new TextEncoder).encode(E)),2);case 2:return _.C(c,T.close(),3);case 3:return e=Uint8Array,_.C(c,I,4);case 4:return c.return(new e(c.yieldResult))}})};
vMR.prototype.isSupported=function(E){return E<this.minSize?!1:typeof CompressionStream!=="undefined"};var y1u=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(y1u,_.LX);var Tw=function(E,B){this.intervalMs=E;this.callback=B;this.enabled=!1;this.nowFn=function(){return _.Bf()};
this.lastTimeMs=this.nowFn()};
Tw.prototype.setInterval=function(E){this.intervalMs=E;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Tw.prototype.start=function(){var E=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){E.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Tw.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Tw.prototype.tick=function(){var E=this;if(this.enabled){var B=Math.max(this.nowFn()-this.lastTimeMs,0);B<this.intervalMs*.8?this.timer=setTimeout(function(){E.tick()},this.intervalMs-B):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var CvD=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(CvD,_.LX);var w1R=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(w1R,_.LX);var ZrR=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(ZrR,_.LX);ZrR.prototype.getTransmissionType=function(){return _.na(this,1)};var Umc=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Umc,_.LX);Umc.prototype.getVersion=function(){return _.O8(this,2)};var el=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(el,_.LX);var jai=function(E){dV(FR,1,E)};
el.prototype.getModel=function(){return _.O8(this,6)};
var PvZ=_.ky(el);var zAl=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(zAl,_.LX);var o96=["platform","platformVersion","architecture","model","uaFullVersion"],FR=new el,AVf=null;var m7$=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(m7$,_.LX);var QG6=function(E){return _.KF(E,1,1)};var d7D=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E,4)};
_.L(d7D,_.LX);_.lG=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E,36)};
_.L(_.lG,_.LX);_.lG.prototype.getExperimentIds=function(){return _.DZ(this,y1u,16)};var hAt=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E,19)};
_.L(hAt,_.LX);hAt.prototype.setLogSource=function(E){return _.KF(this,2,E)};
hAt.prototype.setScheduler=function(E){return _.KF(this,10,E)};var uLl=function(E,B){this.isServiceWorkerScope=B=B===void 0?!1:B;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new hAt;Number.isInteger(E)&&this.logRequest.setLogSource(E);B||(this.locale=document.documentElement.getAttribute("lang"));sGz(this,new m7$)};
uLl.prototype.setLogSource=function(E){this.logRequest.setLogSource(E);return this};
var sGz=function(E,B){_.fX(E.logRequest,1,B);_.na(B,1)||QG6(B);E.isServiceWorkerScope||(B=cR(E),_.O8(B,5)||_.$r(B,5,E.locale));E.uach&&(B=cR(E),_.DZ(B,el,9)||_.fX(B,9,E.uach))},LmZ=function(E,B){E.transmissionType=B},x7V=function(E){var B=B===void 0?o96:B;
var I=E.isServiceWorkerScope?void 0:wM();I?kMt(I,B).then(function(T){E.uach=PvZ(T!=null?T:"[]");T=cR(E);_.fX(T,9,E.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},cR=function(E){E=_.DZ(E.logRequest,m7$,1);
var B=_.DZ(E,zAl,11);B||(B=new zAl,_.fX(E,11,B));return B};
uLl.prototype.build=function(E,B,I,T,e,c){B=B===void 0?0:B;I=I===void 0?0:I;T=T===void 0?null:T;e=e===void 0?0:e;c=c===void 0?0:c;if(!this.isServiceWorkerScope){var Y=cR(this);var v=new ZrR;v=_.KF(v,1,this.transmissionType);v=_.q8(v,2,this.isFinal);I=_.gV(v,3,I>0?I:void 0);I=_.gV(I,4,e>0?e:void 0);I=_.gV(I,5,c>0?c:void 0);e=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;c=e[_.sZ]|0;I=H6(I,c)?I:new I.constructor(D1(e,c,!0));_.fX(Y,10,I)}Y=this.logRequest.clone();I=Date.now().toString();Y=
_.Rk(Y,4,xI(I));E=E.slice();E=dV(Y,3,E);T&&(Y=new CvD,T=_.gV(Y,13,T),Y=new w1R,T=_.fX(Y,2,T),Y=new d7D,T=_.fX(Y,1,T),T=_.KF(T,2,9),_.fX(E,18,T));B&&_.w9(E,14,B);return E};Ds.prototype.currBackoffCount_=0;Ds.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Ds.prototype.getValue=function(){return this.currValue_};
var G1R=function(E){E.currBaseValue_=Math.min(E.maxValue_,E.currBaseValue_*E.backoffFactor_);E.currValue_=Math.min(E.maxValue_,E.currBaseValue_+(E.randomFactor_?Math.round(E.randomFactor_*(Math.random()-.5)*2*E.currBaseValue_):0));E.currBackoffCount_++};var SQt=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E,8)};
_.L(SQt,_.LX);var OrD=_.ky(SQt);var JOc=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(JOc,_.LX);var iG;iG=new W9G;var pS=function(E){_.Cx.call(this);var B=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7580_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$7580_sendBeaconApiEnabled=!1;this.logSource=E.logSource;this.getAuthHeaderValue=
E.getAuthHeaderValue||function(){};
this.logRequestBuilder=new uLl(E.logSource,E.isServiceWorkerScope);this.network=E.network||null;this.productID=E.productID||null;this.clearcutUrl=E.urlOverride||null;this.sessionIndex=E.sessionIndex||null;this.disableAutomaticFlush=E.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!E.disableWithCredentials;this.isServiceWorkerScope=E.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!wM()&&!!wM().navigator&&wM().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(nMZ())).searchParams&&!!(new URL(nMZ())).searchParams.set;var I=QG6(new m7$);sGz(this.logRequestBuilder,I);this.flushBackoff=new Ds(1E4,3E5,.1);E=M6N(this,E.backgroundJobDeferrer);this.JSC$7580_flushTimer=new Tw(this.flushBackoff.getValue(),E);this.backupTimer=new Tw(6E5,E);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Hrh(B);
var T;(T=B.metalogService)==null||T.flush()}}),document.addEventListener("pagehide",function(){Hrh(B);
var T;(T=B.metalogService)==null||T.flush()}))};
_.L(pS,_.Cx);var M6N=function(E,B){return E.isBrowserSupported?B?function(){B().then(function(){E.flush()})}:function(){E.flush()}:function(){}};
pS.prototype.disposeInternal=function(){Hrh(this);this.JSC$7580_flushTimer.stop();this.backupTimer.stop();_.Cx.prototype.disposeInternal.call(this)};
var Nfz=function(E){E.clearcutUrl||(E.clearcutUrl=nMZ());try{return(new URL(E.clearcutUrl)).toString()}catch(B){return(new URL(E.clearcutUrl,wM().location.origin)).toString()}};
pS.prototype.dispatch=function(E){if(E instanceof _.lG)this.log(E);else try{var B=new _.lG,I=E.serialize();var T=_.$r(B,8,I);this.log(T)}catch(e){a8(this,4,1)}};
var a8=function(E,B,I){E.metalogService&&E.metalogService.increment(B,I)};
pS.prototype.log=function(E){a8(this,2,1);if(this.isBrowserSupported){E=E.clone();var B=this.sequencePosition++;E=_.w9(E,21,B);this.componentId&&_.$r(E,26,this.componentId);B=E;if(yzf(_.wV(B,1))==null){var I=Date.now();I=Number.isFinite(I)?I.toString():"0";_.Rk(B,1,xI(I))}_.vlJ(_.wV(B,15))!=null||_.w9(B,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(I=this.experimentIds.clone(),_.fX(B,16,I));a8(this,1,1);B=this.pendingEvents.length-1E3+1;B>0&&(this.pendingEvents.splice(0,B),this.numLogsDroppedSinceLastFlush+=
B,a8(this,3,B));this.pendingEvents.push(E);this.disableAutomaticFlush||this.JSC$7580_flushTimer.enabled||this.JSC$7580_flushTimer.start()}};
pS.prototype.flush=function(E,B){var I=this;if(this.pendingEvents.length===0)E&&E();else if(this.JSC$7580_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,gMD(this);else{var T=Date.now();if(this.noFlushUntilMs>T&&this.startWaitingMs<T)B&&B("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?LmZ(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var e=this.pendingEvents.length,
c=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),Y=this.getAuthHeaderValue();if(Y&&this.lastFailedAuth===Y)B&&B("stale-auth-token");else{this.pendingEvents=[];this.JSC$7580_flushTimer.enabled&&this.JSC$7580_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;T=c.serialize();var v;this.JSC$7580_compressor&&this.JSC$7580_compressor.isSupported(T.length)&&
(v=this.JSC$7580_compressor.compress(T));var y=Sfh(this,T,Y),Z=function(m){I.flushBackoff.reset();I.JSC$7580_flushTimer.setInterval(I.flushBackoff.getValue());if(m){var u=null;try{var x=JSON.stringify(JSON.parse(m.replace(")]}'\n","")));u=OrD(x)}catch(M){}u&&(m=Number(xU(u,1,_.jN("-1"))),m>0&&(I.startWaitingMs=Date.now(),I.noFlushUntilMs=I.startWaitingMs+m),OVc(u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,iG.fieldIndex),HVc(u,iG.fieldIndex),u=iG.ctor?iG.getExtensionFn(u,iG.ctor,iG.fieldIndex,
iG.JSC$6752_hasMessageId):iG.getExtensionFn(u,iG.fieldIndex,null,iG.JSC$6752_hasMessageId),u=u===null?void 0:u)&&(u=_.kr(u,1,-1),u!==-1&&(I.flushBackoff=new Ds(u<1?1:u,3E5,.1),I.JSC$7580_flushTimer.setInterval(I.flushBackoff.getValue())))}E&&E();I.numRetriesSinceLastSuccessfulFlush=0},P=function(m,u){var x=_.jC(c,_.lG,3,_.Ux());
var M=Number(xU(c,14));G1R(I.flushBackoff);I.JSC$7580_flushTimer.setInterval(I.flushBackoff.getValue());m===401&&Y&&(I.lastFailedAuth=Y);M&&(I.numLogsDroppedSinceLastFlush+=M);u===void 0&&(u=I.isRetryable(m));u&&(I.pendingEvents=x.concat(I.pendingEvents),I.disableAutomaticFlush||I.JSC$7580_flushTimer.enabled||I.JSC$7580_flushTimer.start());a8(I,7,1);B&&B("net-send-failed",m);++I.numRetriesSinceLastSuccessfulFlush},z=function(){I.network&&I.network.send(y,Z,P)};
v?v.then(function(m){a8(I,5,e);y.requestHeaders["Content-Encoding"]="gzip";y.requestHeaders["Content-Type"]="application/binary";y.body=m;y.bodyType=2;z()},function(){a8(I,6,e);
z()}):z()}}}};
var Sfh=function(E,B,I){I=I===void 0?null:I;var T=T===void 0?E.withCredentials:T;var e={},c=new URL(Nfz(E));I&&(e.Authorization=I);E.sessionIndex&&(e["X-Goog-AuthUser"]=E.sessionIndex,c.searchParams.set("authuser",E.sessionIndex));E.pageId&&(Object.defineProperty(e,"X-Goog-PageId",{value:E.pageId}),c.searchParams.set("pageId",E.pageId));return{url:c.toString(),body:B,bodyType:1,requestHeaders:e,requestType:"POST",withCredentials:T,timeoutMillis:E.timeoutMillis}},Hrh=function(E){E.logRequestBuilder.isFinal=
!0;
E.flush();E.logRequestBuilder.isFinal=!1},gMD=function(E){J16(E,function(B,I){B=new URL(B);
B.searchParams.set("format","json");var T=!1;try{T=wM().navigator.sendBeacon(B.toString(),I.serialize())}catch(e){}T||(E.isSendBeaconSupported=!1);return T})},J16=function(E,B){if(E.pendingEvents.length!==0){var I=new URL(Nfz(E));
I.searchParams.delete("format");var T=E.getAuthHeaderValue();T&&I.searchParams.set("auth",T);I.searchParams.set("authuser",E.sessionIndex||"0");for(T=0;T<10&&E.pendingEvents.length;++T){var e=E.pendingEvents.slice(0,32),c=E.logRequestBuilder.build(e,E.numLogsDroppedSinceLastFlush,E.numRetriesSinceLastSuccessfulFlush,E.productID,E.persistedLogRecoveredCount,E.persistedLogExpiredCount);if(!B(I.toString(),c)){++E.numRetriesSinceLastSuccessfulFlush;break}E.numLogsDroppedSinceLastFlush=0;E.numRetriesSinceLastSuccessfulFlush=
0;E.persistedLogRecoveredCount=0;E.persistedLogExpiredCount=0;E.pendingEvents=E.pendingEvents.slice(e.length)}E.JSC$7580_flushTimer.enabled&&E.JSC$7580_flushTimer.stop()}};
pS.prototype.isRetryable=function(E){return 500<=E&&E<600||E===401||E===0};
var nMZ=function(){return"https://play.google.com/log?format=json&hasfast=true"};var WmR=function(){this.abortSupported=typeof AbortController!=="undefined"};
WmR.prototype.send=function(E,B,I){var T=this,e,c,Y,v,y,Z,P,z,m,u;return _.a(function(x){switch(x.nextAddress){case 1:return c=(e=T.abortSupported?new AbortController:void 0)?setTimeout(function(){e.abort()},E.timeoutMillis):void 0,_.q7(x,2,3),Y=Object.assign({},{method:E.requestType,
headers:Object.assign({},E.requestHeaders)},E.body&&{body:E.body},E.withCredentials&&{credentials:"include"},{signal:E.timeoutMillis&&e?e.signal:null}),_.C(x,fetch(E.url,Y),5);case 5:v=x.yieldResult;if(v.status!==200){(y=I)==null||y(v.status);x.jumpTo(3);break}if((Z=B)==null){x.jumpTo(7);break}return _.C(x,v.text(),8);case 8:Z(x.yieldResult);case 7:case 3:_.FL(x);clearTimeout(c);_.Kr(x,0);break;case 2:P=_.RG(x);switch((z=P)==null?void 0:z.name){case "AbortError":(m=I)==null||m(408);break;default:(u=
I)==null||u(400)}x.jumpTo(3)}})};
WmR.prototype.getTransmissionType=function(){return 4};_.E7=function(E,B){B=B===void 0?"0":B;_.Cx.call(this);this.logSource=E;this.sessionIndex=B;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7598_clearExperimentIds=this.productID=null;this.JSC$7598_sendBeaconApiEnabled=!1;this.pageId=null};
_.L(_.E7,_.Cx);var ph4=function(E,B){E.buildLabel=B;return E},id4=function(E,B){E.network=B;
return E},Odi=function(E,B){E.JSC$7598_clearExperimentIds=B},cxt=function(E){E.JSC$7598_sendBeaconApiEnabled=!0;
return E};
_.E7.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.E7.prototype.build=function(){this.network||(this.network=new WmR);var E=new pS({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:XPD,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Bp(this,E);if(this.buildLabel){var B=this.buildLabel,I=cR(E.logRequestBuilder);
_.$r(I,7,B)}E.JSC$7580_compressor=new vMR;this.componentId&&(E.componentId=this.componentId);this.productID&&(E.productID=this.productID);this.pageId&&(E.pageId=this.pageId);this.JSC$7598_clearExperimentIds&&((I=this.JSC$7598_clearExperimentIds)?(E.experimentIds||(E.experimentIds=new y1u),B=E.experimentIds,I=I.serialize(),_.$r(B,4,I)):E.experimentIds&&_.Rk(E.experimentIds,4));this.JSC$7598_sendBeaconApiEnabled&&(E.JSC$7580_sendBeaconApiEnabled=E.isSendBeaconSupported);x7V(E.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(E);return E};var Hdc=function(E,B,I,T,e,c,Y){E=E===void 0?-1:E;B=B===void 0?"":B;I=I===void 0?"":I;T=T===void 0?!1:T;e=e===void 0?"":e;_.Cx.call(this);this.logSource=E;this.componentId=B;c?B=c:(E=new _.E7(E,"0"),E.componentId=B,_.Bp(this,E),I!==""&&(E.destinationUrl=I),T&&(E.serviceWorkerScopeEnabled=!0),e&&ph4(E,e),Y&&id4(E,Y),B=E.build());this.JSC$7602_transport=B};
_.L(Hdc,_.Cx);Hdc.prototype.flush=function(E){E=E||[];if(E.length){for(var B=new $7t,I=[],T=0;T<E.length;T++){var e=E[T],c=eA6(e);I.push(c);e.clear()}dV(B,1,I);this.JSC$7602_transport.dispatch(B);this.JSC$7602_transport.flush()}};var X1t=function(E){this.cellValue=E};var vR=function(E,B,I){this.JSC$7607_metricName=E;this.cellType=B;this.fields=I||[];this.cellMap=new Map},Tf$=function(E){return E.fields.map(function(B){return B.fieldType})},IgX=function(E){return E.fields.map(function(B){return B.fieldName})};
_.l=vR.prototype;_.l.addCell=function(E){var B=_.aG.apply(1,arguments),I=this.getCells(B);I?I.push(new X1t(E)):this.JSC$7607_setCell(E,B)};
_.l.JSC$7607_setCell=function(E){var B=this.JSC$7607_getKey(_.aG.apply(1,arguments));this.cellMap.set(B,[new X1t(E)])};
_.l.getCells=function(){var E=this.JSC$7607_getKey(_.aG.apply(0,arguments));return this.cellMap.has(E)?this.cellMap.get(E):void 0};
_.l.getCell=function(){var E=this.getCells(_.aG.apply(0,arguments));return E&&E.length?E[0]:void 0};
_.l.clear=function(){this.cellMap.clear()};
_.l.JSC$7607_getKey=function(){var E=_.aG.apply(0,arguments);return E?E.join(","):"key"};var r1r=function(E,B){vR.call(this,E,3,B)};
_.L(r1r,vR);r1r.prototype.JSC$7610_incrementCounterBy=function(E){var B=_.aG.apply(1,arguments),I=0,T=this.getCell(B);T&&(I=T.cellValue);this.JSC$7607_setCell(I+E,B)};var brZ=function(E,B){vR.call(this,E,2,B)};
_.L(brZ,vR);brZ.prototype.record=function(E){this.addCell(E,_.aG.apply(1,arguments))};_.yY=function(E){this.id=E};
_.yY.prototype.toString=function(){return this.id};_.CS=function(E,B){this.type=E instanceof _.yY?String(E):E;this.currentTarget=this.target=B;this.defaultPrevented=this.propagationStopped_=!1};
_.CS.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.CS.prototype.preventDefault=function(){this.defaultPrevented=!0};_.wI=function(E,B){_.CS.call(this,E?E.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;E&&this.init(E,B)};
_.$U(_.wI,_.CS);
_.wI.prototype.init=function(E,B){var I=this.type=E.type,T=E.changedTouches&&E.changedTouches.length?E.changedTouches[0]:null;this.target=E.target||E.srcElement;this.currentTarget=B;B=E.relatedTarget;B||(I=="mouseover"?B=E.fromElement:I=="mouseout"&&(B=E.toElement));this.relatedTarget=B;T?(this.clientX=T.clientX!==void 0?T.clientX:T.pageX,this.clientY=T.clientY!==void 0?T.clientY:T.pageY,this.screenX=T.screenX||0,this.screenY=T.screenY||0):(this.offsetX=_.pa||E.offsetX!==void 0?E.offsetX:E.layerX,
this.offsetY=_.pa||E.offsetY!==void 0?E.offsetY:E.layerY,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.button=E.button;this.keyCode=E.keyCode||0;this.key=E.key||"";this.charCode=E.charCode||(I=="keypress"?E.keyCode:0);this.ctrlKey=E.ctrlKey;this.altKey=E.altKey;this.shiftKey=E.shiftKey;this.metaKey=E.metaKey;this.pointerId=E.pointerId||0;this.pointerType=E.pointerType;this.state=E.state;
this.timeStamp=E.timeStamp;this.event_=E;E.defaultPrevented&&_.wI.superClass_.preventDefault.call(this)};
_.wI.prototype.stopPropagation=function(){_.wI.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.wI.prototype.preventDefault=function(){_.wI.superClass_.preventDefault.call(this);var E=this.event_;E.preventDefault?E.preventDefault():E.returnValue=!1};var oMu="closure_listenable_"+(Math.random()*1E6|0),ZF=function(E){return!(!E||!E[oMu])};var A1X=0;var jG6=function(E,B,I,T,e){this.listener=E;this.proxy=null;this.src=B;this.type=I;this.capture=!!T;this.handler=e;this.key=++A1X;this.removed=this.callOnce=!1},U7R=function(E){E.removed=!0;
E.listener=null;E.proxy=null;E.src=null;E.handler=null};Kb.prototype.add=function(E,B,I,T,e){var c=E.toString();E=this.listeners[c];E||(E=this.listeners[c]=[],this.typeCount_++);var Y=k1z(E,B,T,e);Y>-1?(B=E[Y],I||(B.callOnce=!1)):(B=new jG6(B,this.src,c,!!T,e),B.callOnce=I,E.push(B));return B};
Kb.prototype.remove=function(E,B,I,T){E=E.toString();if(!(E in this.listeners))return!1;var e=this.listeners[E];B=k1z(e,B,I,T);return B>-1?(U7R(e[B]),_.tD(e,B),e.length==0&&(delete this.listeners[E],this.typeCount_--),!0):!1};
var t6$=function(E,B){var I=B.type;if(!(I in E.listeners))return!1;var T=_.f4(E.listeners[I],B);T&&(U7R(B),E.listeners[I].length==0&&(delete E.listeners[I],E.typeCount_--));return T};
Kb.prototype.removeAll=function(E){E=E&&E.toString();var B=0,I;for(I in this.listeners)if(!E||I==E){for(var T=this.listeners[I],e=0;e<T.length;e++)++B,U7R(T[e]);delete this.listeners[I];this.typeCount_--}return B};
Kb.prototype.getListener=function(E,B,I,T){E=this.listeners[E.toString()];var e=-1;E&&(e=k1z(E,B,I,T));return e>-1?E[e]:null};
Kb.prototype.hasListener=function(E,B){var I=E!==void 0,T=I?E.toString():"",e=B!==void 0;return _.a_.some(this.listeners,function(c){for(var Y=0;Y<c.length;++Y)if(!(I&&c[Y].type!=T||e&&c[Y].capture!=B))return!0;return!1})};
var k1z=function(E,B,I,T){for(var e=0;e<E.length;++e){var c=E[e];if(!c.removed&&c.listener==B&&c.capture==!!I&&c.handler==T)return e}return-1};var fg6,V6r,qfR,D7t,KmX,iu,p8,BHu,RAR,EB$,PR,$hu,FmR;fg6="closure_lm_"+(Math.random()*1E6|0);V6r={};qfR=0;_.vV=function(E,B,I,T,e){if(T&&T.once)return iu(E,B,I,T,e);if(Array.isArray(B)){for(var c=0;c<B.length;c++)_.vV(E,B[c],I,T,e);return null}I=FmR(I);return ZF(E)?E.listen(B,I,_.B6(T)?!!T.capture:!!T,e):D7t(E,B,I,!1,T,e)};
D7t=function(E,B,I,T,e,c){if(!B)throw Error("za");var Y=_.B6(e)?!!e.capture:!!e,v=PR(E);v||(E[fg6]=v=new Kb(E));I=v.add(B,I,T,Y,c);if(I.proxy)return I;T=KmX();I.proxy=T;T.src=E;T.listener=I;if(E.addEventListener)_.aiZ||(e=Y),e===void 0&&(e=!1),E.addEventListener(B.toString(),T,e);else if(E.attachEvent)E.attachEvent(RAR(B.toString()),T);else if(E.addListener&&E.removeListener)E.addListener(T);else throw Error("Aa");qfR++;return I};
KmX=function(){var E=EB$,B=function(I){return E.call(B.src,B.listener,I)};
return B};
iu=function(E,B,I,T,e){if(Array.isArray(B)){for(var c=0;c<B.length;c++)iu(E,B[c],I,T,e);return null}I=FmR(I);return ZF(E)?E.listenOnce(B,I,_.B6(T)?!!T.capture:!!T,e):D7t(E,B,I,!0,T,e)};
_.zw=function(E,B,I,T,e){if(Array.isArray(B))for(var c=0;c<B.length;c++)_.zw(E,B[c],I,T,e);else T=_.B6(T)?!!T.capture:!!T,I=FmR(I),ZF(E)?E.unlisten(B,I,T,e):E&&(E=PR(E))&&(B=E.getListener(B,I,T,e))&&p8(B)};
p8=function(E){if(typeof E==="number"||!E||E.removed)return!1;var B=E.src;if(ZF(B))return t6$(B.eventTargetListeners_,E);var I=E.type,T=E.proxy;B.removeEventListener?B.removeEventListener(I,T,E.capture):B.detachEvent?B.detachEvent(RAR(I),T):B.addListener&&B.removeListener&&B.removeListener(T);qfR--;(I=PR(B))?(t6$(I,E),I.typeCount_==0&&(I.src=null,B[fg6]=null)):U7R(E);return!0};
BHu=function(E,B,I,T,e){I=FmR(I);T=!!T;return ZF(E)?E.getListener(B,I,T,e):E?(E=PR(E))?E.getListener(B,I,T,e):null:null};
RAR=function(E){return E in V6r?V6r[E]:V6r[E]="on"+E};
EB$=function(E,B){if(E.removed)E=!0;else{B=new _.wI(B,this);var I=E.listener,T=E.handler||E.src;E.callOnce&&p8(E);E=I.call(T,B)}return E};
PR=function(E){E=E[fg6];return E instanceof Kb?E:null};
$hu="__closure_events_fn_"+(Math.random()*1E9>>>0);FmR=function(E){if(typeof E==="function")return E;E[$hu]||(E[$hu]=function(B){return E.handleEvent(B)});
return E[$hu]};_.ms=function(){_.Cx.call(this);this.eventTargetListeners_=new Kb(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.$U(_.ms,_.Cx);_.ms.prototype[oMu]=!0;_.l=_.ms.prototype;_.l.setParentEventTarget=function(E){this.parentEventTarget_=E};
_.l.addEventListener=function(E,B,I,T){_.vV(this,E,B,I,T)};
_.l.removeEventListener=function(E,B,I,T){_.zw(this,E,B,I,T)};
_.l.dispatchEvent=function(E){var B,I=this.parentEventTarget_;if(I)for(B=[];I;I=I.parentEventTarget_)B.push(I);I=this.actualEventTarget_;var T=E.type||E;if(typeof E==="string")E=new _.CS(E,I);else if(E instanceof _.CS)E.target=E.target||I;else{var e=E;E=new _.CS(T,I);_.a_.extend(E,e)}e=!0;var c;if(B)for(c=B.length-1;!E.propagationStopped_&&c>=0;c--){var Y=E.currentTarget=B[c];e=I7l(Y,T,!0,E)&&e}E.propagationStopped_||(Y=E.currentTarget=I,e=I7l(Y,T,!0,E)&&e,E.propagationStopped_||(e=I7l(Y,T,!1,E)&&
e));if(B)for(c=0;!E.propagationStopped_&&c<B.length;c++)Y=E.currentTarget=B[c],e=I7l(Y,T,!1,E)&&e;return e};
_.l.disposeInternal=function(){_.ms.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.l.listen=function(E,B,I,T){return this.eventTargetListeners_.add(String(E),B,!1,I,T)};
_.l.listenOnce=function(E,B,I,T){return this.eventTargetListeners_.add(String(E),B,!0,I,T)};
_.l.unlisten=function(E,B,I,T){return this.eventTargetListeners_.remove(String(E),B,I,T)};
_.l.removeAllListeners=function(E){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(E):0};
var I7l=function(E,B,I,T){B=E.eventTargetListeners_.listeners[String(B)];if(!B)return!0;B=B.concat();for(var e=!0,c=0;c<B.length;++c){var Y=B[c];if(Y&&!Y.removed&&Y.capture==I){var v=Y.listener,y=Y.handler||Y.src;Y.callOnce&&t6$(E.eventTargetListeners_,Y);e=v.call(y,T)!==!1&&e}}return e&&!T.defaultPrevented};
_.ms.prototype.getListener=function(E,B,I,T){return this.eventTargetListeners_.getListener(String(E),B,I,T)};
_.ms.prototype.hasListener=function(E,B){return this.eventTargetListeners_.hasListener(E!==void 0?String(E):void 0,B)};var QY=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(E){return E&&AsyncContext.Snapshot.wrap(E)}:function(E){return E};var THX=function(E,B){this.create_=E;this.reset_=B;this.occupants_=0;this.JSC$7642_head_=null};
THX.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var E=this.JSC$7642_head_;this.JSC$7642_head_=E.next;E.next=null}else E=this.create_();return E};
THX.prototype.put=function(E){this.reset_(E);this.occupants_<100&&(this.occupants_++,E.next=this.JSC$7642_head_,this.JSC$7642_head_=E)};var e9V=function(){this.workTail_=this.workHead_=null};
e9V.prototype.add=function(E,B){var I=fVt.get();I.set(E,B);this.workTail_?this.workTail_.next=I:this.workHead_=I;this.workTail_=I};
e9V.prototype.remove=function(){var E=null;this.workHead_&&(E=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),E.next=null);return E};
var fVt=new THX(function(){return new l7r},function(E){return E.reset()}),l7r=function(){this.next=this.scope=this.fn=null};
l7r.prototype.set=function(E,B){this.fn=E;this.scope=B;this.next=null};
l7r.prototype.reset=function(){this.next=this.scope=this.fn=null};var cvu,Vec,teG,iKN;Vec=!1;teG=new e9V;_.dI=function(E,B){cvu||iKN();Vec||(cvu(),Vec=!0);teG.add(E,B)};
iKN=function(){var E=Promise.resolve(void 0);cvu=function(){E.then(q7f)}};var pLh=function(E){E.prototype.$goog_Thenable=!0},YRZ=function(E){if(!E)return!1;
try{return!!E.$goog_Thenable}catch(B){return!1}};var a7V,vBl,yvR,wLN,ZK6,PAZ,dh6,uWr,OKV,xhU,aC6;_.cC=function(E,B){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(E!=_.ZU)try{var I=this;E.call(B,function(T){I.resolve_(2,T)},function(T){I.resolve_(3,T)})}catch(T){this.resolve_(3,T)}};
a7V=function(){this.next=this.context=this.JSC$7653_onRejected=this.JSC$7653_onFulfilled=this.child=null;this.always=!1};
a7V.prototype.reset=function(){this.context=this.JSC$7653_onRejected=this.JSC$7653_onFulfilled=this.child=null;this.always=!1};
vBl=new THX(function(){return new a7V},function(E){E.reset()});
yvR=function(E,B,I){var T=vBl.get();T.JSC$7653_onFulfilled=E;T.JSC$7653_onRejected=B;T.context=I;return T};
_.i1=function(E){if(E instanceof _.cC)return E;var B=new _.cC(_.ZU);B.resolve_(2,E);return B};
_.rG=function(E){return new _.cC(function(B,I){I(E)})};
wLN=function(E,B,I){CAU(E,B,I,null)||_.dI(_.wY(B,E))};
_.hP=function(E){return new _.cC(function(B,I){var T=E.length,e=[];if(T)for(var c=function(Z,P){T--;e[Z]=P;T==0&&B(e)},Y=function(Z){I(Z)},v,y=0;y<E.length;y++)v=E[y],wLN(v,_.wY(c,y),Y);
else B(e)})};
ZK6=function(E){return new _.cC(function(B){var I=E.length,T=[];if(I)for(var e=function(v,y,Z){I--;T[v]=y?{fulfilled:!0,value:Z}:{fulfilled:!1,reason:Z};I==0&&B(T)},c,Y=0;Y<E.length;Y++)c=E[Y],wLN(c,_.wY(e,Y,!0),_.wY(e,Y,!1));
else B(T)})};
PAZ=function(E){return new _.cC(function(B,I){var T=E.length,e=[];if(T)for(var c=function(Z){B(Z)},Y=function(Z,P){T--;
e[Z]=P;T==0&&I(e)},v,y=0;y<E.length;y++)v=E[y],wLN(v,c,_.wY(Y,y));
else B(void 0)})};
_.gA=function(){var E,B,I=new _.cC(function(T,e){E=T;B=e});
return new z9u(I,E,B)};
_.cC.prototype.then=function(E,B,I){return mhZ(this,QY(typeof E==="function"?E:null),QY(typeof B==="function"?B:null),I)};
pLh(_.cC);dh6=function(E,B,I,T){QdR(E,yvR(B||_.ZU,I||null,T))};
_.sk=function(E,B){B=QY(B);B=yvR(B,B);B.always=!0;QdR(E,B);return E};
_.cC.prototype.finally=function(E){var B=this;E=QY(E);return new Promise(function(I,T){dh6(B,function(e){E();I(e)},function(e){E();
T(e)})})};
_.cC.prototype.thenCatch=function(E,B){return mhZ(this,null,QY(E),B)};
_.cC.prototype.catch=_.cC.prototype.thenCatch;_.cC.prototype.cancel=function(E){if(this.state_==0){var B=new _.X$(E);_.dI(function(){h9l(this,B)},this)}};
var h9l=function(E,B){if(E.state_==0)if(E.parent_){var I=E.parent_;if(I.callbackEntries_){for(var T=0,e=null,c=null,Y=I.callbackEntries_;Y&&(Y.always||(T++,Y.child==E&&(e=Y),!(e&&T>1)));Y=Y.next)e||(c=Y);e&&(I.state_==0&&T==1?h9l(I,B):(c?(T=c,T.next==I.callbackEntriesTail_&&(I.callbackEntriesTail_=T),T.next=T.next.next):sdz(I),uWr(I,e,3,B)))}E.parent_=null}else E.resolve_(3,B)},QdR=function(E,B){E.callbackEntries_||E.state_!=2&&E.state_!=3||LXr(E);
E.callbackEntriesTail_?E.callbackEntriesTail_.next=B:E.callbackEntries_=B;E.callbackEntriesTail_=B},mhZ=function(E,B,I,T){var e=yvR(null,null,null);
e.child=new _.cC(function(c,Y){e.JSC$7653_onFulfilled=B?function(v){try{var y=B.call(T,v);c(y)}catch(Z){Y(Z)}}:c;
e.JSC$7653_onRejected=I?function(v){try{var y=I.call(T,v);y===void 0&&v instanceof _.X$?Y(v):c(y)}catch(Z){Y(Z)}}:Y});
e.child.parent_=E;QdR(E,e);return e.child};
_.cC.prototype.unblockAndFulfill_=function(E){this.state_=0;this.resolve_(2,E)};
_.cC.prototype.unblockAndReject_=function(E){this.state_=0;this.resolve_(3,E)};
_.cC.prototype.resolve_=function(E,B){this.state_==0&&(this===B&&(E=3,B=new TypeError("Ba")),this.state_=1,CAU(B,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=B,this.state_=E,this.parent_=null,LXr(this),E!=3||B instanceof _.X$||xhU(this,B)))};
var CAU=function(E,B,I,T){if(E instanceof _.cC)return dh6(E,B,I,T),!0;if(YRZ(E))return E.then(B,I,T),!0;if(_.B6(E))try{var e=E.then;if(typeof e==="function")return GBU(E,e,B,I,T),!0}catch(c){return I.call(T,c),!0}return!1},GBU=function(E,B,I,T,e){var c=!1,Y=function(y){c||(c=!0,I.call(e,y))},v=function(y){c||(c=!0,T.call(e,y))};
try{B.call(E,Y,v)}catch(y){v(y)}},LXr=function(E){E.executing_||(E.executing_=!0,_.dI(E.executeCallbacks_,E))},sdz=function(E){var B=null;
E.callbackEntries_&&(B=E.callbackEntries_,E.callbackEntries_=B.next,B.next=null);E.callbackEntries_||(E.callbackEntriesTail_=null);return B};
_.cC.prototype.executeCallbacks_=function(){for(var E;E=sdz(this);)uWr(this,E,this.state_,this.result_);this.executing_=!1};
uWr=function(E,B,I,T){if(I==3&&B.JSC$7653_onRejected&&!B.always)for(;E&&E.hadUnhandledRejection_;E=E.parent_)E.hadUnhandledRejection_=!1;if(B.child)B.child.parent_=null,OKV(B,I,T);else try{B.always?B.JSC$7653_onFulfilled.call(B.context):OKV(B,I,T)}catch(e){aC6.call(null,e)}vBl.put(B)};
OKV=function(E,B,I){B==2?E.JSC$7653_onFulfilled.call(E.context,I):E.JSC$7653_onRejected&&E.JSC$7653_onRejected.call(E.context,I)};
xhU=function(E,B){E.hadUnhandledRejection_=!0;_.dI(function(){E.hadUnhandledRejection_&&aC6.call(null,B)})};
aC6=IB;_.X$=function(E){_.Ec.call(this,E)};
_.$U(_.X$,_.Ec);_.X$.prototype.name="cancel";var z9u=function(E,B,I){this.promise=E;this.resolve=B;this.reject=I};var uG;_.F7=function(E,B){_.ms.call(this);this.JSC$7665_interval_=E||1;this.timerObject_=B||_.$i;this.boundTick_=(0,_.w1)(this.tick_,this);this.last_=_.Bf()};
_.$U(_.F7,_.ms);_.l=_.F7.prototype;_.l.enabled=!1;_.l.JSC$7667_timer_=null;_.l.setInterval=function(E){this.JSC$7665_interval_=E;this.JSC$7667_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7667_timer_&&this.stop()};
_.l.tick_=function(){if(this.enabled){var E=_.Bf()-this.last_;E>0&&E<this.JSC$7665_interval_*.8?this.JSC$7667_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7665_interval_-E):(this.JSC$7667_timer_&&(this.timerObject_.clearTimeout(this.JSC$7667_timer_),this.JSC$7667_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.l.start=function(){this.enabled=!0;this.JSC$7667_timer_||(this.JSC$7667_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7665_interval_),this.last_=_.Bf())};
_.l.stop=function(){this.enabled=!1;this.JSC$7667_timer_&&(this.timerObject_.clearTimeout(this.JSC$7667_timer_),this.JSC$7667_timer_=null)};
_.l.disposeInternal=function(){_.F7.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
uG=function(E,B,I){if(typeof E==="function")I&&(E=(0,_.w1)(E,I));else if(E&&typeof E.handleEvent=="function")E=(0,_.w1)(E.handleEvent,E);else throw Error("Ca");return Number(B)>2147483647?-1:_.$i.setTimeout(E,B||0)};
_.nB$=function(E){var B=null;return(new _.cC(function(I,T){B=uG(function(){I(void 0)},E);
B==-1&&T(Error("Da"))})).thenCatch(function(I){_.$i.clearTimeout(B);
throw I;})};var $9=function(E){_.Cx.call(this);this.streamzLogger=E;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7671_flushTimer=new _.F7(this.flushInterval);this.JSC$7671_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Bp(this,this.JSC$7671_flushTimer)};
_.L($9,_.Cx);$9.prototype.sendIsolatedPayload=function(E){this.shouldSendIsolatedPayload=E;this.invocationLimit=1};
var MRV=function(E){E.JSC$7671_flushTimer.enabled||E.JSC$7671_flushTimer.start();E.invocationCount++;E.invocationCount>=E.invocationLimit&&E.snapshotAndFlush()};
$9.prototype.snapshotAndFlush=function(){var E=this.metricMap.values();E=[].concat(_.ad(E)).filter(function(B){return B.cellMap.size});
E.length&&this.streamzLogger.flush(E,this.shouldSendIsolatedPayload);HKz(E);this.invocationCount=0;this.JSC$7671_flushTimer.enabled&&this.JSC$7671_flushTimer.stop()};
$9.prototype.addNewCounter=function(E){var B=_.aG.apply(1,arguments);this.metricMap.has(E)||this.metricMap.set(E,new r1r(E,B))};
$9.prototype.addNewEventMetric=function(E){var B=_.aG.apply(1,arguments);this.metricMap.has(E)||this.metricMap.set(E,new brZ(E,B))};
var NH$=function(E,B){return E.disabledMetrics.has(B)?void 0:E.metricMap.get(B)};
$9.prototype.JSC$7671_incrementCounter=function(E){this.JSC$7671_incrementCounterBy(E,1,_.aG.apply(1,arguments))};
$9.prototype.JSC$7671_incrementCounterBy=function(E,B){var I=_.aG.apply(2,arguments),T=NH$(this,E);T&&T instanceof r1r&&(T.JSC$7610_incrementCounterBy(B,I),MRV(this))};
$9.prototype.record=function(E,B){var I=_.aG.apply(2,arguments),T=NH$(this,E);T&&T instanceof brZ&&(T.record(B,I),MRV(this))};
var HKz=function(E){for(var B=0;B<E.length;B++)E[B].clear()};_.LS=function(E,B,I){I=I===void 0?{}:I;B=Error.call(this,B);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.code=E;this.metadata=I;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.L(_.LS,Error);_.LS.prototype.toString=function(){var E="RpcError("+(F3f(this.code)||String(this.code))+")";this.message&&(E+=": "+this.message);return E};_.gBr=_.$i.JSON.parse;_.xT=_.$i.JSON.stringify;_.uT=_.$i.JSON.parse;_.SRV=function(E){switch(E){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 Jv6=function(E){switch(E){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var WXu,XLR=function(){};
_.$U(XLR,_.DmB);XLR.prototype.createInstance=function(){return new XMLHttpRequest};
WXu=new XLR;_.Gw=function(E){_.ms.call(this);this.headers=new Map;this.JSC$7680_xmlHttpFactory_=E||null;this.JSC$7680_active_=!1;this.JSC$7680_xhr_=null;this.JSC$7680_lastUri_="";this.JSC$7680_lastErrorCode_=0;this.JSC$7680_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7680_timeoutId_=null;this.responseType_="";this.JSC$7680_withCredentials_=!1};
_.$U(_.Gw,_.ms);var rvu=/^https?$/i,bK6=["POST","PUT"],oBr=[],Rm6=function(E,B,I,T,e,c,Y){var v=new _.Gw;oBr.push(v);B&&v.listen("complete",B);v.listenOnce("ready",v.cleanupSend_);c&&(v.timeoutInterval_=Math.max(0,c));Y&&(v.JSC$7680_withCredentials_=Y);v.send(E,I,T,e)};
_.Gw.prototype.cleanupSend_=function(){this.dispose();_.f4(oBr,this)};
_.Gw.prototype.send=function(E,B,I,T){if(this.JSC$7680_xhr_)throw Error("Ea`"+this.JSC$7680_lastUri_+"`"+E);B=B?B.toUpperCase():"GET";this.JSC$7680_lastUri_=E;this.JSC$7680_lastError_="";this.JSC$7680_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7680_active_=!0;this.JSC$7680_xhr_=this.createXhr();this.JSC$7680_xhr_.onreadystatechange=QY((0,_.w1)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7680_xhr_.open(B,String(E),!0),this.inOpen_=!1}catch(Y){Avh(this,Y);return}E=I||"";I=new Map(this.headers);
if(T)if(Object.getPrototypeOf(T)===Object.prototype)for(var e in T)I.set(e,T[e]);else if(typeof T.keys==="function"&&typeof T.get==="function"){e=_.p(T.keys());for(var c=e.next();!c.done;c=e.next())c=c.value,I.set(c,T.get(c))}else throw Error("Fa`"+String(T));T=Array.from(I.keys()).find(function(Y){return"content-type"==Y.toLowerCase()});
e=_.$i.FormData&&E instanceof _.$i.FormData;!_.AD(bK6,B)||T||e||I.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");B=_.p(I);for(T=B.next();!T.done;T=B.next())I=_.p(T.value),T=I.next().value,I=I.next().value,this.JSC$7680_xhr_.setRequestHeader(T,I);this.responseType_&&(this.JSC$7680_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7680_xhr_&&this.JSC$7680_xhr_.withCredentials!==this.JSC$7680_withCredentials_&&(this.JSC$7680_xhr_.withCredentials=this.JSC$7680_withCredentials_);
try{this.JSC$7680_timeoutId_&&(clearTimeout(this.JSC$7680_timeoutId_),this.JSC$7680_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7680_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7680_xhr_.send(E),this.inSend_=!1}catch(Y){Avh(this,Y)}};
_.Gw.prototype.createXhr=function(){return this.JSC$7680_xmlHttpFactory_?this.JSC$7680_xmlHttpFactory_.createInstance():WXu.createInstance()};
_.Gw.prototype.timeout_=function(){typeof Lui!="undefined"&&this.JSC$7680_xhr_&&(this.JSC$7680_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7680_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var Avh=function(E,B){E.JSC$7680_active_=!1;E.JSC$7680_xhr_&&(E.inAbort_=!0,E.JSC$7680_xhr_.abort(),E.inAbort_=!1);E.JSC$7680_lastError_=B;E.JSC$7680_lastErrorCode_=5;jdD(E);Uhh(E)},jdD=function(E){E.errorDispatched_||(E.errorDispatched_=!0,E.dispatchEvent("complete"),E.dispatchEvent("error"))};
_.Gw.prototype.abort=function(E){this.JSC$7680_xhr_&&this.JSC$7680_active_&&(this.JSC$7680_active_=!1,this.inAbort_=!0,this.JSC$7680_xhr_.abort(),this.inAbort_=!1,this.JSC$7680_lastErrorCode_=E||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Uhh(this))};
_.Gw.prototype.disposeInternal=function(){this.JSC$7680_xhr_&&(this.JSC$7680_active_&&(this.JSC$7680_active_=!1,this.inAbort_=!0,this.JSC$7680_xhr_.abort(),this.inAbort_=!1),Uhh(this,!0));_.Gw.superClass_.disposeInternal.call(this)};
_.Gw.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)kBu(this);else this.onReadyStateChangeEntryPoint_()};
_.Gw.prototype.onReadyStateChangeEntryPoint_=function(){kBu(this)};
var kBu=function(E){if(E.JSC$7680_active_&&typeof Lui!="undefined")if(E.inSend_&&_.Ok(E)==4)setTimeout(E.onReadyStateChange_.bind(E),0);else if(E.dispatchEvent("readystatechange"),E.isComplete()){E.JSC$7680_active_=!1;try{if(E.isSuccess())E.dispatchEvent("complete"),E.dispatchEvent("success");else{E.JSC$7680_lastErrorCode_=6;try{var B=_.Ok(E)>2?E.JSC$7680_xhr_.statusText:""}catch(I){B=""}E.JSC$7680_lastError_=B+" ["+E.getStatus()+"]";jdD(E)}}finally{Uhh(E)}}},Uhh=function(E,B){if(E.JSC$7680_xhr_){E.JSC$7680_timeoutId_&&
(clearTimeout(E.JSC$7680_timeoutId_),E.JSC$7680_timeoutId_=null);
var I=E.JSC$7680_xhr_;E.JSC$7680_xhr_=null;B||E.dispatchEvent("ready");try{I.onreadystatechange=null}catch(T){}}};
_.Gw.prototype.isActive=function(){return!!this.JSC$7680_xhr_};
_.Gw.prototype.isComplete=function(){return _.Ok(this)==4};
_.Gw.prototype.isSuccess=function(){var E=this.getStatus(),B;if(!(B=Jv6(E))){if(E=E===0)E=TFr(String(this.JSC$7680_lastUri_)),E=!rvu.test(E);B=E}return B};
_.Ok=function(E){return E.JSC$7680_xhr_?E.JSC$7680_xhr_.readyState:0};
_.l=_.Gw.prototype;_.l.getStatus=function(){try{return _.Ok(this)>2?this.JSC$7680_xhr_.status:-1}catch(E){return-1}};
_.l.getResponseText=function(){try{return this.JSC$7680_xhr_?this.JSC$7680_xhr_.responseText:""}catch(E){return""}};
_.l.getResponse=function(){try{if(!this.JSC$7680_xhr_)return null;if("response"in this.JSC$7680_xhr_)return this.JSC$7680_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7680_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7680_xhr_)return this.JSC$7680_xhr_.mozResponseArrayBuffer}return null}catch(E){return null}};
_.l.getAllResponseHeaders=function(){return this.JSC$7680_xhr_&&_.Ok(this)>=2?this.JSC$7680_xhr_.getAllResponseHeaders()||"":""};
_.l.getLastError=function(){return typeof this.JSC$7680_lastError_==="string"?this.JSC$7680_lastError_:String(this.JSC$7680_lastError_)};var Y_J=function(){};
Y_J.prototype.send=function(E,B,I){B=B===void 0?function(){}:B;
I=I===void 0?function(){}:I;
Rm6(E.url,function(T){T=T.target;T.isSuccess()?B(T.getResponseText()):I(T.getStatus())},E.requestType,E.body,E.requestHeaders,E.timeoutMillis,E.withCredentials)};
Y_J.prototype.getTransmissionType=function(){return 1};var tRU=function(E,B){this.logger=E;this.event=B;this.startTime=Ia()};
tRU.prototype.done=function(){this.logger.oN(this.event,Ia()-this.startTime)};
var nS=function(){$T.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.L(nS,$T);var M0=function(E,B,I){var T=Ia();B=B();E.oN(I,Ia()-T);return B},gpc=function(){nS.apply(this,arguments)};
_.L(gpc,nS);_.l=gpc.prototype;_.l.yqN=function(){};
_.l.uu=function(){};
_.l.oN=function(){};
_.l.logError=function(){};
_.l.nl=function(){};
_.l.dYF=function(){};
_.l.gOy=function(){};
_.l.jzQ=function(){};
_.l.fJr=function(){};
var f7D=function(E){nS.call(this);var B=this;this.logger=E;this.TEST_ONLY={pON:function(){return B.logger},
getExperimentIds:function(){return B.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void B.logger.dispose()})};
_.L(f7D,nS);_.l=f7D.prototype;_.l.update=function(E){this.logger.dispose();this.logger=E};
_.l.uu=function(E){this.logger.uu(E)};
_.l.oN=function(E,B){this.logger.oN(E,B)};
_.l.logError=function(E){this.logger.logError(E)};
_.l.nl=function(){this.logger.nl()};
_.l.dYF=function(E){this.logger.dYF(E)};
_.l.gOy=function(E){this.logger.gOy(E)};
_.l.jzQ=function(E){this.logger.jzQ(E)};
_.l.fJr=function(E){this.logger.fJr(E)};
_.l.yqN=function(E){this.logger.yqN(E)};
var VRh=function(E,B){_.Cx.call(this);var I=this;this.callback=E;this.iO6=B;this.iSU=-B;this.addOnDisposeCallback(function(){return void clearTimeout(I.timer)})};
_.L(VRh,_.Cx);var qRr=function(E){if(E.timer===void 0){var B=Math.max(0,E.iSU+E.iO6-Ia());E.timer=setTimeout(function(){try{E.callback()}finally{E.iSU=Ia(),E.timer=void 0}},B)}},FXl=function(E,B){nS.call(this);
this.metrics=E;this.nR=B};
_.L(FXl,nS);_.l=FXl.prototype;_.l.yqN=function(E){this.metrics.zMZ.record(E,this.nR)};
_.l.uu=function(E){this.metrics.eventCount.increment(E,this.nR)};
_.l.oN=function(E,B){this.metrics.gpH.record(B,E,this.nR)};
_.l.logError=function(E){this.metrics.errorCount.increment(E,this.nR)};
_.l.dYF=function(E){this.metrics.kNb.increment(E,this.nR)};
_.l.gOy=function(E){this.metrics.ox5.increment(E,this.nR)};
_.l.jzQ=function(E){this.metrics.lgY.increment(E,this.nR)};
var TM=function(E,B){B=B===void 0?[]:B;var I={nR:E.nR||"_",s8D:E.s8D||[],mY3:E.mY3|0,destinationUrl:E.destinationUrl,y5o:E.y5o||function(){},
omF:E.omF||function(c,Y){return Ntt(c,Y,I.y5o,I.destinationUrl)}},T=I.omF("49",I.s8D.concat(B));
FXl.call(this,l0F(T),I.nR);var e=this;this.TEST_ONLY={getExperimentIds:function(){return e.options.s8D.concat(e.pTj).sort(function(c,Y){return c-Y})}};
this.options=I;this.service=T;this.svP=!E.omF;this.flushDebouncer=new VRh(function(){return void e.service.snapshotAndFlush()},I.mY3);
this.addOnDisposeCallback(function(){e.flushDebouncer.dispose();e.svP&&e.service.dispose()});
(this.pTj=B.slice()).sort(_.lD)};
_.L(TM,FXl);TM.prototype.fJr=function(E){var B=this;E=E.slice();E.sort(_.lD);_.iD(E,this.pTj)||(this.flushDebouncer.dispose(),this.svP&&this.service.dispose(),this.service=this.options.omF("49",this.options.s8D.concat(E)),this.flushDebouncer=new VRh(function(){return void B.service.snapshotAndFlush()},this.options.mY3),this.metrics=l0F(this.service),this.pTj=E)};
TM.prototype.nl=function(){qRr(this.flushDebouncer)};var RNf=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(RNf,_.LX);_.E$t=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(_.E$t,_.LX);var tC=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E,0,tC.messageId)};
_.L(tC,_.LX);var DhD=_.$Vt(tC);tC.messageId="bfkj";var JVc=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(JVc,_.LX);var KX6=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(KX6,_.LX);var R9V=_.ky(KX6);_.Tv=function(){var E=this;this.promise=new Promise(function(B,I){E.resolve=B;E.reject=I})};_.HR=function(E){_.Cx.call(this);var B=this;this.aFC=Math.floor(Math.random()*200);this.pcD=new KX6;if("challenge"in E&&DhD(E.challenge)){var I=_.O8(E.challenge,4,void 0,Xu);var T=_.O8(E.challenge,5,void 0,Xu);_.O8(E.challenge,7,void 0,Xu)&&(this.pcD=R9V(_.O8(E.challenge,7,void 0,Xu)))}else I=E.program,T=E.globalName;this.addOnDisposeCallback(function(){var x,M,N;return _.a(function(W){if(W.nextAddress==1)return _.C(W,B.rrQ,2);x=W.yieldResult;M=x.kub;(N=M)==null||N();_.ER(W)})});
this.logger=S_G(E.yu||{},this.pcD,E.o3u);_.Bp(this,this.logger);var e=new _.Tv;this.rrQ=e.promise;this.logger.uu("t");var c=this.logger.share(),Y=new tRU(c,"t"),v=function(x,M,N,W){if(!B.logger.isDisposed()){var U="k";M?U="h":N&&(U="u");U!=="k"?W!==0&&(B.logger.uu(U),B.logger.oN(U,x)):B.aFC<=0?(B.logger.uu(U),B.logger.oN(U,x),B.aFC=Math.floor(Math.random()*200)):B.aFC--}},y=function(x,M,N,W){Promise.resolve().then(function(){Y.done();
c.nl();c.dispose();e.resolve({aV3:x,kub:M,g47:N,gDS:W})})};
if(!_.$i[T])throw this.logger.logError(25),Error("Ga");if(!_.$i[T].a)throw this.logger.logError(26),Error("Ha");try{var Z=_.$i[T].a;T=[];for(var P=[],z=W3G(this.pcD),m=0;m<z.length;m++)T.push(z[m]),P.push(1);var u=XpF(this.pcD);for(z=0;z<u.length;z++)T.push(u[z]),P.push(2);this.mBY=_.p(Z(I,y,!0,E.veH,v,[T,P],_.O8(this.pcD,5))).next().value;this.wTe=e.promise.then(function(){})}catch(x){throw this.logger.logError(28),x;
}};
_.L(_.HR,_.Cx);_.HR.prototype.snapshot=function(E){if(this.isDisposed())throw Error("Ia");this.logger.uu("n");var B=this.logger.share();return this.rrQ.then(function(I){var T=I.aV3;return new Promise(function(e){var c=new tRU(B,"n");T(function(Y){c.done();B.yqN(Y.length);B.nl();B.dispose();e(Y)},[E.d6,
E.ufF,E.ka6,E.qJP])})})};
_.Erz=function(E,B){if(E.isDisposed())throw Error("Ia");E.logger.uu("n");var I=M0(E.logger,function(){return E.mBY([B.d6,B.ufF,B.ka6,B.qJP])},"n");
E.logger.yqN(I.length);E.logger.nl();return I};
_.HR.prototype.d0C=function(E){this.rrQ.then(function(B){var I;(I=B.g47)==null||I(E)})};
_.HR.prototype.isQ=function(E,B){return this.rrQ.then(function(I){var T;return(T=I.gDS)==null?void 0:T(E,B,!1)})};
_.HR.prototype.nzC=function(){return this.logger.share()};var BM6=function(){this.sEM={};this.uni=null},$8D=function(){BM6.instance||(BM6.instance=new BM6);
return BM6.instance},TM$=function(E,B){return Isr(E,_.DZ(B,RNf,1,Xu),_.DZ(B,_.E$t,2,Xu),_.O8(B,3,void 0,Xu))},Isr=function(E,B,I,T){if(!B&&!I)return Promise.resolve();
if(!T)return rxi(B,I);var e;(e=E.sEM)[T]||(e[T]=new Promise(function(c,Y){rxi(B,I).then(function(){E.uni=T;c()},function(v){delete E.sEM[T];
Y(v)})}));
return E.sEM[T]};var efz=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(efz,_.LX);var lsV=function(E,B){return _.Fz(E,1,B)},ciN=function(E,B){return _.Fz(E,2,B)};var N0=function(E){_.Cx.call(this);var B=this;this.options=E;this.pGN=new _.Tv;this.wTe=this.pGN.promise;this.kf3=new _.Tv;this.yPV=1;this.lpQ=new _.Tv;this.sFF=[];this.vWN=E.vWN||function(){};
this.logger=new f7D(S_G(E.yu||{}));ibN(this,E.xd,E.aJH,E.hiZ,E.tto,Object.assign({},pMD,E.wlF||{}));this.addOnDisposeCallback(function(){return void Yxr(B)})};
_.L(N0,_.Cx);N0.prototype.snapshot=function(E){var B=this;return _.a(function(I){switch(I.nextAddress){case 1:if(B.isDisposed())throw Error("Ia");if(B.lI||B.yHL){I.jumpTo(2);break}return _.C(I,B.kf3.promise,2);case 2:if(!B.lI){I.jumpTo(4);break}return _.C(I,B.lI.snapshot(E),5);case 5:return I.return(I.yieldResult);case 4:throw B.yHL;}})};
var as6=function(E){var B;return _.a(function(I){if(E.isDisposed())throw Error("Ia");(B=E.wE)!=null&&(B.endTimeMs=0,B.resolver(1));return _.C(I,E.lpQ.promise,0)})},Yxr=function(E){E.yHL=Error("Ka");
E.kf3.resolve();rVc(E.pGN.promise);E.pGN.reject(Error("Ka"));E.logger.dispose();Promise.all(E.sFF).then(function(){var I;return _.a(function(T){(I=E.lI)==null||I.dispose();E.lI=void 0;_.ER(T)})});
E.sFF=[];var B;(B=E.wE)!=null&&(B.endTimeMs=0,B.resolver(1));rVc(E.lpQ.promise);E.lpQ.reject(Error("Ka"))};
N0.prototype.d0C=function(E){var B,I;(B=this.lI)==null||(I=B.d0C)==null||I.call(B,E)};
N0.prototype.isQ=function(E,B){var I,T,e;return(e=(I=this.lI)==null?void 0:(T=I.isQ)==null?void 0:T.call(I,E,B))!=null?e:Promise.resolve()};
var vrR=function(E,B){var I=E.vWN;E.vWN=function(){I();B()}},yiV=function(E,B){E.isDisposed()||(E.lI=B,E.logger.update(B.nzC()),E.kf3.resolve(),E.pGN.resolve(void 0),E.vWN())};
N0.prototype.handleError=function(E){if(!this.isDisposed()){this.yHL=E;this.kf3.resolve();var B,I;(I=(B=this.options).s2H)==null||I.call(B,E)}};
var ClX=function(E,B){B&&(Promise.all(E.sFF).then(function(){return void B.dispose()}),E.sFF=[])},gI=function(E,B){E.yPV=B;
var I,T;(T=(I=E.options).vxo)==null||T.call(I,B)},wMR=function(E){E.isDisposed()||(E.lpQ.resolve(),E.lpQ=new _.Tv)},ibN=function(E,B,I,T,e,c){T=T===void 0?$8D():T;
e=e===void 0?Promise.resolve(void 0):e;var Y,v,y,Z,P,z,m,u,x,M,N,W;_.a(function(U){switch(U.nextAddress){case 1:return _.C(U,0,3);case 3:v=null;if(!Y){U.jumpTo(6);break}gI(E,7);_.q7(U,7);return _.C(U,Y9(Y.snapshot({}),c.n8m,function(){return Promise.resolve("E:CTO")}),9);
case 9:v=U.yieldResult;_.W7(U,6);break;case 7:_.RG(U),v="E:UCE";case 6:y=void 0,Z=Y?c.cZy:c.nO3,P=new Ds(Z,c.iTS,c.wJS,c.rZ5),z=1;case 10:if(!(z<=c.maxAttempts)){U.jumpTo(12);break}if(z===1){U.jumpTo(13);break}gI(E,0);E.wE=new Zbu(P.getValue(),c.yHS,c.hMH);return _.C(U,E.wE.promise,14);case 14:m=U.yieldResult,E.wE=void 0,m===1?(z=1,P.reset()):G1R(P);case 13:_.q7(U,15);u=void 0;if(I){u=I;U.jumpTo(17);break}gI(E,5);x=T.uni;return _.C(U,Y9(PlU(B,x,v),c.ixS,function(){return Promise.reject(Error("La"))}),
18);
case 18:u=U.yieldResult;case 17:return gI(E,3),_.C(U,Y9(TM$(T,u),c.rEy,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return gI(E,8),_.C(U,e,20);case 20:return M=new _.HR({challenge:u,yu:E.options.yu,veH:E.options.veH}),_.C(U,Y9(M.wTe,c.jSW,function(){return Promise.reject(Error("Na"))}),21);
case 21:y=M;U.jumpTo(12);break;case 15:N=_.RG(U),E.handleError(N),wMR(E);case 11:z++;U.jumpTo(10);break;case 12:if(E.isDisposed()){U.jumpTo(5);break}y&&(I=void 0,ClX(E,Y),Y=y,yiV(E,y),wMR(E));gI(E,2);E.wE=new Zbu(c.zJT,c.yHS,c.hMH);return _.C(U,E.wE.promise,22);case 22:E.wE=void 0;if(E.isDisposed()){U.jumpTo(5);break}U.jumpTo(3);break;case 5:(W=Y)==null||W.dispose(),_.ER(U)}})};
N0.prototype.nzC=function(){return this.logger.share()};
var pMD={zJT:432E5,yHS:3E5,hMH:10,n8m:1E4,ixS:3E4,rEy:3E4,jSW:6E4,nO3:1E3,cZy:6E4,iTS:6E5,wJS:.25,rZ5:2,maxAttempts:10},Zbu=function(E,B,I){var T=this;this.endTimeMs=Date.now()+E;this.promise=new Promise(function(c){T.resolver=c});
var e=function(){var c=T.endTimeMs-Date.now();c<=I?T.resolver(0):setTimeout(e,Math.min(c,B))};
e()};var zfz,Axd=(zfz=Math.imul)!=null?zfz:function(E,B){return E*B|0},aa=[196,
200,224,18],Sl=function(E,B,I){I=I===void 0?[]:I;this.maxItems=E;this.wR=B===void 0?0:B;this.jq=I},m8V=function(E){var B=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!B)return new Sl(E);var I=B.split(",");if(I.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Sl(E);B=I.slice(1);B.length===1&&B[0]===""&&(B=[]);I=Number(I[0]);return isNaN(I)||I<0||I>B.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Sl(E)):new Sl(E,I,B)};
Sl.prototype.serialize=function(){return String(this.wR)+","+this.jq.join()};
Sl.prototype.insert=function(E,B){var I=void 0;if(this.jq[this.wR]!==E){var T=this.jq.indexOf(E);T!==-1?(this.jq.splice(T,1),T<this.wR&&this.wR--,this.jq.splice(this.wR,0,E)):(I=this.jq[this.wR],this.jq[this.wR]=E)}this.wR=(this.wR+1)%this.maxItems;E=bd6("iU5q-!O9@$",this.serialize());I&&E&&B(I);return E};
var Q_X=function(E,B){this.logger=B;try{var I=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(T){I=!1}I&&(this.index=m8V(E))},d8z=function(E,B,I,T,e){var c=E.index?M0(E.logger,function(){return t2F(E.index,USF(B),I,T,e)},"W"):"u";
E.logger.jzQ(c)},hf$=function(E,B,I){var T=_.p(E.index?M0(E.logger,function(){return f0t(USF(B),I)},"R"):["u"]),e=T.next().value;
T=T.next().value;E.logger.gOy(e);return T};var s_l={toString:function(E){var B=[],I=0;E-=-2147483648;B[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(E%52);for(E=Math.floor(E/52);E>0;)B[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(E%62),E=Math.floor(E/62);return B.join("")}};var x8h=function(E){E=uRr(E);for(var B=2654435769,I=2654435769,T=314159265,e=E.length,c=e,Y=0,v=function(){B-=I;B-=T;B^=T>>>13;I-=T;I-=B;I^=B<<8;T-=B;T-=I;T^=I>>>13;B-=I;B-=T;B^=T>>>12;I-=T;I-=B;I^=B<<16;T-=B;T-=I;T^=I>>>5;B-=I;B-=T;B^=T>>>3;I-=T;I-=B;I^=B<<10;T-=B;T-=I;T^=I>>>15};c>=12;c-=12,Y+=12)B+=LKN(E,Y),I+=LKN(E,Y+4),T+=LKN(E,Y+8),v();
T+=e;switch(c){case 11:T+=E[Y+10]<<24;case 10:T+=E[Y+9]<<16;case 9:T+=E[Y+8]<<8;case 8:I+=E[Y+7]<<24;case 7:I+=E[Y+6]<<16;case 6:I+=E[Y+5]<<8;case 5:I+=E[Y+4];case 4:B+=E[Y+3]<<24;case 3:B+=E[Y+2]<<16;case 2:B+=E[Y+1]<<8;case 1:B+=E[Y]}v();return s_l.toString(T)},uRr=function(E){for(var B=[],I=0;I<E.length;I++)B.push(E.charCodeAt(I));
return B},LKN=function(E,B){return E[B]+(E[B+1]<<8)+(E[B+2]<<16)+(E[B+3]<<24)};var GiZ,JP=function(E){_.Cx.call(this);this.logger=E;this.jtU=new _.Tv;this[GiZ]=this.dispose};
_.L(JP,_.Cx);var ObX=function(E,B){var I=setTimeout(function(){E.jtU.resolve()},B);
E.addOnDisposeCallback(function(){return void clearTimeout(I)})};
JP.prototype.uO=function(E,B){var I=this.oL(E);B==null||B(I);return M0(this.logger,function(){return _.tH(I,2)},this.qar)};
var nr$=function(E,B,I,T){return M0(E.logger,function(){return I?E.uO(B,T):E.oL(B,T)},E.oh)};
GiZ=Symbol.dispose;var MCU=function(E,B,I,T){JP.call(this,E);this.pIm=B;this.gGS=I;this.oh="m";this.qar="x";this.sH5=0;ObX(this,T)};
_.L(MCU,JP);MCU.prototype.oL=function(E,B){var I=this;this.logger.uu(this.oh);++this.sH5>=this.gGS&&this.jtU.resolve();var T=E();E=M0(this.logger,function(){return I.pIm(T)},"C");
if(E===void 0)throw new Ek(17,"YNJ:Undefined");if(!(E instanceof Uint8Array))throw new Ek(18,"ODM:Invalid");B==null||B(E);return E};
var HbR=function(E,B,I){JP.call(this,E);this.rey=B;this.oh="f";this.qar="z";ObX(this,I)};
_.L(HbR,JP);HbR.prototype.oL=function(){return this.rey};
var NMN=function(E,B,I){JP.call(this,E);this.ybH=B;this.oh="w";this.qar="z";ObX(this,I)};
_.L(NMN,JP);NMN.prototype.oL=function(){var E=this;return M0(this.logger,function(){return _.pV(E.ybH)},"d")};
NMN.prototype.uO=function(){return this.ybH};
var gr$=function(E,B){JP.call(this,E);this.error=B;this.oh="e";this.qar="y"};
_.L(gr$,JP);var Sxt=function(E,B){var I=(B(E.error.message)+":"+B(E.error.stack)).substring(0,2048);B=I.length+1;I=V2c(I);var T=new Uint8Array(4+I.length);T.set([42,B&127|128,B>>7,E.error.code]);T.set(I,4);return T};
gr$.prototype.oL=function(){if(this.pAe)return this.pAe;this.pAe=Sxt(this,function(E){return"_"+x8h(E)});
return Sxt(this,function(E){return E})};
var Ji6=function(E,B,I){JP.call(this,E);this.eUQ=B;this.clientState=I;this.oh="S";this.qar="q"};
_.L(Ji6,JP);Ji6.prototype.oL=function(){var E=Math.floor(Date.now()/1E3),B=[Math.random()*255,Math.random()*255],I=B.concat([this.eUQ&255,this.clientState],[E>>24&255,E>>16&255,E>>8&255,E&255]);E=new Uint8Array(2+I.length);E[0]=34;E[1]=I.length;E.set(I,2);I=E.subarray(2);for(var T=B=B.length;T<I.length;++T)I[T]^=I[T%B];this.logger.dYF(this.clientState);return E};var WKZ={ftT:3E4,hMf:2E4},WR=function(E){_.Cx.call(this);var B=this;this.jkU=new _.Tv;this.owg=0;this.a9=void 0;this.state=2;this.gS=E.gS;this.xd=E.xd;this.wlF=Object.assign({},WKZ,E.wlF||{});this.logger=E.gS.nzC();var I;this.onError=(I=E.onError)!=null?I:function(){};
this.kis=E.kis||!1;if(XMz(E)){var T=this.gS;this.i4i=function(){return as6(T).catch(function(Y){Y=B.reportError(new Ek(B.t0?20:32,"TRG:Disposed",Y));B.a9=Y;var v;(v=B.t0)==null||v.dispose();B.t0=void 0;B.jkU.reject(Y)})};
vrR(T,function(){return void riU(B)});
T.yPV===2&&riU(this)}else this.i4i=E.oxn,riU(this);var e=this.logger.share();e.uu("o");var c=new tRU(e,"o");this.jkU.promise.then(function(){c.done();e.nl();e.dispose()},function(){return void e.dispose()});
this.addOnDisposeCallback(function(){B.t0?(B.t0.dispose(),B.t0=void 0):B.a9?B.logger.nl():(B.a9=B.reportError(new Ek(32,"TNP:Disposed")),B.logger.nl(),B.jkU.reject(B.a9))});
_.Bp(this,this.logger)};
_.L(WR,_.Cx);WR.prototype.moy=function(){return this.jkU.promise};
var bb6=function(E,B){if(!(B instanceof Ek))if(B instanceof _.LS){var I=Error(B.toString());I.stack=B.stack;B=new Ek(11,"EBH:Error",I)}else B=new Ek(12,"BSO:Unknown",B);return E.reportError(B)},riU=function(E){var B,I,T,e,c,Y,v,y,Z,P,z,m,u,x,M;
return _.a(function(N){switch(N.nextAddress){case 1:B=void 0;E.owg++;I=new _.Tv;E.gS instanceof N0&&E.gS.sFF.push(I.promise);if(!E.kis){N.jumpTo(2);break}T=new _.Tv;setTimeout(function(){return void T.resolve()});
return _.C(N,T.promise,2);case 2:return e=E.logger.share(),_.q7(N,4,5),E.state=5,c={},Y=[],_.C(N,Y9(E.gS.snapshot({d6:c,ka6:Y}),E.wlF.hMf,function(){return Promise.reject(new Ek(15,"MDA:Timeout"))}),7);
case 7:v=N.yieldResult;if(E.isDisposed())throw new Ek(E.t0?20:32,"MDA:Disposed");y=Y[0];E.state=6;return _.C(N,Y9(orr(E.xd,v),E.wlF.ftT,function(){return Promise.reject(new Ek(10,"BWB:Timeout"))}),8);
case 8:Z=N.yieldResult;if(E.isDisposed())throw new Ek(E.t0?20:32,"BWB:Disposed");E.state=7;B=M0(e,function(){var U=Air(E,Z,I,y);U.jtU.promise.then(function(){return void E.i4i()});
return U},"i");
case 5:_.FL(N);e.dispose();_.Kr(N,6);break;case 4:P=_.RG(N);(z=B)==null||z.dispose();if(!E.a9){m=bb6(E,P);I.resolve();var W;if(W=E.gS instanceof N0&&E.owg<2)a:if(P instanceof Ek)W=P.code!==32&&P.code!==20&&P.code!==10;else{if(P instanceof _.LS)switch(P.code){case 2:case 13:case 14:case 4:break;default:W=!1;break a}W=!0}if(W)return u=(1+Math.random()*.25)*(E.t0?6E4:1E3),x=setTimeout(function(){return void E.i4i()},u),E.addOnDisposeCallback(function(){return void clearTimeout(x)}),N.return();
E.a9=m}e.logError(E.t0?13:14);E.jkU.reject(E.a9);return N.return();case 6:E.state=8,E.owg=0,(M=E.t0)==null||M.dispose(),E.t0=B,E.jkU.resolve(),_.ER(N)}})},Air=function(E,B,I,T){var e=jqG(B,2)*1E3;
if(e<=0)throw new Ek(31,"TTM:Invalid");if(_.O8(B,4))return new NMN(E.logger,_.O8(B,4),e);if(!jqG(B,3))return new HbR(E.logger,Led(_.zO(B,1)),e);if(!T)throw new Ek(4,"PMD:Undefined");T=T(Led(_.zO(B,1)));if(!(T instanceof Function))throw new Ek(16,"APF:Failed");E.dwC=Math.floor((Date.now()+e)/1E3);E=new MCU(E.logger,T,jqG(B,3),e);E.addOnDisposeCallback(function(){return void I.resolve()});
return E};
WR.prototype.oL=function(E){return j_N(this,Object.assign({},E),!1)};
WR.prototype.uO=function(E){return j_N(this,Object.assign({},E),!0)};
WR.prototype.dhM=function(E){if(E>150)return!1;try{return this.cache=new Q_X(E,this.logger),!0}catch(B){return this.reportError(new Ek(22,"GBJ:init",B)),!1}};
WR.prototype.reportError=function(E){this.logger.logError(E.code);this.onError(E);return E};
var U86=function(E,B){B=B instanceof Ek?B:new Ek(5,"TVD:error",B);return E.reportError(B)},j_N=function(E,B,I){try{if(E.isDisposed())throw new Ek(21,"BNT:disposed");
if(!E.t0&&E.a9)throw E.a9;var T,e;return(e=(T=kiZ(E,B,I))!=null?T:tCu(E,B,I))!=null?e:fsZ(E,B,I)}catch(c){if(!B.hSq)throw U86(E,c);return VCl(E,I,c)}},kiZ=function(E,B,I){var T;
return(T=E.t0)==null?void 0:nr$(T,function(){return qxu(E,B)},I,function(e){var c;
if(E.t0 instanceof MCU&&((c=B.oQ)==null?0:c.sSH))try{var Y;(Y=E.cache)==null||d8z(Y,qxu(E,B),e,B.oQ.fWF,E.dwC-120)}catch(v){E.reportError(new Ek(24,"ELX:write",v))}})},tCu=function(E,B,I){var T;
if((T=B.oQ)!=null&&T.nOW)try{var e,c=(e=E.cache)==null?void 0:hf$(e,qxu(E,B),B.oQ.fWF);return c?I?M0(E.logger,function(){return _.tH(c,2)},"a"):c:void 0}catch(Y){E.reportError(new Ek(23,"RXO:read",Y))}},fsZ=function(E,B,I){var T={stack:[],
error:void 0,hasError:!1};try{if(!B.zSP)throw new Ek(29,"SDF:notready");return nr$(PNd(T,new Ji6(E.logger,0,E.state)),function(){return qxu(E,B)},I)}catch(e){T.error=e,T.hasError=!0}finally{dAF(T)}},VCl=function(E,B,I){var T={stack:[],
error:void 0,hasError:!1};try{var e=U86(E,I);return nr$(PNd(T,new gr$(E.logger,e)),function(){return[]},B)}catch(c){T.error=c,T.hasError=!0}finally{dAF(T)}},qxu=function(E,B){return B.qRD?B.qRD:B.d6?M0(E.logger,function(){return B.qRD=V2c(B.d6)},"c"):[]},XMz=function(E){return bD(function(B){if(!F4f(B))return!1;
for(var I=_.p(Object.entries(E)),T=I.next();!T.done;T=I.next()){var e=_.p(T.value);T=e.next().value;e=e.next().value;if(!(T in B)){if(e.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!e(B[T]))return!1}return!0})}({gS:function(E){return bD(function(B){return B instanceof E})}(N0)},"");var FK$=function(){var E=_.B8();this.JSC$7795_streamzService=E;E.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",ti("cookie_enabled"),ti("cookie_3p_enabled"),_.Vl("browser"))};
FK$.prototype.increment=function(E,B,I){this.JSC$7795_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",E,B,I)};
var wyF=function(){var E=_.B8();this.JSC$7819_streamzService=E;E.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",fb("tick"),ti("from_st_cookie"))};
wyF.prototype.increment=function(E,B){this.JSC$7819_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",E,B)};
var D8l=function(){var E=_.B8();this.JSC$7825_streamzService=E;E.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Vl("status"))};
D8l.prototype.increment=function(E){this.JSC$7825_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",E)};
var KKV=function(){var E=_.B8();this.JSC$7828_streamzService=E;E.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Vl("stage"),ti("is_using_ytd_player"),ti("has_expandable_tiles"))};
KKV.prototype.increment=function(E,B,I){this.JSC$7828_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",E,B,I)};
var Rf$=function(){var E=_.B8();this.JSC$7831_streamzService=E;E.addNewCounter("/client_streamz/youtube/web/response_signature",_.Vl("check_status"))};
Rf$.prototype.increment=function(E){this.JSC$7831_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/web/response_signature",E)};
var E9U=function(){var E=_.B8();this.JSC$7834_streamzService=E;E.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Vl("sig"),fb("de"))};
E9U.prototype.increment=function(E,B){this.JSC$7834_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/web/e_sig_log",E,B)};
var B1l=function(){var E=_.B8();this.JSC$7837_streamzService=E;E.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Vl("sig"),fb("de"))};
B1l.prototype.increment=function(E,B){this.JSC$7837_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/web/e_sig_en",E,B)};
_.$mX=function(){var E=_.B8();this.JSC$7840_streamzService=E;E.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Vl("action"))};
_.$mX.prototype.increment=function(E){this.JSC$7840_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/web/enforcement_intent",E)};var tmt=function(){var E=_.B8();this.JSC$7843_streamzService=E;E.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.Vl("tagname"))};
tmt.prototype.increment=function(E){this.JSC$7843_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",E)};var X6=window;var IVZ=(new Date).getTime();var T16=function(E){this.servicePromise_=E;E.then((0,_.w1)(function(){},this),function(){},this)},edR=function(E,B,I){E.servicePromise_.then(function(T){var e=T[B];
if(!e)throw Error("Oa`"+B);return e.apply(T,I)})},ixr=function(E,B,I){for(var T=Array(arguments.length-2),e=2;e<arguments.length;e++)T[e-2]=arguments[e];
e=lVZ(E,B).then(function(c){return c.apply(null,T)},function(c){c=Error("Pa`"+B+"`"+E,{cause:c});
delete cVr[B];return _.rG(c)});
return new T16(e)},cVr={},lVZ=function(E,B){var I=cVr[B];
if(I)return I;I=(I=_.WA(B))?_.i1(I):(new _.cC(function(T,e){var c=(new dw(document)).createElement("SCRIPT");c.async=!0;_.nr(c,_.KX(Y9R(E)));c.onload=c.onreadystatechange=function(){c.readyState&&c.readyState!="loaded"&&c.readyState!="complete"||T()};
c.onerror=function(Y){e(Error("Qa`"+B+"`"+E,{cause:Y}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(c)})).then(function(){var T=_.WA(B);
if(!T)throw Error("Ra`"+B+"`"+E);return T});
return cVr[B]=I};var ppR={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},aVZ=function(){var E=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=q_i(function(){return _.a(function(B){if(B.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?B.return(Promise.resolve()):_.C(B,Y7t(E),2);E.rsaForList.length>
0&&document.addEventListener("click",E.requestAccessForHelpPanel);_.ER(B)})});
this.requestAccessForHelpPanel=function(){if(!(E.rsaForPromises.length>0)){for(var B=_.p(E.rsaForList),I=B.next();!I.done;I=B.next()){I=I.value;try{E.rsaForPromises.push(document.requestStorageAccessFor(I))}catch(T){}}Promise.all(E.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){E.reset()})}}};
aVZ.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var Y7t=function(E){var B,I,T,e;return _.a(function(c){switch(c.nextAddress){case 1:B=_.p(Object.values(ppR)),I=B.next();case 2:if(I.done){c.jumpTo(0);break}T=I.value;_.q7(c,5);return _.C(c,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:T}),7);case 7:e=c.yieldResult;e.state!=="granted"&&E.rsaForList.push(T);_.W7(c,3);break;case 5:_.RG(c);c.jumpTo(0);break;case 3:I=B.next(),c.jumpTo(2)}})};(new aVZ).initialize();var v9l=function(E){this.JSC$7857_loader_=E};
v9l.prototype.startHelp=function(E){edR(this.JSC$7857_loader_,"startHelp",arguments)};
v9l.prototype.JSC$7859_loadChatSupport=function(E){edR(this.JSC$7857_loader_,"loadChatSupport",arguments)};
var CiU=function(E,B){B=B||{};E=ixr(yVV,"help.service.Lazy.create",E,{apiKey:B.apiKey||B.apiKey,asxUiUri:B.asxUiUri||B.asxUiUri,environment:B.environment||B.environment,flow:B.flow||B.flow,frdProductData:B.frdProductData||B.frdProductData,frdProductDataSerializedJspb:B.frdProductDataSerializedJspb||B.frdProductDataSerializedJspb,helpCenterPath:B.helpCenterPath||B.helpCenterPath,locale:B.locale||B.locale||"en-US".replace(/-/g,"_"),nonce:B.nonce||B.nonce,productData:B.productData||B.productData,receiverUri:B.receiverUri||
B.receiverUri,renderApiUri:B.renderApiUri||B.renderApiUri,theme:B.theme||B.theme,window:B.window||B.window});return new v9l(E)},yVV=new MW(z4c,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var wpX=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(wpX,_.LX);var Zxh=_.ky(wpX);new Uint8Array([]);_.PiX=new function(E,B,I,T){this.configType=E;this.flagName=I;this.defaultValue=T;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 mmN=function(){this.retriever=_.Q().resolve(zdN)};yj(Node);yj(Element);var QaD=yj(HTMLElement);yj(SVGElement);var dmu,hdX,o8,saz;dmu=function(E){return typeof E.className=="string"?E.className:E.getAttribute&&E.getAttribute("class")||""};
hdX=function(E){return E.classList?E.classList:dmu(E).match(/\S+/g)||[]};
_.rI=function(E,B){typeof E.className=="string"?E.className=B:E.setAttribute&&E.setAttribute("class",B)};
_.bG=function(E,B){return E.classList?E.classList.contains(B):_.AD(hdX(E),B)};
_.WV=function(E,B){if(E.classList)E.classList.add(B);else if(!_.bG(E,B)){var I=dmu(E);_.rI(E,I+(I.length>0?" "+B:B))}};
o8=function(E,B){if(E.classList)Array.prototype.forEach.call(B,function(e){_.WV(E,e)});
else{var I={};Array.prototype.forEach.call(hdX(E),function(e){I[e]=!0});
Array.prototype.forEach.call(B,function(e){I[e]=!0});
B="";for(var T in I)B+=B.length>0?" "+T:T;_.rI(E,B)}};
_.SO=function(E,B){E.classList?E.classList.remove(B):_.bG(E,B)&&_.rI(E,Array.prototype.filter.call(hdX(E),function(I){return I!=B}).join(" "))};
saz=function(E,B){E.classList?Array.prototype.forEach.call(B,function(I){_.SO(E,I)}):_.rI(E,Array.prototype.filter.call(hdX(E),function(I){return!_.AD(B,I)}).join(" "))};var usR=function(E){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=E.document},GMV=function(E,B){L3D(E);
var I=document.createElement("div"),T;(T=B.parentNode)==null||T.insertBefore(I,B);I.tabIndex=0;I.id="fc-focus-trap-pre-div";I=document.createElement("div");var e;(e=B.parentNode)==null||e.insertBefore(I,B.nextSibling);I.tabIndex=0;I.id="fc-focus-trap-post-div";var c=xml(E,B),Y=xml(E,B,!0);c&&Y&&(E.focusChangeHandler=function(){var v=E.document.activeElement;if(v)if(_.Hp(B,v))E.previouslyFocusedElement=v;else if(v===E.document.activeElement)switch(E.previouslyFocusedElement){case c:Y.focus();E.previouslyFocusedElement=
Y;break;default:c.focus(),E.previouslyFocusedElement=c}},E.document.addEventListener("focus",E.focusChangeHandler,!0),E.document.addEventListener("focusin",E.focusChangeHandler))},L3D=function(E){E.focusChangeHandler&&(document.removeEventListener("focus",E.focusChangeHandler,!0),document.removeEventListener("focusin",E.focusChangeHandler),E.focusChangeHandler=null);
var B;(B=document.getElementById("fc-focus-trap-pre-div"))==null||B.remove();var I;(I=document.getElementById("fc-focus-trap-post-div"))==null||I.remove()},OxU=function(E,B,I,T,e){I=I===void 0?!0:I;
var c;e=(c=e===void 0?null:e)!=null?c:xml(E,B,T===void 0?!1:T);e!==null&&(e.focus(),I&&GMV(E,B))};
usR.prototype.disableButton=function(E,B){B=B===void 0?null:B;E.disabled=!0;B&&_.WV(E,B)};
var xml=function(E,B,I){I=I===void 0?!1:I;if(JRi(B)&&!I)return B;var T=I?[].slice.call(B.children,0).reverse():B.children;T=_.p(T);for(var e=T.next();!e.done;e=T.next())if(e=e.value,QaD(e)&&(e=xml(E,e,I)))return e;return JRi(B)&&I?B:null};var n9Z=function(E){this.originalBodyOverflow="";this.JSC$7885_domHelper=BM(E)};_.$U(_.ZV,_.Cx);_.l=_.ZV.prototype;_.l.JSC$7888_id_=0;_.l.disposeInternal=function(){_.ZV.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7886_listener_;delete this.handler_};
_.l.start=function(E){this.stop();this.JSC$7888_id_=uG(this.callback_,E!==void 0?E:this.JSC$7886_interval_)};
_.l.stop=function(){this.isActive()&&_.$i.clearTimeout(this.JSC$7888_id_);this.JSC$7888_id_=0};
_.l.fire=function(){this.stop();this.JSC$7888_doAction_()};
_.l.isActive=function(){return this.JSC$7888_id_!=0};
_.l.JSC$7888_doAction_=function(){this.JSC$7888_id_=0;this.JSC$7886_listener_&&this.JSC$7886_listener_.call(this.handler_)};_.DA=function(E){_.Cx.call(this);this.handler_=E;this.JSC$7889_keys_={}};
_.$U(_.DA,_.Cx);var MeN=[];_.DA.prototype.listen=function(E,B,I,T){Array.isArray(B)||(B&&(MeN[0]=B.toString()),B=MeN);for(var e=0;e<B.length;e++){var c=_.vV(E,B[e],I||this.handleEvent,T||!1,this.handler_||this);if(!c)break;this.JSC$7889_keys_[c.key]=c}return this};
_.DA.prototype.listenOnce=function(E,B,I,T){return Hxr(this,E,B,I,T)};
var Hxr=function(E,B,I,T,e,c){if(Array.isArray(I))for(var Y=0;Y<I.length;Y++)Hxr(E,B,I[Y],T,e,c);else{B=iu(B,I,T||E.handleEvent,e,c||E.handler_||E);if(!B)return E;E.JSC$7889_keys_[B.key]=B}return E};
_.DA.prototype.unlisten=function(E,B,I,T,e){if(Array.isArray(B))for(var c=0;c<B.length;c++)this.unlisten(E,B[c],I,T,e);else if(E=BHu(E,B,I||this.handleEvent,_.B6(T)?!!T.capture:!!T,e||this.handler_||this))p8(E),delete this.JSC$7889_keys_[E.key];return this};
_.DA.prototype.removeAll=function(){_.a_.forEach(this.JSC$7889_keys_,function(E,B){this.JSC$7889_keys_.hasOwnProperty(B)&&p8(E)},this);
this.JSC$7889_keys_={}};
_.DA.prototype.disposeInternal=function(){_.DA.superClass_.disposeInternal.call(this);this.removeAll()};
_.DA.prototype.handleEvent=function(){throw Error("Sa");};var AP=function(){_.Cx.call(this);this.services_={}};
_.$U(AP,_.Cx);_.l=AP.prototype;_.l.logger=null;_.l.connect=function(E){E&&E()};
_.l.isConnected=function(){return!0};
_.l.registerService=function(E,B,I){this.services_[E]={callback:B,objectPayload:!!I}};
_.l.getService=function(E,B){var I=this.services_[E];return I?I:this.defaultService_?{callback:_.wY(this.defaultService_,E),objectPayload:_.B6(B)}:null};
var N1U=function(E,B){if(B&&typeof E==="string")try{return JSON.parse(E)}catch(I){return null}else if(!B&&typeof E!=="string")return(0,_.xT)(E);return E};
AP.prototype.disposeInternal=function(){AP.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 jl=function(E,B){this.sequence_=[];this.onCancelFunction_=E;this.defaultScope_=B||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};
jl.prototype.cancel=function(E){if(this.fired_)this.result_ instanceof jl&&this.result_.cancel();else{if(this.parent_){var B=this.parent_;delete this.parent_;E?B.cancel(E):(B.branches_--,B.branches_<=0&&B.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Uk(this))}};
jl.prototype.continue_=function(E,B){this.blocked_=!1;g9z(this,E,B)};
var g9z=function(E,B,I){E.fired_=!0;E.result_=I;E.hadError_=!B;S7h(E)},W36=function(E){if(E.fired_){if(!E.silentlyCanceled_)throw new JVZ(E);
E.silentlyCanceled_=!1}};
jl.prototype.callback=function(E){W36(this);g9z(this,!0,E)};
jl.prototype.errback=function(E){W36(this);g9z(this,!1,E)};
var Xpu=function(E,B,I){kT(E,B,null,I)};
jl.prototype.finally=function(E){var B=this;return new Promise(function(I,T){kT(B,function(e){E();I(e)},function(e){E();
T(e)})})};
var kT=function(E,B,I,T){var e=E.fired_;e||(B===I?B=I=QY(B):(B=QY(B),I=QY(I)));E.sequence_.push([B,I,T]);e&&S7h(E)};
jl.prototype.then=function(E,B,I){var T,e,c=new _.cC(function(Y,v){e=Y;T=v});
kT(this,e,function(Y){Y instanceof Uk?c.cancel():T(Y);return rVZ},this);
return c.then(E,B,I)};
pLh(jl);var bxR=function(E,B){B instanceof jl?Xpu(E,(0,_.w1)(B.branch,B)):Xpu(E,function(){return B})};
jl.prototype.branch=function(E){var B=new jl;kT(this,B.callback,B.errback,B);E&&(B.parent_=this,this.branches_++);return B};
jl.prototype.isError=function(E){return E instanceof Error};
var o9h=function(E){return by(E.sequence_,function(B){return typeof B[1]==="function"})},rVZ={},S7h=function(E){if(E.unhandledErrorId_&&E.fired_&&o9h(E)){var B=E.unhandledErrorId_,I=AVU[B];
I&&(_.$i.clearTimeout(I.JSC$7906_id_),delete AVU[B]);E.unhandledErrorId_=0}E.parent_&&(E.parent_.branches_--,delete E.parent_);B=E.result_;for(var T=I=!1;E.sequence_.length&&!E.blocked_;){var e=E.sequence_.shift(),c=e[0],Y=e[1];e=e[2];if(c=E.hadError_?Y:c)try{var v=c.call(e||E.defaultScope_,B);v===rVZ&&(v=void 0);v!==void 0&&(E.hadError_=E.hadError_&&(v==B||E.isError(v)),E.result_=B=v);if(YRZ(B)||typeof _.$i.Promise==="function"&&B instanceof _.$i.Promise)T=!0,E.blocked_=!0}catch(y){B=y,E.hadError_=
!0,o9h(E)||(I=!0)}}E.result_=B;T&&(v=(0,_.w1)(E.continue_,E,!0),T=(0,_.w1)(E.continue_,E,!1),B instanceof jl?(kT(B,v,T),B.blocking_=!0):B.then(v,T));I&&(B=new jaX(B),AVU[B.JSC$7906_id_]=B,E.unhandledErrorId_=B.JSC$7906_id_)},JVZ=function(){_.Ec.call(this)};
_.$U(JVZ,_.Ec);JVZ.prototype.message="Deferred has already fired";JVZ.prototype.name="AlreadyCalledError";var Uk=function(){_.Ec.call(this)};
_.$U(Uk,_.Ec);Uk.prototype.message="Deferred was canceled";Uk.prototype.name="CanceledError";var jaX=function(E){this.JSC$7906_id_=_.$i.setTimeout((0,_.w1)(this.throwError,this),0);this.JSC$7906_error_=E};
jaX.prototype.throwError=function(){delete AVU[this.JSC$7906_id_];throw this.JSC$7906_error_;};
var AVU={};var UmD={1:"NativeMessagingTransport"},kMZ=["pu","lru","pru","lpu","ppu"],fVZ=function(){for(var E=10,B=te6,I=B.length,T="";E-- >0;)T+=B.charAt(Math.floor(Math.random()*I));return T},te6="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var tP=function(E){_.Cx.call(this);this.JSC$7909_domHelper_=E||BM()};
_.$U(tP,_.Cx);tP.prototype.transportType=0;tP.prototype.getWindow=function(){return this.JSC$7909_domHelper_.getWindow()};
tP.prototype.getName=function(){return UmD[String(this.transportType)]||""};var fS=function(E,B,I,T,e){tP.call(this,I);this.JSC$7912_channel_=E;this.protocolVersion_=e||2;this.peerHostname_=B||"*";this.JSC$7912_eventHandler_=new _.DA(this);this.maybeAttemptToConnectTimer_=new _.F7(100,this.getWindow());this.oneSidedHandshake_=!!T;this.setupAckReceived_=new jl;this.setupAckSent_=new jl;this.JSC$7912_connected_=new jl;this.endpointId_=fVZ();this.peerEndpointId_=null;this.oneSidedHandshake_?VeZ(this.JSC$7912_channel_)==1?bxR(this.JSC$7912_connected_,this.setupAckReceived_):
bxR(this.JSC$7912_connected_,this.setupAckSent_):(bxR(this.JSC$7912_connected_,this.setupAckReceived_),this.protocolVersion_==2&&bxR(this.JSC$7912_connected_,this.setupAckSent_));Xpu(this.JSC$7912_connected_,this.notifyConnected_,this);this.JSC$7912_connected_.callback(!0);this.JSC$7912_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.$U(fS,tP);fS.prototype.peerProtocolVersion_=null;fS.prototype.initialized_=!1;fS.prototype.transportType=1;var q7U={};fS.prototype.sendTimerId_=0;
var K3N=function(E){var B=E.event_.data;if(typeof B!=="string")return!1;var I=B.indexOf("|"),T=B.indexOf(":");if(I==-1||T==-1)return!1;var e=B.substring(0,I);I=B.substring(I+1,T);B=B.substring(T+1);if(T=VY[e])return T.xpcDeliver(I,B,E.event_.origin),!0;T=F3U(B)[0];for(var c in VY){var Y=VY[c];if(VeZ(Y)==1&&!Y.isConnected()&&I=="tp"&&(T=="SETUP"||T=="SETUP_NTPV2")&&Dm$(Y,E.event_.origin))return delete VY[Y.name],Y.name=e,VY[e]=Y,Y.xpcDeliver(I,B),!0}return!1},RdU=function(E){E.protocolVersion_!=2||
E.peerProtocolVersion_!=null&&E.peerProtocolVersion_!=2||E.send("tp","SETUP_NTPV2,"+E.endpointId_);
E.peerProtocolVersion_!=null&&E.peerProtocolVersion_!=1||E.send("tp","SETUP")},EpZ=function(E,B){if(E.protocolVersion_!=2||E.peerProtocolVersion_!=null&&E.peerProtocolVersion_!=2||B!=2){if(E.peerProtocolVersion_!=null&&E.peerProtocolVersion_!=1||B!=1)return;
E.send("tp","SETUP_ACK")}else E.send("tp","SETUP_ACK_NTPV2");E.setupAckSent_.fired_||E.setupAckSent_.callback(!0)},Btt=function(E,B){B>E.peerProtocolVersion_&&(E.peerProtocolVersion_=B);
E.peerProtocolVersion_==1&&(E.setupAckSent_.fired_||E.oneSidedHandshake_||E.setupAckSent_.callback(!0),E.peerEndpointId_=null)};
_.l=fS.prototype;_.l.connect=function(){var E=this.getWindow(),B=_.$l(E),I=q7U[B];typeof I!=="number"&&(I=0);I==0&&_.vV(E.postMessage?E:E.document,"message",K3N,!1,fS);q7U[B]=I+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.l.maybeAttemptToConnect_=function(){var E=VeZ(this.JSC$7912_channel_)==0;this.oneSidedHandshake_&&E||this.JSC$7912_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),RdU(this))};
_.l.send=function(E,B){var I=this.JSC$7912_channel_.peerWindowObject_;I&&(this.send=function(T,e){var c=this,Y=this.JSC$7912_channel_.name;this.sendTimerId_=uG(function(){c.sendTimerId_=0;try{var v=I.postMessage?I:I.document;v.postMessage&&v.postMessage(Y+"|"+T+":"+e,c.peerHostname_)}catch(y){}},0)},this.send(E,B))};
_.l.notifyConnected_=function(){var E=this.JSC$7912_channel_,B=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;E.isConnected()||E.connectionDelay_&&E.connectionDelay_.isActive()||(E.state_=2,_.bl(E.connectionDelay_),B!==void 0?(E.connectionDelay_=new _.ZV(E.connectCb_,B),E.connectionDelay_.start()):(E.connectionDelay_=null,E.connectCb_()))};
_.l.disposeInternal=function(){if(this.initialized_){var E=this.getWindow(),B=_.$l(E),I=q7U[B];q7U[B]=I-1;I==1&&_.zw(E.postMessage?E:E.document,"message",K3N,!1,fS)}this.sendTimerId_&&(_.$i.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.bl(this.JSC$7912_eventHandler_);delete this.JSC$7912_eventHandler_;_.bl(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7912_connected_.cancel();delete this.JSC$7912_connected_;delete this.send;fS.superClass_.disposeInternal.call(this)};
var F3U=function(E){E=E.split(",");E[1]=E[1]||null;return E};_.q0=function(E){if(E.getValues&&typeof E.getValues=="function")return E.getValues();if(typeof Map!=="undefined"&&E instanceof Map||typeof Set!=="undefined"&&E instanceof Set)return Array.from(E.values());if(typeof E==="string")return E.split("");if(_.Di(E)){for(var B=[],I=E.length,T=0;T<I;T++)B.push(E[T]);return B}return _.a_.getValues(E)};
_.$S$=function(E){if(E.getKeys&&typeof E.getKeys=="function")return E.getKeys();if(!E.getValues||typeof E.getValues!="function"){if(typeof Map!=="undefined"&&E instanceof Map)return Array.from(E.keys());if(!(typeof Set!=="undefined"&&E instanceof Set)){if(_.Di(E)||typeof E==="string"){var B=[];E=E.length;for(var I=0;I<E;I++)B.push(I);return B}return _.a_.getKeys(E)}}};
_.I0N=function(E,B,I){if(E.forEach&&typeof E.forEach=="function")E.forEach(B,I);else if(_.Di(E)||typeof E==="string")Array.prototype.forEach.call(E,B,I);else for(var T=_.$S$(E),e=_.q0(E),c=e.length,Y=0;Y<c;Y++)B.call(I,e[Y],T&&T[Y],E)};var uKD,$e,Tj,Y_r,Ttz,l0u,eBV,phV,cxZ;
_.tQ=function(E,B){this.JSC$7917_domain_=this.userInfo_=this.scheme_="";this.JSC$7917_port_=null;this.fragment_=this.JSC$7917_path_="";this.JSC$7917_ignoreCase_=!1;var I;E instanceof _.tQ?(this.JSC$7917_ignoreCase_=B!==void 0?B:E.JSC$7917_ignoreCase_,_.F6(this,E.scheme_),this.userInfo_=E.userInfo_,_.DF(this,E.JSC$7917_domain_),_.KS(this,E.JSC$7917_port_),_.R8(this,E.getPath()),_.Ez(this,E.JSC$7917_queryData_.clone()),_.Bd(this,E.fragment_)):E&&(I=_.kP(String(E)))?(this.JSC$7917_ignoreCase_=!!B,_.F6(this,
I[1]||"",!0),this.userInfo_=$e(I[2]||""),_.DF(this,I[3]||"",!0),_.KS(this,I[4]),_.R8(this,I[5]||"",!0),_.Ez(this,I[6]||"",!0),_.Bd(this,I[7]||"",!0)):(this.JSC$7917_ignoreCase_=!!B,this.JSC$7917_queryData_=new _.Iw(null,this.JSC$7917_ignoreCase_))};
_.tQ.prototype.toString=function(){var E=[],B=this.scheme_;B&&E.push(Tj(B,Ttz,!0),":");var I=this.JSC$7917_domain_;if(I||B=="file")E.push("//"),(B=this.userInfo_)&&E.push(Tj(B,Ttz,!0),"@"),E.push(_.rU(I).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),I=this.JSC$7917_port_,I!=null&&E.push(":",String(I));if(I=this.getPath())this.JSC$7917_domain_&&I.charAt(0)!="/"&&E.push("/"),E.push(Tj(I,I.charAt(0)=="/"?eBV:l0u,!0));(I=this.JSC$7917_queryData_.toString())&&E.push("?",I);(I=this.fragment_)&&E.push("#",Tj(I,
cxZ));return E.join("")};
_.tQ.prototype.resolve=function(E){var B=this.clone(),I=!!E.scheme_;I?_.F6(B,E.scheme_):I=!!E.userInfo_;I?B.userInfo_=E.userInfo_:I=!!E.JSC$7917_domain_;I?_.DF(B,E.JSC$7917_domain_):I=E.JSC$7917_port_!=null;var T=E.getPath();if(I)_.KS(B,E.JSC$7917_port_);else if(I=!!E.JSC$7917_path_){if(T.charAt(0)!="/")if(this.JSC$7917_domain_&&!this.JSC$7917_path_)T="/"+T;else{var e=B.getPath().lastIndexOf("/");e!=-1&&(T=B.getPath().slice(0,e+1)+T)}e=T;if(e==".."||e==".")T="";else if(_.vG(e,"./")||_.vG(e,"/.")){T=
_.lc(e,"/");e=e.split("/");for(var c=[],Y=0;Y<e.length;){var v=e[Y++];v=="."?T&&Y==e.length&&c.push(""):v==".."?((c.length>1||c.length==1&&c[0]!="")&&c.pop(),T&&Y==e.length&&c.push("")):(c.push(v),T=!0)}T=c.join("/")}else T=e}I?_.R8(B,T):I=E.JSC$7917_queryData_.toString()!=="";I?_.Ez(B,E.JSC$7917_queryData_.clone()):I=!!E.fragment_;I&&_.Bd(B,E.fragment_);return B};
_.tQ.prototype.clone=function(){return new _.tQ(this)};
_.F6=function(E,B,I){E.scheme_=I?$e(B,!0):B;E.scheme_&&(E.scheme_=E.scheme_.replace(/:$/,""));return E};
_.DF=function(E,B,I){E.JSC$7917_domain_=I?$e(B,!0):B;return E};
_.KS=function(E,B){if(B){B=Number(B);if(isNaN(B)||B<0)throw Error("Ta`"+B);E.JSC$7917_port_=B}else E.JSC$7917_port_=null;return E};
_.tQ.prototype.getPath=function(){return this.JSC$7917_path_};
_.R8=function(E,B,I){E.JSC$7917_path_=I?$e(B,!0):B;return E};
_.Ez=function(E,B,I){B instanceof _.Iw?(E.JSC$7917_queryData_=B,idV(E.JSC$7917_queryData_,E.JSC$7917_ignoreCase_)):(I||(B=Tj(B,phV)),E.JSC$7917_queryData_=new _.Iw(B,E.JSC$7917_ignoreCase_));return E};
_.Wp=function(E,B,I){E.JSC$7917_queryData_.set(B,I);return E};
_.JV=function(E,B){return E.JSC$7917_queryData_.get(B)};
_.Bd=function(E,B,I){E.fragment_=I?$e(B):B;return E};
_.eM=function(E){_.Wp(E,"zx",g1());return E};
_.Se=function(E,B){return E instanceof _.tQ?E.clone():new _.tQ(E,B)};
uKD=function(E,B){E instanceof _.tQ||(E=_.Se(E));B instanceof _.tQ||(B=_.Se(B));return E.resolve(B)};
$e=function(E,B){return E?B?decodeURI(E.replace(/%25/g,"%2525")):decodeURIComponent(E):""};
Tj=function(E,B,I){return typeof E==="string"?(E=encodeURI(E).replace(B,Y_r),I&&(E=E.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),E):null};
Y_r=function(E){E=E.charCodeAt(0);return"%"+(E>>4&15).toString(16)+(E&15).toString(16)};
Ttz=/[#\/\?@]/g;l0u=/[#\?:]/g;eBV=/[#\?]/g;phV=/[#\?@]/g;cxZ=/#/g;_.Iw=function(E,B){this.count_=this.keyMap_=null;this.encodedQuery_=E||null;this.JSC$7918_ignoreCase_=!!B};
_.lI=function(E){E.keyMap_||(E.keyMap_=new Map,E.count_=0,E.encodedQuery_&&c56(E.encodedQuery_,function(B,I){E.add(qD(B),I)}))};
_.l=_.Iw.prototype;_.l.getCount=function(){_.lI(this);return this.count_};
_.l.add=function(E,B){_.lI(this);this.encodedQuery_=null;E=cd(this,E);var I=this.keyMap_.get(E);I||this.keyMap_.set(E,I=[]);I.push(B);this.count_+=1;return this};
_.l.remove=function(E){_.lI(this);E=cd(this,E);return this.keyMap_.has(E)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(E).length,this.keyMap_.delete(E)):!1};
_.l.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.l.isEmpty=function(){_.lI(this);return this.count_==0};
_.l.containsKey=function(E){_.lI(this);E=cd(this,E);return this.keyMap_.has(E)};
_.l.containsValue=function(E){var B=this.getValues();return _.AD(B,E)};
_.l.forEach=function(E,B){_.lI(this);this.keyMap_.forEach(function(I,T){I.forEach(function(e){E.call(B,e,T,this)},this)},this)};
_.l.getKeys=function(){_.lI(this);for(var E=Array.from(this.keyMap_.values()),B=Array.from(this.keyMap_.keys()),I=[],T=0;T<B.length;T++)for(var e=E[T],c=0;c<e.length;c++)I.push(B[T]);return I};
_.l.getValues=function(E){_.lI(this);var B=[];if(typeof E==="string")this.containsKey(E)&&(B=B.concat(this.keyMap_.get(cd(this,E))));else{E=Array.from(this.keyMap_.values());for(var I=0;I<E.length;I++)B=B.concat(E[I])}return B};
_.l.set=function(E,B){_.lI(this);this.encodedQuery_=null;E=cd(this,E);this.containsKey(E)&&(this.count_-=this.keyMap_.get(E).length);this.keyMap_.set(E,[B]);this.count_+=1;return this};
_.l.get=function(E,B){if(!E)return B;E=this.getValues(E);return E.length>0?String(E[0]):B};
_.a0Z=function(E,B,I){E.remove(B);I.length>0&&(E.encodedQuery_=null,E.keyMap_.set(cd(E,B),_.V6(I)),E.count_+=I.length)};
_.Iw.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var E=[],B=Array.from(this.keyMap_.keys()),I=0;I<B.length;I++){var T=B[I],e=_.rU(T);T=this.getValues(T);for(var c=0;c<T.length;c++){var Y=e;T[c]!==""&&(Y+="="+_.rU(T[c]));E.push(Y)}}return this.encodedQuery_=E.join("&")};
_.Iw.prototype.clone=function(){var E=new _.Iw;E.encodedQuery_=this.encodedQuery_;this.keyMap_&&(E.keyMap_=new Map(this.keyMap_),E.count_=this.count_);return E};
var cd=function(E,B){B=String(B);E.JSC$7918_ignoreCase_&&(B=B.toLowerCase());return B},idV=function(E,B){B&&!E.JSC$7918_ignoreCase_&&(_.lI(E),E.encodedQuery_=null,E.keyMap_.forEach(function(I,T){var e=T.toLowerCase();
T!=e&&(this.remove(T),_.a0Z(this,e,I))},E));
E.JSC$7918_ignoreCase_=B};
_.Iw.prototype.extend=function(E){for(var B=0;B<arguments.length;B++)_.I0N(arguments[B],function(I,T){this.add(T,I)},this)};var iI=function(E,B){AP.call(this);for(var I=0,T;T=kMZ[I];I++)if(T in E&&!/^https?:\/\//.test(E[T]))throw Error("Va`"+E[T]+"`"+T);this.cfg_=E;this.name=this.cfg_.cn||fVZ();this.JSC$7913_domHelper_=B||BM();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.DA(this);E.lpu=E.lpu||eGD(this.JSC$7913_domHelper_.getWindow().location.href)+"/robots.txt";E.ppu=E.ppu||eGD(E.pu||"")+"/robots.txt";VY[this.name]=this;BHu(window,"unload",vph)||iu(window,"unload",vph)};
_.$U(iI,AP);var yxu=RegExp("^%*tp$"),CQ$=RegExp("^%+tp$");_.l=iI.prototype;_.l.connectionDelay_=null;_.l.peerWindowDeferred_=null;_.l.transport_=null;_.l.state_=1;_.l.isConnected=function(){return this.state_==2};
_.l.peerWindowObject_=null;_.l.iframeElement_=null;_.l.connect=function(E){this.connectCb_=E||_.ZU;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Xpu(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.l.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7913_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var E=this.iframeElement_.contentWindow;E||(E=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=E}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$7913_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new fS(this,this.cfg_.ph,this.JSC$7913_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.l.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.bl(this.transport_);this.connectCb_=this.transport_=null;_.bl(this.connectionDelay_);this.connectionDelay_=null};
_.l.send=function(E,B){if(this.isConnected()){try{var I=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(e){I=!1}if(I){_.B6(B)&&(B=(0,_.xT)(B));I=this.transport_;var T=I.send;yxu.test(E)&&(E="%"+E);E=E.replace(/[%:|]/g,encodeURIComponent);T.call(I,E,B)}else this.close()}};
_.l.xpcDeliver=function(E,B,I){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.w1)(this.xpcDeliver,this,E,B,I));else if(Dm$(this,I)&&!this.isDisposed()&&this.state_!=3)if(E&&E!="tp")this.isConnected()&&(E=E.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),E=CQ$.test(E)?E.substring(1):E,E=this.getService(E,B))&&(B=N1U(B,E.objectPayload),B!=null&&E.callback(B));else switch(E=this.transport_,I=F3U(B),B=I[1],I[0]){case "SETUP_ACK":Btt(E,1);E.setupAckReceived_.fired_||E.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":E.protocolVersion_==2&&(Btt(E,2),E.setupAckReceived_.fired_||E.setupAckReceived_.callback(!0));break;case "SETUP":Btt(E,1);EpZ(E,1);break;case "SETUP_NTPV2":E.protocolVersion_==2&&(I=E.peerProtocolVersion_,Btt(E,2),EpZ(E,2),I!=1&&E.peerEndpointId_==null||E.peerEndpointId_==B||RdU(E),E.peerEndpointId_=B)}};
var VeZ=function(E){var B=E.cfg_.role;return typeof B==="number"?B:window.parent==E.peerWindowObject_?1:0},Dm$=function(E,B){var I=E.cfg_.ph;
return _.aB(B==null?"":String(B))||_.aB(I==null?"":String(I))||B==E.cfg_.ph};
iI.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete VY[this.name];_.bl(this.peerLoadHandler_);delete this.peerLoadHandler_;iI.superClass_.disposeInternal.call(this)};
var vph=function(){for(var E in VY)_.bl(VY[E])},VY={};var Zdr=function(E,B){this.JSC$7927_win=E;this.allowAdsHttpEndpoint=B;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7927_domHelper=BM(E);this.scrollManager=new n9Z(E);this.accessibilityManager=new usR(E);whN(this)},whN=function(E){var B=function(){E.allowAdsPopup&&E.allowAdsPopup.style.setProperty("display","none","important");
E.wallElement.style.setProperty("display","","important");L3D(E.accessibilityManager);OxU(E.accessibilityManager,E.wallElement.querySelector(".fc-dialog-container"),!1,!1,E.wallElement.querySelector(".fc-button-whitelist"));var e=E.scrollManager;e.JSC$7885_domHelper.JSC$7214_document_.body.style.overflow=e.originalBodyOverflow};
E.allowAdsPopup=E.JSC$7927_domHelper.JSC$7216_createDom("DIV",{"class":"fc-whitelist-root"});E.allowAdsPopup.style.setProperty("display","none","important");E.JSC$7927_domHelper.appendChild(E.JSC$7927_domHelper.JSC$7214_document_.body,E.allowAdsPopup);var I=E.JSC$7927_domHelper.JSC$7216_createDom("DIV",{"class":"fc-dialog-overlay"});E.JSC$7927_domHelper.appendChild(E.allowAdsPopup,I);var T=E.JSC$7927_domHelper.JSC$7216_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:B});E.JSC$7927_domHelper.appendChild(E.allowAdsPopup,
T);I=E.JSC$7927_domHelper.JSC$7216_createDom("IFRAME");I.className="fc-whitelist-dialog";I.frameBorder="0";I.id="fc-whitelist-iframe";I.tabIndex="0";_.QC(I,E.allowAdsHttpEndpoint);E.JSC$7927_domHelper.appendChild(T,I);T={};T.pu=_.Ef(E.allowAdsHttpEndpoint).toString();T.tp=1;T.cn="fc-whitelist-channel";T.ifrid=I.id;T.osh=!0;E.allowAdsCrossPageChannel=new iI(T);E.allowAdsCrossPageChannel.registerService("close",B);E.allowAdsCrossPageChannel.registerService("refresh",function(){E.JSC$7927_win.location.reload()});
E.allowAdsCrossPageChannel.registerService("resize",function(e){if(e){var c=E.allowAdsPopup.querySelector(".fc-whitelist-dialog");e.width&&c.style.setProperty("width",e.width,"important");e.height&&c.style.setProperty("height",e.height,"important")}},!0);
E.allowAdsCrossPageChannel.connect()};
Zdr.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7927_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var p0=window,Ye=document,PQr=p0.location,zBV=function(){},mSt=/\[native code\]/,aw=function(E,B,I){return E[B]=E[B]||I},QJZ=function(E){E=E.sort();
for(var B=[],I=void 0,T=0;T<E.length;T++){var e=E[T];e!=I&&B.push(e);I=e}return B},vd=function(){var E;
if((E=Object.create)&&mSt.test(E))E=E(null);else{E={};for(var B in E)E[B]=void 0}return E},yK=aw(p0,"gapi",{});var wC={};wC=aw(p0,"___jsl",vd());aw(wC,"I",0);aw(wC,"hel",10);var dSV=function(){var E=PQr.href;if(wC.dpo)var B=wC.h;else{B=wC.h;var I=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),T=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(E=E&&(I.exec(E)||T.exec(E)))try{B=decodeURIComponent(E[2])}catch(e){}}return B},hBR=function(E){var B=aw(wC,"PQ",[]);
wC.PQ=[];var I=B.length;if(I===0)E();else for(var T=0,e=function(){++T===I&&E()},c=0;c<I;c++)B[c](e)},sJu=function(E){return aw(aw(wC,"H",vd()),E,vd())};var Zr=function(E){this.JSC$7929_obj_=E};
Zr.prototype.value=function(){return this.JSC$7929_obj_};
Zr.prototype.getWidth=function(){return this.JSC$7929_obj_.width};
Zr.prototype.getHeight=function(){return this.JSC$7929_obj_.height};
Zr.prototype.getStyle=function(){return this.JSC$7929_obj_.style};var uXU=function(E){this.JSC$7932_obj_=E||{}};
_.l=uXU.prototype;_.l.value=function(){return this.JSC$7932_obj_};
_.l.setUrl=function(E){this.JSC$7932_obj_.url=E;return this};
_.l.getUrl=function(){return this.JSC$7932_obj_.url};
_.l.getStyle=function(){return this.JSC$7932_obj_.style};
_.l.setId=function(E){this.JSC$7932_obj_.id=E;return this};
_.l.getId=function(){return this.JSC$7932_obj_.id};
_.l.getContext=function(){return this.JSC$7932_obj_.context};
var L$l=function(E){E.JSC$7932_obj_.attributes=E.JSC$7932_obj_.attributes||{};return new Zr(E.JSC$7932_obj_.attributes)};var xSN=function(){uXU.apply(this,arguments)};
_.L(xSN,uXU);var G5u=aw(wC,"perf",vd());aw(G5u,"g",vd());var OdX=aw(G5u,"i",vd());aw(G5u,"r",[]);vd();vd();var M2R=function(E,B,I){B&&B.length>0&&(B=npl(B),I&&I.length>0&&(B+="___"+npl(I)),B.length>28&&(B=B.substr(0,28)+(B.length-28)),I=B,B=aw(OdX,"_p",vd()),aw(B,I,vd())[E]=(new Date).getTime(),B=G5u.r,typeof B==="function"?B(E,"_p",I):B.push([E,"_p",I]))},npl=function(E){return E.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var HdD=vd(),NtZ=[],Pd=function(E){throw Error("Ya`"+E);};
NtZ.push(["jsl",function(E){for(var B in E)if(Object.prototype.hasOwnProperty.call(E,B)){var I=E[B];typeof I=="object"?wC[B]=aw(wC,B,[]).concat(I):aw(wC,B,I)}if(B=E.u)E=aw(wC,"us",[]),E.push(B),(B=/^https:(.*)$/.exec(B))&&E.push("http:"+B[1])}]);
var gpZ=/^(\/[a-zA-Z0-9_\-]+)+$/,S_6=[/\/amp\//,/\/amp$/,/^\/amp$/],JxU=/^[a-zA-Z0-9\-_\.,!]+$/,W$h=/^gapi\.loaded_[0-9]+$/,XhR=/^[a-zA-Z0-9,._-]+$/,AxN=function(E,B,I,T,e){var c=E.split(";"),Y=c.shift(),v=HdD[Y],y=null;v?y=v(c,B,I,T):Pd("no hint processor for: "+Y);y||Pd("failed to generate load url");B=y;I=B.match(rxl);(T=B.match(bdh))&&T.length===1&&opN.test(B)&&I&&I.length===1||Pd("failed sanity: "+E);try{E="?";if(e&&e.length>0){eN(e);var Z=e.join(",");y=y+"?le="+Z;E="&"}if(wC.rol){var P=wC.ol;
P&&P.length&&(y=""+y+E+"ol="+P.length)}}catch(z){}return y},k56=function(E,B,I,T){E=jJ6(E);
W$h.test(I)||Pd("invalid_callback");B=USu(B);T=T&&T.length?USu(T):null;var e=function(c){return encodeURIComponent(c).replace(/%2C/g,",")};
return[encodeURIComponent(E.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(E.version),"/m=",e(B),T?"/exm="+e(T):"","/rt=j/sv=1/d=1/ed=1",E.activeMods?"/am="+e(E.activeMods):"",E.resourceSig?"/rs="+e(E.resourceSig):"",E.zcms?"/t="+e(E.zcms):"","/cb=",e(I)].join("")},jJ6=function(E){E.charAt(0)!=="/"&&Pd("relative path");
for(var B=E.substring(1).split("/"),I=[];B.length;){E=B.shift();if(!E.length||E.indexOf(".")==0)Pd("empty/relative directory");else if(E.indexOf("=")>0){B.unshift(E);break}I.push(E)}E={};for(var T=0,e=B.length;T<e;++T){var c=B[T].split("="),Y=decodeURIComponent(c[0]),v=decodeURIComponent(c[1]);c.length==2&&Y&&v&&(E[Y]=E[Y]||v)}B="/"+I.join("/");gpZ.test(B)||Pd("invalid_prefix");I=0;for(T=S_6.length;I<T;++I)S_6[I].test(B)&&Pd("invalid_prefix");I=t2u(E,"k",!0);T=t2u(E,"am");e=t2u(E,"rs");E=t2u(E,"t");
return{pathPrefix:B,version:I,activeMods:T,resourceSig:e,zcms:E}},USu=function(E){for(var B=[],I=0,T=E.length;I<T;++I){var e=E[I].replace(/\./g,"_").replace(/-/g,"_");
XhR.test(e)&&B.push(e)}return B.join(",")},t2u=function(E,B,I){E=E[B];
!E&&I&&Pd("missing: "+B);if(E){if(JxU.test(E))return E;Pd("invalid: "+B)}return null},opN=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,bdh=/\/cb=/g,rxl=/\/\//g;
HdD.m=function(E,B,I,T){(E=E[0])||Pd("missing_hint");return"https://apis.google.com"+k56(E,B,I,T)};
var f0Z=decodeURI("%73cript"),V2D=/^[-+_0-9\/A-Za-z]+={0,2}$/,q_l=function(E,B){for(var I=[],T=0;T<E.length;++T){var e=E[T],c;if(c=e){a:{for(c=0;c<B.length;c++)if(B[c]===e)break a;c=-1}c=c<0}c&&I.push(e)}return I},F$D=function(){var E=wC.nonce;
return E!==void 0?E&&E===String(E)&&E.match(V2D)?E:wC.nonce=null:Ye.querySelector?(E=Ye.querySelector("script[nonce]"))?(E=E.nonce||E.getAttribute("nonce")||"",E&&E===String(E)&&E.match(V2D)?wC.nonce=E:wC.nonce=null):null:null},RBU=function(E){if(Ye.readyState!="loading")DSt(E);
else{var B=F$D(),I="";B!==null&&(I=' nonce="'+B+'"');E="<"+f0Z+' src="'+encodeURI(E)+'"'+I+"></"+f0Z+">";Ye.write(K$h?K$h.createHTML(E):E)}},DSt=function(E){var B=Ye.createElement(f0Z);
B.setAttribute("src",K$h?K$h.createScriptURL(E):E);E=F$D();E!==null&&B.setAttribute("nonce",E);B.async="true";(E=Ye.getElementsByTagName(f0Z)[0])?E.parentNode.insertBefore(B,E):(Ye.head||Ye.body||Ye.documentElement).appendChild(B)},BUr=function(E,B,I){EP$(function(){var T=B===dSV()?aw(yK,"_",vd()):vd();
T=aw(sJu(B),"_",T);E(T)},I)},Z0c=function(E,B){var I=B||{};
typeof B=="function"&&(I={},I.callback=B);var T=(B=I)&&B._c;if(T)for(var e=0;e<NtZ.length;e++){var c=NtZ[e][0],Y=NtZ[e][1];Y&&Object.prototype.hasOwnProperty.call(T,c)&&Y(T[c],E,B)}B=[];E?B=E.split(":"):I.features&&(B=I.features);if(!(E=I.h)&&(E=dSV(),!E))throw Error("Za");$DX(B||[],I,E)},$DX=function(E,B,I){E=QJZ(E)||[];
var T=B.callback,e=B.config,c=B.timeout,Y=B.ontimeout,v=B.onerror,y=void 0;typeof v=="function"&&(y=v);var Z=null,P=!1;if(c&&!Y||!c&&Y)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";v=aw(sJu(I),"r",[]).sort();var z=aw(sJu(I),"L",[]).sort(),m=wC.le||[],u=[].concat(v),x=function(q,f){if(P)return 0;p0.clearTimeout(Z);z.push.apply(z,M);var ed=((yK||{}).config||{}).update;ed?ed(e):e&&aw(wC,"cu",[]).push(e);if(f){M2R("me0",q,u);try{BUr(f,I,y)}finally{M2R("me1",q,u)}}return 1};
c>0&&(Z=p0.setTimeout(function(){P=!0;Y()},c));
var M=q_l(E,z);if(M.length){M=q_l(E,v);var N=aw(wC,"CP",[]),W=N.length;N[W]=function(q){if(!q)return 0;M2R("ml1",M,u);var f=function(K){N[W]=null;x(M,q)&&hBR(function(){T&&T();K()})},ed=function(){var K=N[W+1];
K&&K()};
W>0&&N[W-1]?N[W]=function(){f(ed)}:f(ed)};
if(M.length){var U="loaded_"+wC.I++;yK[U]=function(q){N[W](q);yK[U]=null};
E=AxN(I,M,"gapi."+U,v,m);v.push.apply(v,M);M2R("ml0",M,u);B.sync||p0.___gapisync?RBU(E):DSt(E)}else N[W](zBV)}else x(M)&&T&&T()},Itt;
var TUN=null,ep6=_.$i.trustedTypes;if(ep6&&ep6.createPolicy){try{TUN=ep6.createPolicy("goog#gapi",{createHTML:Mqt,createScript:Mqt,createScriptURL:Mqt})}catch(E){_.$i.console&&_.$i.console.error(E.message)}Itt=TUN}else Itt=TUN;var K$h=Itt,EP$=function(E,B){if(wC.hee&&wC.hel>0)try{return E()}catch(I){B&&B(I),wC.hel--,Z0c("debug_error",function(){try{window.___jsl.hefn(I)}catch(T){throw I;}})}else try{return E()}catch(I){throw B&&B(I),I;
}},ltU=yK.load;
ltU&&aw(wC,"ol",[]).push(ltU);yK.load=function(E,B){return EP$(function(){return Z0c(E,B)})};var m3;var cAN=function(E,B){this.serviceId_=E;this.moduleId_=B||null};
cAN.prototype.toString=function(){return this.serviceId_};
cAN.prototype.getModuleId=function(){return this.moduleId_};var FFG=new cAN("MpJwZc","MpJwZc");var KFJ=new _.yY("a"),DWf=function(E,B,I){_.CS.call(this,E,B);this.node=B;this.kind=I};
_.L(DWf,_.CS);var icr=function(){this.JSC$7945_keys_={};this.urlPrefix_="";this.JSC$7945_queryData_={}};
icr.prototype.toString=function(){var E=this.urlPrefix_+pAV(this),B=_.pF(this.JSC$7945_queryData_),I="";B!=""&&(I="?"+B);return E+I};
var Yrr=function(E){E=zj(E,"md");return!!E&&E!=="0"},pAV=function(E){var B=[],I=(0,_.w1)(function(T){this.JSC$7945_keys_[T]!==void 0&&B.push(T+"="+this.JSC$7945_keys_[T])},E);
Yrr(E)?(I("md"),I("k"),I("ck"),I("am"),I("rs"),I("gssmodulesetproto"),I("slk"),I("dti")):(I("sdch"),I("k"),I("ck"),I("am"),I("rt"),"d"in E.JSC$7945_keys_||mU(E,"d","0"),I("d"),I("exm"),I("excm"),(E.JSC$7945_keys_.excm||E.JSC$7945_keys_.exm)&&B.push("ed=1"),I("im"),I("dg"),I("sm"),zj(E,"br")!="1"&&zj(E,"br")!="0"||I("br"),I("br-d"),zj(E,"rb")=="1"&&I("rb"),zj(E,"zs")!=="0"&&I("zs"),atV(E)!==""&&I("wt"),I("gssmodulesetproto"),I("ujg"),I("sp"),I("rs"),I("cb"),I("ee"),I("slk"),I("dti"),I("m"));return B.join("/")},
zj=function(E,B){return E.JSC$7945_keys_[B]?E.JSC$7945_keys_[B]:null},mU=function(E,B,I){I?E.JSC$7945_keys_[B]=I:delete E.JSC$7945_keys_[B]},vPh=function(E,B){E.urlPrefix_=B},yAX=function(E,B){B&&B.length>0?(B.sort(),mU(E,"exm",B.join(","))):mU(E,"exm",null)},CWz=function(E,B){B&&B.length>0?(B.sort(),mU(E,"excm",B.join(","))):mU(E,"excm",null)},wAt=function(E){return(E=zj(E,"m"))?E.split(","):[]},atV=function(E){switch(zj(E,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Zcr=function(E,B){var I=Object.keys(B).filter(function(T){return!!Object.keys(B[T]).length}).map(function(T){var e=Object.keys(B[T]);
e.length>1&&e.sort();return T+":"+e.join(",")});
I.sort();mU(E,"ee",I.join(";"))},oP6=function(E){var B=zj(E,"ee");
if(!B)return{};E={};B=_.p(B.split(";"));for(var I=B.next();!I.done;I=B.next()){var T=_.p(I.value.split(":"));I=T.next().value;T=T.next().value;E[I]={};T=_.p(T.split(","));for(var e=T.next();!e.done;e=T.next())E[I][e.value]=!0}return E},PWX=function(E){delete E.JSC$7945_keys_.m;
delete E.JSC$7945_keys_.exm;delete E.JSC$7945_keys_.ed};
icr.prototype.clone=function(){if(DxQ){var E=new icr;E.JSC$7945_keys_=Object.assign({},this.JSC$7945_keys_);E.urlPrefix_=this.urlPrefix_;E.JSC$7945_queryData_=Object.assign({},this.JSC$7945_queryData_);return E}return DV(this.toString())};
var DV=function(E,B){B=B===void 0?!0:B;var I=zpz(E),T=new icr,e=_.kP(I)[5];_.a_.forEach(mDu,function(Y){var v=e.match("/"+Y+"=([^/]+)");v&&mU(T,Y,v[1])});
var c="";c=E.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";vPh(T,E.substr(0,E.indexOf(c)+c.length));if(!B)return T;(E=_.kP(I)[6]||null)&&c56(E,function(Y,v){T.JSC$7945_queryData_[Y]=v});
return T},XAt=function(E){E=_.c7(zpz(E));
return E===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(E)?/\/k=/.test(E):!1},zpz=function(E){return E.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?E.substr(65):E},mDu={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",INCLUDE_COMPILE_HINTS_COMMENT:"ichc",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},QIR=RegExp("^loaded_(g|h)?[_\\d]+$");_.QK=function(E){this.JSC$7957_id_=E;this.opts={}};
_.QK.prototype.JSC$7959_setLabel=function(E){this.label_=E||void 0;return this};
_.QK.prototype.addUploadMetadata=function(E,B){var I=this.opts.data||{};I[E]=B;this.opts.data=I;return this};
var dDU=function(E){var B=_.a_.filter(E.opts,function(I){return I!==null});
B=_.a_.isEmpty(B)?null:B;E=[E.JSC$7957_id_,E.label_,B];B=PcJ(E);return E=E.slice(0,B+1)};
_.QK.prototype.toString=function(){var E=dDU(this);return"("+_.yl(E,function(B){return JSON.stringify(B)}).join(",")+")"};
_.QK.prototype.getId=function(){return this.JSC$7957_id_};
_.QK.prototype.getOptions=function(){return _.a_.clone(this.opts)};var dC=function(){_.QK.call(this,"image-search")};
_.L(dC,_.QK);dC.prototype.setSize=function(E){this.opts.imgsz=E;return this};
dC.prototype.JSC$7959_setLabel=function(E){_.QK.prototype.JSC$7959_setLabel.call(this,E);return this};
dC.prototype.addUploadMetadata=function(E,B){_.QK.prototype.addUploadMetadata.call(this,E,B);return this};var hG=function(){_.QK.call(this,"maps")};
_.L(hG,_.QK);hG.prototype.setZoom=function(E){this.opts.zoom=E;return this};
hG.prototype.JSC$7959_setLabel=function(E){_.QK.prototype.JSC$7959_setLabel.call(this,E);return this};
hG.prototype.addUploadMetadata=function(E,B){_.QK.prototype.addUploadMetadata.call(this,E,B);return this};_.sz=function(){_.QK.call(this,"photos")};
_.L(_.sz,_.QK);_.sz.prototype.JSC$7959_setLabel=function(E){_.QK.prototype.JSC$7959_setLabel.call(this,E);return this};
_.sz.prototype.addUploadMetadata=function(E,B){_.QK.prototype.addUploadMetadata.call(this,E,B);return this};var uI=function(){_.QK.call(this,"url")};
_.L(uI,_.QK);var hpR=function(){var E=new uI;E.opts.type="video";E.opts.site="youtube.com";return E};
uI.prototype.JSC$7959_setLabel=function(E){_.QK.prototype.JSC$7959_setLabel.call(this,E);return this};
uI.prototype.addUploadMetadata=function(E,B){_.QK.prototype.addUploadMetadata.call(this,E,B);return this};var L0=function(){_.QK.call(this,"video-search")};
_.L(L0,_.QK);var sIZ=function(){var E=new L0;E.opts.site="youtube.com";return E};
L0.prototype.JSC$7959_setLabel=function(E){_.QK.prototype.JSC$7959_setLabel.call(this,E);return this};
L0.prototype.addUploadMetadata=function(E,B){_.QK.prototype.addUploadMetadata.call(this,E,B);return this};var ux$=function(){_.QK.call(this,"web")};
_.L(ux$,_.QK);ux$.prototype.JSC$7959_setLabel=function(E){_.QK.prototype.JSC$7959_setLabel.call(this,E);return this};
ux$.prototype.addUploadMetadata=function(E,B){_.QK.prototype.addUploadMetadata.call(this,E,B);return this};var xe=function(){this.items_=[];this.opts={}},L46=function(E){switch(E){case "image-search":return new dC;
case "maps":return new hG;case "photos":return new _.sz;case "url":return new uI;case "video-search":return new L0;case "web":return new ux$}return new _.QK(E)};
xe.prototype.addView=function(E){this.items_.push(typeof E==="string"?L46(E):E);return this};
var xD6=function(E){return"("+_.yl(E.items_,function(B){return B.toString()}).join(",")+")"};
xe.prototype.toString=function(){return xD6(this)};
xe.prototype.getViews=function(E,B){B=B===void 0?[]:B;for(var I=this.items_,T=0;T<I.length;T++){var e=I[T];e instanceof xe?e.getViews(E,B):e.getId()==E&&B.push(e)}return B};
xe.prototype.getOptions=function(){return _.a_.clone(this.opts)};var GM=function(E){this.basePickerUrl_=E||"https://docs.google.com/picker";this.nav_=new xe};
GM.prototype.nav_=null;GM.prototype.addView=function(E){this.nav_.addView(E);return this};
GM.prototype.getBaseUrl=function(){return this.basePickerUrl_};
GM.prototype.getViews=function(E){return this.nav_.getViews(E)};
_.Gbz=function(E,B){E.callback_=B;return E};var OcU=new Map;OcU.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");OcU.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");OcU.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var nPN=new Set;nPN.add("application/vnd.google-apps.kix");nPN.add("application/vnd.google-apps.ritz");nPN.add("application/vnd.google-apps.punch");var AAR=function(E,B,I){var T=I&&_.O8(I,1);I=MID(I);var e=E[0].getId();switch(_.na(e,2)){case 13:return HcV(E,B,T,I);case 3:return NUN(E,B,T,I);case 10:return gPD(E,B,T,I);case 27:return gPD(E,B,T,I);case 12:return SrR(E,B);case 2:return JAZ(E,B,T,I);case 5:return W4N(E,B,T,I);case 9:return XAZ(E,B,T,I);case 6:return rAU(E,B,T,I);case 25:return bcR(E,B,T,I);case 1:return _.Zc(E[0],Lq$,26)?oPh(E,B,T,I):gPD(E,B,T,I);default:return{}}},rAU=function(E,B,I,T){E=E.map(function(e){return{id:e.getId().getId(),
serviceId:"youtube",name:e.getName(),description:_.O8(e,3),type:Gj(e),lastEditedUtc:_.u5V(_.DZ(e,_.Xz,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:_.O8(e,13),thumbnails:Oz(FT(e))}});
return{action:B,docs:E,viewToken:T,view:I||"youtube",v2Translated:!0}},JAZ=function(E,B,I,T){var e=E.map(function(c){var Y=c.getId().getId(),v=_.O8(c,7),y=c.getName(),Z=Gj(c),P=_.u5V(_.DZ(c,_.Xz,12)).getTime(),z=c.getUrl(),m=Number(UOD(c)),u=_.O8(c,3),x=_.O8(c,11),M=Oz(FT(c));
var N=_.DZ(c,DU,21);N=_.La(N,1);var W=_.DZ(c,DU,21);W=_.O8(W,10);var U=_.O8(c,13);var q=_.DZ(c,DU,21);q=_.La(q,9);var f=_.DZ(c,DU,21);f=_.O8(f,11);Y={id:Y,serviceId:"docs",mimeType:v,name:y,type:Z,lastEditedUtc:P,url:z,sizeBytes:m,description:u,iconUrl:x,thumbnails:M,isShared:N,downloadUrl:W,embedUrl:U,copyable:q,resourceKey:f};v=_.DZ(c,DU,21);_.La(v,12)&&(Y.uploadState="success",Y.isNew=!0);v=_.DZ(c,DU,21);_.Zc(v,f7,3)&&(c=_.DZ(c,DU,21),c=_.DZ(c,f7,3),_.Zc(c,kL,2)&&(v=ui(c.getDuration().getSeconds()),
y=c.getDuration(),y=_.kr(y,2),Y.duration=v+y/1E9),Y.aspectRatio=c.getAspectRatio());return Y});
return{action:B,docs:e,viewToken:T,view:I||"all",extraUserInputs:jIh(E),v2Translated:!0}},W4N=function(E,B,I,T){E=E.map(function(e){var c=_.DZ(e,SXZ,15);
c=_.DZ(c,tw,1);aH(e,10,tw,c);return{id:e.getId().getId(),serviceId:"web",mimeType:_.O8(e,7),name:e.getName(),type:Gj(e),url:e.getUrl(),description:_.O8(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Oz(FT(e))}});
return{action:B,docs:E,viewToken:T,view:I||"image-search",v2Translated:!0}},XAZ=function(E,B,I,T){E=E.map(function(e){return{serviceId:"url",
name:FT(e)[0].getUrl().split("/").pop(),type:Gj(e),mimeType:_.O8(e,7),url:e.getUrl(),description:_.O8(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Oz(FT(e))}});
return{action:B,docs:E,viewToken:T,view:I||"url",v2Translated:!0}},oPh=function(E,B,I,T){E=E.map(function(e){return{id:e.getId().getId(),
serviceId:"picasa",name:e.getName(),type:Gj(e),description:_.O8(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Oz(FT(e))}});
return{action:B,docs:E,viewToken:T,view:I||"webcam",v2Translated:!0}},gPD=function(E,B,I,T){return{action:B,
docs:E.map(UDl),viewToken:T,view:kbV(I||"upload",E),extraUserInputs:jIh(E),v2Translated:!0}},kbV=function(E,B){return B.some(function(I){var T;
return((T=_.DZ(I,V_,30))==null?void 0:_.na(T,3))===9})?E+"/gmailphotos":E},NUN=function(E,B,I,T){var e=E.map(function(c){var Y={id:c.getId().getId(),
serviceId:"picasa",mimeType:_.O8(c,7),name:c.getName(),type:Gj(c),lastEditedUtc:_.u5V(_.DZ(c,_.Xz,12)).getTime(),url:c.getUrl(),sizeBytes:Number(UOD(c)),description:_.O8(c,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Oz(FT(c)),mediaKey:c.getId().getId(),parentId:_.O8(c,4)},v,y=(v=_.DZ(c,OXl,18))==null?void 0:_.DZ(v,G2X,3);y&&(Y.latitude=GO(y,1),Y.longitude=GO(y,2));var Z;c=(Z=_.DZ(c,OXl,18))==null?void 0:xU(Z,6);Z=c!=null?ui(c):void 0;Z&&(Y.version=
Z);return Y});
return{action:B,docs:e,viewToken:T,view:I||"photos",extraUserInputs:jIh(E),v2Translated:!0}},HcV=function(E,B,I,T){E=E.map(function(e){return{id:e.getId().getId(),
serviceId:"et",name:FT(e)[0].getUrl().split("/").pop(),description:_.O8(e,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Oz(FT(e),"etjpg")}});
return{action:B,docs:E,viewToken:T,view:I||"et",v2Translated:!0}},bcR=function(E,B,I,T){E=E.map(function(e){var c=e.getId().getId(),Y=T["2"];
return{id:c,serviceId:Y.type!=="gmail_themes"&&Y.parent==="6226252643674576769"?"picasa":"static_themes",name:e.getName(),mimeType:_.O8(e,7),type:Gj(e),description:_.O8(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:e.getUrl(),thumbnails:Oz(FT(e))}});
return{action:B,docs:E,viewToken:T,view:I||"photos",v2Translated:!0}},SrR=function(E,B){E=E.map(function(I){var T=_.DZ(I,xVz,27);
T=_.ea(T,1,_.St,_.Ux())[0];return{id:I.getId().getId(),serviceId:"contacts",mimeType:_.O8(I,7),name:I.getName(),description:_.O8(I,3),url:"mailto:"+T,thumbnail:[{url:_.O8(I,11)}],email:T}});
return{action:B,docs:E,view:"contacts",v2Translated:!0}},MID=function(E){if(!E)return{};
var B=_.O8(E,3);B=B&&JSON.parse(B)||{};return{0:_.O8(E,1),1:_.O8(E,2),2:B}},Oz=function(E,B){B=B===void 0?"":B;
if(!E.length)return null;B=="etjpg"&&(E=E.filter(function(I){return I.getUrl().includes("w1200-h300")}));
return E.map(function(I){return{url:I.getUrl(),height:I.getHeight(),width:I.getWidth(),type:B}})},jIh=function(E){return{isAttachment:E.some(function(B){return _.La(B,31)})}},UDl=function(E){var B,I={id:(B=E.getId())==null?void 0:B.getId(),
serviceId:tIV(E),mimeType:_.O8(E,7),name:E.getName(),type:Gj(E),sizeBytes:Number(UOD(E)),description:_.O8(E,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Oz(FT(E)),isNew:!0};if(B=_.DZ(E,V_,30)){I.dataUrl=_.O8(B,1)||null;a:{var T=_.DZ(E,V_,30);switch(_.na(T,3)){case 9:T=_.Nd(T,NFN,2,qy);T={remoteRefs:T&&_.O8(T,1)};break a;case 10:case 15:T=_.Nd(T,HXl,4,qy);var e=FT(E);T={photo_id:T&&_.O8(T,1),media_key:E.getId().getId(),media_type:_.na(E,6)===1?1:2,image_url:e&&
e[0].getUrl(),width:e&&String(e[0].getWidth()),height:e&&String(e[0].getHeight())};break a}T=null}I.uploadMetadata=T;I.uploadId=_.O8(B,9)||null;I.uploadState=ft6(B)||null}(T=B&&_.Nd(B,HXl,4,qy))&&(I.id=_.O8(T,1));(T=B&&_.Nd(B,gyX,5,qy))&&(I.contentId=_.O8(T,1));(T=B&&_.Nd(B,nyZ,7,qy))&&(I.contentId=_.O8(T,1));(T=B&&_.Nd(B,MaZ,6,qy))&&(I.contentId=_.O8(T,1));(B==null?void 0:_.na(B,3))===1&&(I.mediaKey=E.getId().getId());return I},tIV=function(E){var B;
switch(((B=_.DZ(E,V_,30))==null?void 0:_.na(B,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},Gj=function(E){switch(_.na(E,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 _.O8(E,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},ft6=function(E){switch(E==null?void 0:_.na(E,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 DD6,VIh,qrZ,F4U;_.n0=function(E,B){var I=B||{};B=I.document||document;var T=_.Ef(E).toString(),e=(new dw(B)).createElement("SCRIPT"),c={script_:e,timeout_:void 0},Y=new jl(VIh,c),v=null,y=I.timeout!=null?I.timeout:5E3;y>0&&(v=window.setTimeout(function(){qrZ(e,!0);Y.errback(new F4U(1,"Timeout reached for loading script "+T))},y),c.timeout_=v);
e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(qrZ(e,I.cleanupWhenDone||!1,v),Y.callback(null))};
e.onerror=function(){qrZ(e,!0,v);Y.errback(new F4U(0,"Error while loading script "+T))};
c=I.attributes||{};_.a_.extend(c,{type:"text/javascript",charset:"UTF-8"});CLt(e,c);_.nr(e,E);DD6(B).appendChild(e);return Y};
DD6=function(E){var B=px("HEAD",E);return B&&B.length!==0?B[0]:E.documentElement};
VIh=function(){if(this&&this.script_){var E=this.script_;E&&E.tagName=="SCRIPT"&&qrZ(E,!0,this.timeout_)}};
qrZ=function(E,B,I){I!=null&&_.$i.clearTimeout(I);E.onload=function(){};
E.onerror=function(){};
E.onreadystatechange=function(){};
B&&window.setTimeout(function(){_.ii(E)},0)};
F4U=function(E,B){var I="Jsloader error (code #"+E+")";B&&(I+=": "+B);_.Ec.call(this,I);this.code=E};
_.$U(F4U,_.Ec);var K4z=_.km(["https://apis.google.com/js/api.js"]),RpN=_.jR(K4z),IZU=function(E,B){var I=!1,T=EaV(E,B).then(function(c){I=!0;return c}),e=_.nB$(5E3).then(function(){return I?EaV(E,B):B0h(B).then(function(c){return $_Z(c,E)})});
return PAZ([T,e])},EaV=function(E,B){return T0N(B).then(function(I){return $_Z(I,E)})},$_Z=function(E,B){var I=_.lc(B,"gapi.")?B.slice(5):B;
return E[I]?_.i1(E[I]):new _.cC(function(T,e){var c=uG(function(){e(Error("bb"))},3E4);
E.load(B,{callback:function(){_.$i.clearTimeout(c);T(E[I])},
onerror:function(Y){_.$i.clearTimeout(c);e(Y)}})})},T0N=function(E){return E.gapi&&E.gapi.load?_.i1(E.gapi):B0h(E)},B0h=function(E){return _.n0(RpN,{document:E.document}).then(function(){return E.gapi})},e7U=function(){};
e7U.prototype.load=function(E,B){B=B===void 0?window:B;var I=Date.now();return IZU(E,B).then(function(T){var e=Date.now();return{library:T,loadStartMs:I,loadEndMs:e}},function(T){throw T instanceof Error?T:Error(String(T));
})};var at4=function(){_.Cx.call(this);this.gapiLoader_=new e7U;this.origin_=null;this.gapiPickerIframeResolver_=_.gA();this.gapiIframesResolver_=_.gA();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.L(at4,_.Cx);var lZz=function(E,B){var I=_.WA("gapi.iframes",B);return I?(E=Date.now(),_.i1({library:I,loadStartMs:E,loadEndMs:E})):E.gapiLoader_.load("gapi.iframes",B)},cgu=function(E,B,I,T,e,c){var Y=!1;
Y=Y===void 0?!1:Y;lZz(E,wM(B.ownerDocument)).then(function(v){var y=v.library;E.gapiIframesResolver_.resolve(y);v=E.gapiPickerIframeResolver_;var Z=v.resolve,P=Y;P=P===void 0?!1:P;var z={};z["host-message-handler"]=I;E.hostMessageHandlerInternal_=z;var m=_.Se(T);m=_.Se(m);m=_.KS(_.DF(_.F6(new _.tQ,m.scheme_),m.JSC$7917_domain_),m.JSC$7917_port_).toString();E.origin_=m;m=(new xSN).setUrl(T);m.JSC$7932_obj_.where=B;m.JSC$7932_obj_.allowPost=P;m.JSC$7932_obj_.messageHandlers=z;P=_.WA("makeWhiteListIframesFilter",
y)([E.origin_]);m.JSC$7932_obj_.messageHandlersFilter=P;e!=null&&m.setId(e);c!=null&&(m.JSC$7932_obj_.rpctoken=c);P=L$l(m);P.JSC$7929_obj_.style={display:"block","min-width":"100%",width:"1px"};P.JSC$7929_obj_.height="100%";L$l(m).value().allow="camera 'src' "+E.origin_;y=y.getContext().openChild(m.value());Z.call(v,y)},function(v){E.gapiIframesResolver_.reject(v);
E.gapiPickerIframeResolver_.reject(v)});
return E.gapiPickerIframeResolver_.promise},iFN=function(E,B){return _.hP([E.gapiIframesResolver_.promise,
E.gapiPickerIframeResolver_.promise]).then(function(I){var T=_.p(I);I=T.next().value;return(T=T.next().value)?T.send("picker-message-handler",B,void 0,_.WA("makeWhiteListIframesFilter",I)([E.origin_])):_.rG(Error("cb"))})};
at4.prototype.disposeInternal=function(){p7l(this);_.Cx.prototype.disposeInternal.call(this)};
var p7l=function(E){E.gapiPickerIframeResolver_.promise.then(function(B){B&&(B.unregister("host-message-handler"),delete E.hostMessageHandlerInternal_["host-message-handler"])})};var YFN=function(){this.JSC$8019_nextId=0};var val=function(E,B){switch(E.action){case "select-contacts":E=aZD(E.contacts);break;case "visibility":E=E.visible;var I=new Rz;E=_.Si(I,1,7).setVisible(E);I={};I["iframe-command"]=E.serialize();E=I;break;default:E=null}return E?iFN(B,E):_.i1()},aZD=function(E){if(!E||E.length==0)return null;
var B=new Rz;_.Si(B,1,11);var I=new YFN;E.forEach(function(T){if(T.email){var e=new hs;e=_.Fz(e,2,T.name?T.name:T.email);var c=new xVz;T=_.cH6(c,1,_.NI,T.email,_.St);T=_.fX(e,27,T);e=T.setId;c=(new Us).setId(":"+(I.JSC$8019_nextId++).toString(36));c=_.Si(c,2,12);T=e.call(T,c)}else T=null;T&&aH(B,7,hs,T)});
E={};E["iframe-command"]=B.serialize();return E};_.ygZ=function(){if(IHD){var E=/Windows NT ([0-9.]+)/;return(E=E.exec(_.C4()))?E[1]:"0"}return _.$OG?(E=/1[0|1][_.][0-9_.]+/,(E=E.exec(_.C4()))?E[0].replace(/_/g,"."):"10"):EeD?(E=/Android\s+([^\);]+)(\)|;)/,(E=E.exec(_.C4()))?E[1]:""):eRG||lHF||cp4?(E=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(E=E.exec(_.C4()))?E[1].replace(/_/g,"."):""):""}();var M6;M6=function(E){return(E=E.exec(_.C4()))?E[1]:""};
_.CKN=function(){if(_.YU)return M6(/Firefox\/([0-9.]+)/);if(_.cf||jg||RIt)return _.Cad;if(_.ar){if(_.HG()||_.yD4()){var E=M6(/CriOS\/([0-9.]+)/);if(E)return E}return M6(/Chrome\/([0-9.]+)/)}if(_.M_&&!_.HG())return M6(/Version\/([0-9.]+)/);if(wUt||ZCc){if(E=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.C4()))return E[1]+"."+E[2]}else if(zRi)return(E=M6(/Android\s+([0-9.]+)/))?E:M6(/Version\/([0-9.]+)/);return""}();var w7r=function(){};
_.E8(w7r);w7r.prototype.nextId_=0;_.GN=function(E){return":"+(E.nextId_++).toString(36)};var Hd=function(E){_.ms.call(this);this.JSC$8027_dom_=E||BM();this.JSC$8027_id_=null;this.inDocument_=!1;this.JSC$8027_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.$U(Hd,_.ms);Hd.prototype.idGenerator_=w7r.getInstance();Hd.prototype.getId=function(){return this.JSC$8027_id_||(this.JSC$8027_id_=_.GN(this.idGenerator_))};
Hd.prototype.setId=function(E){this.parent_&&this.parent_.childIndex_&&(_.a_.remove(this.parent_.childIndex_,this.JSC$8027_id_),_.a_.add(this.parent_.childIndex_,E,this));this.JSC$8027_id_=E};
Hd.prototype.getElement=function(){return this.JSC$8027_element_};
var N6=function(E){E.googUiComponentHandler_||(E.googUiComponentHandler_=new _.DA(E));return E.googUiComponentHandler_},ZFV=function(E,B){if(E==B)throw Error("db");
var I;if(I=B&&E.parent_&&E.JSC$8027_id_){I=E.parent_;var T=E.JSC$8027_id_;I=I.childIndex_&&T?_.a_.get(I.childIndex_,T)||null:null}if(I&&E.parent_!=B)throw Error("db");E.parent_=B;Hd.superClass_.setParentEventTarget.call(E,B)};
Hd.prototype.setParentEventTarget=function(E){if(this.parent_&&this.parent_!=E)throw Error("eb");Hd.superClass_.setParentEventTarget.call(this,E)};
Hd.prototype.JSC$8029_createDom=function(){this.JSC$8027_element_=this.JSC$8027_dom_.createElement("DIV")};
Hd.prototype.render=function(E){PKl(this,E)};
var PKl=function(E,B,I){if(E.inDocument_)throw Error("fb");E.JSC$8027_element_||E.JSC$8029_createDom();B?B.insertBefore(E.JSC$8027_element_,I||null):E.JSC$8027_dom_.JSC$7214_document_.body.appendChild(E.JSC$8027_element_);E.parent_&&!E.parent_.inDocument_||E.enterDocument()};
_.l=Hd.prototype;_.l.decorate=function(E){if(this.inDocument_)throw Error("fb");if(E&&this.canDecorate(E)){this.wasDecorated_=!0;var B=_.Zs(E);this.JSC$8027_dom_&&this.JSC$8027_dom_.JSC$7214_document_==B||(this.JSC$8027_dom_=BM(E));this.decorateInternal(E);this.enterDocument()}else throw Error("gb");};
_.l.canDecorate=function(){return!0};
_.l.decorateInternal=function(E){this.JSC$8027_element_=E};
_.l.enterDocument=function(){this.inDocument_=!0;z7N(this,function(E){!E.inDocument_&&E.getElement()&&E.enterDocument()})};
_.l.exitDocument=function(){z7N(this,function(E){E.inDocument_&&E.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.l.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);z7N(this,function(E){E.dispose()});
!this.wasDecorated_&&this.JSC$8027_element_&&_.ii(this.JSC$8027_element_);this.parent_=this.model_=this.JSC$8027_element_=this.childIndex_=this.children_=null;Hd.superClass_.disposeInternal.call(this)};
_.l.getModel=function(){return this.model_};
_.l.addChild=function(E,B){var I=this.children_?this.children_.length:0;if(E.inDocument_&&(B||!this.inDocument_))throw Error("fb");if(I<0||I>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);E.parent_==this?(_.a_.set(this.childIndex_,E.getId(),E),_.f4(this.children_,E)):_.a_.add(this.childIndex_,E.getId(),E);ZFV(E,this);_.QBJ(this.children_,I,0,E);E.inDocument_&&this.inDocument_&&E.parent_==this?(B=this.getContentElement(),
(B.childNodes[I]||null)!=E.getElement()&&(E.getElement().parentElement==B&&B.removeChild(E.getElement()),I=B.childNodes[I]||null,B.insertBefore(E.getElement(),I))):B?(this.JSC$8027_element_||this.JSC$8029_createDom(),I=this.children_?this.children_[I+1]||null:null,PKl(E,this.getContentElement(),I?I.JSC$8027_element_:null)):this.inDocument_&&!E.inDocument_&&E.JSC$8027_element_&&E.JSC$8027_element_.parentNode&&E.JSC$8027_element_.parentNode.nodeType==1&&E.enterDocument()};
_.l.getContentElement=function(){return this.JSC$8027_element_};
var z7N=function(E,B){E.children_&&E.children_.forEach(B,void 0)};
Hd.prototype.removeChild=function(E,B){if(E){var I=typeof E==="string"?E:E.getId();E=this.childIndex_&&I?_.a_.get(this.childIndex_,I)||null:null;I&&E&&(_.a_.remove(this.childIndex_,I),_.f4(this.children_,E),B&&(E.exitDocument(),E.JSC$8027_element_&&_.ii(E.JSC$8027_element_)),ZFV(E,null))}if(!E)throw Error("ib");return E};_.$U(ItG,Lx);_.$U(TUd,Lx);var m_z;var QkU=function(E,B){B?E.setAttribute("role",B):E.removeAttribute("role")},gC=function(E,B,I){Array.isArray(I)&&(I=I.join(" "));
var T="aria-"+B;I===""||I==void 0?(m_z||(I={},m_z=(I.atomic=!1,I.autocomplete="none",I.dropeffect="none",I.haspopup=!1,I.live="off",I.multiline=!1,I.multiselectable=!1,I.orientation="vertical",I.readonly=!1,I.relevant="additions text",I.required=!1,I.sort="none",I.busy=!1,I.disabled=!1,I.hidden=!1,I.invalid="false",I)),I=m_z,B in I?E.setAttribute(T,I[B]):E.removeAttribute(T)):E.setAttribute(T,I)};var d_Z;_.SM=function(E,B,I){_.ms.call(this);this.target=E;this.handle=B||E;this.limits=I||new Ny(NaN,NaN,NaN,NaN);this.JSC$8032_document_=_.Zs(E);this.JSC$8032_eventHandler_=new _.DA(this);_.Bp(this,this.JSC$8032_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;_.vV(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=d_Z};
_.$U(_.SM,_.ms);d_Z=_.$i.document&&_.$i.document.documentElement&&!!_.$i.document.documentElement.setCapture&&!!_.$i.document.releaseCapture;_.h7l=function(E,B){E.hysteresisDistanceSquared_=Math.pow(B,2)};
_.l=_.SM.prototype;_.l.setEnabled=function(E){this.enabled_=E};
_.l.disposeInternal=function(){_.SM.superClass_.disposeInternal.call(this);_.zw(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8032_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8032_document_.releaseCapture();this.handle=this.target=null};
_.l.startDrag=function(E){var B=E.type=="mousedown";if(!this.enabled_||this.dragging_||B&&(E.event_.button!=0||_.$OG&&E.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new JG("start",this,E.clientX,E.clientY,E)))this.dragging_=!0,B&&E.preventDefault();else return;else B&&E.preventDefault();B=this.JSC$8032_document_;var I=B.documentElement,T=!this.useSetCapture_;this.JSC$8032_eventHandler_.listen(B,["touchmove","mousemove"],this.handleMove_,
{capture:T,passive:!1});this.JSC$8032_eventHandler_.listen(B,["touchend","mouseup"],this.endDrag,T);this.useSetCapture_?(I.setCapture(!1),this.JSC$8032_eventHandler_.listen(I,"losecapture",this.endDrag)):this.JSC$8032_eventHandler_.listen(wM(B),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8032_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,T);this.clientX=this.startX=E.clientX;this.clientY=this.startY=E.clientY;this.screenX=E.screenX;this.screenY=E.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Ex(BM(this.JSC$8032_document_))}};
_.l.endDrag=function(E,B){this.JSC$8032_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8032_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new JG("end",this,E.clientX,E.clientY,E,skZ(this,this.deltaX),uQu(this,this.deltaY),B||E.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.l.handleMove_=function(E){if(this.enabled_){var B=E.clientX-this.clientX,I=E.clientY-this.clientY;this.clientX=E.clientX;this.clientY=E.clientY;this.screenX=E.screenX;this.screenY=E.screenY;if(!this.dragging_){var T=this.startX-this.clientX,e=this.startY-this.clientY;if(T*T+e*e>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new JG("start",this,E.clientX,E.clientY,E)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(E);return}}I=Lzt(this,B,I);B=I.x;I=I.y;this.dragging_&&this.dispatchEvent(new JG("beforedrag",
this,E.clientX,E.clientY,E,B,I))&&(x_$(this,E,B,I),E.preventDefault())}};
var Lzt=function(E,B,I){var T=Ex(BM(E.JSC$8032_document_));B+=T.x-E.pageScroll.x;I+=T.y-E.pageScroll.y;E.pageScroll=T;E.deltaX+=B;E.deltaY+=I;return new _.Cb(skZ(E,E.deltaX),uQu(E,E.deltaY))};
_.SM.prototype.onScroll_=function(E){var B=Lzt(this,0,0);E.clientX=this.clientX;E.clientY=this.clientY;x_$(this,E,B.x,B.y)};
var x_$=function(E,B,I,T){E.target.style.left=I+"px";E.target.style.top=T+"px";E.dispatchEvent(new JG("drag",E,B.clientX,B.clientY,B,I,T))},skZ=function(E,B){var I=E.limits;
E=isNaN(I.left)?null:I.left;I=isNaN(I.width)?0:I.width;return Math.min(E!=null?E+I:Infinity,Math.max(E!=null?E:-Infinity,B))},uQu=function(E,B){var I=E.limits;
E=isNaN(I.top)?null:I.top;I=isNaN(I.height)?0:I.height;return Math.min(E!=null?E+I:Infinity,Math.max(E!=null?E:-Infinity,B))};
_.SM.prototype.isDragging=function(){return this.dragging_};
var JG=function(E,B,I,T,e,c,Y){_.CS.call(this,E);this.clientX=I;this.clientY=T;this.browserEvent=e;this.left=c!==void 0?c:B.deltaX;this.top=Y!==void 0?Y:B.deltaY};
_.$U(JG,_.CS);var Wd=function(E){this.JSC$8039_map_=new Map;var B=arguments.length;if(B>1){if(B%2)throw Error("oa");for(var I=0;I<B;I+=2)this.set(arguments[I],arguments[I+1])}else E&&this.addAll(E)};
_.l=Wd.prototype;_.l.getCount=function(){return this.JSC$8039_map_.size};
_.l.getValues=function(){return Array.from(this.JSC$8039_map_.values())};
_.l.getKeys=function(){return Array.from(this.JSC$8039_map_.keys())};
_.l.containsKey=function(E){return this.JSC$8039_map_.has(E)};
_.l.containsValue=function(E){return this.getValues().some(function(B){return B==E})};
_.l.equals=function(E,B){var I=this;B=B===void 0?function(T,e){return T===e}:B;
return this===E?!0:this.JSC$8039_map_.size!=E.getCount()?!1:this.getKeys().every(function(T){return B(I.JSC$8039_map_.get(T),E.get(T))})};
_.l.isEmpty=function(){return this.JSC$8039_map_.size==0};
_.l.clear=function(){this.JSC$8039_map_.clear()};
_.l.remove=function(E){return this.JSC$8039_map_.delete(E)};
_.l.get=function(E,B){return this.JSC$8039_map_.has(E)?this.JSC$8039_map_.get(E):B};
_.l.set=function(E,B){this.JSC$8039_map_.set(E,B);return this};
_.l.addAll=function(E){if(E instanceof Wd){E=_.p(E.JSC$8039_map_);for(var B=E.next();!B.done;B=E.next()){var I=_.p(B.value);B=I.next().value;I=I.next().value;this.JSC$8039_map_.set(B,I)}}else if(E)for(E=_.p(Object.entries(E)),B=E.next();!B.done;B=E.next())I=_.p(B.value),B=I.next().value,I=I.next().value,this.JSC$8039_map_.set(B,I)};
_.l.forEach=function(E,B){var I=this;B=B===void 0?this:B;this.JSC$8039_map_.forEach(function(T,e){return E.call(B,T,e,I)})};
_.l.clone=function(){return new Wd(this)};(function(){for(var E=["ms","moz","webkit","o"],B,I=0;B=E[I]&&!_.$i.requestAnimationFrame;++I)_.$i.requestAnimationFrame=_.$i[B+"RequestAnimationFrame"],_.$i.cancelAnimationFrame=_.$i[B+"CancelAnimationFrame"]||_.$i[B+"CancelRequestAnimationFrame"];if(!_.$i.requestAnimationFrame){var T=0;_.$i.requestAnimationFrame=function(e){var c=(new Date).getTime(),Y=Math.max(0,16-(c-T));T=c+Y;return _.$i.setTimeout(function(){e(c+Y)},Y)};
_.$i.cancelAnimationFrame||(_.$i.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var GR$=[[],[]],OF$=0,nah=!1,MgZ=0,N0R=function(E,B){var I=MgZ++,T={measureTask:{id:I,fn:E.measure,context:B},mutateTask:{id:I,fn:E.mutate,context:B},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(T.args||(T.args=[]),T.args.length=0,T.args.push.apply(T.args,arguments),T.args.push(T.state)):T.args&&T.args.length!=0?(T.args[0]=T.state,T.args.length=1):T.args=[T.state];T.isScheduled||(T.isScheduled=!0,GR$[OF$].push(T));nah||(nah=!0,window.requestAnimationFrame(HF6))}},HF6=
function(){nah=!1;
var E=GR$[OF$],B=E.length;OF$=(OF$+1)%2;for(var I,T=0;T<B;++T){I=E[T];var e=I.measureTask;I.isScheduled=!1;e.fn&&e.fn.apply(e.context,I.args)}for(T=0;T<B;++T)I=E[T],e=I.mutateTask,I.isScheduled=!1,e.fn&&e.fn.apply(e.context,I.args),I.state={};E.length=0};var gal=_.km(["about:blank"]),SFX=_.km(["javascript:undefined"]),JgZ=_.jR(gal);_.Ef(JgZ);var WzU=_.jR(SFX);_.Ef(WzU);var X1=function(E){_.ms.call(this);this.JSC$8045_element_=E;this.listenKeyIn_=_.vV(this.JSC$8045_element_,"focus",this,!0);this.listenKeyOut_=_.vV(this.JSC$8045_element_,"blur",this,!0)};
_.$U(X1,_.ms);X1.prototype.handleEvent=function(E){var B=new _.wI(E.event_);B.type=E.type=="focusin"||E.type=="focus"?"focusin":"focusout";this.dispatchEvent(B)};
X1.prototype.disposeInternal=function(){X1.superClass_.disposeInternal.call(this);p8(this.listenKeyIn_);p8(this.listenKeyOut_);delete this.JSC$8045_element_};var X7R=function(E,B){this.JSC$8048_element_=E;this.JSC$8048_dom_=B};var rC=function(E,B){Hd.call(this,B);this.useIframeMask_=!!E;this.lastFocus_=null;this.resizeBackgroundTask_=N0R({mutate:this.resizeBackground_},this);N0R({mutate:this.updateModalAndBackground_},this)};
_.$U(rC,Hd);_.l=rC.prototype;_.l.focusHandler_=null;_.l.visible_=!1;_.l.bgEl_=null;_.l.bgIframeEl_=null;_.l.tabCatcherElement_=null;_.l.backwardTabWrapInProgress_=!1;_.l.getCssClass=function(){return"goog-modalpopup"};
_.l.getBackgroundElement=function(){return this.bgEl_};
_.l.JSC$8029_createDom=function(){rC.superClass_.JSC$8029_createDom.call(this);var E=this.getElement(),B=_.Ir(this.getCssClass()).split(" ");o8(E,B);E.tabIndex=0;_.Xs(E,!1);rgN(this);bFh(this)};
var rgN=function(E){if(E.useIframeMask_&&!E.bgIframeEl_){var B=E.JSC$8027_dom_.JSC$7216_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.QC(B,JgZ);E.bgIframeEl_=B;E.bgIframeEl_.className=E.getCssClass()+"-bg";_.Xs(E.bgIframeEl_,!1);UI6(E.bgIframeEl_,0)}E.bgEl_||(E.bgEl_=E.JSC$8027_dom_.JSC$7216_createDom("DIV",E.getCssClass()+"-bg"),_.Xs(E.bgEl_,!1))},bFh=function(E){E.tabCatcherElement_||(E.tabCatcherElement_=E.JSC$8027_dom_.createElement("SPAN"),_.Xs(E.tabCatcherElement_,
!1),E.tabCatcherElement_.tabIndex=0,E.tabCatcherElement_.style.position="absolute")};
_.l=rC.prototype;_.l.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.l.canDecorate=function(E){return!!E&&E.tagName=="DIV"};
_.l.decorateInternal=function(E){rC.superClass_.decorateInternal.call(this,E);E=_.Ir(this.getCssClass()).split(" ");o8(this.getElement(),E);rgN(this);bFh(this);this.getElement().tabIndex=0;_.Xs(this.getElement(),!1)};
_.l.enterDocument=function(){this.bgIframeEl_&&_.Os(this.bgIframeEl_,this.getElement());_.Os(this.bgEl_,this.getElement());rC.superClass_.enterDocument.call(this);_.n7(this.tabCatcherElement_,this.getElement());this.focusHandler_=new X1(this.JSC$8027_dom_.JSC$7214_document_);N6(this).listen(this.focusHandler_,"focusin",this.onFocus);oaV(this,!1)};
_.l.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.bl(this.focusHandler_);rC.superClass_.exitDocument.call(this);_.ii(this.bgIframeEl_);_.ii(this.bgEl_);_.ii(this.tabCatcherElement_)};
_.l.setVisible=function(E){if(E!=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_&&oaV(this,E),E){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8027_dom_.JSC$7214_document_.activeElement}catch(e){}this.updateModalAndBackground_();N6(this).listen(this.JSC$8027_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8027_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);Ag$(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)iu(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){N6(this).unlisten(this.JSC$8027_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8027_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)iu(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var B=this.JSC$8027_dom_,I=B.JSC$7214_document_.body,T=B.JSC$7214_document_.activeElement||I;if(!this.lastFocus_||this.lastFocus_==I){this.lastFocus_=null;break a}(T==I||B.contains(this.getElement(),T))&&this.lastFocus_.focus()}catch(e){}this.lastFocus_=
null}}};
var oaV=function(E,B){E.modalAriaVisibilityHelper_||(E.modalAriaVisibilityHelper_=new X7R(E.JSC$8027_element_,E.JSC$8027_dom_));E=E.modalAriaVisibilityHelper_;if(B){E.hiddenElements_||(E.hiddenElements_=[]);B=E.JSC$8048_dom_.getChildren(E.JSC$8048_dom_.JSC$7214_document_.body);for(var I=0;I<B.length;I++){var T=B[I],e;if(e=T!=E.JSC$8048_element_)e=T.getAttribute("aria-hidden"),e=!(e==null||e==void 0?0:String(e));e&&(gC(T,"hidden",!0),E.hiddenElements_.push(T))}}else if(E.hiddenElements_){for(B=0;B<
E.hiddenElements_.length;B++)E.hiddenElements_[B].removeAttribute("aria-hidden");E.hiddenElements_=null}};
rC.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var Ag$=function(E,B){E.bgIframeEl_&&_.Xs(E.bgIframeEl_,B);E.bgEl_&&_.Xs(E.bgEl_,B);_.Xs(E.getElement(),B);_.Xs(E.tabCatcherElement_,B)};
_.l=rC.prototype;_.l.onShow=function(){this.dispatchEvent("show")};
_.l.onHide=function(){Ag$(this,!1);this.dispatchEvent("hide")};
_.l.isVisible=function(){return this.visible_};
_.l.focus=function(){this.focusElement_()};
_.l.resizeBackground_=function(){this.bgIframeEl_&&_.Xs(this.bgIframeEl_,!1);this.bgEl_&&_.Xs(this.bgEl_,!1);var E=this.JSC$8027_dom_.JSC$7214_document_;var B=_.Rd(wM(this.JSC$8027_dom_.JSC$7214_document_)||window);var I=Math.max(B.width,Math.max(E.body.scrollWidth,E.documentElement.scrollWidth));E=Math.max(B.height,Math.max(E.body.scrollHeight,E.documentElement.scrollHeight));this.bgIframeEl_&&(_.Xs(this.bgIframeEl_,!0),_.bTZ(this.bgIframeEl_,I,E));this.bgEl_&&(_.Xs(this.bgEl_,!0),_.bTZ(this.bgEl_,
I,E))};
_.l.reposition=function(){var E;if(_.rHz(this.getElement())=="fixed")var B=E=0;else B=Ex(this.JSC$8027_dom_),E=B.x,B=B.y;var I=AHR(this.getElement());var T=_.Rd(wM(this.JSC$8027_dom_.JSC$7214_document_)||window);E=Math.max(E+T.width/2-I.width/2,0);B=Math.max(B+T.height/2-I.height/2,0);Jw(this.getElement(),E,B);Jw(this.tabCatcherElement_,E,B)};
_.l.onFocus=function(E){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():E.target==this.tabCatcherElement_&&uG(this.focusElement_,0,this)};
_.l.focusElement_=function(){try{this.getElement().focus()}catch(E){}};
_.l.disposeInternal=function(){_.bl(this.popupShowTransition_);this.popupShowTransition_=null;_.bl(this.popupHideTransition_);this.popupHideTransition_=null;_.bl(this.bgShowTransition_);this.bgShowTransition_=null;_.bl(this.bgHideTransition_);this.bgHideTransition_=null;rC.superClass_.disposeInternal.call(this)};var x9=function(E,B,I){rC.call(this,B,I);this.JSC$8058_class_=E||"modal-dialog";this.buttons_=(new bI).addButton(jku,!0).addButton(U_D,!1,!0)};
_.$U(x9,rC);_.l=x9.prototype;_.l.escapeToCancel_=!0;_.l.hasTitleCloseButton_=!0;_.l.modal_=!0;_.l.draggable_=!0;_.l.backgroundElementOpacity_=.5;_.l.title_="";_.l.JSC$8060_dragger_=null;_.l.JSC$8060_disposeOnHide_=!1;_.l.titleEl_=null;_.l.titleTextEl_=null;_.l.titleTextId_=null;_.l.titleCloseEl_=null;_.l.contentEl_=null;_.l.buttonEl_=null;_.l.getCssClass=function(){return this.JSC$8058_class_};
_.l.setTitle=function(E){this.title_=E;this.titleTextEl_&&_.HT(this.titleTextEl_,E)};
_.l.getTitle=function(){return this.title_};
_.l.getContent=function(){return""};
_.l.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var kRR=function(E){E.getElement()||E.render();return E.getElement()};
x9.prototype.getBackgroundElement=function(){this.getElement()||this.render();return x9.superClass_.getBackgroundElement.call(this)};
var tgu=function(E,B){E.backgroundElementOpacity_=B;E.getElement()&&(B=E.getBackgroundElement())&&UI6(B,E.backgroundElementOpacity_)};
x9.prototype.setDraggable=function(E){this.draggable_=E;fZU(this,E&&this.inDocument_)};
x9.prototype.JSC$8060_handleDrag=function(){};
var fZU=function(E,B){var I=_.Ir(E.JSC$8058_class_+"-title-draggable").split(" ");E.getElement()&&(B?o8(E.titleEl_,I):saz(E.titleEl_,I));B&&!E.JSC$8060_dragger_?(B=new _.SM(E.getElement(),E.titleEl_),E.JSC$8060_dragger_=B,o8(E.titleEl_,I),_.vV(E.JSC$8060_dragger_,"start",E.setDraggerLimits_,!1,E),_.vV(E.JSC$8060_dragger_,"drag",E.JSC$8060_handleDrag,!1,E)):!B&&E.JSC$8060_dragger_&&(E.JSC$8060_dragger_.dispose(),E.JSC$8060_dragger_=null)};
_.l=x9.prototype;
_.l.JSC$8029_createDom=function(){x9.superClass_.JSC$8029_createDom.call(this);var E=this.getElement(),B=this.JSC$8027_dom_;this.titleTextId_=this.getId();var I=this.getId()+".contentEl";this.titleEl_=B.JSC$7216_createDom("DIV",this.JSC$8058_class_+"-title",this.titleTextEl_=B.JSC$7216_createDom("SPAN",{className:this.JSC$8058_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=B.JSC$7216_createDom("SPAN",this.JSC$8058_class_+"-title-close"));mIU(E,this.titleEl_,this.contentEl_=
B.JSC$7216_createDom("DIV",{className:this.JSC$8058_class_+"-content",id:I}),this.buttonEl_=B.JSC$7216_createDom("DIV",this.JSC$8058_class_+"-buttons"));QkU(this.titleTextEl_,"heading");QkU(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;gC(this.titleCloseEl_,"label","Close");QkU(E,"dialog");gC(E,"labelledby",this.titleTextId_||"");_.Xs(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(E=this.buttons_,E.JSC$8061_element_=this.buttonEl_,E.render());_.Xs(this.buttonEl_,!!this.buttons_);
tgu(this,this.backgroundElementOpacity_)};
_.l.decorateInternal=function(E){x9.superClass_.decorateInternal.call(this,E);E=this.getElement();var B=this.JSC$8058_class_+"-content";this.contentEl_=hw(document,null,B,E)[0];this.contentEl_||(this.contentEl_=this.JSC$8027_dom_.JSC$7216_createDom("DIV",B),E.appendChild(this.contentEl_));B=this.JSC$8058_class_+"-title";var I=this.JSC$8058_class_+"-title-text",T=this.JSC$8058_class_+"-title-close";(this.titleEl_=hw(document,null,B,E)[0])?(this.titleTextEl_=hw(document,null,I,this.titleEl_)[0],this.titleCloseEl_=
hw(document,null,T,this.titleEl_)[0]):(this.titleEl_=this.JSC$8027_dom_.JSC$7216_createDom("DIV",B),E.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=gIl(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.ut("SPAN",{className:I,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;gC(E,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8027_dom_.JSC$7216_createDom("SPAN",
T),this.titleEl_.appendChild(this.titleCloseEl_));_.Xs(this.titleCloseEl_,this.hasTitleCloseButton_);B=this.JSC$8058_class_+"-buttons";(this.buttonEl_=hw(document,null,B,E)[0])?(this.buttons_=new bI(this.JSC$8027_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8027_dom_.JSC$7216_createDom("DIV",B),E.appendChild(this.buttonEl_),this.buttons_&&(E=this.buttons_,E.JSC$8061_element_=this.buttonEl_,E.render()),_.Xs(this.buttonEl_,!!this.buttons_));tgu(this,this.backgroundElementOpacity_)};
_.l.enterDocument=function(){x9.superClass_.enterDocument.call(this);N6(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);N6(this).listen(this.buttonEl_,"click",this.onButtonClick_);fZU(this,this.draggable_);N6(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var E=this.getElement();QkU(E,"dialog");this.titleTextEl_.id!==""&&gC(E,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){E=this.JSC$8027_dom_;
var B=this.getBackgroundElement();E.removeNode(this.bgIframeEl_);E.removeNode(B)}this.isVisible()&&oaV(this,!1)}};
_.l.exitDocument=function(){this.isVisible()&&this.setVisible(!1);fZU(this,!1);x9.superClass_.exitDocument.call(this)};
_.l.setVisible=function(E){E!=this.isVisible()&&(this.inDocument_||this.render(),x9.superClass_.setVisible.call(this,E))};
_.l.onShow=function(){x9.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.l.onHide=function(){x9.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8060_disposeOnHide_&&this.dispose()};
_.l.setDraggerLimits_=function(){var E=this.JSC$8027_dom_.JSC$7214_document_,B=_.Rd(wM(E)||window),I=Math.max(E.body.scrollWidth,B.width);E=Math.max(E.body.scrollHeight,B.height);var T=AHR(this.getElement());_.rHz(this.getElement())=="fixed"?this.JSC$8060_dragger_.limits=new Ny(0,0,Math.max(0,B.width-T.width),Math.max(0,B.height-T.height)):this.JSC$8060_dragger_.limits=new Ny(0,0,I-T.width,E-T.height)};
_.l.onTitleCloseClick_=function(){Vgt(this)};
var Vgt=function(E){if(E.hasTitleCloseButton_){var B=E.buttons_,I=B&&B.cancelButton_;I?(B=B.get(I),E.dispatchEvent(new ow(I,B))&&E.setVisible(!1)):E.setVisible(!1)}},qFt=function(E){E.hasTitleCloseButton_=!1;
E.titleCloseEl_&&_.Xs(E.titleCloseEl_,E.hasTitleCloseButton_)};
x9.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;x9.superClass_.disposeInternal.call(this)};
x9.prototype.onButtonClick_=function(E){a:{for(E=E.target;E!=null&&E!=this.buttonEl_;){if(E.tagName=="BUTTON")break a;E=E.parentNode}E=null}if(E&&!E.disabled){E=E.name;var B=this.buttons_.get(E);this.dispatchEvent(new ow(E,B))&&this.setVisible(!1)}};
x9.prototype.onKey_=function(E){var B=!1,I=!1,T=this.buttons_,e=E.target;if(E.type=="keydown")if(this.escapeToCancel_&&E.keyCode==27){var c=T&&T.cancelButton_;e=e.tagName=="SELECT"&&!e.disabled;c&&!e?(I=!0,B=T.get(c),B=this.dispatchEvent(new ow(c,B))):e||(B=!0)}else{if(E.keyCode==9&&E.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(P){}uG(this.resetBackwardTabWrap_,0,this)}}else if(E.keyCode==13){if(e.tagName=="BUTTON"&&!e.disabled)c=e.name;
else if(e==this.titleCloseEl_)Vgt(this);else if(T){var Y=T.defaultButton_,v;if(v=Y)a:{v=px("BUTTON",T.JSC$8061_element_);for(var y,Z=0;y=v[Z];Z++)if(y.name==Y||y.id==Y){v=y;break a}v=null}e=(e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="A")&&!e.disabled;!v||v.disabled||e||(c=Y)}c&&T&&(I=!0,B=this.dispatchEvent(new ow(c,String(T.get(c)))))}else e!=this.titleCloseEl_||E.keyCode!=32&&E.key!=" "||Vgt(this);if(B||I)E.stopPropagation(),E.preventDefault();B&&this.setVisible(!1)};
var ow=function(E,B){this.type="dialogselect";this.key=E;this.caption=B};
_.$U(ow,_.CS);var bI=function(E){Wd.call(this);E||BM();this.cancelButton_=this.JSC$8061_element_=this.defaultButton_=null};
_.$U(bI,Wd);_.l=bI.prototype;_.l.clear=function(){Wd.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.l.set=function(E,B,I,T){Wd.prototype.set.call(this,E,B);I&&(this.defaultButton_=E);T&&(this.cancelButton_=E);return this};
_.l.addButton=function(E,B,I){return this.set(E.key,E.caption,B,I)};
_.l.render=function(){if(this.JSC$8061_element_){_.M7(this.JSC$8061_element_,wAG);var E=BM(this.JSC$8061_element_);this.forEach(function(B,I){B=E.JSC$7216_createDom("BUTTON",{name:I},B);I==this.defaultButton_&&(B.className="goog-buttonset-default");this.JSC$8061_element_.appendChild(B)},this)}};
_.l.decorate=function(E){if(E&&E.nodeType==1){this.JSC$8061_element_=E;E=px("BUTTON",this.JSC$8061_element_);for(var B,I,T,e=0;B=E[e];e++)if(I=B.name||B.id,T=gIl(B)||B.value,I){var c=e==0;this.set(I,T,c,B.name=="cancel");c&&_.WV(B,"goog-buttonset-default")}}};
_.l.getElement=function(){return this.JSC$8061_element_};
var jku={key:"ok",caption:"OK"},U_D={key:"cancel",caption:"Cancel"},Fzr={key:"yes",caption:"Yes"},D_Z={key:"no",caption:"No"},Kz$={key:"save",caption:"Save"},R7N={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new bI).addButton(jku,!0,!0),(new bI).addButton(jku,!0).addButton(U_D,!1,!0),(new bI).addButton(Fzr,!0).addButton(D_Z,!1,!0),(new bI).addButton(Fzr).addButton(D_Z,!0).addButton(U_D,!1,!0),(new bI).addButton(R7N).addButton(Kz$).addButton(U_D,!0,!0));_.$U(epG,x9);_.$U(ltf,GM);var Ev$=_.km(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),B7U=_.km(["//apis.google.com/js/rpc.js"]),CWD=_.jR(Ev$),yAi=_.jR(B7U),O7=null;var nx=function(E,B){_.ms.call(this);this.JSC$8070_element_=E;E=_.jn(this.JSC$8070_element_)?this.JSC$8070_element_:this.JSC$8070_element_?this.JSC$8070_element_.body:null;this.isRtl_=!!E&&_.k7r(E);this.listenKey_=_.vV(this.JSC$8070_element_,_.iq?"DOMMouseScroll":"mousewheel",this,B)};
_.$U(nx,_.ms);nx.prototype.handleEvent=function(E){var B=0,I=0,T=E.event_;T.type=="mousewheel"?(E=$3D(-T.wheelDelta),T.wheelDeltaX!==void 0?(B=$3D(-T.wheelDeltaX),I=$3D(-T.wheelDeltaY)):I=E):(E=T.detail,E>100?E=3:E<-100&&(E=-3),T.axis!==void 0&&T.axis===T.HORIZONTAL_AXIS?B=E:I=E);typeof this.maxDeltaX_==="number"&&(B=_.H3(B,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(I=_.H3(I,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(B=-B);B=new IDu(E,T,B,I);this.dispatchEvent(B)};
var $3D=function(E){return _.pa&&(_.$OG||TR4)&&E%40!=0?E:E/40};
nx.prototype.disposeInternal=function(){nx.superClass_.disposeInternal.call(this);p8(this.listenKey_);this.listenKey_=null};
var IDu=function(E,B,I,T){_.wI.call(this,B);this.type="mousewheel";this.detail=E;this.deltaX=I;this.deltaY=T};
_.$U(IDu,_.wI);_.eD=function(E){var B="instance_";if(E.instance_&&E.hasOwnProperty(B))return E.instance_;B=new E;return E.instance_=B};var vP6;var T7U=_.km(["https://about:blank"]),e_Z=_.km(['javascript:""']),lDD=_.km(["about:blank"]);_.$U(r1,epG);_.l=r1.prototype;_.l.JSC$8078_url_="";_.l.JSC$8078_iframe_=null;_.l.iframeLoaded_=!1;_.l.loadedFired_=!1;_.l.callback_=function(){};
_.l.enterDocument=function(){r1.superClass_.enterDocument.call(this);YrJ(this.getBackgroundElement(),N6(this))};
_.l.render=function(E){var B=this;r1.superClass_.render.call(this,E);this.useGapi_?lZz(this.iframeManager_,window).then(function(){return cIh(B)}).then(null,function(){B.callback_({action:"error"})}):ilz(this)};
var cIh=function(E){var B=E.JSC$8027_dom_.JSC$7216_createDom("div",["picker-dialog-content","picker-frame"]);_.Xs(B,!1);E.getContentElement().appendChild(B);return cgu(E.iframeManager_,B,function(I){var T=oyu(I["iframe-command"]);switch(T.getCommand()){case 1:I=E.callback_;T=_.DZ(T,K7,2);var e="";switch(T.getStatus()){case 2:e="cancel";break;case 1:e="picked";break;case 3:e="error"}var c=_.jC(T,hs,2,_.Ux(n0c));T=c.length===0?{action:e}:AAR(c,e,_.DZ(T,X9N,7));I.call(E,T);E.setVisible(!1);break;case 4:qFt(E);
E.callback_({action:"loaded"});break;case 7:case 8:I=E.callback_;a:{e=T.getCommand();c=_.DZ(T,K7,2);switch(e){case 7:e="uploadScheduled";break;case 8:e="uploadStateChange";break;default:T={};break a}T=_.jC(c,hs,2,_.Ux(n0c));if(T.length===0)T={action:e};else{var Y=_.DZ(c,X9N,7);c=Y&&_.O8(Y,1);Y=MID(Y);T=gPD(T,e,c,Y)}}I.call(E,T)}},E.JSC$8078_url_,E.targetId_,E.rpcToken_).then(function(I){E.JSC$8078_iframe_=I.getIframeEl();
pnD(E);_.Xs(E.JSC$8078_iframe_.parentElement,!0);_.WV(E.getElement(),"picker-dialog");Y4$(E);return I})},ilz=function(E){E.JSC$8078_iframe_=E.JSC$8027_dom_.JSC$7216_createDom("IFRAME",{id:E.targetId_,
name:E.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.QC(E.JSC$8078_iframe_,aDN(E));_.WV(E.getElement(),"picker-dialog");E.getContentElement().appendChild(E.JSC$8078_iframe_);N6(E).listen(E.JSC$8078_iframe_,"load",function(){return void pnD(E)});
E.JSC$8078_iframe_.src=E.JSC$8078_url_;Y4$(E)},yIr=function(E){vvz(E,(0,_.w1)(function(B){B.setAuthToken(this.targetId_,this.rpcToken_)},E))},Y4$=function(E){var B=_.JV(_.Se(E.JSC$8078_url_),"title");
B&&E.setTitle(B)},aDN=function(E){return _.Yci("Internet Explorer")>=7&&_.lc(E.JSC$8078_url_,"https")?_.jR(T7U):_.cf?_.jR(e_Z):_.jR(lDD)},pnD=function(E){yIr(E);
E.iframeLoaded_=!0;E.JSC$8078_iframe_.tabIndex=0;E.isVisible()&&E.focus()};
r1.prototype.handleKeydown_=function(E){E.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),E.stopPropagation(),E.preventDefault())};
var vvz=function(E,B){var I=E.JSC$8076_gadgetsDomHelper_;icJ(function(){B(I.getWindow().gadgets.rpc)},I)};
r1.prototype.setUrl=function(E){E=_.Wp(new _.tQ(E),"rpcService",this.targetId_);_.Wp(E,"rpctoken",this.rpcToken_);_.Bd(E,"rpctoken="+this.rpcToken_);_.F6(E,"https");this.JSC$8078_url_=E.toString();this.JSC$8078_iframe_&&(this.JSC$8078_iframe_.src=this.JSC$8078_url_)};
var Cy6=function(E,B){E.callback_=B;vvz(E,(0,_.w1)(function(I){I.register(this.targetId_,(0,_.w1)(this.handlePickerAction_,this))},E))};
r1.prototype.handlePickerAction_=function(E){var B=E.action;B=="loaded"&&(this.loadedFired_=!0,wnl(this,new TUd(this.isVisible())),Zlz(this),qFt(this),N6(this).unlisten(this.JSC$8027_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8078_iframe_.tabIndex=0);B!="picked"&&B!="cancel"||this.setVisible(!1);this.callback_(E)};
var Zlz=function(E){E.JSC$8078_appId_&&wnl(E,new ItG(E.JSC$8078_appId_,window.location.protocol+"//"+window.location.host))};
r1.prototype.setRelayUrl=function(E){vvz(this,(0,_.w1)(function(B){B.setRelayUrl(this.targetId_,E)},this))};
var wnl=function(E,B){E.useGapi_&&val(B,E.iframeManager_).then(null,function(){E.callback_({action:"error"})});
vvz(E,(0,_.w1)(function(I){I.call(this.targetId_,"picker",null,B)},E))};
r1.prototype.resizePicker_=function(){var E=wM(this.JSC$8027_dom_.JSC$7214_document_)||window;if(_.JV(_.Se(this.JSC$8078_url_),"ignoreLimits")=="true")E=new _.KK(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.JV(_.Se(this.JSC$8078_url_),"shadeDialog")=="true"){var B=kRR(this);B=ttZ(B);var I=_.Rd(E);E=I.width-80;I=I.height-40;B&&(E-=B.left?B.left:0,E-=B.right?B.right:0,I-=B.top?B.top:0,I-=B.bottom?B.bottom:0);E=new _.KK(E>0?E:0,I>0?I:0)}else(B=this.preferredDialogWidth_)?(B=Math.max(320,
Math.min(1051,B)),(I=this.preferredDialogHeight_)||(I=_.Rd(E).height*.85),I=Math.max(480,Math.min(650,I))):(B=_.Rd(E),I=B.width*.618,I=I<B.height?Math.round(Math.max(480,Math.min(650,I*.85))):Math.round(Math.max(480,Math.min(650,B.height*.85))),B=Math.round(I/.618)),E=_.Rd(E),B=Math.min(B,Math.max(E.width,320)),I=Math.min(I,Math.max(E.height,480)),E=new _.KK(B,I);_.bTZ(this.getContentElement(),E);this.reposition()};
r1.prototype.reposition=function(){if(_.JV(_.Se(this.JSC$8078_url_),"shadeDialog")=="true"){var E=AHR(this.getElement()),B=_.Rd(this.JSC$8027_dom_.getWindow());E=Math.floor(B.width/2-E.width/2);B=kRR(this);if(B=ttZ(B)){var I=B.left?B.left:0;I+=B.right?B.right:0;E=Math.floor(E-I/2)}E=E>0?E:0;B=Ex(this.JSC$8027_dom_).y;Jw(this.getElement(),E,B)}else r1.superClass_.reposition.call(this)};
r1.prototype.setVisible=function(E){if(E!=this.isVisible()&&this.autoSizeDialog_){var B=this.JSC$8027_dom_.getWindow();E?(this.resizePicker_(),N6(this).listen(B,"resize",this.resizePicker_),this.iframeLoaded_||N6(this).listen(B,"keydown",this.handleKeydown_)):(N6(this).unlisten(B,"resize",this.resizePicker_),this.iframeLoaded_||N6(this).unlisten(B,"keydown",this.handleKeydown_))}r1.superClass_.setVisible.call(this,E);wnl(this,new TUd(E))};
r1.prototype.focus=function(){r1.superClass_.focus.call(this);if(this.JSC$8078_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8078_iframe_.focus()}catch(E){}};var wE=function(E,B){B=B===void 0?r1:B;GM.call(this,E);this.pickerConstructor=B;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(E=window.location.origin)||(E=window.location.protocol+"//"+window.location.host);E&&this.urlParamMap_.set("origin",E);this.postProcessors_=[]};
_.L(wE,ltf);wE.prototype.JSC$8083_disposeOnHide_=!1;
wE.prototype.build=function(){this.JSC$7984_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7984_appId_);this.getRelayUrl()||this.setRelayUrl(_.R8(_.Bd(_.Ez(_.Se(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var E=new this.pickerConstructor(Py$(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);E.JSC$8060_disposeOnHide_=this.JSC$8083_disposeOnHide_;
E.JSC$8078_appId_=this.JSC$7984_appId_;E.loadedFired_&&Zlz(E);Cy6(E,this.callback_);return E};
var z_V=function(E){E.urlParamMap_.set("multiselectEnabled","true");return E};
wE.prototype.getHeight=function(){return this.dialogHeight_};
wE.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
wE.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
wE.prototype.getWidth=function(){return this.dialogWidth_};
var m3Z=function(E){E.JSC$8083_disposeOnHide_=void 0;return E};
wE.prototype.setRelayUrl=function(E){this.urlParamMap_.set("parent",E);return this};
var QxZ=function(E,B){E.urlParamMap_.set("selectButtonLabel",B);return E};
wE.prototype.setSize=function(E,B){this.dialogWidth_=E;this.dialogHeight_=B;return this};
wE.prototype.setTitle=function(E){this.urlParamMap_.set("title",E);return this};
var Py$=function(E){E.postProcessors_.length&&E.urlParamMap_.set("pp",JSON.stringify(E.postProcessors_));E.urlParamMap_.set("nav",xD6(E.nav_));var B=new _.tQ(E.getBaseUrl());E.urlParamMap_.forEach(function(I,T){_.Wp(B,T,I)});
return B};var sxr=function(E,B){E.name!==void 0?(this.name=E.name,this.code=d3h[E.name]):(this.code=E=E.code,this.name=h_D(E));_.Ec.call(this,$tZ("%s %s",this.name,B))};
_.$U(sxr,_.Ec);var h_D=function(E){var B=_.a_.findKey(d3h,function(I){return E==I});
if(B===void 0)throw Error("lb`"+E);return B},AG={},d3h=(AG.AbortError=3,AG.EncodingError=5,AG.InvalidModificationError=9,AG.InvalidStateError=7,AG.NotFoundError=1,AG.NotReadableError=4,AG.NoModificationAllowedError=6,AG.PathExistsError=12,AG.QuotaExceededError=10,AG.SecurityError=2,AG.SyntaxError=8,AG.TypeMismatchError=11,AG);var ugZ=function(E,B){_.CS.call(this,E.type,B);this.event_=E};
_.$U(ugZ,_.CS);var LgZ=function(E,B,I){I===void 0&&(I=E.size);return E.slice?E.slice(B,I):null};var PWi=new WeakMap,ZcJ=function(E,B){E=[E];for(var I=B.length-1;I>=0;--I)E.push(typeof B[I],B[I]);return E.join("\v")};_.mDF(function(){if(!_.$i.Blob)return!1;var E=new Uint8Array(100);try{var B=new Blob([E])}catch(I){return!1}return B.size!=100?!1:!0});
var x3U=_.mDF(function(){if(!_.$i.Blob)return!1;var E=new Uint8Array(100);try{var B=new Blob([E])}catch(I){return!1}return LgZ(B,0,1)===null?!1:!0});_.$i.U3bHHf!=null||(_.$i.U3bHHf=0);_.$i.U3bHHf++;var dDf={};var U7=void 0;var Vj=Symbol("tb");var SrQ=qm("WizInjectionContext_Dispatcher");var nPd=qm("WizInjectionContext_RootElement");var Hc4=qm("WizInjectionContext_AppContext"),MIc=qm("WizInjectionContext_ModelRootElement"),NUd=qm("WizInjectionContext_RendererData"),gPc=qm("WizInjectionContext_InjectingConstructor"),Ocf=qm("WizInjectionContext_AsyncDeps"),JAc={};var bcQ=!1;var GGD=Symbol("wb"),gai=Symbol("xb"),X7Q=Symbol("yb"),Jgc=Symbol("zb"),kRQ=bD(function(E){return F4f(E)&&GGD in E});var UDi={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:qDQ,enableLazyTsx:Fut,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var Kx=Object.assign({},{attributes:{},handleError:function(E){throw E;}},UDi);var DDG=Symbol("Ab"),jM={},VI6=(jM[DDG]=!0,jM.debugName="[component]",jM.getComponentStack=function(){for(var E=[],B=this;B;)K4D(B)&&E.push(B.debugName),B=B.parent;return E},jM.registerSignal=function(){},jM.registerEffect=function(){},jM);var Ra=null,Bh=!1,T0d=1,T5=Symbol("Bb"),Yp={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var Uz=Symbol("Cb"),ke=Symbol("Db"),IJ=Symbol("Eb"),vai=Object.assign({},Yp,{value:Uz,dirty:!0,error:null,equal:Rpd,kind:"computed",producerMustRecompute:function(E){return E.value===Uz||E.value===ke},
producerRecomputeValue:function(E){if(E.value===ke)throw Error("da");var B=E.value;E.value=ke;var I=p7i(E),T=!1;try{var e=E.computation();E_(null);T=B!==Uz&&B!==IJ&&e!==IJ&&E.equal(B,e)}catch(c){e=IJ,E.error=c}finally{YFd(E,I)}T?E.value=B:(E.value=e,E.version++)}});var PKi=function(){throw Error();};var m_D=null,CKd=Object.assign({},Yp,{equal:Rpd,value:void 0,kind:"signal"});Object.assign({},Yp,{value:Uz,dirty:!0,error:null,equal:Rpd,kind:"linkedSignal",producerMustRecompute:function(E){return E.value===Uz||E.value===ke},
producerRecomputeValue:function(E){if(E.value===ke)throw Error("da");var B=E.value;E.value=ke;var I=p7i(E);try{var T=E.source();var e=E.computation(T,B===Uz||B===IJ?void 0:{source:E.sourceValue,value:B});E.sourceValue=T}catch(c){e=IJ,E.error=c}finally{YFd(E,I)}B!==Uz&&e!==IJ&&E.equal(B,e)?E.value=B:(E.value=e,E.version++)}});Object.assign({},Yp,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(E){E.schedule!==null&&E.schedule(E.ref)},
hasRun:!1,cleanupFn:function(){}});var d_t=Symbol("Fb"),ch=Symbol("Gb");var iQ=Array.isArray;var Mgt;var OlZ={},N0Q=na6(Object.assign({},{consumerAllowSignalWrites:!0},OlZ)),lW=na6(Object.assign({},{consumerAllowSignalWrites:!0},OlZ));var yS=0,tG=function(){this.queue=new Set};
tG.prototype.remove=function(E){this.queue.delete(E)};
tG.prototype.clear=function(){this.queue.clear()};
var nvl=function(){tG.apply(this,arguments)};
_.L(nvl,tG);nvl.prototype.schedule=function(E){this.queue.add(E)};
nvl.prototype.flush=function(){if(this.queue.size)for(var E=_.p(this.queue),B=E.next();!B.done;B=E.next()){B=B.value;this.queue.delete(B);try{B.run()}catch(I){Mnu(I)}}};
var Hl$=new nvl,f0=function(){tG.apply(this,arguments)};
_.L(f0,tG);var N7R=function(){f0.apply(this,arguments)};
_.L(N7R,f0);N7R.prototype.schedule=function(E){E.hasRun?this.queue.add(E):E.run()};
N7R.prototype.flush=function(){if(this.queue.size){var E=this.queue;this.queue=new Set;tgF(E)}};
var SFi=new N7R,gvZ=function(){f0.apply(this,arguments)};
_.L(gvZ,f0);gvZ.prototype.schedule=function(E){var B=this;return _.a(function(I){if(I.nextAddress==1)return E.hasRun?I.jumpTo(2):_.C(I,Promise.resolve(),3);if(I.nextAddress!=2)return E.run(),I.return();B.queue.add(E);_.ER(I)})};
gvZ.prototype.flush=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1){if(!E.queue.size)return I.return();B=E.queue;E.queue=new Set;return _.C(I,Promise.resolve(),2)}tgF(B);_.ER(I)})};
var rgd=new gvZ,S4$=function(){f0.apply(this,arguments)};
_.L(S4$,f0);S4$.prototype.schedule=function(E){this.queue.add(E)};
S4$.prototype.flush=function(){if(this.queue.size){var E=this.queue;this.queue=new Set;tgF(E)}};
var Wzf=new S4$,jkF=[SFi,Hl$,Wzf,rgd],JIU=[SFi,Wzf,rgd],oa4=[];m_D=function(){U_c();for(var E=_.p(oa4),B=E.next();!B.done;B=E.next())B=B.value,B()};
var Mnu=IB;var Z0=Symbol("Lb");var Cd=null,FzJ,D_c=null,KzB;var VK={},Wgl=Object.assign({},Yp,(VK[GGD]=!0,VK.effectType=gai,VK.isResettableContext=!0,VK.producerNode=void 0,VK.hasRun=!1,VK.effectFn=null,VK.consumerIsAlwaysLive=!0,VK.consumerAllowSignalWrites=!0,VK.consumerMarkedDirty=bF6,VK.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Bh)throw Error("Mb");this.dirty=!1;if(!this.hasRun||e7f(this)){this.hasRun=!0;GbD(this);var E=fx(this),B=p7i(this);tI4("effectRun",this.debugName);try{z5(this.effectFn,{stack:this.componentStack})}finally{ftG("effectRun",
this.debugName),YFd(this,B),fx(E)}}}},VK.componentStack=void 0,VK.debugName="[effect]",VK[Symbol.dispose]=function(){Ea4(this);
if($p(this))for(var E=0;E<this.producerNode.length;E++)B06(this.producerNode[E],this.producerIndexOfThis[E]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);E=_.p(JIU);for(var B=E.next();!B.done;B=E.next())B.value.remove(this);xDG(this)},VK));var EvB=Object.assign({},Wgl,{effectType:X7Q});var B7f=Object.assign({},Wgl,{effectType:gai});var $3c=Symbol("Nb");var XnB=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var fd=Symbol("Ob");var Tb=function(){},Cc=function(E){this.props=E;
this.__unmounted=!1};
Cc.prototype.didPatch=function(){};
Cc.prototype.didMount=function(){};
Cc.prototype.didUnmount=function(){};
Cc.prototype.didUpdate=function(){};var e_c={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},T7f={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}]}},Hac={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},ilD=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],cI6={"*":{async:1,dir:0,loading:2,target:3}};var Xn$=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,q6={},Y4B=(q6[1]=null,q6[2]=function(E,B){return B instanceof P1?mm(B):iv.toString()},q6[3]=function(E,B){return T1(B)?_.e6(B):Xn$.test(String(B))?String(B):iv.toString()},q6[4]=function(E,B){return B instanceof DK?_.Ef(B):iv.toString()},q6[5]=function(E,B){return String(B)},q6[7]=null,q6[8]=null,q6[10]=null,q6);var E34=Symbol("Rb");var $Fi=function(E){var B=rIX,I=E,T="",e="",c=1;E<0&&(E=-E);if(E===Infinity)E=(Infinity*Math.sign(I)).toString();else{for(var Y=0;Y<bl6.length;Y++){var v=bl6[Y];c=B[v];if(E>=c||c<=1&&E>.1*c){T=v;break}}T?(T+="B",e=" "):c=1;E=Math.round(I/c*10)/10+e+T}return E},bl6="Y Z E P T G M K  m u n".split(" "),rIX={"":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};_.ovV=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 RJ={};RegExp.prototype.hasOwnProperty("sticky");var ov4=function(E){E=String(E);for(var B=function(T,e,c){for(var Y=Math.min(e.length-c,T.length),v=0;v<Y;v++){var y=e[c+v];if(T[v]!==("A"<=y&&y<="Z"?y.toLowerCase():y))return!1}return!0},I=0;(I=E.indexOf("<",I))!=-1;){if(B("\x3c/script",E,I)||B("\x3c!--",E,I))return"zSoyz";
I+=1}return E};var G5={default:"__default"};var PyB=Object.prototype.hasOwnProperty;yIJ.prototype=Object.create(null);var kV=Qxt();var bQ=null;var HlB=function(E){this.created=[];this.deleted=[];this.node=E};var N7Q=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var E=this,B=E;E;)B=E,E=E.parentNode;return B};var h_c=function(E,B){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=E;this.key=B;this.text=void 0};var Hh=null,NS=null,nd=null,S2=null,GGc=[],x3f=ugt,XX=[],rt=[],R4G=function(E){return gvc(function(B,I,T){nd=NS=B;NS=null;I(T);Lgc(null);NS=nd;nd=nd.parentNode;return B},E)}(),K0J=function(E){return gvc(function(B,I,T){var e={nextSibling:B};
NS=e;I(T);nd&&Lgc(B.nextSibling);return e===NS?null:NS},E)}();var oJ=[],JIf=0;var Ax=new yIJ;var wX=new yIJ;var AIZ=Qxt(),blG=AIZ[G5.default],AIt=AIZ.style,rIi=["focusin","focusout"];var sHF=function(){},vVi=function(){},Oic=function(){},LFG=function(){};var tx=Symbol("Yb");var q4J,VnG=fDc;var BA=Symbol("Zb");var laQ={};var GFB=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(" ")),
xWG=new Set(["a","font","script","style","title"]);var cA={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var aI=null,vA=function(E,B){Cc.call(this,E);var I=this;this.functionComponent=B;this.hooks=[];this.hookCounter=0;this.disposeEffects=hx(function(T){I.effectContext=T;_.dt(function(){Zic(I,I.el)})},Kx.alwaysTrackContexts||!!U7)};
_.L(vA,Cc);vA.prototype.render=function(E){var B=aI;aI=this;this.hookCounter=0;var I=E_(lW),T=fx(this.effectContext);try{return tI4("render",this.componentName),this.functionComponent(E)}finally{ftG("render",this.componentName),fx(T),E_(I),aI=B}};
_.Up.Object.defineProperties(vA.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){var E,B;return(B=(E=this.functionComponent.debugName)!=null?E:this.functionComponent.name)!=null?B:"[component]"}}});var nVJ=Symbol("mc"),dWt=function(E,B,I){this.kind=E;this.props=B;this.children=I};
_.L(dWt,Tb);dWt.prototype.render=function(){return QHF(this.kind,this.props,this.children)};
dWt.prototype.getChildren=function(){return this.children};var Hic=[];PKi=function(E){throw Error("sb`"+E.debugName);};
(function(){var E=bQ;bQ=function(B){E==null||E(B);N9B(B)}})();var jxR=void 0,U3V={},kGu=new WeakMap,gVF={getComponent:function(E){if(E.hasAttribute("ng-version"))return U3V;if(!E.__wizComponent)return null;E=E.__wizComponent;kGu.set(E.propsAndState,E);return E.propsAndState},
getDirectiveMetadata:function(E){if(E===U3V)return{framework:"wiz",name:"<Root>",props:{}};E=kGu.get(E);if(!E)throw Error("nc");return{framework:"wiz",name:E.name,props:Object.fromEntries(Object.keys(E.props).map(function(B){return[B,B]}))}},
"\u0275setProfiler":function(E){var B;(B=jxR)==null||B();jxR=AgB(function(){E(2)})},
isSignal:function(E){return typeof E==="function"&&E[T5]!==void 0}};var JK6={nonNullableCondIsNull:function(){return Error("rc")}};_.w.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.w.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.w.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var AKJ=function(){this.map=new Map};
AKJ.prototype.push=function(E,B){var I=this.map;I.has(E)&&(this.multi||(this.multi=new Map),this.multi.set(B,I.get(E)));I.set(E,B)};
AKJ.prototype.pop=function(E){var B=this.map,I=B.get(E),T;I!==void 0&&((T=this.multi)==null?0:T.has(I))?(B.set(E,this.multi.get(I)),this.multi.delete(I)):B.delete(E);return I};var faD={LOG_NULL_EL_REF_VALUE:function(){return Error("sc")},
OUT_OF_ORDER_HOOK_CALL:function(E){return Error("tc`"+E)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("uc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("vc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("wc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(E,B){return Error("xc`"+E+"`"+B)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(E){return Error("yc`"+E)},
USE_ELEMENT_NOT_ASSIGNED:function(E){return Error("zc`"+String(E))}};q4J=hlD;var EqF=Symbol("Ac");CEt({beforeRender:function(E){var B=fx(E.effectContext);try{var I;((I=E.__syncEffects)==null?0:I.length)&&$qd(E.__syncEffects)}finally{fx(B)}},
didPatch:function(E){var B=fx(E.effectContext);try{var I;((I=E.__syncEffects)==null?0:I.length)&&$qd(E.__syncEffects)}finally{fx(B)}},
didUnmount:function(E){var B;((B=E.hooks)==null?0:B.length)&&E.hooks.forEach(Bli)}});var tnr,fDZ,Vnt;tnr=_.$i.window;_.nc=(tnr==null?void 0:(fDZ=tnr.yt)==null?void 0:fDZ.config_)||(tnr==null?void 0:(Vnt=tnr.ytcfg)==null?void 0:Vnt.data_)||{};_.ka("yt.config_",_.nc);var q4r={},lA4=[];_.P7=function(E){var B=_.aG.apply(1,arguments);var I=Error.call(this,E);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.args=[].concat(_.ad(B));Object.setPrototypeOf(this,this.constructor.prototype)};
_.L(_.P7,Error);var wdi=function(E,B,I){this.actionName=E;this.optionalAction=B===void 0?!1:B;this.args=I===void 0?null:I;this.returnValue=[]};_.F=function(E){this.name=E};_.g9=new _.F("signalAction");var PZF=/^[\w.]*$/,aAc={q:!0,search_query:!0},Ypc=String(pu6);var F1;F1=Symbol("Bc");_.Dr=function(E){this.name=E};
_.Dr.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var z0G=function(E){this.key=E},dq4=function(E){this.deferredKey=E},QjG=function(){var E=this;
this.providers=new Map;this.JSC$8303_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(E.providers)}}};
QjG.prototype.addProvider=function(E){this.providers.set(E.provide,E);var B=this.JSC$8303_deferred.get(E.provide);if(B)try{B.resolver(this.resolve(E.provide))}catch(I){B.rejector(I)}};
QjG.prototype.resolve=function(E){return E instanceof dq4?FgU(this,E):E instanceof z0G?D3X(this,E.key,[],!0):D3X(this,E,[])};
var FgU=function(E,B){B=B.deferredKey;if(E.JSC$8303_deferred.has(B))return E.JSC$8303_deferred.get(B).promise;var I={};I.promise=new Promise(function(T,e){I.resolver=T;I.rejector=e});
E.JSC$8303_deferred.set(B,I);return I.promise},D3X=function(E,B,I,T){T=T===void 0?!1:T;
if(I.indexOf(B)>-1)throw Error("Cc`"+B);if(E.cachedValues.has(B))return E.cachedValues.get(B);if(!E.providers.has(B)){if(T)return;throw Error("Dc`"+B);}T=E.providers.get(B);I.push(B);if(T.useValue!==void 0)var e=T.useValue;else if(T.useFactory)e=T[F1]?KgD(E,T[F1],I):[],e=T.useFactory.apply(T,_.ad(e));else if(T.useClass){e=T.useClass;var c=e[F1]?KgD(E,e[F1],I):[];e=new (Function.prototype.bind.apply(e,[null].concat(_.ad(c))))}else throw Error("Ec`"+B);I.pop();T.skipCache||E.cachedValues.set(B,e);return e},
KgD=function(E,B,I){return B?B.map(function(T){return T instanceof z0G?D3X(E,T.key,I,!0):D3X(E,T,I)}):[]};var mqi;var Ss=new _.Dr("ENDPOINT_HANDLER_TOKEN");_.JK=new _.F("urlEndpoint");var R_Z=function(){this.data=[];this.cachedPackedInt52=-1};
R_Z.prototype.set=function(E,B){B=B===void 0?!0:B;0<=E&&E<52&&Number.isInteger(E)&&this.data[E]!==B&&(this.data[E]=B,this.cachedPackedInt52=-1)};
R_Z.prototype.get=function(E){return!!this.data[E]};
var EVU=function(E){E.cachedPackedInt52===-1&&(E.cachedPackedInt52=E.data.reduce(function(B,I,T){return B+(I?Math.pow(2,T):0)},0));
return E.cachedPackedInt52};var JJi=function(E){var B=B9U;E=E===void 0?_.WA("yt.ads.biscotti.lastId_")||"":E;var I=Object,T=I.assign,e={};e.dt=IVZ;e.flash="0";a:{try{var c=B.JSC$8309_win_.top.location.href}catch(sc){c=2;break a}c=c?c===B.doc_.location.href?0:1:2}e=(e.frm=c,e);try{e.u_tz=-(new Date).getTimezoneOffset();var Y=Y===void 0?X6:Y;try{var v=Y.history.length}catch(sc){v=0}e.u_his=v;var y;e.u_h=(y=X6.screen)==null?void 0:y.height;var Z;e.u_w=(Z=X6.screen)==null?void 0:Z.width;var P;e.u_ah=(P=X6.screen)==null?void 0:P.availHeight;
var z;e.u_aw=(z=X6.screen)==null?void 0:z.availWidth;var m;e.u_cd=(m=X6.screen)==null?void 0:m.colorDepth}catch(sc){}v=B.JSC$8309_win_;try{var u=v.screenX;var x=v.screenY}catch(sc){}try{var M=v.outerWidth;var N=v.outerHeight}catch(sc){}try{var W=v.innerWidth;var U=v.innerHeight}catch(sc){}try{var q=v.screenLeft;var f=v.screenTop}catch(sc){}try{W=v.innerWidth,U=v.innerHeight}catch(sc){}try{var ed=v.screen.availWidth;var K=v.screen.availTop}catch(sc){}u=[q,f,u,x,ed,K,M,N,W,U];x=z9F(!1,B.JSC$8309_win_.top);
M={};var p4=p4===void 0?_.$i:p4;N=new R_Z;"SVGElement"in p4&&"createElementNS"in p4.document&&N.set(0);W=iTD();W["allow-top-navigation-by-user-activation"]&&N.set(1);W["allow-popups-to-escape-sandbox"]&&N.set(2);p4.crypto&&p4.crypto.subtle&&N.set(3);"TextDecoder"in p4&&"TextEncoder"in p4&&N.set(4);p4=EVU(N);B=(M.bc=p4,M.bih=x.height,M.biw=x.width,M.brdim=u.join(),M.vis=$mi(B.doc_),M.wgl=!!X6.WebGLRenderingContext,M);I=T.call(I,e,B);I.ca_type="image";E&&(I.bid=E);return I},B9U=new function(){var E=
window.document;
this.JSC$8309_win_=window;this.doc_=E};
_.ka("yt.ads_.signals_.getAdSignalsString",function(E){return vq4(JJi(E))});_.Bf();navigator.userAgent.indexOf(" (CrKey ");var xqD="XMLHttpRequest"in _.$i?function(){return new XMLHttpRequest}:null;var $WX="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Ial=[].concat(_.ad($WX),["client_dev_set_cookie"]);var Sp6={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"},nqt="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(_.ad($WX)),kkc=!1,HgG=_.WSB,AJD=gqG;var PuB=[{messageFn:function(E){return"Cannot read property '"+E.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(E){return"Cannot call '"+E.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(E){return E.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var T9Z={messageWeights:[],callbackWeights:[{callback:qpB,weight:500}]};var elh=function(){this.callbackWeights=[];this.messageWeights=[]},laR,Z8i=function(){if(!laR){var E=laR=new elh;
E.messageWeights.length=0;E.callbackWeights.length=0;Yad(E,T9Z)}return laR},Yad=function(E,B){B.messageWeights&&E.messageWeights.push.apply(E.messageWeights,B.messageWeights);
B.callbackWeights&&E.callbackWeights.push.apply(E.callbackWeights,B.callbackWeights)};_.$U(_.Ya,_.Cx);_.Ya.prototype.subscribe=function(E,B,I){var T=this.topics_[E];T||(T=this.topics_[E]=[]);var e=this.JSC$8333_key_;this.subscriptions_[e]=E;this.subscriptions_[e+1]=B;this.subscriptions_[e+2]=I;this.JSC$8333_key_=e+3;T.push(e);return e};
var cKZ=function(E){var B=dEi,I=!1,T=B.subscribe("handleError",function(e){I||(I=!0,this.unsubscribeByKey(T),E.apply(void 0,arguments))},B)};
_.Ya.prototype.unsubscribe=function(E,B,I){if(E=this.topics_[E]){var T=this.subscriptions_;if(E=E.find(function(e){return T[e+1]==B&&T[e+2]==I}))return this.unsubscribeByKey(E)}return!1};
_.Ya.prototype.unsubscribeByKey=function(E){var B=this.subscriptions_[E];if(B){var I=this.topics_[B];this.publishDepth_!=0?(this.pendingKeys_.push(E),this.subscriptions_[E+1]=function(){}):(I&&_.f4(I,E),delete this.subscriptions_[E],delete this.subscriptions_[E+1],delete this.subscriptions_[E+2])}return!!B};
_.Ya.prototype.publish=function(E,B){var I=this.topics_[E];if(I){var T=Array(arguments.length-1),e=arguments.length,c;for(c=1;c<e;c++)T[c-1]=arguments[c];if(this.async_)for(c=0;c<I.length;c++)e=I[c],iiD(this.subscriptions_[e+1],this.subscriptions_[e+2],T);else{this.publishDepth_++;try{for(c=0,e=I.length;c<e&&!this.isDisposed();c++){var Y=I[c];this.subscriptions_[Y+1].apply(this.subscriptions_[Y+2],T)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;I=this.pendingKeys_.pop();)this.unsubscribeByKey(I)}}return c!=
0}return!1};
var iiD=function(E,B,I){_.dI(function(){E.apply(B,I)})};
_.Ya.prototype.clear=function(E){if(E){var B=this.topics_[E];B&&(B.forEach(this.unsubscribeByKey,this),delete this.topics_[E])}else this.subscriptions_.length=0,this.topics_={}};
_.Ya.prototype.getCount=function(E){if(E){var B=this.topics_[E];return B?B.length:0}E=0;for(B in this.topics_)E+=this.getCount(B);return E};
_.Ya.prototype.disposeInternal=function(){_.Ya.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var dEi=new _.Ya;var E4=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(E4,_.LX);E4.prototype.getColdHashData=function(){return _.O8(this,3)};
E4.prototype.getHotHashData=function(){return _.O8(this,5)};
E4.prototype.setHotHashData=function(E){return _.$r(this,5,E)};var pN4=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(pN4,_.LX);var o7F=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(o7F,_.LX);_.l=o7F.prototype;_.l.getDeviceId=function(){return _.O8(this,6)};
_.l.getExperimentIds=function(E){var B=_.ea(this,9,_.m2,3,!0);W6(B,E);return B[E]};
_.l.getPlayerType=function(){return _.na(this,36)};
_.l.setHomeGroupInfo=function(E){return _.fX(this,81,E)};
_.l.clearLocationPlayabilityToken=function(){return _.Rk(this,89)};var YV=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(YV,_.LX);YV.prototype.setKey=function(E){return _.$r(this,1,E)};
YV.prototype.getValue=function(){return Hf(this,2,j3J)};
var j3J=[2,3,4,5,6];var pCU=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(pCU,_.LX);pCU.prototype.setTrackingParams=function(E){return _.Rk(this,1,_.Jz(E,!1))};var Add=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Add,_.LX);var vOi=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(vOi,_.LX);vOi.prototype.getExperimentIds=function(E){var B=_.ea(this,5,_.hH,3,!0);W6(B,E);return B[E]};var Ci=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Ci,_.LX);Ci.prototype.getToken=function(){return _.ee(this,2)};
Ci.prototype.setToken=function(E){return _.$r(this,2,E)};var vC=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(vC,_.LX);vC.prototype.setSafetyMode=function(E){return _.KF(this,5,E)};var pi=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(pi,_.LX);pi.prototype.setClient=function(E){return _.fX(this,1,E)};var aBQ={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 YK6;_.MK=function(){var E=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.$i.addEventListener("beforeinstallprompt",function(B){B.preventDefault();E.deferredInstallPrompt=B});
_.$i.addEventListener("appinstalled",function(){E.appInstalledEventFired=!0},{once:!0})};
YK6=function(){if(!_.$i.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.$i.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.$i.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.$i.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.$i.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(E){return"WEB_DISPLAY_MODE_UNKNOWN"}};var wNi=function(){this.syncHeaders=!0},ZOi=function(E){var B={},I=[];
"USER_SESSION_ID"in _.nc&&I.push({key:"u",value:_.HA("USER_SESSION_ID")});if(I=XPD(I))B.Authorization=I,I=E=E==null?void 0:E.sessionIndex,I===void 0&&(I=Number(_.HA("SESSION_INDEX",0)),I=isNaN(I)?0:I),_.d("voice_search_auth_header_removal")||(B["X-Goog-AuthUser"]=I.toString()),"INNERTUBE_HOST_OVERRIDE"in _.nc||(B["X-Origin"]=window.location.origin),E===void 0&&"DELEGATED_SESSION_ID"in _.nc&&(B["X-Goog-PageId"]=_.HA("DELEGATED_SESSION_ID"));return B};var YGl={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var K0=_.WA("ytglobal.prefsUserPrefsPrefs_")||{},aaD;_.ka("ytglobal.prefsUserPrefsPrefs_",K0);_.Rw=function(){this.cookieName=_.HA("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.HA("ALT_PREF_COOKIE_DOMAIN","youtube.com");var E=_.v7.get(this.cookieName,void 0);E&&this.parse(E)};
_.ZB=function(){aaD||(aaD=new _.Rw);return aaD};
_.Rw.prototype.get=function(E,B){vVl(E);yK$(E);E=K0[E]!==void 0?K0[E].toString():null;return E!=null?E:B?B:""};
_.Rw.prototype.set=function(E,B){vVl(E);yK$(E);if(B==null)throw Error("Hc");K0[E]=B.toString()};
_.Rw.prototype.getFlag=function(E){return!!((CEZ("f"+(Math.floor(E/31)+1))||0)&1<<E%31)};
_.PN=function(E,B,I){E="f"+(Math.floor(B/31)+1);B=1<<B%31;var T=CEZ(E)||0;T=I?T|B:T&~B;T===0?delete K0[E]:(I=T.toString(16),K0[E]=I.toString())};
_.Rw.prototype.remove=function(E){vVl(E);yK$(E);delete K0[E]};
_.Rw.prototype.save=function(){var E=!0;_.d("web_secure_pref_cookie_killswitch")&&(E=!1);_.yZ(this.cookieName,this.dump(),63072E3,this.cookieDomain,E)};
_.Rw.prototype.clear=function(){_.a_.clear(K0)};
_.Rw.prototype.dump=function(){var E=[],B;for(B in K0)K0.hasOwnProperty(B)&&E.push(B+"="+encodeURIComponent(String(K0[B])));return E.join("&")};
var yK$=function(E){if(/^f([1-9][0-9]*)$/.test(E))throw Error("Ic`"+E);},vVl=function(E){if(!/^\w+$/.test(E))throw Error("Jc`"+E);
},CEZ=function(E){E=K0[E]!==void 0?K0[E].toString():null;
return E!=null&&/^[A-Fa-f0-9]+$/.test(E)?parseInt(E,16):null};
_.Rw.prototype.parse=function(E){E=decodeURIComponent(E).split("&");for(var B=0;B<E.length;B++){var I=E[B].split("="),T=I[0];(I=I[1])&&(K0[T]=I.toString())}};var TGF={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"},ylD={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},C1G={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},l$d={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var kg;_.EH=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.PC=function(E,B,I){return E.addJob(B,0,I)};
_.EH.prototype.addLowPriorityJob=function(E,B){return this.addJob(E,1,B)};
_.wT=function(E,B,I){return E.addJob(B,2,I)};
_.dT=function(E,B,I){return E.addJob(B,3,I)};
_.ta=function(E,B,I){return E.addJob(B,4,I)};
kg=function(E){var B=_.WA("yt.scheduler.instance.addImmediateJob");B?B(E):E()};
_.EH.prototype.debounce=function(E,B,I){var T=this,e=0,c=function(){e&&T.cancelJob(e);e=T.addJob(E,B,I);T.cancelDebouncedJobMap.set(c,e)};
return c};
_.EH.prototype.cancelThrottle=function(E){(E=this.cancelThrottledJobMap.get(E))&&E()};var Bk=function(){_.EH.apply(this,arguments)};
_.L(Bk,_.EH);_.xm=function(){Bk.instance||(Bk.instance=new Bk);return Bk.instance};
Bk.prototype.addJob=function(E,B,I){I!==void 0&&Number.isNaN(Number(I))&&(I=void 0);var T=_.WA("yt.scheduler.instance.addJob");return T?T(E,B,I):I===void 0?(E(),NaN):_.TR(E,I||0)};
Bk.prototype.cancelJob=function(E){if(E===void 0||!Number.isNaN(Number(E))){var B=_.WA("yt.scheduler.instance.cancelJob");B?B(E):_.lK(E)}};
Bk.prototype.start=function(){var E=_.WA("yt.scheduler.instance.start");E&&E()};
Bk.prototype.pause=function(){var E=_.WA("yt.scheduler.instance.pause");E&&E()};
_.Ll=_.xm();_.zR.prototype.set=function(E,B){B===void 0?this.mechanism.remove(E):this.mechanism.set(E,(0,_.xT)(B))};
_.zR.prototype.get=function(E){try{var B=this.mechanism.get(E)}catch(I){return}if(B!==null)try{return JSON.parse(B)}catch(I){throw"Storage: Invalid value was encountered";}};
_.zR.prototype.remove=function(E){this.mechanism.remove(E)};var $Q=function(E){this.mechanism=E};
_.$U($Q,_.zR);var wCz=function(E){this.data=E},ZiD=function(E){return E===void 0||E instanceof wCz?E:new wCz(E)};
$Q.prototype.set=function(E,B){$Q.superClass_.set.call(this,E,ZiD(B))};
$Q.prototype.getWrapper=function(E){E=$Q.superClass_.get.call(this,E);if(E===void 0||E instanceof Object)return E;throw"Storage: Invalid value was encountered";};
$Q.prototype.get=function(E){if(E=this.getWrapper(E)){if(E=E.data,E===void 0)throw"Storage: Invalid value was encountered";}else E=void 0;return E};_.$U(mz,$Q);_.PEV=function(E){var B=E.creation;E=E.expiration;return!!E&&E<_.Bf()||!!B&&B>_.Bf()};
mz.prototype.set=function(E,B,I){if(B=ZiD(B)){if(I){if(I<_.Bf()){mz.prototype.remove.call(this,E);return}B.expiration=I}B.creation=_.Bf()}mz.superClass_.set.call(this,E,B)};
mz.prototype.getWrapper=function(E,B){var I=mz.superClass_.getWrapper.call(this,E);if(I)if(!B&&_.PEV(I))mz.prototype.remove.call(this,E);else return I};var Ib=function(){};
Ib.prototype.next=function(){return Te};
var Te={done:!0,value:void 0},eJ=function(E){return{value:E,done:!1}};
Ib.prototype.__iterator__=function(){return this};
_.zlr=function(E){if(E instanceof Ib)return E;if(typeof E.__iterator__=="function")return E.__iterator__(!1);if(_.Di(E)){var B=0,I=new Ib;I.next=function(){for(;;){if(B>=E.length)return Te;if(B in E)return eJ(E[B++]);B++}};
return I}throw Error("Kc");};var mWh=function(E){if(E instanceof lp||E instanceof ck||E instanceof ip)return E;if(typeof E.next=="function")return new lp(function(){return E});
if(typeof E[Symbol.iterator]=="function")return new lp(function(){return E[Symbol.iterator]()});
if(typeof E.__iterator__=="function")return new lp(function(){return E.__iterator__()});
throw Error("Lc");},lp=function(E){this.func_=E};
lp.prototype.__iterator__=function(){return new ck(this.func_())};
lp.prototype[Symbol.iterator]=function(){return new ip(this.func_())};
lp.prototype.toEs6=function(){return new ip(this.func_())};
var ck=function(E){this.JSC$8417_iter_=E};
_.L(ck,Ib);ck.prototype.next=function(){return this.JSC$8417_iter_.next()};
ck.prototype[Symbol.iterator]=function(){return new ip(this.JSC$8417_iter_)};
ck.prototype.toEs6=function(){return new ip(this.JSC$8417_iter_)};
var ip=function(E){lp.call(this,function(){return E});
this.JSC$8420_iter_=E};
_.L(ip,lp);ip.prototype.next=function(){return this.JSC$8420_iter_.next()};var QHu=function(){};var pL=function(){};
_.$U(pL,QHu);pL.prototype.getCount=function(){for(var E=0,B=_.p(this),I=B.next();!I.done;I=B.next())E++;return E};
pL.prototype[Symbol.iterator]=function(){return mWh(this.__iterator__(!0)).toEs6()};
pL.prototype.clear=function(){var E=Array.from(this);E=_.p(E);for(var B=E.next();!B.done;B=E.next())this.remove(B.value)};_.$U(QZ,pL);_.l=QZ.prototype;_.l.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var E=this.storage_;if(E)try{E.setItem("__sak","1");E.removeItem("__sak");var B=!0}catch(I){B=I instanceof DOMException&&(I.name==="QuotaExceededError"||I.code===22||I.code===1014||I.name==="NS_ERROR_DOM_QUOTA_REACHED")&&E&&E.length!==0}else B=!1;this.cachedIsStorageAvailable_=B}return this.cachedIsStorageAvailable_};
_.l.set=function(E,B){YQ(this);try{this.storage_.setItem(E,B)}catch(I){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.l.get=function(E){YQ(this);E=this.storage_.getItem(E);if(typeof E!=="string"&&E!==null)throw"Storage mechanism: Invalid value was encountered";return E};
_.l.remove=function(E){YQ(this);this.storage_.removeItem(E)};
_.l.getCount=function(){YQ(this);return this.storage_.length};
_.l.__iterator__=function(E){YQ(this);var B=0,I=this.storage_,T=new Ib;T.next=function(){if(B>=I.length)return Te;var e=I.key(B++);if(E)return eJ(e);e=I.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return eJ(e)};
return T};
_.l.clear=function(){YQ(this);this.storage_.clear()};
_.l.key=function(E){YQ(this);return this.storage_.key(E)};
var YQ=function(E){if(E.storage_==null)throw Error("Mc");E.isAvailable()||IB(Error("Mc"))};_.$U(iCJ,QZ);_.$U(pU6,QZ);_.$U(d0,pL);d0.prototype.set=function(E,B){this.mechanism_.set(this.JSC$8435_prefix_+E,B)};
d0.prototype.get=function(E){return this.mechanism_.get(this.JSC$8435_prefix_+E)};
d0.prototype.remove=function(E){this.mechanism_.remove(this.JSC$8435_prefix_+E)};
d0.prototype.__iterator__=function(E){var B=this.mechanism_[Symbol.iterator](),I=this,T=new Ib;T.next=function(){var e=B.next();if(e.done)return e;for(e=e.value;e.slice(0,I.JSC$8435_prefix_.length)!=I.JSC$8435_prefix_;){e=B.next();if(e.done)return e;e=e.value}return eJ(E?e.slice(I.JSC$8435_prefix_.length):I.mechanism_.get(e))};
return T};_.M3=function(E){this.expiringStorage_=(E=_.Yi6(E))?new mz(E):null;this.JSC$8439_domain_=document.domain||window.location.hostname};
_.M3.prototype.set=function(E,B,I,T){I=I||31104E3;this.remove(E);if(this.expiringStorage_)try{this.expiringStorage_.set(E,B,Date.now()+I*1E3);return}catch(c){}var e="";if(T)try{e=escape((0,_.xT)(B))}catch(c){return}else e=escape(B);_.yZ(E,e,I,this.JSC$8439_domain_)};
_.M3.prototype.get=function(E,B){var I=void 0,T=!this.expiringStorage_;if(!T)try{I=this.expiringStorage_.get(E)}catch(e){T=!0}if(T&&(I=_.v7.get(E,void 0))&&(I=unescape(I),B))try{I=JSON.parse(I)}catch(e){this.remove(E),I=void 0}return I};
_.M3.prototype.remove=function(E){this.expiringStorage_&&this.expiringStorage_.remove(E);_.BGt(E,"/",this.JSC$8439_domain_)};
_.M3.prototype.getCreationTime=function(E){return this.expiringStorage_&&(E=(this.expiringStorage_.getWrapper(E)||{}).creation,typeof E==="number")?E:null};var vhf=function(){var E;return function(){E||(E=new _.M3("ytidb"));return E}}();var CTc;_.sF=[];CTc=!1;var ghG=wUt||ZCc;var ab={},dWZ=(ab.AUTH_INVALID="No user identifier specified.",ab.EXPLICIT_ABORT="Transaction was explicitly aborted.",ab.IDB_NOT_SUPPORTED="IndexedDB is not supported.",ab.MISSING_INDEX="Index not created.",ab.MISSING_OBJECT_STORES="Object stores not created.",ab.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",ab.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",ab.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",ab.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",ab.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",ab.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",ab.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",ab),vk={},hlz=(vk.AUTH_INVALID="ERROR",vk.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",vk.EXPLICIT_ABORT="IGNORED",
vk.IDB_NOT_SUPPORTED="ERROR",vk.MISSING_INDEX="WARNING",vk.MISSING_OBJECT_STORES="ERROR",vk.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",vk.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",vk.QUOTA_EXCEEDED="WARNING",vk.QUOTA_MAYBE_EXCEEDED="WARNING",vk.UNKNOWN_ABORT="WARNING",vk.INCOMPATIBLE_DB_VERSION="WARNING",vk),y4={},sHu=(y4.AUTH_INVALID=!1,y4.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,y4.EXPLICIT_ABORT=!1,y4.IDB_NOT_SUPPORTED=!1,y4.MISSING_INDEX=!1,y4.MISSING_OBJECT_STORES=!1,y4.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,y4.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,y4.QUOTA_EXCEEDED=!1,y4.QUOTA_MAYBE_EXCEEDED=!0,y4.UNKNOWN_ABORT=!0,y4.INCOMPATIBLE_DB_VERSION=!1,y4),nF=function(E,B,I,T,e){B=B===void 0?{}:B;I=I===void 0?dWZ[E]:I;T=T===void 0?hlz[E]:T;e=e===void 0?sHu[E]:e;_.P7.call(this,I,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:E},B));this.type=E;this.message=I;this.level=T;this.retryable=e;Object.setPrototypeOf(this,nF.prototype)};
_.L(nF,_.P7);var u4U=function(E,B){nF.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:B,foundObjectStores:E},dWZ.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,u4U.prototype)};
_.L(u4U,nF);var zSi=function(E,B){var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.index=E;this.objectStore=B;Object.setPrototypeOf(this,zSi.prototype)};
_.L(zSi,Error);var mUc=["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 g0=function(E){this.executor=E},N_=function(E){var B=this;
this.state={status:"PENDING"};this.JSC$8467_onFulfilled=[];this.JSC$8467_onRejected=[];E=E.executor;var I=function(e){if(B.state.status==="PENDING"){B.state={status:"FULFILLED",value:e};e=_.p(B.JSC$8467_onFulfilled);for(var c=e.next();!c.done;c=e.next())c=c.value,c()}},T=function(e){if(B.state.status==="PENDING"){B.state={status:"REJECTED",
reason:e};e=_.p(B.JSC$8467_onRejected);for(var c=e.next();!c.done;c=e.next())c=c.value,c()}};
try{E(I,T)}catch(e){T(e)}};
N_.all=function(E){return new N_(new g0(function(B,I){var T=[],e=E.length;e===0&&B(T);for(var c={i$jscomp$504:0};c.i$jscomp$504<E.length;c={i$jscomp$504:c.i$jscomp$504},++c.i$jscomp$504)N_.resolve(E[c.i$jscomp$504]).then(function(Y){return function(v){T[Y.i$jscomp$504]=v;e--;e===0&&B(T)}}(c)).catch(function(Y){I(Y)})}))};
N_.resolve=function(E){return new N_(new g0(function(B,I){E instanceof N_?E.then(B,I):B(E)}))};
N_.reject=function(E){return new N_(new g0(function(B,I){I(E)}))};
N_.prototype.then=function(E,B){var I=this,T=E!=null?E:hSi,e=B!=null?B:dUJ;return new N_(new g0(function(c,Y){I.state.status==="PENDING"?(I.JSC$8467_onFulfilled.push(function(){LFt(I,I,T,c,Y)}),I.JSC$8467_onRejected.push(function(){xWt(I,I,e,c,Y)})):I.state.status==="FULFILLED"?LFt(I,I,T,c,Y):I.state.status==="REJECTED"&&xWt(I,I,e,c,Y)}))};
N_.prototype.catch=function(E){return this.then(void 0,E)};
var LFt=function(E,B,I,T,e){try{if(E.state.status!=="FULFILLED")throw Error("Pc");var c=I(E.state.value);c instanceof N_?GF$(E,B,c,T,e):T(c)}catch(Y){e(Y)}},xWt=function(E,B,I,T,e){try{if(E.state.status!=="REJECTED")throw Error("Qc");
var c=I(E.state.reason);c instanceof N_?GF$(E,B,c,T,e):T(c)}catch(Y){e(Y)}},GF$=function(E,B,I,T,e){B===I?e(new TypeError("Rc")):I.then(function(c){c instanceof N_?GF$(E,B,c,T,e):T(c)},function(c){e(c)})};var CL;CL=window;_.VZ=CL.ytcsi&&CL.ytcsi.now?CL.ytcsi.now:CL.performance&&CL.performance.timing&&CL.performance.now&&CL.performance.timing.navigationStart?function(){return CL.performance.timing.navigationStart+CL.performance.now()}:function(){return(new Date).getTime()};var Jg=function(E,B){this.JSC$8479_wrapped=E;this.options=B;this.transactionCount=0;this.startedMs=Math.round((0,_.VZ)());this.hasUnknownAbortedTransaction=!1},Ms$,HiZ,Pk,SGX;
Jg.prototype.add=function(E,B,I){return _.bK(this,[E],{mode:"readwrite",enableRetries:!0},function(T){return T.objectStore(E).add(B,I)})};
Jg.prototype.clear=function(E){return _.bK(this,[E],{mode:"readwrite",enableRetries:!0},function(B){return B.objectStore(E).clear()})};
Jg.prototype.close=function(){this.JSC$8479_wrapped.close();var E;((E=this.options)==null?0:E.closed)&&this.options.closed()};
Jg.prototype.count=function(E,B){return _.bK(this,[E],{mode:"readonly",enableRetries:!0},function(I){return I.objectStore(E).count(B)})};
var N3=function(E,B,I){E=E.JSC$8479_wrapped.createObjectStore(B,I);return new wd(E)};
Jg.prototype.delete=function(E,B){return _.bK(this,[E],{mode:"readwrite",enableRetries:!0},function(I){return I.objectStore(E).delete(B)})};
var OiD=function(E,B){return _.bK(E,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(I){return I.objectStore("ResponseStore").index("byInterface").delete(B)})};
Jg.prototype.get=function(E,B){return _.bK(this,[E],{mode:"readonly",enableRetries:!0},function(I){return I.objectStore(E).get(B)})};
Jg.prototype.getAll=function(E,B,I){return _.bK(this,[E],{mode:"readonly",enableRetries:!0},function(T){return T.objectStore(E).getAll(B,I)})};
Jg.prototype.put=function(E,B,I){return _.bK(this,[E],{mode:"readwrite",enableRetries:!0},function(T){return T.objectStore(E).put(B,I)})};
Jg.prototype.objectStoreNames=function(){return Array.from(this.JSC$8479_wrapped.objectStoreNames)};
_.bK=function(E,B,I,T){var e,c,Y,v,y,Z,P,z,m,u,x,M;return _.a(function(N){switch(N.nextAddress){case 1:var W={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof I==="string"?W.mode=I:Object.assign(W,I);e=W;E.transactionCount++;c=e.enableRetries?3:1;Y=0;case 2:if(v){N.jumpTo(4);break}Y++;y=Math.round((0,_.VZ)());_.q7(N,5);Z=E.JSC$8479_wrapped.transaction(B,e.mode);W=new xU6(Z);W=nVr(W,T);return _.C(N,W,7);case 7:return P=N.yieldResult,z=Math.round((0,_.VZ)()),Ms$(E,y,z,Y,void 0,
B.join(),e),N.return(P);case 5:m=_.RG(N);u=Math.round((0,_.VZ)());x=QOc(m,E.JSC$8479_wrapped.name,B.join(),E.JSC$8479_wrapped.version);if((M=x instanceof nF&&!x.retryable)||Y>=c)Ms$(E,y,u,Y,x,B.join(),e),v=x;N.jumpTo(2);break;case 4:return N.return(Promise.reject(v))}})};
Ms$=function(E,B,I,T,e,c,Y){B=I-B;e?(e instanceof nF&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&LF("QUOTA_EXCEEDED",{dbName:GR(E.JSC$8479_wrapped.name),objectStoreNames:c,transactionCount:E.transactionCount,transactionMode:Y.mode}),e instanceof nF&&e.type==="UNKNOWN_ABORT"&&(I-=E.startedMs,I<0&&I>=2147483648&&(I=0),LF("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:c,transactionDuration:B,transactionCount:E.transactionCount,dbDuration:I}),E.hasUnknownAbortedTransaction=!0),
HiZ(E,!1,T,c,B,Y.tag),_.uK(e)):HiZ(E,!0,T,c,B,Y.tag)};
HiZ=function(E,B,I,T,e,c){LF("TRANSACTION_ENDED",{objectStoreNames:T,connectionHasUnknownAbortedTransaction:E.hasUnknownAbortedTransaction,duration:e,isSuccessful:B,tryCount:I,tag:c===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":c})};
Jg.prototype.getVersion=function(){return this.JSC$8479_wrapped.version};
Jg.prototype.getName=function(){return this.JSC$8479_wrapped.name};
var wd=function(E){this.JSC$8494_wrapped=E};
wd.prototype.add=function(E,B){return Sg(this.JSC$8494_wrapped.add(E,B))};
wd.prototype.autoIncrement=function(){return this.JSC$8494_wrapped.autoIncrement};
wd.prototype.clear=function(){return Sg(this.JSC$8494_wrapped.clear()).then(function(){})};
var g7=function(E,B,I){E.JSC$8494_wrapped.createIndex(B,I,{unique:!1})};
wd.prototype.count=function(E){return Sg(this.JSC$8494_wrapped.count(E))};
var N9$=function(E,B){return Ag(E,{query:B},function(I){return I.delete().then(function(){return I.continue()})}).then(function(){})};
wd.prototype.delete=function(E){return E instanceof IDBKeyRange?N9$(this,E):Sg(this.JSC$8494_wrapped.delete(E))};
wd.prototype.get=function(E){return Sg(this.JSC$8494_wrapped.get(E))};
wd.prototype.getAll=function(E,B){return"getAll"in IDBObjectStore.prototype?Sg(this.JSC$8494_wrapped.getAll(E,B)):gVu(this,E,B)};
var gVu=function(E,B,I){var T=[];return Ag(E,{query:B},function(e){if(!(I!==void 0&&T.length>=I))return T.push(e.getValue()),e.continue()}).then(function(){return T})};
wd.prototype.index=function(E){try{return new ZY(this.JSC$8494_wrapped.index(E))}catch(B){if(B instanceof Error&&B.name==="NotFoundError")throw new zSi(E,this.JSC$8494_wrapped.name);throw B;}};
wd.prototype.getName=function(){return this.JSC$8494_wrapped.name};
wd.prototype.keyPath=function(){return this.JSC$8494_wrapped.keyPath};
wd.prototype.put=function(E,B){return Sg(this.JSC$8494_wrapped.put(E,B))};
var Ag=function(E,B,I){E=E.JSC$8494_wrapped.openCursor(B.query,B.direction);return SGX(E).then(function(T){return LMc(T,I)})},xU6=function(E){var B=this;
this.JSC$8502_wrapped=E;this.objectStoreCache=new Map;this.JSC$8502_aborted=!1;this.done=new Promise(function(I,T){B.JSC$8502_wrapped.addEventListener("complete",function(){I()});
B.JSC$8502_wrapped.addEventListener("error",function(e){e.currentTarget===e.target&&T(B.JSC$8502_wrapped.error)});
B.JSC$8502_wrapped.addEventListener("abort",function(){var e=B.JSC$8502_wrapped.error;if(e)T(e);else if(!B.JSC$8502_aborted){e=nF;for(var c=B.JSC$8502_wrapped.objectStoreNames,Y=[],v=0;v<c.length;v++){var y=c.item(v);if(y===null)throw Error("Sc");Y.push(y)}e=new e("UNKNOWN_ABORT",{objectStoreNames:Y.join(),dbName:B.JSC$8502_wrapped.db.name,mode:B.JSC$8502_wrapped.mode});T(e)}})})},nVr=function(E,B){var I=new Promise(function(T,e){try{B(E).then(function(c){T(c)}).catch(e)}catch(c){e(c),E.abort()}});
return Promise.all([I,E.done]).then(function(T){return _.p(T).next().value})};
xU6.prototype.abort=function(){this.JSC$8502_wrapped.abort();this.JSC$8502_aborted=!0;throw new nF("EXPLICIT_ABORT");};
xU6.prototype.objectStore=function(E){E=this.JSC$8502_wrapped.objectStore(E);var B=this.objectStoreCache.get(E);B||(B=new wd(E),this.objectStoreCache.set(E,B));return B};
var ZY=function(E){this.JSC$8504_wrapped=E};
ZY.prototype.count=function(E){return Sg(this.JSC$8504_wrapped.count(E))};
ZY.prototype.delete=function(E){return _.q_(this,{query:E},function(B){return B.delete().then(function(){return B.continue()})})};
ZY.prototype.get=function(E){return Sg(this.JSC$8504_wrapped.get(E))};
ZY.prototype.getAll=function(E,B){return"getAll"in IDBIndex.prototype?Sg(this.JSC$8504_wrapped.getAll(E,B)):JKh(this,E,B)};
var JKh=function(E,B,I){var T=[];return _.q_(E,{query:B},function(e){if(!(I!==void 0&&T.length>=I))return T.push(e.getValue()),e.continue()}).then(function(){return T})};
ZY.prototype.keyPath=function(){return this.JSC$8504_wrapped.keyPath};
ZY.prototype.unique=function(){return this.JSC$8504_wrapped.unique};
_.q_=function(E,B,I){E=E.JSC$8504_wrapped.openCursor(B.query===void 0?null:B.query,B.direction===void 0?"next":B.direction);return SGX(E).then(function(T){return LMc(T,I)})};
Pk=function(E,B){this.request=E;this.cursor=B};
SGX=function(E){return Sg(E).then(function(B){return B?new Pk(E,B):null})};
Pk.prototype.continue=function(E){this.cursor.continue(E);return SGX(this.request)};
Pk.prototype.delete=function(){return Sg(this.cursor.delete()).then(function(){})};
Pk.prototype.getValue=function(){return this.cursor.value};
Pk.prototype.update=function(E){return Sg(this.cursor.update(E))};var ze=function(E,B){this.name=E;this.options=B;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},WFR;
ze.prototype.openDb=function(E,B,I){I=I===void 0?{}:I;return OCt(E,B,I)};
ze.prototype.delete=function(E){E=E===void 0?{}:E;return _.XQ(this.name,E)};
WFR=function(E,B){return new nF("INCOMPATIBLE_DB_VERSION",{dbName:E.name,oldVersion:E.options.version,newVersion:B})};
_.r0=function(E,B){if(!B)throw H7("openWithToken",GR(E.name));return E.open()};
ze.prototype.open=function(){var E=this;if(!this.isCompatible)throw WFR(this);if(this.connectionPromise)return this.connectionPromise;var B,I=function(){E.connectionPromise===B&&(E.connectionPromise=void 0)},T={blocking:function(c){c.close()},
closed:I,terminated:I,upgrade:this.options.upgrade},e=function(){var c,Y,v,y,Z,P,z,m,u,x;return _.a(function(M){switch(M.nextAddress){case 1:return Y=(c=Error().stack)!=null?c:"",_.q7(M,2),_.C(M,E.openDb(E.name,E.options.version,T),4);case 4:for(var N=v=M.yieldResult,W=E.options,U=[],q=_.p(Object.keys(W.objectStores)),f=q.next();!f.done;f=q.next()){f=f.value;var ed=W.objectStores[f],K=ed.removedAtVersion===void 0?Number.MAX_VALUE:ed.removedAtVersion;!(N.JSC$8479_wrapped.version>=ed.addedAtVersion)||
N.JSC$8479_wrapped.version>=K||N.JSC$8479_wrapped.objectStoreNames.contains(f)||U.push(f)}y=U;if(y.length===0){M.jumpTo(5);break}Z=Object.keys(E.options.objectStores);P=v.objectStoreNames();if(E.timesReopenedToFixMissingObjectStore<_.RI("ytidb_reopen_db_retries",0))return E.timesReopenedToFixMissingObjectStore++,v.close(),_.uK(new nF("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:E.name,expectedObjectStores:Z,foundObjectStores:P})),M.return(e());if(!(E.timesDeletedToFixMissingObjectStore<_.RI("ytidb_remake_db_retries",
1))){M.jumpTo(6);break}E.timesDeletedToFixMissingObjectStore++;return _.C(M,E.delete(),7);case 7:return _.uK(new nF("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:E.name,expectedObjectStores:Z,foundObjectStores:P})),M.return(e());case 6:throw new u4U(P,Z);case 5:return M.return(v);case 2:z=_.RG(M);if(z instanceof DOMException?z.name!=="VersionError":"DOMError"in self&&z instanceof DOMError?z.name!=="VersionError":!(z instanceof Object&&"message"in z)||z.message!=="An attempt was made to open a database using a lower version than the existing version."){M.jumpTo(8);
break}return _.C(M,E.openDb(E.name,void 0,Object.assign({},T,{upgrade:void 0})),9);case 9:m=M.yieldResult;u=m.getVersion();if(E.options.version!==void 0&&u>E.options.version+1)throw m.close(),E.isCompatible=!1,WFR(E,u);return M.return(m);case 8:throw I(),z instanceof Error&&!_.d("ytidb_async_stack_killswitch")&&(z.stack=z.stack+"\n"+Y.substring(Y.indexOf("\n")+1)),QOc(z,E.name,"",(x=E.options.version)!=null?x:-1);}})};
return this.connectionPromise=B=e()};var nhd=new ze("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(E,B){B(1)&&N3(E,"databases",{keyPath:"actualName"})}});var WMG,SiF=new function(){}(new function(){});new _.Tv;var XCR=function(E,B){ze.call(this,E,B);this.options=B;xa(E)};
_.L(XCR,ze);var f$J=function(E,B){var I;return function(){I||(I=new XCR(E,B));return I}};
XCR.prototype.openDb=function(E,B,I){I=I===void 0?{}:I;return(this.options.shared?AQD:ohf)(E,B,Object.assign({},I))};
XCR.prototype.delete=function(E){E=E===void 0?{}:E;return(this.options.shared?tcD:jOD)(this.name,E)};var rKr={},Vci=fF("ytGcfConfig",{objectStores:(rKr.coldConfigStore={addedAtVersion:1},rKr.hotConfigStore={addedAtVersion:1},rKr),shared:!1,upgrade:function(E,B){B(1)&&(g7(N3(E,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g7(N3(E,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var biN=function(){_.Cx.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var E=_.WA("yt.gcf.config.hotUpdateCallbacks");E?(this.localHotConfigJobQueue=[].concat(_.ad(E)),this.sharedHotConfigJobQueue=E):(this.sharedHotConfigJobQueue=[],_.ka("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.L(biN,_.Cx);biN.prototype.disposeInternal=function(){for(var E=_.p(this.localHotConfigJobQueue),B=E.next();!B.done;B=E.next()){var I=this.sharedHotConfigJobQueue;B=I.indexOf(B.value);B>=0&&I.splice(B,1)}this.localHotConfigJobQueue.length=0;_.Cx.prototype.disposeInternal.call(this)};var zF=function(){var E=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new biN;this.TEST_ONLY={initializeConfigDb:function(){E.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return E.coldGlobalConfigGroup},
setHotConfigGroup:function(B){oVl(E,B)},
setHotHashData:function(B){E.setHotHashData(B)},
setColdConfigGroup:function(B){AKr(E,B)},
getColdHashData:function(){return E.coldHashData},
getHotHashData:function(){return E.hotHashData},
getHotConfigGroup:function(){return E.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return jHz()},
getExportedHotConfigGroup:function(){return mn()},
getExportedColdHashData:function(){return _.WA("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.WA("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){UWu(E)},
resetInstance:function(){E.setHotHashData(void 0);kFZ(E);delete zF.instance},
setDebounceTimer:function(B){E.debounceTimer=B},
getDebounceTimer:function(){return E.debounceTimer}}},tsZ=function(){if(!zF.instance){var E=new zF;
zF.instance=E}return zF.instance},qGN=function(E){var B;
_.a(function(I){if(I.nextAddress==1)return _.d("start_client_gcf")||_.d("delete_gcf_config_db")?_.d("start_client_gcf")?_.C(I,_.tg(),3):I.jumpTo(2):I.return();I.nextAddress!=2&&((B=I.yieldResult)&&_.ZZ()&&!_.d("delete_gcf_config_db")?(E.isConfigDbInitialized=!0,UWu(E)):(faz(E),Vs$(E)));return _.d("delete_gcf_config_db")?_.C(I,EOF(),0):I.jumpTo(0)})},e4c=function(){var E;
return(E=mn())!=null?E:_.HA("RAW_HOT_CONFIG_GROUP")},FFt=function(E){var B,I,T,e,c,Y;
return _.a(function(v){switch(v.nextAddress){case 1:if(E.hotGlobalConfigGroup)return v.return(mn());if(!E.isConfigDbInitialized)return B=H7("getHotConfig IDB not initialized"),_.Xx(B),v.return(Promise.reject(B));I=UF();T=_.HA("TIME_CREATED_MS");if(!I){e=H7("getHotConfig token error");_.Xx(e);v.jumpTo(2);break}return _.C(v,RSB(I),3);case 3:if((c=v.yieldResult)&&c.timestamp>T)return oVl(E,c.config),E.setHotHashData(c.hashData),v.return(mn());case 2:Vs$(E);if(!(I&&E.hotGlobalConfigGroup&&E.hotHashData)){v.jumpTo(4);
break}return _.C(v,FMc(E.hotGlobalConfigGroup,E.hotHashData,I,T),4);case 4:return E.hotGlobalConfigGroup?v.return(mn()):(Y=new _.P7("Config not available in ytConfig"),_.Xx(Y),v.return(Promise.reject(Y)))}})},KFr=function(E){var B,I,T,e,c,Y;
return _.a(function(v){switch(v.nextAddress){case 1:if(E.coldGlobalConfigGroup)return v.return(jHz());if(!E.isConfigDbInitialized)return B=H7("getColdConfig IDB not initialized"),_.Xx(B),v.return(Promise.reject(B));I=UF();T=_.HA("TIME_CREATED_MS");if(!I){e=H7("getColdConfig");_.Xx(e);v.jumpTo(2);break}return _.C(v,KMc(I),3);case 3:if((c=v.yieldResult)&&c.timestamp>T)return AKr(E,c.config),DWU(E,c.configData),kFZ(E,c.hashData),v.return(jHz());case 2:faz(E);if(!(I&&E.coldGlobalConfigGroup&&E.coldHashData&&
E.configData)){v.jumpTo(4);break}return _.C(v,DUD(E.coldGlobalConfigGroup,E.coldHashData,E.configData,I,T),4);case 4:return E.coldGlobalConfigGroup?v.return(jHz()):(Y=new _.P7("Config not available in ytConfig"),_.Xx(Y),v.return(Promise.reject(Y)))}})},UWu=function(E){if(!E.hotGlobalConfigGroup||!E.coldGlobalConfigGroup){if(!UF()){var B=H7("scheduleGetConfigs");
_.Xx(B)}E.initJob||(E.initJob=_.Ll.addLowPriorityJob(function(){return _.a(function(I){switch(I.nextAddress){case 1:return _.q7(I,2),_.C(I,FFt(E),4);case 4:_.W7(I,3);break;case 2:_.RG(I);case 3:return _.q7(I,5),_.C(I,KFr(E),7);case 7:_.W7(I,6);break;case 5:_.RG(I);case 6:E.initJob&&(E.initJob=0),_.ER(I)}})},100))}},Egf=function(E,B,I){var T,e,c;
return _.a(function(Y){switch(Y.nextAddress){case 1:if(!_.d("start_client_gcf")){Y.jumpTo(0);break}I&&oVl(E,I);E.setHotHashData(B);T=UF();if(!T){Y.jumpTo(3);break}if(I){Y.jumpTo(4);break}return _.C(Y,RSB(T),5);case 5:e=Y.yieldResult,I=(c=e)==null?void 0:c.config;case 4:return _.C(Y,FMc(I,B,T),3);case 3:if(I)for(var v=I,y=_.p(E.configUpdateService.sharedHotConfigJobQueue),Z=y.next();!Z.done;Z=y.next())Z=Z.value,Z(v);_.ER(Y)}})},BX4=function(E,B,I){var T,e,c,Y;
return _.a(function(v){if(v.nextAddress==1){if(!_.d("start_client_gcf"))return v.jumpTo(0);kFZ(E,B);return(T=UF())?I?v.jumpTo(4):_.C(v,KMc(T),5):v.jumpTo(0)}v.nextAddress!=4&&(e=v.yieldResult,I=(c=e)==null?void 0:c.config);if(!I)return v.jumpTo(0);Y=I.configData;return _.C(v,DUD(I,B,Y,T),0)})},zDG=function(){var E=tsZ(),B=(0,_.VZ)()-E.debounceTimer;
if(!(E.debounceTimer!==0&&B<_.RI("send_config_hash_timer"))){B=_.WA("yt.gcf.config.coldConfigData");var I=_.WA("yt.gcf.config.hotHashData"),T=_.WA("yt.gcf.config.coldHashData");B&&I&&T&&(E.debounceTimer=(0,_.VZ)());return{coldConfigData:B,hotHashData:I,coldHashData:T}}},faz=function(E){AKr(E,_.HA("RAW_COLD_CONFIG_GROUP"));
kFZ(E,_.HA("SERIALIZED_COLD_HASH_DATA"));var B;DWU(E,(B=E.coldGlobalConfigGroup)==null?void 0:B.configData)},Vs$=function(E){oVl(E,_.HA("RAW_HOT_CONFIG_GROUP"));
E.setHotHashData(_.HA("SERIALIZED_HOT_HASH_DATA"))},oVl=function(E,B){E.hotGlobalConfigGroup=B;
_.ka("yt.gcf.config.hotConfigGroup",E.hotGlobalConfigGroup||null)},AKr=function(E,B){E.coldGlobalConfigGroup=B;
_.ka("yt.gcf.config.coldConfigGroup",E.coldGlobalConfigGroup||null)};
zF.prototype.setHotHashData=function(E){this.hotHashData=E;_.ka("yt.gcf.config.hotHashData",this.hotHashData||null)};
var kFZ=function(E,B){E.coldHashData=B;_.ka("yt.gcf.config.coldHashData",E.coldHashData||null)},DWU=function(E,B){E.configData=B;
_.ka("yt.gcf.config.coldConfigData",E.configData||null)},mn=function(){return _.WA("yt.gcf.config.hotConfigGroup")},jHz=function(){return _.WA("yt.gcf.config.coldConfigGroup")};var en={},Rlz=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";en.assign=function(E){for(var B=Array.prototype.slice.call(arguments,1);B.length;){var I=B.shift();if(I){if(typeof I!=="object")throw new TypeError("Vc`"+I);for(var T in I)Object.prototype.hasOwnProperty.call(I,T)&&(E[T]=I[T])}}return E};
en.shrinkBuf=function(E,B){if(E.length===B)return E;if(E.subarray)return E.subarray(0,B);E.length=B;return E};
var Equ={arraySet:function(E,B,I,T,e){if(B.subarray&&E.subarray)E.set(B.subarray(I,I+T),e);else for(var c=0;c<T;c++)E[e+c]=B[I+c]},
flattenChunks:function(E){var B,I;var T=I=0;for(B=E.length;T<B;T++)I+=E[T].length;var e=new Uint8Array(I);T=I=0;for(B=E.length;T<B;T++){var c=E[T];e.set(c,I);I+=c.length}return e}},BlX={arraySet:function(E,B,I,T,e){for(var c=0;c<T;c++)E[e+c]=B[I+c]},
flattenChunks:function(E){return[].concat.apply([],E)}};
en.setTyped=function(){Rlz?(en.Buf8=Uint8Array,en.Buf16=Uint16Array,en.Buf32=Int32Array,en.assign(en,Equ)):(en.Buf8=Array,en.Buf16=Array,en.Buf32=Array,en.assign(en,BlX))};
en.setTyped();var $qN=!0;try{new Uint8Array(1)}catch(E){$qN=!1}
var RD6=function(E){var B,I,T=E.length,e=0;for(B=0;B<T;B++){var c=E.charCodeAt(B);if((c&64512)===55296&&B+1<T){var Y=E.charCodeAt(B+1);(Y&64512)===56320&&(c=65536+(c-55296<<10)+(Y-56320),B++)}e+=c<128?1:c<2048?2:c<65536?3:4}var v=new en.Buf8(e);for(B=I=0;I<e;B++)c=E.charCodeAt(B),(c&64512)===55296&&B+1<T&&(Y=E.charCodeAt(B+1),(Y&64512)===56320&&(c=65536+(c-55296<<10)+(Y-56320),B++)),c<128?v[I++]=c:(c<2048?v[I++]=192|c>>>6:(c<65536?v[I++]=224|c>>>12:(v[I++]=240|c>>>18,v[I++]=128|c>>>12&63),v[I++]=
128|c>>>6&63),v[I++]=128|c&63);return v};var bOB={};bOB=function(E,B,I,T){var e=E&65535|0;E=E>>>16&65535|0;for(var c;I!==0;){c=I>2E3?2E3:I;I-=c;do e=e+B[T++]|0,E=E+e|0;while(--c);e%=65521;E%=65521}return e|E<<16|0};for(var QI={},Q4,IAu=[],Tlz=0;Tlz<256;Tlz++){Q4=Tlz;for(var e0$=0;e0$<8;e0$++)Q4=Q4&1?3988292384^Q4>>>1:Q4>>>1;IAu[Tlz]=Q4}QI=function(E,B,I,T){I=T+I;for(E^=-1;T<I;T++)E=E>>>8^IAu[(E^B[T])&255];return E^-1};var ax={};ax={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 OO4=[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],MYt=[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],Krf=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],XND=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],w7=Array(576);Bn(w7);var ZD=Array(60);Bn(ZD);var iy=Array(512);Bn(iy);var ly=Array(256);Bn(ly);var nOt=Array(29);Bn(nOt);var HOJ=Array(30);Bn(HOJ);var qKc,Frt,DfQ,VYc=!1;var uy;
uy=[new s4(0,0,0,0,function(E,B){var I=65535;for(I>E.pending_buf_size-5&&(I=E.pending_buf_size-5);;){if(E.lookahead<=1){d7(E);if(E.lookahead===0&&B===0)return 1;if(E.lookahead===0)break}E.strstart+=E.lookahead;E.lookahead=0;var T=E.block_start+I;if(E.strstart===0||E.strstart>=T)if(E.lookahead=E.strstart-T,E.strstart=T,Pn(E,!1),E.strm.avail_out===0)return 1;if(E.strstart-E.block_start>=E.w_size-262&&(Pn(E,!1),E.strm.avail_out===0))return 1}E.insert=0;if(B===4)return Pn(E,!0),E.strm.avail_out===0?3:
4;E.strstart>E.block_start&&Pn(E,!1);return 1}),
new s4(4,4,8,4,oOc),new s4(4,5,16,8,oOc),new s4(4,6,32,32,oOc),new s4(4,4,16,16,hI),new s4(8,16,32,32,hI),new s4(8,16,128,128,hI),new s4(8,32,128,256,hI),new s4(32,128,258,1024,hI),new s4(32,258,258,4096,hI)];var fBd={};fBd=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 ENc=Object.prototype.toString;
tYD.prototype.push=function(E,B){var I=this.strm,T=this.options.chunkSize;if(this.ended)return!1;var e=B===~~B?B:B===!0?4:0;typeof E==="string"?I.input=RD6(E):ENc.call(E)==="[object ArrayBuffer]"?I.input=new Uint8Array(E):I.input=E;I.next_in=0;I.avail_in=I.input.length;do{I.avail_out===0&&(I.output=new en.Buf8(T),I.next_out=0,I.avail_out=T);E=kaD(I,e);if(E!==1&&E!==0)return lAV(this,E),this.ended=!0,!1;if(I.avail_out===0||I.avail_in===0&&(e===4||e===2))if(this.options.to==="string"){var c=en.shrinkBuf(I.output,
I.next_out);B=c;c=c.length;if(c<65537&&(B.subarray&&$qN||!B.subarray))B=String.fromCharCode.apply(null,en.shrinkBuf(B,c));else{for(var Y="",v=0;v<c;v++)Y+=String.fromCharCode(B[v]);B=Y}this.chunks.push(B)}else B=en.shrinkBuf(I.output,I.next_out),this.chunks.push(B)}while((I.avail_in>0||I.avail_out===0)&&E!==1);if(e===4)return(I=this.strm)&&I.state?(T=I.state.status,T!==42&&T!==69&&T!==73&&T!==91&&T!==103&&T!==113&&T!==666?E=vn(I,-2):(I.state=null,E=T===113?vn(I,-3):0)):E=-2,lAV(this,E),this.ended=
!0,E===0;e===2&&(lAV(this,0),I.avail_out=0);return!0};
var lAV=function(E,B){B===0&&(E.result=E.options.to==="string"?E.chunks.join(""):en.flattenChunks(E.chunks));E.chunks=[];E.err=B;E.msg=E.strm.msg};var cJ6=typeof TextEncoder!=="undefined"?new TextEncoder:null,nNi=cJ6?function(E){return cJ6.encode(E)}:function(E){E=_.vp(E);
for(var B=new Uint8Array(E.length),I=0;I<B.length;I++)B[I]=E[I];return B};var YHG={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},vQB={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var dd=function(E,B){this.version=E;this.args=B};
dd.prototype.serialize=function(){return{version:this.version,args:this.args}};var eJF=function(E,B){this.topic=E;this.dataClass=B};
eJF.prototype.toString=function(){return this.topic};var igV=_.WA("ytPubsub2Pubsub2Instance")||new _.Ya;_.Ya.prototype.subscribe=_.Ya.prototype.subscribe;_.Ya.prototype.unsubscribeByKey=_.Ya.prototype.unsubscribeByKey;_.Ya.prototype.publish=_.Ya.prototype.publish;_.Ya.prototype.clear=_.Ya.prototype.clear;_.ka("ytPubsub2Pubsub2Instance",igV);var TKc=_.WA("ytPubsub2Pubsub2SubscribedKeys")||{};_.ka("ytPubsub2Pubsub2SubscribedKeys",TKc);var c2d=_.WA("ytPubsub2Pubsub2TopicToKeys")||{};_.ka("ytPubsub2Pubsub2TopicToKeys",c2d);
var lmd=_.WA("ytPubsub2Pubsub2IsAsync")||{};_.ka("ytPubsub2Pubsub2IsAsync",lmd);_.ka("ytPubsub2Pubsub2SkipSubKey",null);var Pmd=void 0,wPi=void 0;var L_G=_.RI("max_body_size_to_compress",5E5),xgG=_.RI("min_body_size_to_compress",500),GG=!0,NKc=0,O4=0,H9B=_.RI("compression_performance_threshold_lr",250),gNJ=_.RI("slow_compressions_before_abandon_count",4),QYt=!1,dgc=new Map,O96=1,GPt=!0;_.$U(nl,W_B);nl.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 puh=function(E,B,I){I||(I=0);var T=E.W_;if(typeof B==="string")for(var e=0;e<16;e++)T[e]=B.charCodeAt(I)<<24|B.charCodeAt(I+1)<<16|B.charCodeAt(I+2)<<8|B.charCodeAt(I+3),I+=4;else for(e=0;e<16;e++)T[e]=B[I]<<24|B[I+1]<<16|B[I+2]<<8|B[I+3],I+=4;for(B=16;B<80;B++)I=T[B-3]^T[B-8]^T[B-14]^T[B-16],T[B]=(I<<1|I>>>31)&4294967295;B=E.chain_[0];I=E.chain_[1];e=E.chain_[2];for(var c=E.chain_[3],Y=E.chain_[4],v,y,Z=0;Z<80;Z++)Z<40?Z<20?(v=c^I&(e^c),y=1518500249):(v=I^e^c,y=1859775393):Z<60?(v=I&e|c&(I|e),
y=2400959708):(v=I^e^c,y=3395469782),v=(B<<5|B>>>27)+v+Y+y+T[Z]&4294967295,Y=c,c=e,e=(I<<30|I>>>2)&4294967295,I=B,B=v;E.chain_[0]=E.chain_[0]+B&4294967295;E.chain_[1]=E.chain_[1]+I&4294967295;E.chain_[2]=E.chain_[2]+e&4294967295;E.chain_[3]=E.chain_[3]+c&4294967295;E.chain_[4]=E.chain_[4]+Y&4294967295};
nl.prototype.update=function(E,B){if(E!=null){B===void 0&&(B=E.length);for(var I=B-this.blockSize,T=0,e=this.buf_,c=this.inbuf_;T<B;){if(c==0)for(;T<=I;)puh(this,E,T),T+=this.blockSize;if(typeof E==="string")for(;T<B;){if(e[c]=E.charCodeAt(T),++c,++T,c==this.blockSize){puh(this,e);c=0;break}}else for(;T<B;)if(e[c]=E[T],++c,++T,c==this.blockSize){puh(this,e);c=0;break}}this.inbuf_=c;this.total_+=B}};
nl.prototype.digest=function(){var E=[],B=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var I=this.blockSize-1;I>=56;I--)this.buf_[I]=B&255,B/=256;puh(this,this.buf_);for(I=B=0;I<5;I++)for(var T=24;T>=0;T-=8)E[B]=this.chain_[I]>>T&255,++B;return E};var b9i;var sH=function(E){var B=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(P){B.databaseToken=P},
triggerThrottle:function(){B.throttledSend()},
cancelThrottle:function(){B.cancelThrottledSend()},
immediateSend:function(P){return _.a(function(z){return _.C(z,B.immediateSend(P),0)})},
requestWithinAgeLimit:function(P,z){return B.requestWithinAgeLimit(P,z)},
retryQueuedRequests:function(){B.retryQueuedRequests()}};
var I;this.throttleTimeout=(I=E.throttleTimeout)!=null?I:100;var T;this.retryMaxAttempts=(T=E.retryMaxAttempts)!=null?T:1;var e;this.requestAgeLimitMs=(e=E.requestAgeLimitMs)!=null?e:2592E6;var c;this.queuedRequestAgeLimitMs=(c=E.queuedRequestAgeLimitMs)!=null?c:12E4;var Y;this.retryDelayMs=(Y=E.retryDelayMs)!=null?Y:5E3;var v;this.databaseToken=(v=E.databaseToken)!=null?v:void 0;this.enableCleaning=!!E.enableCleaning;var y;this.cleaningRate=(y=E.cleaningRate)!=null?y:.1;var Z;this.potentialEsfErrorLimit=
(Z=E.potentialEsfErrorLimit)!=null?Z:10;E.handleError&&(this.handleError=E.handleError);E.handleWarning&&(this.handleWarning=E.handleWarning);E.disableYtIdbTransactions&&(this.disableYtIdbTransactions=E.disableYtIdbTransactions);E.bypassDbTokenDependency&&(this.bypassDbTokenDependency=E.bypassDbTokenDependency);this.getBooleanFlag=E.getBooleanFlag;this.jobManager=E.jobManager;this.logsStore=E.logsStore;this.networkManager=E.networkManager;this.sendFn=E.sendFn;this.onlineEvent=E.onlineEvent;this.offlineEvent=
E.offlineEvent;hL(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&YpZ(this)},YpZ=function(E){hL(E)&&!E.disableYtIdbTransactions&&(E.initialized=!0,E.enableCleaning&&Math.random()<=E.cleaningRate&&E.logsStore.cleanLogsStore(E.databaseToken),E.retryQueuedRequests(),E.networkManager.isNetworkAvailable()&&E.throttledSend(),E.networkManager.listen(E.onlineEvent,E.throttledSend.bind(E)),E.networkManager.listen(E.offlineEvent,E.cancelThrottledSend.bind(E)))};
_.l=sH.prototype;_.l.writeThenSend=function(E,B){var I=this;B=B===void 0?{}:B;if(hL(this)&&this.initialized){var T={url:E,options:B,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(T,this.databaseToken).then(function(e){T.id=e;I.networkManager.isNetworkAvailable()&&I.immediateSend(T)}).catch(function(e){I.immediateSend(T);
aAZ(I,e)})}else this.sendFn(E,B)};
_.l.sendThenWrite=function(E,B,I){var T=this;B=B===void 0?{}:B;if(hL(this)&&this.initialized){var e={url:E,options:B,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(e.skipRetry=I);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var c=B.onError?B.onError:function(){};
B.onError=function(Y,v){return _.a(function(y){if(y.nextAddress==1)return _.C(y,T.logsStore.set(e,T.databaseToken).catch(function(Z){aAZ(T,Z)}),2);
c(Y,v);_.ER(y)})}}this.sendFn(E,B,e.skipRetry)}else this.logsStore.set(e,this.databaseToken).catch(function(Y){T.sendFn(E,B,e.skipRetry);
aAZ(T,Y)})}else this.sendFn(E,B,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&I)};
_.l.sendAndWrite=function(E,B){var I=this;B=B===void 0?{}:B;if(hL(this)&&this.initialized){var T={url:E,options:B,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,c=B.onSuccess?B.onSuccess:function(){};
T.options.onSuccess=function(Y,v){T.id!==void 0?I.logsStore.deleteRequest(T.id,I.databaseToken):e=!0;I.networkManager.networkStatusHint&&I.getBooleanFlag&&I.getBooleanFlag("vss_network_hint")&&I.networkManager.networkStatusHint(!0);c(Y,v)};
this.sendFn(T.url,T.options,void 0,!0);this.logsStore.set(T,this.databaseToken).then(function(Y){T.id=Y;e&&I.logsStore.deleteRequest(T.id,I.databaseToken)}).catch(function(Y){aAZ(I,Y)})}else this.sendFn(E,B,void 0,!0)};
_.l.throttledSend=function(){var E=this;if(!hL(this))throw Error("Yc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,E.logsStore.getMostRecentByStatus("NEW",E.databaseToken),2);if(I.nextAddress!=3)return B=I.yieldResult,B?_.C(I,E.immediateSend(B),3):(E.cancelThrottledSend(),I.return());E.intervalJob&&(E.intervalJob=0,E.throttledSend());_.ER(I)})},this.throttleTimeout))};
_.l.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.l.immediateSend=function(E){var B=this,I;return _.a(function(T){switch(T.nextAddress){case 1:if(!hL(B))throw Error("Zc");if(E.id===void 0){T.jumpTo(2);break}return _.C(T,B.logsStore.markAsQueued(E.id,B.databaseToken),3);case 3:(I=T.yieldResult)||B.handleWarning(Error("$c"));case 2:if(B.requestWithinAgeLimit(E,B.requestAgeLimitMs)){T.jumpTo(4);break}B.handleWarning(Error("ad"));if(E.id===void 0){T.jumpTo(5);break}return _.C(T,B.logsStore.deleteRequest(E.id,B.databaseToken),5);case 5:return T.return();
case 4:E.skipRetry||(E=vqV(B,E));if(!E){T.jumpTo(0);break}if(!E.skipRetry||E.id===void 0){T.jumpTo(8);break}return _.C(T,B.logsStore.deleteRequest(E.id,B.databaseToken),8);case 8:B.sendFn(E.url,E.options,!!E.skipRetry),_.ER(T)}})};
var vqV=function(E,B){if(!hL(E))throw Error("bd");var I=B.options.onError?B.options.onError:function(){};
B.options.onError=function(e,c){var Y,v,y,Z;return _.a(function(P){switch(P.nextAddress){case 1:Y=kPJ(c);(v=tjd(c))&&E.getBooleanFlag&&E.getBooleanFlag("web_enable_error_204")&&E.handleError(Error("cd"),B.url,c);if(!(E.getBooleanFlag&&E.getBooleanFlag("nwl_consider_error_code")&&Y||E.getBooleanFlag&&!E.getBooleanFlag("nwl_consider_error_code")&&E.potentialEsfErrorCounter<=E.potentialEsfErrorLimit)){P.jumpTo(2);break}if(!E.networkManager.sendNetworkCheckRequest){P.jumpTo(3);break}return _.C(P,E.networkManager.sendNetworkCheckRequest(),
3);case 3:if(E.networkManager.isNetworkAvailable()){P.jumpTo(2);break}I(e,c);if(!E.getBooleanFlag||!E.getBooleanFlag("nwl_consider_error_code")||((y=B)==null?void 0:y.id)===void 0){P.jumpTo(6);break}return _.C(P,E.logsStore.resetRequest(B.id,E.databaseToken,!1),6);case 6:return P.return();case 2:if(E.getBooleanFlag&&E.getBooleanFlag("nwl_consider_error_code")&&!Y&&E.potentialEsfErrorCounter>E.potentialEsfErrorLimit)return P.return();E.potentialEsfErrorCounter++;if(((Z=B)==null?void 0:Z.id)===void 0){P.jumpTo(8);
break}return B.sendCount<E.retryMaxAttempts?_.C(P,E.logsStore.resetRequest(B.id,E.databaseToken,!0,v?!1:void 0),12):_.C(P,E.logsStore.deleteRequest(B.id,E.databaseToken),8);case 12:E.jobManager.addLowPriorityJob(function(){E.networkManager.isNetworkAvailable()&&E.throttledSend()},E.retryDelayMs);
case 8:I(e,c),_.ER(P)}})};
var T=B.options.onSuccess?B.options.onSuccess:function(){};
B.options.onSuccess=function(e,c){var Y;return _.a(function(v){if(v.nextAddress==1)return((Y=B)==null?void 0:Y.id)===void 0?v.jumpTo(2):_.C(v,E.logsStore.deleteRequest(B.id,E.databaseToken),2);E.networkManager.networkStatusHint&&E.getBooleanFlag&&E.getBooleanFlag("vss_network_hint")&&E.networkManager.networkStatusHint(!0);T(e,c);_.ER(v)})};
return B};
sH.prototype.requestWithinAgeLimit=function(E,B){E=E.timestamp;return this.now()-E>=B?!1:!0};
sH.prototype.retryQueuedRequests=function(){var E=this;if(!hL(this))throw Error("dd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(B){B&&!E.requestWithinAgeLimit(B,E.queuedRequestAgeLimitMs)?E.jobManager.addLowPriorityJob(function(){return _.a(function(I){if(I.nextAddress==1)return B.id===void 0?I.jumpTo(2):_.C(I,E.logsStore.resetRequest(B.id,E.databaseToken),2);E.retryQueuedRequests();_.ER(I)})}):E.networkManager.isNetworkAvailable()&&E.throttledSend()})};
var aAZ=function(E,B){E.writeError&&!E.networkManager.isNetworkAvailable()?E.writeError(B):E.handleError(B)},hL=function(E){return!!E.databaseToken||E.bypassDbTokenDependency};var fmc;var TXt={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519};var yJR={},Iki=fF("ServiceWorkerLogsDatabase",{objectStores:(yJR.SWHealthLog={addedAtVersion:1},yJR),shared:!0,upgrade:function(E,B){B(1)&&g7(N3(E,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Cji={},yRi=0;var zuc;var up=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},r7=function(){if(!up.instance){var E=_.WA("yt.networkRequestMonitor.instance")||new up;
_.ka("yt.networkRequestMonitor.instance",E);up.instance=E}return up.instance};
up.prototype.requestComplete=function(E,B){B&&(this.anyRequestHasSucceeded=!0);E=this.removeParams(E);this.requestMap.get(E)||this.requestMap.set(E,B)};
up.prototype.isEndpointCFR=function(E){E=this.removeParams(E);return(E=this.requestMap.get(E))?!1:E===!1&&this.anyRequestHasSucceeded?!0:null};
up.prototype.removeParams=function(E){return E.split("?")[0]};
up.prototype.removeParams=up.prototype.removeParams;up.prototype.isEndpointCFR=up.prototype.isEndpointCFR;up.prototype.requestComplete=up.prototype.requestComplete;up.getInstance=r7;var LL=function(E){_.ms.call(this);var B=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=E!=null?E:{addLowPriorityJob:function(e,c){return setTimeout(e,c)},
cancelJob:function(e){clearTimeout(e)}};
var I,T;this.isOnline=(T=(I=window.navigator)==null?void 0:I.onLine)!=null?T:!0;this.onNavigatorChange=function(){return _.a(function(e){return _.C(e,CZu(B),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||wuD(this)};
_.L(LL,_.ms);LL.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete LL.instance};
LL.prototype.isNetworkAvailable=function(){return this.isOnline};
var wuD=function(E){E.pollingJob=E.jobManager.addLowPriorityJob(function(){var B;return _.a(function(I){if(I.nextAddress==1)return E.isOnline?((B=window.navigator)==null?0:B.onLine)?I.jumpTo(3):_.C(I,CZu(E),3):_.C(I,CZu(E),3);wuD(E);_.ER(I)})},3E4)},CZu=function(E,B){return E.networkRequestPromise?E.networkRequestPromise:E.networkRequestPromise=new Promise(function(I){var T,e,c,Y;
return _.a(function(v){switch(v.nextAddress){case 1:return T=window.AbortController?new window.AbortController:void 0,c=(e=T)==null?void 0:e.signal,Y=!1,_.q7(v,2,3),T&&(E.abortTimeoutKey=E.jobManager.addLowPriorityJob(function(){T.abort()},B||2E4)),_.C(v,fetch("/generate_204",{method:"HEAD",
signal:c}),5);case 5:Y=!0;case 3:_.FL(v);E.networkRequestPromise=void 0;E.abortTimeoutKey&&(E.jobManager.cancelJob(E.abortTimeoutKey),E.abortTimeoutKey=0);Y!==E.isOnline&&(E.isOnline=Y,E.isOnline?E.dispatchEvent("networkstatus-online"):E.dispatchEvent("networkstatus-offline"));I(Y);_.Kr(v,0);break;case 2:_.RG(v),Y=!1,v.jumpTo(3)}})})};var xQ=function(){_.ms.call(this);var E=this;this.shouldFlushErrors=!1;LL.instance||(LL.instance=new LL(_.Ll));this.sharedNetworkStatusManager=LL.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(E.shouldFlushErrors&&_.d("offline_error_handling")){var B=mKt().get("errors",!0);if(B){for(var I in B)if(B[I]){var T=new _.P7(I,"sent via offline_errors");T.name=B[I].name;T.stack=B[I].stack;T.level=B[I].level;_.SI(T)}mKt().set("errors",{},2592E3,!0)}}})};
_.L(xQ,_.ms);var ZgZ=function(){if(!xQ.instance){var E=_.WA("yt.networkStatusManager.instance")||new xQ;_.ka("yt.networkStatusManager.instance",E);xQ.instance=E}return xQ.instance};
_.l=xQ.prototype;_.l.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.l.networkStatusHint=function(E){this.sharedNetworkStatusManager.isOnline=E};
_.l.getWindowStatus=function(){var E=window.navigator.onLine;return E===void 0?!0:E};
_.l.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.l.listen=function(E,B){return this.sharedNetworkStatusManager.listen(E,B)};
_.l.sendNetworkCheckRequest=function(E){E=CZu(this.sharedNetworkStatusManager,E);E.then(function(B){_.d("use_cfr_monitor")&&r7().requestComplete("generate_204",B)});
return E};
xQ.prototype.sendNetworkCheckRequest=xQ.prototype.sendNetworkCheckRequest;xQ.prototype.listen=xQ.prototype.listen;xQ.prototype.enableErrorFlushing=xQ.prototype.enableErrorFlushing;xQ.prototype.getWindowStatus=xQ.prototype.getWindowStatus;xQ.prototype.networkStatusHint=xQ.prototype.networkStatusHint;xQ.prototype.isNetworkAvailable=xQ.prototype.isNetworkAvailable;xQ.getInstance=ZgZ;_.Xg=function(E){E=E===void 0?{}:E;_.ms.call(this);var B=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=ZgZ();var I=_.WA("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);I&&(E.rateLimit?(this.rateLimit=E.rateLimit,I("networkstatus-online",function(){PZu(B,"publicytnetworkstatus-online")}),I("networkstatus-offline",function(){PZu(B,"publicytnetworkstatus-offline")})):(I("networkstatus-online",function(){B.dispatchEvent("publicytnetworkstatus-online")}),I("networkstatus-offline",
function(){B.dispatchEvent("publicytnetworkstatus-offline")})))};
_.L(_.Xg,_.ms);_.Xg.prototype.isNetworkAvailable=function(){var E=_.WA("yt.networkStatusManager.instance.isNetworkAvailable");return E?E.bind(this.nsmInstance)():!0};
_.Xg.prototype.networkStatusHint=function(E){var B=_.WA("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);B&&B(E)};
_.Xg.prototype.sendNetworkCheckRequest=function(E){var B=this,I;return _.a(function(T){I=_.WA("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(B.nsmInstance);return _.d("skip_network_check_if_cfr")&&r7().isEndpointCFR("generate_204")?T.return(new Promise(function(e){var c;B.networkStatusHint(((c=window.navigator)==null?void 0:c.onLine)||!0);e(B.isNetworkAvailable())})):I?T.return(I(E)):T.return(!0)})};
var PZu=function(E,B){E.rateLimit?E.lastJobTime?(_.Ll.cancelJob(E.schedulerJob),E.schedulerJob=_.Ll.addLowPriorityJob(function(){E.lastPublicSignalSent!==B&&(E.dispatchEvent(B),E.lastPublicSignalSent=B,E.lastJobTime=(0,_.VZ)())},E.rateLimit-((0,_.VZ)()-E.lastJobTime))):(E.dispatchEvent(B),E.lastPublicSignalSent=B,E.lastJobTime=(0,_.VZ)()):E.dispatchEvent(B)};var uNf,Ge=function(){sH.call(this,{logsStore:{cleanLogsStore:BEf,deleteRequest:EGB,getMostRecentByStatus:DgB,markAsQueued:K_i,resetRequest:RJB,set:F_d},networkManager:_.Lh4(),handleError:function(E,B,I){var T,e=I==null?void 0:(T=I.error)==null?void 0:T.code;if(e===400||e===415){var c;E=new _.P7(E.message,B,I==null?void 0:(c=I.error)==null?void 0:c.code);_.Xx(E,void 0,void 0,void 0,!0)}else _.SI(E)},
handleWarning:_.Xx,sendFn:huc,now:_.VZ,writeError:QNB,jobManager:_.xm(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.RI("potential_esf_error_limit",10),getBooleanFlag:_.d,disableYtIdbTransactions:!(_.ZZ()&&_.xKi())});this.initializationPromise=new _.Tv;_.d("networkless_immediately_drop_all_requests")&&$Ki();tcD("LogsDatabaseV2")};
_.L(Ge,sH);_.mql=function(){var E=_.WA("yt.networklessRequestController.instance");E||(E=new Ge,_.ka("yt.networklessRequestController.instance",E),_.d("networkless_logging")&&_.tg().then(function(B){E.databaseToken=B;YpZ(E);E.initializationPromise.resolve();E.enableCleaning&&Math.random()<=E.cleaningRate&&E.databaseToken&&eui(E.databaseToken);_.d("networkless_immediately_drop_sw_health_store")&&z0t(E)}));
return E};
Ge.prototype.writeThenSend=function(E,B){B||(B={});B=sNG(E,B);_.ZZ()||(this.initialized=!1);sH.prototype.writeThenSend.call(this,E,B)};
Ge.prototype.sendThenWrite=function(E,B,I){B||(B={});B=sNG(E,B);_.ZZ()||(this.initialized=!1);sH.prototype.sendThenWrite.call(this,E,B,I)};
Ge.prototype.sendAndWrite=function(E,B){B||(B={});B=sNG(E,B);_.ZZ()||(this.initialized=!1);sH.prototype.sendAndWrite.call(this,E,B)};
Ge.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var z0t=function(E){var B;_.a(function(I){if(!E.databaseToken)throw B=H7("clearSWHealthLogsDb"),B;return I.return(lki(E.databaseToken).catch(function(T){E.handleError(T)}))})};_.Oqc=!1;_.Gvd=_.$i.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.Oqc};_.ka("ytNetworklessLoggingInitializationOptions",_.Gvd);var d9=function(E){var B=this;this.config_=null;E?this.config_=E:BYG()&&(this.config_=_.FQ());_.PC(_.Ll,function(){Ugi(B)},5E3)};
d9.prototype.isReady=function(){!this.config_&&BYG()&&(this.config_=_.FQ());return!!this.config_};
var jYi=function(E,B,I,T){!_.HA("VISITOR_DATA")&&B!=="visitor_id"&&Math.random()<.01&&_.Xx(new _.P7("Missing VISITOR_DATA when sending innertube request.",B,I,T));if(!E.isReady()){var e=new _.P7("innertube xhrclient not ready",B,I,T);_.SI(e);throw e;}var c={headers:T.headers||{},method:"POST",postParams:I,postBody:T.postBody,postBodyFormat:T.postBodyFormat||"JSON",onTimeout:function(){T.onTimeout()},
onFetchTimeout:T.onTimeout,onSuccess:function(z,m){if(T.onSuccess)T.onSuccess(m)},
onFetchSuccess:function(z){if(T.onSuccess)T.onSuccess(z)},
onError:function(z,m){if(T.onError)T.onError(m)},
onFetchError:function(z){if(T.onError)T.onError(z)},
timeout:T.timeout,withCredentials:!0,compress:T.compress};c.headers["Content-Type"]||(c.headers["Content-Type"]="application/json");var Y="";(e=E.config_.innertubeHostOverride)&&(Y=e);var v=E.config_.innertubeUseThirdPartyAuth||!1,y=_.P1c(v,Y,T);Object.assign(c.headers,y);c.headers.Authorization&&!Y&&v&&(c.headers["x-origin"]=window.location.origin);var Z=_.jI(Y+("/youtubei/"+E.config_.innertubeApiVersion+"/"+B),{alt:"json"}),P=function(z){z=z===void 0?!1:z;var m;if(T.retry&&Y!="www.youtube-nocookie.com"&&
(z||_.d("skip_ls_gel_retry")||c.headers["Content-Type"]!=="application/json"||(m=oNG(B,I,y,v)),m)){var u=c.onSuccess,x=c.onFetchSuccess;c.onSuccess=function(W,U){A2J(m);u(W,U)};
I.onFetchSuccess=function(W,U){A2J(m);x(W,U)}}try{if(z&&T.retry&&!T.networklessOptions.bypassNetworkless)c.method="POST",T.networklessOptions.writeThenSend?_.mql().writeThenSend(Z,c):_.mql().sendAndWrite(Z,c);
else if(T.compress){var M=!T.networklessOptions.writeThenSend;if(c.postBody){var N=c.postBody;typeof N!=="string"&&(N=JSON.stringify(c.postBody));MjG(Z,N,c,_.iK,M)}else MjG(Z,JSON.stringify(c.postParams),c,Xu6,M)}else _.d("web_all_payloads_via_jspb")?_.iK(Z,c):Xu6(Z,c)}catch(W){if(W.name==="InvalidAccessError")m&&(A2J(m),m=0),_.Xx(Error("ed"));else throw W;}m&&_.PC(_.Ll,function(){Ugi(E)},5E3)};
_.nGQ()?XUQ().then(function(z){P(z)}):P(!1)};var b0c=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(b0c,_.LX);var Qj6=0,HqF=_.pa?"webkit":_.iq?"moz":_.cf?"ms":RIt?"o":"";_.ka("ytDomDomGetNextId",_.WA("ytDomDomGetNextId")||function(){return++Qj6});var dqV={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},fl=function(E){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(E=
E||window.event){this.event=E;for(var B in E)B in dqV||(this[B]=E[B]);this.scale=E.scale;this.rotation=E.rotation;var I=E.target||E.srcElement;I&&I.nodeType==3&&(I=I.parentNode);this.target=I;var T=E.relatedTarget;if(T)try{T=T.nodeName?T:null}catch(e){T=null}else this.type=="mouseover"?T=E.fromElement:this.type=="mouseout"&&(T=E.toElement);this.relatedTarget=T;this.clientX=E.clientX!=void 0?E.clientX:E.pageX;this.clientY=E.clientY!=void 0?E.clientY:E.pageY;this.keyCode=E.keyCode?E.keyCode:E.which;
this.charCode=E.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=E.altKey;this.ctrlKey=E.ctrlKey;this.shiftKey=E.shiftKey;this.metaKey=E.metaKey;this.pageX_=E.pageX;this.pageY_=E.pageY}}catch(e){}},h06=function(E){if(document.body&&document.documentElement){var B=document.body.scrollTop+document.documentElement.scrollTop;
E.pageX_=E.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);E.pageY_=E.clientY+B}};
fl.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
fl.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
fl.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var tI=_.$i.ytEventsEventsListeners||{};_.ka("ytEventsEventsListeners",tI);var X8i=_.$i.ytEventsEventsCounter||{count:0};_.ka("ytEventsEventsCounter",X8i);var rRD=_.PT(function(){var E=!1;try{var B=Object.defineProperty({},"capture",{get:function(){E=!0}});
window.addEventListener("test",null,B)}catch(I){}return E});_.$U(q3,_.Cx);q3.prototype.onMouseMove_=function(E){E.pageX_===void 0&&h06(E);var B=E.pageX_;E.pageY_===void 0&&h06(E);this.position_=new _.Cb(B,E.pageY_)};
q3.prototype.checkPosition_=function(){if(this.position_){var E=(0,_.VZ)();if(this.previousTime_!=0){var B=this.previousPosition_,I=this.position_,T=B.x-I.x;B=B.y-I.y;T=Math.sqrt(T*T+B*B)/(E-this.previousTime_);this.cycles_[this.index_]=Math.abs((T-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(I=B=0;I<4;I++)B+=this.cycles_[I]||0;B>=3&&this.callback_();this.previousVelocity_=T}this.previousTime_=E;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
q3.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.bqd(this.mouseListenerKey_)};var UKc={};var R2c=new _.F("rawColdConfigGroup");var KBt=new _.F("rawHotConfigGroup");var sjR=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(sjR,_.LX);var rGi=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(rGi,_.LX);var Za=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E,500)};
_.L(Za,_.LX);Za.prototype.getPayloadCase=function(){return _.Qm(this,u7V)};
Za.prototype.getContext=function(){return _.DZ(this,rGi,33)};
var u7V=[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];var tVt=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(tVt,_.LX);var Q3i=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Q3i,_.LX);Q3i.prototype.setVideoId=function(E){return iE(this,1,did,gs(E))};
Q3i.prototype.getPlaylistId=function(){return _.ee(this,yU(this,did,2))};
var did=[1,2];var b$B=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(b$B,_.LX);b$B.prototype.getContext=function(){return _.DZ(this,pi,1)};
b$B.prototype.getTier=function(){return _.na(this,7)};var LSX,Rx,EG;LSX=_.$i.ytPubsubPubsubInstance||new _.Ya;Rx=_.$i.ytPubsubPubsubSubscribedKeys||{};EG=_.$i.ytPubsubPubsubTopicToKeys||{};_.kvt=_.$i.ytPubsubPubsubIsSynchronous||{};_.Ya.prototype.subscribe=_.Ya.prototype.subscribe;_.Ya.prototype.unsubscribeByKey=_.Ya.prototype.unsubscribeByKey;_.Ya.prototype.publish=_.Ya.prototype.publish;_.Ya.prototype.clear=_.Ya.prototype.clear;_.ka("ytPubsubPubsubInstance",LSX);_.ka("ytPubsubPubsubTopicToKeys",EG);_.ka("ytPubsubPubsubIsSynchronous",_.kvt);
_.ka("ytPubsubPubsubSubscribedKeys",Rx);var $V=window;var OH=_.d("web_enable_lifecycle_monitoring")&&FhG()!==0,xqz=_.d("web_enable_lifecycle_monitoring");var Ogl=function(E){var B=this;var I=I===void 0?0:I;var T=T===void 0?_.xm():T;this.JSC$8701_defaultPriority=I;this.scheduler=T;this.completedResolver=new _.Tv;this.scheduledPayloads=E;for(E={i$jscomp$528:0};E.i$jscomp$528<this.scheduledPayloads.length;E={payload$jscomp$18:void 0,i$jscomp$528:E.i$jscomp$528},E.i$jscomp$528++)E.payload$jscomp$18=this.scheduledPayloads[E.i$jscomp$528],I=function(e){return function(){e.payload$jscomp$18.job();B.scheduledPayloads[e.i$jscomp$528].processed=!0;B.scheduledPayloads.every(function(c){return c.processed===
!0})&&B.completedResolver.resolve()}}(E),T=this.scheduler.addJob(I,Gkt(this,E.payload$jscomp$18)),this.scheduledPayloads[E.i$jscomp$528]=Object.assign({},E.payload$jscomp$18,{job:I,
jobId:T})};
Ogl.prototype.flushJobs=function(){var E=this,B=Array.from(this.scheduledPayloads.keys()).sort(function(T,e){return Gkt(E,E.scheduledPayloads[e])-Gkt(E,E.scheduledPayloads[T])});
B=_.p(B);for(var I=B.next();!I.done;I=B.next())I=this.scheduledPayloads[I.value],I.jobId===void 0||I.processed||(this.scheduler.cancelJob(I.jobId),this.scheduler.addJob(I.job,10))};
Ogl.prototype.cancel=function(){for(var E=_.p(this.scheduledPayloads),B=E.next();!B.done;B=E.next())B=B.value,B.jobId===void 0||B.processed||this.scheduler.cancelJob(B.jobId),B.processed=!0;this.completedResolver.resolve()};
var Gkt=function(E,B){var I;return(I=B.priority)!=null?I:E.JSC$8701_defaultPriority};var nL=function(E){this.state=E;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};OH&&DK6(this.state)};
nL.prototype.install=function(E){this.plugins.push(E);return this};
nL.prototype.uninstall=function(){var E=this;_.aG.apply(0,arguments).forEach(function(B){B=E.plugins.indexOf(B);B>-1&&E.plugins.splice(B,1)})};
nL.prototype.transition=function(E,B){var I=this;OH&&Khi(this.state);var T=this.transitions.find(function(c){return Array.isArray(c.from)?c.from.find(function(Y){return Y===I.state&&c.to===E}):c.from===I.state&&c.to===E});
if(T){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);nqZ(this,E,B);this.state=E;OH&&DK6(this.state);T=T.action.bind(this);var e=this.plugins.filter(function(c){return c[E]}).map(function(c){return c[E]});
T(M$6(this,e),B)}else throw Error("fd`"+this.state+"`"+E);};
var M$6=function(E,B){var I=B.filter(function(e){return Hg6(E,e)===10}),T=B.filter(function(e){return Hg6(E,e)!==10});
return E.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var e=_.aG.apply(0,arguments);return _.a(function(c){if(c.nextAddress==1)return _.C(c,E.runImmediateJobsAsync.apply(E,[I].concat(_.ad(e))),2);E.setJobSetWithScheduledJobs.apply(E,[T].concat(_.ad(e)));_.ER(c)})}:function(){var e=_.aG.apply(0,arguments);
E.runImmediateJobsSync.apply(E,[I].concat(_.ad(e)));E.setJobSetWithScheduledJobs.apply(E,[T].concat(_.ad(e)))}};
nL.prototype.runImmediateJobsSync=function(E){var B=_.aG.apply(1,arguments);_.xm();for(var I=_.p(E),T=I.next(),e={};!T.done;e={lifecycle$jscomp$2:void 0},T=I.next())e.lifecycle$jscomp$2=T.value,kg(function(c){return function(){Nlu(c.lifecycle$jscomp$2.name);E7B(function(){return c.lifecycle$jscomp$2.callback.apply(c.lifecycle$jscomp$2,_.ad(B))});
MB(c.lifecycle$jscomp$2.name)}}(e))};
nL.prototype.runImmediateJobsAsync=function(E){var B=_.aG.apply(1,arguments),I,T,e,c;return _.a(function(Y){Y.nextAddress==1&&(_.xm(),I=_.p(E),T=I.next(),e={});if(Y.nextAddress!=3){if(T.done)return Y.jumpTo(0);e.lifecycle$jscomp$3=T.value;e.asyncJobCompletion=void 0;c=function(v){return function(){Nlu(v.lifecycle$jscomp$3.name);var y=E7B(function(){return v.lifecycle$jscomp$3.callback.apply(v.lifecycle$jscomp$3,_.ad(B))});
Hvi(y)?v.asyncJobCompletion=_.d("web_lifecycle_error_handling_killswitch")?y.then(function(){MB(v.lifecycle$jscomp$3.name)}):y.then(function(){MB(v.lifecycle$jscomp$3.name)},function(Z){Ru4(Z);
MB(v.lifecycle$jscomp$3.name)}):MB(v.lifecycle$jscomp$3.name)}}(e);
kg(c);return e.asyncJobCompletion?_.C(Y,e.asyncJobCompletion,3):Y.jumpTo(3)}e={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};T=I.next();return Y.jumpTo(2)})};
nL.prototype.setJobSetWithScheduledJobs=function(E){var B=_.aG.apply(1,arguments),I=this,T=E.map(function(e){return{job:function(){Nlu(e.name);E7B(function(){return e.callback.apply(e,_.ad(B))});
MB(e.name)},
priority:Hg6(I,e)}});
T.length&&(this.jobSet=new Ogl(T))};
var Hg6=function(E,B){var I,T;return(T=(I=E.overridePriority)!=null?I:B.priority)!=null?T:0},Nlu=function(E){OH&&E&&DK6(E)},MB=function(E){OH&&E&&Khi(E)},nqZ=function(E,B,I){xqz&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+E.constructor.name+"] '"+E.state+"' to '"+B+"'"),console.log("with message: ",I),console.groupEnd())};
_.Up.Object.defineProperties(nL.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var gq6=function(E){nL.call(this,E===void 0?"none":E);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(){}}]},Sph;
_.L(gq6,nL);gq6.prototype.runApplicationNavigationBegin=function(E,B){var I=this;this.navigationTimer=_.PC(_.Ll,function(){I.currentState==="application_navigating"&&I.transition("none")},5E3);
E(B==null?void 0:B.event)};
gq6.prototype.runApplicationNavigationEnd=function(E,B){this.navigationTimer&&(_.Ll.cancelJob(this.navigationTimer),this.navigationTimer=null);E(B==null?void 0:B.event)};
_.Dic=function(){Sph||(Sph=new gq6);return Sph};var FBd=[];_.ka("yt.logging.transport.getScrapedGelPayloads",function(){return FBd});var IH=function(){var E=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return E.totalEntries}}};
IH.prototype.storePayload=function(E,B){E=Bp4(E);this.store[E]?this.store[E].push(B):(this.memoizedKeySequences={},this.store[E]=[B]);this.totalEntries++;_.d("more_accurate_gel_parser")&&(B=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(B));return E};
IH.prototype.smartExtractMatchingEntries=function(E){if(!E.keys.length)return[];for(var B=JJX(this,E.keys.splice(0,1)[0]),I=[],T=0;T<B.length;T++)this.store[B[T]]&&E.sizeLimit&&(this.store[B[T]].length<=E.sizeLimit?(I.push.apply(I,_.ad(this.store[B[T]])),delete this.store[B[T]]):I.push.apply(I,_.ad(this.store[B[T]].splice(0,E.sizeLimit))));this.totalEntries-=I.length;(E==null?0:E.sizeLimit)&&I.length<(E==null?void 0:E.sizeLimit)&&(E.sizeLimit-=I.length,I.push.apply(I,_.ad(this.smartExtractMatchingEntries(E))));
return I};
IH.prototype.extractMatchingEntries=function(E){E=JJX(this,E);for(var B=[],I=0;I<E.length;I++)this.store[E[I]]&&(B.push.apply(B,_.ad(this.store[E[I]])),delete this.store[E[I]]);this.totalEntries-=B.length;return B};
IH.prototype.getSequenceCount=function(E){E=JJX(this,E);for(var B=0,I=0;I<E.length;I++){var T=void 0;B+=((T=this.store[E[I]])==null?void 0:T.length)||0}return B};
var JJX=function(E,B){var I=Bp4(B);if(E.memoizedKeySequences[I])return E.memoizedKeySequences[I];var T=Object.keys(E.store)||[];if(T.length<=1&&Bp4(B)===T[0])return T;for(var e=[],c=0;c<T.length;c++){var Y=T[c].split("/");if(WS$(B.auth,Y[0])){var v=B.isJspb;WS$(v===void 0?"undefined":v?"true":"false",Y[1])&&WS$(B.cttAuthInfo,Y[2])&&(v=B.tier,v=v===void 0?"undefined":JSON.stringify(v),WS$(v,Y[3])&&e.push(T[c]))}}return E.memoizedKeySequences[I]=e},WS$=function(E,B){return E===void 0||E==="undefined"?
!0:E===B};
IH.prototype.getSequenceCount=IH.prototype.getSequenceCount;IH.prototype.extractMatchingEntries=IH.prototype.extractMatchingEntries;IH.prototype.smartExtractMatchingEntries=IH.prototype.smartExtractMatchingEntries;IH.prototype.storePayload=IH.prototype.storePayload;var H$F,n7Q,Np6,lE,Xuh,Ixi,$E4,O$G,Ggt,wlt,MVF,VVF,s34;H$F=_.RI("initial_gel_batch_timeout",2E3);n7Q=_.RI("gel_queue_timeout_max_ms",6E4);Np6=_.RI("gel_min_batch_size",5);lE=void 0;Xuh=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
Ixi=new Xuh;$E4=new Xuh;O$G=new Xuh;Ggt=new Xuh;MVF=!0;VVF=1;_.fNi=new Map;s34=_.$i.ytLoggingTransportTokensToCttTargetIds_||{};_.ka("ytLoggingTransportTokensToCttTargetIds_",s34);var h2Q=_.$i.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.ka("ytLoggingTransportTokensToJspbCttTargetIds_",h2Q);var es={};var mF=_.$i.ytLoggingGelSequenceIdObj_||{};_.ka("ytLoggingGelSequenceIdObj_",mF);var ca4=[];var mEc=new Set,vgc=0,sQt=0,h46=0,Cuc=[],ya6=[],uCQ=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var XVi=function(){};
XVi.prototype.getUrl=function(E,B){B=B===void 0?!1:B;return E.hasOwnProperty("shareEndpoint")?null:_.O8t(E,null,B)};
var RyD=function(E,B,I){E={endpoint:B,actions:[]};I=(I.path?I.path[0]:I.target).icon||"";B=I.indexOf(":");B>0&&(I=I.substr(B+1));I&&E.actions.push(I);return E};var Sei=/Command$/,ggi=/Endpoint$/,MOG=new Map;var rJU,bgt;rJU=1;_.WC=function(){this.actionRoutingMap=new Map};
_.WC.prototype.triggerAction=function(E){var B=new wdi(E,!1,_.aG.apply(1,arguments));this.handleAction(B);return B.returnValue};
_.WC.prototype.triggerOptionalAction=function(E){var B=new wdi(E,!0,_.aG.apply(1,arguments));this.handleAction(B);return B.returnValue};
_.Hk=function(E,B,I){B.forEach(function(T){var e=NXF(T);e&&E.triggerOptionalAction(e,T,I,void 0)})};
_.WC.prototype.handleAction=function(E){var B=this.actionRoutingMap.get(E.actionName);B&&bgt(E,B);E.optionalAction||E.returnValue.length!==0||(E=new _.P7("Unhandled action",E.actionName),_.Xx(E))};
bgt=function(E,B){B.forEach(function(I){var T=null;I?T=I.apply(null,E.args):(I=Error("gd"),I.params=E.actionName,_.SI(I));E.returnValue.push(T)})};
_.X4=function(E,B,I){I||(I=rJU++);for(var T=_.p(Object.keys(B)),e=T.next();!e.done;e=T.next()){e=e.value;var c=E.actionRoutingMap.get(e);c||(c=new Map,E.actionRoutingMap.set(e,c));E.registerActionHandler(I,e,B[e],c)}return I};
_.WC.prototype.registerActionHandler=function(E,B,I,T){T.set(E,_.JA(I))};
_.r9=function(E,B,I){B=_.p(Object.keys(B));for(var T=B.next();!T.done;T=B.next())(T=E.actionRoutingMap.get(T.value))&&T.delete(I)};
_.E8(_.WC);var ogi=function(E,B){var I=_.WC.getInstance();_.uW(function(){var T={},e=_.X4(I,(T[E]=B,T));_.dt(function(){var c={};_.r9(I,(c[E]="",c),e)})})};var kAJ=function(E,B){_.uW(function(){var I=E.value;I?(I.addEventListener("yt-service-request-sent",B,void 0),_.dt(function(){I?I.removeEventListener("yt-service-request-sent",B,void 0):tOG(E)})):tOG(E)})};q4J=hlD;var ebJ=new Set(["For","If","Match","Watch"]),oqX={},AJz=(oqX[G5.default]=function(){return jxQ},oqX.style=function(){return jxQ},oqX),jjD;
for(jjD in AJz)Kx.attributes[jjD]=AJz[jjD](Kx.attributes[jjD]);var fi=new _.Dr("VISIBILITY_OBSERVER");var w$f={retrieve:function(E){return this.id.\u0275prov.token===E.\u0275prov.token?this.contextValue:this?sIt(this,this.id):Vj}};var Uqz=function(E,B,I){if(E!==js)return!1;E=R4G(document.createElement("div"),function(){var T=qS(!1);try{I[0]()}finally{qS(T)}});
E=Array.from(E.childNodes);E.length===1&&(E=E[0]);return E};var kkZ=function(E){E=E.clone();PWX(E);mU(E,"dg",null);mU(E,"d","0");yAX(E,null);CWz(E,null);mU(E,"ichc","0");return E},t$U=!0,fAV=function(E,B,I){var T=I===void 0?{}:I;
I=T.cssRowKey===void 0?void 0:T.cssRowKey;var e=T.combinedSignature===void 0?void 0:T.combinedSignature;var c=T.extraEdges===void 0?void 0:T.extraEdges;T=T.callback===void 0?void 0:T.callback;mU(E,"m",B.join(","));c&&Zcr(E,c);I&&(mU(E,"ck",I),e?mU(E,"rs",e):t$U&&(t$U=!1));if(T){if(T!=null&&!QIR.test(T))throw Error("ab`"+T);mU(E,"cb",T)}E=E.toString();_.lc(E,"/")&&(E=eGD(document.location.href)+E);return _.KX(E)};var qp$=function(E){return V$h(E).then(function(B){return JSON.parse(B.responseText)})},V$h=function(E){var B={},I=B.xmlHttpFactory?B.xmlHttpFactory.createInstance():WXu.createInstance();
return(new _.cC(function(T,e){var c;try{I.open("GET",E,!0)}catch(y){e(new NB("Error opening XHR: "+y.message,E,I))}I.onreadystatechange=function(){if(I.readyState==4){_.$i.clearTimeout(c);var y;!(y=Jv6(I.status))&&(y=I.status===0)&&(y=TFr(E),y=!(y=="http"||y=="https"||y==""));y?T(I):e(new FSl(I.status,E,I))}};
I.onerror=function(){e(new NB("Network error",E,I))};
if(B.headers)for(var Y in B.headers){var v=B.headers[Y];v!=null&&I.setRequestHeader(Y,v)}B.withCredentials&&(I.withCredentials=B.withCredentials);B.responseType&&(I.responseType=B.responseType);B.mimeType&&I.overrideMimeType(B.mimeType);B.timeoutMs>0&&(c=_.$i.setTimeout(function(){I.onreadystatechange=function(){};
I.abort();e(new Dq$(E,I))},B.timeoutMs));
try{I.send(null)}catch(y){I.onreadystatechange=function(){},_.$i.clearTimeout(c),e(new NB("Error sending XHR: "+y.message,E,I))}})).thenCatch(function(T){T instanceof _.X$&&I.abort();
throw T;})},NB=function(E,B,I){_.Ec.call(this,E+", url="+B);
this.url=B;this.xhr=I};
_.$U(NB,_.Ec);NB.prototype.name="XhrError";var FSl=function(E,B,I){NB.call(this,"Request Failed, status="+E,B,I);this.status=E};
_.$U(FSl,NB);FSl.prototype.name="XhrHttpError";var Dq$=function(E,B){NB.call(this,"Request timed out",E,B)};
_.$U(Dq$,NB);Dq$.prototype.name="XhrTimeoutError";RP=RP||{};var gd=function(){_.Cx.call(this)};
_.$U(gd,_.Cx);gd.prototype.initialize=function(){};var KSX=function(E,B){this.fn_=E;this.handler_=B};
KSX.prototype.execute=function(E){this.fn_&&(this.fn_.call(this.handler_||null,E),this.fn_=this.handler_=null)};
KSX.prototype.abort=function(){this.handler_=this.fn_=null};var SJ=function(E,B){_.Cx.call(this);this.deps_=E;this.JSC$8828_id_=B;this.onloadCallbacks_=[];this.JSC$8828_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.$U(SJ,_.Cx);SJ.prototype.moduleConstructor_=gd;SJ.prototype.module_=null;SJ.prototype.getId=function(){return this.JSC$8828_id_};
SJ.prototype.registerCallback=function(E,B){return R0t(this.onloadCallbacks_,E,B)};
var EhZ=function(E,B){R0t(E.JSC$8828_onErrorCallbacks_,B)},R0t=function(E,B,I){B=new KSX(B,I);
E.push(B);return B};
SJ.prototype.isLoaded=function(){return!!this.module_};
SJ.prototype.onLoad=function(E){var B=new this.moduleConstructor_;B.initialize(E());this.module_=B;B=(B=!!BGZ(this.earlyOnloadCallbacks_,E()))||!!BGZ(this.onloadCallbacks_,E());B||(this.JSC$8828_onErrorCallbacks_.length=0);return B};
SJ.prototype.onError=function(E){(E=BGZ(this.JSC$8828_onErrorCallbacks_,E))&&IB(Error("md`"+E));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var BGZ=function(E,B){for(var I=[],T=0;T<E.length;T++)try{E[T].execute(B)}catch(e){IB(e),I.push(e)}E.length=0;return I.length?I:null};
SJ.prototype.disposeInternal=function(){SJ.superClass_.disposeInternal.call(this);_.bl(this.module_)};var $UZ,iCr,l$N,cQu,TGu,eSh,yQX,a$t,vhU;
_.Wk=function(E,B,I,T,e){T=T===void 0?!1:T;e=e===void 0?!1:e;var c=c===void 0?!0:c;this.scsReferenceUrl_=DV(_.Ef(E).toString(),c);this.cssRowKey_=B;this.combinedSignature_=I;this.useNegativeLoading_=T;this.requestedModuleMap_={};this.JSC$8831_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(E=zj(this.scsReferenceUrl_,"excm"))?E.split(","):[];this.shouldScanForCss_=e;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;AAQ();this.logger=null;_.JL(this,wAt(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
$UZ=function(E,B){if(B.href||B.getAttribute("data-href"))if(B=B.href||B.getAttribute("data-href"),XAt(B)&&!DV(B).urlPrefix_.endsWith("_/js/")){B=wAt(DV(B));B=_.p(B);for(var I=B.next();!I.done;I=B.next())I=I.value,E.loadedCssModuleList_.includes(I)||E.loadedCssModuleList_.push(I)}};
_.Wk.prototype.JSC$8833_loadModules=function(E,B,I){var T=I===void 0?{}:I;I=T.extraEdges;var e=T.onError;var c=T.onSuccess;T=T.forceReload;this.JSC$8831_moduleInfoMap_=B;if(!E)throw Error("nd");if(this.shouldScanForCss_){B=_.p(document.getElementsByTagName("style"));for(var Y=B.next();!Y.done;Y=B.next())$UZ(this,Y.value);B=_.p(document.getElementsByTagName("link"));for(Y=B.next();!Y.done;Y=B.next())$UZ(this,Y.value)}I$Z(this,TGu(this,E),I,e,c,T)};
var I$Z=function(E,B,I,T,e,c){T=T===void 0?function(){}:T;
e=e===void 0?function(){}:e;
c=c===void 0?!1:c;eSh(E,B,function(Y,v,y){y=y===void 0?v:y;E.enableFallbackFetch&&c?E.loadWithFetch(Y,v,T,e,y):E.load(Y,v,T,e,y,I)},I)||T(-1)};
_.Wk.prototype.loadWithFetch=function(){_.a(function(){throw Error("od");})};
_.Wk.prototype.maybeSetAdditionalFields=function(){};
iCr=function(E,B,I){if(E.useNegativeLoading_){var T=E.scsReferenceUrl_;E={cssRowKey:E.cssRowKey_,combinedSignature:E.combinedSignature_,extraEdges:I,requestedModuleIds:l$N(E),requestedCssModuleIds:cQu(E)};var e=E===void 0?{}:E;E=e.requestedModuleIds===void 0?[]:e.requestedModuleIds;I=e.requestedCssModuleIds===void 0?[]:e.requestedCssModuleIds;var c=e.cssRowKey===void 0?void 0:e.cssRowKey;var Y=e.combinedSignature===void 0?void 0:e.combinedSignature;var v=e.extraEdges===void 0?void 0:e.extraEdges;
e=e.callback===void 0?void 0:e.callback;T=kkZ(T);mU(T,"d","1");yAX(T,E);CWz(T,I);B=fAV(T,B,{cssRowKey:c,combinedSignature:Y,extraEdges:v,callback:e})}else T=E.scsReferenceUrl_,E={cssRowKey:E.cssRowKey_,combinedSignature:E.combinedSignature_,requestedModuleIds:l$N(E),requestedCssModuleIds:cQu(E)},v=E===void 0?{}:E,E=v.requestedCssModuleIds===void 0?[]:v.requestedCssModuleIds,I=v.cssRowKey===void 0?void 0:v.cssRowKey,c=v.combinedSignature===void 0?void 0:v.combinedSignature,Y=v.extraEdges===void 0?
void 0:v.extraEdges,v=v.callback===void 0?void 0:v.callback,T=kkZ(T),CWz(T,E),B=fAV(T,B,{cssRowKey:I,combinedSignature:c,extraEdges:Y,callback:v});return B};
_.JL=function(E,B){for(var I=!1,T=[],e=0;e<B.length;++e){var c=B[e];E.requestedModuleMap_[c]||(E.requestedModuleMap_[c]=!0,E.requestedModuleList_.push(c),I=!0,T.push(c))}I&&(E.requestedModuleListSorted_=!1)};
_.Xn=function(E,B){for(var I=[],T=0;T<B.length;++T){var e=B[T];E.requestedModuleMap_[e]&&(delete E.requestedModuleMap_[e],_.f4(E.requestedModuleList_,e),I.push(e))}};
_.Wk.prototype.load=function(E,B,I,T,e){e=e===void 0?B:e;_.Ef(E);var c=this.useCors_,Y=this.corsMode_,v=this.fetchPriority,y=_.li("SCRIPT");_.nr(y,E);c&&(y.crossOrigin=Y);y.async=!1;v&&y.setAttribute("fetchpriority",v);_.JL(this,B);_.pUh(this,E,y,B,I,T,e)};
_.pUh=function(E,B,I,T,e,c,Y){Y=Y===void 0?T:Y;E.lastScript_=I;E.insertPos.insertBefore(I,E.insertPos.firstChild);_.Yih(I,T,function(){I.parentElement.removeChild(I);E.lastScript_==I&&(E.lastScript_=null);var v=new Set;T.map(function(Z){return v.add(Z)});
for(var y in E.JSC$8831_moduleInfoMap_)E.JSC$8831_moduleInfoMap_[y].isLoaded()&&v.add(y);Array.from(v);c()},function(v){I.parentElement.removeChild(I);
E.lastScript_==I&&(E.lastScript_=null);_.Xn(E,v);E.pendingModuleGraphUpdate_?E.pendingModuleGraphUpdate_.then(function(){e(-1,B)}):e(-1,B)},Y)};
_.Yih=function(E,B,I,T,e){e=e===void 0?B:e;var c=B.length,Y=function(){c=0;E.onload=null;E.onerror=null;v=function(){}},v=function(){Y();
var Z=e.filter(function(P){return!d1().getModuleInfo(P).isLoaded()});
Z.length!==0?T(Z,"Response was successful but was missing module(s) "+Z+"."):I()},y=function(){c--;
c==0&&v()};
B.forEach(function(Z){Z=d1().getModuleInfo(Z);Z.isLoaded()?y():(R0t(Z.earlyOnloadCallbacks_,y),EhZ(Z,y))});
E.onload=function(){return v()};
E.onerror=function(){Y();T(B)}};
l$N=function(E){E.requestedModuleListSorted_||(E.requestedModuleListSorted_=!0,E.requestedModuleList_.sort());return E.requestedModuleList_};
cQu=function(E){E=E.loadedCssModuleList_;E.sort();return E};
TGu=function(E,B){return B.filter(function(I){return!E.requestedModuleMap_[I]})};
eSh=function(E,B,I,T){if(E.pendingModuleGraphUpdate_)return E.pendingModuleGraphUpdate_.then(function(){eSh(E,B,I,T)}),!0;
if(!E.useNegativeLoading_){var e=[],c=Object.assign({},E.requestedModuleMap_);a$t(E,B,function(P){e.push(P.getId())},T,function(P){return!P.isLoaded()},c);
B=e}for(c=0;c<B.length;){for(var Y=B.length-c,v=c==0?B:B.slice(c,B.length),y=iCr(E,v,T),Z=_.Ef(y).toString();Z.length>E.urlMaxLength;)if(Y>1)Y-=Math.ceil((Z.length-E.urlMaxLength)/6),Y=Math.max(Y,1),v=B.slice(c,c+Y),y=iCr(E,v,T),Z=_.Ef(y).toString();else return E.useNegativeLoading_?(E.useNegativeLoading_=!1,E.pendingModuleGraphUpdate_=vhU(E).then(function(P){yQX(E,P,T)}),eSh(E,B.slice(c),I,T)):!1;
c+=Y;E.useNegativeLoading_?I(y,v):I(y,v,c===B.length?B:[])}return!0};
yQX=function(E,B,I){d1().setAllModuleInfoString((B||{}).moduleGraph);a$t(E,l$N(E),function(T){_.JL(E,[T.getId()])},I);
E.pendingModuleGraphUpdate_=null};
a$t=function(E,B,I,T,e,c){c=c===void 0?{}:c;var Y=d1();B=_.p(B);for(var v=B.next();!v.done;v=B.next()){v=v.value;var y=Y.getModuleInfo(v);if(!(c[v]||e&&!e(y))){c[v]=!0;var Z=y.deps_||[];if(T){var P=[];T[v]&&(P=Object.keys(T[v]));Z=Z.concat(P)}a$t(E,Z,I,T,e,c);I(y)}}};
vhU=function(E){E=E.scsReferenceUrl_.clone();PWX(E);mU(E,"dg",null);mU(E,"md","1");return qp$(E.toString())};var zbJ=new Uint8Array(123);var CTZ=[];var wUZ=function(){this.JSC$7939_loader_=null};
_.l=wUZ.prototype;_.l.setBatchModeEnabled=function(){};
_.l.setAllModuleInfoString=function(){};
_.l.addExtraEdge=function(){throw Error("pd");};
_.l.removeExtraEdge=function(){throw Error("qd");};
_.l.getModuleContext=function(){return null};
_.l.isActive=function(){return!1};
_.l.isUserActive=function(){return!1};
_.l.registerCallback=function(){};var rd=function(E,B,I,T){this.type=E;this.status=B;this.requestedModuleIds=I;this.url=T};
rd.prototype.toString=function(){return ZCZ(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var ZCZ=function(E){switch(E.type){case rd.JSC$8843_Type.UNAUTHORIZED:return"Unauthorized";case rd.JSC$8843_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case rd.JSC$8843_Type.TIMEOUT:return"Timed out";case rd.JSC$8843_Type.OLD_CODE_GONE:return"Out of date module id";case rd.JSC$8843_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+E.type}};
RP.ModuleLoadFailure=rd;RP.ModuleLoadFailure.JSC$8843_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var bp=function(){this.moduleIds_=this.JSC$7939_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8846_extraEdges_={};this.JSC$8846_callbackMap_={};this.JSC$8846_currentlyLoadingModule_=this.baseModuleInfo_=new SJ([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new jl;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.$U(bp,wUZ);var PTD=function(E,B){_.Ec.call(this,"Error loading "+E+": "+B)};
_.$U(PTD,_.Ec);bp.prototype.setBatchModeEnabled=function(E){this.batchModeEnabled_=E};
bp.prototype.setAllModuleInfoString=function(E,B){if(!(this instanceof bp))this.setAllModuleInfoString(E,B);else if(typeof E==="string"){if(E.startsWith("d$")){E=E.substring(2);for(var I=[],T=0,e=E.indexOf("/"),c=0,Y=!1,v=0;;){var y=Y?E.substring(c):E.substring(c,e);if(y.length===0)T++,c="sy"+T.toString(36),y=[];else{var Z=y.indexOf(":");if(Z<0)c=y,y=[];else if(Z===y.length-1)c=y.substring(0,Z),y=Array(I[v-1]);else{c=y.substring(0,Z);y=y.substring(Z+1).split(",");Z=v;for(var P=0;P<y.length;P++)Z-=
y[P].length===0?1:Number(y[P]),y[P]=I[Z]}Z=0;if(c.length===0)Z=1;else if(c.charAt(0)==="+"||c.charAt(0)==="-")Z=Number(c);Z!==0&&(T+=Z,c="sy"+T.toString(36))}I.push(c);zSl(this,c,y);if(Y)break;c=e+1;e=E.indexOf("/",c);e===-1&&(Y=!0);v++}this.moduleIds_=I}else if(E.startsWith("p$"))mUZ(this,E);else{E=E.split("/");I=[];for(T=0;T<E.length;T++){v=E[T].split(":");e=v[0];Y=[];if(v[1])for(Y=v[1].split(","),v=0;v<Y.length;v++)Y[v]=I[parseInt(Y[v],36)];I.push(e);zSl(this,e,Y)}this.moduleIds_=I}B&&B.length?
(_.K4(this.loadingModuleIds_,B),this.lastInitialModuleId_=_.gJ(B)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8846_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8846_currentlyLoadingModule_=null,this.baseModuleInfo_.onLoad((0,_.w1)(this.getModuleContext,this))&&QOD(this,new RP.ModuleLoadFailure(RP.ModuleLoadFailure.JSC$8843_Type.INIT_ERROR)),ob(this))}};
var mUZ=function(E,B){var I=B.substring(2);for(B=0;B<64;B++)zbJ["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(B)]=B;var T={buf:I,pos:0};F4(T);var e=F4(T),c=F4(T)+1;B=Array(e);var Y=Array(e),v=Array(e);c=Array(c);var y=0,Z=0,P=T.pos,z=T.buf.indexOf("|",T.pos);T.pos=z+1;for(z=0;z<e;z++){var m=F4(T),u=m&2,x=m&1;m>>>=2;x?(y+=m>>>1^-(m&1),m="sy"+y.toString(36)):(x=P,P+=m,m=I.substring(x,P));B[z]=m;u&&(c[Z++]=m)}c[Z]="";T.pos++;Z=e&-2;I=e&1;for(y=0;y<Z;y+=2)P=mNJ(T),v[y]=
P&7,v[y+1]=P>>>3&7;I&&(I=mNJ(T),v[Z]=I&7);T.pos++;for(Z=0;Z<e;Z++)v[Z]===7&&(v[Z]=F4(T));T.pos++;for(I=Z=0;I<e;I++){y=v[I];P=y===0?CTZ:Array(y);Y[I]=P;z=Z;for(u=0;u<y;u++)z-=F4(T),P[u]=c[z];c[Z]===B[I]&&Z++}for(T=0;T<B.length;T++)zSl(E,B[T],Y[T]);E.moduleIds_=B};
_.l=bp.prototype;_.l.getModuleInfo=function(E){return this.moduleInfoMap[E]};
_.l.addExtraEdge=function(E,B){var I=this.getModuleInfo(E);I&&I.isLoaded()?this.load(B):(this.JSC$8846_extraEdges_[E]||(this.JSC$8846_extraEdges_[E]={}),this.JSC$8846_extraEdges_[E][B]=!0)};
_.l.removeExtraEdge=function(E,B){if(this.JSC$8846_extraEdges_[E]){delete this.JSC$8846_extraEdges_[E][B];for(var I in this.JSC$8846_extraEdges_[E])return;delete this.JSC$8846_extraEdges_[E]}};
_.l.isActive=function(){return this.loadingModuleIds_.length>0};
_.l.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var ob=function(E){var B=E.lastActive_,I=E.isActive();I!=B&&(E.executeCallbacks_(I?"active":"idle"),E.lastActive_=I);B=E.isUserActive();B!=E.userLastActive_&&(E.executeCallbacks_(B?"userActive":"userIdle"),E.userLastActive_=B)},zSl=function(E,B,I){E.moduleInfoMap[B]?(E=E.moduleInfoMap[B].deps_,E!=I&&E.splice.apply(E,[0,
E.length].concat(_.ad(I)))):E.moduleInfoMap[B]=new SJ(I,B)},hSX=function(E,B,I){var T=[];
eN(B,T);B=[];for(var e={},c=0;c<T.length;c++){var Y=T[c],v=E.getModuleInfo(Y);if(!v)throw Error("rd`"+Y);var y=new jl;e[Y]=y;v.isLoaded()?y.callback(null):(dUr(E,Y,v,!!I,y),E.isModuleLoading(Y)||B.push(Y))}B.length>0&&(E.loadingModuleIds_.length===0?E.loadModules_(B):(E.requestedModuleIdsQueue_.push(B),ob(E)));return e},dUr=function(E,B,I,T,e){I.registerCallback(e.callback,e);
EhZ(I,function(c){e.errback(new PTD(B,c))});
E.isModuleLoading(B)?T&&(sOZ(E,B),ob(E)):T&&sOZ(E,B)};
bp.prototype.loadModules_=function(E,B,I){var T=this;B||(this.consecutiveFailures_=0);var e=u$r(this,E);this.loadingModuleIds_=e;this.requestedLoadingModuleIds_=this.batchModeEnabled_?E:_.V6(e);ob(this);if(e.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,e);if(Object.keys(this.JSC$8846_extraEdges_).length>0&&!this.JSC$7939_loader_.supportsExtraEdges)throw Error("sd");E=(0,_.w1)(this.JSC$7939_loader_.JSC$8833_loadModules,this.JSC$7939_loader_,_.V6(e),this.moduleInfoMap,{extraEdges:this.JSC$8846_extraEdges_,
forceReload:!!I,onError:function(c,Y){var v=T.requestedLoadingModuleIds_;c=c!=null?c:void 0;T.consecutiveFailures_++;var y=_.V6(e);T.requestedLoadingModuleIds_=v;e.forEach(_.wY(_.f4,T.requestedModuleIds_),T);c==401?(QOD(T,new RP.ModuleLoadFailure(RP.ModuleLoadFailure.JSC$8843_Type.UNAUTHORIZED,c)),T.requestedModuleIdsQueue_.length=0):c==410?(LMZ(T,new RP.ModuleLoadFailure(RP.ModuleLoadFailure.JSC$8843_Type.OLD_CODE_GONE,c)),xUh(T)):T.consecutiveFailures_>=3?(LMZ(T,new RP.ModuleLoadFailure(RP.ModuleLoadFailure.JSC$8843_Type.CONSECUTIVE_FAILURES,
c,y,Y)),xUh(T)):T.loadModules_(T.requestedLoadingModuleIds_,!0,c==8001||!1)},
onTimeout:(0,_.w1)(this.handleLoadTimeout_,this)});(B=Math.pow(this.consecutiveFailures_,2)*5E3)?_.$i.setTimeout(E,B):E()}};
var u$r=function(E,B){B=B.filter(function(e){return E.moduleInfoMap[e].isLoaded()?(_.$i.setTimeout(function(){return Error("td`"+e)},0),!1):!0});
for(var I=[],T=0;T<B.length;T++)I=I.concat(GxV(E,B[T]));eN(I);return!E.batchModeEnabled_&&I.length>1?(B=I.shift(),E.requestedModuleIdsQueue_=I.map(function(e){return[e]}).concat(E.requestedModuleIdsQueue_),[B]):I},GxV=function(E,B){var I=_.a_.createSet(E.requestedModuleIds_),T=[];
I[B]||T.push(B);B=[B];for(var e=0;e<B.length;e++)for(var c=E.getModuleInfo(B[e]).deps_,Y=c.length-1;Y>=0;Y--){var v=c[Y];E.getModuleInfo(v).isLoaded()||I[v]||(T.push(v),B.push(v))}T.reverse();eN(T);return T};
bp.prototype.JSC$8841_setLoaded=function(){if(this.JSC$8846_currentlyLoadingModule_){var E=this.JSC$8846_currentlyLoadingModule_.getId(),B=[];if(this.JSC$8846_extraEdges_[E]){for(var I=_.p(Object.keys(this.JSC$8846_extraEdges_[E])),T=I.next();!T.done;T=I.next()){T=T.value;var e=this.getModuleInfo(T);e&&!e.isLoaded()&&(this.removeExtraEdge(E,T),B.push(T))}this.loadMultiple(B)}this.isDisposed()||(this.moduleInfoMap[E].onLoad((0,_.w1)(this.getModuleContext,this))&&QOD(this,new RP.ModuleLoadFailure(RP.ModuleLoadFailure.JSC$8843_Type.INIT_ERROR)),
_.f4(this.userInitiatedLoadingModuleIds_,E),_.f4(this.loadingModuleIds_,E),this.loadingModuleIds_.length===0&&xUh(this),this.lastInitialModuleId_&&E==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),ob(this),this.JSC$8846_currentlyLoadingModule_=null)}};
bp.prototype.isModuleLoading=function(E){if(_.AD(this.loadingModuleIds_,E))return!0;for(var B=0;B<this.requestedModuleIdsQueue_.length;B++)if(_.AD(this.requestedModuleIdsQueue_[B],E))return!0;return!1};
bp.prototype.load=function(E,B){return hSX(this,[E],B)[E]};
bp.prototype.loadMultiple=function(E){return hSX(this,E)};
var sOZ=function(E,B){_.AD(E.userInitiatedLoadingModuleIds_,B)||E.userInitiatedLoadingModuleIds_.push(B)};
bp.prototype.beforeLoadModuleCode=function(E){var B=this;this.JSC$8846_currentlyLoadingModule_&&this.JSC$8846_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8841_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[E]&&OCZ(this,this.moduleInfoMap[E].deps_||[],function(I){I.module_=new gd;_.f4(B.loadingModuleIds_,I.getId())},function(I){return!I.isLoaded()});
this.JSC$8846_currentlyLoadingModule_=this.getModuleInfo(E)};
bp.prototype.handleLoadTimeout_=function(){LMZ(this,new RP.ModuleLoadFailure(RP.ModuleLoadFailure.JSC$8843_Type.TIMEOUT));xUh(this)};
var LMZ=function(E,B){E.requestedLoadingModuleIds_.length>1?E.requestedModuleIdsQueue_=E.requestedLoadingModuleIds_.map(function(I){return[I]}).concat(E.requestedModuleIdsQueue_):QOD(E,B)},QOD=function(E,B){var I=E.requestedLoadingModuleIds_;
E.loadingModuleIds_.length=0;for(var T=[],e=0;e<E.requestedModuleIdsQueue_.length;e++){var c=E.requestedModuleIdsQueue_[e].filter(function(y){var Z=GxV(this,y);return by(I,function(P){return _.AD(Z,P)})},E);
_.K4(T,c)}for(e=0;e<I.length;e++)_.ztc(T,I[e]);for(e=0;e<T.length;e++){for(c=0;c<E.requestedModuleIdsQueue_.length;c++)_.f4(E.requestedModuleIdsQueue_[c],T[e]);_.f4(E.userInitiatedLoadingModuleIds_,T[e])}if(e=E.JSC$8846_callbackMap_.error)for(c=0;c<e.length;c++)for(var Y=e[c],v=0;v<T.length;v++)Y("error",T[v],B);for(T=0;T<I.length;T++)if(E.moduleInfoMap[I[T]])E.moduleInfoMap[I[T]].onError(B);E.requestedLoadingModuleIds_.length=0;ob(E)},xUh=function(E){for(;E.requestedModuleIdsQueue_.length;){var B=
E.requestedModuleIdsQueue_.shift().filter(function(I){return!this.getModuleInfo(I).isLoaded()},E);
if(B.length>0){E.loadModules_(B);return}}ob(E)};
bp.prototype.registerCallback=function(E,B){Array.isArray(E)||(E=[E]);for(var I=0;I<E.length;I++){var T=E[I],e=B,c=this.JSC$8846_callbackMap_;c[T]||(c[T]=[]);c[T].push(e)}};
bp.prototype.executeCallbacks_=function(E){for(var B=this.JSC$8846_callbackMap_[E],I=0;B&&I<B.length;I++)B[I](E)};
var OCZ=function(E,B,I,T,e){T=T===void 0?function(){return!0}:T;
e=e===void 0?{}:e;B=_.p(B);for(var c=B.next();!c.done;c=B.next()){c=c.value;var Y=E.getModuleInfo(c);!e[c]&&T(Y)&&(e[c]=!0,OCZ(E,Y.deps_||[],I,T,e),I(Y))}};
bp.prototype.dispose=function(){_.o_(_.a_.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8846_callbackMap_={};this.isDisposed_=!0};
bp.prototype.isDisposed=function(){return this.isDisposed_};
_.Qj=function(){return new bp};var nhN=[5E3,2E4],Mc$=function(){this.JSC$7939_loader_=null;this.JSC$8854_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8854_queue_=[];this.JSC$8854_extraEdges_=Object.create(null);this.JSC$8854_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.L(Mc$,wUZ);_.l=Mc$.prototype;_.l.setAllModuleInfoString=function(){this.JSC$8854_currentlyLoadingModule_&&this.JSC$8854_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8841_setLoaded()};
_.l.getModuleInfo=function(E){var B=this.JSC$8854_moduleInfoMap_[E];B||(B=new SJ([],E),this.JSC$8854_moduleInfoMap_[E]=B);return B};
_.l.addExtraEdge=function(E,B){this.getModuleInfo(E).isLoaded()?this.load(B):(this.JSC$8854_extraEdges_[E]||(this.JSC$8854_extraEdges_[E]={}),this.JSC$8854_extraEdges_[E][B]=!0)};
_.l.removeExtraEdge=function(E,B){if(this.JSC$8854_extraEdges_[E]){delete this.JSC$8854_extraEdges_[E][B];for(var I in this.JSC$8854_extraEdges_[E])return;delete this.JSC$8854_extraEdges_[E]}};
_.l.isModuleLoading=function(E){return!!this.loadingModules_[E]};
_.l.load=function(E){HCl(this,[E]);return NGZ(this,E)};
_.l.loadMultiple=function(E){var B=this,I=Object.create(null),T=[];E.forEach(function(e){I[e]||(I[e]=NGZ(B,e),T.push(e))});
HCl(this,T);return I};
_.l.beforeLoadModuleCode=function(E){var B;((B=this.JSC$8854_currentlyLoadingModule_)==null?void 0:B.getId())==="synthetic_module_overhead"&&this.JSC$8841_setLoaded();var I,T;gh6(this,(T=(I=this.JSC$8854_moduleInfoMap_[E])==null?void 0:I.deps_)!=null?T:[],function(e){e.module_=new gd},function(e){return!e.isLoaded()});
this.JSC$8854_currentlyLoadingModule_=this.getModuleInfo(E)};
_.l.JSC$8841_setLoaded=function(){if(this.JSC$8854_currentlyLoadingModule_){var E=this.JSC$8854_currentlyLoadingModule_.getId(),B=[];if(this.JSC$8854_extraEdges_[E]){for(var I=_.p(Object.keys(this.JSC$8854_extraEdges_[E])),T=I.next();!T.done;T=I.next())T=T.value,this.getModuleInfo(T).isLoaded()||(this.removeExtraEdge(E,T),B.push(T));this.loadMultiple(B)}this.JSC$8854_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8854_currentlyLoadingModule_=null;(!this.isModuleLoading(E)&&/^sy[0-9a-z]{0,4}$/.test(E)||E==="synthetic_module_overhead")&&delete this.JSC$8854_moduleInfoMap_[E];this.unsetModulesAsLoading(E)}};
_.l.setModulesAsLoading=function(){var E=this;_.aG.apply(0,arguments).forEach(function(B){E.loadingModules_[B]=!0})};
_.l.unsetModulesAsLoading=function(){var E=this;_.aG.apply(0,arguments).forEach(function(B){delete E.loadingModules_[B]})};
var NGZ=function(E,B){return new _.cC(function(I,T){var e=E.getModuleInfo(B);e.isLoaded()?I(null):(e.registerCallback(function(){I(null)}),EhZ(e,function(c){var Y="Error loading "+B+": "+c;
c instanceof RP.ModuleLoadFailure&&c.url&&(Y=Y+", requested url: "+c.url.toString());T(Error(Y))}))})},HCl=function(E,B){B=B.filter(function(I){return!E.isModuleLoading(I)&&!E.getModuleInfo(I).isLoaded()});
B.length>0&&(E.setModulesAsLoading.apply(E,_.ad(B)),E.JSC$8854_queue_.push(B),Siu(E))},Siu=function(E){for(var B={};E.activeLoads_<Infinity&&E.JSC$8854_queue_.length>0;B={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})B.ids$jscomp$36=E.JSC$8854_queue_.shift().filter(function(I){return!E.getModuleInfo(I).isLoaded()}),B.ids$jscomp$36.length>0&&(E.activeLoads_++,B.finishLoad=function(I){return function(){E.activeLoads_--;
Siu(E);I.finishLoad=function(){}}}(B),_.hP(B.ids$jscomp$36.map(function(I){return NGZ(E,I)})).then(function(I){return function(){(0,I.finishLoad)()}}(B)),B.attempt$jscomp$6=0,B.load$jscomp$1=function(I){return function(){if(Object.keys(E.JSC$8854_extraEdges_).length>0&&!E.JSC$7939_loader_.supportsExtraEdges)throw Error("sd");
E.JSC$7939_loader_.JSC$8833_loadModules(I.ids$jscomp$36,E.JSC$8854_moduleInfoMap_,{extraEdges:E.JSC$8854_extraEdges_,onError:function(T,e){var c=nhN[I.attempt$jscomp$6++];c!==void 0?setTimeout(function(){(0,I.load$jscomp$1)()},c):(E.unsetModulesAsLoading.apply(E,_.ad(I.ids$jscomp$36)),(0,I.finishLoad)(),I.ids$jscomp$36.forEach(function(Y){Y=E.getModuleInfo(Y);
if(!Y.isLoaded())Y.onError(new RP.ModuleLoadFailure(RP.ModuleLoadFailure.JSC$8843_Type.CONSECUTIVE_FAILURES,T,I.ids$jscomp$36,e))}))}})}}(B),(0,B.load$jscomp$1)())},gh6=function(E,B,I,T,e){T=T===void 0?function(){return!0}:T;
e=e===void 0?{}:e;B=_.p(B);for(var c=B.next();!c.done;c=B.next()){c=c.value;var Y=E.getModuleInfo(c);!e[c]&&T(Y)&&(e[c]=!0,gh6(E,Y.deps_||[],I,T,e),I(Y))}};var JQX=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var dNF=Symbol("vd");window.JSCompiler_renameProperty=function(E){return E};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var WM6=!JQX||HTMLElement.es5Shimmed||_.$i.Reflect===void 0||_.$i.customElements===void 0||_.$i.customElements.polyfillWrapFlushCallback||!1,XUR,IWi=function(){var E=HTMLElement;if(WM6)return E;if(XUR!==void 0)return XUR;var B=_.$i.Reflect,I=function(){return B.construct(E,[],this.constructor)};
I.prototype=E.prototype;I.prototype.constructor=I;I.es5Shimmed=!0;Object.setPrototypeOf(I,E);return XUR=I},rQN=!1;WM6||rQN||(rQN=!0,_.$i.HTMLElement=IWi());/*

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 xN4=/(url\()([^)]*)(\))/g,uZf=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Lac,Da;var Mq=!window.ShadyDOM||!window.ShadyDOM.inUse,bCt=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),ohU=!window.customElements.polyfillWrapFlushCallback,AQz;if(AQz=Mq&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var jOz=new CSSStyleSheet;jOz.replaceSync("");var UUU=document.createElement("div");UUU.attachShadow({mode:"open"});UUU.shadowRoot.adoptedStyleSheets=[jOz];AQz=UUU.shadowRoot.adoptedStyleSheets[0]===jOz}catch(E){AQz=!1}
var kxu=AQz,tcz=window.Polymer&&window.Polymer.rootPath||OpG(document.baseURI||window.location.href),vu=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,XEf=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,S$=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,f$r=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Op=window.Polymer&&window.Polymer.legacyOptimizations||!1,gl=window.Polymer&&window.Polymer.legacyWarnings||!1,VcX=window.Polymer&&window.Polymer.syncInitialRender||
!1,Cg=window.Polymer&&window.Polymer.legacyUndefined||!1,qiD=window.Polymer&&window.Polymer.orderedComputed||!1,AL=window.Polymer&&window.Polymer.removeNestedTemplates||!1,jJ=window.Polymer&&window.Polymer.fastDomIf||!1,UH=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,FMZ=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,DUz=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var kQ={},KMZ={},ZA=function(){return HTMLElement.apply(this,arguments)||this};
_.L(ZA,HTMLElement);ZA.import=function(E,B){return E?(E=kQ[E]||KMZ[E.toLowerCase()])&&B?E.querySelector(B):E:null};
ZA.prototype.attributeChangedCallback=function(E,B,I){B!==I&&this.register()};
ZA.prototype.register=function(E){if(E=E||this.id){if(S$&&(kQ[E]||KMZ[E.toLowerCase()])!==void 0)throw kQ[E]=KMZ[E.toLowerCase()]=null,Error("wd`"+E);this.id=E;kQ[E]=KMZ[E.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Up.Object.defineProperties(ZA.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var E=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;E=_.Ki(this.getAttribute("assetpath")||"",E.baseURI);this.__assetpath=OpG(E)}return this.__assetpath}}});
_.Up.Object.defineProperties(ZA,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
ZA["import"]=ZA.import;ZA.prototype.modules=kQ;customElements.define("dom-module",ZA);var RS$=0,MxQ=0,RH=[],EOu=0,n3i=!1,BYt=document.createTextNode(""),$fz,xq;(new window.MutationObserver(HpD)).observe(BYt,{characterData:!0});_.tL={after:function(E){return{run:function(B){return window.setTimeout(B,E)},
cancel:function(B){window.clearTimeout(B)}}},
run:function(E,B){return window.setTimeout(E,B)},
cancel:function(E){window.clearTimeout(E)}};
_.yA={run:function(E){return window.requestAnimationFrame(E)},
cancel:function(E){window.cancelAnimationFrame(E)}};
$fz={run:function(E){return window.requestIdleCallback?window.requestIdleCallback(E):window.setTimeout(E,16)},
cancel:function(E){window.cancelIdleCallback?window.cancelIdleCallback(E):window.clearTimeout(E)}};
xq={run:function(E){n3i||(n3i=!0,BYt.textContent=EOu++);RH.push(E);return RS$++},
cancel:function(E){var B=E-MxQ;if(B>=0){if(!RH[B])throw Error("xd`"+E);RH[B]=null}}};var IBt=0,fL=function(E){var B=E.__mixinApplications;B||(B=new WeakMap,E.__mixinApplications=B);var I=IBt++;return function(T){var e=T.__mixinSet;if(e&&e[I])return T;var c=B,Y=c.get(T);Y||(Y=E(T),c.set(T,Y),T=Object.create(Y.__mixinSet||e||null),T[I]=!0,Y.__mixinSet=T);return Y}};_.Yq=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(E){return ShadyDOM.patch(E)}:function(E){return E};var TYz=fL(function(E){var B=function(){var I=E.call(this)||this;I.__dataEnabled=!1;I.__dataReady=!1;I.__dataInvalid=!1;I.__data={};I.__dataPending=null;I.__dataOld=null;I.__dataInstanceProps=null;I.__dataCounter=0;I.__serializing=!1;I._initializeProperties();return I};
_.L(B,E);B.createProperties=function(I){var T=this.prototype,e;for(e in I)e in T||T._createPropertyAccessor(e)};
B.attributeNameForProperty=function(I){return I.toLowerCase()};
B.typeForProperty=function(){};
B.prototype._createPropertyAccessor=function(I,T){this._addPropertyToAttributeMap(I);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[I]||(this.__dataHasAccessor[I]=!0,this._definePropertyAccessor(I,T))};
B.prototype._addPropertyToAttributeMap=function(I){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var T=this.__dataAttributes[I];T||(T=this.constructor.attributeNameForProperty(I),this.__dataAttributes[T]=I);return T};
B.prototype._definePropertyAccessor=function(I,T){Object.defineProperty(this,I,{get:function(){return this.__data[I]},
set:T?function(){}:function(e){this._setPendingProperty(I,e,!0)&&this._invalidateProperties()}})};
B.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
B.prototype._initializeProperties=function(){for(var I in this.__dataHasAccessor)this.hasOwnProperty(I)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[I]=this[I],delete this[I])};
B.prototype._initializeInstanceProperties=function(I){Object.assign(this,I)};
B.prototype._setProperty=function(I,T){this._setPendingProperty(I,T)&&this._invalidateProperties()};
B.prototype._getProperty=function(I){return this.__data[I]};
B.prototype._setPendingProperty=function(I,T){var e=this.__data[I],c=this._shouldPropertyChange(I,T,e);c&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||I in this.__dataOld||(this.__dataOld[I]=e),this.__data[I]=T,this.__dataPending[I]=T);return c};
B.prototype._isPropertyPending=function(I){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(I))};
B.prototype._invalidateProperties=function(){var I=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,xq.run(function(){I.__dataInvalid&&(I.__dataInvalid=!1,I._flushProperties())}))};
B.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
B.prototype._flushProperties=function(){this.__dataCounter++;var I=this.__data,T=this.__dataPending,e=this.__dataOld;this._shouldPropertiesChange(I,T,e)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(I,T,e));this.__dataCounter--};
B.prototype._shouldPropertiesChange=function(I,T){return!!T};
B.prototype._propertiesChanged=function(){};
B.prototype._shouldPropertyChange=function(I,T,e){return e!==T&&(e===e||T===T)};
B.prototype.attributeChangedCallback=function(I,T,e,c){T!==e&&this._attributeToProperty(I,e);E.prototype.attributeChangedCallback&&E.prototype.attributeChangedCallback.call(this,I,T,e,c)};
B.prototype._attributeToProperty=function(I,T,e){if(!this.__serializing){var c=this.__dataAttributes;I=c&&c[I]||I;this[I]=this._deserializeValue(T,e||this.constructor.typeForProperty(I))}};
B.prototype._propertyToAttribute=function(I,T,e){this.__serializing=!0;e=arguments.length<3?this[I]:e;this._valueToNodeAttribute(this,e,T||this.constructor.attributeNameForProperty(I));this.__serializing=!1};
B.prototype._valueToNodeAttribute=function(I,T,e){T=this._serializeValue(T);if(e==="class"||e==="name"||e==="slot")I=(0,_.Yq)(I);T===void 0?I.removeAttribute(e):I.setAttribute(e,T===""&&window.trustedTypes?window.trustedTypes.emptyScript:T)};
B.prototype._serializeValue=function(I){switch(typeof I){case "boolean":return I?"":void 0;default:return I!=null?I.toString():void 0}};
B.prototype._deserializeValue=function(I,T){switch(T){case Boolean:return I!==null;case Number:return Number(I);default:return I}};
return B});var eDU=0,NAi=[];var lBr=fL(function(E){function B(c){c=Object.getPrototypeOf(c);return c.prototype instanceof e?c:null}
function I(c){if(!c.hasOwnProperty("__ownProperties")){var Y=null;if(c.hasOwnProperty("properties")){var v=c.properties;if(v){Y={};for(var y in v){var Z=v[y];Y[y]=typeof Z==="function"?{type:Z}:Z}}}c.__ownProperties=Y}return c.__ownProperties}
var T=TYz(E),e=function(){return T.apply(this,arguments)||this};
_.L(e,T);e.finalize=function(){if(!this.hasOwnProperty("__finalized")){var c=B(this);c&&c.finalize();this.__finalized=!0;this._finalizeClass()}};
e._finalizeClass=function(){var c=I(this);c&&this.createProperties(c)};
e.typeForProperty=function(c){return(c=this._properties[c])&&c.type};
e.prototype._initializeProperties=function(){eDU++;this.constructor.finalize();T.prototype._initializeProperties.call(this)};
e.prototype.connectedCallback=function(){T.prototype.connectedCallback&&T.prototype.connectedCallback.call(this);this._enableProperties()};
e.prototype.disconnectedCallback=function(){T.prototype.disconnectedCallback&&T.prototype.disconnectedCallback.call(this)};
_.Up.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var c=this;if(!this.hasOwnProperty("__observedAttributes")){g3d(this.prototype);var Y=this._properties;this.__observedAttributes=Y?Object.keys(Y).map(function(v){return c.prototype._addPropertyToAttributeMap(v)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var c=B(this);this.__properties=Object.assign({},c&&c._properties,I(this))}return this.__properties}}});
return e});var S1t={},JkB=/-[a-z]/g,Wac=/([A-Z])/g;for(var clh={},iOX=HTMLElement.prototype;iOX;){for(var pNV=Object.getOwnPropertyNames(iOX),YKh=0;YKh<pNV.length;YKh++)clh[pNV[YKh]]=!0;iOX=Object.getPrototypeOf(iOX)}var aBR=window.trustedTypes?function(E){return trustedTypes.isHTML(E)||trustedTypes.isScript(E)||trustedTypes.isScriptURL(E)}:function(){return!1},vOl=fL(function(E){var B=TYz(E);
E=function(){return B.apply(this,arguments)||this};
_.L(E,B);E.createPropertiesForAttributes=function(){for(var I=this.observedAttributes,T=0;T<I.length;T++)this.prototype._createPropertyAccessor(Ep(I[T]))};
E.attributeNameForProperty=function(I){return Bu(I)};
E.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);B.prototype._initializeProperties.call(this)};
E.prototype._initializeProtoProperties=function(I){for(var T in I)this._setProperty(T,I[T])};
E.prototype._ensureAttribute=function(I,T){this.hasAttribute(I)||this._valueToNodeAttribute(this,T,I)};
E.prototype._serializeValue=function(I){switch(typeof I){case "object":if(I instanceof Date)return I.toString();if(I){if(aBR(I))return I;try{return JSON.stringify(I)}catch(T){return""}}default:return B.prototype._serializeValue.call(this,I)}};
E.prototype._deserializeValue=function(I,T){switch(T){case Object:try{var e=JSON.parse(I)}catch(c){e=I}break;case Array:try{e=JSON.parse(I)}catch(c){e=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+I)}break;case Date:e=isNaN(I)?String(I):Number(I);e=new Date(e);break;default:e=B.prototype._deserializeValue.call(this,I,T)}return e};
E.prototype._definePropertyAccessor=function(I,T){if(!clh[I]){var e=this[I];e!==void 0&&(this.__data?this._setPendingProperty(I,e):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[I]=e))}B.prototype._definePropertyAccessor.call(this,I,T)};
E.prototype._hasAccessor=function(I){return this.__dataHasAccessor&&this.__dataHasAccessor[I]};
E.prototype._isPropertyPending=function(I){return!!(this.__dataPending&&I in this.__dataPending)};
return E});var ylz={"dom-if":!0,"dom-repeat":!0},C16=!1,wNl=!1,ZOX=function(){var E=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(B){return B}});
return function(B,I,T){I=I.getAttribute(T);E&&T.startsWith("on-")?B.setAttribute(T,E.createScript(I,T)):B.setAttribute(T,I)}}(),P1D=fL(function(E){var B=function(){return E.apply(this,arguments)||this};
_.L(B,E);B._parseTemplate=function(I,T){if(!I._templateInfo){var e=I._templateInfo={};e.nodeInfoList=[];e.nestedTemplate=!!T;e.stripWhiteSpace=T&&T.stripWhiteSpace||I.hasAttribute&&I.hasAttribute("strip-whitespace");this._parseTemplateContent(I,e,{parent:null})}return I._templateInfo};
B._parseTemplateContent=function(I,T,e){return this._parseTemplateNode(I.content,T,e)};
B._parseTemplateNode=function(I,T,e){var c=!1;I.localName!="template"||I.hasAttribute("preserve-content")?I.localName==="slot"&&(T.hasInsertionPoint=!0):c=this._parseTemplateNestedTemplate(I,T,e)||c;if(!C16){C16=!0;var Y=document.createElement("textarea");Y.placeholder="a";wNl=Y.placeholder===Y.textContent}wNl&&I.localName==="textarea"&&I.placeholder&&I.placeholder===I.textContent&&(I.textContent=null);I.firstChild&&this._parseTemplateChildNodes(I,T,e);I.hasAttributes&&I.hasAttributes()&&(c=this._parseTemplateNodeAttributes(I,
T,e)||c);return c||e.noted};
B._parseTemplateChildNodes=function(I,T,e){if(I.localName!=="script"&&I.localName!=="style")for(var c=I.firstChild,Y=0,v;c;c=v){if(c.localName=="template"){var y=c.getAttribute("is");if(y&&ylz[y])for(v=c,v.removeAttribute("is"),c=v.ownerDocument.createElement(y),v.parentNode.replaceChild(c,v),c.appendChild(v);v.attributes.length;)y=v.attributes[0].name,ZOX(c,v,y),v.removeAttribute(y)}v=c.nextSibling;if(c.nodeType===Node.TEXT_NODE){for(y=v;y&&y.nodeType===Node.TEXT_NODE;)c.textContent+=y.textContent,
v=y.nextSibling,I.removeChild(y),y=v;if(T.stripWhiteSpace&&!c.textContent.trim()){I.removeChild(c);continue}}y={parentIndex:Y,parentInfo:e};this._parseTemplateNode(c,T,y)&&(y.infoIndex=T.nodeInfoList.push(y)-1);c.parentNode&&Y++}};
B._parseTemplateNestedTemplate=function(I,T,e){T=this._parseTemplate(I,T);(T.content=I.content.ownerDocument.createDocumentFragment()).appendChild(I.content);e.templateInfo=T;return!0};
B._parseTemplateNodeAttributes=function(I,T,e){for(var c=!1,Y=Array.from(I.attributes),v=Y.length-1,y;y=Y[v];v--)c=this._parseTemplateNodeAttribute(I,T,e,y.name,y.value)||c;return c};
B._parseTemplateNodeAttribute=function(I,T,e,c,Y){return c.slice(0,3)==="on-"?(I.removeAttribute(c),e.events=e.events||[],e.events.push({name:c.slice(3),value:Y}),!0):c==="id"?(e.id=Y,!0):!1};
B._contentForTemplate=function(I){var T=I._templateInfo;return T&&T.content||I.content};
B.prototype._stampTemplate=function(I,T){I&&!I.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(I);T=T||this.constructor._parseTemplate(I);var e=T.nodeInfoList;I=document.importNode(T.content||I.content,!0);I.__noInsertionPoint=!T.hasInsertionPoint;var c=I.nodeList=Array(e.length);I.$={};for(var Y=0,v=e.length,y=void 0;Y<v&&(y=e[Y]);Y++){var Z=c[Y]=X$i(I,y);y.id&&(I.$[y.id]=Z);var P=Z,z=y,m=T;z.templateInfo&&(P._templateInfo=z.templateInfo,P._parentTemplateInfo=
m);if(y.events&&y.events.length)for(P=0,z=y.events,m=void 0;P<z.length&&(m=z[P]);P++)this._addMethodEventListenerToNode(Z,m.name,m.value,this)}return I};
B.prototype._addMethodEventListenerToNode=function(I,T,e,c){e=rk6(c||I,e);this._addEventListenerToNode(I,T,e);return e};
B.prototype._addEventListenerToNode=function(I,T,e){I.addEventListener(T,e)};
B.prototype._removeEventListenerFromNode=function(I,T,e){I.removeEventListener(T,e)};
return B});var iZ=0,yX=[],zD6={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},mfR=/[A-Z]/,Q2z=function(E,B,I,T,e){var c=e?Ij(E):E;if(B=B[c])for(c=0;c<B.length;c++){var Y=B[c];if(Y.info.lastRun!==iZ&&(!e||kI4(E,Y.trigger))){Y.info.lastRun=iZ;Y=Y.info;for(var v=I,y=T,Z=0,P=v.length-1,z=-1;Z<=P;){var m=Z+P>>1,u=y.get(v[m].methodInfo)-y.get(Y.methodInfo);if(u<0)Z=m+1;else if(u>0)P=m-1;else{z=m;break}}z<
0&&(z=P+1);v.splice(z,0,Y)}}},lRB=[],dfl=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"),qB=fL(function(E){var B=P1D(vOl(E));
E=function(){var I=B.call(this)||this;I.__isPropertyEffectsClient=!0;return I};
_.L(E,B);E.prototype._initializeProperties=function(){B.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};
E.prototype._registerHost=function(){if(V4.length){var I=V4[V4.length-1];I._enqueueClient(this);this.__dataHost=I}};
E.prototype._initializeProtoProperties=function(I){this.__data=Object.create(I);this.__dataPending=Object.create(I);this.__dataOld={}};
E.prototype._initializeInstanceProperties=function(I){var T=this.__readOnly,e;for(e in I)T&&T[e]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[e]=this.__dataPending[e]=I[e])};
E.prototype._addPropertyEffect=function(I,T,e){this._createPropertyAccessor(I,T=="__readOnly");var c=UNF(this,T,!0)[I];c||(c=this[T][I]=[]);c.push(e)};
E.prototype._removePropertyEffect=function(I,T,e){I=UNF(this,T,!0)[I];e=I.indexOf(e);e>=0&&I.splice(e,1)};
E.prototype._hasPropertyEffect=function(I,T){T=this[T];return!(!T||!T[I])};
E.prototype._hasReadOnlyEffect=function(I){return this._hasPropertyEffect(I,"__readOnly")};
E.prototype._hasNotifyEffect=function(I){return this._hasPropertyEffect(I,"__notifyEffects")};
E.prototype._hasReflectEffect=function(I){return this._hasPropertyEffect(I,"__reflectEffects")};
E.prototype._hasComputedEffect=function(I){return this._hasPropertyEffect(I,"__computeEffects")};
E.prototype._setPendingPropertyOrPath=function(I,T,e,c){if(c||Ij(Array.isArray(I)?I[0]:I)!==I){if(!c&&(c=cu(this,I),I=jSG(this,I,T),!I||!B.prototype._shouldPropertyChange.call(this,I,T,c)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(I,T,e)){if(e=this.__dataLinkedPaths)for(var Y in e)c=e[Y],Tk(Y,I)?(c=e$(Y,c,I),this._setPendingPropertyOrPath(c,T,!0,!0)):Tk(c,I)&&(c=e$(c,Y,I),this._setPendingPropertyOrPath(c,T,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[I])return this._setPendingProperty(I,
T,e);this[I]=T}return!1};
E.prototype._setUnmanagedPropertyToNode=function(I,T,e){if(e!==I[T]||typeof e=="object")T==="className"&&(I=(0,_.Yq)(I)),I[T]=e};
E.prototype._setPendingProperty=function(I,T,e){var c=this.__dataHasPaths&&$q(I);if(this._shouldPropertyChange(I,T,(c?this.__dataTemp:this.__data)[I])){this.__dataPending||(this.__dataPending={},this.__dataOld={});I in this.__dataOld||(this.__dataOld[I]=this.__data[I]);c?this.__dataTemp[I]=T:this.__data[I]=T;this.__dataPending[I]=T;if(c||this.__notifyEffects&&this.__notifyEffects[I])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[I]=e;return!0}return!1};
E.prototype._setProperty=function(I,T){this._setPendingProperty(I,T,!0)&&this._invalidateProperties()};
E.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
E.prototype._enqueueClient=function(I){this.__dataPendingClients=this.__dataPendingClients||[];I!==this&&this.__dataPendingClients.push(I)};
E.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
E.prototype.__enableOrFlushClients=function(){var I=this.__dataPendingClients;if(I){this.__dataPendingClients=null;for(var T=0;T<I.length;T++){var e=I[T];e.__dataEnabled?e.__dataPending&&e._flushProperties():e._enableProperties()}}};
E.prototype._readyClients=function(){this.__enableOrFlushClients()};
E.prototype.setProperties=function(I,T){for(var e in I)!T&&this.__readOnly&&this.__readOnly[e]||this._setPendingPropertyOrPath(e,I[e],!0);this._invalidateProperties()};
E.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
E.prototype._propertiesChanged=function(I,T,e){I=this.__dataHasPaths;this.__dataHasPaths=!1;var c;if(c=this.__computeEffects)if(qiD){iZ++;var Y=DNi(this),v=[],y;for(y in T)Q2z(y,c,v,Y,I);for(;y=v.shift();)Rbc(this,"",T,e,y)&&Q2z(y.methodInfo,c,v,Y,I);Object.assign(e,this.__dataOld);Object.assign(T,this.__dataPending);this.__dataPending=null}else for(Y=T;pg(this,c,Y,e,I);)Object.assign(e,this.__dataOld),Object.assign(T,this.__dataPending),Y=this.__dataPending,this.__dataPending=null;c=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(T,e,I);this._flushClients();pg(this,this.__reflectEffects,T,e,I);pg(this,this.__observeEffects,T,e,I);if(c){Y=this.__notifyEffects;v=iZ++;for(var Z in c)if(c[Z]){if(y=Y){var P=Y;y=v;var z=Z,m=T,u=e,x=I,M=!1,N=x?Ij(z):z;if(P=P[N]){N=0;for(var W=P.length,U=void 0;N<W&&(U=P[N]);N++)U.info&&U.info.lastRun===y||x&&!kI4(z,U.trigger)||(U.info&&(U.info.lastRun=y),U.fn(this,z,m,u,U.info,x,void 0),M=!0)}y=M}if(y)var q=!0;else{if(y=I)y=Z,z=T,m=Ij(y),m!==
y?(m=Bu(m)+"-changed",fQF(this,m,z[y],y),y=!0):y=!1;y&&(q=!0)}}var f;q&&(f=this.__dataHost)&&f._invalidateProperties&&f._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
E.prototype._propagatePropertyChanges=function(I,T,e){this.__propagateEffects&&pg(this,this.__propagateEffects,I,T,e);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,I,T,e)};
E.prototype._runEffectsForTemplate=function(I,T,e,c){var Y=this,v=function(y,Z){pg(Y,I.propertyEffects,y,e,Z,I.nodeList);for(var P=I.firstChild;P;P=P.nextSibling)Y._runEffectsForTemplate(P,y,e,Z)};
I.runEffects?I.runEffects(v,T,c):v(T,c)};
E.prototype.linkPaths=function(I,T){I=lZ(I);T=lZ(T);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[I]=T};
E.prototype.unlinkPaths=function(I){I=lZ(I);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[I]};
E.prototype.notifySplices=function(I,T){var e={path:""};I=cu(this,I,e);YOc(this,I,e.path,T)};
E.prototype.get=function(I,T){return cu(T||this,I)};
E.prototype.set=function(I,T,e){e?jSG(e,I,T):this.__readOnly&&this.__readOnly[I]||this._setPendingPropertyOrPath(I,T,!0)&&this._invalidateProperties()};
E.prototype.push=function(I){var T=_.aG.apply(1,arguments),e={path:""},c=cu(this,I,e),Y=c.length,v=c.push.apply(c,_.ad(T));T.length&&wl(this,c,e.path,Y,T.length,[]);return v};
E.prototype.pop=function(I){var T={path:""};I=cu(this,I,T);var e=!!I.length,c=I.pop();e&&wl(this,I,T.path,I.length,0,[c]);return c};
E.prototype.splice=function(I,T,e){var c=_.aG.apply(3,arguments),Y={path:""},v=cu(this,I,Y);T<0?T=v.length-Math.floor(-T):T&&(T=Math.floor(T));var y=arguments.length===2?v.splice(T):v.splice.apply(v,[T,e].concat(_.ad(c)));(c.length||y.length)&&wl(this,v,Y.path,T,c.length,y);return y};
E.prototype.shift=function(I){var T={path:""};I=cu(this,I,T);var e=!!I.length,c=I.shift();e&&wl(this,I,T.path,0,0,[c]);return c};
E.prototype.unshift=function(I){var T=_.aG.apply(1,arguments),e={path:""},c=cu(this,I,e),Y=c.unshift.apply(c,_.ad(T));T.length&&wl(this,c,e.path,0,T.length,[]);return Y};
E.prototype.notifyPath=function(I,T){if(arguments.length==1){var e={path:""};T=cu(this,I,e);e=e.path}else e=Array.isArray(I)?lZ(I):I;this._setPendingPropertyOrPath(e,T,!0,!0)&&this._invalidateProperties()};
E.prototype._createReadOnlyProperty=function(I,T){this._addPropertyEffect(I,"__readOnly");T&&(this["_set"+(I[0].toUpperCase()+I.substring(1))]=function(e){this._setProperty(I,e)})};
E.prototype._createPropertyObserver=function(I,T,e){var c={property:I,method:T,dynamicFn:!!e};this._addPropertyEffect(I,"__observeEffects",{fn:tx6,info:c,trigger:{name:I}});e&&this._addPropertyEffect(T,"__observeEffects",{fn:tx6,info:c,trigger:{name:T}})};
E.prototype._createMethodObserver=function(I,T){var e=ieG(I);if(!e)throw Error("yd`"+I);TTJ(this,e,"__observeEffects",Kai,null,T)};
E.prototype._createNotifyingProperty=function(I){this._addPropertyEffect(I,"__notifyEffects",{fn:Vxf,info:{eventName:Bu(I)+"-changed",property:I}})};
E.prototype._createReflectedProperty=function(I){var T=this.constructor.attributeNameForProperty(I);T[0]==="-"?console.warn("Property "+I+" cannot be reflected to attribute "+T+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(I,"__reflectEffects",{fn:q1d,info:{attrName:T}})};
E.prototype._createComputedProperty=function(I,T,e){var c=ieG(T);if(!c)throw Error("zd`"+T);T=TTJ(this,c,"__computeEffects",Rbc,I,e);UNF(this,"__computeInfo")[I]=T};
E.prototype._marshalArgs=function(I,T,e){for(var c=this.__data,Y=[],v=0,y=I.length;v<y;v++){var Z=I[v],P=Z.name,z=Z.structured,m=Z.wildcard,u=Z.value;Z.literal||(m?(Z=Tk(P,T),z=pEB(c,e,Z?T:P),u={path:Z?T:P,value:z,base:Z?cu(c,P):z}):u=z?pEB(c,e,P):c[P]);if(Cg&&!this._overrideLegacyUndefined&&u===void 0&&I.length>1)return yX;Y[v]=u}return Y};
E.addPropertyEffect=function(I,T,e){this.prototype._addPropertyEffect(I,T,e)};
E.createPropertyObserver=function(I,T,e){this.prototype._createPropertyObserver(I,T,e)};
E.createMethodObserver=function(I,T){this.prototype._createMethodObserver(I,T)};
E.createNotifyingProperty=function(I){this.prototype._createNotifyingProperty(I)};
E.createReadOnlyProperty=function(I,T){this.prototype._createReadOnlyProperty(I,T)};
E.createReflectedProperty=function(I){this.prototype._createReflectedProperty(I)};
E.createComputedProperty=function(I,T,e){this.prototype._createComputedProperty(I,T,e)};
E.bindTemplate=function(I){return this.prototype._bindTemplate(I)};
E.prototype._bindTemplate=function(I,T){var e=this.constructor._parseTemplate(I),c=this.__preBoundTemplateInfo==e;if(!c)for(var Y in e.propertyEffects)this._createPropertyAccessor(Y);T?(e=Object.create(e),e.wasPreBound=c,this.__templateInfo?(I=I._parentTemplateInfo||this.__templateInfo,T=I.lastChild,e.parent=I,I.lastChild=e,(e.previousSibling=T)?T.nextSibling=e:I.firstChild=e):this.__templateInfo=e):this.__preBoundTemplateInfo=e;return e};
E._addTemplatePropertyEffect=function(I,T,e){(I.hostProps=I.hostProps||{})[T]=!0;I=I.propertyEffects=I.propertyEffects||{};(I[T]=I[T]||[]).push(e)};
E.prototype._stampTemplate=function(I,T){T=T||this._bindTemplate(I,!0);V4.push(this);I=B.prototype._stampTemplate.call(this,I,T);V4.pop();T.nodeList=I.nodeList;if(!T.wasPreBound)for(var e=T.childNodes=[],c=I.firstChild;c;c=c.nextSibling)e.push(c);I.templateInfo=T;e=T.nodeList;c=T.nodeInfoList;if(c.length)for(var Y=0;Y<c.length;Y++){var v=e[Y],y=c[Y].bindings;if(y)for(var Z=0;Z<y.length;Z++){var P=y[Z],z=v,m=P;if(m.isCompound){for(var u=z.__dataCompoundStorage||(z.__dataCompoundStorage={}),x=m.parts,
M=Array(x.length),N=0;N<x.length;N++)M[N]=x[N].literal;x=m.target;u[x]=M;m.literal&&m.kind=="property"&&(x==="className"&&(z=(0,_.Yq)(z)),z[x]=m.literal)}IRi(v,this,P)}v.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(T,this.__data,null,!1),this._flushClients());return I};
E.prototype._removeBoundDom=function(I){I=I.templateInfo;var T=I.previousSibling,e=I.nextSibling,c=I.parent;T?T.nextSibling=e:c&&(c.firstChild=e);e?e.previousSibling=T:c&&(c.lastChild=T);I.nextSibling=I.previousSibling=null;I=I.childNodes;for(T=0;T<I.length;T++)e=I[T],(0,_.Yq)((0,_.Yq)(e).parentNode).removeChild(e)};
E._parseTemplateNode=function(I,T,e){var c=B._parseTemplateNode.call(this,I,T,e);if(I.nodeType===Node.TEXT_NODE){var Y=this._parseBindings(I.textContent,T);Y&&(I.textContent=eLF(Y)||" ",$H4(this,T,e,"text","textContent",Y),c=!0)}return c};
E._parseTemplateNodeAttribute=function(I,T,e,c,Y){var v=this._parseBindings(Y,T);if(v){Y=c;var y="property";mfR.test(c)?y="attribute":c[c.length-1]=="$"&&(c=c.slice(0,-1),y="attribute");var Z=eLF(v);Z&&y=="attribute"&&(c=="class"&&I.hasAttribute("class")&&(Z+=" "+I.getAttribute(c)),I.setAttribute(c,Z));y=="attribute"&&Y=="disable-upgrade$"&&I.setAttribute(c,"");I.localName==="input"&&Y==="value"&&I.setAttribute(Y,"");I.removeAttribute(Y);y==="property"&&(c=Ep(c));$H4(this,T,e,y,c,v,Z);return!0}return B._parseTemplateNodeAttribute.call(this,
I,T,e,c,Y)};
E._parseTemplateNestedTemplate=function(I,T,e){var c=B._parseTemplateNestedTemplate.call(this,I,T,e),Y=I.parentNode,v=e.templateInfo,y=Y.localName==="dom-if",Z=Y.localName==="dom-repeat";AL&&(y||Z)&&(Y.removeChild(I),e=e.parentInfo,e.templateInfo=v,e.noted=!0,c=!1);I=v.hostProps;if(jJ&&y)I&&(T.hostProps=Object.assign(T.hostProps||{},I),AL||(e.parentInfo.noted=!0));else for(var P in I)$H4(this,T,e,"property","_host_"+P,[{mode:"{",source:P,dependencies:[P],hostProp:!0}]);return c};
E._parseBindings=function(I,T){for(var e=[],c=0,Y;(Y=dfl.exec(I))!==null;){Y.index>c&&e.push({literal:I.slice(c,Y.index)});c=Y[1][0];var v=!!Y[2];Y=Y[3].trim();var y=!1,Z="",P=-1;c=="{"&&(P=Y.indexOf("::"))>0&&(Z=Y.substring(P+2),Y=Y.substring(0,P),y=!0);P=ieG(Y);var z=[];if(P){var m=P,u=m.args;m=m.methodName;for(var x=0;x<u.length;x++){var M=u[x];M.literal||z.push(M)}if((u=T.dynamicFns)&&u[m]||P.static)z.push(m),P.dynamicFn=!0}else z.push(Y);e.push({source:Y,mode:c,negate:v,customEvent:y,signature:P,
dependencies:z,event:Z});c=dfl.lastIndex}c&&c<I.length&&(I=I.substring(c))&&e.push({literal:I});return e.length?e:null};
E._evaluateBinding=function(I,T,e,c,Y,v){I=T.signature?Kai(I,e,c,Y,T.signature):e!=T.source?cu(I,T.source):v&&$q(e)?cu(I,e):I.__data[e];T.negate&&(I=!I);return I};
_.Up.Object.defineProperties(E.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return zD6}}});
return E}),V4=[];var hDX=window.ShadyCSS&&window.ShadyCSS.cssBuild,Fn=fL(function(E){function B(T,e,c,Y){if(!hDX){for(var v=e.content.querySelectorAll("style"),y=wEt(e),Z=Zec(c),P=e.content.firstElementChild,z=0;z<Z.length;z++){var m=Z[z];m.textContent=T._processStyleText(m.textContent,Y);e.content.insertBefore(m,P)}for(P=Z=0;P<y.length;P++)z=y[P],m=v[Z],m!==z?(z=z.cloneNode(!0),m.parentNode.insertBefore(z,m)):Z++,z.textContent=T._processStyleText(z.textContent,Y)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,
c);if(DUz&&hDX&&kxu&&(e=e.content.querySelectorAll("style"))){var u="";Array.from(e).forEach(function(x){u+=x.textContent;x.parentNode.removeChild(x)});
T._styleSheet=new CSSStyleSheet;T._styleSheet.replaceSync(u)}}
var I=lBr(qB(E));E=function(){return I.call(this)||this};
_.L(E,I);E._finalizeClass=function(){I._finalizeClass.call(this);var T;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(T=this.__ownObservers)&&this.createObservers(T,this._properties);this._prepareTemplate()};
E._prepareTemplate=function(){var T=this.template;T&&(typeof T==="string"?(console.error("template getter must return HTMLTemplateElement"),T=null):Op||(T=T.cloneNode(!0)));this.prototype._template=T};
E.createProperties=function(T){for(var e in T){var c=this.prototype,Y=e,v=T[e],y=T;v.computed&&(v.readOnly=!0);v.computed&&(c._hasReadOnlyEffect(Y)?console.warn("Cannot redefine computed property '"+Y+"'."):c._createComputedProperty(Y,v.computed,y));v.readOnly&&!c._hasReadOnlyEffect(Y)?c._createReadOnlyProperty(Y,!v.computed):v.readOnly===!1&&c._hasReadOnlyEffect(Y)&&console.warn("Cannot make readOnly property '"+Y+"' non-readOnly.");v.reflectToAttribute&&!c._hasReflectEffect(Y)?c._createReflectedProperty(Y):
v.reflectToAttribute===!1&&c._hasReflectEffect(Y)&&console.warn("Cannot make reflected property '"+Y+"' non-reflected.");v.notify&&!c._hasNotifyEffect(Y)?c._createNotifyingProperty(Y):v.notify===!1&&c._hasNotifyEffect(Y)&&console.warn("Cannot make notify property '"+Y+"' non-notify.");v.observer&&c._createPropertyObserver(Y,v.observer,y[v.observer]);c._addPropertyToAttributeMap(Y)}};
E.createObservers=function(T,e){for(var c=this.prototype,Y=0;Y<T.length;Y++)c._createMethodObserver(T[Y],e)};
E.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);I.prototype._initializeProperties.call(this);this.rootPath=tcz;this.importPath=this.constructor.importPath;var T=this.constructor;if(!T.hasOwnProperty("__propertyDefaults")){T.__propertyDefaults=null;var e=T._properties,c;for(c in e){var Y=e[c];"value"in Y&&(T.__propertyDefaults=T.__propertyDefaults||{},T.__propertyDefaults[c]=Y)}}if(T=T.__propertyDefaults)for(var v in T)e=T[v],
this._canApplyPropertyDefault(v)&&(e=typeof e.value=="function"?e.value.call(this):e.value,this._hasAccessor(v)?this._setPendingProperty(v,e,!0):this[v]=e)};
E.prototype._canApplyPropertyDefault=function(T){return!this.hasOwnProperty(T)};
E._processStyleText=function(T,e){return GIB(T,e)};
E._finalizeTemplate=function(T){var e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;var c=this.importPath;c=c?_.Ki(c):"";B(this,e,T,c);this.prototype._bindTemplate(e)}};
E.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);I.prototype.connectedCallback.call(this)};
E.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);I.prototype.ready.call(this)};
E.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));I.prototype._readyClients.call(this)};
E.prototype._attachDom=function(T){var e=(0,_.Yq)(this);if(e.attachShadow)return T?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:T}),e.shadowRoot.appendChild(T),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),VcX&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw Error("Bd");};
E.prototype.updateStyles=function(T){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,T)};
E.prototype.resolveUrl=function(T,e){!e&&this.importPath&&(e=_.Ki(this.importPath));return _.Ki(T,e)};
E._parseTemplateContent=function(T,e,c){e.dynamicFns=e.dynamicFns||this._properties;return I._parseTemplateContent.call(this,T,e,c)};
E._addTemplatePropertyEffect=function(T,e,c){!gl||e in this._properties||c.info.part.signature&&c.info.part.signature.static||c.info.part.hostProp||T.nestedTemplate||console.warn("Property '"+e+"' used in template but not declared in 'properties'; attribute will not be observed.");return I._addTemplatePropertyEffect.call(this,T,e,c)};
_.Up.Object.defineProperties(E,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var T=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof T==="function"&&(T=T());if(T===void 0){if(T=this.hasOwnProperty("is")){T=this.is;var e=null;if(T&&(!S$||f$r)&&(e=ZA.import(T,"template"),S$&&!e))throw Error("Ad`"+T);T=e}T=T||Object.getPrototypeOf(this.prototype).constructor.template}this._template=T}return this._template},
set:function(T){this._template=T}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var T=this.importMeta;T?this._importPath=OpG(T.url):this._importPath=(T=ZA.import(this.is))&&T.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return E});var s2Z=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(E){return E}}),sLf=function(E,B){uDD(E,B);
this.value=B.reduce(function(I,T,e){return I+u3c(T)+E[e+1]},E[0]).toString()},uDD;
sLf.prototype.toString=function(){return this.value};
_.LrX=function(E){var B=_.aG.apply(1,arguments);uDD(E,B);var I=document.createElement("template");B=B.reduce(function(T,e,c){if(e instanceof HTMLTemplateElement)e=e.innerHTML;else if(e instanceof sLf)e=u3c(e);else throw Error("Dd`"+e);return T+e+E[c+1]},E[0]);
s2Z&&(B=s2Z.createHTML(B));I.innerHTML=B;return I};
uDD=function(E,B){if(!Array.isArray(E)||!Array.isArray(E.raw)||B.length!==E.length-1)throw new TypeError("Ed");};var DY=Fn(HTMLElement);var xfR=fL(function(E){var B=Fn(E);E=function(){var I=B.call(this)||this;I.__lastItems=null;I.__lastMulti=null;I.__selectedMap=null;return I};
_.L(E,B);E.prototype.__updateSelection=function(I,T){var e=T.path;e=="items"?(T=T.base||[],e=this.__lastItems,I!==this.__lastMulti&&this.clearSelection(),e&&(e=hLG(T,e),this.__applySplices(e)),this.__lastItems=T,this.__lastMulti=I):T.path=="items.splices"?this.__applySplices(T.value.indexSplices):(I=e.slice(6),T=parseInt(I,10),I.indexOf(".")<0&&I==T&&this.__deselectChangedIdx(T))};
E.prototype.__applySplices=function(I){for(var T=this,e=this.__selectedMap,c={},Y=0;Y<I.length;c={s$jscomp$108:void 0},Y++){c.s$jscomp$108=I[Y];e.forEach(function(P){return function(z,m){z<P.s$jscomp$108.index||(z>=P.s$jscomp$108.index+P.s$jscomp$108.removed.length?e.set(m,z+P.s$jscomp$108.addedCount-P.s$jscomp$108.removed.length):e.set(m,-1))}}(c));
for(var v=0;v<c.s$jscomp$108.addedCount;v++){var y=c.s$jscomp$108.index+v;e.has(this.items[y])&&e.set(this.items[y],y)}}this.__updateLinks();var Z=0;e.forEach(function(P,z){P<0?(T.multi?T.splice("selected",Z,1):T.selected=T.selectedItem=null,e.delete(z)):Z++})};
E.prototype.__updateLinks=function(){var I=this;this.__dataLinkedPaths={};if(this.multi){var T=0;this.__selectedMap.forEach(function(e){e>=0&&I.linkPaths("items."+e,"selected."+T++)})}else this.__selectedMap.forEach(function(e){I.linkPaths("selected","items."+e);
I.linkPaths("selectedItem","items."+e)})};
E.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
E.prototype.isSelected=function(I){return this.__selectedMap.has(I)};
E.prototype.isIndexSelected=function(I){return this.isSelected(this.items[I])};
E.prototype.__deselectChangedIdx=function(I){var T=this,e=this.__selectedIndexForItemIndex(I);if(e>=0){var c=0;this.__selectedMap.forEach(function(Y,v){e==c++&&T.deselect(v)})}};
E.prototype.__selectedIndexForItemIndex=function(I){if(I=this.__dataLinkedPaths["items."+I])return parseInt(I.slice(9),10)};
E.prototype.deselect=function(I){var T=this.__selectedMap.get(I);if(T>=0){this.__selectedMap.delete(I);var e;this.multi&&(e=this.__selectedIndexForItemIndex(T));this.__updateLinks();this.multi?this.splice("selected",e,1):this.selected=this.selectedItem=null}};
E.prototype.deselectIndex=function(I){this.deselect(this.items[I])};
E.prototype.select=function(I){this.selectIndex(this.items.indexOf(I))};
E.prototype.selectIndex=function(I){var T=this.items[I];this.isSelected(T)?this.toggle&&this.deselectIndex(I):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(T,I),this.__updateLinks(),this.multi?this.push("selected",T):this.selected=this.selectedItem=T)};
_.Up.Object.defineProperties(E,{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 E}),GaN=xfR(DY),KL=function(){return GaN.apply(this,arguments)||this};
_.L(KL,GaN);_.Up.Object.defineProperties(KL,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(KL.is,KL);var OOV=window.Polymer;window.Polymer=function(E){return window.Polymer._polymerFn(E)};
OOV&&Object.assign(Polymer,OOV);Polymer._polymerFn=function(){throw Error("Fd");};/*

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:GIB,resolveUrl:_.Ki,pathFromUrl:OpG};Polymer.DomModule=ZA;Polymer.Async={timeOut:_.tL,animationFrame:_.yA,idlePeriod:$fz,microTask:xq};Polymer.dedupingMixin=fL;Polymer.wrap=_.Yq;Polymer.PropertiesChanged=TYz;Polymer.telemetry={instanceCount:eDU,incrementInstanceCount:function(){eDU++},
registrations:NAi,register:g3d,dumpRegistrations:function(){NAi.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=lBr;Polymer.CaseMap={dashToCamelCase:Ep,camelToDashCase:Bu};Polymer.PropertyAccessors=vOl;Polymer.TemplateStamp=P1D;Polymer.Path={isPath:$q,root:Ij,isAncestor:bpt,isDescendant:Tk,translate:e$,matches:o3f,normalize:lZ,split:Akt,get:cu,set:jSG,isDeep:$q};Polymer.Settings={useShadow:Mq,useNativeCSSProperties:bCt,useNativeCustomElements:ohU,get rootPath(){return tcz},setRootPath:function(E){tcz=E},
get sanitizeDOMValue(){return vu},setSanitizeDOMValue:function(E){vu=E},
get passiveTouchGestures(){return XEf},setPassiveTouchGestures:function(E){XEf=E},
get strictTemplatePolicy(){return S$},setStrictTemplatePolicy:function(E){S$=E},
get allowTemplateFromDomModule(){return f$r},setAllowTemplateFromDomModule:function(E){f$r=E},
get legacyOptimizations(){return Op},setLegacyOptimizations:function(E){Op=E},
get syncInitialRender(){return VcX},setSyncInitialRender:function(E){VcX=E},
get legacyUndefined(){return Cg},setLegacyUndefined:function(E){Cg=E},
get legacyWarnings(){return gl},setLegacyWarnings:function(E){gl=E},
get orderedComputed(){return qiD},setOrderedComputed:function(E){qiD=E},
get fastDomIf(){return jJ},setFastDomIf:function(E){jJ=E},
get removeNestedTemplates(){return AL},setRemoveNestedTemplates:function(E){AL=E},
get suppressTemplateNotifications(){return UH},setSuppressTemplateNotifications:UH};Polymer.rootPath!==void 0&&(tcz=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(vu=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(XEf=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(S$=Polymer.strictTemplatePolicy);f$r=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(Op=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(VcX=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(Cg=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(gl=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(qiD=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(jJ=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(AL=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(UH=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return vu},
set:function(E){vu=E}});Polymer.PropertyEffects=qB;Polymer.StyleGather={stylesFromModules:CO6,stylesFromModule:yMQ,stylesFromTemplate:wEt,stylesFromModuleImports:Zec,cssFromModules:zLG,cssFromModule:PO4,cssFromTemplate:mHi,cssFromModuleImports:function(E){return(E=ZA.import(E))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(E):""}};Polymer.ElementMixin=Fn;Polymer.updateStyles=function(E){window.ShadyCSS&&window.ShadyCSS.styleDocument(E)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:hLG};Polymer.html=_.LrX;Polymer.htmlLiteral=function(E){return new sLf(E,_.aG.apply(1,arguments))};Polymer.Element=DY;Polymer.ArraySelectorMixin=xfR;Polymer.ArraySelector=KL;var nOZ=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,MYZ=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,T6i=/@media\s(.*)/;var OeG=null,G8F=window.HTMLImports&&window.HTMLImports.whenReady||null,n44;var HOr=null,Rb=null,Eo=function(){this.customStyles=[];this.enqueued=!1;MfG(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},NYl=function(E){!E.enqueued&&Rb&&(E.enqueued=!0,MfG(Rb))};
Eo.prototype.addCustomStyle=function(E){E.__seenByShadyCSS||(E.__seenByShadyCSS=!0,this.customStyles.push(E),NYl(this))};
Eo.prototype.getStyleForCustomStyle=function(E){if(E.__shadyCSSCachedStyle)return E.__shadyCSSCachedStyle;var B;E.getStyle?B=E.getStyle():B=E;return B};
Eo.prototype.processStyles=function(){for(var E=this.customStyles,B=0;B<E.length;B++){var I=E[B];if(!I.__shadyCSSCachedStyle){var T=this.getStyleForCustomStyle(I);T&&(T=T.__appliedElement||T,HOr&&HOr(T),I.__shadyCSSCachedStyle=T)}}return E};
Eo.prototype.addCustomStyle=Eo.prototype.addCustomStyle;Eo.prototype.getStyleForCustomStyle=Eo.prototype.getStyleForCustomStyle;Eo.prototype.processStyles=Eo.prototype.processStyles;Object.defineProperties(Eo.prototype,{transformCallback:{get:function(){return HOr},
set:function(E){HOr=E}},
validateCallback:{get:function(){return Rb},
set:function(E){var B=!1;Rb||(B=!0);Rb=E;B&&NYl(this)}}});var NT4=!(window.ShadyDOM&&window.ShadyDOM.inUse),Hed,j$;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(j$=window.ShadyCSS.cssBuild);var gO$=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?Hed=window.ShadyCSS.nativeCss:window.ShadyCSS?(g46(window.ShadyCSS),window.ShadyCSS=void 0):g46(window.WebComponents&&window.WebComponents.flags);var B6F=Hed;var SK$=new Eo;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(E,B){SK$.processStyles();LVF(E,B)},
styleElement:function(){SK$.processStyles()},
styleDocument:function(E){SK$.processStyles();LVF(document.body,E)},
getComputedStyleValue:function(E,B){return xHt(E,B)},
flushCustomStyles:function(){},
nativeCss:B6F,nativeShadow:NT4,cssBuild:j$,disableRuntime:gO$});window.ShadyCSS.CustomStyleInterface=SK$;var Jl$=window.ShadyCSS.CustomStyleInterface,Be=function(){var E=HTMLElement.call(this)||this;E._style=null;Jl$.addCustomStyle(E);return E};
_.L(Be,HTMLElement);Be.prototype.getStyle=function(){if(this._style)return this._style;var E=this.querySelector("style");if(!E)return null;this._style=E;var B=E.getAttribute("include");B&&(E.removeAttribute("include"),E.textContent=zLG(B)+E.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
Be.prototype.getStyle=Be.prototype.getStyle;window.customElements.define("custom-style",Be);Polymer.CustomStyle=Be;var $b=function(){this._timer=this._callback=this._asyncModule=null},In,XNz;
$b.prototype.setConfig=function(E,B){var I=this;this._asyncModule=E;this._callback=B;this._timer=this._asyncModule.run(function(){I._timer=null;In.delete(I);I._callback()})};
$b.prototype.cancel=function(){this.isActive()&&(Wru(this),In.delete(this))};
var Wru=function(E){E.isActive()&&(E._asyncModule.cancel(E._timer),E._timer=null)};
$b.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
$b.prototype.isActive=function(){return this._timer!=null};
_.Tz=function(E,B,I){E instanceof $b?Wru(E):E=new $b;E.setConfig(B,I);return E};
In=new Set;_.eo=function(E){In.add(E)};
XNz=function(){var E=!!In.size;In.forEach(function(B){try{B.flush()}catch(I){setTimeout(function(){throw I;})}});
return E};var JMi=typeof document.head.style.touchAction==="string",SOi=["mousedown","mousemove","mouseup","click"],k8G=[0,1,4,2],rll;try{rll=(new MouseEvent("test",{buttons:1})).buttons===1}catch(E){rll=!1}var UHt=rll,WVJ=!1;(function(){try{var E=Object.defineProperty({},"passive",{get:function(){WVJ=!0}});
window.addEventListener("test",null,E);window.removeEventListener("test",null,E)}catch(B){}})();
var beJ=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),o4Q=[],bO$={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},IuB={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},AMc=function(E){var B=E.sourceCapabilities;if(!B||B.firesTouchEvents)if(E.__polymerGesturesHandled={skip:!0},E.type==="click"){B=!1;for(var I=qOG(E),T=0;T<I.length;T++){if(I[T].nodeType===Node.ELEMENT_NODE)if(I[T].localName==="label")o4Q.push(I[T]);
else if(bO$[I[T].localName]){var e=I[T];var c=Array.prototype.slice.call(e.labels||[]);if(!c.length){c=[];try{var Y=e.getRootNode();if(e.id){var v=Y.querySelectorAll("label[for = '"+e.id+"']");for(e=0;e<v.length;e++)c.push(v[e])}}catch(y){}}for(e=0;e<c.length;e++)B=B||o4Q.indexOf(c[e])>-1}if(I[T]===oOD)return}B||(E.preventDefault(),E.stopPropagation())}},oOD=null,lM=null,DH4=0,KV6=0,FVd=-1,RL4=!1;
document.addEventListener("touchend",function(E){lM||jL6(!0);oOD=qOG(E)[0];lM=_.Tz(lM,_.tL.after(2500),function(){jL6();lM=oOD=null})},WVJ?{passive:!0}:!1);
var qOG=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(E){return E.composedPath&&E.composedPath()||[]},hJ={},QX=[];
E6D({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){mS(this.info)},
mousedown:function(E){if(zk(E)){var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E),I=this;fRi(this.info,function(T){zk(T)||(Gk("up",B,T),mS(I.info))},function(T){zk(T)&&Gk("up",B,T);
mS(I.info)});
Gk("down",B,E)}},
touchstart:function(E){Gk("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E),E.changedTouches[0],E)},
touchend:function(E){Gk("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E),E.changedTouches[0],E)}});
E6D({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(E){this.moves.length>2&&this.moves.shift();this.moves.push(E)},
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;mS(this.info)},
mousedown:function(E){if(zk(E)){var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E),I=this,T=function(e){var c=e.clientX,Y=e.clientY;BZF(I.info,c,Y)&&(I.info.state=I.info.started?e.type==="mouseup"?"end":"track":"start",I.info.state==="start"&&dl("tap"),I.info.addMove({x:c,y:Y}),zk(e)||(I.info.state="end",mS(I.info)),B&&$o4(I.info,B,e),I.info.started=!0)};
fRi(this.info,T,function(e){I.info.started&&T(e);mS(I.info)});
this.info.x=E.clientX;this.info.y=E.clientY}},
touchstart:function(E){E=E.changedTouches[0];this.info.x=E.clientX;this.info.y=E.clientY},
touchmove:function(E){var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E);E=E.changedTouches[0];var I=E.clientX,T=E.clientY;BZF(this.info,I,T)&&(this.info.state==="start"&&dl("tap"),this.info.addMove({x:I,y:T}),$o4(this.info,B,E),this.info.state="track",this.info.started=!0)},
touchend:function(E){var B=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E);E=E.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:E.clientX,y:E.clientY}),$o4(this.info,B,E))}});
E6D({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(E){zk(E)&&(this.info.x=E.clientX,this.info.y=E.clientY)},
click:function(E){zk(E)&&TZ6(this.info,E)},
touchstart:function(E){E=E.changedTouches[0];this.info.x=E.clientX;this.info.y=E.clientY},
touchend:function(E){TZ6(this.info,E.changedTouches[0],E)}});var Al6=fL(function(E){var B=function(){return E.apply(this,arguments)||this};
_.L(B,E);B.prototype._addEventListenerToNode=function(I,T,e){sp(I,T,e)||E.prototype._addEventListenerToNode.call(this,I,T,e)};
B.prototype._removeEventListenerFromNode=function(I,T,e){uZ(I,T,e)||E.prototype._removeEventListenerFromNode.call(this,I,T,e)};
return B});var ce=fL(function(E){var B=function(){return E.apply(this,arguments)||this};
_.L(B,E);B.prototype._shouldPropertyChange=function(I,T,e){return ei4(this,I,T,e,!0)};
return B}),j26=fL(function(E){var B=function(){return E.apply(this,arguments)||this};
_.L(B,E);B.prototype._shouldPropertyChange=function(I,T,e){return ei4(this,I,T,e,this.mutableData)};
_.Up.Object.defineProperties(B,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return B});
ce._mutablePropertyChange=ei4;var lui=!1;var Uf6=Al6(j26(qB(HTMLElement))),iM=function(){var E=Uf6.call(this)||this;if(S$)throw Error("Gd");E.root=null;E.$=null;E.__children=null;return E};
_.L(iM,Uf6);_.l=iM.prototype;_.l.attributeChangedCallback=function(){this.mutableData=!0};
_.l.connectedCallback=function(){cCQ()||(this.style.display="none");this.render()};
_.l.disconnectedCallback=function(){this.__removeChildren()};
_.l.__insertChildren=function(){(0,_.Yq)((0,_.Yq)(this).parentNode).insertBefore(this.root,this)};
_.l.__removeChildren=function(){if(this.__children)for(var E=0;E<this.__children.length;E++)this.root.appendChild(this.__children[E])};
_.l.render=function(){var E=this;if(!this.__children){var B=B||this.querySelector("template");if(!B){var I=new MutationObserver(function(){if(B=E.querySelector("template"))I.disconnect(),E.render();else throw Error("Hd");});
I.observe(this,{childList:!0});return}this.root=this._stampTemplate(B);this.$=this.root.$;this.__children=[];for(var T=this.root.firstChild;T;T=T.nextSibling)this.__children[this.__children.length]=T;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Up.Object.defineProperties(iM,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",iM);Polymer.Debouncer=$b;Polymer.Gestures={gestures:hJ,recognizers:QX,deepTargetFind:VfD,addListener:sp,removeListener:uZ,register:E6D,setTouchAction:_.Lg,prevent:dl,resetMouseCanceller:function(){lM&&lM.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:sp,remove:uZ};Polymer.GestureEventListeners=Al6;Polymer.MutableData=ce;Polymer.OptionalMutableData=j26;Polymer.DomBind=iM;_.po=function(){do{var E=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var B=XNz()}while(E||B)};var ifB=null;pD6.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:pD6,writable:!0}});var PJt=qB(pD6),Zfc=ce(PJt),kaz=qB(function(){}),Hu=function(E){var B=kaz.call(this)||this;
B._configureProperties(E);B.root=B._stampTemplate(B.__dataHost);var I=[];B.children=I;for(var T=B.root.firstChild;T;T=T.nextSibling)I.push(T),T.__templatizeInstance=B;B.__templatizeOwner&&B.__templatizeOwner.__hideTemplateChildren__&&B._showHideChildren(!0);I=B.__templatizeOptions;(E&&I.instanceProps||!I.instanceProps)&&B._enableProperties();return B};
_.L(Hu,kaz);_.l=Hu.prototype;_.l._configureProperties=function(E){if(this.__templatizeOptions.forwardHostProp)for(var B in this.__hostProps)this._setPendingProperty(B,this.__dataHost["_host_"+B]);for(var I in E)this._setPendingProperty(I,E[I])};
_.l.forwardHostProp=function(E,B){this._setPendingPropertyOrPath(E,B,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.l._addEventListenerToNode=function(E,B,I){var T=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(E,B,function(c){c.model=T;I(c)});
else{var e=this.__dataHost.__dataHost;e&&e._addEventListenerToNode(E,B,I)}};
_.l._showHideChildren=function(E){aud(E,this.children)};
_.l._setUnmanagedPropertyToNode=function(E,B,I){E.__hideTemplateChildren__&&E.nodeType==Node.TEXT_NODE&&B=="textContent"?E.__polymerTextContent__=I:kaz.prototype._setUnmanagedPropertyToNode.call(this,E,B,I)};
_.l.dispatchEvent=function(){return!0};
_.Up.Object.defineProperties(Hu.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var E=this.__parentModel;if(!E){var B;E=this;do E=E.__dataHost.__dataHost;while((B=E.__templatizeOptions)&&!B.parentModel);this.__parentModel=E}return E}}});
var yCF=ce(Hu);var Yb=function(){var E=DY.call(this)||this;E.__renderDebouncer=null;E._lastIf=!1;E.__hideTemplateChildren__=!1;return E};
_.L(Yb,DY);_.l=Yb.prototype;_.l.__debounceRender=function(){var E=this;this.__renderDebouncer=_.Tz(this.__renderDebouncer,xq,function(){return E.__render()});
_.eo(this.__renderDebouncer)};
_.l.disconnectedCallback=function(){DY.prototype.disconnectedCallback.call(this);var E=(0,_.Yq)(this).parentNode;E&&(E.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Yq)(E).host)||this.__teardownInstance()};
_.l.connectedCallback=function(){DY.prototype.connectedCallback.call(this);cCQ()||(this.style.display="none");this.if&&this.__debounceRender()};
_.l.__ensureTemplate=function(){var E=this;if(!this.__template){var B=this._templateInfo?this:(0,_.Yq)(this).querySelector("template");if(!B){var I=new MutationObserver(function(){if((0,_.Yq)(E).querySelector("template"))I.disconnect(),E.__render();else throw Error("Kd");});
I.observe(this,{childList:!0});return!1}this.__template=B}return!0};
_.l.__ensureInstance=function(){var E=(0,_.Yq)(this).parentNode;if(this.__hasInstance()){var B=this.__getInstanceNodes();if(B&&B.length&&(0,_.Yq)(this).previousSibling!==B[B.length-1])for(var I=0,T=void 0;I<B.length&&(T=B[I]);I++)(0,_.Yq)(E).insertBefore(T,this)}else{if(!E||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(E)}return!0};
_.l.render=function(){_.po()};
_.l.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();UH&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.l.__hasInstance=function(){};
_.l.__getInstanceNodes=function(){};
_.l.__createAndInsertInstance=function(){};
_.l.__teardownInstance=function(){};
_.l._showHideChildren=function(){};
_.Up.Object.defineProperties(Yb,{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:Yb.prototype.__debounceRender},restamp:{type:Boolean,observer:Yb.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var tYz=function(){var E=Yb.call(this)||this;E.__instance=null;E.__syncInfo=null;return E};
_.L(tYz,Yb);_.l=tYz.prototype;_.l.__hasInstance=function(){return!!this.__instance};
_.l.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.l.__createAndInsertInstance=function(E){var B=this,I=this.__dataHost||this;if(S$&&!this.__dataHost)throw Error("Id");var T=I._bindTemplate(this.__template,!0);T.runEffects=function(e,c,Y){var v=B.__syncInfo;if(B.if)v&&(B.__syncInfo=null,B._showHideChildren(),c=Object.assign(v.changedProps,c)),e(c,Y);else if(B.__instance)if(v||(v=B.__syncInfo={runEffects:e,changedProps:{}}),Y)for(var y in c)e=Ij(y),v.changedProps[e]=B.__dataHost[e];else Object.assign(v.changedProps,c)};
this.__instance=I._stampTemplate(this.__template,T);(0,_.Yq)(E).insertBefore(this.__instance,this)};
_.l.__syncHostProperties=function(){var E=this.__syncInfo;E&&(this.__syncInfo=null,E.runEffects(E.changedProps,!1))};
_.l.__teardownInstance=function(){var E=this.__dataHost||this;this.__instance&&(E._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.l._showHideChildren=function(){var E=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==E&&(this.__instance.__hidden=E,aud(E,this.__instance.templateInfo.childNodes));E||this.__syncHostProperties()};
var fBN=function(){var E=Yb.call(this)||this;E.__ctor=null;E.__instance=null;E.__invalidProps=null;return E};
_.L(fBN,Yb);_.l=fBN.prototype;_.l.__hasInstance=function(){return!!this.__instance};
_.l.__getInstanceNodes=function(){return this.__instance.children};
_.l.__createAndInsertInstance=function(E){this.__ctor||(this.__ctor=Nq(this.__template,this,{mutableData:!0,forwardHostProp:function(B,I){this.__instance&&(this.if?this.__instance.forwardHostProp(B,I):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Ij(B)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Yq)(E).insertBefore(this.__instance.root,this)};
_.l.__teardownInstance=function(){if(this.__instance){var E=this.__instance.children;if(E&&E.length){var B=(0,_.Yq)(E[0]).parentNode;if(B){B=(0,_.Yq)(B);for(var I=0,T=void 0;I<E.length&&(T=E[I]);I++)B.removeChild(T)}}this.__instance=this.__invalidProps=null}};
_.l.__syncHostProperties=function(){var E=this.__invalidProps;if(E){this.__invalidProps=null;for(var B in E)this.__instance._setPendingProperty(B,this.__dataHost[B]);this.__instance._flushProperties()}};
_.l._showHideChildren=function(){var E=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==E&&(this.__instance.__hidden=E,this.__instance._showHideChildren(E));E||this.__syncHostProperties()};
_.Pl=jJ?tYz:fBN;customElements.define(_.Pl.is,_.Pl);Polymer.enqueueDebouncer=_.eo;Polymer.flush=_.po;Polymer.Templatize={templatize:Nq,modelForElement:s0J};Polymer.TemplateInstanceBase=Hu;Polymer.DomIf=_.Pl;var VYD=j26(DY),ZN=function(){var E=VYD.call(this)||this;E.__instances=[];E.__renderDebouncer=null;E.__itemsIdxToInstIdx={};E.__chunkCount=null;E.__renderStartTime=null;E.__itemsArrayChanged=!1;E.__shouldMeasureChunk=!1;E.__shouldContinueChunking=!1;E.__chunkingId=0;E.__sortFn=null;E.__filterFn=null;E.__observePaths=null;E.__ctor=null;E.__isDetached=!0;E.template=null;return E};
_.L(ZN,VYD);_.l=ZN.prototype;_.l.disconnectedCallback=function(){VYD.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var E=0;E<this.__instances.length;E++)this.__detachInstance(E);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.l.connectedCallback=function(){VYD.prototype.connectedCallback.call(this);cCQ()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var E=(0,_.Yq)((0,_.Yq)(this).parentNode),B=0;B<this.__instances.length;B++)this.__attachInstance(B,E);this.__chunkingId&&this.__render()}};
_.l.__ensureTemplatized=function(){var E=this;if(!this.__ctor){var B=this.template=this._templateInfo?this:this.querySelector("template");if(!B){var I=new MutationObserver(function(){if(E.querySelector("template"))I.disconnect(),E.__render();else throw Error("Ld");});
I.observe(this,{childList:!0});return!1}var T={};T[this.as]=!0;T[this.indexAs]=!0;T[this.itemsIndexAs]=!0;this.__ctor=Nq(B,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:T,forwardHostProp:function(e,c){for(var Y=this.__instances,v=0,y=void 0;v<Y.length&&(y=Y[v]);v++)y.forwardHostProp(e,c)},
notifyInstanceProp:function(e,c,Y){o3f(this.as,c)&&(e=e[this.itemsIndexAs],c==this.as&&(this.items[e]=Y),c=e$(this.as,"items."+e,c),this.notifyPath(c,Y))}})}return!0};
_.l.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.l.__functionFromPropertyValue=function(E){if(typeof E==="string"){var B=this.__getMethodHost();return function(){return B[E].apply(B,arguments)}}return E};
_.l.__sortChanged=function(E){this.__sortFn=this.__functionFromPropertyValue(E);this.items&&this.__debounceRender(this.__render)};
_.l.__filterChanged=function(E){this.__filterFn=this.__functionFromPropertyValue(E);this.items&&this.__debounceRender(this.__render)};
_.l.__computeFrameTime=function(E){return Math.ceil(1E3/E)};
_.l.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.l.__handleObservedPaths=function(E){if(this.__sortFn||this.__filterFn)if(!E)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var B=this.__observePaths,I=0;I<B.length;I++)E.indexOf(B[I])===0&&this.__debounceRender(this.__render,this.delay)};
_.l.__itemsChanged=function(E){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(E.path,E.value)||(E.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.l.__debounceRender=function(E,B){B=B===void 0?0:B;this.__renderDebouncer=_.Tz(this.__renderDebouncer,B>0?_.tL.after(B):xq,E.bind(this));_.eo(this.__renderDebouncer)};
_.l.render=function(){this.__debounceRender(this.__render);_.po()};
_.l.__render=function(){var E=this;if(this.__ensureTemplatized()){var B=this.items||[],I=this.__sortAndFilterItems(B),T=this.__calculateLimit(I.length);this.__updateInstances(B,T,I);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){E.__chunkingId=null;E.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);UH&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.l.__sortAndFilterItems=function(E){for(var B=this,I=Array(E.length),T=0;T<E.length;T++)I[T]=T;this.__filterFn&&(I=I.filter(function(e,c,Y){return B.__filterFn(E[e],c,Y)}));
this.__sortFn&&I.sort(function(e,c){return B.__sortFn(E[e],E[c])});
return I};
_.l.__calculateLimit=function(E){var B=E,I=this.__instances.length;if(this.initialCount){var T;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(B=Math.min(E,this.initialCount),this.__chunkCount=(T=Math.max(B-I,0))||1):(T=Math.min(Math.max(E-I,0),this.__chunkCount),B=Math.min(I+T,E));this.__shouldMeasureChunk=T===this.__chunkCount;this.__shouldContinueChunking=B<E;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return B};
_.l.__continueChunking=function(){if(this.__shouldMeasureChunk){var E=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/E*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.l.__updateInstances=function(E,B,I){var T=this.__itemsIdxToInstIdx={},e;for(e=0;e<B;e++){var c=this.__instances[e],Y=I[e],v=E[Y];T[Y]=e;c?(c._setPendingProperty(this.as,v),c._setPendingProperty(this.indexAs,e),c._setPendingProperty(this.itemsIndexAs,Y),c._flushProperties()):this.__insertInstance(v,e,Y)}for(E=this.__instances.length-1;E>=e;E--)this.__detachAndRemoveInstance(E)};
_.l.__detachInstance=function(E){E=this.__instances[E];for(var B=(0,_.Yq)(E.root),I=0;I<E.children.length;I++)B.appendChild(E.children[I]);return E};
_.l.__attachInstance=function(E,B){B.insertBefore(this.__instances[E].root,this)};
_.l.__detachAndRemoveInstance=function(E){this.__detachInstance(E);this.__instances.splice(E,1)};
_.l.__stampInstance=function(E,B,I){var T={};T[this.as]=E;T[this.indexAs]=B;T[this.itemsIndexAs]=I;return new this.__ctor(T)};
_.l.__insertInstance=function(E,B,I){E=this.__stampInstance(E,B,I);I=(I=this.__instances[B+1])?I.children[0]:this;(0,_.Yq)((0,_.Yq)(this).parentNode).insertBefore(E.root,I);return this.__instances[B]=E};
_.l._showHideChildren=function(E){for(var B=0;B<this.__instances.length;B++)this.__instances[B]._showHideChildren(E)};
_.l.__handleItemPath=function(E,B){var I=E.slice(6),T=I.indexOf(".");E=T<0?I:I.substring(0,T);if(E==parseInt(E,10)){I=T<0?"":I.substring(T+1);this.__handleObservedPaths(I);if(E=this.__instances[this.__itemsIdxToInstIdx[E]])E._setPendingPropertyOrPath(this.as+(I?"."+I:""),B,!1,!0),E._flushProperties();return!0}};
_.l.itemForElement=function(E){return(E=this.modelForElement(E))&&E[this.as]};
_.l.indexForElement=function(E){return(E=this.modelForElement(E))&&E[this.indexAs]};
_.l.modelForElement=function(E){return s0J(this.template,E)};
_.Up.Object.defineProperties(ZN,{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:ZN.prototype.__sortChanged},filter:{type:Function,observer:ZN.prototype.__filterChanged},observe:{type:String,observer:ZN.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!UH,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.*)"]}}});
ZN.prototype._setRenderedItemCount=function(){};
customElements.define(ZN.is,ZN);Polymer.DomRepeat=ZN;var qKZ=function(E,B){var I=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=E;this.callback=B;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){I._schedule()};
this.connect();this._schedule()},FrZ=function(E){var B=(0,_.Yq)(E);
if(JJ(E))return B.assignedNodes({flatten:!0});E=[];for(var I=0;I<B.childNodes.length;I++){var T=B.childNodes[I];JJ(T)?E.push.apply(E,_.ad((0,_.Yq)(T).assignedNodes({flatten:!0}))):E.push(T)}return E};
_.l=qKZ.prototype;_.l.connect=function(){var E=this;JJ(this._target)?this._listenSlots([this._target]):(0,_.Yq)(this._target).children&&(this._listenSlots((0,_.Yq)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(B){E._processMutations(B)}):(this._nativeChildrenObserver=new MutationObserver(function(B){E._processMutations(B)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.l.disconnect=function(){JJ(this._target)?this._unlistenSlots([this._target]):(0,_.Yq)(this._target).children&&(this._unlistenSlots((0,_.Yq)(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};
_.l._schedule=function(){var E=this;this._scheduled||(this._scheduled=!0,xq.run(function(){return E.flush()}))};
_.l._processMutations=function(E){this._processSlotMutations(E);this.flush()};
_.l._processSlotMutations=function(E){if(E)for(var B=0;B<E.length;B++){var I=E[B];I.addedNodes&&this._listenSlots(I.addedNodes);I.removedNodes&&this._unlistenSlots(I.removedNodes)}};
_.l.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 E={target:this._target,addedNodes:[],removedNodes:[]},B=FrZ(this._target),I=hLG(B,this._effectiveNodes),T=0,e=void 0;T<I.length&&(e=I[T]);T++)for(var c=0,Y=void 0;c<e.removed.length&&(Y=e.removed[c]);c++)E.removedNodes.push(Y);
T=0;for(e=void 0;T<I.length&&(e=I[T]);T++)for(c=e.index;c<e.index+e.addedCount;c++)E.addedNodes.push(B[c]);this._effectiveNodes=B;B=!1;if(E.addedNodes.length||E.removedNodes.length)B=!0,this.callback.call(this._target,E);return B};
_.l._listenSlots=function(E){for(var B=0;B<E.length;B++){var I=E[B];JJ(I)&&I.addEventListener("slotchange",this._boundSchedule)}};
_.l._unlistenSlots=function(E){for(var B=0;B<E.length;B++){var I=E[B];JJ(I)&&I.removeEventListener("slotchange",this._boundSchedule)}};var an=Element.prototype,DfR=an.matches||an.matchesSelector||an.mozMatchesSelector||an.msMatchesSelector||an.oMatchesSelector||an.webkitMatchesSelector,KrU=function(E,B){return DfR.call(E,B)},Wu=function(E){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(E);
this.node=E},$g$;
_.l=Wu.prototype;_.l.observeNodes=function(E){return new qKZ(this.node,E)};
_.l.unobserveNodes=function(E){E.disconnect()};
_.l.notifyObserver=function(){};
_.l.deepContains=function(E){if((0,_.Yq)(this.node).contains(E))return!0;var B=E;for(E=E.ownerDocument;B&&B!==E&&B!==this.node;)B=(0,_.Yq)(B).parentNode||(0,_.Yq)(B).host;return B===this.node};
_.l.getOwnerRoot=function(){return(0,_.Yq)(this.node).getRootNode()};
_.l.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Yq)(this.node).assignedNodes({flatten:!0}):[]};
_.l.getDestinationInsertionPoints=function(){for(var E=[],B=(0,_.Yq)(this.node).assignedSlot;B;)E.push(B),B=(0,_.Yq)(B).assignedSlot;return E};
_.l.importNode=function(E,B){return(0,_.Yq)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(E,B)};
_.l.getEffectiveChildNodes=function(){return FrZ(this.node)};
_.l.queryDistributedElements=function(E){for(var B=this.getEffectiveChildNodes(),I=[],T=0,e=B.length,c=void 0;T<e&&(c=B[T]);T++)c.nodeType===Node.ELEMENT_NODE&&KrU(c,E)&&I.push(c);return I};
_.Up.Object.defineProperties(Wu.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var E=this.node;return E._activeElement!==void 0?E._activeElement:E.activeElement}}});
var ve=function(E){this.event=E};
_.Up.Object.defineProperties(ve.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 RDh=Wu;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var END=window.ShadyDOM.Wrapper,BK$=function(){return END.apply(this,arguments)||this};
_.L(BK$,END);Object.getOwnPropertyNames(Wu.prototype).forEach(function(E){E!="activeElement"&&E!="constructor"&&(BK$.prototype[E]=Wu.prototype[E])});
LxG(BK$.prototype,["classList"]);RDh=BK$;Object.defineProperties(ve.prototype,{localTarget:{get:function(){var E=this.event.currentTarget;E=E&&_.QT(E).getOwnerRoot();for(var B=this.path,I=0;I<B.length;I++){var T=B[I];if(_.QT(T).getOwnerRoot()===E)return T}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else uzc(),LxG(Wu.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),xoQ();$g$=RDh;_.QT=function(E){E=E||document;if(E instanceof RDh)return E;if(E instanceof ve)return E;var B=E.__domApi;B||(E instanceof Event?B=new ve(E):B=new RDh(E),E.__domApi=B);return B};var Imt=/:host\(:dir\((ltr|rtl)\)\)/g,TKZ=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,eJu=/:dir\((?:ltr|rtl)\)/,lmN=!(!window.ShadyDOM||!window.ShadyDOM.inUse),rl=[],yO=null,X7="",c2N=fL(function(E){lmN||yO||(X7=document.documentElement.getAttribute("dir"),yO=new MutationObserver(GNF),yO.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var B=vOl(E);E=function(){var I=B.call(this)||this;I.__autoDirOptOut=!1;return I};
_.L(E,B);E._processStyleText=function(I,T){I=B._processStyleText.call(this,I,T);!lmN&&eJu.test(I)&&(I=this._replaceDirInCssText(I),this.__activateDir=!0);return I};
E._replaceDirInCssText=function(I){I=I.replace(Imt,':host([dir="$1"])');return I=I.replace(TKZ,':host([dir="$2"]) $1')};
E.prototype.ready=function(){B.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
E.prototype.connectedCallback=function(){B.prototype.connectedCallback&&B.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(yO&&yO.takeRecords().length&&GNF(),rl.push(this),this.__autoDirOptOut||this.setAttribute("dir",X7))};
E.prototype.disconnectedCallback=function(){B.prototype.disconnectedCallback&&B.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var I=rl.indexOf(this);I>-1&&rl.splice(I,1)}};
E.__activateDir=!1;return E});var i9D=function(E){for(;E;){var B=Object.getOwnPropertyDescriptor(E,"observedAttributes");if(B)return B.get;E=Object.getPrototypeOf(E.prototype).constructor}return function(){return[]}};
fL(function(E){var B=Fn(E),I=i9D(B);E=function(){return B.call(this)||this};
_.L(E,B);E.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:B.prototype._initializeProperties.call(this)};
E.prototype._enableProperties=function(){this.__isUpgradeDisabled||B.prototype._enableProperties.call(this)};
E.prototype._canApplyPropertyDefault=function(T){return B.prototype._canApplyPropertyDefault.call(this,T)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(T))};
E.prototype.attributeChangedCallback=function(T,e,c,Y){T=="disable-upgrade"?this.__isUpgradeDisabled&&c==null&&(B.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Yq)(this).isConnected&&B.prototype.connectedCallback.call(this)):B.prototype.attributeChangedCallback.call(this,T,e,c,Y)};
E.prototype.connectedCallback=function(){this.__isUpgradeDisabled||B.prototype.connectedCallback.call(this)};
E.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||B.prototype.disconnectedCallback.call(this)};
_.Up.Object.defineProperties(E,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return I.call(this).concat("disable-upgrade")}}});
return E});var bZ=!1,n6F=[],oj=[];var g6d=window.ShadyDOM,Sjd=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",WxF):document.readyState==="interactive"||document.readyState==="complete"?WxF():window.addEventListener("DOMContentLoaded",WxF);var bfc=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=""},XDG=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,rCQ=/@import[^;]*;/gim,t9F=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,fui=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,V9D=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,qjF=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,UoG=/^@[^\s]*keyframes/,
j0c=/\s+/g;var Fxi={};var Rid=Promise.resolve();var pPh=new Set;var Y3$=/;\s*/m,amr=/^\s*(initial)|(inherit)\s*$/,vNV=/\s*!important/,y2U=function(){this._map={}};
y2U.prototype.set=function(E,B){E=E.trim();this._map[E]={properties:B,dependants:{}}};
y2U.prototype.get=function(E){E=E.trim();return this._map[E]||null};
var Cmt=null,Co=function(){this._measureElement=this._currentElement=null;this._map=new y2U};
_.l=Co.prototype;_.l.detectMixin=function(E){E=MYZ.test(E)||nOZ.test(E);MYZ.lastIndex=0;nOZ.lastIndex=0;return E};
_.l.transformTemplate=function(E,B){if(E._gatheredStyle===void 0){var I=[];for(var T=E.content.querySelectorAll("style"),e=0;e<T.length;e++){var c=T[e];if(c.hasAttribute("shady-unscoped")){if(!NT4){var Y=c.textContent;if(!pPh.has(Y)){pPh.add(Y);var v=document.createElement("style");v.setAttribute("shady-unscoped","");v.textContent=Y;document.head.appendChild(v)}c.parentNode.removeChild(c)}}else I.push(c.textContent),c.parentNode.removeChild(c)}(I=I.join("").trim())?(T=document.createElement("style"),
T.textContent=I,E.content.insertBefore(T,E.content.firstChild),I=T):I=null;E._gatheredStyle=I}return(E=E._gatheredStyle)?this.JSC$9064_transformStyle(E,B):null};
_.l.JSC$9064_transformStyle=function(E,B){B=B===void 0?"":B;var I=I4Q(E);this.transformRules(I,B);E.textContent=$sB(I);return I};
_.l.transformCustomStyle=function(E){var B=this,I=I4Q(E);eVd(I,function(T){T.selector===":root"&&(T.selector="html");B.transformRule(T)});
E.textContent=$sB(I);return I};
_.l.transformRules=function(E,B){var I=this;this._currentElement=B;eVd(E,function(T){I.transformRule(T)});
this._currentElement=null};
_.l.transformRule=function(E){E.cssText=wPX(this,E.parsedCssText,E);E.selector===":root"&&(E.selector=":host > *")};
var wPX=function(E,B,I){B=B.replace(nOZ,function(T,e,c,Y){return E._produceCssProperties(T,e,c,Y,I)});
return E._consumeCssProperties(B,I)};
_.l=Co.prototype;_.l._getInitialValueForProperty=function(E){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(E)};
_.l._fallbacksFromPreviousRules=function(E){for(var B=this,I=E;I.parent;)I=I.parent;var T={},e=!1;eVd(I,function(c){(e=e||c===E)||c.selector===E.selector&&Object.assign(T,B._cssTextToMap(c.parsedCssText))});
return T};
_.l._consumeCssProperties=function(E,B){for(var I;I=MYZ.exec(E);){var T=I[0],e=I[1];I=I.index;var c=I+T.indexOf("@apply"),Y=I+T.length;T=E.slice(0,c);E=E.slice(Y);c=B?this._fallbacksFromPreviousRules(B):{};Object.assign(c,this._cssTextToMap(T));e=this._atApplyToCssProperties(e,c);E=T+e+E;MYZ.lastIndex=I+e.length}return E};
_.l._atApplyToCssProperties=function(E,B){E=E.replace(Y3$,"");var I=[],T=this._map.get(E);T||(this._map.set(E,{}),T=this._map.get(E));if(T){this._currentElement&&(T.dependants[this._currentElement]=!0);var e,c=T.properties;for(e in c){var Y=B&&B[e];T=[e,": var(",E,"_-_",e];Y&&T.push(",",Y.replace(vNV,""));T.push(")");vNV.test(c[e])&&T.push(" !important");I.push(T.join(""))}}return I.join("; ")};
_.l._replaceInitialOrInherit=function(E,B){var I=amr.exec(B);I&&(B=I[1]?this._getInitialValueForProperty(E):"apply-shim-inherit");return B};
_.l._cssTextToMap=function(E,B){B=B===void 0?!1:B;E=E.split(";");for(var I,T,e={},c=0;c<E.length;c++)if(I=E[c])T=I.split(":"),T.length>1&&(I=T[0].trim(),T=T.slice(1).join(":"),B&&(T=this._replaceInitialOrInherit(I,T)),e[I]=T);return e};
_.l._invalidateMixinEntry=function(E){if(Cmt)for(var B in E.dependants)B!==this._currentElement&&Cmt(B)};
_.l._produceCssProperties=function(E,B,I,T,e){var c=this;I&&l46(I,function(x,M){M&&c._map.get(M)&&(T="@apply "+M+";")});
if(!T)return E;var Y=this._consumeCssProperties(""+T,e);e=E.slice(0,E.indexOf("--"));var v=Y=this._cssTextToMap(Y,!0),y=this._map.get(B),Z=y&&y.properties;Z?v=Object.assign(Object.create(Z),Y):this._map.set(B,v);var P=[],z,m=!1;for(z in v){var u=Y[z];u===void 0&&(u="initial");!Z||z in Z||(m=!0);P.push(B+"_-_"+z+": "+u)}m&&this._invalidateMixinEntry(y);y&&(y.properties=v);I&&(e=E+";"+e);return e+P.join("; ")+";"};
Co.prototype.detectMixin=Co.prototype.detectMixin;Co.prototype.transformStyle=Co.prototype.JSC$9064_transformStyle;Co.prototype.transformCustomStyle=Co.prototype.transformCustomStyle;Co.prototype.transformRules=Co.prototype.transformRules;Co.prototype.transformRule=Co.prototype.transformRule;Co.prototype.transformTemplate=Co.prototype.transformTemplate;Co.prototype._separator="_-_";Object.defineProperty(Co.prototype,"invalidCallback",{get:function(){return Cmt},
set:function(E){Cmt=E}});var wo=new Co,Z9R=function(){this.customStyleInterface=null;wo.invalidCallback=Doi},ZO=function(E){!E.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(E.customStyleInterface=window.ShadyCSS.CustomStyleInterface,E.customStyleInterface.transformCallback=function(B){wo.transformCustomStyle(B)},E.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){E.customStyleInterface.enqueued&&E.flushCustomStyles()})})};
_.l=Z9R.prototype;_.l.prepareTemplate=function(E,B){ZO(this);cbG(E)===""&&(Fxi[B]=E,B=wo.transformTemplate(E,B),E._styleAst=B)};
_.l.flushCustomStyles=function(){ZO(this);if(this.customStyleInterface){var E=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var B=0;B<E.length;B++){var I=this.customStyleInterface.getStyleForCustomStyle(E[B]);I&&wo.transformCustomStyle(I)}this.customStyleInterface.enqueued=!1}}};
_.l.styleSubtree=function(E,B){ZO(this);B&&LVF(E,B);if(E.shadowRoot)for(this.styleElement(E),E=E.shadowRoot.children||E.shadowRoot.childNodes,B=0;B<E.length;B++)this.styleSubtree(E[B]);else for(E=E.children||E.childNodes,B=0;B<E.length;B++)this.styleSubtree(E[B])};
_.l.styleElement=function(E){ZO(this);var B=E.localName,I;B?B.indexOf("-")>-1?I=B:I=E.getAttribute&&E.getAttribute("is")||"":I=E.is;B=Fxi[I];if(!(B&&cbG(B)!==""||!B||Kxd(B))){if(Kxd(B)||B._applyShimValidatingVersion!==B._applyShimNextVersion)this.prepareTemplate(B,I),Emc(B);if(E=E.shadowRoot)if(E=E.querySelector("style"))E.__cssRules=B._styleAst,E.textContent=$sB(B._styleAst)}};
_.l.styleDocument=function(E){ZO(this);this.styleSubtree(document.body,E)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Pe=new Z9R,PmN=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(E,B){Pe.flushCustomStyles();Pe.prepareTemplate(E,B)},
prepareTemplateStyles:function(E,B,I){window.ShadyCSS.prepareTemplate(E,B,I)},
prepareTemplateDom:function(){},
styleSubtree:function(E,B){Pe.flushCustomStyles();Pe.styleSubtree(E,B)},
styleElement:function(E){Pe.flushCustomStyles();Pe.styleElement(E)},
styleDocument:function(E){Pe.flushCustomStyles();Pe.styleDocument(E)},
getComputedStyleValue:function(E,B){return xHt(E,B)},
flushCustomStyles:function(){Pe.flushCustomStyles()},
nativeCss:B6F,nativeShadow:NT4,cssBuild:j$,disableRuntime:gO$};PmN&&(window.ShadyCSS.CustomStyleInterface=PmN)}window.ShadyCSS.ApplyShim=wo;var zJU;zJU=window.ShadyCSS;_.zz=fL(function(E){E=Al6(Fn(E));var B=hDX?E:c2N(E),I=i9D(B),T={x:"pan-x",y:"pan-y",none:"none",all:"auto"};E=function(){return B.call(this)||this};
_.L(E,B);E.prototype.created=function(){};
E.prototype.__attributeReaction=function(e,c,Y){(this.__dataAttributes&&this.__dataAttributes[e]||e==="disable-upgrade")&&this.attributeChangedCallback(e,c,Y,null)};
E.prototype.setAttribute=function(e,c){if(FMZ&&!this._legacyForceObservedAttributes){var Y=this.getAttribute(e);B.prototype.setAttribute.call(this,e,c);this.__attributeReaction(e,Y,String(c))}else B.prototype.setAttribute.call(this,e,c)};
E.prototype.removeAttribute=function(e){if(FMZ&&!this._legacyForceObservedAttributes){var c=this.getAttribute(e);B.prototype.removeAttribute.call(this,e);this.__attributeReaction(e,c,null)}else B.prototype.removeAttribute.call(this,e)};
E.prototype._enableProperties=function(){this.__isUpgradeDisabled||B.prototype._enableProperties.call(this)};
E.prototype._canApplyPropertyDefault=function(e){return B.prototype._canApplyPropertyDefault.call(this,e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))};
E.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(B.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
E.prototype.attached=function(){};
E.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(B.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
E.prototype.detached=function(){};
E.prototype.attributeChangedCallback=function(e,c,Y,v){c!==Y&&(e=="disable-upgrade"?this.__isUpgradeDisabled&&Y==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Yq)(this).isConnected&&this.connectedCallback()):(B.prototype.attributeChangedCallback.call(this,e,c,Y,v),this.attributeChanged(e,c,Y)))};
E.prototype.attributeChanged=function(){};
E.prototype._initializeProperties=function(){if(Op&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var e=Object.getPrototypeOf(this);e.hasOwnProperty("__hasRegisterFinished")||(this._registered(),e.__hasRegisterFinished=!0);B.prototype._initializeProperties.call(this);this.root=this;this.created();FMZ&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
E.prototype._takeAttributes=function(){for(var e=this.attributes,c=0,Y=e.length;c<Y;c++){var v=e[c];this.__attributeReaction(v.name,null,v.value)}};
E.prototype._registered=function(){};
E.prototype.ready=function(){this._ensureAttributes();B.prototype.ready.call(this)};
E.prototype._ensureAttributes=function(){};
E.prototype._applyListeners=function(){};
E.prototype.serialize=function(e){return this._serializeValue(e)};
E.prototype.deserialize=function(e,c){return this._deserializeValue(e,c)};
E.prototype.reflectPropertyToAttribute=function(e,c,Y){this._propertyToAttribute(e,c,Y)};
E.prototype.serializeValueToAttribute=function(e,c,Y){this._valueToNodeAttribute(Y||this,e,c)};
E.prototype.extend=function(e,c){if(!e||!c)return e||c;for(var Y=Object.getOwnPropertyNames(c),v=0,y=void 0;v<Y.length&&(y=Y[v]);v++){var Z=Object.getOwnPropertyDescriptor(c,y);Z&&Object.defineProperty(e,y,Z)}return e};
E.prototype.mixin=function(e,c){for(var Y in c)e[Y]=c[Y];return e};
E.prototype.chainObject=function(e,c){e&&c&&e!==c&&(e.__proto__=c);return e};
E.prototype.instanceTemplate=function(e){e=this.constructor._contentForTemplate(e);return document.importNode(e,!0)};
E.prototype.fire=function(e,c,Y){Y=Y||{};c=c===null||c===void 0?{}:c;e=new Event(e,{bubbles:Y.bubbles===void 0?!0:Y.bubbles,cancelable:!!Y.cancelable,composed:Y.composed===void 0?!0:Y.composed});e.detail=c;(0,_.Yq)(Y.node||this).dispatchEvent(e);return e};
E.prototype.listen=function(e,c,Y){e=e||this;var v=this.__boundListeners||(this.__boundListeners=new WeakMap),y=v.get(e);y||(y={},v.set(e,y));v=c+Y;y[v]||(y[v]=this._addMethodEventListenerToNode(e,c,Y,this))};
E.prototype.unlisten=function(e,c,Y){e=e||this;var v=this.__boundListeners&&this.__boundListeners.get(e);Y=c+Y;var y=v&&v[Y];y&&(this._removeEventListenerFromNode(e,c,y),v[Y]=null)};
E.prototype.setScrollDirection=function(e,c){_.Lg(c||this,T[e]||"auto")};
E.prototype.$$=function(e){return this.root.querySelector(e)};
E.prototype.distributeContent=function(){var e=_.QT(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()};
E.prototype.getEffectiveChildNodes=function(){return _.QT(this).getEffectiveChildNodes()};
E.prototype.queryDistributedElements=function(e){return _.QT(this).queryDistributedElements(e)};
E.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})};
E.prototype.getEffectiveTextContent=function(){for(var e=this.getEffectiveChildNodes(),c=[],Y=0,v;v=e[Y];Y++)v.nodeType!==Node.COMMENT_NODE&&c.push(v.textContent);return c.join("")};
E.prototype.queryEffectiveChildren=function(e){return(e=this.queryDistributedElements(e))&&e[0]};
E.prototype.queryAllEffectiveChildren=function(e){return this.queryDistributedElements(e)};
E.prototype.getContentChildNodes=function(e){return(e=this.root.querySelector(e||"slot"))?_.QT(e).getDistributedNodes():[]};
E.prototype.getContentChildren=function(e){return this.getContentChildNodes(e).filter(function(c){return c.nodeType===Node.ELEMENT_NODE})};
E.prototype.isLightDescendant=function(e){return this!==e&&(0,_.Yq)(this).contains(e)&&(0,_.Yq)(this).getRootNode()===(0,_.Yq)(e).getRootNode()};
E.prototype.isLocalDescendant=function(e){return this.root===(0,_.Yq)(e).getRootNode()};
E.prototype.scopeSubtree=function(e,c){return JCF(e,c===void 0?!1:c)};
E.prototype.getComputedStyleValue=function(e){return zJU.getComputedStyleValue(this,e)};
E.prototype.debounce=function(e,c,Y){this._debouncers=this._debouncers||{};return this._debouncers[e]=_.Tz(this._debouncers[e],Y>0?_.tL.after(Y):xq,c.bind(this))};
E.prototype.isDebouncerActive=function(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];return!(!e||!e.isActive())};
E.prototype.flushDebouncer=function(e){this._debouncers=this._debouncers||{};(e=this._debouncers[e])&&e.flush()};
E.prototype.cancelDebouncer=function(e){this._debouncers=this._debouncers||{};(e=this._debouncers[e])&&e.cancel()};
E.prototype.async=function(e,c){return c>0?_.tL.run(e.bind(this),c):~xq.run(e.bind(this))};
E.prototype.cancelAsync=function(e){e<0?xq.cancel(~e):_.tL.cancel(e)};
E.prototype.create=function(e,c){e=document.createElement(e);if(c)if(e.setProperties)e.setProperties(c);else for(var Y in c)e[Y]=c[Y];return e};
E.prototype.elementMatches=function(e,c){return KrU(c||this,e)};
E.prototype.toggleAttribute=function(e,c){var Y=this;arguments.length===3&&(Y=arguments[2]);arguments.length==1&&(c=!Y.hasAttribute(e));if(c)return(0,_.Yq)(Y).setAttribute(e,""),!0;(0,_.Yq)(Y).removeAttribute(e);return!1};
E.prototype.toggleClass=function(e,c,Y){Y=Y||this;arguments.length==1&&(c=!Y.classList.contains(e));c?Y.classList.add(e):Y.classList.remove(e)};
E.prototype.transform=function(e,c){c=c||this;c.style.webkitTransform=e;c.style.transform=e};
E.prototype.translate3d=function(e,c,Y,v){this.transform("translate3d("+e+","+c+","+Y+")",v||this)};
E.prototype.arrayDelete=function(e,c){if(Array.isArray(e)){if(c=e.indexOf(c),c>=0)return e.splice(c,1)}else if(c=cu(this,e).indexOf(c),c>=0)return this.splice(e,c,1);return null};
E.prototype._logger=function(e,c){Array.isArray(c)&&c.length===1&&Array.isArray(c[0])&&(c=c[0]);switch(e){case "log":case "warn":case "error":console[e].apply(console,_.ad(c))}};
E.prototype._log=function(){this._logger("log",_.aG.apply(0,arguments))};
E.prototype._warn=function(){this._logger("warn",_.aG.apply(0,arguments))};
E.prototype._error=function(){this._logger("error",_.aG.apply(0,arguments))};
E.prototype._logf=function(e){return["[%s::%s]",this.is,e].concat(_.ad(_.aG.apply(1,arguments)))};
_.Up.Object.defineProperties(E.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var e=(0,_.Yq)(this).getRootNode();return e instanceof DocumentFragment?e.host:e}}});
_.Up.Object.defineProperties(E,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return FMZ&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],g3d(this.prototype)),this.__observedAttributes):I.call(this).concat("disable-upgrade")}}});
E.prototype.is="";return E});Polymer.FlattenedNodesObserver=qKZ;Polymer.DomApi=$g$;Polymer.EventApi=ve;Polymer.dom=_.QT;Polymer.dom.matchesSelector=KrU;Polymer.dom.flush=_.po;Polymer.dom.addDebouncer=_.eo;Polymer.DirMixin=c2N;Polymer.RenderStatus={beforeNextRender:_.NZD,afterNextRender:_.AJ,flush:function(){for(;n6F.length||oj.length;)Of4(n6F),Of4(oj);bZ=!1}};Polymer.LegacyElementMixin=_.zz;var mgu;mgu=ce._mutablePropertyChange;var QYZ={properties:{mutableData:Boolean},_shouldPropertyChange:function(E,B,I){return mgu(this,E,B,I,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(E,B,I){return mgu(this,E,B,I,!0)}};
Polymer.OptionalMutableDataBehavior=QYZ;var iJB={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},ybc={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},vmD=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},ybc),dgZ=(0,_.zz)(HTMLElement),cFG=function(E,B){E||console.warn("Polymer.Class requires `info` argument");B=B?B(dgZ):dgZ;B=Cb4(E,B,E.behaviors);B.is=B.prototype.is=
E.is;return B};Polymer.Class=cFG;Polymer.mixinBehaviors=function(E,B){return Cb4({},(0,_.zz)(B),E)};
Polymer.GenerateClassFromInfo=Cb4;_.wp=function(E){var B=typeof E==="function"?E:_.wp.Class(E);E._legacyForceObservedAttributes&&(B.prototype._legacyForceObservedAttributes=E._legacyForceObservedAttributes);customElements.define(B.is,B);return B};
_.wp.Class=cFG;Polymer._polymerFn=_.wp;var hJV=window.onLegacyPolymerFunctionDefinedCallback;hJV&&hJV();var p4D={templatize:function(E,B){this._templatizerTemplate=E;this.ctor=Nq(E,this,{mutableData:!!B,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(E){return new this.ctor(E)},
modelForElement:function(E){return s0J(this._templatizerTemplate,E)}};Polymer.Templatizer=p4D;_.mA=(0,_.zz)(HTMLElement).prototype;Polymer.Base=_.mA;var ZJG=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.kq=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.L(_.kq,PolymerFakeBaseClass);var tJ=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.L(tJ,PolymerFakeBaseClass);var Pbd=Symbol("Md"),Lid=[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 sYN=sYN||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},uOl;(function(E){function B(f,ed,K){var p4=q.get(f);if(!p4){if(!K)return;p4=new W;q.set(f,p4)}f=p4.get(ed);if(!f){if(!K)return;f=new W;p4.set(ed,f)}return f}
function I(f,ed,K){if(T(f,ed,K))return!0;ed=m(ed);return ed!==null?I(f,ed,K):!1}
function T(f,ed,K){ed=B(ed,K,!1);return ed===void 0?!1:!!ed.has(f)}
function e(f,ed,K){if(T(f,ed,K))return c(f,ed,K);ed=m(ed);if(ed!==null)return e(f,ed,K)}
function c(f,ed,K){ed=B(ed,K,!1);if(ed!==void 0)return ed.get(f)}
function Y(f,ed){var K=v(f,ed);f=m(f);if(f===null)return K;var p4=Y(f,ed);if(p4.length<=0)return K;if(K.length<=0)return p4;ed=new U;f=[];K=_.p(K);for(var sc=K.next();!sc.done;sc=K.next())sc=sc.value,ed.has(sc)||(ed.add(sc),f.push(sc));K=_.p(p4);for(p4=K.next();!p4.done;p4=K.next())p4=p4.value,ed.has(p4)||(ed.add(p4),f.push(p4));return f}
function v(f,ed){f=B(f,ed,!1);var K=[];f&&f.forEach(function(p4,sc){return K.push(sc)});
return K}
function y(f){return f===void 0}
function Z(f){return typeof f==="object"?f!==null:typeof f==="function"}
function P(f){return typeof f==="function"}
function z(f){return typeof f==="symbol"?f:String(f)}
function m(f){var ed=Object.getPrototypeOf(f);if(typeof f!=="function"||f===N||ed!==N)return ed;var K=Object.getPrototypeOf(f.prototype);if(K==null||K===Object.prototype)return ed;K=K.constructor;return typeof K!=="function"||K===f?ed:K}
function u(){function f(){this._keys=[];this._values=[];this._cache=ed}
var ed={};f.prototype={get size(){return this._keys.length},has:function(K){return K===this._cache?!0:this._find(K)>=0?(this._cache=K,!0):!1},
get:function(K){var p4=this._find(K);if(p4>=0)return this._cache=K,this._values[p4]},
set:function(K,p4){this.delete(K);this._keys.push(K);this._values.push(p4);this._cache=K;return this},
delete:function(K){K=this._find(K);return K>=0?(this._keys.splice(K,1),this._values.splice(K,1),this._cache=ed,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=ed},
forEach:function(K){for(var p4=this.size,sc=0;sc<p4;++sc){var Gf=this._keys[sc],xi=this._values[sc];this._cache=Gf;K.call(this,xi,Gf,this)}},
_find:function(K){for(var p4=this._keys,sc=p4.length,Gf=0;Gf<sc;++Gf)if(p4[Gf]===K)return Gf;return-1}};
return f}
function x(){function f(){this._map=new W}
f.prototype={get size(){return this._map.length},has:function(ed){return this._map.has(ed)},
add:function(ed){this._map.set(ed,ed);return this},
delete:function(ed){return this._map.delete(ed)},
clear:function(){this._map.clear()},
forEach:function(ed,K){this._map.forEach(ed,K)}};
return f}
function M(){function f(){this._key=K()}
function ed(WG,rJ){for(var Uc=0;Uc<rJ;++Uc)WG[Uc]=Math.random()*255|0}
function K(){do{if(sc)var WG=sc.randomBytes(16);else typeof Uint8Array==="function"?(WG=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(WG):ed(WG,16)):(WG=Array(16),ed(WG,16));WG[6]=WG[6]&79|64;WG[8]=WG[8]&191|128;for(var rJ="",Uc=0;Uc<16;++Uc){var CV=WG[Uc];if(Uc===4||Uc===6||Uc===8)rJ+="-";CV<16&&(rJ+="0");rJ+=CV.toString(16).toLowerCase()}WG="@@WeakMap@@"+rJ}while(Gf.call(xi,WG));xi[WG]=!0;return WG}
function p4(WG,rJ){if(!Gf.call(WG,ki)){if(!rJ)return;Object.defineProperty(WG,ki,{value:Object.create(null)})}return WG[ki]}
var sc=typeof global!=="undefined"&&typeof sYN==="object"&&typeof require==="function"&&require("crypto"),Gf=Object.prototype.hasOwnProperty,xi={},ki=K();f.prototype={has:function(WG){return(WG=p4(WG,!1))?this._key in WG:!1},
get:function(WG){if(WG=p4(WG,!1))return WG[this._key]},
set:function(WG,rJ){p4(WG,!0)[this._key]=rJ;return this},
delete:function(WG){return(WG=p4(WG,!1))&&this._key in WG?delete WG[this._key]:!1},
clear:function(){this._key=K()}};
return f}
var N=Object.getPrototypeOf(Function),W=typeof Map==="function"?Map:u(),U=typeof Set==="function"?Set:x(),q=new (typeof WeakMap==="function"?WeakMap:M());E.decorate=function(f,ed,K,p4){if(y(p4)){if(y(K)){if(!Array.isArray(f))throw new TypeError;if(!P(ed))throw new TypeError;for(K=f.length-1;K>=0;--K)if(p4=(0,f[K])(ed),!y(p4)){if(!P(p4))throw new TypeError;ed=p4}return ed}if(!Array.isArray(f))throw new TypeError;if(!Z(ed))throw new TypeError;K=z(K);for(p4=f.length-1;p4>=0;--p4)(0,f[p4])(ed,K)}else{if(Array.isArray(f))if(Z(ed)){if(y(K))throw new TypeError;
if(!Z(p4))throw new TypeError;}else throw new TypeError;else throw new TypeError;K=z(K);for(var sc=f.length-1;sc>=0;--sc){var Gf=(0,f[sc])(ed,K,p4);if(!y(Gf)){if(!Z(Gf))throw new TypeError;p4=Gf}}return p4}};
E.metadata=function(f,ed){return function(K,p4){if(y(p4)){if(!P(K))throw new TypeError;B(K,void 0,!0).set(f,ed)}else{if(!Z(K))throw new TypeError;p4=z(p4);B(K,p4,!0).set(f,ed)}}};
E.defineMetadata=function(f,ed){var K;if(Z(ed))y(K)||(K=z(K));else throw new TypeError;B(ed,K,!0).set("parameters",f)};
E.hasMetadata=function(f,ed,K){if(Z(ed))y(K)||(K=z(K));else throw new TypeError;return I(f,ed,K)};
E.hasOwnMetadata=function(f,ed,K){if(Z(ed))y(K)||(K=z(K));else throw new TypeError;return T(f,ed,K)};
E.getMetadata=function(f,ed,K){if(Z(ed))y(K)||(K=z(K));else throw new TypeError;return e(f,ed,K)};
E.getOwnMetadata=function(f,ed,K){if(Z(ed))y(K)||(K=z(K));else throw new TypeError;return c(f,ed,K)};
E.getMetadataKeys=function(f,ed){if(Z(f))y(ed)||(ed=z(ed));else throw new TypeError;return Y(f,ed)};
E.getOwnMetadataKeys=function(f,ed){if(Z(f))y(ed)||(ed=z(ed));else throw new TypeError;return v(f,ed)};
E.deleteMetadata=function(f,ed,K){if(Z(ed))y(K)||(K=z(K));else throw new TypeError;var p4=B(ed,K,!1);if(!y(p4)){if(!p4.delete(f))return!1;if(p4.size>0)return!0;f=q.get(ed);f.delete(K);if(f.size>0)return!0;q.delete(ed);return!0}};
(function(f){if(typeof f.Reflect!=="undefined"){if(f.Reflect!==E)for(var ed in E)f.Reflect[ed]=E[ed]}else f.Reflect=E})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(uOl||(uOl={}));var J4J=self;var L_t=[0,_.ji,_.kU,_.ji];var xg6=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(xg6,_.LX);var GPZ=_.A5(xg6,[0,_.HZF,_.ts,L_t,_.kU,_.Vm]);_.$U(_.fg,_.Cx);_.l=_.fg.prototype;_.l.start=function(){this.stop();this.usingListeners_=!1;var E=O9h(this),B=nNl(this);E&&!B&&this.JSC$9107_win_.mozRequestAnimationFrame?(this.JSC$9107_id_=_.vV(this.JSC$9107_win_,"MozBeforePaint",this.callback_),this.JSC$9107_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9107_id_=E&&B?E.call(this.JSC$9107_win_,this.callback_):this.JSC$9107_win_.setTimeout(WRD(this.callback_),20)};
_.l.stop=function(){if(this.isActive()){var E=O9h(this),B=nNl(this);E&&!B&&this.JSC$9107_win_.mozRequestAnimationFrame?p8(this.JSC$9107_id_):E&&B?B.call(this.JSC$9107_win_,this.JSC$9107_id_):this.JSC$9107_win_.clearTimeout(this.JSC$9107_id_)}this.JSC$9107_id_=null};
_.l.fire=function(){this.stop();this.JSC$9109_doAction_()};
_.l.isActive=function(){return this.JSC$9107_id_!=null};
_.l.JSC$9109_doAction_=function(){this.usingListeners_&&this.JSC$9107_id_&&p8(this.JSC$9107_id_);this.JSC$9107_id_=null;this.JSC$9107_listener_.call(this.handler_,_.Bf())};
_.l.disposeInternal=function(){this.stop();_.fg.superClass_.disposeInternal.call(this)};
var O9h=function(E){E=E.JSC$9107_win_;return E.requestAnimationFrame||E.webkitRequestAnimationFrame||E.mozRequestAnimationFrame||E.oRequestAnimationFrame||E.msRequestAnimationFrame||null},nNl=function(E){E=E.JSC$9107_win_;
return E.cancelAnimationFrame||E.cancelRequestAnimationFrame||E.webkitCancelRequestAnimationFrame||E.mozCancelRequestAnimationFrame||E.oCancelRequestAnimationFrame||E.msCancelRequestAnimationFrame||null};_.qH=function(E,B,I){_.Cx.call(this);this.JSC$9110_listener_=I!=null?E.bind(I):E;this.JSC$9110_interval_=B;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9110_timer_=null};
_.L(_.qH,_.Cx);_.l=_.qH.prototype;_.l.fire=function(E){this.args_=arguments;this.JSC$9110_timer_||this.pauseCount_?this.shouldFire_=!0:Mj6(this)};
_.l.stop=function(){this.JSC$9110_timer_&&(_.$i.clearTimeout(this.JSC$9110_timer_),this.JSC$9110_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.l.pause=function(){this.pauseCount_++};
_.l.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9110_timer_||(this.shouldFire_=!1,Mj6(this))};
_.l.disposeInternal=function(){_.Cx.prototype.disposeInternal.call(this);this.stop()};
var Mj6=function(E){E.JSC$9110_timer_=uG(function(){E.JSC$9110_timer_=null;E.shouldFire_&&!E.pauseCount_&&(E.shouldFire_=!1,Mj6(E))},E.JSC$9110_interval_);
var B=E.args_;E.args_=null;E.JSC$9110_listener_.apply(null,B)};var H9$=function(E,B){this.childIterator_=E[_.$i.Symbol.iterator]();this.mapFn_=B};
H9$.prototype[Symbol.iterator]=function(){return this};
H9$.prototype.next=function(){var E=this.childIterator_.next();return{value:E.done?void 0:this.mapFn_.call(void 0,E.value),done:E.done}};
var NKD=function(E,B){return new H9$(E,B)};var gNr={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 sfi=function(E){var B=S3X(E);if(!B)throw Error("Qd`"+E);return B},S3X=function(E){var B={};
E=String(E);var I=E.charAt(0)=="#"?E:"#"+E;if(J2Z.test(I))return B.hex=zgi(I),B.type="hex",B;I=G9c(E);return I.length?(B.hex=RaQ(I[0],I[1],I[2]),B.type="rgb",B):gNr&&(E=gNr[E.toLowerCase()])?(B.hex=E,B.type="named",B):null},W_$=/#(.)(.)(.)/,zgi=function(E){if(!J2Z.test(E))throw Error("Sd`"+E);
E.length==4&&(E=E.replace(W_$,"#$1$1$2$2$3$3"));return E.toLowerCase()},upi=function(E){E=zgi(E);
E=parseInt(E.slice(1),16);return[E>>16,E>>8&255,E&255]},RaQ=function(E,B,I){E=Number(E);
B=Number(B);I=Number(I);if(E!=(E&255)||B!=(B&255)||I!=(I&255))throw Error("Td`"+E+"`"+B+"`"+I);B=E<<16|B<<8|I;return E<16?"#"+(16777216|B).toString(16).slice(1):"#"+B.toString(16)},J2Z=/^#(?:[0-9a-f]{3}){1,2}$/i,XPz=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,G9c=function(E){var B=E.match(XPz);
if(B){E=Number(B[1]);var I=Number(B[2]);B=Number(B[3]);if(E>=0&&E<=255&&I>=0&&I<=255&&B>=0&&B<=255)return[E,I,B]}return[]};var r2D={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},QL=r2D;QL=r2D;var K7G,b9l,oNt;K7G=function(E,B){switch(B){case 1:return E%4!=0||E%100==0&&E%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
b9l=function(E,B,I,T,e){E=new Date(E,B,I);e=e||0;return E.valueOf()+(((T!==void 0?T:3)-e+7)%7-((E.getDay()+6)%7-e+7)%7)*864E5};
_.QO=function(E,B,I){typeof E==="number"?(this.date=oNt(E,B||0,I||1),A2r(this,I||1)):_.B6(E)?(this.date=oNt(E.getFullYear(),E.getMonth(),E.getDate()),A2r(this,E.getDate())):(this.date=new Date(_.Bf()),E=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),A2r(this,E))};
oNt=function(E,B,I){B=new Date(E,B,I);E>=0&&E<100&&B.setFullYear(B.getFullYear()-1900);return B};
_.l=_.QO.prototype;_.l.firstDayOfWeek_=QL.FIRSTDAYOFWEEK;_.l.firstWeekCutOffDay_=QL.FIRSTWEEKCUTOFFDAY;_.l.clone=function(){var E=new _.QO(this.date);E.firstDayOfWeek_=this.firstDayOfWeek_;E.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return E};
_.l.getFullYear=function(){return this.date.getFullYear()};
_.l.getYear=function(){return this.getFullYear()};
_.l.getMonth=function(){return this.date.getMonth()};
_.l.getDate=function(){return this.date.getDate()};
_.l.getTime=function(){return this.date.getTime()};
_.l.getDay=function(){return this.date.getDay()};
_.l.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.l.getUTCMonth=function(){return this.date.getUTCMonth()};
_.l.getUTCDate=function(){return this.date.getUTCDate()};
_.l.getUTCDay=function(){return this.date.getDay()};
_.l.getUTCHours=function(){return this.date.getUTCHours()};
_.l.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.l.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.l.set=function(E){this.date=new Date(E.getFullYear(),E.getMonth(),E.getDate())};
_.l.setFullYear=function(E){this.date.setFullYear(E)};
_.l.setYear=function(E){this.setFullYear(E)};
_.l.setMonth=function(E){this.date.setMonth(E)};
_.l.setDate=function(E){this.date.setDate(E)};
_.l.setTime=function(E){this.date.setTime(E)};
_.l.setUTCFullYear=function(E){this.date.setUTCFullYear(E)};
_.l.setUTCMonth=function(E){this.date.setUTCMonth(E)};
_.l.setUTCDate=function(E){this.date.setUTCDate(E)};
_.l.add=function(E){if(E.years||E.months){var B=this.getMonth()+E.months+E.years*12,I=this.getYear()+Math.floor(B/12);B%=12;B<0&&(B+=12);var T=Math.min(K7G(I,B),this.getDate());this.setDate(1);this.setFullYear(I);this.setMonth(B);this.setDate(T)}E.days&&(I=this.getYear(),B=I>=0&&I<=99?-1900:0,E=new Date((new Date(I,this.getMonth(),this.getDate(),12)).getTime()+E.days*864E5),this.setDate(1),this.setFullYear(E.getFullYear()+B),this.setMonth(E.getMonth()),this.setDate(E.getDate()),A2r(this,E.getDate()))};
_.l.JSC$9123_toIsoString=function(E){var B=this.getFullYear(),I=B<0?"-":B>=1E4?"+":"";return[I+_.Es(Math.abs(B),I?6:4),_.Es(this.getMonth()+1,2),_.Es(this.getDate(),2)].join(E?"-":"")};
_.l.equals=function(E){return!(!E||this.getYear()!=E.getYear()||this.getMonth()!=E.getMonth()||this.getDate()!=E.getDate())};
_.l.toString=function(){return this.JSC$9123_toIsoString()};
var A2r=function(E,B){E.getDate()!=B&&E.date.setUTCHours(E.date.getUTCHours()+(E.getDate()<B?1:-1))};
_.QO.prototype.valueOf=function(){return this.date.valueOf()};var so=function(E,B,I,T,e){this.reversed=!!B;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!I;E&&hT(this,E,T);this.depth=e!=void 0?e:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.$U(so,Ib);var hT=function(E,B,I,T){if(E.node=B)E.tagType=typeof I==="number"?I:E.node.nodeType!=1?0:E.reversed?-1:1;typeof T==="number"&&(E.depth=T)};
_.l=so.prototype;_.l.JSC$9138_copyFrom=function(E){this.node=E.node;this.tagType=E.tagType;this.depth=E.depth;this.reversed=E.reversed;this.constrained=E.constrained};
_.l.clone=function(){return new so(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.l.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Te;var E=this.node;var B=this.reversed?-1:1;if(this.tagType==B){var I=this.reversed?E.lastChild:E.firstChild;I?hT(this,I):hT(this,E,B*-1)}else(I=this.reversed?E.previousSibling:E.nextSibling)?hT(this,I):hT(this,E.parentNode,B*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(E=this.node)?eJ(E):Te};
_.l.equals=function(E){return E.node==this.node&&(!this.node||E.tagType==this.tagType)};
_.l.splice=function(E){var B=this.node,I=this.reversed?1:-1;this.tagType==I&&(this.tagType=I*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;so.prototype.next.call(this);this.reversed=!this.reversed;I=_.Di(arguments[0])?arguments[0]:arguments;for(var T=I.length-1;T>=0;T--)_.n7(I[T],B);_.ii(B)};var jYX=function(){},uM=function(E){for(var B=[],I=E.getTextRangeCount(),T=0;T<I;T++)B.push(E.getTextRange(T));
return B};
jYX.prototype.isReversed=function(){return!1};
jYX.prototype.getWindow=function(){return wM(_.Zs(this.JSC$9140_getStartNode()))};
var Ugl=function(E,B){so.call(this,E,B,!0)};
_.$U(Ugl,so);var Lo=function(E,B,I,T,e){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!e;if(E){this.startNode_=E;this.startOffset_=B;this.endNode_=I;this.endOffset_=T;if(E.nodeType==1&&E.tagName!="BR")if(E=E.childNodes,B=E[B])this.startNode_=B,this.startOffset_=0;else{E.length&&(this.startNode_=_.gJ(E));var c=!0}I.nodeType==1&&((this.endNode_=I.childNodes[T])?this.endOffset_=0:this.endNode_=I)}so.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);c&&this.next()};
_.$U(Lo,Ugl);_.l=Lo.prototype;_.l.JSC$9146_getStartNode=function(){return this.startNode_};
_.l.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)};
_.l.next=function(){return this.isLast()?Te:Lo.superClass_.next.call(this)};
_.l.JSC$9138_copyFrom=function(E){this.startNode_=E.startNode_;this.endNode_=E.endNode_;this.startOffset_=E.startOffset_;this.endOffset_=E.endOffset_;this.isReversed_=E.isReversed_;Lo.superClass_.JSC$9138_copyFrom.call(this,E)};
_.l.clone=function(){var E=new Lo(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);E.JSC$9138_copyFrom(this);return E};var kPr=function(){};
kPr.prototype.__iterator__=function(){return new Lo(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var xb=function(E){this.range_=E};
_.$U(xb,kPr);var tjN=function(E){var B=_.Zs(E).createRange();if(E.nodeType==3)B.setStart(E,0),B.setEnd(E,E.length);else if(xL(E)||E.nodeType==3){for(var I,T=E;(I=T.firstChild)&&(xL(I)||I.nodeType==3);)T=I;B.setStart(T,0);for(T=E;(I=T.lastChild)&&(xL(I)||I.nodeType==3);)T=I;B.setEnd(T,T.nodeType==1?T.childNodes.length:T.length)}else I=E.parentNode,E=Array.prototype.indexOf.call(I.childNodes,E),B.setStart(I,E),B.setEnd(I,E+1);return B},fmD=function(E,B,I,T){var e=_.Zs(E).createRange();
e.setStart(E,B);e.setEnd(I,T);return e};
_.l=xb.prototype;_.l.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.l.getContainer=function(){return this.range_.commonAncestorContainer};
_.l.compareBrowserRangeEndpoints=function(E,B,I){return this.range_.compareBoundaryPoints(I==1?B==1?_.$i.Range.START_TO_START:_.$i.Range.START_TO_END:B==1?_.$i.Range.END_TO_START:_.$i.Range.END_TO_END,E)};
_.l.isCollapsed=function(){return this.range_.collapsed};
_.l.select=function(E){this.selectInternal(wM(_.Zs(this.range_.startContainer)).getSelection(),E)};
_.l.selectInternal=function(E){E.removeAllRanges();E.addRange(this.range_)};
_.l.insertNode=function(E,B){var I=this.range_.cloneRange();I.collapse(B);I.insertNode(E);I.detach();return E};
_.l.collapse=function(E){this.range_.collapse(E)};_.$U(VX,xb);VX.prototype.selectInternal=function(E,B){!B||this.isCollapsed()?VX.superClass_.selectInternal.call(this,E,B):(E.collapse(this.range_.endContainer,this.range_.endOffset),E.extend(this.range_.startContainer,this.range_.startOffset))};_.$U(qq,xb);qq.prototype.compareBrowserRangeEndpoints=function(E,B,I){return qq.superClass_.compareBrowserRangeEndpoints.call(this,E,B,I)};
qq.prototype.selectInternal=function(E,B){B?E.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):E.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var VjV=function(E){return _.pa?new qq(E):_.iq?new VX(E):new xb(E)};var Gz=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},q36;
_.$U(Gz,jYX);q36=function(E,B){var I=new Gz;I.browserRangeWrapper_=E;I.isReversed_=!!B;return I};
_.F_N=function(E){E=_.pa?new qq(tjN(E)):_.iq?new VX(tjN(E)):new xb(tjN(E));return q36(E)};
_.Oo=function(E,B,I,T){var e=new Gz;e.isReversed_=Dg$(E,B,I,T);if(_.jn(E)&&!xL(E)){var c=E.parentNode;B=Array.prototype.indexOf.call(c.childNodes,E);E=c}_.jn(I)&&!xL(I)&&(c=I.parentNode,T=Array.prototype.indexOf.call(c.childNodes,I),I=c);e.isReversed_?(e.startNode_=I,e.startOffset_=T,e.endNode_=E,e.endOffset_=B):(e.startNode_=E,e.startOffset_=B,e.endNode_=I,e.endOffset_=T);return e};
_.l=Gz.prototype;_.l.clone=function(){var E=new Gz;E.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();E.startNode_=this.startNode_;E.startOffset_=this.startOffset_;E.endNode_=this.endNode_;E.endOffset_=this.endOffset_;E.isReversed_=this.isReversed_;return E};
_.l.JSC$9140_getType=function(){return"text"};
_.l.getBrowserRangeObject=function(){return no(this).range_};
_.l.getTextRangeCount=function(){return 1};
_.l.getTextRange=function(){return this};
var no=function(E){var B;if(!(B=E.browserRangeWrapper_)){B=E.JSC$9140_getStartNode();var I=E.JSC$9140_getStartOffset(),T=E.JSC$9140_getEndNode(),e=E.JSC$9140_getEndOffset();B=_.pa?new qq(fmD(B,I,T,e)):_.iq?new VX(fmD(B,I,T,e)):new xb(fmD(B,I,T,e));B=E.browserRangeWrapper_=B}return B};
_.l=Gz.prototype;_.l.getContainer=function(){return no(this).getContainer()};
_.l.JSC$9140_getStartNode=function(){return this.startNode_||(this.startNode_=no(this).range_.startContainer)};
_.l.JSC$9140_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=no(this).range_.startOffset};
_.l.JSC$9140_getEndNode=function(){return this.endNode_||(this.endNode_=no(this).range_.endContainer)};
_.l.JSC$9140_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=no(this).range_.endOffset};
_.l.isReversed=function(){return this.isReversed_};
_.l.JSC$9140_containsRange=function(E,B){if(E.JSC$9140_getType()=="text"){var I=no(this);E=no(E);B=B&&!E.isCollapsed();E=E.range_;I=B?I.compareBrowserRangeEndpoints(E,0,1)>=0&&I.compareBrowserRangeEndpoints(E,1,0)<=0:I.compareBrowserRangeEndpoints(E,0,0)>=0&&I.compareBrowserRangeEndpoints(E,1,1)<=0}else I=!1;return I};
_.l.isCollapsed=function(){return no(this).isCollapsed()};
_.l.JSC$9140_getText=function(){return no(this).range_.toString()};
_.l.__iterator__=function(){return new Lo(this.JSC$9140_getStartNode(),this.JSC$9140_getStartOffset(),this.JSC$9140_getEndNode(),this.JSC$9140_getEndOffset())};
_.l.select=function(){no(this).select(this.isReversed_)};
_.l.JSC$9140_removeContents=function(){var E=no(this).range_;E.extractContents();if(E.startContainer.hasChildNodes()&&(E=E.startContainer.childNodes[E.startOffset])){var B=E.previousSibling;S9U(E)==""&&_.ii(E);B&&S9U(B)==""&&_.ii(B)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.l.insertNode=function(E,B){E=no(this).insertNode(E,B);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return E};
_.l.collapse=function(E){E=this.isReversed()?!E:E;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(E);E?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var K_l=function(){};
_.$U(K_l,jYX);K_l.prototype.JSC$9140_containsRange=function(E,B){var I=uM(this);E=uM(E);return(B?by:_.E2d)(E,function(T){return by(I,function(e){return e.JSC$9140_containsRange(T,B)})})};
K_l.prototype.insertNode=function(E,B){B?_.Os(E,this.JSC$9140_getStartNode()):_.n7(E,this.JSC$9140_getEndNode());return E};var RJ$,EG$=BM().JSC$7214_document_.documentElement;RJ$=EG$.requestFullscreen?"fullscreenchange":EG$.webkitRequestFullscreen?"webkitfullscreenchange":EG$.mozRequestFullScreen?"mozfullscreenchange":EG$.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var BEU=function(){var E=BM().JSC$7214_document_;return!!(E.webkitIsFullScreen||E.mozFullScreen||E.msFullscreenElement||E.fullscreenElement)};var M$=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.$U(M$,K_l);_.l=M$.prototype;_.l.clone=function(){var E=new M$;E.browserRanges_=_.V6(this.browserRanges_);return E};
_.l.JSC$9140_getType=function(){return"mutli"};
_.l.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.l.getTextRangeCount=function(){return this.browserRanges_.length};
_.l.getTextRange=function(E){this.ranges_[E]||(this.ranges_[E]=q36(VjV(this.browserRanges_[E])));return this.ranges_[E]};
_.l.getContainer=function(){if(!this.container_){for(var E=[],B=this.getTextRangeCount(),I=0;I<B;I++)E.push(this.getTextRange(I).getContainer());this.container_=G7N.apply(null,E)}return this.container_};
var He=function(E){E.sortedRanges_||(E.sortedRanges_=uM(E),E.sortedRanges_.sort(function(B,I){var T=B.JSC$9140_getStartNode();B=B.JSC$9140_getStartOffset();var e=I.JSC$9140_getStartNode();I=I.JSC$9140_getStartOffset();return T==e&&B==I?0:Dg$(T,B,e,I)?1:-1}));
return E.sortedRanges_};
_.l=M$.prototype;_.l.JSC$9140_getStartNode=function(){return He(this)[0].JSC$9140_getStartNode()};
_.l.JSC$9140_getStartOffset=function(){return He(this)[0].JSC$9140_getStartOffset()};
_.l.JSC$9140_getEndNode=function(){return _.gJ(He(this)).JSC$9140_getEndNode()};
_.l.JSC$9140_getEndOffset=function(){return _.gJ(He(this)).JSC$9140_getEndOffset()};
_.l.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.l.JSC$9140_getText=function(){return uM(this).map(function(E){return E.JSC$9140_getText()}).join("")};
_.l.__iterator__=function(){return new N$(this)};
_.l.select=function(){var E=this.getWindow().getSelection();E.removeAllRanges();for(var B=this.getTextRangeCount(),I=0;I<B;I++)E.addRange(this.getTextRange(I).getBrowserRangeObject())};
_.l.JSC$9140_removeContents=function(){uM(this).forEach(function(E){E.JSC$9140_removeContents()})};
_.l.collapse=function(E){if(!this.isCollapsed()){var B=E?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;B.collapse(E);this.ranges_=[B];this.sortedRanges_=[B];this.browserRanges_=[B.getBrowserRangeObject()]}};
var N$=function(E){this.iterators_=null;this.currentIdx_=0;E&&(this.iterators_=He(E).map(function(B){return _.zlr(B)}));
so.call(this,E?this.JSC$9146_getStartNode():null,!1,!0)};
_.$U(N$,Ugl);_.l=N$.prototype;_.l.JSC$9146_getStartNode=function(){return this.iterators_[0].JSC$9146_getStartNode()};
_.l.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.l.next=function(){for(;this.currentIdx_<this.iterators_.length;){var E=this.iterators_[this.currentIdx_],B=E.next();if(B.done)this.currentIdx_++;else return hT(this,E.node,E.tagType,E.depth),B}return Te};
_.l.JSC$9138_copyFrom=function(E){this.iterators_=_.V6(E.iterators_);N$.superClass_.JSC$9138_copyFrom.call(this,E)};
_.l.clone=function(){var E=new N$(null);E.JSC$9138_copyFrom(this);return E};var $Kl,Dg$;_.wZ=function(){var E=window.getSelection();return E&&$Kl(E)};
$Kl=function(E){var B=!1;if(E.createRange)try{var I=E.createRange()}catch(e){return null}else if(E.rangeCount){if(E.rangeCount>1){I=new M$;B=E.rangeCount;for(var T=0;T<B;T++)I.browserRanges_.push(E.getRangeAt(T));return I}I=E.getRangeAt(0);B=Dg$(E.anchorNode,E.anchorOffset,E.focusNode,E.focusOffset)}else return null;return q36(VjV(I),B)};
_.go=function(E,B){return _.Oo(E,B,E,B)};
_.So=function(E,B,I,T){return _.Oo(E,B,I,T)};
Dg$=function(E,B,I,T){if(E==I)return T<B;var e;if(E.nodeType==1&&B)if(e=E.childNodes[B])E=e,B=0;else if(_.Hp(E,I))return!0;if(I.nodeType==1&&T)if(e=I.childNodes[T])I=e,T=0;else if(_.Hp(I,E))return!1;return(xI6(E,I)||B-T)>0};var JT=function(){_.ms.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.w1)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.w1)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.w1)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.w1)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.w1)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.w1)(this.dispatchProgressEvent_,this)};
_.$U(JT,_.ms);JT.prototype.abort=function(){try{this.reader_.abort()}catch(E){throw new sxr(E,"aborting read");}};
JT.prototype.getError=function(){return this.reader_.error&&new sxr(this.reader_.error,"reading file")};
JT.prototype.dispatchProgressEvent_=function(E){this.dispatchEvent(new ugZ(E,this))};
JT.prototype.disposeInternal=function(){JT.superClass_.disposeInternal.call(this);delete this.reader_};
var TEl=function(E){var B=new JT,I=Ikl(B);B.reader_.readAsArrayBuffer(E);return I},eul=function(E){var B=new JT,I=Ikl(B);
B.reader_.readAsDataURL(E);return I},Ikl=function(E){var B=new jl;
E.listen("loadend",_.wY(function(I,T){var e=T.reader_.result,c=T.getError();e==null||c?I.errback(c):I.callback(e);T.dispose()},B,E));
return B};var We=function(){_.ms.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9180_eventHandler_=new _.DA(this);this.JSC$9180_isInitialized_=!1};
_.$U(We,_.ms);var lkl=new _.yY("d"),cRU=new _.yY("beforedragstart"),iqV=new _.yY("dragstart"),p8Z=new _.yY("beforedragmove"),Yqh=new _.yY("dragmove"),akr=new _.yY("beforedragend"),vGN=new _.yY("dragend"),yRX=new _.yY("e");We.prototype.isDragging=function(){return!!this.JSC$9180_dragger_};
var Cjl=function(E,B){B.dlgGrowthDirection_=0;B.dlgDragHoverClass_=void 0;B.dlgDragPermission=0;E.dragLists_.push(B)},w8$=function(E,B){E.getHandleForDragItem_=B};
We.prototype.init=function(){if(!this.JSC$9180_isInitialized_){for(var E=this.dragLists_.length,B=0;B<E;B++)for(var I=_.My(this.dragLists_[B]),T=I.length,e=0;e<T;++e){var c=I[e],Y=this.getHandleForDragItem_(c),v=_.$l(Y);this.dragItemForHandle_[v]=c;this.dragItemHoverClasses_&&(this.JSC$9180_eventHandler_.listen(c,"mouseover",this.handleDragItemMouseover_),this.JSC$9180_eventHandler_.listen(c,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9180_eventHandler_.listen(Y,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9180_eventHandler_.listen(Y,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(c);this.JSC$9180_eventHandler_.listen(Y,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9180_isInitialized_=!0}};
We.prototype.disposeInternal=function(){this.JSC$9180_eventHandler_.dispose();for(var E=this.dragLists_.length,B=0;B<E;B++){var I=this.dragLists_[B];I.dlgGrowthDirection_=void 0;I.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;ZqR(this);We.superClass_.disposeInternal.call(this)};
var PjN=function(E,B){for(var I=E.dragLists_.length,T=0;T<I;T++){var e=E.dragLists_[T];e.dlgBounds_=HJG(e)}I=E.dragItems_.length;for(T=0;T<I;T++)e=E.dragItems_[T],e!=B&&(e.dlgBounds_=HJG(e))};
_.l=We.prototype;
_.l.handlePotentialDragStart_=function(E){var B=_.$l(E.currentTarget);B=this.dragItemForHandle_[B];if(B.parentElement.dlgDragPermission!=2){this.currDragItem_=B;a:{B=this.currDragItem_;for(var I=B.cloneNode(!0),T=px("TEXTAREA",B),e=px("TEXTAREA",I),c=0;c<T.length;c++)e[c].value=T[c].value;switch(B.tagName){case "TR":B=_.ut("TABLE",null,_.ut("TBODY",null,I));break a;case "TD":case "TH":B=_.ut("TABLE",null,_.ut("TBODY",null,_.ut("TR",null,I)));break a;case "TEXTAREA":I.value=B.value;default:B=I;break a}B=
void 0}this.draggerEl_=B;this.draggerElClasses_&&o8(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Zs(this.currDragItem_).body.appendChild(this.draggerEl_);I=_.zi(this.currDragItem_);B=this.draggerEl_;T=_.zi(B);if(I instanceof _.Cb){var Y=I.y;I=I.x}Jw(B,B.offsetLeft+(I-T.x),B.offsetTop+(Number(Y)-T.y));this.JSC$9180_dragger_=new _.SM(this.draggerEl_);_.h7l(this.JSC$9180_dragger_,this.hysteresisDistance_);
_.vV(this.JSC$9180_dragger_,"start",this.handleDragStart_,!1,this);_.vV(this.JSC$9180_dragger_,"end",this.handleDragEnd_,!1,this);_.vV(this.JSC$9180_dragger_,"earlycancel",this.JSC$9182_cleanup_,!1,this);this.dispatchEvent(new X0(lkl,this,E,this.currDragItem_,this.draggerEl_,this.JSC$9180_dragger_));this.JSC$9180_dragger_.startDrag(E)}};
_.l.handleDragStart_=function(E){if(this.dispatchEvent(new X0(cRU,this,E.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.sgZ(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?o8(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var B=oID(this.draggerEl_);this.draggerEl_.halfWidth=B.width/2;this.draggerEl_.halfHeight=B.height/2;B=this.draggerEl_.getBoundingClientRect();
var I=E.clientY,T=skZ(this.JSC$9180_dragger_,E.clientX);if(T>B.right){var e=this.currDragItem_.getBoundingClientRect();this.JSC$9180_dragger_.deltaX=T-(T-e.left)/e.width*B.width}I=uQu(this.JSC$9180_dragger_,I);I>B.bottom&&(this.JSC$9180_dragger_.deltaY+=I-B.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";PjN(this,this.currDragItem_);this.currDragItem_.style.display="";_.vV(this.JSC$9180_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new X0(iqV,
this,E.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9180_dragger_))}else E.preventDefault(),this.JSC$9182_cleanup_()};
_.l.handleDragMove_=function(E){var B=_.zi(this.draggerEl_);B=new _.Cb(B.x+this.draggerEl_.halfWidth,B.y+this.draggerEl_.halfHeight);a:{var I=null;if(this.currDragItem_.style.display!="none"){I=this.currDragItem_.parentNode;var T=HJG(I);if(zuD(B,T))break a}T=this.dragLists_.length;for(var e=0;e<T;e++){var c=this.dragLists_[e];if(c!=I&&zuD(B,c.dlgBounds_)){I=c;break a}}I=null}if(I){if(I==null)throw Error("Ud");T=0;e=!1;c=void 0;switch(I.dlgGrowthDirection_){case 0:T=B.y;var Y=mKZ;var v=QN$;break;case 4:e=
!0;case 2:T=B.x;Y=dKU;v=QN$;break;case 5:e=!0;case 3:T=B.x,Y=huZ,v=sN6}for(var y=null,Z,P=_.My(I),z=P.length,m=0;m<z;m++){var u=P[m];if(u!=this.currDragItem_){var x=Y(u.dlgBounds_);if(e){var M=uNU(u,B);c===void 0&&(c=M);v(T,x)&&(Z==void 0||M<c||M==c&&(v(x,Z)||x==Z))&&(y=u,Z=x);M<c&&(c=M)}else v(T,x)&&(Z==void 0||v(x,Z))&&(y=u,Z=x)}}Y=y!==null&&uNU(y,B)>c?null:y}else Y=null;if(!this.dispatchEvent(new X0(p8Z,this,E,this.currDragItem_,this.draggerEl_,this.JSC$9180_dragger_,B,I,Y)))return!1;if(I&&I.dlgDragPermission!=
1)this.currDragItem_.parentNode==I&&_.sgZ(this.currDragItem_)==Y||I.insertBefore(this.currDragItem_,Y),this.currDragItem_.style.display="",I.dlgDragHoverClass_&&_.WV(I,I.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",v=this.dragLists_.length,Z=0;Z<v;Z++)T=this.dragLists_[Z],T.dlgDragHoverClass_&&_.SO(T,T.dlgDragHoverClass_);I!=this.currHoverList_&&(this.currHoverList_=I,PjN(this,this.currDragItem_));this.dispatchEvent(new X0(Yqh,this,E,this.currDragItem_,this.draggerEl_,this.JSC$9180_dragger_,
B,I,Y));return!1};
_.l.JSC$9182_cleanup_=function(){ZqR(this);this.JSC$9180_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var E=this.dragLists_.length,B=0;B<E;B++)this.dragLists_[B].dlgBounds_=null;E=this.dragItems_.length;for(B=0;B<E;B++)this.dragItems_[B].dlgBounds_=null};
_.l.handleDragEnd_=function(E){if(!this.dispatchEvent(new X0(akr,this,E,this.currDragItem_,this.draggerEl_,this.JSC$9180_dragger_)))return!1;ZqR(this);this.dispatchEvent(new X0(vGN,this,E,this.currDragItem_,this.draggerEl_,this.JSC$9180_dragger_));this.JSC$9182_cleanup_();return!0};
var ZqR=function(E){_.bl(E.JSC$9180_dragger_);var B=E.draggerEl_&&E.draggerEl_.parentElement;E.draggerEl_&&_.ii(E.draggerEl_);E.currDragItem_&&E.currDragItem_.style.display=="none"&&(E.origList_.insertBefore(E.currDragItem_,E.origNextItem_),E.currDragItem_.style.display="");E.currDragItemClasses_&&E.currDragItem_?saz(E.currDragItem_,E.currDragItemClasses_||[]):E.currDragItem_&&(E.currDragItem_.style.visibility="");for(var I=E.dragLists_.length,T=0;T<I;T++){var e=E.dragLists_[T];e.dlgDragHoverClass_&&
_.SO(e,e.dlgDragHoverClass_)}B&&E.dispatchEvent(new X0(yRX,E,null,E.currDragItem_,E.draggerEl_,E.JSC$9180_dragger_))};
_.l=We.prototype;_.l.getHandleForDragItem_=function(E){return E};
_.l.handleDragItemMouseover_=function(E){o8(E.currentTarget,this.dragItemHoverClasses_||[])};
_.l.handleDragItemMouseout_=function(E){saz(E.currentTarget,this.dragItemHoverClasses_||[])};
_.l.handleDragItemHandleMouseover_=function(E){o8(E.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.l.handleDragItemHandleMouseout_=function(E){saz(E.currentTarget,this.dragItemHandleHoverClasses_||[])};
var zuD=function(E,B){return E.x>B.left&&E.x<B.left+B.width&&E.y>B.top&&E.y<B.top+B.height},uNU=function(E,B){E=E.dlgBounds_;
return Math.abs(B.y-(E.top+(E.height-1)/2))},mKZ=function(E){return E.top+E.height-1},dKU=function(E){return E.left+E.width-1},huZ=function(E){return E.left||0},QN$=function(E,B){return E<B},sN6=function(E,B){return E>B},X0=function(E,B,I,T,e,c){_.CS.call(this,E);
this.event=I;this.currDragItem=T;this.draggerEl=e;this.JSC$9184_dragger=c};
_.$U(X0,_.CS);_.$U(Kg,_.Cx);var LhV=new _.Cb(0,0);Kg.prototype.JSC$9188_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Kg.prototype.JSC$9188_onMouseMove=function(E){var B=this.containerIsActuallyContent_?LhV:Ex(BM(this.containerNode_)),I=this.horizontalScrolling_?this.calculateScrollDelta(E.clientX+B.x,this.scrollBounds_.left,this.scrollBounds_.width):0,T=this.calculateScrollDelta(E.clientY+B.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=I;this.scrollDelta_.y=T;!(I=!I&&!T)&&(I=this.constrainScroll_)&&(I=E.clientX+B.x,E=E.clientY+B.y,B=this.containerBounds_,I=!(B.left<=I&&B.left+B.width>=
I&&B.top<=E&&B.top+B.height>=E));I?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Kg.prototype.calculateScrollDelta=function(E,B,I){var T=0;E<B?T=-8:E>B+I&&(T=8);return T};
Kg.prototype.disposeInternal=function(){Kg.superClass_.disposeInternal.call(this);this.JSC$9186_eventHandler_.dispose();this.scrollTimer_.dispose()};var xKX={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"}}},ro=xKX;ro=xKX;var bM={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 GvN=function(){},bm=function(E){if(typeof E=="number"){var B=new GvN;
B.standardOffset_=E;var I=E;if(I==0)I="Etc/GMT";else{var T=["Etc/GMT",I<0?"-":"+"];I=Math.abs(I);T.push(Math.floor(I/60)%100);I%=60;I!=0&&T.push(":",_.Es(I,2));I=T.join("")}B.timeZoneId_=I;I=E;I==0?I="UTC":(T=["UTC",I<0?"+":"-"],I=Math.abs(I),T.push(Math.floor(I/60)%100),I%=60,I!=0&&T.push(":",I),I=T.join(""));E=OqD(E);B.tzNames_=[I,I];B.tzNamesExt_={STD_LONG_NAME_GMT:E,STD_GENERIC_LOCATION:E};B.transitions_=[];return B}B=new GvN;B.timeZoneId_=E.id;B.standardOffset_=-E.std_offset;B.tzNames_=E.names;
B.tzNamesExt_=E.names_ext;B.transitions_=E.transitions;return B},OqD=function(E){var B=["GMT"];
B.push(E<=0?"+":"-");E=Math.abs(E);B.push(_.Es(Math.floor(E/60)%100,2),":",_.Es(E%60,2));return B.join("")},nGR=function(E,B){B=Date.UTC(B.getUTCFullYear(),B.getUTCMonth(),B.getUTCDate(),B.getUTCHours(),B.getUTCMinutes())/36E5;
for(var I=0;I<E.transitions_.length&&B>=E.transitions_[I];)I+=2;return I==0?0:E.transitions_[I-1]},MPZ=function(E,B){E=E.standardOffset_-nGR(E,B);
return E===-1440?0:E};var oY=function(E,B){this.patternParts_=[];this.JSC$9199_dateTimeSymbols_=B||QL;typeof E=="number"?Hqu(this,E):NEr(this,E)},gGr=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],on=function(E){return E.getHours?E.getHours():0},NEr=function(E,B){for(eEG&&(B=B.replace(/\u200f/g,""));B;){for(var I=B,T=0;T<gGr.length;++T){var e=B.match(gGr[T]);
if(e){var c=e[0];B=B.substring(c.length);T==0&&(c=="''"?c="'":(c=c.substring(1,e[1]=="'"?c.length-1:c.length),c=c.replace(/''/g,"'")));E.patternParts_.push({text:c,type:T});break}}if(I===B)throw Error("Vd`"+B);}};
oY.prototype.format=function(E,B){if(!E)throw Error("Wd");var I=B?(E.getTimezoneOffset()-MPZ(B,E))*6E4:0,T=I?new Date(E.getTime()+I):E,e=T;B&&T.getTimezoneOffset()!=E.getTimezoneOffset()&&(T=new Date(T.getTime()+(T.getTimezoneOffset()-E.getTimezoneOffset())*6E4),e=new Date(E.getTime()+(I+(I>0?-864E5:864E5))));I=[];for(var c=0;c<this.patternParts_.length;++c){var Y=this.patternParts_[c].text;1==this.patternParts_[c].type?I.push(SqZ(this,Y,E,T,e,B)):I.push(Y)}return I.join("")};
var Hqu=function(E,B){if(B<4)var I=E.JSC$9199_dateTimeSymbols_.DATEFORMATS[B];else if(B<8)I=E.JSC$9199_dateTimeSymbols_.TIMEFORMATS[B-4];else if(B<12)I=E.JSC$9199_dateTimeSymbols_.DATETIMEFORMATS[B-8],I=I.replace("{1}",E.JSC$9199_dateTimeSymbols_.DATEFORMATS[B-8]),I=I.replace("{0}",E.JSC$9199_dateTimeSymbols_.TIMEFORMATS[B-8]);else if(B===12)I=E.JSC$9199_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(B===13)I=E.JSC$9199_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{Hqu(E,10);return}NEr(E,I)},AT=function(E,B){B=String(B);
E=E.JSC$9199_dateTimeSymbols_||QL;if(E.ZERODIGIT!==void 0&&!TBc){for(var I=[],T=0;T<B.length;T++){var e=B.charCodeAt(T);I.push(48<=e&&e<=57?String.fromCharCode(E.ZERODIGIT+e-48):B.charAt(T))}B=I.join("")}return B},TBc=!1,eEG=!1,Wh6=function(E,B,I,T){I=I.getFullYear();
I<=0&&T&&(I=1-I);return AT(E,JRX(I,B))},JRX=function(E,B){B==2&&(E%=100);
E<0&&B++;return _.Es(E,B)},jo=function(E){if(!(E.getHours&&E.getSeconds&&E.getMinutes))throw Error("Xd");
},X8l=function(E,B){jo(B);
B=on(B);return E.JSC$9199_dateTimeSymbols_.AMPMS[B>=12&&B<24?1:0]},SqZ=function(E,B,I,T,e,c){var Y=B.length;
switch(B.charAt(0)){case "G":return I=T.getFullYear()>0?1:0,Y>=4?E.JSC$9199_dateTimeSymbols_.ERANAMES[I]:E.JSC$9199_dateTimeSymbols_.ERAS[I];case "y":return Wh6(E,Y,T,!0);case "Y":return I=(new Date(b9l(T.getFullYear(),T.getMonth(),T.getDate(),E.JSC$9199_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,E.JSC$9199_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),Y==2&&(I%=100),AT(E,JRX(I,Y));case "u":return Wh6(E,Y,T,!1);case "M":a:switch(I=T.getMonth(),Y){case 5:Y=E.JSC$9199_dateTimeSymbols_.NARROWMONTHS[I];break a;
case 4:Y=E.JSC$9199_dateTimeSymbols_.MONTHS[I];break a;case 3:Y=E.JSC$9199_dateTimeSymbols_.SHORTMONTHS[I];break a;default:Y=AT(E,_.Es(I+1,Y))}return Y;case "k":return jo(e),AT(E,_.Es(on(e)||24,Y));case "S":return AT(E,(e.getMilliseconds()/1E3).toFixed(Math.min(3,Y)).slice(2)+(Y>3?_.Es(0,Y-3):""));case "E":return I=T.getDay(),Y>=4?E.JSC$9199_dateTimeSymbols_.WEEKDAYS[I]:E.JSC$9199_dateTimeSymbols_.SHORTWEEKDAYS[I];case "a":return X8l(E,e);case "b":return X8l(E,e);case "B":return X8l(E,e);case "h":return jo(e),
AT(E,_.Es(on(e)%12||12,Y));case "K":return jo(e),AT(E,_.Es(on(e)%12,Y));case "H":return jo(e),AT(E,_.Es(on(e),Y));case "c":a:switch(I=T.getDay(),Y){case 5:Y=E.JSC$9199_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[I];break a;case 4:Y=E.JSC$9199_dateTimeSymbols_.STANDALONEWEEKDAYS[I];break a;case 3:Y=E.JSC$9199_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[I];break a;default:Y=AT(E,_.Es(I,1))}return Y;case "L":a:switch(I=T.getMonth(),Y){case 5:Y=E.JSC$9199_dateTimeSymbols_.STANDALONENARROWMONTHS[I];break a;
case 4:Y=E.JSC$9199_dateTimeSymbols_.STANDALONEMONTHS[I];break a;case 3:Y=E.JSC$9199_dateTimeSymbols_.STANDALONESHORTMONTHS[I];break a;default:Y=AT(E,_.Es(I+1,Y))}return Y;case "Q":return I=Math.floor(T.getMonth()/3),Y<4?E.JSC$9199_dateTimeSymbols_.SHORTQUARTERS[I]:E.JSC$9199_dateTimeSymbols_.QUARTERS[I];case "d":return AT(E,_.Es(T.getDate(),Y));case "m":return jo(e),AT(E,_.Es(e.getMinutes?e.getMinutes():0,Y));case "s":return jo(e),AT(E,_.Es(e.getSeconds(),Y));case "v":return(c||bm(I.getTimezoneOffset())).timeZoneId_;
case "V":return E=c||bm(I.getTimezoneOffset()),Y<=2?E.timeZoneId_:nGR(E,I)>0?E.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?E.tzNamesExt_.DST_GENERIC_LOCATION:E.tzNamesExt_.DST_GENERIC_LOCATION:E.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?E.tzNamesExt_.STD_GENERIC_LOCATION:E.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return I=b9l(e.getFullYear(),e.getMonth(),e.getDate(),E.JSC$9199_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,E.JSC$9199_dateTimeSymbols_.FIRSTDAYOFWEEK),AT(E,_.Es(Math.floor(Math.round((I-(new Date((new Date(I)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,Y));case "z":return E=c||bm(I.getTimezoneOffset()),Y<4?E.tzNames_[nGR(E,I)>0?2:0]:E.tzNames_[nGR(E,I)>0?3:1];case "Z":return B=c||bm(I.getTimezoneOffset()),Y<4?(Y=-MPZ(B,I),E=[Y<0?"-":"+"],Y=Math.abs(Y),E.push(_.Es(Math.floor(Y/60)%100,2),_.Es(Y%60,2)),Y=E.join("")):Y=AT(E,OqD(MPZ(B,I))),Y;default:return""}};var rRz=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,bqN=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,sXc=function(E){this.patternParts_=[];this.JSC$9208_dateTimeSymbols_=QL;if(typeof E=="number"){E>11&&(E=10);if(E<4)var B=this.JSC$9208_dateTimeSymbols_.DATEFORMATS[E];else E<8?B=this.JSC$9208_dateTimeSymbols_.TIMEFORMATS[E-4]:(B=this.JSC$9208_dateTimeSymbols_.DATETIMEFORMATS[E-8],B=B.replace("{1}",this.JSC$9208_dateTimeSymbols_.DATEFORMATS[E-8]),B=B.replace("{0}",this.JSC$9208_dateTimeSymbols_.TIMEFORMATS[E-
8]));oGZ(this,B)}else oGZ(this,E)},oGZ=function(E,B){for(var I=!1,T="",e=0;e<B.length;e++){var c=B.charAt(e);
if(rRz.test(c))for(T.length>0&&(E.patternParts_.push({text:T,count:0,abutStart:!1,numeric:!1}),T=""),E.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});e<B.length-1&&B.charAt(e+1)==" ";)e++;else if(I)c=="'"?e+1<B.length&&B.charAt(e+1)=="'"?(T+="'",e++):I=!1:T+=c;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(c)>=0){T.length>0&&(E.patternParts_.push({text:T,count:0,abutStart:!1,numeric:!1}),T="");for(var Y=B.charAt(e),v=e+1;v<B.length&&B.charAt(v)==Y;)v++;Y=v-e;Y<=0?v=!1:(v="MydhHmsSDkK".indexOf(c),
v=v>0||v==0&&Y<3);E.patternParts_.push({text:c,count:Y,abutStart:!1,numeric:v});e+=Y-1}else c=="'"?e+1<B.length&&B.charAt(e+1)=="'"?(T+="'",e++):I=!0:T+=c}T.length>0&&E.patternParts_.push({text:T,count:0,abutStart:!1,numeric:!1});B=!1;for(I=0;I<E.patternParts_.length;I++)E.patternParts_[I].numeric?!B&&I+1<E.patternParts_.length&&E.patternParts_[I+1].numeric&&(B=!0,E.patternParts_[I].abutStart=!0):B=!1};
sXc.prototype.parse=function(E,B,I){var T=!1,e=!1;I&&(T=I.predictive||!1,e=I.validate||!1);if(T)for(I=0;I<this.patternParts_.length;I++){var c=this.patternParts_[I];if(c.count>0&&("abBhHkKm".indexOf(c.text.charAt(0))<0||c.count>2||c.abutStart))throw Error("Yd`"+c.text.charAt(0));}c=new ARZ;I=[0];c.dayPeriodIndex=-1;for(var Y=0;Y<this.patternParts_.length&&!(T&&I[0]>=E.length);Y++){if(this.patternParts_[Y].count==0){a:{var v=E;var y=I,Z=this.patternParts_[Y],P=T;if(Z.text.match(rRz)!=null){if(Z=y[0],
jNh(v,y),y[0]>Z){v=!0;break a}}else{if(v.indexOf(Z.text,y[0])==y[0]){y[0]+=Z.text.length;v=!0;break a}if(P&&Z.text.indexOf(v.substring(y[0]))==0){y[0]+=v.length-y[0];v=!0;break a}}v=!1}if(v)continue;return 0}if(this.patternParts_[Y].abutStart){a:{y=E;Z=I;P=Y;var z=Z[0],m=0;for(v=P;v<this.patternParts_.length;v++){var u=this.patternParts_[v],x=u.count;if(x===0)break;if(v==P&&(x-=m,m++,x==0)){v=0;break a}var M=v>P&&u.numeric,N=Z[0];if(!UKD(this,y,Z,u,x,c,!1)||M&&Z[0]-N<x)v=P-1,Z[0]=z}v-=P}if(v<=0)return 0;
Y+=v-1}else if(!UKD(this,E,I,this.patternParts_[Y],0,c,T))return 0}a:{E=e;if(B==null)throw Error("Zd");c.era!=void 0&&c.year!=void 0&&c.era==0&&c.year>0&&(c.year=-(c.year-1));c.year!=void 0&&B.setFullYear(c.year);T=B.getDate();B.setDate(1);c.month!=void 0&&B.setMonth(c.month);c.day!=void 0?B.setDate(c.day):(e=K7G(B.getFullYear(),B.getMonth()),B.setDate(T>e?e:T));typeof B.setHours==="function"&&(c.hours==void 0&&(c.hours=B.getHours()),c.hours<12&&(c.ampm!=void 0&&c.ampm>0?c.hours+=12:c.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(c.dayPeriodName)||["night1","night2"].includes(c.dayPeriodName)&&c.hours>=6)&&(c.hours+=12)),B.setHours(c.hours));typeof B.setMinutes==="function"&&c.minutes!=void 0&&B.setMinutes(c.minutes);typeof B.setSeconds==="function"&&c.seconds!=void 0&&B.setSeconds(c.seconds);typeof B.setMilliseconds==="function"&&c.milliseconds!=void 0&&B.setMilliseconds(c.milliseconds);if(E&&(c.year&&c.year!=B.getFullYear()||c.month&&c.month!=
B.getMonth()||c.day&&c.day!=B.getDate()||c.hours&&c.hours>=24||c.minutes&&c.minutes>=60||c.seconds&&c.seconds>=60||c.milliseconds&&c.milliseconds>=1E3))B=!1;else{c.tzOffset!=void 0&&B.setTime(B.getTime()+(c.tzOffset-B.getTimezoneOffset())*60*1E3);c.ambiguousYear&&(E=new Date,E.setFullYear(E.getFullYear()-80),B.getTime()<E.getTime()&&B.setFullYear(E.getFullYear()+100));if(c.dayOfWeek!=void 0)if(c.day==void 0)c=(7+c.dayOfWeek-B.getDay())%7,c>3&&(c-=7),E=B.getMonth(),B.setDate(B.getDate()+c),B.getMonth()!=
E&&B.setDate(B.getDate()+(c>0?-7:7));else if(c.dayOfWeek!=B.getDay()){B=!1;break a}B=!0}}return B?I[0]:0};
var UKD=function(E,B,I,T,e,c,Y){jNh(B,I);if(T.numeric&&e>0&&I[0]+e>B.length)return!1;switch(T.text.charAt(0)){case "G":return Uo(B,I,[E.JSC$9208_dateTimeSymbols_.ERAS],function(v){return c.era=v}),!0;
case "M":case "L":return kvZ(E,B,I,e,T,c);case "E":return Uo(B,I,[E.JSC$9208_dateTimeSymbols_.WEEKDAYS,E.JSC$9208_dateTimeSymbols_.SHORTWEEKDAYS],function(v){return c.dayOfWeek=v});
case "B":case "b":return e=[],E=[[].concat(E.JSC$9208_dateTimeSymbols_.AMPMS)],e.push("isAm"),e.push("isPm"),B=Uo(B,I,E,function(v){return c.dayPeriodIndex=v},Y),c.dayPeriodName=e[c.dayPeriodIndex],Y?B:!0;
case "a":return B=Uo(B,I,[E.JSC$9208_dateTimeSymbols_.AMPMS],function(v){return c.ampm=v},Y),Y?B:!0;
case "y":return tPN(E,B,I,T,e,c);case "Q":return Uo(B,I,[E.JSC$9208_dateTimeSymbols_.QUARTERS,E.JSC$9208_dateTimeSymbols_.SHORTQUARTERS],function(v){c.month=v*3;c.day=1});
case "d":return kb(E,B,I,T,e,function(v){c.day=v}),!0;
case "S":return fkZ(E,B,I,e,c);case "h":case "K":case "H":case "k":return B=kb(E,B,I,T,e,function(v){c.hours=T.text.charAt(0)==="h"&&v===12?0:v},Y),Y?B:!0;
case "m":return B=kb(E,B,I,T,e,function(v){c.minutes=v},Y),Y?B:!0;
case "s":return kb(E,B,I,T,e,function(v){c.seconds=v}),!0;
case "z":case "Z":case "v":return VPN(E,B,I,c);default:return!1}},tPN=function(E,B,I,T,e,c){var Y=I[0];
e=tT(E,B,I,e);e===null&&(e=tT(E,B,I,0,!0));if(e===null)return!1;e>=0&&I[0]-Y==2&&T.count==2?(E=e,B=(new Date).getFullYear()-80,I=B%100,c.ambiguousYear=E==I,E+=Math.floor(B/100)*100+(E<I?100:0),c.year=E):c.year=e;return!0},kvZ=function(E,B,I,T,e,c){return e.numeric&&kb(E,B,I,e,T,function(Y){c.month=Y-1})?!0:Uo(B,I,[E.JSC$9208_dateTimeSymbols_.MONTHS,
E.JSC$9208_dateTimeSymbols_.STANDALONEMONTHS,E.JSC$9208_dateTimeSymbols_.SHORTMONTHS,E.JSC$9208_dateTimeSymbols_.STANDALONESHORTMONTHS],function(Y){c.month=Y})},fkZ=function(E,B,I,T,e){var c=I[0];
E=tT(E,B,I,T);if(E===null)return!1;I=I[0]-c;e.milliseconds=I<3?E*Math.pow(10,3-I):Math.round(E/Math.pow(10,I-3));return!0},VPN=function(E,B,I,T){B.indexOf("GMT",I[0])==I[0]&&(I[0]+=3);
if(I[0]>=B.length)return T.tzOffset=0,!0;var e=I[0],c=tT(E,B,I,0,!0);if(c===null)return!1;if(I[0]<B.length&&B.charAt(I[0])==":"){var Y=c*60;I[0]++;c=tT(E,B,I,0);if(c===null)return!1;Y+=c}else Y=c,Y=Y<24&&I[0]-e<=3?Y*60:Y%100+Y/100*60;T.tzOffset=-Y;return!0},kb=function(E,B,I,T,e,c,Y){Y=Y||!1;
var v=I[0];E=tT(E,B,I,e);if(E===null)return!1;if(Y&&I[0]-v<T.count){if(I[0]<B.length)return!1;E*=Math.pow(10,T.count-(I[0]-v))}c(E);return!0},Uo=function(E,B,I,T,e){e=e||!1;
for(var c,Y=0;Y<I.length;Y++){c=B;for(var v=I[Y],y=e,Z=0,P=null,z=E.substring(c[0]).toLowerCase(),m=0;m<v.length;m++){var u=v[m].toLowerCase();if(y&&u.indexOf(z)==0){Z=z.length;P=m;break}v[m].length>Z&&z.indexOf(u)==0&&(Z=v[m].length,P=m)}P!==null&&(c[0]+=Z);c=P;if(c!==null)return T(c),!0}return!1},jNh=function(E,B){(E=E.substring(B[0]).match(bqN))&&(B[0]+=E[0].length)},tT=function(E,B,I,T,e){B=T>0?B.substring(0,I[0]+T):B;
e=e||!1;if(E.JSC$9208_dateTimeSymbols_.ZERODIGIT){T=[];for(var c=I[0];c<B.length;c++){var Y=B.charCodeAt(c)-E.JSC$9208_dateTimeSymbols_.ZERODIGIT;T.push(0<=Y&&Y<=9?String.fromCharCode(Y+48):B.charAt(c))}B=T.join("")}else B=B.substring(I[0]);E=B.match(new RegExp("^"+(e?"[+-]?":"")+"\\d+"));if(!E)return null;I[0]+=E[0].length;return parseInt(E[0],10)},ARZ=function(){};
ARZ.prototype.ambiguousYear=!1;_.qq6={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 Fht={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"},DKh=Fht,Khl=Fht;Khl=DKh=Fht;var E7$,fo,q$,PVc,VO,RuV;
_.WP=function(E,B,I,T){var e;if(e=B){a:if(B&&B.length===3){for(e=0;e<3;e++){var c=B[e];if(c<"A"||c>"Z"&&c<"a"||c>"z"){e=!1;break a}}e=!0}else e=!1;e=!e}if(e)throw new TypeError("$d");this.intlCurrencyCode_=B?B.toUpperCase():null;this.currencyStyle_=I||0;this.overrideNumberFormatSymbols_=T||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_=fo(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof E==="number")switch(E){case 1:VO(this,fo(this).DECIMAL_PATTERN);break;case 2:VO(this,fo(this).SCIENTIFIC_PATTERN);break;case 3:VO(this,fo(this).PERCENT_PATTERN);break;case 4:E=fo(this).CURRENCY_PATTERN;B=["0"];if(I=
bM[q$(this)]){I=I[0]&7;if(I>0)for(B.push("."),T=0;T<I;T++)B.push("0");E=E.replace(/0.00/g,B.join(""))}VO(this,E);break;case 5:RuV(this,1);break;case 6:RuV(this,2);break;default:throw Error("ce");}else VO(this,E)};
E7$=!1;fo=function(E){return E.overrideNumberFormatSymbols_||(E7$?Khl:DKh)};
q$=function(E){return E.intlCurrencyCode_||fo(E).DEF_CURRENCY_CODE};
PVc=function(E,B){if(B>308)throw Error("be`"+B);E.maximumFractionDigits_=B;return E};
VO=function(E,B){var I=[0];E.positivePrefix_=BpV(E,B,I);for(var T=I[0],e=-1,c=0,Y=0,v=0,y=-1,Z=B.length,P=!0;I[0]<Z&&P;I[0]++)switch(B.charAt(I[0])){case "#":Y>0?v++:c++;y>=0&&e<0&&y++;break;case "0":if(v>0)throw Error("ie`"+B);Y++;y>=0&&e<0&&y++;break;case ",":y>0&&E.groupingArray_.push(y);y=0;break;case ".":if(e>=0)throw Error("je`"+B);e=c+Y+v;break;case "E":if(E.useExponentialNotation_)throw Error("ke`"+B);E.useExponentialNotation_=!0;E.minExponentDigits_=0;I[0]+1<Z&&B.charAt(I[0]+1)=="+"&&(I[0]++,
E.useSignForPositiveExponent_=!0);for(;I[0]+1<Z&&B.charAt(I[0]+1)=="0";)I[0]++,E.minExponentDigits_++;if(c+Y<1||E.minExponentDigits_<1)throw Error("le`"+B);P=!1;break;default:I[0]--,P=!1}Y==0&&c>0&&e>=0&&(Y=e,Y==0&&Y++,v=c-Y,c=Y-1,Y=1);if(e<0&&v>0||e>=0&&(e<c||e>c+Y)||y==0)throw Error("me`"+B);v=c+Y+v;E.maximumFractionDigits_=e>=0?v-e:0;e>=0&&(E.minimumFractionDigits_=c+Y-e,E.minimumFractionDigits_<0&&(E.minimumFractionDigits_=0));E.minimumIntegerDigits_=(e>=0?e:v)-c;E.useExponentialNotation_&&(E.maximumIntegerDigits_=
c+E.minimumIntegerDigits_,E.maximumFractionDigits_==0&&E.minimumIntegerDigits_==0&&(E.minimumIntegerDigits_=1));E.groupingArray_.push(Math.max(0,y));E.decimalSeparatorAlwaysShown_=e==0||e==v;T=I[0]-T;E.positiveSuffix_=BpV(E,B,I);I[0]<B.length&&B.charAt(I[0])==";"?(I[0]++,E.multiplier_!=1&&(E.negativePercentSignExpected_=!0),E.negativePrefix_=BpV(E,B,I),I[0]+=T,E.negativeSuffix_=BpV(E,B,I)):(E.negativePrefix_+=E.positivePrefix_,E.negativeSuffix_+=E.positiveSuffix_)};
RuV=function(E,B){E.compactStyle_=B;VO(E,fo(E).DECIMAL_PATTERN);E.minimumFractionDigits_=0;PVc(E,2);if(E.minimumFractionDigits_>0)throw Error("ae");E.significantDigits_=2};
_.WP.prototype.parse=function(E,B){B=B||[0];if(this.compactStyle_!==0)throw Error("de");E=E.replace(/ |\u202f/g,"\u00a0");var I=E.indexOf(this.positivePrefix_,B[0])==B[0],T=E.indexOf(this.negativePrefix_,B[0])==B[0];I&&T&&(this.positivePrefix_.length>this.negativePrefix_.length?T=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(I=!1));I?B[0]+=this.positivePrefix_.length:T&&(B[0]+=this.negativePrefix_.length);if(E.indexOf(fo(this).INFINITY,B[0])==B[0]){B[0]+=fo(this).INFINITY.length;var e=
Infinity}else{e=E;var c=!1,Y=!1,v=!1,y=-1,Z=1,P=fo(this).DECIMAL_SEP,z=fo(this).GROUP_SEP,m=fo(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ee");z=z.replace(/\u202f/g,"\u00a0");for(var u="";B[0]<e.length;B[0]++){var x=e.charAt(B[0]),M=$iD(this,x);if(M>=0&&M<=9)u+=M,v=!0;else if(x==P.charAt(0)){if(c||Y)break;u+=".";c=!0}else if(x==z.charAt(0)&&("\u00a0"!=z.charAt(0)||B[0]+1<e.length&&$iD(this,e.charAt(B[0]+1))>=0)){if(c||Y)break}else if(x==m.charAt(0)){if(Y)break;u+="E";Y=!0;y=B[0]}else if(x==
"+"||x=="-"){if(v&&y!=B[0]-1)break;u+=x}else if(this.multiplier_==1&&x==fo(this).PERCENT.charAt(0)){if(Z!=1)break;Z=100;if(v){B[0]++;break}}else if(this.multiplier_==1&&x==fo(this).PERMILL.charAt(0)){if(Z!=1)break;Z=1E3;if(v){B[0]++;break}}else break}this.multiplier_!=1&&(Z=this.multiplier_);e=parseFloat(u)/Z}if(I){if(E.indexOf(this.positiveSuffix_,B[0])!=B[0])return NaN;B[0]+=this.positiveSuffix_.length}else if(T){if(E.indexOf(this.negativeSuffix_,B[0])!=B[0])return NaN;B[0]+=this.negativeSuffix_.length}return T?
-e:e};
_.WP.prototype.format=function(E){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("fe");if(isNaN(E))return fo(this).NAN;var B=[];var I=E;if(this.compactStyle_==0)I=F0;else{I=Math.abs(I);var T=INR(this,I<=1?0:TpU(I)).divisorBase;I=INR(this,T+TpU(e2D(this,DO(I,-T)).intValue))}E=DO(E,-I.divisorBase);(T=E<0||E==0&&1/E<0)?I.negative_prefix?B.push(I.negative_prefix):(B.push(I.prefix),B.push(this.negativePrefix_)):(B.push(I.prefix),B.push(this.positivePrefix_));if(isFinite(E))if(E*=
T?-1:1,E*=this.multiplier_,this.useExponentialNotation_){var e=E;if(e==0)lND(this,e,this.minimumIntegerDigits_,B),cdD(this,0,B);else{var c=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=DO(e,-c);var Y=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(Y=c%this.maximumIntegerDigits_,Y<0&&(Y=this.maximumIntegerDigits_+Y),e=DO(e,Y),c-=Y,Y=1):this.minimumIntegerDigits_<1?(c++,e=DO(e,-1)):(c-=this.minimumIntegerDigits_-1,e=DO(e,this.minimumIntegerDigits_-
1));lND(this,e,Y,B);cdD(this,c,B)}}else lND(this,E,this.minimumIntegerDigits_,B);else B.push(fo(this).INFINITY);T?I.negative_suffix?B.push(I.negative_suffix):(isFinite(E)&&B.push(I.suffix),B.push(this.negativeSuffix_)):(isFinite(E)&&B.push(I.suffix),B.push(this.positiveSuffix_));return B.join("")};
var e2D=function(E,B){var I=DO(B,E.maximumFractionDigits_);E.significantDigits_>0&&(I=i$R(I,E.significantDigits_,E.maximumFractionDigits_));I=Math.round(I);if(isFinite(I)){var T=Math.floor(DO(I,-E.maximumFractionDigits_));I=Math.floor(I-DO(T,E.maximumFractionDigits_));if(I<0||I>=DO(1,E.maximumFractionDigits_))T=Math.round(B),I=0}else T=B,I=0;return{intValue:T,fracValue:I}},lND=function(E,B,I,T){if(E.minimumFractionDigits_>E.maximumFractionDigits_)throw Error("fe");
T||(T=[]);B=e2D(E,B);var e=B.intValue,c=B.fracValue,Y=E.minimumFractionDigits_>0||c>0||!1;B=E.minimumFractionDigits_;Y&&(B=E.minimumFractionDigits_);for(var v="",y=e;y>1E20;)v="0"+v,y=Math.round(DO(y,-1));v=y+v;var Z=fo(E).DECIMAL_SEP;y=fo(E).ZERO_DIGIT.codePointAt(0);var P=v.length,z=0;if(e>0||I>0){for(e=P;e<I;e++)T.push(String.fromCodePoint(y));if(E.groupingArray_.length>=2)for(I=1;I<E.groupingArray_.length;I++)z+=E.groupingArray_[I];I=P-z;if(I>0){e=E.groupingArray_;z=P=0;for(var m,u=fo(E).GROUP_SEP,
x=v.length,M=0;M<x;M++)if(T.push(String.fromCodePoint(y+Number(v.charAt(M)))),x-M>1)if(m=e[z],M<I){var N=I-M;(m===1||m>0&&N%m===1)&&T.push(u)}else z<e.length&&(M===I?z+=1:m===M-I-P+1&&(T.push(u),P+=m,z+=1))}else{I=v;v=E.groupingArray_;e=fo(E).GROUP_SEP;m=I.length;u=[];for(P=v.length-1;P>=0&&m>0;P--){z=v[P];for(x=0;x<z&&m-x-1>=0;x++)u.push(String.fromCodePoint(y+Number(I.charAt(m-x-1))));m-=z;m>0&&u.push(e)}T.push.apply(T,u.reverse())}}else Y||T.push(String.fromCodePoint(y));(E.decimalSeparatorAlwaysShown_||
Y)&&T.push(Z);c=String(c);Y=c.split("e+");Y.length==2&&(c=String(i$R(parseFloat(Y[0]),E.significantDigits_,1)),c=c.replace(".",""),c+=(0,_.lXr)("0",parseInt(Y[1],10)-c.length+1));E.maximumFractionDigits_+1>c.length&&(c="1"+(0,_.lXr)("0",E.maximumFractionDigits_-c.length)+c);for(E=c.length;c.charAt(E-1)=="0"&&E>B+1;)E--;for(B=1;B<E;B++)T.push(String.fromCodePoint(y+Number(c.charAt(B))))},cdD=function(E,B,I){I.push(fo(E).EXP_SYMBOL);
B<0?(B=-B,I.push(fo(E).MINUS_SIGN)):E.useSignForPositiveExponent_&&I.push(fo(E).PLUS_SIGN);B=""+B;for(var T=fo(E).ZERO_DIGIT,e=B.length;e<E.minExponentDigits_;e++)I.push(T);E=T.codePointAt(0)-plt;for(T=0;T<B.length;T++)I.push(String.fromCodePoint(E+B.codePointAt(T)))},$iD=function(E,B){B=B.codePointAt(0);
if(48<=B&&B<58)return B-48;E=fo(E).ZERO_DIGIT.codePointAt(0);return E<=B&&B<E+10?B-E:-1},plt="0".codePointAt(0),BpV=function(E,B,I){for(var T="",e=!1,c=B.length;I[0]<c;I[0]++){var Y=B.charAt(I[0]);
if(Y=="'")I[0]+1<c&&B.charAt(I[0]+1)=="'"?(I[0]++,T+="'"):e=!e;else if(e)T+=Y;else switch(Y){case "#":case "0":case ",":case ".":case ";":return T;case "\u00a4":if(I[0]+1<c&&B.charAt(I[0]+1)=="\u00a4")I[0]++,T+=q$(E);else switch(E.currencyStyle_){case 0:Y=q$(E);T+=Y in bM?bM[Y][1]:Y;break;case 2:Y=q$(E);var v=bM[Y];T+=v?Y==v[1]?Y:Y+" "+v[1]:Y;break;case 1:Y=q$(E),T+=Y in bM?bM[Y][2]:Y}break;case "%":if(!E.negativePercentSignExpected_&&E.multiplier_!=1)throw Error("ge");if(E.negativePercentSignExpected_&&
E.multiplier_!=100)throw Error("he");E.multiplier_=100;E.negativePercentSignExpected_=!1;T+=fo(E).PERCENT;break;case "\u2030":if(!E.negativePercentSignExpected_&&E.multiplier_!=1)throw Error("ge");if(E.negativePercentSignExpected_&&E.multiplier_!=1E3)throw Error("he");E.multiplier_=1E3;E.negativePercentSignExpected_=!1;T+=fo(E).PERMILL;break;default:T+=Y}}return T},F0={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},INR=function(E,B){E=E.compactStyle_==1?ro.COMPACT_DECIMAL_SHORT_PATTERN:ro.COMPACT_DECIMAL_LONG_PATTERN;E==null&&(E=ro.COMPACT_DECIMAL_SHORT_PATTERN);if(B<3)return F0;B=Math.min(14,B);var I=E[DO(1,B)];for(--B;!I&&B>=3;)I=E[DO(1,B)],B--;if(!I)return F0;I=I.other;var T=E="",e=I.indexOf(";");e>=0&&(I=I.substring(0,e),e=I.substring(e+1))&&(T=/([^0]*)(0+)(.*)/.exec(e),E=T[1],T=T[3]);return I&&I!="0"?(I=/([^0]*)(0+)(.*)/.exec(I))?{divisorBase:B+
1-(I[2].length-1),negative_prefix:E,negative_suffix:T,prefix:I[1],suffix:I[3]}:F0:F0},TpU=function(E){if(!isFinite(E))return E>0?E:0;
for(var B=0;(E/=10)>=1;)B++;return B},DO=function(E,B){if(!E||!isFinite(E)||B==0)return E;
E=String(E).split("e");return parseFloat(E[0]+"e"+(parseInt(E[1]||0,10)+B))},YMD=function(E,B){return E&&isFinite(E)?DO(Math.round(DO(E,B)),-B):E},i$R=function(E,B,I){if(!E)return E;
B=B-TpU(E)-1;return B<-I?YMD(E,-I):YMD(E,B)};var aN6=function(E){return E%10==1&&E%100!=11?"one":E%10==2&&E%100!=12?"two":E%10==3&&E%100!=13?"few":"other"},v7N=aN6;
v7N=aN6;var ydU;ydU=function(E,B){var I=E|0;if(void 0===B){B=Math;var T=B.min,e=E+"",c=e.indexOf(".");B=T.call(B,c===-1?0:e.length-c-1,3)}T=Math.pow(10,B);E={v:B,f:(E*T|0)%T};return I==1&&E.v==0?"one":"other"};
_.A2=ydU;_.A2=ydU;var C6N,wlZ,Z$z,z2Z,miX;_.P6R=function(E){this.JSC$9251_pattern_=E;this.parsedPattern_=this.literals_=this.initialLiterals_=null;E=DKh;var B=ro;if(C6N!==E||wlZ!==B)C6N=E,wlZ=B,Z$z=new _.WP(1);this.numberFormatter_=Z$z};
C6N=null;wlZ=null;Z$z=null;z2Z=RegExp("'([{}#].*?)'","g");miX=RegExp("''","g");
_.P6R.prototype.format=function(E){if(this.JSC$9251_pattern_){this.initialLiterals_=[];var B=Q3X(this,this.JSC$9251_pattern_);this.parsedPattern_=diN(this,B);this.JSC$9251_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.V6(this.initialLiterals_),B=[],h2R(this,this.parsedPattern_,E,!1,B),E=B.join("");this.literals_.length>0;)E=E.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else E="";return E};
var h2R=function(E,B,I,T,e){for(var c=0;c<B.length;c++)switch(B[c].type){case 4:e.push(B[c].value);break;case 3:var Y=B[c].value;var v=E,y=e,Z=I[Y];Z===void 0?y.push("Undefined parameter - "+Y):(v.literals_.push(Z),y.push(v.buildPlaceholder_(v.literals_)));break;case 2:Y=B[c].value;v=E;y=I;Z=T;var P=e,z=Y.argumentIndex;y[z]===void 0?P.push("Undefined parameter - "+z):(z=Y[y[z]],z===void 0&&(z=Y.other),h2R(v,z,y,Z,P));break;case 0:Y=B[c].value;s3V(E,Y,I,_.A2,T,e);break;case 1:Y=B[c].value,s3V(E,Y,
I,v7N,T,e)}},s3V=function(E,B,I,T,e,c){var Y=B.argumentIndex,v=B.argumentOffset,y=+I[Y];
isNaN(y)?c.push("Undefined or invalid parameter - "+Y):(v=y-v,Y=B[I[Y]],Y===void 0&&(T=T(Math.abs(v)),Y=B[T],Y===void 0&&(Y=B.other)),B=[],h2R(E,Y,I,e,B),I=B.join(""),e?c.push(I):(E=E.numberFormatter_.format(v),c.push(I.replace(/#/g,E))))},Q3X=function(E,B){var I=E.initialLiterals_,T=E.buildPlaceholder_.bind(E);
B=B.replace(miX,function(){I.push("'");return T(I)});
return B=B.replace(z2Z,function(e,c){I.push(c);return T(I)})},uSV=function(E){var B=0,I=[],T=[],e=/[{}]/g;
e.lastIndex=0;for(var c;c=e.exec(E);){var Y=c.index;c[0]=="}"?(I.pop(),I.length==0&&(c={type:1},c.value=E.substring(B,Y),T.push(c),B=Y+1)):(I.length==0&&(B=E.substring(B,Y),B!=""&&T.push({type:0,value:B}),B=Y+1),I.push("{"))}E=E.substring(B);E!=""&&T.push({type:0,value:E});return T},LBN=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,xiZ=/^\s*(\w+)\s*,\s*selectordinal\s*,/,GgZ=/^\s*(\w+)\s*,\s*select\s*,/,diN=function(E,B){var I=[];
B=uSV(B);for(var T=0;T<B.length;T++){var e={};if(0==B[T].type)e.type=4,e.value=B[T].value;else if(1==B[T].type){var c=B[T].value;switch(LBN.test(c)?0:xiZ.test(c)?1:GgZ.test(c)?2:/^\s*\w+\s*/.test(c)?3:5){case 2:e.type=2;e.value=O$t(E,B[T].value);break;case 0:e.type=0;e.value=n7R(E,B[T].value);break;case 1:e.type=1;e.value=MVu(E,B[T].value);break;case 3:e.type=3,e.value=B[T].value}}I.push(e)}return I},O$t=function(E,B){var I="";
B=B.replace(GgZ,function(v,y){I=y;return""});
var T={};T.argumentIndex=I;B=uSV(B);for(var e=0;e<B.length;){var c=B[e].value;e++;var Y=void 0;1==B[e].type&&(Y=diN(E,B[e].value));T[c.replace(/\s/g,"")]=Y;e++}return T},n7R=function(E,B){var I="",T=0;
B=B.replace(LBN,function(y,Z,P){I=Z;P&&(T=parseInt(P,10));return""});
var e={};e.argumentIndex=I;e.argumentOffset=T;B=uSV(B);for(var c=0;c<B.length;){var Y=B[c].value;c++;var v=void 0;1==B[c].type&&(v=diN(E,B[c].value));e[Y.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=v;c++}return e},MVu=function(E,B){var I="";
B=B.replace(xiZ,function(v,y){I=y;return""});
var T={};T.argumentIndex=I;T.argumentOffset=0;B=uSV(B);for(var e=0;e<B.length;){var c=B[e].value;e++;var Y=void 0;1==B[e].type&&(Y=diN(E,B[e].value));T[c.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Y;e++}return T};
_.P6R.prototype.buildPlaceholder_=function(E){return"\ufddf_"+(E.length-1).toString(10)+"_"};var H$u;
H$u={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 i_f=function(){this.rdtfSymbols_=Nph||H$u;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
i_f.prototype.format=function(E,B){a:{B=g7D(this,B);switch(this.style_){case 2:if(B.NARROW!=void 0){B=B.NARROW;break a}case 1:if(B.SHORT!=void 0){B=B.SHORT;break a}default:B=B.LONG;break a}B=void 0}if(!this.alwaysNumeric_&&B&&B.R&&B.R[""+E])E=B.R[""+E];else if(B){var I=Math.abs(E);E=(new _.P6R("{N,plural,"+(E>0||E==0&&1/E==Infinity?B.F:B.P)+"}")).format({N:I})}else E="";return E};
var g7D=function(E,B){switch(B){default:case 0:return E.rdtfSymbols_.YEAR;case 1:return E.rdtfSymbols_.QUARTER;case 2:return E.rdtfSymbols_.MONTH;case 3:return E.rdtfSymbols_.WEEK;case 4:return E.rdtfSymbols_.DAY;case 5:return E.rdtfSymbols_.HOUR;case 6:return E.rdtfSymbols_.MINUTE;case 7:return E.rdtfSymbols_.SECOND}};var SMR=function(E,B,I,T,e,c,Y,v){this.x0=E;this.y0=B;this.x1=I;this.y1=T;this.x2=e;this.y2=c;this.x3=Y;this.y3=v};
SMR.prototype.clone=function(){return new SMR(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
SMR.prototype.equals=function(E){return this.x0==E.x0&&this.y0==E.y0&&this.x1==E.x1&&this.y1==E.y1&&this.x2==E.x2&&this.y2==E.y2&&this.x3==E.x3&&this.y3==E.y3};
var JdU=function(E,B){if(B==0)return E.x0;if(B==1)return E.x3;var I=Q_(E.x0,E.x1,B),T=Q_(E.x1,E.x2,B);E=Q_(E.x2,E.x3,B);I=Q_(I,T,B);T=Q_(T,E,B);return Q_(I,T,B)},WBh=function(E,B){var I=(B-E.x0)/(E.x3-E.x0);
if(I<=0)return 0;if(I>=1)return 1;for(var T=0,e=1,c=0,Y=0;Y<8;Y++){c=JdU(E,I);var v=(JdU(E,I+1E-6)-c)/1E-6;if(Math.abs(c-B)<1E-6)return I;if(Math.abs(v)<1E-6)break;else c<B?T=I:e=I,I-=(c-B)/v}for(Y=0;Math.abs(c-B)>1E-6&&Y<8;Y++)c<B?(T=I,I=(I+e)/2):(e=I,I=(I+T)/2),c=JdU(E,I);return I};var Ko=function(){_.ms.call(this);this.JSC$9272_name_="closure_frame"+XlZ++;this.iframesForDisposal_=[];rdr[this.JSC$9272_name_]=this},Rn;
_.$U(Ko,_.ms);var rdr={},XlZ=0,b$$=function(E,B){var I=BM(E);_.I0N(B,function(T,e){Array.isArray(T)||(T=[T]);_.bW(T,function(c){c=I.JSC$7216_createDom("INPUT",{type:"hidden",name:e,value:c});E.appendChild(c)})})};
_.l=Ko.prototype;_.l.JSC$9274_form_=null;_.l.JSC$9274_iframe_=null;_.l.iframeName_=null;_.l.nextIframeId_=0;_.l.JSC$9274_active_=!1;_.l.complete_=!1;_.l.success_=!1;_.l.lastContent_=null;_.l.JSC$9274_lastErrorCode_=0;_.l.iframeDisposalTimer_=null;
_.l.send=function(E,B,I,T){if(this.JSC$9274_active_)throw Error("ne");E=new _.tQ(E);B=B?B.toUpperCase():"GET";I&&_.eM(E);Rn||(Rn=_.ut("FORM"),Rn.acceptCharset="utf-8",I=Rn.style,I.position="absolute",I.visibility="hidden",I.top=I.left="-10px",I.width=I.height="10px",I.overflow="hidden",document.body.appendChild(Rn));this.JSC$9274_form_=Rn;B=="GET"&&b$$(this.JSC$9274_form_,E.JSC$7917_queryData_);T&&b$$(this.JSC$9274_form_,T);I=E.toString();I=DSG(I);T=this.JSC$9274_form_;I=_.yC(IG(I));I!==void 0&&(T.action=
I);this.JSC$9274_form_.method=B;o7u(this);AdN(this)};
_.l.abort=function(E){if(this.JSC$9274_active_){var B=EI(this);if(B)if(ZF(B))B.removeAllListeners(void 0);else if(B=PR(B)){var I=0,T;for(T in B.listeners)for(var e=B.listeners[T].concat(),c=0;c<e.length;++c)p8(e[c])&&++I}this.success_=this.JSC$9274_active_=this.complete_=!1;this.JSC$9274_lastErrorCode_=E||7;this.dispatchEvent("abort");j3r(this)}};
_.l.disposeInternal=function(){this.JSC$9274_active_&&this.abort();Ko.superClass_.disposeInternal.call(this);this.JSC$9274_iframe_&&UiZ(this);AdN(this);this.JSC$9274_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9274_form_=null;this.JSC$9274_lastErrorCode_=0;delete rdr[this.JSC$9272_name_]};
_.l.isComplete=function(){return this.complete_};
_.l.isSuccess=function(){return this.success_};
_.l.isActive=function(){return this.JSC$9274_active_};
_.l.getResponseText=function(){return this.lastContent_};
_.l.getLastError=function(){return _.SRV(this.JSC$9274_lastErrorCode_)};
var o7u=function(E){E.JSC$9274_active_=!0;E.complete_=!1;E.JSC$9274_lastErrorCode_=0;E.iframeName_=E.JSC$9272_name_+"_"+(E.nextIframeId_++).toString(36);E.JSC$9274_iframe_=BM(E.JSC$9274_form_).JSC$7216_createDom("IFRAME",{name:E.iframeName_,id:E.iframeName_});var B=E.JSC$9274_iframe_.style;B.visibility="hidden";B.width=B.height="10px";B.display="none";_.pa?B.marginTop=B.marginLeft="-10px":(B.position="absolute",B.top=B.left="-10px");BM(E.JSC$9274_form_).JSC$7214_document_.body.appendChild(E.JSC$9274_iframe_);
B=E.iframeName_+"_inner";var I=OTU(E.JSC$9274_iframe_);if(document.baseURI){var T=Kp(B);T='<head><base href="'+Kp(document.baseURI)+'"></head><body><iframe id="'+T+'" name="'+T+'"></iframe>';T=z1(T)}else T=Kp(B),T=z1('<body><iframe id="'+T+'" name="'+T+'"></iframe>');I.write(mm(T));_.vV(I.getElementById(B),"load",E.onIframeLoaded_,!1,E);T=px("TEXTAREA",E.JSC$9274_form_);for(var e=0,c=T.length;e<c;e++){var Y=T[e].value;S9U(T[e])!=Y&&(_.HT(T[e],Y),T[e].value=Y)}T=I.importNode(E.JSC$9274_form_,!0);T.target=
B;T.action=E.JSC$9274_form_.action;I.body.appendChild(T);e=px("SELECT",E.JSC$9274_form_);c=px("SELECT",T);Y=0;for(var v=e.length;Y<v;Y++)for(var y=px("OPTION",e[Y]),Z=px("OPTION",c[Y]),P=0,z=y.length;P<z;P++)Z[P].selected=y[P].selected;e=px("INPUT",E.JSC$9274_form_);c=px("INPUT",T);Y=0;for(v=e.length;Y<v;Y++)if(e[Y].type=="file"&&e[Y].value!=c[Y].value){E.JSC$9274_form_.target=B;T=E.JSC$9274_form_;break}try{E.errorHandled_=!1,T.submit(),I.close(),_.iq&&setTimeout(E.testForFirefoxSilentError_.bind(E),
250)}catch(m){_.zw(I.getElementById(B),"load",E.onIframeLoaded_,!1,E),I.close(),BO(E,2)}};
Ko.prototype.onIframeLoaded_=function(){_.zw(EI(this),"load",this.onIframeLoaded_,!1,this);try{var E=this.JSC$9274_iframe_?OTU(EI(this)):null;this.complete_=!0;this.JSC$9274_active_=!1;try{var B=E.body;this.lastContent_=B.textContent||B.innerText}catch(e){var I=1}var T;I||typeof this.errorChecker_!="function"||(T=this.errorChecker_(E))&&(I=4);I?BO(this,I):(this.success_=!0,this.JSC$9274_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),j3r(this))}catch(e){BO(this,1)}};
var BO=function(E,B){E.errorHandled_||(E.success_=!1,E.JSC$9274_active_=!1,E.complete_=!0,E.JSC$9274_lastErrorCode_=B,E.dispatchEvent("complete"),E.dispatchEvent("error"),j3r(E),E.errorHandled_=!0)},j3r=function(E){UiZ(E);
AdN(E);E.JSC$9274_form_=null;E.dispatchEvent("ready")},UiZ=function(E){var B=E.JSC$9274_iframe_;
B&&(B.onreadystatechange=null,B.onload=null,B.onerror=null,E.iframesForDisposal_.push(B));E.iframeDisposalTimer_&&(clearTimeout(E.iframeDisposalTimer_),E.iframeDisposalTimer_=null);_.iq?E.iframeDisposalTimer_=setTimeout(E.disposeIframes_.bind(E),2E3):E.disposeIframes_();E.JSC$9274_iframe_=null;E.iframeName_=null};
Ko.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var E=this.iframesForDisposal_.pop();_.ii(E)}};
var AdN=function(E){E.JSC$9274_form_&&E.JSC$9274_form_==Rn&&_.GV(E.JSC$9274_form_)},EI=function(E){return E.JSC$9274_iframe_?OTU(E.JSC$9274_iframe_).getElementById(E.iframeName_+"_inner"):null};
Ko.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9274_active_){var E=this.JSC$9274_iframe_?OTU(EI(this)):null;E&&!PM(E,"documentUri")?(_.zw(EI(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?BO(this,3):BO(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.$f=function(E){return E=="\r"||E=="\n"||E==" "||E=="\t"};var kgU;_.IA=function(E){this.errorMessage_=null;this.result_=[];this.JSC$9276_buffer_="";this.stack_=[];this.JSC$9276_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!E||!E.deliverMessageAsRawString)};
kgU={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};_.IA.prototype.isInputValid=function(){return this.streamState_!=3};
_.IA.prototype.done=function(){return this.streamState_===2};
var Tq=function(E,B,I){E.streamState_=3;E.errorMessage_="The stream is broken @"+E.JSC$9276_pos_+"/"+I+". With input:\n"+B;throw Error(E.errorMessage_);};
_.IA.prototype.acceptsBinaryInput=function(){return!1};
_.IA.prototype.parse=function(E){function B(){for(;m<E.length;)if(_.$f(E[m]))m++,c.JSC$9276_pos_++;else break;return m<Z}
function I(){for(var x;;){x=E[m++];if(!x)break;c.JSC$9276_pos_++;switch(c.state_){case y.INIT:x==="{"?c.state_=y.OBJECT_OPEN:x==="["?c.state_=y.ARRAY_OPEN:_.$f(x)||Tq(c,E,m);continue;case y.KEY_START:case y.OBJECT_OPEN:if(_.$f(x))continue;if(c.state_===y.KEY_START)Y.push(y.KEY_END);else if(x==="}"){e("{}");c.state_=T();continue}else Y.push(y.OBJECT_END);x==='"'?c.state_=y.STRING:Tq(c,E,m);continue;case y.KEY_END:case y.OBJECT_END:if(_.$f(x))continue;x===":"?(c.state_===y.OBJECT_END&&(Y.push(y.OBJECT_END),
c.depth_++),c.state_=y.VALUE):x==="}"?(c.depth_--,e(),c.state_=T()):x===","?(c.state_===y.OBJECT_END&&Y.push(y.OBJECT_END),c.state_=y.KEY_START):Tq(c,E,m);continue;case y.ARRAY_OPEN:case y.VALUE:if(_.$f(x))continue;if(c.state_===y.ARRAY_OPEN)if(c.depth_++,c.state_=y.VALUE,x==="]"){c.depth_--;if(c.depth_===0){c.state_=y.ARRAY_END;return}e("[]");c.state_=T();continue}else Y.push(y.ARRAY_END);x==='"'?c.state_=y.STRING:x==="{"?c.state_=y.OBJECT_OPEN:x==="["?c.state_=y.ARRAY_OPEN:x==="t"?c.state_=y.TRUE1:
x==="f"?c.state_=y.FALSE1:x==="n"?c.state_=y.NULL1:x!=="-"&&("0123456789".indexOf(x)!==-1?c.state_=y.NUM_DIGIT:Tq(c,E,m));continue;case y.ARRAY_END:if(x===",")Y.push(y.ARRAY_END),c.state_=y.VALUE,c.depth_===1&&(z=m);else if(x==="]"){c.depth_--;if(c.depth_===0)return;e();c.state_=T()}else if(_.$f(x))continue;else Tq(c,E,m);continue;case y.STRING:var M=m;a:for(;;){for(;c.unicodeCount_>0;)if(x=E[m++],c.unicodeCount_===4?c.unicodeCount_=0:c.unicodeCount_++,!x)break a;if(x==='"'&&!c.slashed_){c.state_=
T();break}if(x==="\\"&&!c.slashed_&&(c.slashed_=!0,x=E[m++],!x))break;if(c.slashed_)if(c.slashed_=!1,x==="u"&&(c.unicodeCount_=1),x=E[m++])continue;else break;v.lastIndex=m;x=v.exec(E);if(!x){m=E.length+1;break}m=x.index+1;x=E[x.index];if(!x)break}c.JSC$9276_pos_+=m-M;continue;case y.TRUE1:if(!x)continue;x==="r"?c.state_=y.TRUE2:Tq(c,E,m);continue;case y.TRUE2:if(!x)continue;x==="u"?c.state_=y.TRUE3:Tq(c,E,m);continue;case y.TRUE3:if(!x)continue;x==="e"?c.state_=T():Tq(c,E,m);continue;case y.FALSE1:if(!x)continue;
x==="a"?c.state_=y.FALSE2:Tq(c,E,m);continue;case y.FALSE2:if(!x)continue;x==="l"?c.state_=y.FALSE3:Tq(c,E,m);continue;case y.FALSE3:if(!x)continue;x==="s"?c.state_=y.FALSE4:Tq(c,E,m);continue;case y.FALSE4:if(!x)continue;x==="e"?c.state_=T():Tq(c,E,m);continue;case y.NULL1:if(!x)continue;x==="u"?c.state_=y.NULL2:Tq(c,E,m);continue;case y.NULL2:if(!x)continue;x==="l"?c.state_=y.NULL3:Tq(c,E,m);continue;case y.NULL3:if(!x)continue;x==="l"?c.state_=T():Tq(c,E,m);continue;case y.NUM_DECIMAL_POINT:x===
"."?c.state_=y.NUM_DIGIT:Tq(c,E,m);continue;case y.NUM_DIGIT:if("0123456789.eE+-".indexOf(x)!==-1)continue;else m--,c.JSC$9276_pos_--,c.state_=T();continue;default:Tq(c,E,m)}}}
function T(){var x=Y.pop();return x!=null?x:y.VALUE}
function e(x){c.depth_>1||(x||(x=z===-1?c.JSC$9276_buffer_+E.substring(P,m):E.substring(z,m)),c.deliverMessageAsRawString_?c.result_.push(x):c.result_.push(JSON.parse(x)),z=m)}
for(var c=this,Y=c.stack_,v=c.stringInputPattern_,y=kgU,Z=E.length,P=0,z=-1,m=0;m<Z;)switch(c.streamState_){case 3:return Tq(c,E,m),null;case 2:return B()&&Tq(c,E,m),null;case 0:if(B()){var u=E[m++];c.JSC$9276_pos_++;if(u==="["){c.streamState_=1;P=m;c.state_=y.ARRAY_OPEN;continue}else Tq(c,E,m)}return null;case 1:return I(),c.depth_===0&&c.state_==y.ARRAY_END?(c.streamState_=2,c.JSC$9276_buffer_=E.substring(m)):c.JSC$9276_buffer_=z===-1?c.JSC$9276_buffer_+E.substring(P):E.substring(z),c.result_.length>
0?(u=c.result_,c.result_=[],u):null}return null};_.$U(_.Rj,mz);Ei.prototype.getValue=function(){return this.JSC$9284_value_};
Ei.prototype.clone=function(){return new Ei(this.JSC$9284_key_,this.JSC$9284_value_)};var ey=function(E){this.nodes_=[];if(E)a:{if(E instanceof ey){var B=E.getKeys();E=E.getValues();if(this.getCount()<=0){for(var I=this.nodes_,T=0;T<B.length;T++)I.push(new Ei(B[T],E[T]));break a}}else B=_.a_.getKeys(E),E=_.a_.getValues(E);for(I=0;I<B.length;I++)this.insert(B[I],E[I])}};
_.l=ey.prototype;_.l.insert=function(E,B){var I=this.nodes_;I.push(new Ei(E,B));E=I.length-1;B=this.nodes_;for(I=B[E];E>0;){var T=E-1>>1;if(B[T].JSC$9284_key_>I.JSC$9284_key_)B[E]=B[T],E=T;else break}B[E]=I};
_.l.remove=function(){var E=this.nodes_,B=E.length,I=E[0];if(!(B<=0)){if(B==1)E.length=0;else{E[0]=E.pop();E=0;B=this.nodes_;for(var T=B.length,e=B[E];E<T>>1;){var c=E*2+1,Y=E*2+2;c=Y<T&&B[Y].JSC$9284_key_<B[c].JSC$9284_key_?Y:c;if(B[c].JSC$9284_key_>e.JSC$9284_key_)break;B[E]=B[c];E=c}B[E]=e}return I.getValue()}};
_.l.peek=function(){var E=this.nodes_;if(E.length!=0)return E[0].getValue()};
_.l.getValues=function(){for(var E=this.nodes_,B=[],I=E.length,T=0;T<I;T++)B.push(E[T].getValue());return B};
_.l.getKeys=function(){for(var E=this.nodes_,B=[],I=E.length,T=0;T<I;T++)B.push(E[T].JSC$9284_key_);return B};
_.l.containsValue=function(E){return this.nodes_.some(function(B){return B.getValue()==E})};
_.l.containsKey=function(E){return this.nodes_.some(function(B){return B.JSC$9284_key_==E})};
_.l.clone=function(){return new ey(this)};
_.l.getCount=function(){return this.nodes_.length};
_.l.isEmpty=function(){return this.nodes_.length===0};
_.l.clear=function(){this.nodes_.length=0};_.lo=function(E,B){this.JSC$9290_map_={};this.JSC$9290_keys_=[];this.version_=this.size=0;var I=arguments.length;if(I>1){if(I%2)throw Error("oa");for(var T=0;T<I;T+=2)this.set(arguments[T],arguments[T+1])}else E&&this.addAll(E)};
_.l=_.lo.prototype;_.l.getCount=function(){return this.size};
_.l.getValues=function(){cO(this);for(var E=[],B=0;B<this.JSC$9290_keys_.length;B++)E.push(this.JSC$9290_map_[this.JSC$9290_keys_[B]]);return E};
_.l.getKeys=function(){cO(this);return this.JSC$9290_keys_.concat()};
_.l.containsKey=function(E){return this.has(E)};
_.l.has=function(E){return io(this.JSC$9290_map_,E)};
_.l.containsValue=function(E){for(var B=0;B<this.JSC$9290_keys_.length;B++){var I=this.JSC$9290_keys_[B];if(io(this.JSC$9290_map_,I)&&this.JSC$9290_map_[I]==E)return!0}return!1};
_.l.equals=function(E,B){if(this===E)return!0;if(this.size!=E.getCount())return!1;B=B||tVZ;cO(this);for(var I,T=0;I=this.JSC$9290_keys_[T];T++)if(!B(this.get(I),E.get(I)))return!1;return!0};
var tVZ=function(E,B){return E===B};
_.lo.prototype.isEmpty=function(){return this.size==0};
_.lo.prototype.clear=function(){this.JSC$9290_map_={};this.version_=this.size=this.JSC$9290_keys_.length=0};
_.lo.prototype.remove=function(E){return this.delete(E)};
_.lo.prototype.delete=function(E){return io(this.JSC$9290_map_,E)?(delete this.JSC$9290_map_[E],--this.size,this.version_++,this.JSC$9290_keys_.length>2*this.size&&cO(this),!0):!1};
var cO=function(E){if(E.size!=E.JSC$9290_keys_.length){for(var B=0,I=0;B<E.JSC$9290_keys_.length;){var T=E.JSC$9290_keys_[B];io(E.JSC$9290_map_,T)&&(E.JSC$9290_keys_[I++]=T);B++}E.JSC$9290_keys_.length=I}if(E.size!=E.JSC$9290_keys_.length){B={};for(T=I=0;I<E.JSC$9290_keys_.length;){var e=E.JSC$9290_keys_[I];io(B,e)||(E.JSC$9290_keys_[T++]=e,B[e]=1);I++}E.JSC$9290_keys_.length=T}};
_.l=_.lo.prototype;_.l.get=function(E,B){return io(this.JSC$9290_map_,E)?this.JSC$9290_map_[E]:B};
_.l.set=function(E,B){io(this.JSC$9290_map_,E)||(this.size+=1,this.JSC$9290_keys_.push(E),this.version_++);this.JSC$9290_map_[E]=B};
_.l.addAll=function(E){if(E instanceof _.lo)for(var B=E.getKeys(),I=0;I<B.length;I++)this.set(B[I],E.get(B[I]));else for(B in E)this.set(B,E[B])};
_.l.forEach=function(E,B){for(var I=this.getKeys(),T=0;T<I.length;T++){var e=I[T],c=this.get(e);E.call(B,c,e,this)}};
_.l.clone=function(){return new _.lo(this)};
_.l.transpose=function(){for(var E=new _.lo,B=0;B<this.JSC$9290_keys_.length;B++){var I=this.JSC$9290_keys_[B];E.set(this.JSC$9290_map_[I],I)}return E};
_.l.keys=function(){return mWh(this.__iterator__(!0)).toEs6()};
_.l.values=function(){return mWh(this.__iterator__(!1)).toEs6()};
_.l.entries=function(){var E=this;return NKD(this.keys(),function(B){return[B,E.get(B)]})};
_.l.__iterator__=function(E){cO(this);var B=0,I=this.version_,T=this,e=new Ib;e.next=function(){if(I!=T.version_)throw Error("oe");if(B>=T.JSC$9290_keys_.length)return Te;var c=T.JSC$9290_keys_[B++];return eJ(E?c:T.JSC$9290_map_[c])};
return e};
var io=function(E,B){return Object.prototype.hasOwnProperty.call(E,B)};var VVu=function(){this.JSC$9293_map_=new _.lo;this.JSC$9293_head_=new fNl("");this.JSC$9293_head_.next=this.JSC$9293_head_.prev=this.JSC$9293_head_},qMZ=function(E,B){if(B=E.JSC$9293_map_.get(B))B.remove(),E.insert_(B);
return B};
_.l=VVu.prototype;_.l.get=function(E,B){return(E=qMZ(this,E))?E.value:B};
_.l.set=function(E,B){var I=qMZ(this,E);I?I.value=B:(I=new fNl(E,B),this.JSC$9293_map_.set(E,I),this.insert_(I))};
_.l.peek=function(){return this.JSC$9293_head_.next.value};
_.l.shift=function(){return FBN(this,this.JSC$9293_head_.next)};
_.l.pop=function(){return FBN(this,this.JSC$9293_head_.prev)};
_.l.remove=function(E){return(E=this.JSC$9293_map_.get(E))?(this.removeNode(E),!0):!1};
_.l.removeNode=function(E){E.remove();this.JSC$9293_map_.remove(E.key)};
_.l.getCount=function(){return this.JSC$9293_map_.getCount()};
_.l.isEmpty=function(){return this.JSC$9293_map_.isEmpty()};
_.l.getKeys=function(){return this.map(function(E,B){return B})};
_.l.getValues=function(){return this.map(function(E){return E})};
_.l.contains=function(E){return this.some(function(B){return B==E})};
_.l.containsKey=function(E){return this.JSC$9293_map_.containsKey(E)};
_.l.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9293_head_.prev)};
_.l.forEach=function(E,B){for(var I=this.JSC$9293_head_.next;I!=this.JSC$9293_head_;I=I.next)E.call(B,I.value,I.key,this)};
_.l.map=function(E,B){for(var I=[],T=this.JSC$9293_head_.next;T!=this.JSC$9293_head_;T=T.next)I.push(E.call(B,T.value,T.key,this));return I};
_.l.some=function(E,B){for(var I=this.JSC$9293_head_.next;I!=this.JSC$9293_head_;I=I.next)if(E.call(B,I.value,I.key,this))return!0;return!1};
_.l.every=function(E,B){for(var I=this.JSC$9293_head_.next;I!=this.JSC$9293_head_;I=I.next)if(!E.call(B,I.value,I.key,this))return!1;return!0};
_.l.insert_=function(E){E.next=this.JSC$9293_head_.next;E.prev=this.JSC$9293_head_;this.JSC$9293_head_.next=E;for(E.next.prev=E;this.getCount()>40;)this.removeNode(this.JSC$9293_head_.prev)};
var FBN=function(E,B){E.JSC$9293_head_!=B&&E.removeNode(B);return B.value},fNl=function(E,B){this.key=E;
this.value=B};
fNl.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var DiD=function(){ey.apply(this,arguments)};
_.L(DiD,ey);DiD.prototype.enqueue=function(E,B){this.insert(E,B)};var KBZ=function(){var E=Error();E.name="SecurityError";throw E;},nR4=function(){return{get opener(){return null},
get closed(){return!0},get location(){KBZ()},get document(){KBZ()},postMessage:function(){},
close:function(){},
focus:function(){}}};var N6c={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 Jbc={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 R2Z={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(Jbc).join("|");var EgU=function(){function E(v){v.substr(-1)!==";"&&(v+=";");return Y(v)}
for(var B=Object.keys(R2Z).sort(Sgi),I=Object.keys(Jbc).sort(Sgi),T=0,e=0;T<I.length;T++)B[e]===I[T]?(I[T]+=";?",e++):I[T]+=";";var c=new RegExp("&(?:"+I.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),Y=WiG();return function(v){return String(v).replace(c,E)}}();/*

 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 BXV={};var $EV=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"),Ixl=/[\\&]/,TXZ=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),e4Z=RegExp('[&<>"]',"g"),lxh=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),caV=function(E){return E.charCodeAt(0)===92?E.charAt(1):EgU(E)},i8N=function(E){return Ixl.test(E)?E.replace(TXZ,caV):E},pVZ=function(E){try{var B,I="";
if(typeof e!=="string"){var T=e;var e=";/?:@&=+$,-_.!~*'()#"}typeof T==="undefined"&&(T=!0);var c,Y=BXV[e];if(Y)var v=Y;else{Y=BXV[e]=[];for(c=0;c<128;c++){var y=String.fromCharCode(c);/^[0-9a-z]$/i.test(y)?Y.push(y):Y.push("%"+("0"+c.toString(16).toUpperCase()).slice(-2))}for(c=0;c<e.length;c++)Y[e.charCodeAt(c)]=e[c];v=Y}var Z=0;for(B=E.length;Z<B;Z++){var P=E.charCodeAt(Z);if(T&&P===37&&Z+2<B&&/^[0-9a-f]{2}$/i.test(E.slice(Z+1,Z+3)))I+=E.slice(Z,Z+3),Z+=2;else if(P<128)I+=v[P];else if(P>=55296&&
P<=57343){if(P>=55296&&P<=56319&&Z+1<B){var z=E.charCodeAt(Z+1);if(z>=56320&&z<=57343){I+=encodeURIComponent(E[Z]+E[Z+1]);Z++;continue}}I+="%EF%BF%BD"}else I+=encodeURIComponent(E[Z])}return I}catch(m){return E}},Yez=function(E){switch(E){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return E}},p2=function(E,B){return e4Z.test(E)?B?E.replace(lxh,Yez):E.replace(e4Z,Yez):E};/*

 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 Yf;if(String.fromCodePoint)Yf=function(E){try{return String.fromCodePoint(E)}catch(B){if(B instanceof RangeError)return String.fromCharCode(65533);throw B;}};
else{var axh=String.fromCharCode,vgZ=Math.floor;Yf=function(){var E=[],B=-1,I=arguments.length;if(!I)return"";for(var T="";++B<I;){var e=Number(arguments[B]);if(!isFinite(e)||e<0||e>1114111||vgZ(e)!==e)return String.fromCharCode(65533);if(e<=65535)E.push(e);else{e-=65536;var c=(e>>10)+55296;e=e%1024+56320;E.push(c,e)}if(B+1===I||E.length>16384)T+=axh.apply(null,E),E.length=0}return T}};var yah=function(E){this.root=this.current=E;this.entering=!0};
yah.prototype.next=function(){var E=this.current,B=this.entering;if(E===null)return null;a:switch(E._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 I=!0;break a;default:I=!1}B&&I?E._firstChild?(this.current=E._firstChild,this.entering=!0):this.entering=!1:E===this.root?this.current=null:E._next===null?(this.current=
E._parent,this.entering=!1):(this.current=E._next,this.entering=!0);return{entering:B,node:E}};
var Tx=function(E,B){this._type=E;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=B;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};
Tx.prototype.appendChild=function(E){aA(E);E._parent=this;this._lastChild?(this._lastChild._next=E,E._prev=this._lastChild):this._firstChild=E;this._lastChild=E};
var aA=function(E){E._prev?E._prev._next=E._next:E._parent&&(E._parent._firstChild=E._next);E._next?E._next._prev=E._prev:E._parent&&(E._parent._lastChild=E._prev);E._parent=null;E._next=null;E._prev=null},CuZ=function(E,B){aA(B);
B._next=E._next;B._next&&(B._next._prev=B);B._prev=E;E._next=B;B._parent=E._parent;B._next||(B._parent._lastChild=B)};
Tx.prototype.insertBefore=function(E){aA(E);E._prev=this._prev;E._prev&&(E._prev._next=E);E._next=this;this._prev=E;E._parent=this._parent;E._prev||(E._parent._firstChild=E)};
_.Up.Object.defineProperties(Tx.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(E){this._literal=E}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(E){this._destination=E}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(E){this._title=E}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(E){this._info=E}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(E){this._level=E}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(E){this._listData.type=E}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(E){this._listData.tight=E}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(E){this._listData.start=E}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(E){this._onEnter=E}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(E){this._onExit=E}}});var X3Q=/[ \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,
rbG={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 wV6=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]/),
Z8X=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Pu$=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),z4Z=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),mEZ=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),QQz=/`+/,dEl=/^`+/,h4h=/\.\.\./g,sQZ=/--+/g,uCR=/^<([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])?)*)>/,
L0z=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,xEZ=/^ *(?:\n *)?/,GAR=/^[ \t\n\x0b\x0c\x0d]/,O8Z=/[ \t\n\x0b\x0c\x0d]+/g,ngu=/^\s/,MOt=/ *$/,H8r=/^ */,NXu=/^ *(?:\n|$)/,ggX=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),SeX=/^[^\n`\[\]\\!<&*_'"]+/m,vO=function(E){var B=new Tx("text");B._literal=E;return B},yi=function(E){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=E||{}};
yi.prototype.match=function(E){E=E.exec(this.subject.slice(this.pos));if(E===null)return null;this.pos+=E.index+E[0].length;return E[0]};
yi.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var C2=function(E){E.match(xEZ);return!0},Jaz=function(E,B,I){var T=0;
var e=E.pos;if(B===39||B===34)T++,E.pos++;else for(;E.peek()===B;)T++,E.pos++;if(T===0)T=null;else{var c=e===0?"\n":E.subject.charAt(e-1);var Y=E.peek();Y=Y===-1?"\n":Yf(Y);var v=ngu.test(Y);Y=wV6.test(Y);var y=ngu.test(c);var Z=wV6.test(c);c=!v&&!(Y&&!y&&!Z);v=!y&&!(Z&&!v&&!Y);B===95?(y=c&&(!v||Z),Y=v&&(!c||Y)):(y=B===39||B===34?c&&!v:c,Y=v);E.pos=e;T={numdelims:T,can_open:y,can_close:Y}}if(!T)return!1;e=T.numdelims;Y=E.pos;E.pos+=e;Y=B===39?"\u2019":B===34?"\u201c":E.subject.slice(Y,E.pos);Y=vO(Y);
I.appendChild(Y);E.delimiters={cc:B,numdelims:e,origdelims:e,node:Y,previous:E.delimiters,next:null,can_open:T.can_open,can_close:T.can_close};E.delimiters.previous!==null&&(E.delimiters.previous.next=E.delimiters);return!0},W0X=function(E,B){B.previous!==null&&(B.previous.next=B.next);
B.next===null?E.delimiters=B.previous:B.next.previous=B.previous},XVX=function(E,B){var I,T,e=[],c=!1;
e[95]=B;e[42]=B;e[39]=B;e[34]=B;for(I=E.delimiters;I!==null&&I.previous!==B;)I=I.previous;for(;I!==null;){var Y=I.cc;if(I.can_close){var v=I.previous;for(T=!1;v!==null&&v!==B&&v!==e[Y];){c=(I.can_open||v.can_close)&&(v.origdelims+I.origdelims)%3===0;if(v.cc===I.cc&&v.can_open&&!c){T=!0;break}v=v.previous}var y=I;if(Y===42||Y===95)if(T){var Z=I.numdelims>=2&&v.numdelims>=2?2:1;var P=v.node;var z=I.node;v.numdelims-=Z;I.numdelims-=Z;P._literal=P._literal.slice(0,P._literal.length-Z);z._literal=z._literal.slice(0,
z._literal.length-Z);var m=new Tx(Z===1?"emph":"strong");for(Z=P._next;Z&&Z!==z;){var u=Z._next;aA(Z);m.appendChild(Z);Z=u}CuZ(P,m);Z=v;u=I;Z.next!==u&&(Z.next=u,u.previous=Z);v.numdelims===0&&(aA(P),W0X(E,v));I.numdelims===0&&(aA(z),v=I.next,W0X(E,I),I=v)}else I=I.next;else Y===39?(I.node._literal="\u2019",T&&(v.node._literal="\u2018"),I=I.next):Y===34&&(I.node._literal="\u201d",T&&(v.node.literal="\u201c"),I=I.next);T||c||(e[Y]=y.previous,y.can_open||W0X(E,y))}else I=I.next}for(;E.delimiters!==
null&&E.delimiters!==B;)W0X(E,E.delimiters)},raN=function(E){E=E.match(Z8X);
return E===null?null:i8N(E.substr(1,E.length-2))},b8U=function(E){var B=E.match(Pu$);
if(B===null){B=E.pos;for(var I=0,T;(T=E.peek())!==-1;)if(T===92)E.pos+=1,E.peek()!==-1&&(E.pos+=1);else if(T===40)E.pos+=1,I+=1;else if(T===41)if(I<1)break;else E.pos+=1,--I;else if(GAR.exec(Yf(T))!==null)break;else E.pos+=1;B=E.subject.substr(B,E.pos-B);return pVZ(i8N(B))}return pVZ(i8N(B.substr(1,B.length-2)))},ogl=function(E){E=E.match(ggX);
return E===null||E.length>1001?0:E.length},Aal=function(E,B,I,T){E.brackets!==null&&(E.brackets.bracketAfter=!0);
E.brackets={node:B,previous:E.brackets,previousDelimiter:E.delimiters,index:I,image:T,active:!0}},jQU=function(E,B){var I;
return(I=E.match(SeX))?(E.options.smart?B.appendChild(vO(I.replace(h4h,"\u2026").replace(sQZ,function(T){var e=0,c=0;T.length%3===0?c=T.length/3:T.length%2===0?e=T.length/2:T.length%3===2?(e=1,c=(T.length-2)/3):(e=2,c=(T.length-4)/3);T="";var Y;for(Y=0;Y<c;Y++)T+="\u2014";for(Y=0;Y<e;Y++)T+="\u2013";return T}))):B.appendChild(vO(I)),!0):!1},UEZ=function(E,B,I){E.subject=B;
E.pos=0;B=E.pos;var T=ogl(E);if(T===0)return 0;var e=E.subject.substr(0,T);if(E.peek()===58)E.pos++;else return E.pos=B,0;C2(E);T=b8U(E);if(T===null||T.length===0)return E.pos=B,0;var c=E.pos;C2(E);var Y=raN(E);Y===null&&(Y="",E.pos=c);var v=!0;E.match(NXu)===null&&(Y===""?v=!1:(Y="",E.pos=c,v=E.match(NXu)!==null));if(!v)return E.pos=B,0;e=bJ6(e);if(e==="")return E.pos=B,0;I[e]||(I[e]={destination:T,title:Y});return E.pos-B},kAr=function(E,B){var I,T=E.peek();
if(T===-1)return!1;switch(T){case 10:E.pos+=1;if((I=B._lastChild)&&I.type==="text"&&I._literal[I._literal.length-1]===" "){var e=I._literal[I._literal.length-2]===" ";I._literal=I._literal.replace(MOt,"");B.appendChild(new Tx(e?"linebreak":"softbreak"))}else B.appendChild(new Tx("softbreak"));E.match(H8r);I=!0;break;case 92:I=E.subject;E.pos+=1;E.peek()===10?(E.pos+=1,I=new Tx("linebreak"),B.appendChild(I)):z4Z.test(I.charAt(E.pos))?(B.appendChild(vO(I.charAt(E.pos))),E.pos+=1):B.appendChild(vO("\\"));
I=!0;break;case 96:a:if(I=E.match(dEl),I===null)I=!1;else{e=E.pos;for(var c;(c=E.match(QQz))!==null;)if(c===I){c=new Tx("code");c._literal=E.subject.slice(e,E.pos-I.length).trim().replace(O8Z," ");B.appendChild(c);I=!0;break a}E.pos=e;B.appendChild(vO(I));I=!0}break;case 42:case 95:I=Jaz(E,T,B);break;case 39:case 34:I=E.options.smart&&Jaz(E,T,B);break;case 91:I=E.pos;E.pos+=1;e=vO("[");B.appendChild(e);Aal(E,e,I,!1);I=!0;break;case 33:I=E.pos;E.pos+=1;E.peek()===91?(E.pos+=1,e=vO("!["),B.appendChild(e),
Aal(E,e,I+1,!0)):B.appendChild(vO("!"));I=!0;break;case 93:var Y,v=!1,y;E.pos+=1;var Z=E.pos;e=E.brackets;if(e===null)B.appendChild(vO("]"));else if(e.active){I=e.image;var P=E.pos;E.peek()===40&&(E.pos++,C2(E)&&(c=b8U(E))!==null&&C2(E)&&(GAR.test(E.subject.charAt(E.pos-1))&&(Y=raN(E)),1)&&C2(E)&&E.peek()===41?(E.pos+=1,v=!0):E.pos=P);if(!v){var z=E.pos,m=ogl(E);m>2?y=E.subject.slice(z,z+m):e.bracketAfter||(y=E.subject.slice(e.index,Z));m===0&&(E.pos=P);y&&(y=E.refmap[bJ6(y)])&&(c=y.destination,Y=
y.title,v=!0)}if(v){Z=new Tx(I?"image":"link");Z._destination=c;Z._title=Y||"";for(c=e.node._next;c;)Y=c._next,aA(c),Z.appendChild(c),c=Y;B.appendChild(Z);XVX(E,e.previousDelimiter);E.brackets=E.brackets.previous;aA(e.node);if(!I)for(e=E.brackets;e!==null;)e.image||(e.active=!1),e=e.previous}else E.brackets=E.brackets.previous,E.pos=Z,B.appendChild(vO("]"))}else B.appendChild(vO("]")),E.brackets=E.brackets.previous;I=!0;break;case 60:(I=E.match(uCR))?(I=I.slice(1,I.length-1),e=new Tx("link"),e._destination=
pVZ("mailto:"+I),e._title="",e.appendChild(vO(I)),B.appendChild(e),I=!0):(I=E.match(L0z))?(I=I.slice(1,I.length-1),e=new Tx("link"),e._destination=pVZ(I),e._title="",e.appendChild(vO(I)),B.appendChild(e),I=!0):I=!1;I||(I=E.match($EV),I===null?I=!1:(e=new Tx("html_inline"),e._literal=I,B.appendChild(e),I=!0));break;case 38:(I=E.match(mEZ))?(B.appendChild(vO(EgU(I))),I=!0):I=!1;break;default:I=jQU(E,B)}I||(E.pos+=1,B.appendChild(vO(Yf(T))));return!0};
yi.prototype.parseInlines=function(E){this.subject=E._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;kAr(this,E););E._string_content=null;XVX(this,null)};
yi.prototype.parse=yi.prototype.parseInlines;var tO6=[/./,/^<(?: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")],fxu=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],VOr=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,qet=/^[#`~*+_=<>0-9-\|]|\|/,F0Z=/[^ \t\f\v\r\n]/,DED=/^[*+-]/,K0r=/^(\d{1,9})([.)])/,R4t=/^#{1,6}(?:[ \t]+|$)/,E3V=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,BAN=/^(?:`{3,}|~{3,})(?= *$)/,$Nh=/^(?:=+|-+)[ \t]*$/,IQX=/\r\n|\n|\r/,AbQ=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,jPB=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,TAX={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(E){return E!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(E,B){for(E=B._firstChild;E;){if(omt(E)&&E._next){B._listData.tight=!1;break}for(var I=E._firstChild;I;){if(omt(I)&&(E._next||I._next)){B._listData.tight=!1;break}I=I._next}E=E._next}},
canContain:function(E){return E==="item"},
acceptsLines:!1},block_quote:{continue:function(E){var B=E.currentLine;if(E.indented||$h(B,E.nextNonspace)!==62)return 1;w4(E);ZM(E,1,!1);BU($h(B,E.offset))&&ZM(E,1,!0);return 0},
finalize:function(){},
canContain:function(E){return E!=="item"},
acceptsLines:!1},item:{continue:function(E,B){if(E.blank){if(B._firstChild==null)return 1;w4(E)}else if(E.indent>=B._listData.markerOffset+B._listData.padding)ZM(E,B._listData.markerOffset+B._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(E){return E!=="item"&&!UsQ(E)},
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(E,B){var I=E.currentLine,T=E.indent;if(B._isFenced){if((T=T<=3&&I.charAt(E.nextNonspace)===B._fenceChar&&I.slice(E.nextNonspace).match(BAN))&&T[0].length>=B._fenceLength)return E.finalize(B,E.lineNumber),2;for(B=B._fenceOffset;B>0&&BU($h(I,E.offset));)ZM(E,1,!0),B--}else if(T>=4)ZM(E,4,!0);else if(E.blank)w4(E);else return 1;return 0},
finalize:function(E,B){if(B._isFenced){var I=B._string_content,T=I.indexOf("\n");E=I.slice(0,T);I=I.slice(T+1);B.info=i8N(E.trim());B._literal=I}else B._literal=B._string_content.replace(/(\n *)+$/,"\n");B._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(E,B){return!E.blank||B._htmlBlockType!==6&&B._htmlBlockType!==7?0:1},
finalize:function(E,B){B._literal=B._string_content.replace(/(\n *)+$/,"");B._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(E){return E.blank?1:0},
finalize:function(E,B){for(var I,T=!1;$h(B._string_content,0)===91&&(I=UEZ(E.inlineParser,B._string_content,E.refmap));)B._string_content=B._string_content.slice(I),T=!0;T&&!F0Z.test(B._string_content)&&aA(B)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(E){return IO(E.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(E){return E=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(E,B){if(!B._rowIsDelimiter){E=B._isHeader?"th":"td";for(var I=B._parent._tableColumns,T=B._string_content,e=0,c="",Y,v=B._sourcepos[0][0];e<T.length;){switch(T[e]){case "|":Y&&(Y._string_content=c.trim(),c="",Y=null,I--,I<=0&&(e=T.length));break;default:if(!Y){Y=new Tx(E,[[v,e],[v,e]]);var y=B._parent._columnAlignment,Z=B._parent._tableColumns-I;y&&Z<=y.length&&Z>=0&&(Y._alignment=y[Z]);B.appendChild(Y)}c+=T[e];Y._sourcepos[1][1]=e}e++}Y&&(Y._string_content=c.trim());B._string_content=
""}},
canContain:function(E){return E!=="row"},
acceptsLines:!1}},ebr=[function(E){if(E.indented||$h(E.currentLine,E.nextNonspace)!==62)return 0;w4(E);ZM(E,1,!1);BU($h(E.currentLine,E.offset))&&ZM(E,1,!0);PO(E);E.addChild("block_quote",E.nextNonspace);return 1},
function(E){var B;if(!E.indented&&(B=E.currentLine.slice(E.nextNonspace).match(R4t))){w4(E);ZM(E,B[0].length,!1);PO(E);var I=E.addChild("heading",E.nextNonspace);I.level=B[0].trim().length;I._string_content=E.currentLine.slice(E.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");ZM(E,E.currentLine.length-E.offset);return 2}return 0},
function(E){var B;if(!E.indented&&(B=E.currentLine.slice(E.nextNonspace).match(E3V))){var I=B[0].length;PO(E);var T=E.addChild("code_block",E.nextNonspace);T._isFenced=!0;T._fenceLength=I;T._fenceChar=B[0][0];T._fenceOffset=E.indent;w4(E);ZM(E,I,!1);return 2}return 0},
function(E,B){if(!E.indented&&$h(E.currentLine,E.nextNonspace)===60){var I=E.currentLine.slice(E.nextNonspace),T;for(T=1;T<=7;T++)if(tO6[T].test(I)&&(T<7||B.type!=="paragraph"))return PO(E),E.addChild("html_block",E.offset)._htmlBlockType=T,2}return 0},
function(E,B){var I;if(!E.indented&&B.type==="paragraph"&&(I=E.currentLine.slice(E.nextNonspace).match($Nh))){PO(E);var T=new Tx("heading",B.sourcepos);T.level=I[0][0]==="="?1:2;T._string_content=B._string_content;CuZ(B,T);aA(B);E.tip=T;ZM(E,E.currentLine.length-E.offset,!1);return 2}return 0},
function(E){return!E.indented&&VOr.test(E.currentLine.slice(E.nextNonspace))?(PO(E),E.addChild("thematic_break",E.nextNonspace),ZM(E,E.currentLine.length-E.offset,!1),2):0},
function(E,B){var I,T;if(!(T=E.indented&&B.type!=="list")){a:{var e=B,c=E.currentLine.slice(E.nextNonspace);T={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:E.indent};if(I=c.match(DED))T.type="bullet",T.bulletChar=I[0][0];else{if(!(I=c.match(K0r))||e.type==="paragraph"&&I[1]!=="1"){I=null;break a}T.type="ordered";T.start=parseInt(I[1],10);T.delimiter=I[2]}var Y=$h(E.currentLine,E.nextNonspace+I[0].length);if(Y!==-1&&Y!==9&&Y!==32||e.type==="paragraph"&&!E.currentLine.slice(E.nextNonspace+
I[0].length).match(F0Z))I=null;else{w4(E);ZM(E,I[0].length,!0);e=E.column;c=E.offset;do ZM(E,1,!0),Y=$h(E.currentLine,E.offset);while(E.column-e<5&&BU(Y));Y=$h(E.currentLine,E.offset)===-1;var v=E.column-e;v>=5||v<1||Y?(T.padding=I[0].length+1,E.column=e,E.offset=c,BU($h(E.currentLine,E.offset))&&ZM(E,1,!0)):T.padding=I[0].length+v;I=T}}T=!I}if(T)return 0;PO(E);(T=E.tip.type!=="list")||(B=B._listData,T=!(B.type===I.type&&B.delimiter===I.delimiter&&B.bulletChar===I.bulletChar));T&&(B=E.addChild("list",
E.nextNonspace),B._listData=I);B=E.addChild("item",E.nextNonspace);B._listData=I;return 1},
function(E){var B;return((B=E.options.shouldParseIndentAsCodeBlock)!=null?B:1)&&E.indented&&E.tip.type!=="paragraph"&&!E.blank?(ZM(E,4,!0),PO(E),E.addChild("code_block",E.offset),2):0},
function(E,B){var I=IO(E.currentLine),T=IO(E.lookahead);if(I!==0&&T<0&&Math.abs(I)==Math.abs(T)&&!UsQ(B.type)){PO(E);B=E.addChild("table",E.nextNonspace);B._tableRows=1;B._tableColumns=Math.abs(I);I=E.lookahead;if(jPB.test(I)){T=[];for(var e=0,c=!1,Y=0,v=void 0;e<I.length;){var y=Y>=3;switch(I[e]){case "-":Y++;break;case "|":c&&(T.push(v),v=void 0,Y=0);c=!0;break;case ":":v||y||(v="left"),!v&&y&&(v="right"),v==="left"&&y&&(v="center")}e++}I=T}else I=void 0;B._columnAlignment=I;B=E.addChild("row",
E.nextNonspace);B._isHeader=!0;ZM(E,E.currentLine.length-E.offset,!1);B._string_content=E.currentLine;return 1}return 0},
function(E,B){if(B.type=="table"&&IO(E.currentLine)!==0){PO(E);var I=B;B=E.addChild("row",E.nextNonspace);IO(E.currentLine)<0?B._rowIsDelimiter=!0:I._tableRows+=1;ZM(E,E.currentLine.length-E.offset,!1);B._string_content=E.currentLine;return 2}return 0}],gK4=function(){var E={shouldParseIndentAsCodeBlock:!1};
E=E===void 0?{}:E;this.lastMatchedContainer=this.doc=kXG();this.refmap={};this.lastLineLength=0;this.inlineParser=new yi(E);this.options=E;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=TAX;this.blockStarts=ebr},lQu=function(E){E.partiallyConsumedTab&&(E.offset+=1,E.tip._string_content+=" ".repeat(4-E.column%
4));
E.tip._string_content+=E.currentLine.slice(E.offset)+"\n"};
gK4.prototype.addChild=function(E,B){for(;!this.blocks[this.tip.type].canContain(E);)this.finalize(this.tip,this.lineNumber-1);E=new Tx(E,[[this.lineNumber,B+1],[0,0]]);E._string_content="";this.tip.appendChild(E);return this.tip=E};
var PO=function(E){if(!E.allClosed){for(;E.oldtip!==E.lastMatchedContainer;){var B=E.oldtip._parent;E.finalize(E.oldtip,E.lineNumber-1);E.oldtip=B}E.allClosed=!0}},ZM=function(E,B,I){for(var T=E.currentLine,e,c;B>0&&(c=T[E.offset]);)c==="\t"?(e=4-E.column%4,I?(E.partiallyConsumedTab=e>B,e=e>B?B:e,E.column+=e,E.offset+=E.partiallyConsumedTab?0:1,B-=e):(E.partiallyConsumedTab=!1,E.column+=e,E.offset+=1,--B)):(E.partiallyConsumedTab=!1,E.offset+=1,E.column+=1,--B)},w4=function(E){E.offset=E.nextNonspace;
E.column=E.nextNonspaceColumn;E.partiallyConsumedTab=!1},ckh=function(E){for(var B=E.currentLine,I=E.offset,T=E.column,e;(e=B.charAt(I))!=="";)if(e===" ")I++,T++;
else if(e==="\t")I++,T+=4-T%4;else break;E.blank=e==="\n"||e==="\r"||e==="";E.nextNonspace=I;E.nextNonspaceColumn=T;E.indent=E.nextNonspaceColumn-E.column;E.indented=E.indent>=4};
gK4.prototype.finalize=function(E,B){var I=E._parent;E._open=!1;E.sourcepos[1]=[B,this.lastLineLength];this.blocks[E.type].finalize(this,E);this.tip=I};
gK4.prototype.parse=function(E){this.tip=this.doc=kXG();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!E)return this.doc;this.options.time&&console.time("preparing input");var B=E.split(IQX),I=B.length;E.charCodeAt(E.length-1)===10&&--I;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(E=0;E<I;E++)a:{var T=void 0,e=B[E],c=B[E+1],Y=!0,v=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;e.indexOf("\x00")!==-1&&(e=e.replace(/\0/g,"\ufffd"));this.currentLine=e;for(this.lookahead=c;(T=v._lastChild)&&T._open;){v=T;ckh(this);switch(this.blocks[v.type].continue(this,v)){case 0:break;case 1:Y=!1;break;case 2:this.lastLineLength=e.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!Y){v=v._parent;break}}this.allClosed=v===this.oldtip;this.lastMatchedContainer=
v;T=v.type!=="paragraph"&&TAX[v.type].acceptsLines;c=this.blockStarts;for(Y=c.length;!T;){ckh(this);if(!this.indented&&!qet.test(e.slice(this.nextNonspace))){w4(this);break}for(var y=0;y<Y;){var Z=c[y](this,v);if(Z===1){v=this.tip;break}else if(Z===2){v=this.tip;T=!0;break}else y++}if(y===Y){w4(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){PO(this);this.blank&&v.lastChild&&(v.lastChild._lastLineBlank=!0);T=v.type;c=this.blank&&!(T==="block_quote"||T==="code_block"&&v._isFenced||
T==="item"&&!v._firstChild&&v.sourcepos[0][0]===this.lineNumber);for(Y=v;Y;)Y._lastLineBlank=c,Y=Y._parent;this.blocks[T].acceptsLines?(lQu(this),T==="html_block"&&v._htmlBlockType>=1&&v._htmlBlockType<=5&&fxu[v._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(v,this.lineNumber)):this.offset<e.length&&!this.blank&&(this.addChild("paragraph",this.offset),w4(this),lQu(this))}else lQu(this);this.lastLineLength=e.length}for(;this.tip;)this.finalize(this.tip,I);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");e=new yah(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;I=e.next();)B=I.node,E=B.type,I.entering||E!=="paragraph"&&E!=="heading"&&E!=="th"&&E!="td"||this.inlineParser.parse(B);this.options.time&&console.timeEnd("inline parsing");return this.doc};tDt.prototype.render=function(E){E=new yah(E);var B;this.buffer="";for(this.lastOut="\n";B=E.next();){var I=B.node.type;if(this[I])this[I](B.node,B.entering)}return this.buffer};
tDt.prototype.out=function(E){zq(this,E)};
var zq=function(E,B){E.buffer+=B;E.lastOut=B};
tDt.prototype.cr=function(){this.lastOut!=="\n"&&zq(this,"\n")};var ipr=/^javascript:|vbscript:|file:|data:/i,p$N=/^data:image\/(?:png|gif|jpeg|webp)/i,Y1N=function(E){return ipr.test(E)&&!p$N.test(E)};
iT.prototype=Object.create(tDt.prototype);_.l=iT.prototype;_.l.text=function(E){this.out(E.literal)};
_.l.html_inline=function(E){this.options.safe?zq(this,"\x3c!-- raw HTML omitted --\x3e"):zq(this,E.literal)};
_.l.html_block=function(E){this.cr();this.options.safe?zq(this,"\x3c!-- raw HTML omitted --\x3e"):zq(this,E.literal);this.cr()};
_.l.softbreak=function(){zq(this,this.options.softbreak)};
_.l.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.l.link=function(E,B){var I=this.attrs(E);B?(this.options.safe&&Y1N(E.destination)||I.push(["href",p2(E.destination,!0)]),E.title&&I.push(["title",p2(E.title,!0)]),this.tag("a",I)):this.tag("/a")};
_.l.image=function(E,B){B?(this.disableTags===0&&(this.options.safe&&Y1N(E.destination)?zq(this,'<img src="" alt="'):zq(this,'<img src="'+p2(E.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(E.title&&zq(this,'" title="'+p2(E.title,!0)),zq(this,'" />')))};
_.l.emph=function(E,B){this.tag(B?"em":"/em")};
_.l.strong=function(E,B){this.tag(B?"strong":"/strong")};
_.l.paragraph=function(E,B){var I=E.parent.parent;E=this.attrs(E);I!==null&&I.type==="list"&&I.listTight||(B?(this.cr(),this.tag("p",E)):(this.tag("/p"),this.cr()))};
_.l.heading=function(E,B){var I="h"+E.level;E=this.attrs(E);B?(this.cr(),this.tag(I,E)):(this.tag("/"+I),this.cr())};
_.l.code=function(E){this.tag("code");this.out(E.literal);this.tag("/code")};
_.l.code_block=function(E){var B=E.info?E.info.split(/\s+/):[],I=this.attrs(E);B.length>0&&B[0].length>0&&I.push(["class","language-"+p2(B[0],!0)]);this.cr();this.tag("pre");this.tag("code",I);this.out(E.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.l.thematic_break=function(E){E=this.attrs(E);this.cr();this.tag("hr",E,!0);this.cr()};
_.l.block_quote=function(E,B){E=this.attrs(E);B?(this.cr(),this.tag("blockquote",E)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.l.list=function(E,B){var I=E.listType==="bullet"?"ul":"ol",T=this.attrs(E);B?(E=E.listStart,E!==null&&E!==1&&T.push(["start",E.toString()]),this.cr(),this.tag(I,T)):(this.cr(),this.tag("/"+I));this.cr()};
_.l.item=function(E,B){E=this.attrs(E);B?this.tag("li",E):(this.tag("/li"),this.cr())};
_.l.custom_inline=function(E,B){B&&E.onEnter?zq(this,E.onEnter):!B&&E.onExit&&zq(this,E.onExit)};
_.l.custom_block=function(E,B){this.cr();B&&E.onEnter?zq(this,E.onEnter):!B&&E.onExit&&zq(this,E.onExit);this.cr()};
_.l.table=function(E,B){E=this.attrs(E);B?(this.cr(),this.tag("table",E)):(this.tag("/table"),this.cr())};
_.l.row=function(E,B){E._rowIsDelimiter||(E=this.attrs(E),B?this.tag("tr",E):this.tag("/tr"))};
_.l.td=function(E,B){var I=this.attrs(E);E._alignment&&I.push(["align",E._alignment]);B?this.tag("td",I):this.tag("/td")};
_.l.th=function(E,B){var I=this.attrs(E);E._alignment&&I.push(["align",E._alignment]);B?this.tag("th",I):this.tag("/th")};
_.l.out=function(E){zq(this,p2(E,!1))};
_.l.tag=function(E,B,I){if(!(this.disableTags>0)){this.buffer+="<"+E;if(B&&B.length>0){E=0;for(var T;(T=B[E])!==void 0;)this.buffer+=" "+T[0]+'="'+T[1]+'"',E++}I&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.l.attrs=function(E){var B=[];this.options.sourcepos&&(E=E.sourcepos)&&B.push(["data-sourcepos",String(E[0][0])+":"+String(E[0][1])+"-"+String(E[1][0])+":"+String(E[1][1])]);return B};
iT.prototype.text=iT.prototype.text;iT.prototype.html_inline=iT.prototype.html_inline;iT.prototype.html_block=iT.prototype.html_block;iT.prototype.softbreak=iT.prototype.softbreak;iT.prototype.linebreak=iT.prototype.linebreak;iT.prototype.link=iT.prototype.link;iT.prototype.image=iT.prototype.image;iT.prototype.emph=iT.prototype.emph;iT.prototype.strong=iT.prototype.strong;iT.prototype.paragraph=iT.prototype.paragraph;iT.prototype.heading=iT.prototype.heading;iT.prototype.code=iT.prototype.code;
iT.prototype.code_block=iT.prototype.code_block;iT.prototype.thematic_break=iT.prototype.thematic_break;iT.prototype.block_quote=iT.prototype.block_quote;iT.prototype.list=iT.prototype.list;iT.prototype.item=iT.prototype.item;iT.prototype.custom_inline=iT.prototype.custom_inline;iT.prototype.custom_block=iT.prototype.custom_block;iT.prototype.table=iT.prototype.table;iT.prototype.row=iT.prototype.row;iT.prototype.td=iT.prototype.td;iT.prototype.th=iT.prototype.th;iT.prototype.out=iT.prototype.out;
iT.prototype.tag=iT.prototype.tag;iT.prototype.attrs=iT.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 aQR,v3z,xJf;(function(){function E(H,O){return H<O?-1:H>O?1:H>=O?0:NaN}
function B(H){return function(O,J){return E(H(O),J)}}
function I(){for(var H=0,O=arguments.length,J={},V;H<O;++H){if(!(V=arguments[H]+"")||V in J)throw Error("qe`"+V);J[V]=[]}return new T(J)}
function T(H){this._=H}
function e(H,O){return H.trim().split(/^|\s+/).map(function(J){var V="",Tf=J.indexOf(".");Tf>=0&&(V=J.slice(Tf+1),J=J.slice(0,Tf));if(J&&!O.hasOwnProperty(J))throw Error("re`"+J);return{type:J,name:V}})}
function c(H,O,J){for(var V=0,Tf=H.length;V<Tf;++V)if(H[V].name===O){H[V]=EL8;H=H.slice(0,V).concat(H.slice(V+1));break}J!=null&&H.push({name:O,value:J});return H}
function Y(H){var O=H,J=O.indexOf(":");J>=0&&(O=H.slice(0,J))!=="xmlns"&&(H=H.slice(J+1));return ff.hasOwnProperty(O)?{space:ff[O],local:H}:H}
function v(H){return function(){var O=this.ownerDocument,J=this.namespaceURI;return J==="http://www.w3.org/1999/xhtml"&&O.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?O.createElement(H):O.createElementNS(J,H)}}
function y(H){return function(){return this.ownerDocument.createElementNS(H.space,H.local)}}
function Z(H){H=Y(H);return(H.local?y:v)(H)}
function P(){}
function z(H){return H==null?P:function(){return this.querySelector(H)}}
function m(H){return Array(H.length)}
function u(H,O){this.ownerDocument=H.ownerDocument;this.namespaceURI=H.namespaceURI;this._next=null;this._parent=H;this.__data__=O}
function x(H){return function(){return H}}
function M(H,O,J,V,Tf,Yi){for(var PG=0,L4,RB=O.length,qG=Yi.length;PG<qG;++PG)(L4=O[PG])?(L4.__data__=Yi[PG],V[PG]=L4):J[PG]=new u(H,Yi[PG]);for(;PG<RB;++PG)if(L4=O[PG])Tf[PG]=L4}
function N(H,O,J,V,Tf,Yi,PG){var L4,RB,qG={},EZ=O.length,yh=Yi.length,Az=Array(EZ),CT;for(L4=0;L4<EZ;++L4)if(RB=O[L4])Az[L4]=CT="$"+PG.call(RB,RB.__data__,L4,O),CT in qG?Tf[L4]=RB:qG[CT]=RB;for(L4=0;L4<yh;++L4)CT="$"+PG.call(H,Yi[L4],L4,Yi),(RB=qG[CT])?(V[L4]=RB,RB.__data__=Yi[L4],qG[CT]=null):J[L4]=new u(H,Yi[L4]);for(L4=0;L4<EZ;++L4)(RB=O[L4])&&qG[Az[L4]]===RB&&(Tf[L4]=RB)}
function W(H,O){return H<O?-1:H>O?1:H>=O?0:NaN}
function U(H){return function(){this.removeAttribute(H)}}
function q(H){return function(){this.removeAttributeNS(H.space,H.local)}}
function f(H,O){return function(){this.setAttribute(H,O)}}
function ed(H,O){return function(){this.setAttributeNS(H.space,H.local,O)}}
function K(H,O){return function(){var J=O.apply(this,arguments);J==null?this.removeAttribute(H):this.setAttribute(H,J)}}
function p4(H,O){return function(){var J=O.apply(this,arguments);J==null?this.removeAttributeNS(H.space,H.local):this.setAttributeNS(H.space,H.local,J)}}
function sc(H){return function(){this.style.removeProperty(H)}}
function Gf(H,O,J){return function(){this.style.setProperty(H,O,J)}}
function xi(H,O,J){return function(){var V=O.apply(this,arguments);V==null?this.style.removeProperty(H):this.style.setProperty(H,V,J)}}
function ki(H,O){return H.style.getPropertyValue(O)||(H.ownerDocument&&H.ownerDocument.defaultView||H.document&&H||H.defaultView).getComputedStyle(H,null).getPropertyValue(O)}
function WG(H){return function(){delete this[H]}}
function rJ(H,O){return function(){this[H]=O}}
function Uc(H,O){return function(){var J=O.apply(this,arguments);J==null?delete this[H]:this[H]=J}}
function CV(){this.textContent=""}
function Bm(H){return function(){this.textContent=H}}
function LV(H){return function(){var O=H.apply(this,arguments);this.textContent=O==null?"":O}}
function I$(){this.innerHTML=""}
function bc(H){return function(){this.innerHTML=H}}
function hz(H){return function(){var O=H.apply(this,arguments);this.innerHTML=O==null?"":O}}
function TU(){return null}
function Wm(){var H=this.parentNode;H&&H.removeChild(this)}
function z2(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function cG(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function $I(H,O,J){H=tz(H,O,J);return function(V){var Tf=V.relatedTarget;Tf&&(Tf===this||Tf.compareDocumentPosition(this)&8)||H.call(this,V)}}
function tz(H,O,J){return function(){H.call(this,this.__data__,O,J)}}
function pX(H){return H.trim().split(/^|\s+/).map(function(O){var J="",V=O.indexOf(".");V>=0&&(J=O.slice(V+1),O=O.slice(0,V));return{type:O,name:J}})}
function OZ(H){return function(){var O=this.__on;if(O){for(var J=0,V=-1,Tf=O.length,Yi;J<Tf;++J)(Yi=O[J],H.type&&Yi.type!==H.type||Yi.name!==H.name)?O[++V]=Yi:this.removeEventListener(Yi.type,Yi.listener,Yi.capture);++V?O.length=V:delete this.__on}}}
function kl(H,O,J){var V=gf6.hasOwnProperty(H.type)?$I:tz;return function(Tf,Yi,PG){Tf=this.__on;var L4;Yi=V(O,Yi,PG);if(Tf){PG=0;for(var RB=Tf.length;PG<RB;++PG)if((L4=Tf[PG]).type===H.type&&L4.name===H.name){this.removeEventListener(L4.type,L4.listener,L4.capture);this.addEventListener(L4.type,L4.listener=Yi,L4.capture=J);L4.value=O;return}}this.addEventListener(H.type,Yi,J);L4={type:H.type,name:H.name,value:O,listener:Yi,capture:J};Tf?Tf.push(L4):this.__on=[L4]}}
function Qd(H,O,J){var V=H.ownerDocument&&H.ownerDocument.defaultView||H.document&&H||H.defaultView,Tf=V.CustomEvent;typeof Tf==="function"?Tf=new Tf(O,J):(Tf=V.document.createEvent("Event"),J?(Tf.initEvent(O,J.bubbles,J.cancelable),Tf.detail=J.detail):Tf.initEvent(O,!1,!1));H.dispatchEvent(Tf)}
function Yl(H,O){return function(){return Qd(this,H,O)}}
function jd(H,O){return function(){return Qd(this,H,O.apply(this,arguments))}}
function wr(H,O){this._groups=H;this._parents=O}
function et(){return new wr([[document.documentElement]],Bwg)}
function Qh(){this._="@"+(++$y2).toString(36)}
function ds(H,O,J){H.prototype=O.prototype=J;J.constructor=H}
function mq(H,O){H=Object.create(H.prototype);for(var J in O)H[J]=O[J];return H}
function ec(){}
function ZK(H){var O;H=(H+"").trim().toLowerCase();return(O=IU9.exec(H))?(O=parseInt(O[1],16),new iW(O>>8&15|O>>4&240,O>>4&15|O&240,(O&15)<<4|O&15,1)):(O=TwI.exec(H))?WL(parseInt(O[1],16)):(O=em2.exec(H))?new iW(O[1],O[2],O[3],1):(O=lUs.exec(H))?new iW(O[1]*255/100,O[2]*255/100,O[3]*255/100,1):(O=cwm.exec(H))?lT(O[1],O[2],O[3],O[4]):(O=i7g.exec(H))?lT(O[1]*255/100,O[2]*255/100,O[3]*255/100,O[4]):(O=pT8.exec(H))?cn(O[1],O[2]/100,O[3]/100,1):(O=YsO.exec(H))?cn(O[1],O[2]/100,O[3]/100,O[4]):SI6.hasOwnProperty(H)?
WL(SI6[H]):H==="transparent"?new iW(NaN,NaN,NaN,0):null}
function WL(H){return new iW(H>>16&255,H>>8&255,H&255,1)}
function lT(H,O,J,V){V<=0&&(H=O=J=NaN);return new iW(H,O,J,V)}
function nK(H){H instanceof ec||(H=ZK(H));if(!H)return new iW;H=H.rgb();return new iW(H.r,H.g,H.b,H.opacity)}
function ND(H,O,J,V){return arguments.length===1?nK(H):new iW(H,O,J,V==null?1:V)}
function iW(H,O,J,V){this.r=+H;this.g=+O;this.b=+J;this.opacity=+V}
function Rh(H){H=Math.max(0,Math.min(255,Math.round(H)||0));return(H<16?"0":"")+H.toString(16)}
function cn(H,O,J,V){V<=0?H=O=J=NaN:J<=0||J>=1?H=O=NaN:O<=0&&(H=NaN);return new $a(H,O,J,V)}
function pc(H){if(H instanceof $a)return new $a(H.h,H.s,H.l,H.opacity);H instanceof ec||(H=ZK(H));if(!H)return new $a;if(H instanceof $a)return H;H=H.rgb();var O=H.r/255,J=H.g/255,V=H.b/255,Tf=Math.min(O,J,V),Yi=Math.max(O,J,V),PG=NaN,L4=Yi-Tf,RB=(Yi+Tf)/2;L4?(PG=O===Yi?(J-V)/L4+(J<V)*6:J===Yi?(V-O)/L4+2:(O-J)/L4+4,L4/=RB<.5?Yi+Tf:2-Yi-Tf,PG*=60):L4=RB>0&&RB<1?0:PG;return new $a(PG,L4,RB,H.opacity)}
function cU(H,O,J,V){return arguments.length===1?pc(H):new $a(H,O,J,V==null?1:V)}
function $a(H,O,J,V){this.h=+H;this.s=+O;this.l=+J;this.opacity=+V}
function h1(H,O,J){return(H<60?O+(J-O)*H/60:H<180?J:H<240?O+(J-O)*(240-H)/60:O)*255}
function aj(H){if(H instanceof mQ)return new mQ(H.l,H.a,H.b,H.opacity);if(H instanceof mR){if(isNaN(H.h))return new mQ(H.l,0,0,H.opacity);var O=H.h*JcU;return new mQ(H.l,Math.cos(O)*H.c,Math.sin(O)*H.c,H.opacity)}H instanceof iW||(H=nK(H));var J=Ig(H.r),V=Ig(H.g),Tf=Ig(H.b);O=NG(.2225045*J+.7168786*V+.0606169*Tf);if(J===V&&V===Tf)var Yi=J=O;else Yi=NG((.4360747*J+.3850649*V+.1430804*Tf)/.96422),J=NG((.0139322*J+.0971045*V+.7141733*Tf)/.82521);return new mQ(116*O-16,500*(Yi-O),200*(O-J),H.opacity)}
function mQ(H,O,J,V){this.l=+H;this.a=+O;this.b=+J;this.opacity=+V}
function NG(H){return H>aUO?Math.pow(H,1/3):H/WGz+XOU}
function oB(H){return H>TL?H*H*H:WGz*(H-XOU)}
function ZX(H){return 255*(H<=.0031308?12.92*H:1.055*Math.pow(H,1/2.4)-.055)}
function Ig(H){return(H/=255)<=.04045?H/12.92:Math.pow((H+.055)/1.055,2.4)}
function G2(H){if(H instanceof mR)return new mR(H.h,H.c,H.l,H.opacity);H instanceof mQ||(H=aj(H));if(H.a===0&&H.b===0)return new mR(NaN,0,H.l,H.opacity);var O=Math.atan2(H.b,H.a)*rcl;return new mR(O<0?O+360:O,Math.sqrt(H.a*H.a+H.b*H.b),H.l,H.opacity)}
function ag(H,O,J,V){return arguments.length===1?G2(H):new mR(H,O,J,V==null?1:V)}
function mR(H,O,J,V){this.h=+H;this.c=+O;this.l=+J;this.opacity=+V}
function zU(H,O,J,V){if(arguments.length===1){var Tf=H;if(Tf instanceof vm)Tf=new vm(Tf.h,Tf.s,Tf.l,Tf.opacity);else{Tf instanceof iW||(Tf=nK(Tf));var Yi=Tf.g/255,PG=Tf.b/255,L4=(b2z*PG+Tf.r/255*-1.7884503806-3.5172982438*Yi)/(b2z+-1.7884503806-3.5172982438);PG-=L4;var RB=(1.97294*(Yi-L4)- -.29227*PG)/-.90649;PG=(Yi=Math.sqrt(RB*RB+PG*PG)/(1.97294*L4*(1-L4)))?Math.atan2(RB,PG)*rcl-120:NaN;Tf=new vm(PG<0?PG+360:PG,Yi,L4,Tf.opacity)}}else Tf=new vm(H,O,J,V==null?1:V);return Tf}
function vm(H,O,J,V){this.h=+H;this.s=+O;this.l=+J;this.opacity=+V}
function sX(H,O,J,V,Tf){var Yi=H*H,PG=Yi*H;return((1-3*H+3*Yi-PG)*O+(4-6*Yi+3*PG)*J+(1+3*H+3*Yi-3*PG)*V+PG*Tf)/6}
function c6(H){return function(){return H}}
function wf(H,O){return function(J){return H+J*O}}
function YP(H,O,J){return H=Math.pow(H,J),O=Math.pow(O,J)-H,J=1/J,function(V){return Math.pow(H+V*O,J)}}
function NV(H,O){var J=O-H;return J?wf(H,J>180||J<-180?J-360*Math.round(J/360):J):c6(isNaN(H)?O:H)}
function je(H){return(H=+H)===1?HM:function(O,J){return J-O?YP(O,J,H):c6(isNaN(O)?J:O)}}
function HM(H,O){var J=O-H;return J?wf(H,J):c6(isNaN(H)?O:H)}
function h2(H){return function(O){var J=O.length,V=Array(J),Tf=Array(J),Yi=Array(J),PG;for(PG=0;PG<J;++PG){var L4=ND(O[PG]);V[PG]=L4.r||0;Tf[PG]=L4.g||0;Yi[PG]=L4.b||0}V=H(V);Tf=H(Tf);Yi=H(Yi);L4.opacity=1;return function(RB){L4.r=V(RB);L4.g=Tf(RB);L4.b=Yi(RB);return L4+""}}}
function cp(H,O){return H=+H,O-=H,function(J){return H+O*J}}
function FF(H){return function(){return H}}
function ws(H){return function(O){return H(O)+""}}
function Z1(H,O){var J=lMd.lastIndex=ccG.lastIndex=0,V,Tf,Yi,PG=-1,L4=[],RB=[];H+="";for(O+="";(V=lMd.exec(H))&&(Tf=ccG.exec(O));)(Yi=Tf.index)>J&&(Yi=O.slice(J,Yi),L4[PG]?L4[PG]+=Yi:L4[++PG]=Yi),(V=V[0])===(Tf=Tf[0])?L4[PG]?L4[PG]+=Tf:L4[++PG]=Tf:(L4[++PG]=null,RB.push({i:PG,x:cp(V,Tf)})),J=ccG.lastIndex;J<O.length&&(Yi=O.slice(J),L4[PG]?L4[PG]+=Yi:L4[++PG]=Yi);return L4.length<2?RB[0]?ws(RB[0].x):FF(O):(O=RB.length,function(qG){for(var EZ=0,yh;EZ<O;++EZ)L4[(yh=RB[EZ]).i]=yh.x(qG);return L4.join("")})}
function nX(H,O,J,V,Tf,Yi){var PG,L4,RB;if(PG=Math.sqrt(H*H+O*O))H/=PG,O/=PG;if(RB=H*J+O*V)J-=H*RB,V-=O*RB;if(L4=Math.sqrt(J*J+V*V))J/=L4,V/=L4,RB/=L4;H*V<O*J&&(H=-H,O=-O,RB=-RB,PG=-PG);return{translateX:Tf,translateY:Yi,rotate:Math.atan2(O,H)*ofR,skewX:Math.atan(RB)*ofR,scaleX:PG,scaleY:L4}}
function BL(H,O,J,V){function Tf(qG){return qG.length?qG.pop()+" ":""}
function Yi(qG,EZ,yh,Az,CT,CX){qG!==yh||EZ!==Az?(CT=CT.push("translate(",null,O,null,J),CX.push({i:CT-4,x:cp(qG,yh)},{i:CT-2,x:cp(EZ,Az)})):(yh||Az)&&CT.push("translate("+yh+O+Az+J)}
function PG(qG,EZ,yh,Az){qG!==EZ?(qG-EZ>180?EZ+=360:EZ-qG>180&&(qG+=360),Az.push({i:yh.push(Tf(yh)+"rotate(",null,V)-2,x:cp(qG,EZ)})):EZ&&yh.push(Tf(yh)+"rotate("+EZ+V)}
function L4(qG,EZ,yh,Az){qG!==EZ?Az.push({i:yh.push(Tf(yh)+"skewX(",null,V)-2,x:cp(qG,EZ)}):EZ&&yh.push(Tf(yh)+"skewX("+EZ+V)}
function RB(qG,EZ,yh,Az,CT,CX){qG!==yh||EZ!==Az?(CT=CT.push(Tf(CT)+"scale(",null,",",null,")"),CX.push({i:CT-4,x:cp(qG,yh)},{i:CT-2,x:cp(EZ,Az)})):yh===1&&Az===1||CT.push(Tf(CT)+"scale("+yh+","+Az+")")}
return function(qG,EZ){var yh=[],Az=[];qG=H(qG);EZ=H(EZ);Yi(qG.translateX,qG.translateY,EZ.translateX,EZ.translateY,yh,Az);PG(qG.rotate,EZ.rotate,yh,Az);L4(qG.skewX,EZ.skewX,yh,Az);RB(qG.scaleX,qG.scaleY,EZ.scaleX,EZ.scaleY,yh,Az);qG=EZ=null;return function(CT){for(var CX=-1,rf=Az.length,Zg;++CX<rf;)yh[(Zg=Az[CX]).i]=Zg.x(CT);return yh.join("")}}}
function $y(H){return function(O,J){var V=H((O=cU(O)).h,(J=cU(J)).h),Tf=HM(O.s,J.s),Yi=HM(O.l,J.l),PG=HM(O.opacity,J.opacity);return function(L4){O.h=V(L4);O.s=Tf(L4);O.l=Yi(L4);O.opacity=PG(L4);return O+""}}}
function Wh(H){return function(O,J){var V=H((O=ag(O)).h,(J=ag(J)).h),Tf=HM(O.c,J.c),Yi=HM(O.l,J.l),PG=HM(O.opacity,J.opacity);return function(L4){O.h=V(L4);O.c=Tf(L4);O.l=Yi(L4);O.opacity=PG(L4);return O+""}}}
function s8(H){return function V(J){function Tf(Yi,PG){var L4=H((Yi=zU(Yi)).h,(PG=zU(PG)).h),RB=HM(Yi.s,PG.s),qG=HM(Yi.l,PG.l),EZ=HM(Yi.opacity,PG.opacity);return function(yh){Yi.h=L4(yh);Yi.s=RB(yh);Yi.l=qG(Math.pow(yh,J));Yi.opacity=EZ(yh);return Yi+""}}
J=+J;Tf.gamma=V;return Tf}(1)}
function U1(){return Ju||(Ac6(rHD),Ju=t8.now()+a0c)}
function rHD(){Ju=0}
function Qe(){this._call=this._time=this._next=null}
function jL(H,O,J){var V=new Qe;V.restart(H,O,J);return V}
function U2(){Ju=(vp6=t8.now())+a0c;e5=fs=0;try{U1();++e5;for(var H=yxF,O;H;)(O=Ju-H._time)>=0&&H._call.call(null,O),H=H._next;--e5}finally{e5=0;H=yxF;for(var J=Infinity;H;)if(H._call){J>H._time&&(J=H._time);var V=H;H=H._next}else O=H._next,H._next=null,H=V?V._next=O:yxF=O;V2=V;kX(J);Ju=0}}
function aRQ(){var H=t8.now(),O=H-vp6;O>1E3&&(a0c-=O,vp6=H)}
function kX(H){e5||(fs&&(fs=clearTimeout(fs)),H-Ju>24?(H<Infinity&&(fs=setTimeout(U2,H-t8.now()-a0c)),qp&&(qp=clearInterval(qp))):(qp||(vp6=t8.now(),qp=setInterval(aRQ,1E3)),e5=1,Ac6(U2)))}
function jAR(H,O,J){var V=new Qe;O=O==null?0:+O;V.restart(function(Tf){V.stop();H(Tf+O)},O,J);
return V}
function i2F(H,O,J,V,Tf,Yi){var PG=H.__transition;if(!PG)H.__transition={};else if(J in PG)return;vL2(H,J,{name:O,index:V,group:Tf,on:yw2,tween:Ctd,time:Yi.time,delay:Yi.delay,duration:Yi.duration,ease:Yi.ease,timer:null,state:0})}
function pOG(H,O){H=C0(H,O);if(H.state>0)throw Error("se");return H}
function Wb(H,O){H=C0(H,O);if(H.state>2)throw Error("te");return H}
function C0(H,O){H=H.__transition;if(!H||!(H=H[O]))throw Error("ue");return H}
function vL2(H,O,J){function V(RB){var qG,EZ;if(J.state!==1)return Yi();for(Az in PG){var yh=PG[Az];if(yh.name===J.name){if(yh.state===3)return jAR(V);yh.state===4?(yh.state=6,yh.timer.stop(),yh.on.call("interrupt",H,H.__data__,yh.index,yh.group),delete PG[Az]):+Az<O&&(yh.state=6,yh.timer.stop(),delete PG[Az])}}jAR(function(){J.state===3&&(J.state=4,J.timer.restart(Tf,J.delay,J.time),Tf(RB))});
J.state=2;J.on.call("start",H,H.__data__,J.index,J.group);if(J.state===2){J.state=3;L4=Array(EZ=J.tween.length);var Az=0;for(qG=-1;Az<EZ;++Az)if(yh=J.tween[Az].value.call(H,H.__data__,J.index,J.group))L4[++qG]=yh;L4.length=qG+1}}
function Tf(RB){RB=RB<J.duration?J.ease.call(null,RB/J.duration):(J.timer.restart(Yi),J.state=5,1);for(var qG=-1,EZ=L4.length;++qG<EZ;)L4[qG].call(null,RB);J.state===5&&(J.on.call("end",H,H.__data__,J.index,J.group),Yi())}
function Yi(){J.state=6;J.timer.stop();delete PG[O];for(var RB in PG)return;delete H.__transition}
var PG=H.__transition,L4;PG[O]=J;J.timer=jL(function(RB){J.state=1;J.timer.restart(V,J.delay,J.time);J.delay<=RB&&V(RB-J.delay)},0,J.time)}
function wTL(H,O){var J,V;return function(){var Tf=Wb(this,H),Yi=Tf.tween;if(Yi!==J){V=J=Yi;Yi=0;for(var PG=V.length;Yi<PG;++Yi)if(V[Yi].name===O){V=V.slice();V.splice(Yi,1);break}}Tf.tween=V}}
function Z7t(H,O,J){var V,Tf;if(typeof J!=="function")throw Error();return function(){var Yi=Wb(this,H),PG=Yi.tween;if(PG!==V){Tf=(V=PG).slice();PG={name:O,value:J};for(var L4=0,RB=Tf.length;L4<RB;++L4)if(Tf[L4].name===O){Tf[L4]=PG;break}L4===RB&&Tf.push(PG)}Yi.tween=Tf}}
function YIi(H,O,J){var V=H._id;H.each(function(){var Tf=Wb(this,V);(Tf.value||(Tf.value={}))[O]=J.apply(this,arguments)});
return function(Tf){return C0(Tf,V).value[O]}}
function UCV(H,O){var J;return(typeof O==="number"?cp:O instanceof ZK?kqZ:(J=ZK(O))?(O=J,kqZ):Z1)(H,O)}
function Pt2(H){return function(){this.removeAttribute(H)}}
function zms(H){return function(){this.removeAttributeNS(H.space,H.local)}}
function myO(H,O,J){var V,Tf;return function(){var Yi=this.getAttribute(H);return Yi===J?null:Yi===V?Tf:Tf=O(V=Yi,J)}}
function Qz1(H,O,J){var V,Tf;return function(){var Yi=this.getAttributeNS(H.space,H.local);return Yi===J?null:Yi===V?Tf:Tf=O(V=Yi,J)}}
function dyI(H,O,J){var V,Tf,Yi;return function(){var PG=J(this);if(PG==null)return void this.removeAttribute(H);var L4=this.getAttribute(H);return L4===PG?null:L4===V&&PG===Tf?Yi:Yi=O(V=L4,Tf=PG)}}
function hm2(H,O,J){var V,Tf,Yi;return function(){var PG=J(this);if(PG==null)return void this.removeAttributeNS(H.space,H.local);var L4=this.getAttributeNS(H.space,H.local);return L4===PG?null:L4===V&&PG===Tf?Yi:Yi=O(V=L4,Tf=PG)}}
function sz2(H,O){function J(){var V=this,Tf=O.apply(V,arguments);return Tf&&function(Yi){V.setAttributeNS(H.space,H.local,Tf(Yi))}}
J._value=O;return J}
function uTH(H,O){function J(){var V=this,Tf=O.apply(V,arguments);return Tf&&function(Yi){V.setAttribute(H,Tf(Yi))}}
J._value=O;return J}
function LYI(H,O){return function(){pOG(this,H).delay=+O.apply(this,arguments)}}
function xyg(H,O){return O=+O,function(){pOG(this,H).delay=O}}
function GVI(H,O){return function(){Wb(this,H).duration=+O.apply(this,arguments)}}
function O71(H,O){return O=+O,function(){Wb(this,H).duration=O}}
function nLH(H,O){if(typeof O!=="function")throw Error();return function(){Wb(this,H).ease=O}}
function Mw8(H){return(H+"").trim().split(/^|\s+/).every(function(O){var J=O.indexOf(".");J>=0&&(O=O.slice(0,J));return!O||O==="start"})}
function H7d(H,O,J){var V,Tf,Yi=Mw8(O)?pOG:Wb;return function(){var PG=Yi(this,H),L4=PG.on;if(L4!==V)(Tf=(V=L4).copy()).on(O,J);PG.on=Tf}}
function Nwd(H){return function(){var O=this.parentNode,J;for(J in this.__transition)if(+J!==H)return;O&&O.removeChild(this)}}
function gLm(H,O){var J,V,Tf;return function(){var Yi=ki(this,H),PG=(this.style.removeProperty(H),ki(this,H));return Yi===PG?null:Yi===J&&PG===V?Tf:Tf=O(J=Yi,V=PG)}}
function Ssm(H){return function(){this.style.removeProperty(H)}}
function JwI(H,O,J){var V,Tf;return function(){var Yi=ki(this,H);return Yi===J?null:Yi===V?Tf:Tf=O(V=Yi,J)}}
function WY8(H,O,J){var V,Tf,Yi;return function(){var PG=ki(this,H),L4=J(this);L4==null&&(L4=(this.style.removeProperty(H),ki(this,H)));return PG===L4?null:PG===V&&L4===Tf?Yi:Yi=O(V=PG,Tf=L4)}}
function XTI(H,O,J){function V(){var Tf=this,Yi=O.apply(Tf,arguments);return Yi&&function(PG){Tf.style.setProperty(H,Yi(PG),J)}}
V._value=O;return V}
function rwg(H){return function(){this.textContent=H}}
function b7I(H){return function(){var O=H(this);this.textContent=O==null?"":O}}
function Cj(H,O,J,V){this._groups=H;this._parents=O;this._name=J;this._id=V}
function aMd(H){return{type:H}}
function vf4(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function CQB(){}
function tyl(H,O){var J=new CQB;if(H instanceof CQB)H.each(function(PG,L4){J.set(L4,PG)});
else if(Array.isArray(H)){var V=-1,Tf=H.length,Yi;if(O==null)for(;++V<Tf;)J.set(V,H[V]);else for(;++V<Tf;)J.set(O(Yi=H[V],V,H),Yi)}else if(H)for(V in H)J.set(V,H[V]);return J}
function whd(){}
function fMX(H){return function(O){for(var J={},V=0;V<H.length;V++)J[H[V]]=O[V]||"";return J}}
function oLg(H,O){var J=fMX(H);return function(V,Tf){return O(J(V),Tf,H)}}
function Awt(H){var O=Object.create(null),J=[];H.forEach(function(V){for(var Tf in V)Tf in O||J.push(O[Tf]=Tf)});
return J}
function VyN(H){function O(PG,L4){function RB(){if(CX)return yci;if(rf)return rf=!1,qIZ;var U4,k9=yh,xO;if(PG.charCodeAt(k9)===34){for(;yh++<EZ&&PG.charCodeAt(yh)!==34||PG.charCodeAt(++yh)===34;);(U4=yh)>=EZ?CX=!0:(xO=PG.charCodeAt(yh++))===10?rf=!0:xO===13&&(rf=!0,PG.charCodeAt(yh)===10&&++yh);return PG.slice(k9+1,U4-1).replace(/""/g,'"')}for(;yh<EZ;){if((xO=PG.charCodeAt(U4=yh++))===10)rf=!0;else if(xO===13)rf=!0,PG.charCodeAt(yh)===10&&++yh;else if(xO!==Yi)continue;return PG.slice(k9,U4)}return CX=
!0,PG.slice(k9,EZ)}
var qG=[],EZ=PG.length,yh=0,Az=0,CT,CX=EZ<=0,rf=!1;PG.charCodeAt(EZ-1)===10&&--EZ;for(PG.charCodeAt(EZ-1)===13&&--EZ;(CT=RB())!==yci;){for(var Zg=[];CT!==qIZ&&CT!==yci;)Zg.push(CT),CT=RB();L4&&(Zg=L4(Zg,Az++))==null||qG.push(Zg)}return qG}
function J(PG){return PG.map(V).join(H)}
function V(PG){return PG==null?"":Tf.test(PG)?'"'+PG.replace(/"/g,'""')+'"':PG}
var Tf=new RegExp('["'+H+"\n\r]"),Yi=H.charCodeAt(0);return{parse:function(PG,L4){var RB,qG;PG=O(PG,function(EZ,yh){if(RB)return RB(EZ,yh-1);qG=EZ;RB=L4?oLg(EZ,L4):fMX(EZ)});
PG.columns=qG||[];return PG},
parseRows:O,format:function(PG,L4){L4==null&&(L4=Awt(PG));return[L4.map(V).join(H)].concat(PG.map(function(RB){return L4.map(function(qG){return V(RB[qG])}).join(H)})).join("\n")},
formatRows:function(PG){return PG.map(J).join("\n")}}}
function jzm(H){if(!H.ok)throw Error("ve`"+H.status+"`"+H.statusText);return H.text()}
function FGD(H){return function(O,J,V){arguments.length===2&&typeof J==="function"&&(V=J,J=void 0);return fetch(O,J).then(jzm).then(function(Tf){return H(Tf,V)})}}
function DCu(H,O,J,V){if(isNaN(O)||isNaN(J))return H;var Tf,Yi=H._root;V={data:V};var PG=H._x0,L4=H._y0,RB=H._x1,qG=H._y1,EZ,yh,Az,CT,CX;if(!Yi)return H._root=V,H;for(;Yi.length;)if((Az=O>=(EZ=(PG+RB)/2))?PG=EZ:RB=EZ,(CT=J>=(yh=(L4+qG)/2))?L4=yh:qG=yh,Tf=Yi,!(Yi=Yi[CX=CT<<1|Az]))return Tf[CX]=V,H;var rf=+H._x.call(null,Yi.data);var Zg=+H._y.call(null,Yi.data);if(O===rf&&J===Zg)return V.next=Yi,Tf?Tf[CX]=V:H._root=V,H;do Tf=Tf?Tf[CX]=Array(4):H._root=Array(4),(Az=O>=(EZ=(PG+RB)/2))?PG=EZ:RB=EZ,(CT=
J>=(yh=(L4+qG)/2))?L4=yh:qG=yh;while((CX=CT<<1|Az)===(Az=(Zg>=yh)<<1|rf>=EZ));return Tf[Az]=Yi,Tf[CX]=V,H}
function I3(H,O,J,V,Tf){this.node=H;this.x0=O;this.y0=J;this.x1=V;this.y1=Tf}
function Uy7(H){return H[0]}
function kV8(H){return H[1]}
function CoD(H,O,J,V,Tf,Yi){this._x=H;this._y=O;this._x0=J;this._y0=V;this._x1=Tf;this._y1=Yi;this._root=void 0}
function KGV(H){for(var O={data:H.data},J=O;H=H.next;)J=J.next={data:H.data};return O}
function ZdJ(H,O){if((O=(H=O?H.toExponential(O-1):H.toExponential()).indexOf("e"))<0)return null;var J=H.slice(0,O);return[J.length>1?J[0]+J.slice(2):J,+H.slice(O+1)]}
function twO(H){return H=ZdJ(Math.abs(H)),H?H[1]:NaN}
function fU7(H,O){return function(J,V){for(var Tf=J.length,Yi=[],PG=0,L4=H[0],RB=0;Tf>0&&L4>0;){RB+L4+1>V&&(L4=Math.max(1,V-RB));Yi.push(J.substring(Tf-=L4,Tf+L4));if((RB+=L4+1)>V)break;L4=H[PG=(PG+1)%H.length]}return Yi.reverse().join(O)}}
function VwO(H){return function(O){return O.replace(/[0-9]/g,function(J){return H[+J]})}}
function wOG(H){return new Z2c(H)}
function Z2c(H){if(!(O=qst.exec(H)))throw Error("we`"+H);var O;this.fill=O[1]||" ";this.align=O[2]||">";this.sign=O[3]||"-";this.symbol=O[4]||"";this.zero=!!O[5];this.width=O[6]&&+O[6];this.comma=!!O[7];this.precision=O[8]&&+O[8].slice(1);this.trim=!!O[9];this.type=O[10]||""}
function RhZ(H,O){O=ZdJ(H,O);if(!O)return H+"";H=O[0];O=O[1];return O<0?"0."+Array(-O).join("0")+H:H.length>O+1?H.slice(0,O+1)+"."+H.slice(O+1):H+Array(O-H.length+2).join("0")}
function EYX(H){return H}
function FYg(H){function O(L4){function RB(UX){var Yv=xO,MI=yW,ah,KT;if(k9==="c")MI=tV(UX)+MI,UX="";else{UX=+UX;var Pm=UX<0;UX=tV(Math.abs(UX),Zg);if(U4){var j2=UX.length,sG=1,kv=-1;a:for(;sG<j2;++sG)switch(UX[sG]){case ".":kv=ah=sG;break;case "0":kv===0&&(kv=sG);ah=sG;break;default:if(!+UX[sG])break a;kv>0&&(kv=0)}UX=kv>0?UX.slice(0,kv)+UX.slice(ah+1):UX}Pm&&+UX===0&&(Pm=!1);Yv=(Pm?yh==="("?yh:"-":yh==="-"||yh==="("?"":yh)+Yv;MI=(k9==="s"?B8t[8+$TU/3]:"")+MI+(Pm&&yh==="("?")":"");if(Yr)for(Pm=-1,
ah=UX.length;++Pm<ah;)if(KT=UX.charCodeAt(Pm),48>KT||KT>57){MI=(KT===46?Tf+UX.slice(Pm+1):UX.slice(Pm))+MI;UX=UX.slice(0,Pm);break}}rf&&!CT&&(UX=J(UX,Infinity));KT=Yv.length+UX.length+MI.length;Pm=KT<CX?Array(CX-KT+1).join(qG):"";rf&&CT&&(UX=J(Pm+UX,Pm.length?CX-MI.length:Infinity),Pm="");switch(EZ){case "<":UX=Yv+UX+MI+Pm;break;case "=":UX=Yv+Pm+UX+MI;break;case "^":UX=Pm.slice(0,KT=Pm.length>>1)+Yv+UX+MI+Pm.slice(KT);break;default:UX=Pm+Yv+UX+MI}return Yi(UX)}
L4=wOG(L4);var qG=L4.fill,EZ=L4.align,yh=L4.sign,Az=L4.symbol,CT=L4.zero,CX=L4.width,rf=L4.comma,Zg=L4.precision,U4=L4.trim,k9=L4.type;k9==="n"?(rf=!0,k9="g"):I_Z[k9]||(Zg==null&&(Zg=12),U4=!0,k9="g");if(CT||qG==="0"&&EZ==="=")CT=!0,qG="0",EZ="=";var xO=Az==="$"?V[0]:Az==="#"&&/[boxX]/.test(k9)?"0"+k9.toLowerCase():"",yW=Az==="$"?V[1]:/[%p]/.test(k9)?PG:"",tV=I_Z[k9],Yr=/[defgprs%]/.test(k9);Zg=Zg==null?6:/[gprs]/.test(k9)?Math.max(1,Math.min(21,Zg)):Math.max(0,Math.min(20,Zg));RB.toString=function(){return L4+
""};
return RB}
var J=H.grouping&&H.thousands?fU7(H.grouping,H.thousands):EYX,V=H.currency,Tf=H.decimal,Yi=H.numerals?VwO(H.numerals):EYX,PG=H.percent||"%";return{format:O,formatPrefix:function(L4,RB){var qG=O((L4=wOG(L4),L4.type="f",L4));L4=Math.max(-8,Math.min(8,Math.floor(twO(RB)/3)))*3;var EZ=Math.pow(10,-L4),yh=B8t[8+L4/3];return function(Az){return qG(EZ*Az)+yh}}}}
function or(){this.reset()}
function T8u(H,O,J){var V=H.s=O+J,Tf=V-O;H.t=O-(V-Tf)+(J-Tf)}
function PQJ(H){return H>1?VL:H<-1?-VL:Math.asin(H)}
function DyH(){}
function ekV(H){var O=H[0];H=H[1];var J=qo(H);return[J*qo(O),J*Ng(O),Ng(H)]}
function l_6(H,O){return[H[1]*O[2]-H[2]*O[1],H[2]*O[0]-H[0]*O[2],H[0]*O[1]-H[1]*O[0]]}
function cBt(H){var O=zB4(H[0]*H[0]+H[1]*H[1]+H[2]*H[2]);H[0]/=O;H[1]/=O;H[2]/=O}
function KYL(){var H=[],O;return{point:function(J,V){O.push([J,V])},
lineStart:function(){H.push(O=[])},
lineEnd:DyH,rejoin:function(){H.length>1&&H.push(H.pop().concat(H.shift()))},
result:function(){var J=H;H=[];O=null;return J}}}
function mSG(H,O,J,V){this.x=H;this.z=O;this.o=J;this.e=V;this.v=!1;this.n=this.p=null}
function Rmd(H,O,J,V,Tf){var Yi=[],PG=[];H.forEach(function(yh){if(!((Az=yh.length-1)<=0)){var Az,CT=yh[0],CX=yh[Az],rf=CT;if(wS(rf[0]-CX[0])<1E-6&&wS(rf[1]-CX[1])<1E-6){Tf.lineStart();for(L4=0;L4<Az;++L4)Tf.point((CT=yh[L4])[0],CT[1]);Tf.lineEnd()}else Yi.push(Az=new mSG(CT,yh,null,!0)),PG.push(Az.o=new mSG(CT,null,Az,!1)),Yi.push(Az=new mSG(CX,yh,null,!1)),PG.push(Az.o=new mSG(CX,null,Az,!0))}});
if(Yi.length){PG.sort(O);iUV(Yi);iUV(PG);var L4=0;for(H=PG.length;L4<H;++L4)PG[L4].e=J=!J;J=Yi[0];for(var RB;;){for(var qG=J,EZ=!0;qG.v;)if((qG=qG.n)===J)return;O=qG.z;Tf.lineStart();do{qG.v=qG.o.v=!0;if(qG.e){if(EZ)for(L4=0,H=O.length;L4<H;++L4)Tf.point((RB=O[L4])[0],RB[1]);else V(qG.x,qG.n.x,1,Tf);qG=qG.n}else{if(EZ)for(O=qG.p.z,L4=O.length-1;L4>=0;--L4)Tf.point((RB=O[L4])[0],RB[1]);else V(qG.x,qG.p.x,-1,Tf);qG=qG.p}qG=qG.o;O=qG.z;EZ=!EZ}while(!qG.v);Tf.lineEnd()}}}
function iUV(H){if(O=H.length){for(var O,J=0,V=H[0],Tf;++J<O;)V.n=Tf=H[J],Tf.p=V,V=Tf;V.n=Tf=H[0];Tf.p=V}}
function ETd(H){return H.length>1}
function BId(H,O){return((H=H.x)[0]<0?H[1]-VL-1E-6:VL-H[1])-((O=O.x)[0]<0?O[1]-VL-1E-6:VL-O[1])}
function PoF(){}
function pWZ(H){return function(O,J){var V=qo(O),Tf=qo(J);V=H(V*Tf);return[V*Tf*Ng(O),V*Ng(J)]}}
function Fr(H){return function(O,J){var V=zB4(O*O+J*J),Tf=H(V),Yi=Ng(Tf);Tf=qo(Tf);return[YSU(O*Yi,V*Tf),PQJ(V&&J*Yi/V)]}}
function $07(H){var O=0,J=H.children,V=J&&J.length;if(V)for(;--V>=0;)O+=J[V].value;else O=1;H.value=O}
function a_h(H,O){var J=new Do(H);H=+H.value&&(J.value=H.value);var V,Tf=[J],Yi,PG,L4,RB;for(O==null&&(O=IF9);V=Tf.pop();)if(H&&(V.value=+V.data.value),(PG=O(V.data))&&(RB=PG.length))for(V.children=Array(RB),L4=RB-1;L4>=0;--L4)Tf.push(Yi=V.children[L4]=new Do(PG[L4])),Yi.parent=V,Yi.depth=V.depth+1;return J.eachBefore(TI8)}
function IF9(H){return H.children}
function eKO(H){H.data=H.data.data}
function TI8(H){var O=0;do H.height=O;while((H=H.parent)&&H.height<++O)}
function Do(H){this.data=H;this.depth=this.height=0;this.parent=null}
function dG(H,O,J,V){function Tf(Yi){return H(Yi=new Date(+Yi)),Yi}
Tf.floor=Tf;Tf.ceil=function(Yi){return H(Yi=new Date(Yi-1)),O(Yi,1),H(Yi),Yi};
Tf.round=function(Yi){var PG=Tf(Yi),L4=Tf.ceil(Yi);return Yi-PG<L4-Yi?PG:L4};
Tf.offset=function(Yi,PG){return O(Yi=new Date(+Yi),PG==null?1:Math.floor(PG)),Yi};
Tf.range=function(Yi,PG,L4){var RB=[],qG;Yi=Tf.ceil(Yi);L4=L4==null?1:Math.floor(L4);if(!(Yi<PG&&L4>0))return RB;do RB.push(qG=new Date(+Yi)),O(Yi,L4),H(Yi);while(qG<Yi&&Yi<PG);return RB};
Tf.filter=function(Yi){return dG(function(PG){if(PG>=PG)for(;H(PG),!Yi(PG);)PG.setTime(PG-1)},function(PG,L4){if(PG>=PG)if(L4<0)for(;++L4<=0;)for(;O(PG,-1),!Yi(PG););
else for(;--L4>=0;)for(;O(PG,1),!Yi(PG););})};
J&&(Tf.count=function(Yi,PG){zhD.setTime(+Yi);mCG.setTime(+PG);H(zhD);H(mCG);return Math.floor(J(zhD,mCG))},Tf.every=function(Yi){Yi=Math.floor(Yi);
return isFinite(Yi)&&Yi>0?Yi>1?Tf.filter(V?function(PG){return V(PG)%Yi===0}:function(PG){return Tf.count(0,PG)%Yi===0}):Tf:null});
return Tf}
function XM(H){return dG(function(O){O.setDate(O.getDate()-(O.getDay()+7-H)%7);O.setHours(0,0,0,0)},function(O,J){O.setDate(O.getDate()+J*7)},function(O,J){return(J-O-(J.getTimezoneOffset()-O.getTimezoneOffset())*6E4)/6048E5})}
function rP(H){return dG(function(O){O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-H)%7);O.setUTCHours(0,0,0,0)},function(O,J){O.setUTCDate(O.getUTCDate()+J*7)},function(O,J){return(J-O)/6048E5})}
function lFd(H){if(0<=H.y&&H.y<100){var O=new Date(-1,H.m,H.d,H.H,H.M,H.S,H.L);O.setFullYear(H.y);return O}return new Date(H.y,H.m,H.d,H.H,H.M,H.S,H.L)}
function QJc(H){if(0<=H.y&&H.y<100){var O=new Date(Date.UTC(-1,H.m,H.d,H.H,H.M,H.S,H.L));O.setUTCFullYear(H.y);return O}return new Date(Date.UTC(H.y,H.m,H.d,H.H,H.M,H.S,H.L))}
function Ks(H){return{y:H,m:0,d:1,H:0,M:0,S:0,L:0}}
function cP7(H){function O(MI,ah){return function(KT){var Pm=[],j2=-1,sG=0,kv=MI.length,y9,HO;for(KT instanceof Date||(KT=new Date(+KT));++j2<kv;)if(MI.charCodeAt(j2)===37){Pm.push(MI.slice(sG,j2));(sG=vYh[y9=MI.charAt(++j2)])!=null?y9=MI.charAt(++j2):sG=y9==="e"?" ":"0";if(HO=ah[y9])y9=HO(KT,sG);Pm.push(y9);sG=j2+1}Pm.push(MI.slice(sG,j2));return Pm.join("")}}
function J(MI,ah){return function(KT){var Pm=Ks(1900);if(V(Pm,MI,KT,0)!=KT.length)return null;if("Q"in Pm)return new Date(Pm.Q);"p"in Pm&&(Pm.H=Pm.H%12+Pm.p*12);if("V"in Pm){if(Pm.V<1||Pm.V>53)return null;"w"in Pm||(Pm.w=1);if("Z"in Pm){KT=QJc(Ks(Pm.y));var j2=KT.getUTCDay();KT=j2>4||j2===0?QAd.ceil(KT):QAd(KT);KT=yBh.offset(KT,(Pm.V-1)*7);Pm.y=KT.getUTCFullYear();Pm.m=KT.getUTCMonth();Pm.d=KT.getUTCDate()+(Pm.w+6)%7}else KT=ah(Ks(Pm.y)),j2=KT.getDay(),KT=j2>4||j2===0?dCB.ceil(KT):dCB(KT),KT=CUl.offset(KT,
(Pm.V-1)*7),Pm.y=KT.getFullYear(),Pm.m=KT.getMonth(),Pm.d=KT.getDate()+(Pm.w+6)%7}else if("W"in Pm||"U"in Pm)"w"in Pm||(Pm.w="u"in Pm?Pm.u%7:"W"in Pm?1:0),j2="Z"in Pm?QJc(Ks(Pm.y)).getUTCDay():ah(Ks(Pm.y)).getDay(),Pm.m=0,Pm.d="W"in Pm?(Pm.w+6)%7+Pm.W*7-(j2+5)%7:Pm.w+Pm.U*7-(j2+6)%7;return"Z"in Pm?(Pm.H+=Pm.Z/100|0,Pm.M+=Pm.Z%100,QJc(Pm)):ah(Pm)}}
function V(MI,ah,KT,Pm){for(var j2=0,sG=ah.length,kv=KT.length,y9;j2<sG;){if(Pm>=kv)return-1;y9=ah.charCodeAt(j2++);if(y9===37){if(y9=ah.charAt(j2++),y9=Yv[y9 in vYh?ah.charAt(j2++):y9],!y9||(Pm=y9(MI,KT,Pm))<0)return-1}else if(y9!=KT.charCodeAt(Pm++))return-1}return Pm}
var Tf=H.dateTime,Yi=H.date,PG=H.time,L4=H.periods,RB=H.days,qG=H.shortDays,EZ=H.months,yh=H.shortMonths,Az=RR(L4),CT=EV(L4),CX=RR(RB),rf=EV(RB),Zg=RR(qG),U4=EV(qG),k9=RR(EZ),xO=EV(EZ),yW=RR(yh),tV=EV(yh),Yr={a:function(MI){return qG[MI.getDay()]},
A:function(MI){return RB[MI.getDay()]},
b:function(MI){return yh[MI.getMonth()]},
B:function(MI){return EZ[MI.getMonth()]},
c:null,d:wWh,e:wWh,f:iSH,H:pRT,I:Yk2,j:aF7,L:ZUr,m:vTm,M:yPd,p:function(MI){return L4[+(MI.getHours()>=12)]},
Q:PUz,s:zkN,S:CG7,u:wRO,U:ZS7,V:PGL,w:zK7,W:m0O,x:null,X:null,y:Q8L,Y:d07,Z:hKs,"%":mT$},UX={a:function(MI){return qG[MI.getUTCDay()]},
A:function(MI){return RB[MI.getUTCDay()]},
b:function(MI){return yh[MI.getUTCMonth()]},
B:function(MI){return EZ[MI.getUTCMonth()]},
c:null,d:QpN,e:QpN,f:s8s,H:u62,I:Ls8,j:x0g,L:dTD,m:Gwt,M:OS9,p:function(MI){return L4[+(MI.getUTCHours()>=12)]},
Q:PUz,s:zkN,S:nT9,u:Ml8,U:HSg,V:NId,w:gTg,W:SkT,x:null,X:null,y:JPO,Y:Ws2,Z:XR2,"%":mT$},Yv={a:function(MI,ah,KT){return(ah=Zg.exec(ah.slice(KT)))?(MI.w=U4[ah[0].toLowerCase()],KT+ah[0].length):-1},
A:function(MI,ah,KT){return(ah=CX.exec(ah.slice(KT)))?(MI.w=rf[ah[0].toLowerCase()],KT+ah[0].length):-1},
b:function(MI,ah,KT){return(ah=yW.exec(ah.slice(KT)))?(MI.m=tV[ah[0].toLowerCase()],KT+ah[0].length):-1},
B:function(MI,ah,KT){return(ah=k9.exec(ah.slice(KT)))?(MI.m=xO[ah[0].toLowerCase()],KT+ah[0].length):-1},
c:function(MI,ah,KT){return V(MI,Tf,ah,KT)},
d:hkl,e:hkl,f:rP8,H:spN,I:spN,j:bS2,L:oTd,m:API,M:j8I,p:function(MI,ah,KT){return(ah=Az.exec(ah.slice(KT)))?(MI.p=CT[ah[0].toLowerCase()],KT+ah[0].length):-1},
Q:U0m,s:kw9,S:tl1,u:fFI,U:Vlt,V:qks,w:Fs8,W:D0s,x:function(MI,ah,KT){return V(MI,Yi,ah,KT)},
X:function(MI,ah,KT){return V(MI,PG,ah,KT)},
y:Ks7,Y:RK9,Z:EeH,"%":BC1};Yr.x=O(Yi,Yr);Yr.X=O(PG,Yr);Yr.c=O(Tf,Yr);UX.x=O(Yi,UX);UX.X=O(PG,UX);UX.c=O(Tf,UX);return{format:function(MI){var ah=O(MI,Yr);ah.toString=function(){return MI};
return ah},
parse:function(MI){var ah=J(MI,lFd);ah.toString=function(){return MI};
return ah},
utcFormat:function(MI){var ah=O(MI,UX);ah.toString=function(){return MI};
return ah},
utcParse:function(MI){var ah=J(MI,QJc);ah.toString=function(){return MI};
return ah}}}
function wt(H,O,J){var V=H<0?"-":"";H=(V?-H:H)+"";var Tf=H.length;return V+(Tf<J?Array(J-Tf+1).join(O)+H:H)}
function $68(H){return H.replace(Ir7,"\\$&")}
function RR(H){return new RegExp("^(?:"+H.map($68).join("|")+")","i")}
function EV(H){for(var O={},J=-1,V=H.length;++J<V;)O[H[J].toLowerCase()]=J;return O}
function Fs8(H,O,J){return(O=Ga.exec(O.slice(J,J+1)))?(H.w=+O[0],J+O[0].length):-1}
function fFI(H,O,J){return(O=Ga.exec(O.slice(J,J+1)))?(H.u=+O[0],J+O[0].length):-1}
function Vlt(H,O,J){return(O=Ga.exec(O.slice(J,J+2)))?(H.U=+O[0],J+O[0].length):-1}
function qks(H,O,J){return(O=Ga.exec(O.slice(J,J+2)))?(H.V=+O[0],J+O[0].length):-1}
function D0s(H,O,J){return(O=Ga.exec(O.slice(J,J+2)))?(H.W=+O[0],J+O[0].length):-1}
function RK9(H,O,J){return(O=Ga.exec(O.slice(J,J+4)))?(H.y=+O[0],J+O[0].length):-1}
function Ks7(H,O,J){return(O=Ga.exec(O.slice(J,J+2)))?(H.y=+O[0]+(+O[0]>68?1900:2E3),J+O[0].length):-1}
function EeH(H,O,J){return(O=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(J,J+6)))?(H.Z=O[1]?0:-(O[2]+(O[3]||"00")),J+O[0].length):-1}
function API(H,O,J){return(O=Ga.exec(O.slice(J,J+2)))?(H.m=O[0]-1,J+O[0].length):-1}
function hkl(H,O,J){return(O=Ga.exec(O.slice(J,J+2)))?(H.d=+O[0],J+O[0].length):-1}
function bS2(H,O,J){return(O=Ga.exec(O.slice(J,J+3)))?(H.m=0,H.d=+O[0],J+O[0].length):-1}
function spN(H,O,J){return(O=Ga.exec(O.slice(J,J+2)))?(H.H=+O[0],J+O[0].length):-1}
function j8I(H,O,J){return(O=Ga.exec(O.slice(J,J+2)))?(H.M=+O[0],J+O[0].length):-1}
function tl1(H,O,J){return(O=Ga.exec(O.slice(J,J+2)))?(H.S=+O[0],J+O[0].length):-1}
function oTd(H,O,J){return(O=Ga.exec(O.slice(J,J+3)))?(H.L=+O[0],J+O[0].length):-1}
function rP8(H,O,J){return(O=Ga.exec(O.slice(J,J+6)))?(H.L=Math.floor(O[0]/1E3),J+O[0].length):-1}
function BC1(H,O,J){return(H=TCs.exec(O.slice(J,J+1)))?J+H[0].length:-1}
function U0m(H,O,J){return(O=Ga.exec(O.slice(J)))?(H.Q=+O[0],J+O[0].length):-1}
function kw9(H,O,J){return(O=Ga.exec(O.slice(J)))?(H.Q=+O[0]*1E3,J+O[0].length):-1}
function wWh(H,O){return wt(H.getDate(),O,2)}
function pRT(H,O){return wt(H.getHours(),O,2)}
function Yk2(H,O){return wt(H.getHours()%12||12,O,2)}
function aF7(H,O){return wt(1+CUl.count(l7(H),H),O,3)}
function ZUr(H,O){return wt(H.getMilliseconds(),O,3)}
function iSH(H,O){return ZUr(H,O)+"000"}
function vTm(H,O){return wt(H.getMonth()+1,O,2)}
function yPd(H,O){return wt(H.getMinutes(),O,2)}
function CG7(H,O){return wt(H.getSeconds(),O,2)}
function wRO(H){H=H.getDay();return H===0?7:H}
function ZS7(H,O){return wt(eo1.count(l7(H),H),O,2)}
function PGL(H,O){var J=H.getDay();H=J>=4||J===0?hhf(H):hhf.ceil(H);return wt(hhf.count(l7(H),H)+(l7(H).getDay()===4),O,2)}
function zK7(H){return H.getDay()}
function m0O(H,O){return wt(dCB.count(l7(H),H),O,2)}
function Q8L(H,O){return wt(H.getFullYear()%100,O,2)}
function d07(H,O){return wt(H.getFullYear()%1E4,O,4)}
function hKs(H){H=H.getTimezoneOffset();return(H>0?"-":(H*=-1,"+"))+wt(H/60|0,"0",2)+wt(H%60,"0",2)}
function QpN(H,O){return wt(H.getUTCDate(),O,2)}
function u62(H,O){return wt(H.getUTCHours(),O,2)}
function Ls8(H,O){return wt(H.getUTCHours()%12||12,O,2)}
function x0g(H,O){return wt(1+yBh.count(c_(H),H),O,3)}
function dTD(H,O){return wt(H.getUTCMilliseconds(),O,3)}
function s8s(H,O){return dTD(H,O)+"000"}
function Gwt(H,O){return wt(H.getUTCMonth()+1,O,2)}
function OS9(H,O){return wt(H.getUTCMinutes(),O,2)}
function nT9(H,O){return wt(H.getUTCSeconds(),O,2)}
function Ml8(H){H=H.getUTCDay();return H===0?7:H}
function HSg(H,O){return wt(lrI.count(c_(H),H),O,2)}
function NId(H,O){var J=H.getUTCDay();H=J>=4||J===0?sAi(H):sAi.ceil(H);return wt(sAi.count(c_(H),H)+(c_(H).getUTCDay()===4),O,2)}
function gTg(H){return H.getUTCDay()}
function SkT(H,O){return wt(QAd.count(c_(H),H),O,2)}
function JPO(H,O){return wt(H.getUTCFullYear()%100,O,2)}
function Ws2(H,O){return wt(H.getUTCFullYear()%1E4,O,4)}
function XR2(){return"+0000"}
function mT$(){return"%"}
function PUz(H){return+H}
function zkN(H){return Math.floor(+H/1E3)}
function TB(H){for(var O=H.length/6|0,J=Array(O),V=0;V<O;)J[V]="#"+H.slice(V*6,++V*6);return J}
function U_(H){return cGO(H[H.length-1])}
function dS4(H){var O=H.length;return function(J){return H[Math.max(0,Math.min(O-1,Math.floor(J*O)))]}}
function u26(H){this._context=H}
function LJZ(H){this._curve=H}
function xTr(H,O,J){var V=H._x1-H._x0;O-=H._x1;var Tf=(H._y1-H._y0)/(V||O<0&&-0);H=(J-H._y1)/(O||V<0&&-0);return((Tf<0?-1:1)+(H<0?-1:1))*Math.min(Math.abs(Tf),Math.abs(H),.5*Math.abs((Tf*O+H*V)/(V+O)))||0}
function GTR(H,O){var J=H._x1-H._x0;return J?(3*(H._y1-H._y0)/J-O)/2:O}
function uyG(H,O,J){var V=H._x0,Tf=H._x1,Yi=H._y1,PG=(Tf-V)/3;H._context.bezierCurveTo(V+PG,H._y0+PG*O,Tf-PG,Yi-PG*J,Tf,Yi)}
function LGi(H){this._context=H}
function OUu(H){this._context=H}
function Bo(H,O,J){this.k=H;this.x=O;this.y=J}
(function(H){H.length===1&&(H=B(H));return{left:function(O,J,V,Tf){V==null&&(V=0);Tf==null&&(Tf=O.length);for(;V<Tf;){var Yi=V+Tf>>>1;H(O[Yi],J)<0?V=Yi+1:Tf=Yi}return V},
right:function(O,J,V,Tf){V==null&&(V=0);Tf==null&&(Tf=O.length);for(;V<Tf;){var Yi=V+Tf>>>1;H(O[Yi],J)>0?Tf=Yi:V=Yi+1}return V}}})(E);
var EL8={value:function(){}};
T.prototype=I.prototype={constructor:T,on:function(H,O){var J=this._,V=e(H+"",J),Tf,Yi=-1,PG=V.length;if(arguments.length<2)for(;++Yi<PG;){var L4;if(L4=Tf=(H=V[Yi]).type){a:{L4=J[Tf];for(var RB=0,qG=L4.length;RB<qG;++RB)if((Tf=L4[RB]).name===H.name){Tf=Tf.value;break a}Tf=void 0}L4=Tf}if(L4)return Tf}else{if(O!=null&&typeof O!=="function")throw Error("xe`"+O);for(;++Yi<PG;)if(Tf=(H=V[Yi]).type)J[Tf]=c(J[Tf],H.name,O);else if(O==null)for(Tf in J)J[Tf]=c(J[Tf],H.name,null);return this}},
copy:function(){var H={},O=this._,J;for(J in O)H[J]=O[J].slice();return new T(H)},
call:function(H,O){if((Tf=arguments.length-2)>0)for(var J=Array(Tf),V=0,Tf,Yi;V<Tf;++V)J[V]=arguments[V+2];if(!this._.hasOwnProperty(H))throw Error("re`"+H);Yi=this._[H];V=0;for(Tf=Yi.length;V<Tf;++V)Yi[V].value.apply(O,J)},
apply:function(H,O,J){if(!this._.hasOwnProperty(H))throw Error("re`"+H);H=this._[H];for(var V=0,Tf=H.length;V<Tf;++V)H[V].value.apply(O,J)}};
var ff={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/"},nY$=function(H){return function(){return this.matches(H)}};
if(typeof document!=="undefined"){var $$=document.documentElement;if(!$$.matches){var i07=$$.webkitMatchesSelector||$$.msMatchesSelector||$$.mozMatchesSelector||$$.oMatchesSelector;nY$=function(H){return function(){return i07.call(this,H)}}}}var Mp$=nY$;
u.prototype={constructor:u,appendChild:function(H){return this._parent.insertBefore(H,this._next)},
insertBefore:function(H,O){return this._parent.insertBefore(H,O)},
querySelector:function(H){return this._parent.querySelector(H)},
querySelectorAll:function(H){return this._parent.querySelectorAll(H)}};
var gf6={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(gf6={mouseenter:"mouseover",mouseleave:"mouseout"}));var Bwg=[null];wr.prototype=et.prototype={constructor:wr,select:function(H){typeof H!=="function"&&(H=z(H));for(var O=this._groups,J=O.length,V=Array(J),Tf=0;Tf<J;++Tf)for(var Yi=O[Tf],PG=Yi.length,L4=V[Tf]=Array(PG),RB,qG,EZ=0;EZ<PG;++EZ)(RB=Yi[EZ])&&(qG=H.call(RB,RB.__data__,EZ,Yi))&&("__data__"in RB&&(qG.__data__=RB.__data__),L4[EZ]=qG);return new wr(V,this._parents)},
filter:function(H){typeof H!=="function"&&(H=Mp$(H));for(var O=this._groups,J=O.length,V=Array(J),Tf=0;Tf<J;++Tf)for(var Yi=O[Tf],PG=Yi.length,L4=V[Tf]=[],RB,qG=0;qG<PG;++qG)(RB=Yi[qG])&&H.call(RB,RB.__data__,qG,Yi)&&L4.push(RB);return new wr(V,this._parents)},
data:function(H,O){if(!H)return CT=Array(this.size()),qG=-1,this.each(function(k9){CT[++qG]=k9}),CT;
var J=O?N:M,V=this._parents,Tf=this._groups;typeof H!=="function"&&(H=x(H));for(var Yi=Tf.length,PG=Array(Yi),L4=Array(Yi),RB=Array(Yi),qG=0;qG<Yi;++qG){var EZ=V[qG],yh=Tf[qG],Az=yh.length,CT=H.call(EZ,EZ&&EZ.__data__,qG,V),CX=CT.length,rf=L4[qG]=Array(CX),Zg=PG[qG]=Array(CX);Az=RB[qG]=Array(Az);J(EZ,yh,rf,Zg,Az,CT,O);yh=EZ=0;for(var U4;EZ<CX;++EZ)if(Az=rf[EZ]){for(EZ>=yh&&(yh=EZ+1);!(U4=Zg[yh])&&++yh<CX;);Az._next=U4||null}}PG=new wr(PG,V);PG._enter=L4;PG._exit=RB;return PG},
exit:function(){return new wr(this._exit||this._groups.map(m),this._parents)},
merge:function(H){var O=this._groups;H=H._groups;for(var J=O.length,V=Math.min(J,H.length),Tf=Array(J),Yi=0;Yi<V;++Yi)for(var PG=O[Yi],L4=H[Yi],RB=PG.length,qG=Tf[Yi]=Array(RB),EZ,yh=0;yh<RB;++yh)if(EZ=PG[yh]||L4[yh])qG[yh]=EZ;for(;Yi<J;++Yi)Tf[Yi]=O[Yi];return new wr(Tf,this._parents)},
order:function(){for(var H=this._groups,O=-1,J=H.length;++O<J;)for(var V=H[O],Tf=V.length-1,Yi=V[Tf],PG;--Tf>=0;)if(PG=V[Tf])Yi&&Yi!==PG.nextSibling&&Yi.parentNode.insertBefore(PG,Yi),Yi=PG;return this},
sort:function(H){function O(yh,Az){return yh&&Az?H(yh.__data__,Az.__data__):!yh-!Az}
H||(H=W);for(var J=this._groups,V=J.length,Tf=Array(V),Yi=0;Yi<V;++Yi){for(var PG=J[Yi],L4=PG.length,RB=Tf[Yi]=Array(L4),qG,EZ=0;EZ<L4;++EZ)if(qG=PG[EZ])RB[EZ]=qG;RB.sort(O)}return(new wr(Tf,this._parents)).order()},
call:function(){var H=arguments[0];arguments[0]=this;H.apply(null,arguments);return this},
nodes:function(){var H=Array(this.size()),O=-1;this.each(function(){H[++O]=this});
return H},
node:function(){for(var H=this._groups,O=0,J=H.length;O<J;++O)for(var V=H[O],Tf=0,Yi=V.length;Tf<Yi;++Tf){var PG=V[Tf];if(PG)return PG}return null},
size:function(){var H=0;this.each(function(){++H});
return H},
empty:function(){return!this.node()},
each:function(H){for(var O=this._groups,J=0,V=O.length;J<V;++J)for(var Tf=O[J],Yi=0,PG=Tf.length,L4;Yi<PG;++Yi)(L4=Tf[Yi])&&H.call(L4,L4.__data__,Yi,Tf);return this},
attr:function(H,O){var J=Y(H);if(arguments.length<2){var V=this.node();return J.local?V.getAttributeNS(J.space,J.local):V.getAttribute(J)}return this.each((O==null?J.local?q:U:typeof O==="function"?J.local?p4:K:J.local?ed:f)(J,O))},
style:function(H,O,J){return arguments.length>1?this.each((O==null?sc:typeof O==="function"?xi:Gf)(H,O,J==null?"":J)):ki(this.node(),H)},
property:function(H,O){return arguments.length>1?this.each((O==null?WG:typeof O==="function"?Uc:rJ)(H,O)):this.node()[H]},
text:function(H){return arguments.length?this.each(H==null?CV:(typeof H==="function"?LV:Bm)(H)):this.node().textContent},
html:function(H){return arguments.length?this.each(H==null?I$:(typeof H==="function"?hz:bc)(H)):this.node().innerHTML},
append:function(H){var O=typeof H==="function"?H:Z(H);return this.select(function(){return this.appendChild(O.apply(this,arguments))})},
insert:function(H,O){var J=typeof H==="function"?H:Z(H),V=O==null?TU:typeof O==="function"?O:z(O);return this.select(function(){return this.insertBefore(J.apply(this,arguments),V.apply(this,arguments)||null)})},
remove:function(){return this.each(Wm)},
clone:function(H){return this.select(H?cG:z2)},
datum:function(H){return arguments.length?this.property("__data__",H):this.node().__data__},
on:function(H,O,J){var V=pX(H+""),Tf=V.length,Yi;if(arguments.length<2){var PG=this.node().__on;if(PG)for(var L4=0,RB=PG.length,qG;L4<RB;++L4){var EZ=0;for(qG=PG[L4];EZ<Tf;++EZ)if((Yi=V[EZ]).type===qG.type&&Yi.name===qG.name)return qG.value}}else{PG=O?kl:OZ;J==null&&(J=!1);for(EZ=0;EZ<Tf;++EZ)this.each(PG(V[EZ],O,J));return this}},
dispatch:function(H,O){return this.each((typeof O==="function"?jd:Yl)(H,O))}};
var $y2=0;Qh.prototype=function(){return new Qh}.prototype={constructor:Qh,
get:function(H){for(var O=this._;!(O in H);)if(!(H=H.parentNode))return;return H[O]},
set:function(H,O){return H[this._]=O},
remove:function(H){return this._ in H&&delete H[this._]},
toString:function(){return this._}};
var i7=1/.7,IU9=/^#([0-9a-f]{3})$/,TwI=/^#([0-9a-f]{6})$/,em2=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),lUs=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),cwm=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),i7g=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*\\)$"),
pT8=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),YsO=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*\\)$"),SI6={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};
ds(ec,ZK,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
ds(iW,ND,mq(ec,{brighter:function(H){H=H==null?i7:Math.pow(i7,H);return new iW(this.r*H,this.g*H,this.b*H,this.opacity)},
darker:function(H){H=H==null?.7:Math.pow(.7,H);return new iW(this.r*H,this.g*H,this.b*H,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+Rh(this.r)+Rh(this.g)+Rh(this.b)},
toString:function(){var H=this.opacity;H=isNaN(H)?1:Math.max(0,Math.min(1,H));return(H===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(H===1?")":", "+H+")")}}));
ds($a,cU,mq(ec,{brighter:function(H){H=H==null?i7:Math.pow(i7,H);return new $a(this.h,this.s,this.l*H,this.opacity)},
darker:function(H){H=H==null?.7:Math.pow(.7,H);return new $a(this.h,this.s,this.l*H,this.opacity)},
rgb:function(){var H=this.h%360+(this.h<0)*360,O=this.l,J=O+(O<.5?O:1-O)*(isNaN(H)||isNaN(this.s)?0:this.s);O=2*O-J;return new iW(h1(H>=240?H-240:H+120,O,J),h1(H,O,J),h1(H<120?H+240:H-120,O,J),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 JcU=Math.PI/180,rcl=180/Math.PI,XOU=4/29,TL=6/29,WGz=3*TL*TL,aUO=TL*TL*TL;ds(mQ,function(H,O,J,V){return arguments.length===1?aj(H):new mQ(H,O,J,V==null?1:V)},mq(ec,{brighter:function(H){return new mQ(this.l+18*(H==null?1:H),this.a,this.b,this.opacity)},
darker:function(H){return new mQ(this.l-18*(H==null?1:H),this.a,this.b,this.opacity)},
rgb:function(){var H=(this.l+16)/116,O=isNaN(this.a)?H:H+this.a/500,J=isNaN(this.b)?H:H-this.b/200;O=.96422*oB(O);H=1*oB(H);J=.82521*oB(J);return new iW(ZX(3.1338561*O-1.6168667*H-.4906146*J),ZX(-.9787684*O+1.9161415*H+.033454*J),ZX(.0719453*O-.2289914*H+1.4052427*J),this.opacity)}}));
ds(mR,ag,mq(ec,{brighter:function(H){return new mR(this.h,this.c,this.l+18*(H==null?1:H),this.opacity)},
darker:function(H){return new mR(this.h,this.c,this.l-18*(H==null?1:H),this.opacity)},
rgb:function(){return aj(this).rgb()}}));
var b2z=1.78277*-.29227-.1347134789;ds(vm,zU,mq(ec,{brighter:function(H){H=H==null?i7:Math.pow(i7,H);return new vm(this.h,this.s,this.l*H,this.opacity)},
darker:function(H){H=H==null?.7:Math.pow(.7,H);return new vm(this.h,this.s,this.l*H,this.opacity)},
rgb:function(){var H=isNaN(this.h)?0:(this.h+120)*JcU,O=+this.l,J=isNaN(this.s)?0:this.s*O*(1-O),V=Math.cos(H);H=Math.sin(H);return new iW(255*(O+J*(-.14861*V+1.78277*H)),255*(O+J*(-.29227*V+-.90649*H)),255*(O+1.97294*V*J),this.opacity)}}));
var kqZ=function J(O){function V(Yi,PG){var L4=Tf((Yi=ND(Yi)).r,(PG=ND(PG)).r),RB=Tf(Yi.g,PG.g),qG=Tf(Yi.b,PG.b),EZ=HM(Yi.opacity,PG.opacity);return function(yh){Yi.r=L4(yh);Yi.g=RB(yh);Yi.b=qG(yh);Yi.opacity=EZ(yh);return Yi+""}}
var Tf=je(O);V.gamma=J;return V}(1),cGO=h2(function(O){var J=O.length-1;
return function(V){var Tf=V<=0?V=0:V>=1?(V=1,J-1):Math.floor(V*J),Yi=O[Tf],PG=O[Tf+1];return sX((V-Tf/J)*J,Tf>0?O[Tf-1]:2*Yi-PG,Yi,PG,Tf<J-1?O[Tf+2]:2*PG-Yi)}});
h2(function(O){var J=O.length;return function(V){var Tf=Math.floor(((V%=1)<0?++V:V)*J);return sX((V-Tf/J)*J,O[(Tf+J-1)%J],O[Tf%J],O[(Tf+1)%J],O[(Tf+2)%J])}});
var lMd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ccG=new RegExp(lMd.source,"g"),ofR=180/Math.PI,xCc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},I1,Gqt,HUz,hBQ,pd9=BL(function(O){if(O==="none")return xCc;I1||(I1=document.createElement("DIV"),Gqt=document.documentElement,HUz=document.defaultView);I1.style.transform=O;O=HUz.getComputedStyle(Gqt.appendChild(I1),null).getPropertyValue("transform");Gqt.removeChild(I1);O=O.slice(7,-1).split(",");return nX(+O[0],+O[1],+O[2],+O[3],
+O[4],+O[5])},"px, ","px)","deg)"),YzI=BL(function(O){if(O==null)return xCc;
hBQ||(hBQ=document.createElementNS("http://www.w3.org/2000/svg","g"));hBQ.setAttribute("transform",O);if(!(O=hBQ.transform.baseVal.consolidate()))return xCc;O=O.matrix;return nX(O.a,O.b,O.c,O.d,O.e,O.f)},", ",")",")");
$y(NV);$y(HM);Wh(NV);Wh(HM);s8(NV);var O24=s8(HM),e5=0,fs=0,qp=0,yxF,V2,vp6=0,Ju=0,a0c=0,t8=typeof performance==="object"&&performance.now?performance:Date,Ac6=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(O){setTimeout(O,17)};
Qe.prototype=jL.prototype={constructor:Qe,restart:function(O,J,V){if(typeof O!=="function")throw new TypeError("ye");V=(V==null?U1():+V)+(J==null?0:+J);this._next||V2===this||(V2?V2._next=this:yxF=this,V2=this);this._call=O;this._time=V;kX()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,kX())}};
var yw2=I("start","end","interrupt"),Ctd=[],arL=et.prototype.constructor,N86=0,pH=et.prototype;Cj.prototype=function(O){return et().transition(O)}.prototype={constructor:Cj,
select:function(O){var J=this._name,V=this._id;typeof O!=="function"&&(O=z(O));for(var Tf=this._groups,Yi=Tf.length,PG=Array(Yi),L4=0;L4<Yi;++L4)for(var RB=Tf[L4],qG=RB.length,EZ=PG[L4]=Array(qG),yh,Az,CT=0;CT<qG;++CT)(yh=RB[CT])&&(Az=O.call(yh,yh.__data__,CT,RB))&&("__data__"in yh&&(Az.__data__=yh.__data__),EZ[CT]=Az,i2F(EZ[CT],J,V,CT,EZ,C0(yh,V)));return new Cj(PG,this._parents,J,V)},
filter:function(O){typeof O!=="function"&&(O=Mp$(O));for(var J=this._groups,V=J.length,Tf=Array(V),Yi=0;Yi<V;++Yi)for(var PG=J[Yi],L4=PG.length,RB=Tf[Yi]=[],qG,EZ=0;EZ<L4;++EZ)(qG=PG[EZ])&&O.call(qG,qG.__data__,EZ,PG)&&RB.push(qG);return new Cj(Tf,this._parents,this._name,this._id)},
merge:function(O){if(O._id!==this._id)throw Error();var J=this._groups;O=O._groups;for(var V=J.length,Tf=Math.min(V,O.length),Yi=Array(V),PG=0;PG<Tf;++PG)for(var L4=J[PG],RB=O[PG],qG=L4.length,EZ=Yi[PG]=Array(qG),yh,Az=0;Az<qG;++Az)if(yh=L4[Az]||RB[Az])EZ[Az]=yh;for(;PG<V;++PG)Yi[PG]=J[PG];return new Cj(Yi,this._parents,this._name,this._id)},
selection:function(){return new arL(this._groups,this._parents)},
transition:function(){for(var O=this._name,J=this._id,V=++N86,Tf=this._groups,Yi=Tf.length,PG=0;PG<Yi;++PG)for(var L4=Tf[PG],RB=L4.length,qG,EZ=0;EZ<RB;++EZ)if(qG=L4[EZ]){var yh=C0(qG,J);i2F(qG,O,V,EZ,L4,{time:yh.time+yh.delay+yh.duration,delay:0,duration:yh.duration,ease:yh.ease})}return new Cj(Tf,this._parents,O,V)},
call:pH.call,nodes:pH.nodes,node:pH.node,size:pH.size,empty:pH.empty,each:pH.each,on:function(O,J){var V=this._id;return arguments.length<2?C0(this.node(),V).on.on(O):this.each(H7d(V,O,J))},
attr:function(O,J){var V=Y(O),Tf=V==="transform"?YzI:UCV;return this.attrTween(O,typeof J==="function"?(V.local?hm2:dyI)(V,Tf,YIi(this,"attr."+O,J)):J==null?(V.local?zms:Pt2)(V):(V.local?Qz1:myO)(V,Tf,J+""))},
attrTween:function(O,J){var V="attr."+O;if(arguments.length<2)return(V=this.tween(V))&&V._value;if(J==null)return this.tween(V,null);if(typeof J!=="function")throw Error();var Tf=Y(O);return this.tween(V,(Tf.local?sz2:uTH)(Tf,J))},
style:function(O,J,V){var Tf=O==="transform"?pd9:UCV;return J==null?this.styleTween(O,gLm(O,Tf)).on("end.style."+O,Ssm(O)):this.styleTween(O,typeof J==="function"?WY8(O,Tf,YIi(this,"style."+O,J)):JwI(O,Tf,J+""),V)},
styleTween:function(O,J,V){var Tf="style."+O;if(arguments.length<2)return(Tf=this.tween(Tf))&&Tf._value;if(J==null)return this.tween(Tf,null);if(typeof J!=="function")throw Error();return this.tween(Tf,XTI(O,J,V==null?"":V))},
text:function(O){return this.tween("text",typeof O==="function"?b7I(YIi(this,"text",O)):rwg(O==null?"":O+""))},
remove:function(){return this.on("end.remove",Nwd(this._id))},
tween:function(O,J){var V=this._id;if(arguments.length<2){V=C0(this.node(),V).tween;for(var Tf=0,Yi=V.length,PG;Tf<Yi;++Tf)if((PG=V[Tf]).name===O)return PG.value;return null}return this.each((J==null?wTL:Z7t)(V,O,J))},
delay:function(O){var J=this._id;return arguments.length?this.each((typeof O==="function"?LYI:xyg)(J,O)):C0(this.node(),J).delay},
duration:function(O){var J=this._id;return arguments.length?this.each((typeof O==="function"?GVI:O71)(J,O)):C0(this.node(),J).duration},
ease:function(O){var J=this._id;return arguments.length?this.each(nLH(J,O)):C0(this.node(),J).ease}};
var nfc={time:null,delay:0,duration:250,ease:function(O){return((O*=2)<=1?O*O*O:(O-=2)*O*O+2)/2}};
et.prototype.transition=function(O){var J;if(O instanceof Cj){var V=O._id;O=O._name}else V=++N86,(J=nfc).time=U1(),O=O==null?null:O+"";for(var Tf=this._groups,Yi=Tf.length,PG=0;PG<Yi;++PG)for(var L4=Tf[PG],RB=L4.length,qG,EZ=0;EZ<RB;++EZ)if(qG=L4[EZ]){var yh=qG,Az=O,CT=V,CX=EZ,rf=L4,Zg;if(!(Zg=J))a:{Zg=void 0;for(var U4=V;!(Zg=qG.__transition)||!(Zg=Zg[U4]);)if(!(qG=qG.parentNode)){Zg=(nfc.time=U1(),nfc);break a}}i2F(yh,Az,CT,CX,rf,Zg)}return new Cj(Tf,this._parents,O,V)};
["e","w"].map(aMd);["n","s"].map(aMd);"n e s w nw ne se sw".split(" ").map(aMd);vf4.prototype=function(){return new vf4}.prototype={constructor:vf4,
moveTo:function(O,J){this._+="M"+(this._x0=this._x1=+O)+","+(this._y0=this._y1=+J)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(O,J){this._+="L"+(this._x1=+O)+","+(this._y1=+J)},
bezierCurveTo:function(O,J,V,Tf,Yi,PG){this._+="C"+ +O+","+ +J+","+ +V+","+ +Tf+","+(this._x1=+Yi)+","+(this._y1=+PG)},
rect:function(O,J,V,Tf){this._+="M"+(this._x0=this._x1=+O)+","+(this._y0=this._y1=+J)+"h"+ +V+"v"+ +Tf+"h"+-V+"Z"},
toString:function(){return this._}};
CQB.prototype=tyl.prototype={constructor:CQB,has:function(O){return" "+O in this},
get:function(O){return this[" "+O]},
set:function(O,J){this[" "+O]=J;return this},
remove:function(O){O=" "+O;return O in this&&delete this[O]},
clear:function(){for(var O in this)O[0]===" "&&delete this[O]},
keys:function(){var O=[],J;for(J in this)J[0]===" "&&O.push(J.slice(1));return O},
values:function(){var O=[],J;for(J in this)J[0]===" "&&O.push(this[J]);return O},
entries:function(){var O=[],J;for(J in this)J[0]===" "&&O.push({key:J.slice(1),value:this[J]});return O},
size:function(){var O=0,J;for(J in this)J[0]===" "&&++O;return O},
empty:function(){for(var O in this)if(O[0]===" ")return!1;return!0},
each:function(O){for(var J in this)J[0]===" "&&O(this[J],J.slice(1),this)}};
var bN=tyl.prototype;whd.prototype=function(O,J){var V=new whd;if(O instanceof whd)O.each(function(PG){V.add(PG)});
else if(O){var Tf=-1,Yi=O.length;if(J==null)for(;++Tf<Yi;)V.add(O[Tf]);else for(;++Tf<Yi;)V.add(J(O[Tf],Tf,O))}return V}.prototype={constructor:whd,
has:bN.has,add:function(O){this[" "+O]=O;return this},
remove:bN.remove,clear:bN.clear,values:bN.keys,size:bN.size,empty:bN.empty,each:bN.each};var qIZ={},yci={},veI=VyN(",").parse,yGg=VyN("\t").parse;FGD(veI);FGD(yGg);var Tg=function(O,J,V){J=new CoD(J==null?Uy7:J,V==null?kV8:V,NaN,NaN,NaN,NaN);return O==null?J:J.addAll(O)}.prototype=CoD.prototype;
Tg.copy=function(){var O=new CoD(this._x,this._y,this._x0,this._y0,this._x1,this._y1),J=this._root,V,Tf;if(!J)return O;if(!J.length)return O._root=KGV(J),O;for(V=[{source:J,target:O._root=Array(4)}];J=V.pop();)for(var Yi=0;Yi<4;++Yi)if(Tf=J.source[Yi])Tf.length?V.push({source:Tf,target:J.target[Yi]=Array(4)}):J.target[Yi]=KGV(Tf);return O};
Tg.add=function(O){var J=+this._x.call(null,O),V=+this._y.call(null,O);return DCu(this.cover(J,V),J,V,O)};
Tg.addAll=function(O){var J,V,Tf=O.length,Yi,PG,L4=Array(Tf),RB=Array(Tf),qG=Infinity,EZ=Infinity,yh=-Infinity,Az=-Infinity;for(V=0;V<Tf;++V)isNaN(Yi=+this._x.call(null,J=O[V]))||isNaN(PG=+this._y.call(null,J))||(L4[V]=Yi,RB[V]=PG,Yi<qG&&(qG=Yi),Yi>yh&&(yh=Yi),PG<EZ&&(EZ=PG),PG>Az&&(Az=PG));yh<qG&&(qG=this._x0,yh=this._x1);Az<EZ&&(EZ=this._y0,Az=this._y1);this.cover(qG,EZ).cover(yh,Az);for(V=0;V<Tf;++V)DCu(this,L4[V],RB[V],O[V]);return this};
Tg.cover=function(O,J){if(isNaN(O=+O)||isNaN(J=+J))return this;var V=this._x0,Tf=this._y0,Yi=this._x1,PG=this._y1;if(isNaN(V))Yi=(V=Math.floor(O))+1,PG=(Tf=Math.floor(J))+1;else if(V>O||O>Yi||Tf>J||J>PG){var L4=Yi-V,RB=this._root,qG;switch(qG=(J<(Tf+PG)/2)<<1|O<(V+Yi)/2){case 0:do{var EZ=Array(4);EZ[qG]=RB;RB=EZ}while(L4*=2,Yi=V+L4,PG=Tf+L4,O>Yi||J>PG);break;case 1:do EZ=Array(4),EZ[qG]=RB,RB=EZ;while(L4*=2,V=Yi-L4,PG=Tf+L4,V>O||J>PG);break;case 2:do EZ=Array(4),EZ[qG]=RB,RB=EZ;while(L4*=2,Yi=V+L4,
Tf=PG-L4,O>Yi||Tf>J);break;case 3:do EZ=Array(4),EZ[qG]=RB,RB=EZ;while(L4*=2,V=Yi-L4,Tf=PG-L4,V>O||Tf>J)}this._root&&this._root.length&&(this._root=RB)}else return this;this._x0=V;this._y0=Tf;this._x1=Yi;this._y1=PG;return this};
Tg.data=function(){var O=[];this.visit(function(J){if(!J.length){do O.push(J.data);while(J=J.next)}});
return O};
Tg.extent=function(O){return arguments.length?this.cover(+O[0][0],+O[0][1]).cover(+O[1][0],+O[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Tg.find=function(O,J,V){var Tf=this._x0,Yi=this._y0,PG,L4,RB,qG,EZ=this._x1,yh=this._y1,Az=[],CT=this._root,CX;CT&&Az.push(new I3(CT,Tf,Yi,EZ,yh));V==null?V=Infinity:(Tf=O-V,Yi=J-V,EZ=O+V,yh=J+V,V*=V);for(;CX=Az.pop();)if(!(!(CT=CX.node)||(PG=CX.x0)>EZ||(L4=CX.y0)>yh||(RB=CX.x1)<Tf||(qG=CX.y1)<Yi))if(CT.length){CX=(PG+RB)/2;var rf=(L4+qG)/2;Az.push(new I3(CT[3],CX,rf,RB,qG),new I3(CT[2],PG,rf,CX,qG),new I3(CT[1],CX,L4,RB,rf),new I3(CT[0],PG,L4,CX,rf));if(CT=(J>=rf)<<1|O>=CX)CX=Az[Az.length-1],Az[Az.length-
1]=Az[Az.length-1-CT],Az[Az.length-1-CT]=CX}else if(CX=O-+this._x.call(null,CT.data),rf=J-+this._y.call(null,CT.data),CX=CX*CX+rf*rf,CX<V){var Zg=Math.sqrt(V=CX);Tf=O-Zg;Yi=J-Zg;EZ=O+Zg;yh=J+Zg;Zg=CT.data}return Zg};
Tg.remove=function(O){if(isNaN(qG=+this._x.call(null,O))||isNaN(EZ=+this._y.call(null,O)))return this;var J,V=this._root,Tf,Yi=this._x0,PG=this._y0,L4=this._x1,RB=this._y1,qG,EZ,yh,Az,CT,CX,rf;if(!V)return this;if(V.length)for(;;){(CT=qG>=(yh=(Yi+L4)/2))?Yi=yh:L4=yh;(CX=EZ>=(Az=(PG+RB)/2))?PG=Az:RB=Az;if(!(J=V,V=V[rf=CX<<1|CT]))return this;if(!V.length)break;if(J[rf+1&3]||J[rf+2&3]||J[rf+3&3]){var Zg=J;var U4=rf}}for(;V.data!==O;)if(!(Tf=V,V=V.next))return this;(O=V.next)&&delete V.next;if(Tf)return O?
Tf.next=O:delete Tf.next,this;if(!J)return this._root=O,this;O?J[rf]=O:delete J[rf];(V=J[0]||J[1]||J[2]||J[3])&&V===(J[3]||J[2]||J[1]||J[0])&&!V.length&&(Zg?Zg[U4]=V:this._root=V);return this};
Tg.removeAll=function(O){for(var J=0,V=O.length;J<V;++J)this.remove(O[J]);return this};
Tg.root=function(){return this._root};
Tg.size=function(){var O=0;this.visit(function(J){if(!J.length){do++O;while(J=J.next)}});
return O};
Tg.visit=function(O){var J=[],V,Tf=this._root,Yi,PG,L4,RB,qG;for(Tf&&J.push(new I3(Tf,this._x0,this._y0,this._x1,this._y1));V=J.pop();)if(!O(Tf=V.node,PG=V.x0,L4=V.y0,RB=V.x1,qG=V.y1)&&Tf.length){V=(PG+RB)/2;var EZ=(L4+qG)/2;(Yi=Tf[3])&&J.push(new I3(Yi,V,EZ,RB,qG));(Yi=Tf[2])&&J.push(new I3(Yi,PG,EZ,V,qG));(Yi=Tf[1])&&J.push(new I3(Yi,V,L4,RB,EZ));(Yi=Tf[0])&&J.push(new I3(Yi,PG,L4,V,EZ))}};
Tg.visitAfter=function(O){var J=[],V=[],Tf;for(this._root&&J.push(new I3(this._root,this._x0,this._y0,this._x1,this._y1));Tf=J.pop();){var Yi=Tf.node;if(Yi.length){var PG,L4=Tf.x0,RB=Tf.y0,qG=Tf.x1,EZ=Tf.y1,yh=(L4+qG)/2,Az=(RB+EZ)/2;(PG=Yi[0])&&J.push(new I3(PG,L4,RB,yh,Az));(PG=Yi[1])&&J.push(new I3(PG,yh,RB,qG,Az));(PG=Yi[2])&&J.push(new I3(PG,L4,Az,yh,EZ));(PG=Yi[3])&&J.push(new I3(PG,yh,Az,qG,EZ))}V.push(Tf)}for(;Tf=V.pop();)O(Tf.node,Tf.x0,Tf.y0,Tf.x1,Tf.y1);return this};
Tg.x=function(O){return arguments.length?(this._x=O,this):this._x};
Tg.y=function(O){return arguments.length?(this._y=O,this):this._y};
var qst=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;wOG.prototype=Z2c.prototype;Z2c.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 $TU,I_Z={"%":function(O,J){return(O*100).toFixed(J)},
b:function(O){return Math.round(O).toString(2)},
c:function(O){return O+""},
d:function(O){return Math.round(O).toString(10)},
e:function(O,J){return O.toExponential(J)},
f:function(O,J){return O.toFixed(J)},
g:function(O,J){return O.toPrecision(J)},
o:function(O){return Math.round(O).toString(8)},
p:function(O,J){return RhZ(O*100,J)},
r:RhZ,s:function(O,J){var V=ZdJ(O,J);if(!V)return O+"";var Tf=V[0];V=V[1];V=V-($TU=Math.max(-8,Math.min(8,Math.floor(V/3)))*3)+1;var Yi=Tf.length;return V===Yi?Tf:V>Yi?Tf+Array(V-Yi+1).join("0"):V>0?Tf.slice(0,V)+"."+Tf.slice(V):"0."+Array(1-V).join("0")+ZdJ(O,Math.max(0,J+V-1))[0]},
X:function(O){return Math.round(O).toString(16).toUpperCase()},
x:function(O){return Math.round(O).toString(16)}},B8t="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),CIm;
(function(O){return CIm=FYg(O)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});or.prototype={constructor:or,reset:function(){this.s=this.t=0},
add:function(O){T8u(sJF,O,this.t);T8u(this,sJF.s,this.s);this.s?this.t+=sJF.t:this.s=sJF.t},
valueOf:function(){return this.s}};
var sJF=new or,uE=Math.PI,VL=uE/2,gY6=uE/4,wd1=uE*2,Myc=uE/180,wS=Math.abs,H2J=Math.atan,YSU=Math.atan2,qo=Math.cos,Ng=Math.sin,zB4=Math.sqrt;new or;new or;new or;var N4F=new or;(function(O,J,V,Tf){return function(Yi){function PG(tV,Yr){O(tV,Yr)&&Yi.point(tV,Yr)}
function L4(tV,Yr){CT.point(tV,Yr)}
function RB(){yW.point=L4;CT.lineStart()}
function qG(){yW.point=PG;CT.lineEnd()}
function EZ(tV,Yr){xO.push([tV,Yr]);rf.point(tV,Yr)}
function yh(){rf.lineStart();xO=[]}
function Az(){EZ(xO[0][0],xO[0][1]);rf.lineEnd();var tV=rf.clean(),Yr=CX.result(),UX=Yr.length,Yv;xO.pop();U4.push(xO);xO=null;if(UX)if(tV&1){if(UX=Yr[0],(Yr=UX.length-1)>0){Zg||(Yi.polygonStart(),Zg=!0);Yi.lineStart();for(tV=0;tV<Yr;++tV)Yi.point((Yv=UX[tV])[0],Yv[1]);Yi.lineEnd()}}else UX>1&&tV&2&&Yr.push(Yr.pop().concat(Yr.shift())),k9.push(Yr.filter(ETd))}
var CT=J(Yi),CX=KYL(),rf=J(CX),Zg=!1,U4,k9,xO,yW={point:PG,lineStart:RB,lineEnd:qG,polygonStart:function(){yW.point=EZ;yW.lineStart=yh;yW.lineEnd=Az;k9=[];U4=[]},
polygonEnd:function(){yW.point=PG;yW.lineStart=RB;yW.lineEnd=qG;var tV=k9,Yr=tV.length;var UX=-1;for(var Yv=0,MI,ah;++UX<Yr;)Yv+=tV[UX].length;for(MI=Array(Yv);--Yr>=0;)for(ah=tV[Yr],UX=ah.length;--UX>=0;)MI[--Yv]=ah[UX];k9=MI;tV=U4;Yr=Tf[0];Yv=Tf[1];var KT=Ng(Yv);UX=[Ng(Yr),-qo(Yr),0];ah=MI=0;N4F.reset();KT===1?Yv=VL+1E-6:KT===-1&&(Yv=-VL-1E-6);KT=0;for(var Pm=tV.length;KT<Pm;++KT)if(sG=(j2=tV[KT]).length){var j2,sG,kv=j2[sG-1],y9=kv[0],HO=kv[1]/2+gY6,uXf=Ng(HO),SSu=qo(HO);for(HO=0;HO<sG;++HO,y9=
gfG,uXf=JBV,SSu=TW,kv=L$i){var L$i=j2[HO],gfG=L$i[0];TW=L$i[1]/2+gY6;var JBV=Ng(TW),TW=qo(TW),YR=gfG-y9,SIG=YR>=0?1:-1,Jcf=SIG*YR,xSd=Jcf>uE;uXf*=JBV;N4F.add(YSU(uXf*SIG*Ng(Jcf),SSu*TW+uXf*qo(Jcf)));MI+=xSd?YR+SIG*wd1:YR;xSd^y9>=Yr^gfG>=Yr&&(kv=l_6(ekV(kv),ekV(L$i)),cBt(kv),y9=l_6(UX,kv),cBt(y9),y9=(xSd^YR>=0?-1:1)*PQJ(y9[2]),Yv>y9||Yv===y9&&(kv[0]||kv[1]))&&(ah+=xSd^YR>=0?1:-1)}}tV=(MI<-1E-6||MI<1E-6&&N4F<-1E-6)^ah&1;k9.length?(Zg||(Yi.polygonStart(),Zg=!0),Rmd(k9,BId,tV,V,Yi)):tV&&(Zg||(Yi.polygonStart(),
Zg=!0),Yi.lineStart(),V(null,null,1,Yi),Yi.lineEnd());Zg&&(Yi.polygonEnd(),Zg=!1);k9=U4=null},
sphere:function(){Yi.polygonStart();Yi.lineStart();V(null,null,1,Yi);Yi.lineEnd();Yi.polygonEnd()}};
return yW}})(function(){return!0},function(O){var J=NaN,V=NaN,Tf=NaN,Yi;
return{lineStart:function(){O.lineStart();Yi=1},
point:function(PG,L4){var RB=PG>0?uE:-uE,qG=wS(PG-J);if(wS(qG-uE)<1E-6)O.point(J,V=(V+L4)/2>0?VL:-VL),O.point(Tf,V),O.lineEnd(),O.lineStart(),O.point(RB,V),O.point(PG,V),Yi=0;else if(Tf!==RB&&qG>=uE){wS(J-Tf)<1E-6&&(J-=Tf*1E-6);wS(PG-RB)<1E-6&&(PG-=RB*1E-6);qG=J;var EZ=V,yh=PG,Az,CT,CX=Ng(qG-yh);V=wS(CX)>1E-6?H2J((Ng(EZ)*(CT=qo(L4))*Ng(yh)-Ng(L4)*(Az=qo(EZ))*Ng(qG))/(Az*CT*CX)):(EZ+L4)/2;O.point(Tf,V);O.lineEnd();O.lineStart();O.point(RB,V);Yi=0}O.point(J=PG,V=L4);Tf=RB},
lineEnd:function(){O.lineEnd();J=V=NaN},
clean:function(){return 2-Yi}}},function(O,J,V,Tf){O==null?(V*=VL,Tf.point(-uE,V),Tf.point(0,V),Tf.point(uE,V),Tf.point(uE,0),Tf.point(uE,-V),Tf.point(0,-V),Tf.point(-uE,-V),Tf.point(-uE,0),Tf.point(-uE,V)):wS(O[0]-J[0])>1E-6?(O=O[0]<J[0]?uE:-uE,V=V*O/2,Tf.point(-O,V),Tf.point(0,V),Tf.point(O,V)):Tf.point(J[0],J[1])},[-uE,
-VL]);new or;new or;new or;new or;PoF.prototype={constructor:PoF,point:function(O,J){this.stream.point(O,J)},
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()}};
qo(30*Myc);(function(O){return function(J){var V=new PoF,Tf;for(Tf in O)V[Tf]=O[Tf];V.stream=J;return V}})({point:function(O,J){this.stream.point(O*Myc,J*Myc)}});
pWZ(function(O){return zB4(2/(1+O))}).invert=Fr(function(O){return 2*PQJ(O/2)});
pWZ(function(O){return(O=O>1?0:O<-1?uE:Math.acos(O))&&O/Ng(O)}).invert=Fr(function(O){return O});
zB4(3);Fr(H2J);Fr(PQJ);Fr(function(O){return 2*H2J(O)});
Do.prototype=a_h.prototype={constructor:Do,count:function(){return this.eachAfter($07)},
each:function(O){var J,V=[this],Tf;do{var Yi=V.reverse();for(V=[];J=Yi.pop();)if(O(J),J=J.children){var PG=0;for(Tf=J.length;PG<Tf;++PG)V.push(J[PG])}}while(V.length);return this},
eachAfter:function(O){for(var J,V=[this],Tf=[],Yi,PG;J=V.pop();)if(Tf.push(J),J=J.children)for(Yi=0,PG=J.length;Yi<PG;++Yi)V.push(J[Yi]);for(;J=Tf.pop();)O(J);return this},
eachBefore:function(O){for(var J,V=[this],Tf;J=V.pop();)if(O(J),J=J.children)for(Tf=J.length-1;Tf>=0;--Tf)V.push(J[Tf]);return this},
sum:function(O){return this.eachAfter(function(J){for(var V=+O(J.data)||0,Tf=J.children,Yi=Tf&&Tf.length;--Yi>=0;)V+=Tf[Yi].value;J.value=V})},
sort:function(O){return this.eachBefore(function(J){J.children&&J.children.sort(O)})},
path:function(O){var J=this;var V=J;var Tf=O;if(V!==Tf){var Yi=V.ancestors(),PG=Tf.ancestors(),L4=null;V=Yi.pop();for(Tf=PG.pop();V===Tf;)L4=V,V=Yi.pop(),Tf=PG.pop();V=L4}for(Tf=[J];J!==V;)J=J.parent,Tf.push(J);for(J=Tf.length;O!==V;)Tf.splice(J,0,O),O=O.parent;return Tf},
ancestors:function(){for(var O=this,J=[O];O=O.parent;)J.push(O);return J},
links:function(){var O=this,J=[];O.each(function(V){V!==O&&J.push({source:V.parent,target:V})});
return J},
copy:function(){return a_h(this).eachBefore(eKO)}};
(function(O,J){this._=O;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=J}).prototype=Object.create(Do.prototype);
var zhD=new Date,mCG=new Date,WJR=dG(function(){},function(O,J){O.setTime(+O+J)},function(O,J){return J-O});
WJR.every=function(O){O=Math.floor(O);return isFinite(O)&&O>0?O>1?dG(function(J){J.setTime(Math.floor(J/O)*O)},function(J,V){J.setTime(+J+V*O)},function(J,V){return(V-J)/O}):WJR:null};
dG(function(O){O.setTime(Math.floor(O/1E3)*1E3)},function(O,J){O.setTime(+O+J*1E3)},function(O,J){return(J-O)/1E3},function(O){return O.getUTCSeconds()});
dG(function(O){O.setTime(Math.floor(O/6E4)*6E4)},function(O,J){O.setTime(+O+J*6E4)},function(O,J){return(J-O)/6E4},function(O){return O.getMinutes()});
dG(function(O){var J=O.getTimezoneOffset()*6E4%36E5;J<0&&(J+=36E5);O.setTime(Math.floor((+O-J)/36E5)*36E5+J)},function(O,J){O.setTime(+O+J*36E5)},function(O,J){return(J-O)/36E5},function(O){return O.getHours()});
var CUl=dG(function(O){O.setHours(0,0,0,0)},function(O,J){O.setDate(O.getDate()+J)},function(O,J){return(J-O-(J.getTimezoneOffset()-O.getTimezoneOffset())*6E4)/864E5},function(O){return O.getDate()-1}),eo1=XM(0),dCB=XM(1);
XM(2);XM(3);var hhf=XM(4);XM(5);XM(6);dG(function(O){O.setDate(1);O.setHours(0,0,0,0)},function(O,J){O.setMonth(O.getMonth()+J)},function(O,J){return J.getMonth()-O.getMonth()+(J.getFullYear()-O.getFullYear())*12},function(O){return O.getMonth()});
var l7=dG(function(O){O.setMonth(0,1);O.setHours(0,0,0,0)},function(O,J){O.setFullYear(O.getFullYear()+J)},function(O,J){return J.getFullYear()-O.getFullYear()},function(O){return O.getFullYear()});
l7.every=function(O){return isFinite(O=Math.floor(O))&&O>0?dG(function(J){J.setFullYear(Math.floor(J.getFullYear()/O)*O);J.setMonth(0,1);J.setHours(0,0,0,0)},function(J,V){J.setFullYear(J.getFullYear()+V*O)}):null};
dG(function(O){O.setUTCSeconds(0,0)},function(O,J){O.setTime(+O+J*6E4)},function(O,J){return(J-O)/6E4},function(O){return O.getUTCMinutes()});
dG(function(O){O.setUTCMinutes(0,0,0)},function(O,J){O.setTime(+O+J*36E5)},function(O,J){return(J-O)/36E5},function(O){return O.getUTCHours()});
var yBh=dG(function(O){O.setUTCHours(0,0,0,0)},function(O,J){O.setUTCDate(O.getUTCDate()+J)},function(O,J){return(J-O)/864E5},function(O){return O.getUTCDate()-1}),lrI=rP(0),QAd=rP(1);
rP(2);rP(3);var sAi=rP(4);rP(5);rP(6);dG(function(O){O.setUTCDate(1);O.setUTCHours(0,0,0,0)},function(O,J){O.setUTCMonth(O.getUTCMonth()+J)},function(O,J){return J.getUTCMonth()-O.getUTCMonth()+(J.getUTCFullYear()-O.getUTCFullYear())*12},function(O){return O.getUTCMonth()});
var c_=dG(function(O){O.setUTCMonth(0,1);O.setUTCHours(0,0,0,0)},function(O,J){O.setUTCFullYear(O.getUTCFullYear()+J)},function(O,J){return J.getUTCFullYear()-O.getUTCFullYear()},function(O){return O.getUTCFullYear()});
c_.every=function(O){return isFinite(O=Math.floor(O))&&O>0?dG(function(J){J.setUTCFullYear(Math.floor(J.getUTCFullYear()/O)*O);J.setUTCMonth(0,1);J.setUTCHours(0,0,0,0)},function(J,V){J.setUTCFullYear(J.getUTCFullYear()+V*O)}):null};
var vYh={"-":"",_:" ",0:"0"},Ga=/^\s*\d+/,TCs=/^%/,Ir7=/[\\^$*+?|[\]().{}]/g,G5F;(function(O){G5F=cP7(O);aQR=G5F.utcFormat;v3z=G5F.utcParse;return G5F})({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||aQR("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||v3z("%Y-%m-%dT%H:%M:%S.%LZ");TB("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
TB("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");TB("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");TB("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");TB("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");TB("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");TB("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
TB("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");TB("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");TB("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");TB("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");TB("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var Z09=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(TB);U_(Z09);var PIg=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(TB);U_(PIg);var zot=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(TB);U_(zot);var m69=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(TB);
U_(m69);var QwI=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(TB);U_(QwI);var d6s=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(TB);U_(d6s);var ho7=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(TB);U_(ho7);var swI=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(TB);U_(swI);var u1s=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(TB);U_(u1s);var LUs=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(TB);U_(LUs);var x69=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(TB);U_(x69);var Gj1=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(TB);U_(Gj1);var O0H=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(TB);U_(O0H);var ne2=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(TB);U_(ne2);var MMs=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(TB);U_(MMs);var H0H=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(TB);U_(H0H);var NCT=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(TB);U_(NCT);var ge8=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(TB);U_(ge8);var SzO=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(TB);U_(SzO);var JGL=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(TB);U_(JGL);var WUm=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(TB);U_(WUm);var XdI=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(TB);U_(XdI);var rGI=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(TB);U_(rGI);var b0L=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(TB);U_(b0L);var oeT=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(TB);U_(oeT);var AG8=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(TB);U_(AG8);var jwd=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(TB);U_(jwd);O24(zU(300,.5,0),zU(-240,.5,1));O24(zU(-100,.75,.35),zU(80,1.5,.8));O24(zU(260,.75,.35),zU(80,1.5,.8));zU();ND();dS4(TB("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
dS4(TB("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
dS4(TB("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
dS4(TB("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
u26.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(O,J){O=+O;J=+J;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(O,J):this._context.moveTo(O,J);break;case 1:this._point=2;default:this._context.lineTo(O,J)}}};
(function(O){function J(V){return new LJZ(O(V))}
J._curve=O;return J})(function(O){return new u26(O)});
LJZ.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(O,J){this._curve.point(J*Math.sin(O),J*-Math.cos(O))}};
LGi.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:uyG(this,this._t0,GTR(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(O,J){var V=NaN;O=+O;J=+J;if(O!==this._x1||J!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(O,J):this._context.moveTo(O,J);break;case 1:this._point=2;break;case 2:this._point=3;uyG(this,GTR(this,V=xTr(this,O,J)),V);break;default:uyG(this,this._t0,V=xTr(this,O,J))}this._x0=this._x1;this._x1=O;this._y0=this._y1;this._y1=J;this._t0=V}}};
(function(O){this._context=new OUu(O)}.prototype=Object.create(LGi.prototype)).point=function(O,J){LGi.prototype.point.call(this,J,O)};
OUu.prototype={moveTo:function(O,J){this._context.moveTo(J,O)},
closePath:function(){this._context.closePath()},
lineTo:function(O,J){this._context.lineTo(J,O)},
bezierCurveTo:function(O,J,V,Tf,Yi,PG){this._context.bezierCurveTo(J,O,Tf,V,PG,Yi)}};
Bo.prototype={constructor:Bo,scale:function(O){return O===1?this:new Bo(this.k*O,this.x,this.y)},
translate:function(O,J){return O===0&J===0?this:new Bo(this.k,this.x+this.k*O,this.y+this.k*J)},
apply:function(O){return[O[0]*this.k+this.x,O[1]*this.k+this.y]},
invert:function(O){return[(O[0]-this.x)/this.k,(O[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Bo(1,0,0);xJf=ZK;ff.svg=ff.svg;ff.xhtml=ff.xhtml;ff.xlink=ff.xlink;ff.xml=ff.xml;ff.xmlns=ff.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 ykr="hammer_"+(Math.random()*1E6|0),C0D=function(){var E=document||document;if(!E[ykr]){var B=function(){(function(I,T,e,c){function Y(mQ,NG,oB){return setTimeout(m(mQ,oB),NG)}
function v(mQ,NG,oB){return Array.isArray(mQ)?(y(mQ,oB[NG],oB),!0):!1}
function y(mQ,NG,oB){var ZX;if(mQ)if(mQ.forEach)mQ.forEach(NG,oB);else if(mQ.length!==c){var Ig=0;for(ZX=mQ.length;Ig<ZX;Ig++)NG.call(oB,mQ[Ig],Ig,mQ)}else for(Ig in mQ)mQ.hasOwnProperty(Ig)&&NG.call(oB,mQ[Ig],Ig,mQ)}
function Z(mQ,NG,oB){for(var ZX=Object.keys(NG),Ig=0,G2=ZX.length;Ig<G2;Ig++)if(!oB||oB&&mQ[ZX[Ig]]===c)mQ[ZX[Ig]]=NG[ZX[Ig]];return mQ}
function P(mQ,NG){return Z(mQ,NG,!0)}
function z(mQ,NG,oB){NG=NG.prototype;var ZX=mQ.prototype=Object.create(NG);ZX.constructor=mQ;ZX._super=NG;oB&&Z(ZX,oB)}
function m(mQ,NG){return function(){return mQ.apply(NG,arguments)}}
function u(mQ,NG){return typeof mQ=="function"?mQ.apply(NG?NG[0]||c:c,NG):mQ}
function x(mQ,NG,oB){y(N(NG),function(ZX){mQ.addEventListener(ZX,oB,!1)})}
function M(mQ,NG,oB){y(N(NG),function(ZX){mQ.removeEventListener(ZX,oB,!1)})}
function N(mQ){return mQ.trim().split(/\s+/g)}
function W(mQ,NG,oB){if(mQ.indexOf&&!oB)return mQ.indexOf(NG);for(var ZX=0,Ig=mQ.length;ZX<Ig;ZX++)if(oB&&mQ[ZX][oB]==NG||!oB&&mQ[ZX]===NG)return ZX;return-1}
function U(mQ,NG,oB){for(var ZX=[],Ig=[],G2=0,ag=mQ.length;G2<ag;G2++){var mR=NG?mQ[G2][NG]:mQ[G2];W(Ig,mR)<0&&ZX.push(mQ[G2]);Ig[G2]=mR}oB&&(ZX=NG?ZX.sort(function(zU,vm){return zU[NG]>vm[NG]}):ZX.sort());
return ZX}
function q(mQ,NG){for(var oB,ZX=NG[0].toUpperCase()+NG.slice(1),Ig=0,G2=jd.length;Ig<G2;Ig++)if(oB=(oB=jd[Ig])?oB+ZX:NG,oB in mQ)return oB;return c}
function f(mQ,NG){var oB=this;this.manager=mQ;this.callback=NG;this.element=mQ.element;this.target=mQ.options.inputTarget;this.domHandler=function(ZX){u(mQ.options.enable,[mQ])&&oB.handler(ZX)};
this.evEl&&x(this.element,this.evEl,this.domHandler);this.evTarget&&x(this.target,this.evTarget,this.domHandler);this.evWin&&x(I,this.evWin,this.domHandler)}
function ed(mQ){var NG;WL?NG=rJ:lT?NG=Uc:ZK?NG=CV:NG=WG;return new NG(mQ,K)}
function K(mQ,NG,oB){var ZX=oB.pointers.length,Ig=oB.changedPointers.length,G2=NG&1&&ZX-Ig===0;oB.isFirst=!!G2;oB.isFinal=!!(NG&12&&ZX-Ig===0);G2&&(mQ.session={});oB.eventType=NG;NG=mQ.session;ZX=oB.pointers;Ig=ZX.length;NG.firstInput||(NG.firstInput=p4(oB));Ig>1&&!NG.firstMultiple?NG.firstMultiple=p4(oB):Ig===1&&(NG.firstMultiple=!1);G2=NG.firstInput;var ag=(Ig=NG.firstMultiple)?Ig.center:G2.center,mR=oB.center=sc(ZX);oB.timeStamp=ds();oB.deltaTime=oB.timeStamp-G2.timeStamp;oB.angle=ki(ag,mR);oB.distance=
xi(ag,mR);G2=oB.center;ag=NG.offsetDelta||{};mR=NG.prevDelta||{};var zU=NG.prevInput||{};if(oB.eventType===1||zU.eventType===4)mR=NG.prevDelta={x:zU.deltaX||0,y:zU.deltaY||0},ag=NG.offsetDelta={x:G2.x,y:G2.y};oB.deltaX=mR.x+(G2.x-ag.x);oB.deltaY=mR.y+(G2.y-ag.y);oB.offsetDirection=Gf(oB.deltaX,oB.deltaY);Ig?(G2=Ig.pointers,G2=xi(ZX[0],ZX[1],ND)/xi(G2[0],G2[1],ND)):G2=1;oB.scale=G2;Ig?(Ig=Ig.pointers,ZX=ki(ZX[1],ZX[0],ND)-ki(Ig[1],Ig[0],ND)):ZX=0;oB.rotation=ZX;ag=NG.lastInterval||oB;ZX=oB.timeStamp-
ag.timeStamp;oB.eventType!=8&&(ZX>25||ag.velocity===c)?(G2=ag.deltaX-oB.deltaX,ag=ag.deltaY-oB.deltaY,mR=G2/ZX||0,zU=ag/ZX||0,ZX=mR,Ig=zU,mR=Qh(mR)>Qh(zU)?mR:zU,G2=Gf(G2,ag),NG.lastInterval=oB):(mR=ag.velocity,ZX=ag.velocityX,Ig=ag.velocityY,G2=ag.direction);oB.velocity=mR;oB.velocityX=ZX;oB.velocityY=Ig;oB.direction=G2;NG=mQ.element;a:{for(ZX=oB.srcEvent.target;ZX;){if(ZX==NG){ZX=!0;break a}ZX=ZX.parentNode}ZX=!1}ZX&&(NG=oB.srcEvent.target);oB.target=NG;mQ.emit("hammer.input",oB);mQ.recognize(oB);
mQ.session.prevInput=oB}
function p4(mQ){for(var NG=[],oB=0;oB<mQ.pointers.length;oB++)NG[oB]={clientX:et(mQ.pointers[oB].clientX),clientY:et(mQ.pointers[oB].clientY)};return{timeStamp:ds(),pointers:NG,center:sc(NG),deltaX:mQ.deltaX,deltaY:mQ.deltaY}}
function sc(mQ){var NG=mQ.length;if(NG===1)return{x:et(mQ[0].clientX),y:et(mQ[0].clientY)};for(var oB=0,ZX=0,Ig=0;Ig<NG;Ig++)oB+=mQ[Ig].clientX,ZX+=mQ[Ig].clientY;return{x:et(oB/NG),y:et(ZX/NG)}}
function Gf(mQ,NG){return mQ===NG?1:Qh(mQ)>=Qh(NG)?mQ>0?2:4:NG>0?8:16}
function xi(mQ,NG,oB){oB||(oB=nK);var ZX=NG[oB[0]]-mQ[oB[0]];mQ=NG[oB[1]]-mQ[oB[1]];return Math.sqrt(ZX*ZX+mQ*mQ)}
function ki(mQ,NG,oB){oB||(oB=nK);return Math.atan2(NG[oB[1]]-mQ[oB[1]],NG[oB[0]]-mQ[oB[0]])*180/Math.PI}
function WG(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;f.apply(this,arguments)}
function rJ(){this.evEl=pc;this.evWin=cU;f.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Uc(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};f.apply(this,arguments)}
function CV(){f.apply(this,arguments);var mQ=m(this.handler,this);this.touch=new Uc(this.manager,mQ);this.mouse=new WG(this.manager,mQ)}
function Bm(mQ,NG){this.manager=mQ;this.set(NG)}
function LV(mQ){if(mQ.indexOf("none")>-1)return"none";var NG=mQ.indexOf("pan-x")>-1,oB=mQ.indexOf("pan-y")>-1;return NG&&oB?"pan-x pan-y":NG||oB?NG?"pan-x":"pan-y":mQ.indexOf("manipulation")>-1?"manipulation":"auto"}
function I$(mQ){this.id=mq++;this.manager=null;this.options=P(mQ||{},this.defaults);mQ=this.options.enable;this.options.enable=mQ===c?!0:mQ;this.state=1;this.simultaneous={};this.requireFail=[]}
function bc(mQ){return mQ==16?"down":mQ==8?"up":mQ==2?"left":mQ==4?"right":""}
function hz(mQ,NG){return(NG=NG.manager)?NG.get(mQ):mQ}
function TU(){I$.apply(this,arguments)}
function Wm(){TU.apply(this,arguments);this.pY=this.pX=null}
function z2(){TU.apply(this,arguments)}
function cG(){I$.apply(this,arguments);this._input=this._timer=null}
function $I(){TU.apply(this,arguments)}
function tz(){TU.apply(this,arguments)}
function pX(){I$.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function OZ(mQ,NG){NG=NG||{};var oB=NG.recognizers;NG.recognizers=oB===c?OZ.defaults.preset:oB;return new kl(mQ,NG)}
function kl(mQ,NG){NG=NG||{};this.options=P(NG,OZ.defaults);this.options.inputTarget=this.options.inputTarget||mQ;this.handlers={};this.session={};this.recognizers=[];this.element=mQ;this.input=ed(this);this.touchAction=new Bm(this,this.options.touchAction);Qd(this,!0);y(NG.recognizers,function(oB){var ZX=this.add(new oB[0](oB[1]));oB[2]&&ZX.recognizeWith(oB[2]);oB[3]&&ZX.requireFailure(oB[2])},this)}
function Qd(mQ,NG){var oB=mQ.element;y(mQ.options.cssProps,function(ZX,Ig){oB.style[q(oB.style,Ig)]=NG?ZX:""})}
function Yl(mQ,NG){var oB=T.createEvent("Event");oB.initEvent(mQ,!0,!0);oB.gesture=NG;NG.target.dispatchEvent(oB)}
var jd=" webkit moz MS ms o".split(" "),wr=T.createElement("div"),et=Math.round,Qh=Math.abs,ds=Date.now,mq=1,ec=/mobile|tablet|ip(ad|hone|od)|android/i,ZK="ontouchstart"in I,WL=q(I,"PointerEvent")!==c,lT=ZK&&ec.test(navigator.userAgent),nK=["x","y"],ND=["clientX","clientY"];f.prototype={handler:function(){},
destroy:function(){this.evEl&&M(this.element,this.evEl,this.domHandler);this.evTarget&&M(this.target,this.evTarget,this.domHandler);this.evWin&&M(I,this.evWin,this.domHandler)}};
var iW={mousedown:1,mousemove:2,mouseup:4};z(WG,f,{handler:function(mQ){var NG=iW[mQ.type];NG&1&&mQ.button===0&&(this.pressed=!0);NG&2&&mQ.which!==1&&(NG=4);this.pressed&&this.allow&&(NG&4&&(this.pressed=!1),this.callback(this.manager,NG,{pointers:[mQ],changedPointers:[mQ],pointerType:"mouse",srcEvent:mQ}))}});
var Rh={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},cn={2:"touch",3:"pen",4:"mouse",5:"kinect"},pc="pointerdown",cU="pointermove pointerup pointercancel";I.MSPointerEvent&&(pc="MSPointerDown",cU="MSPointerMove MSPointerUp MSPointerCancel");z(rJ,f,{handler:function(mQ){var NG=this.store,oB=!1,ZX=mQ.type.toLowerCase().replace("ms","");ZX=Rh[ZX];var Ig=cn[mQ.pointerType]||mQ.pointerType;ZX&1&&(mQ.button===0||Ig=="touch")?NG.push(mQ):ZX&12&&(oB=!0);var G2=W(NG,mQ.pointerId,"pointerId");
G2<0||(NG[G2]=mQ,this.callback(this.manager,ZX,{pointers:NG,changedPointers:[mQ],pointerType:Ig,srcEvent:mQ}),oB&&NG.splice(G2,1))}});
var $a={touchstart:1,touchmove:2,touchend:4,touchcancel:8};z(Uc,f,{handler:function(mQ){var NG=$a[mQ.type];var oB=Array.prototype.slice.call(mQ.touches,0);var ZX=this.targetIds;if(NG&3&&oB.length===1)ZX[oB[0].identifier]=!0,ZX=[oB,oB];else{var Ig,G2=Array.prototype.slice.call(mQ.targetTouches,0),ag=Array.prototype.slice.call(mQ.changedTouches,0),mR=[];if(NG===1)for(oB=0,Ig=G2.length;oB<Ig;oB++)ZX[G2[oB].identifier]=!0;oB=0;for(Ig=ag.length;oB<Ig;oB++)ZX[ag[oB].identifier]&&mR.push(ag[oB]),NG&12&&
delete ZX[ag[oB].identifier];ZX=mR.length?[U(G2.concat(mR),"identifier",!0),mR]:void 0}ZX&&this.callback(this.manager,NG,{pointers:ZX[0],changedPointers:ZX[1],pointerType:"touch",srcEvent:mQ})}});
z(CV,f,{handler:function(mQ,NG,oB){var ZX=oB.pointerType=="mouse";if(oB.pointerType=="touch")this.mouse.allow=!1;else if(ZX&&!this.mouse.allow)return;NG&12&&(this.mouse.allow=!0);this.callback(mQ,NG,oB)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var h1=q(wr.style,"touchAction"),aj=h1!==c;Bm.prototype={set:function(mQ){mQ=="compute"&&(mQ=this.compute());aj&&(this.manager.element.style[h1]=mQ);this.actions=mQ.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var mQ=[];y(this.manager.recognizers,function(NG){u(NG.options.enable,[NG])&&(mQ=mQ.concat(NG.getTouchAction()))});
return LV(mQ.join(" "))},
preventDefaults:function(mQ){if(!aj){var NG=mQ.srcEvent;mQ=mQ.offsetDirection;if(this.manager.session.prevented)NG.preventDefault();else{var oB=this.actions,ZX=oB.indexOf("none")>-1,Ig=oB.indexOf("pan-y")>-1;oB=oB.indexOf("pan-x")>-1;if(ZX||Ig&&oB||Ig&&mQ&6||oB&&mQ&24)return this.preventSrc(NG)}}},
preventSrc:function(mQ){this.manager.session.prevented=!0;mQ.preventDefault()}};
I$.prototype={defaults:{},set:function(mQ){Z(this.options,mQ);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(mQ){if(v(mQ,"recognizeWith",this))return this;var NG=this.simultaneous;mQ=hz(mQ,this);NG[mQ.id]||(NG[mQ.id]=mQ,mQ.recognizeWith(this));return this},
dropRecognizeWith:function(mQ){if(v(mQ,"dropRecognizeWith",this))return this;mQ=hz(mQ,this);delete this.simultaneous[mQ.id];return this},
requireFailure:function(mQ){if(v(mQ,"requireFailure",this))return this;var NG=this.requireFail;mQ=hz(mQ,this);W(NG,mQ)===-1&&(NG.push(mQ),mQ.requireFailure(this));return this},
dropRequireFailure:function(mQ){if(v(mQ,"dropRequireFailure",this))return this;mQ=hz(mQ,this);mQ=W(this.requireFail,mQ);mQ>-1&&this.requireFail.splice(mQ,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(mQ){return!!this.simultaneous[mQ.id]},
emit:function(mQ){function NG(Ig){oB.manager.emit(oB.options.event+(Ig?ZX&16?"cancel":ZX&8?"end":ZX&4?"move":ZX&2?"start":"":""),mQ)}
var oB=this,ZX=this.state;ZX<8&&NG(!0);NG();ZX>=8&&NG(!0)},
tryEmit:function(mQ){if(this.canEmit())return this.emit(mQ);this.state=32},
canEmit:function(){for(var mQ=0;mQ<this.requireFail.length;mQ++)if(!(this.requireFail[mQ].state&33))return!1;return!0},
recognize:function(mQ){mQ=Z({},mQ);u(this.options.enable,[this,mQ])?(this.state&56&&(this.state=1),this.state=this.process(mQ),this.state&30&&this.tryEmit(mQ)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
z(TU,I$,{defaults:{pointers:1},attrTest:function(mQ){var NG=this.options.pointers;return NG===0||mQ.pointers.length===NG},
process:function(mQ){var NG=this.state,oB=mQ.eventType,ZX=NG&6;mQ=this.attrTest(mQ);return ZX&&(oB&8||!mQ)?NG|16:ZX||mQ?oB&4?NG|8:NG&2?NG|4:2:32}});
z(Wm,TU,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var mQ=this.options.direction;if(mQ===30)return["none"];var NG=[];mQ&6&&NG.push("pan-y");mQ&24&&NG.push("pan-x");return NG},
directionTest:function(mQ){var NG=this.options,oB=!0,ZX=mQ.distance,Ig=mQ.direction,G2=mQ.deltaX,ag=mQ.deltaY;Ig&NG.direction||(NG.direction&6?(Ig=G2===0?1:G2<0?2:4,oB=G2!=this.pX,ZX=Math.abs(mQ.deltaX)):(Ig=ag===0?1:ag<0?8:16,oB=ag!=this.pY,ZX=Math.abs(mQ.deltaY)));mQ.direction=Ig;return oB&&ZX>NG.threshold&&Ig&NG.direction},
attrTest:function(mQ){return TU.prototype.attrTest.call(this,mQ)&&(this.state&2||!(this.state&2)&&this.directionTest(mQ))},
emit:function(mQ){this.pX=mQ.deltaX;this.pY=mQ.deltaY;var NG=bc(mQ.direction);NG&&this.manager.emit(this.options.event+NG,mQ);this._super.emit.call(this,mQ)}});
z(z2,TU,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(mQ){return this._super.attrTest.call(this,mQ)&&(Math.abs(mQ.scale-1)>this.options.threshold||this.state&2)},
emit:function(mQ){this._super.emit.call(this,mQ);mQ.scale!==1&&this.manager.emit(this.options.event+(mQ.scale<1?"in":"out"),mQ)}});
z(cG,I$,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(mQ){var NG=this.options,oB=mQ.pointers.length===NG.pointers,ZX=mQ.distance<NG.threshold,Ig=mQ.deltaTime>NG.time;this._input=mQ;if(!ZX||!oB||mQ.eventType&12&&!Ig)this.reset();else if(mQ.eventType&1)this.reset(),this._timer=Y(function(){this.state=8;this.tryEmit()},NG.time,this);
else if(mQ.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(mQ){this.state===8&&(mQ&&mQ.eventType&4?this.manager.emit(this.options.event+"up",mQ):(this._input.timeStamp=ds(),this.manager.emit(this.options.event,this._input)))}});
z($I,TU,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(mQ){return this._super.attrTest.call(this,mQ)&&(Math.abs(mQ.rotation)>this.options.threshold||this.state&2)}});
z(tz,TU,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Wm.prototype.getTouchAction.call(this)},
attrTest:function(mQ){var NG=this.options.direction;if(NG&30)var oB=mQ.velocity;else NG&6?oB=mQ.velocityX:NG&24&&(oB=mQ.velocityY);return this._super.attrTest.call(this,mQ)&&NG&mQ.direction&&Qh(oB)>this.options.velocity&&mQ.eventType&4},
emit:function(mQ){var NG=bc(mQ.direction);NG&&this.manager.emit(this.options.event+NG,mQ);this.manager.emit(this.options.event,mQ)}});
z(pX,I$,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(mQ){var NG=this.options,oB=mQ.pointers.length===NG.pointers,ZX=mQ.distance<NG.threshold,Ig=mQ.deltaTime<NG.time;this.reset();if(mQ.eventType&1&&this.count===0)return this.failTimeout();if(ZX&&Ig&&oB){if(mQ.eventType!=4)return this.failTimeout();oB=this.pTime?mQ.timeStamp-this.pTime<NG.interval:!0;ZX=!this.pCenter||xi(this.pCenter,mQ.center)<NG.posThreshold;this.pTime=mQ.timeStamp;this.pCenter=mQ.center;ZX&&oB?this.count+=1:this.count=1;this._input=mQ;if(this.count%NG.taps===0)return this.hasRequireFailures()?
(this._timer=Y(function(){this.state=8;this.tryEmit()},NG.interval,this),2):8}return 32},
failTimeout:function(){this._timer=Y(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))}});
OZ.VERSION="2.0.2";OZ.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[$I,{enable:!1}],[z2,{enable:!1},["rotate"]],[tz,{direction:6}],[Wm,{direction:6},["swipe"]],[pX],[pX,{event:"doubletap",taps:2},["tap"]],[cG]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};kl.prototype={set:function(mQ){Z(this.options,mQ);return this},
stop:function(mQ){this.session.stopped=mQ?2:1},
recognize:function(mQ){var NG=this.session;if(!NG.stopped){this.touchAction.preventDefaults(mQ);var oB=this.recognizers,ZX=NG.curRecognizer;if(!ZX||ZX&&ZX.state&8)ZX=NG.curRecognizer=null;for(var Ig=0,G2=oB.length;Ig<G2;Ig++){var ag=oB[Ig];NG.stopped===2||ZX&&ag!=ZX&&!ag.canRecognizeWith(ZX)?ag.reset():ag.recognize(mQ);!ZX&&ag.state&14&&(ZX=NG.curRecognizer=ag)}}},
get:function(mQ){if(mQ instanceof I$)return mQ;for(var NG=this.recognizers,oB=0;oB<NG.length;oB++)if(NG[oB].options.event==mQ)return NG[oB];return null},
add:function(mQ){if(v(mQ,"add",this))return this;var NG=this.get(mQ.options.event);NG&&this.remove(NG);this.recognizers.push(mQ);mQ.manager=this;this.touchAction.update();return mQ},
remove:function(mQ){if(v(mQ,"remove",this))return this;var NG=this.recognizers;mQ=this.get(mQ);NG.splice(W(NG,mQ),1);this.touchAction.update();return this},
on:function(mQ,NG){var oB=this.handlers;y(N(mQ),function(ZX){oB[ZX]=oB[ZX]||[];oB[ZX].push(NG)});
return this},
off:function(mQ,NG){var oB=this.handlers;y(N(mQ),function(ZX){NG?oB[ZX].splice(W(oB[ZX],NG),1):delete oB[ZX]});
return this},
emit:function(mQ,NG){this.options.domEvents&&Yl(mQ,NG);var oB=this.handlers[mQ]&&this.handlers[mQ].slice();if(oB&&oB.length){NG.type=mQ;NG.preventDefault=function(){NG.srcEvent.preventDefault()};
mQ=0;for(var ZX=oB.length;mQ<ZX;mQ++)oB[mQ](NG)}},
destroy:function(){this.element&&Qd(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
Z(OZ,{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:kl,Input:f,TouchAction:Bm,Recognizer:I$,AttrRecognizer:TU,Tap:pX,Pan:Wm,Swipe:tz,Pinch:z2,Rotate:$I,Press:cG,on:x,off:M,each:y,merge:P,extend:Z,inherit:z,bindFn:m,prefixed:q});
I[e]=OZ})(window,document,"Hammer");
return window.Hammer}.call({});
B.DOCUMENT=E;E[ykr]=B}return E[ykr]};/*

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

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 rkh;_.X$l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");rkh=function(){var E=[],B;var I=I||_.X$l.length;for(B=0;B<8;B++)E[B]=_.X$l[0|Math.random()*I];return E.join("")};var pfB=function(){return Math.random().toString(36).substring(7).split("").join(".")},iaJ="@@redux/INIT"+pfB(),vUi="@@redux/REPLACE"+pfB();var ysc=typeof Symbol==="function"&&Symbol.observable||"@@observable";var bpZ=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var o3U="top right bottom left width height size weight".split(" "),AkZ=typeof MutationObserver!=="undefined",jS6=bpZ&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,UNu=function(){this.mutationEventsAdded_=this.JSC$9549_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=CqF(this.refresh.bind(this))},kIV=function(E,
B){var I=E.observers_;
B=I.indexOf(B);~B&&I.splice(B,1);!I.length&&E.JSC$9549_connected_&&bpZ&&E.JSC$9549_connected_&&(document.removeEventListener("transitionend",E.onTransitionEnd_),window.removeEventListener("resize",E.refresh),E.mutationsObserver_&&(E.mutationsObserver_.disconnect(),jS6&&(HTMLElement.prototype.attachShadow=jS6)),E.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",E.refresh),E.mutationsObserver_=null,E.mutationEventsAdded_=!1,E.JSC$9549_connected_=!1)};
UNu.prototype.refresh=function(){txh(this)&&this.refresh()};
var txh=function(E){E=E.observers_.filter(function(B){return fQu(B),B.activeObservations_.length>0});
E.forEach(function(B){return VxU(B)});
return E.length>0},q1N=function(E){if(bpZ&&!E.JSC$9549_connected_){document.addEventListener("transitionend",E.onTransitionEnd_);
window.addEventListener("resize",E.refresh);if(AkZ){E.mutationsObserver_=new MutationObserver(E.refresh);var B={attributes:!0,childList:!0,characterData:!0,subtree:!0};E.mutationsObserver_.observe(document,B);jS6&&(function e(T){var c=T.shadowRoot;c&&(E.mutationsObserver_.observe(c,B),e(c));for(T=T.firstElementChild;T;)e(T),T=T.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var T=jS6.apply(this,_.aG.apply(0,arguments));
E.mutationsObserver_.observe(T,B);return T})}else document.addEventListener("DOMSubtreeModified",E.refresh),E.mutationEventsAdded_=!0;
E.JSC$9549_connected_=!0}};
UNu.prototype.onTransitionEnd_=function(E){var B=E.propertyName===void 0?"":E.propertyName;o3U.some(function(I){return!!~B.indexOf(I)})&&this.refresh()};
var FaZ=null;var DNX=function(E,B){for(var I=_.p(Object.keys(B)),T=I.next();!T.done;T=I.next())T=T.value,Object.defineProperty(E,T,{value:B[T],enumerable:!1,writable:!1,configurable:!0})};var NC=function(E){var B;return(E==null?void 0:(B=E.ownerDocument)==null?void 0:B.defaultView)||globalThis};var Kal={x:0,y:0,width:0,height:0},RbD=typeof SVGGraphicsElement!=="undefined"?function(E){return E instanceof NC(E).SVGGraphicsElement}:function(E){return E instanceof NC(E).SVGElement&&typeof E.getBBox==="function"};var E4U=function(E){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=E};
E4U.prototype.isActive=function(){var E=this.target;if(bpZ)if(RbD(E)){var B=E.getBBox();B={x:0,y:0,width:B.width,height:B.height}}else{var I=E.clientWidth,T=E.clientHeight;if(I||T){var e=NC(E).getComputedStyle(E);B=aO(e["padding-top"]);var c=aO(e["padding-left"]),Y=c+aO(e["padding-right"]),v=B+aO(e["padding-bottom"]),y=aO(e.width),Z=aO(e.height);e.boxSizing==="border-box"&&(Math.round(y+Y)!==I&&(y-=wfi(e,"left","right")+Y),Math.round(Z+v)!==T&&(Z-=wfi(e,"top","bottom")+v));E!==NC(E).document.documentElement&&
(E=Math.round(y+Y)-I,T=Math.round(Z+v)-T,Math.abs(E)!==1&&(y-=E),Math.abs(T)!==1&&(Z-=T));B={x:c,y:B,width:y,height:Z}}else B=Kal}else B=Kal;this.contentRect_=B;return B.width!==this.broadcastWidth||B.height!==this.broadcastHeight};var BTV=function(E,B){var I=B.x;var T=B.y;var e=B.width;B=B.height;var c=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);DNX(c,{x:I,y:T,width:e,height:B,top:T,right:I+e,bottom:B+T,left:I});DNX(this,{target:E,contentRect:c})};var $HV=function(E,B){var I=FaZ;this.activeObservations_=[];this.observations_=new Map;if(typeof E!=="function")throw new TypeError("Pe");this.callback_=E;this.controller_=I;this.callbackCtx_=B};
$HV.prototype.observe=function(E){if(E===void 0)throw new TypeError("Qe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(E instanceof NC(E).Element))throw new TypeError("Re");var B=this.observations_;B.has(E)||(B.set(E,new E4U(E)),E=this.controller_,~E.observers_.indexOf(this)||E.observers_.push(this),E.JSC$9549_connected_||q1N(E),this.controller_.refresh())}};
$HV.prototype.unobserve=function(E){if(E===void 0)throw new TypeError("Qe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(E instanceof NC(E).Element))throw new TypeError("Re");var B=this.observations_;B.has(E)&&(B.delete(E),B.size||kIV(this.controller_,this))}};
$HV.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();kIV(this.controller_,this)};
var fQu=function(E){E.activeObservations_.splice(0);E.observations_.forEach(function(B){B.isActive()&&E.activeObservations_.push(B)})},VxU=function(E){if(E.activeObservations_.length>0){var B=E.callbackCtx_,I=E.activeObservations_.map(function(T){var e=T.target,c=T.contentRect_;
T.broadcastWidth=c.width;T.broadcastHeight=c.height;return new BTV(e,c)});
E.callback_.call(B,I,B);E.activeObservations_.splice(0)}};var g4=function(E){if(!(this instanceof g4))throw new TypeError("Se");if(!arguments.length)throw new TypeError("Qe");FaZ||(FaZ=new UNu);this.observer_=new $HV(E,this)};
g4.prototype.observe=function(E){this.observer_.observe(E)};
g4.prototype.unobserve=function(E){this.observer_.unobserve(E)};
g4.prototype.disconnect=function(){this.observer_.disconnect()};var OQB=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:g4;var sri="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(" "),hUG={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},ddQ=null,ZaJ=null;var uGf={},Lp6=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 NVi={text:1},Oa4={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var IRX=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,TTr={CONSTANT:{isUnwrappable:function(E){return E instanceof MW},
unwrap:Y9R},JAVASCRIPT:{isUnwrappable:function(E){return E instanceof _.Lr},
unwrap:G1},HTML:{isUnwrappable:function(E){return E instanceof P1},
unwrap:function(E){return mm(E)}},
RESOURCE_URL:{isUnwrappable:function(E){return E instanceof DK},
unwrap:_.Ef},STRING:{isUnwrappable:function(E){return E instanceof Object},
unwrap:function(E){return String(E)}},
STYLE:{isUnwrappable:function(E){return typeof E==="string"},
unwrap:function(E){return E}},
URL:{isUnwrappable:function(E){return T1(E)},
unwrap:_.e6}},eLu={CONSTANT:gUJ,JAVASCRIPT:gUJ,HTML:function(E){E=E instanceof P1?E:z1(String(E).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return mm(E)},
RESOURCE_URL:gUJ,STRING:String,STYLE:gUJ,URL:function(E,B){E=IRX.test(E)?E:void 0;return E===void 0?B:E}};var kOG=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,S8G=/[\t\n\f\r ]+/,Wpc=/[\t\n\f\r ,]+/g,rsc=function(E,B,I){return I},wG={},lR$=function(){var E=function(){var T={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",T):T}(),B=E.createHTML(""),I=E.createScript("");
E=E.createScriptURL("");return{INNOCUOUS_STRING:B,INNOCUOUS_SCRIPT:I,INNOCUOUS_URL:E}}(),CC=lR$.INNOCUOUS_STRING,UdB=lR$.INNOCUOUS_SCRIPT,jri=lR$.INNOCUOUS_URL;var cMX=function(E){var B=tiQ(E);return function(I,T,e,c){return c?B(c,T,e,I):CC}}({reportHandler:function(E,B){if(E)try{throw Error(B);
}catch(I){_.xV(I)}},
safeTypesBridge:function(E,B,I){var T=TTr[B];return T.isUnwrappable(E)&&(T=T.unwrap(E,I),T!==I)?T:(0,eLu[B])(String(E),I)},
allowedIdentifierPrefixes:[""]});if(vu!==void 0)throw Error("Te");vu=cMX;if(vu!==cMX)throw Error("Ue");Z$("Injectable",[]);var zmJ=Z$("Inject",[["token",void 0]]),Qzi=Z$("Optional",[]);Z$("Injectable",[]);var dyG=Z$("Self",[]),hmQ=Z$("SkipSelf",[]);Z$("Host",[]);var iet={},pE$=function(){};
pE$.prototype.resolve=function(){throw Error("We");};
pE$.prototype.addProvider=function(){throw Error("We");};var Z7d=Function;var YOD=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,aRR=function(){this._reflect=window.Reflect};
_.l=aRR.prototype;_.l.factory=function(E){return function(){return new (Function.prototype.bind.apply(E,[null].concat(_.ad(_.aG.apply(0,arguments)))))}};
_.l._zipTypesAndAnnotations=function(E,B){var I=typeof E==="undefined"?Array(B.length):Array(E.length);for(var T=0;T<I.length;T++)I[T]=typeof E==="undefined"?[]:E[T]!=Object?[E[T]]:[],B&&Vif(B[T])&&(I[T]=I[T].concat(B[T]));return I};
_.l._ownParameters=function(E,B){if(YOD.exec(E.toString()))return null;if(E.parameters&&E.parameters!==B.parameters)return E.parameters;var I=E.ctorParameters;return I&&I!==B.ctorParameters?(B=typeof I==="function"?I():I,E=B.map(function(T){return T&&T.type}),B=B.map(function(T){return T&&FpF(T.decorators)}),this._zipTypesAndAnnotations(E,B)):Vif(this._reflect)&&Vif(this._reflect.getOwnMetadata)&&(B=this._reflect.getOwnMetadata("parameters",E),(I=this._reflect.getOwnMetadata("design:paramtypes",E))||
B)?this._zipTypesAndAnnotations(I,B):Array(E.length).fill(void 0)};
_.l.parameters=function(E){if(!E.prototype)return[];var B=Object.getPrototypeOf(E.prototype).constructor;(E=this._ownParameters(E,B))||B===Object||(E=this.parameters(B));return E||[]};
_.l._ownAnnotations=function(E,B){if(E.annotations&&E.annotations!==B.annotations)return E=E.annotations,typeof E==="function"&&E.annotations&&(E=E.annotations),E;if(E.decorators&&E.decorators!==B.decorators)return FpF(E.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",E)};
_.l.annotations=function(E){var B=Object.getPrototypeOf(E.prototype).constructor;E=this._ownAnnotations(E,B)||[];return(B!==Object?this.annotations(B):[]).concat(E)};
_.l._ownPropMetadata=function(E,B){if(E.propMetadata&&E.propMetadata!==B.propMetadata)return E=E.propMetadata,typeof E==="function"&&E.propMetadata&&(E=E.propMetadata),E;if(E.propDecorators&&E.propDecorators!==B.propDecorators){var I=E.propDecorators,T={};Object.keys(I).forEach(function(e){T[e]=FpF(I[e])});
return T}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",E)};
_.l.propMetadata=function(E){var B=Object.getPrototypeOf(E.prototype).constructor,I={};if(B!==Object){var T=this.propMetadata(B);Object.keys(T).forEach(function(c){I[c]=T[c]})}var e=this._ownPropMetadata(E,B);
e&&Object.keys(e).forEach(function(c){var Y=[];I.hasOwnProperty(c)&&Y.push.apply(Y,_.ad(I[c]));Y.push.apply(Y,_.ad(e[c]));I[c]=Y});
return I};
_.l.getter=function(E){return function(B){return B[E]}};
_.l.method=function(E){return function(B,I){if(!B[E])throw Error("Xe`"+E);return B[E].apply(B,I)}};var v4D=function(){};var yMR=function(E){this.reflectionCapabilities=E};
_.L(yMR,v4D);_.l=yMR.prototype;_.l.factory=function(E){return this.reflectionCapabilities.factory(E)};
_.l.parameters=function(E){return this.reflectionCapabilities.parameters(E)};
_.l.annotations=function(E){return this.reflectionCapabilities.annotations(E)};
_.l.propMetadata=function(E){return this.reflectionCapabilities.propMetadata(E)};
_.l.getter=function(E){return this.reflectionCapabilities.getter(E)};
_.l.method=function(E){return this.reflectionCapabilities.method(E)};var emQ=new yMR(new aRR);var Sy=function(E,B){this.token=E;this.id=B;if(E===void 0||E===null)throw Error("bf");};
_.Up.Object.defineProperties(Sy.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return PU(this.token)}}});
_.Up.Object.defineProperties(Sy,{JSC$9591_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return mM.JSC$9595_numberOfKeys}}});
var COh=function(){this._allKeys=new Map};
COh.prototype.get=function(E){if(E instanceof Sy)return E;if(this._allKeys.has(E))return this._allKeys.get(E);var B=new Sy(E,Sy.JSC$9591_numberOfKeys);this._allKeys.set(E,B);return B};
_.Up.Object.defineProperties(COh.prototype,{JSC$9595_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var mM=new COh;var szQ=function(E,B,I){this.key=E;this.optional=B;this.visibility=I},cwG=function(E){return new szQ(E,!1,null)},pTF=[],vLQ=function(E,B,I){this.key=E;
this.resolvedFactories=B;this.multiProvider=I},Yst=function(E,B,I,T){this.factory=E;
this.dependencies=B;this.providerClass=I;this.providerValue=T};var Jc={},WO=function(E,B){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=B===void 0?null:B;E=_.p(E);for(B=E.next();!B.done;B=E.next())this.addProvider(B.value)};
_.l=WO.prototype;_.l.addProvider=function(E){this.keyIdToIndex.set(E.key.id,this.keyIds.length);this.providers.push(E);this.keyIds.push(E.key.id);this.objs.push(Jc)};
_.l.resolve=function(E,B){B=B===void 0?iet:B;return this._getByKey(mM.get(zx(E)),null,B)};
_.l._new=function(E){if(this.constructedKeyIds[E.key.id])throw $yQ(this,E.key);this.constructedKeyIds[E.key.id]=!0;return this._instantiateProvider(E)};
_.l._instantiateProvider=function(E){if(E.multiProvider){for(var B=Array(E.resolvedFactories.length),I=0;I<E.resolvedFactories.length;++I)B[I]=this._instantiate(E,E.resolvedFactories[I]);return B}return this._instantiate(E,E.resolvedFactories[0])};
_.l._instantiate=function(E,B){var I=this,T=B.factory;try{var e=B.dependencies.map(function(Y){return I._getByReflectiveDependency(Y)})}catch(Y){throw Y.addKey&&Y.addKey(this,E.key),Y;
}try{var c=T.apply(null,_.ad(e))}catch(Y){throw IUc(this,Y,E.key);}return c};
_.l._getByReflectiveDependency=function(E){return this._getByKey(E.key,E.visibility,E.optional?null:iet)};
_.l._getByKey=function(E,B,I){return E===wEZ?this:B instanceof dyG?this._getByKeySelf(E,I):this._getByKeyDefault(E,I,B)};
_.l._getObjByKeyId=function(E){for(var B=0;B<this.keyIds.length;B++)if(this.keyIds[B]===E)return this.objs[B]===Jc&&(this.objs[B]=this._new(this.providers[B])),this.objs[B];return Jc};
_.l._throwOrNull=function(E,B){if(B!==iet)return B;throw BwB(this,E);};
_.l._getByKeySelf=function(E,B){var I=this._getObjByKeyId(E.id);return I!==Jc?I:this._throwOrNull(E,B)};
_.l._getByKeyDefault=function(E,B,I){for(var T=I=I instanceof hmQ?this.parent:this;I instanceof WO;){var e=I._getObjByKeyId(E.id);if(e!==Jc)return e;I=I.parent}e=void 0;if(I!==null)try{var c=I.resolve(E.token,B);if(c!==Jc)return c}catch(Y){e=Y}if(!(T instanceof WO&&LYi(E.token))){if(e)throw e;return this._throwOrNull(E,B)}for(c=T;c.parent instanceof WO;)c=c.parent;c.addProvider(ywQ({provide:E.token,useClass:E.token}));return c.resolve(E.token,B)};
_.l.toString=function(){return this.displayName};
_.Up.Object.defineProperties(WO.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+uTD(this,function(E){return' "'+E.key.displayName+'" '}).join(", ")+"])"}}});
var wEZ=mM.get(zx(pE$));(function(){let module=undefined;let exports=undefined;let define=undefined;(function(Y){if(typeof exports==="object"&&typeof module!=="undefined")module.exports=Y();else if(typeof define==="function"&&define.amd)define([],Y);else{var B=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;B.XRegExp=Y()}})(function(){return function F(B,D,f){function t(h,m){if(!D[h]){if(!B[h]){var A=typeof require=="function"&&require;
if(!m&&A)return A(h,!0);if(G)return G(h,!0);m=Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m;}m=D[h]={exports:{}};B[h][0].call(m.exports,function(p){var l=B[h][1][p];return t(l?l:p)},m,m.exports,F,B,D,f)}return D[h].exports}
for(var G=typeof require=="function"&&require,u=0;u<f.length;u++)t(f[u]);return t}({1:[function(B,D){D.exports=function(f){function F(h){var m=/^(?:\(\?:\))*\^/,A=/\$(?:\(\?:\))*$/;
return m.test(h)&&A.test(h)&&A.test(h.replace(/\\[\s\S]/g,""))?h.replace(m,"").replace(A,""):h}
function t(h,m){m=m?"x":"";return f.isRegExp(h)?h.xregexp&&h.xregexp.captureNames?h:f(h.source,m):f(h,m)}
var G=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,u=f.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,G],"g",{conjunction:"or"});f.build=function(h,m,A){A=A||"";var p=A.indexOf("x")>-1,l=/^\(\?([\w$]+)\)/.exec(h);l&&(A=f._clipDuplicates(A+l[1]));var g={},v;for(v in m)m.hasOwnProperty(v)&&(l=t(m[v],p),g[v]={pattern:F(l.source),names:l.xregexp.captureNames||[]});h=t(h,p);var w=0,x,e=0,H=[0],y=h.xregexp.captureNames||[];h=h.source.replace(u,function(z,I,M,P,Q){var K=I||M;if(K){if(!g.hasOwnProperty(K))throw new ReferenceError("Undefined property "+
z);if(I){var L=y[e];H[++e]=++w;z="(?<"+(L||K)+">"}else z="(?:";x=w;return z+g[K].pattern.replace(G,function(S,T,N){if(T){if(L=g[K].names[w-x],++w,L)return"(?<"+L+">"}else if(N)return O=+N-1,g[K].names[O]?"\\k<"+g[K].names[O]+">":"\\"+(+N+x);return S})+")"}if(P){if(L=y[e],H[++e]=++w,L)return"(?<"+L+">"}else if(Q){var O=+Q-1;
return y[O]?"\\k<"+y[O]+">":"\\"+H[+Q]}return z});
return f(h,A)}}},
{}],2:[function(B,D){D.exports=function(f){function F(t,G,u,h){return{name:t,value:G,start:u,end:h}}
f.matchRecursive=function(t,G,u,h,m){h=h||"";m=m||{};var A=h.indexOf("g")>-1,p=h.indexOf("y")>-1,l=h.replace(/y/g,""),g=m.escapeChar;m=m.valueNames;var v=[],w=0,x=0,e=0,H=0;G=f(G,l);u=f(u,l);if(g){if(g.length>1)throw Error("Cannot use more than one escape character");g=f.escape(g);var y=new RegExp("(?:"+g+"[\\S\\s]|(?:(?!"+f.union([G,u],"",{conjunction:"or"}).source+")[^"+g+"])+)+",h.replace(/[^imu]+/g,""))}for(;;){g&&(e+=(f.exec(t,y,e,"sticky")||[""])[0].length);h=f.exec(t,G,e);l=f.exec(t,u,e);h&&
l&&(h.index<=l.index?l=null:h=null);if(h||l)x=(h||l).index,e=x+(h||l)[0].length;else if(!w)break;if(p&&!w&&x>H)break;if(h){if(!w){var z=x;var I=e}++w}else if(l&&w){if(!--w&&(m?(m[0]&&z>H&&v.push(F(m[0],t.slice(H,z),H,z)),m[1]&&v.push(F(m[1],t.slice(z,I),z,I)),m[2]&&v.push(F(m[2],t.slice(I,x),I,x)),m[3]&&v.push(F(m[3],t.slice(x,e),x,e))):v.push(t.slice(I,x)),H=e,!A))break}else throw Error("Unbalanced delimiter found in string");x===e&&++e}A&&!p&&m&&m[0]&&t.length>H&&v.push(F(m[0],t.slice(H),H,t.length));
return v}}},
{}],3:[function(B,D){D.exports=function(f){function F(p){return p.replace(/[- _]+/g,"").toLowerCase()}
function t(p){var l=/^\\[xu](.+)/.exec(p);return l?h(l[1]):p.charCodeAt(p.charAt(0)==="\\"?1:0)}
function G(p){var l="",g=-1;f.forEach(p,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(v){var w=t(v[1]);w>g+1&&(l+="\\u"+A(m(g+1)),w>g+2&&(l+="-\\u"+A(m(w-1))));g=t(v[2]||v[1])});
g<65535&&(l+="\\u"+A(m(g+1)),g<65534&&(l+="-\\uFFFF"));return l}
var u={},h=f._dec,m=f._hex,A=f._pad4;f.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(p,l,g){var v=p[1]==="P"||!!p[2],w=g.indexOf("A")>-1;g=F(p[4]||p[3]);var x=u[g];if(p[1]==="P"&&p[2])throw new SyntaxError("Invalid double negation "+p[0]);if(!u.hasOwnProperty(g))throw new SyntaxError("Unknown Unicode token "+p[0]);if(x.inverseOf){g=F(x.inverseOf);if(!u.hasOwnProperty(g))throw new ReferenceError("Unicode token missing data "+p[0]+" -> "+x.inverseOf);x=u[g];v=!v}if(!x.bmp&&!w)throw new SyntaxError("Astral mode required for Unicode token "+
p[0]);if(w){if(l==="class")throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");p=v?"a!":"a=";(l=u[g][p])||(l=u[g],g=u[g],w="",g.bmp&&!g.isBmpLast&&(w="["+g.bmp+"]"+(g.astral?"|":"")),g.astral&&(w+=g.astral),g.isBmpLast&&g.bmp&&(w+=(g.astral?"|":"")+"["+g.bmp+"]"),v=v?"(?:(?!"+w+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+w+")",l=l[p]=v);return v=l}return v=l==="class"?v?u[g]["b!"]||(u[g]["b!"]=G(u[g].bmp)):x.bmp:(v?"[^":"[")+x.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});f.addUnicodeData=function(p){for(var l,g=0;g<p.length;++g){l=p[g];if(!l.name)throw Error("Unicode token requires name");if(!(l.inverseOf||l.bmp||l.astral))throw Error("Unicode token has no character data "+l.name);u[F(l.name)]=l;l.alias&&(u[F(l.alias)]=l)}f.cache.flush("patterns")};
f._getUnicodeProperty=function(p){p=F(p);return u[p]}}},
{}],4:[function(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");f.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(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");f.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(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var F=[{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"}];F.push({name:"Assigned",inverseOf:"Cn"});f.addUnicodeData(F)}},
{}],7:[function(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");f.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(B,D){var f=B("./xregexp");B("./addons/build")(f);B("./addons/matchrecursive")(f);B("./addons/unicode-base")(f);B("./addons/unicode-blocks")(f);B("./addons/unicode-categories")(f);B("./addons/unicode-properties")(f);B("./addons/unicode-scripts")(f);D.exports=f},
{"./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(B,D){function f(a){var b=!0;try{b=!!RegExp("",a)}catch(c){b=!1}return b}
function F(a,b,c,d,n){var r;a.xregexp={captureNames:b};if(n)return a;if(a.__proto__)a.__proto__=e.prototype;else for(r in e.prototype)a[r]=e.prototype[r];a.xregexp.source=c;a.xregexp.flags=d?d.split("").sort().join(""):d;return a}
function t(a){return y.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function G(a,b){if(!e.isRegExp(a))throw new TypeError("Type RegExp expected");var c=a.xregexp||{},d=O?a.flags:y.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(a))[1],n="",r="",k=null,q=null;b=b||{};b.removeG&&(r+="g");b.removeY&&(r+="y");r&&(d=y.replace.call(d,new RegExp("["+r+"]+","g"),""));b.addG&&(n+="g");b.addY&&(n+="y");n&&(d=t(d+n));b.isInternalOnly||(c.source!==void 0&&(k=c.source),c.flags!=null&&(q=n?t(c.flags+n):c.flags));return a=F(new RegExp(b.source||a.source,d),a.xregexp&&a.xregexp.captureNames?
c.captureNames.slice(0):null,k,q,b.isInternalOnly)}
function u(a){return parseInt(a,16)}
function h(a,b,c){(b=a.input.charAt(a.index-1)==="("||a.input.charAt(a.index+a[0].length)===")")||(c=c.indexOf("x")>-1?["\\s","#[^#\\n]*","\\(\\?#[^)]*\\)"]:["\\(\\?#[^)]*\\)"],b=y.test.call(new RegExp("^(?:"+c.join("|")+")*(?:[?*+]|{\\d+(?:,\\d*)?})"),a.input.slice(a.index+a[0].length)));return b?"":"(?:)"}
function m(a){return parseInt(a,10).toString(16)}
function A(a,b){var c=a.length,d;for(d=0;d<c;++d)if(a[d]===b)return d;return-1}
function p(a,b){return S.call(a)==="[object "+b+"]"}
function l(a){for(;a.length<4;)a="0"+a;return a}
function g(a,b){var c;if(t(b)!==b)throw new SyntaxError("Invalid duplicate regex flag "+b);a=y.replace.call(a,/^\(\?([\w$]+)\)/,function(d,n){if(y.test.call(/[gy]/,n))throw new SyntaxError("Cannot use flag g or y in mode modifier "+d);b=t(b+n);return""});
for(c=0;c<b.length;++c)if(!Z[b.charAt(c)])throw new SyntaxError("Unknown regex flag "+b.charAt(c));return{pattern:a,flags:b}}
function v(a){var b={};return p(a,"String")?(e.forEach(a,/[^\s,]+/,function(c){b[c]=!0}),b):a}
function w(a){if(!/^[\w$]$/.test(a))throw Error("Flag must be a single character A-Za-z0-9_$");Z[a]=!0}
function x(a){if(a==null)throw new TypeError("Cannot convert null or undefined to object");return a}
function e(a,b){if(e.isRegExp(a)){if(b!==void 0)throw new TypeError("Cannot supply flags when copying a RegExp");return G(a)}a=a===void 0?"":String(a);b=b===void 0?"":String(b);e.isInstalled("astral")&&b.indexOf("A")===-1&&(b+="A");M[a]||(M[a]={});if(!M[a][b]){var c={hasNamedCapture:!1,captureNames:[]},d="default",n="",r=0,k=g(a,b),q=k.pattern;for(k=k.flags;r<q.length;){do{for(var J,E=q,U=k,V=r,W=d,X=c,R=P.length,ba=E.charAt(V),aa=null;R--;){var C=P[R];if(!(C.leadChar&&C.leadChar!==ba||C.scope!==
W&&C.scope!=="all"||C.flag&&U.indexOf(C.flag)===-1)&&(J=e.exec(E,C.regex,V,"sticky"))){aa={matchLength:J[0].length,output:C.handler.call(X,J,W,U),reparse:C.reparse};break}}(C=aa)&&C.reparse&&(q=q.slice(0,r)+C.output+q.slice(r+C.matchLength))}while(C&&C.reparse);C?(n+=C.output,r+=C.matchLength||1):(C=e.exec(q,Q[d],r,"sticky")[0],n+=C,r+=C.length,C==="["&&d==="default"?d="class":C==="]"&&d==="class"&&(d="default"))}M[a][b]={pattern:y.replace.call(n,/(?:\(\?:\))+/g,"(?:)"),flags:y.replace.call(k,/[^gimuy]+/g,
""),captures:c.hasNamedCapture?c.captureNames:null}}c=M[a][b];return F(new RegExp(c.pattern,c.flags),c.captures,a,b)}
var H={astral:!1,natives:!1},y={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},z={},I={},M={},P=[],Q={"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]/},K=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,
L=y.exec.call(/()??/,"")[1]===void 0,O=/x/.flags!==void 0,S={}.toString,T=f("u"),N=f("y"),Z={g:!0,i:!0,m:!0,u:T,y:N};e.prototype=RegExp();e.version="3.2.0";e._clipDuplicates=t;e._hasNativeFlag=f;e._dec=u;e._hex=m;e._pad4=l;e.addToken=function(a,b,c){c=c||{};var d=c.optionalFlags,n;c.flag&&w(c.flag);if(d)for(d=y.split.call(d,""),n=0;n<d.length;++n)w(d[n]);P.push({regex:G(a,{addG:!0,addY:N,isInternalOnly:!0}),handler:b,scope:c.scope||"default",flag:c.flag,reparse:c.reparse,leadChar:c.leadChar});e.cache.flush("patterns")};
e.cache=function(a,b){I[a]||(I[a]={});return I[a][b]||(I[a][b]=e(a,b))};
e.cache.flush=function(a){a==="patterns"?M={}:I={}};
e.escape=function(a){return y.replace.call(x(a),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};
e.exec=function(a,b,c,d){var n="g",r,k=!1;(r=N&&!!(d||b.sticky&&d!==!1))?n+="y":d&&(k=!0,n+="FakeY");b.xregexp=b.xregexp||{};d=b.xregexp[n]||(b.xregexp[n]=G(b,{addG:!0,addY:r,source:k?b.source+"|()":void 0,removeY:d===!1,isInternalOnly:!0}));c=c||0;d.lastIndex=c;a=z.exec.call(d,a);k&&a&&a.pop()===""&&(a=null);b.global&&(b.lastIndex=a?d.lastIndex:0);return a};
e.forEach=function(a,b,c){for(var d=0,n=-1;d=e.exec(a,b,d);)c(d,++n,a,b),d=d.index+(d[0].length||1)};
e.install=function(a){a=v(a);!H.astral&&a.astral&&(H.astral=!0);!H.natives&&a.natives&&(RegExp.prototype.exec=z.exec,RegExp.prototype.test=z.test,String.prototype.match=z.match,String.prototype.replace=z.replace,String.prototype.split=z.split,H.natives=!0)};
e.isInstalled=function(a){return!!H[a]};
e.isRegExp=function(a){return S.call(a)==="[object RegExp]"};
e.match=function(a,b,c){var d=b.global&&c!=="one"||c==="all",n=(d?"g":"")+(b.sticky?"y":"")||"noGY";b.xregexp=b.xregexp||{};n=b.xregexp[n]||(b.xregexp[n]=G(b,{addG:!!d,removeG:c==="one",isInternalOnly:!0}));a=y.match.call(x(a),n);b.global&&(b.lastIndex=c==="one"&&a?a.index+a[0].length:0);return d?a||[]:a&&a[0]};
e.replace=function(a,b,c,d){var n=e.isRegExp(b),r=b.global&&d!=="one"||d==="all",k=(r?"g":"")+(b.sticky?"y":"")||"noGY",q=b;n?(b.xregexp=b.xregexp||{},q=b.xregexp[k]||(b.xregexp[k]=G(b,{addG:!!r,removeG:d==="one",isInternalOnly:!0}))):r&&(q=new RegExp(e.escape(String(b)),"g"));a=z.replace.call(x(a),q,c);n&&b.global&&(b.lastIndex=0);return a};
e.split=function(a,b,c){return z.split.call(x(a),b,c)};
e.test=function(a,b,c,d){return!!e.exec(a,b,c,d)};
e.union=function(a,b,c){function d(V,W,X){var R=U[r-E];if(W){if(++r,R)return"(?<"+R+">"}else if(X)return"\\"+(+X+E);return V}
c=c||{};var n=c.conjunction||"or",r=0;if(!p(a,"Array")||!a.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var k=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;c=[];for(var q,J=0;J<a.length;++J)if(q=a[J],e.isRegExp(q)){var E=r;var U=q.xregexp&&q.xregexp.captureNames||[];c.push(y.replace.call(e(q.source).source,k,d))}else c.push(e.escape(q));a=n==="none"?"":"|";return e(c.join(a),b)};
z.exec=function(a){var b=this.lastIndex,c=y.exec.apply(this,arguments),d;if(c){if(!L&&c.length>1&&A(c,"")>-1){var n=G(this,{removeG:!0,isInternalOnly:!0});y.replace.call(String(a).slice(c.index),n,function(){var r=arguments.length,k;for(k=1;k<r-2;++k)arguments[k]===void 0&&(c[k]=void 0)})}if(this.xregexp&&this.xregexp.captureNames)for(d=1;d<c.length;++d)(n=this.xregexp.captureNames[d-1])&&(c[n]=c[d]);
this.global&&!c[0].length&&this.lastIndex>c.index&&(this.lastIndex=c.index)}this.global||(this.lastIndex=b);return c};
z.test=function(a){return!!z.exec.call(this,a)};
z.match=function(a){if(!e.isRegExp(a))a=new RegExp(a);else if(a.global){var b=y.match.apply(this,arguments);a.lastIndex=0;return b}return z.exec.call(a,x(this))};
z.replace=function(a,b){var c=e.isRegExp(a);if(c){if(a.xregexp)var d=a.xregexp.captureNames;var n=a.lastIndex}else a+="";var r=p(b,"Function")?y.replace.call(String(this),a,function(){var k=arguments,q;if(d)for(k[0]=new String(k[0]),q=0;q<d.length;++q)d[q]&&(k[0][d[q]]=k[q+1]);c&&a.global&&(a.lastIndex=k[k.length-2]+k[0].length);return b.apply(void 0,k)}):y.replace.call(this==null?this:String(this),a,function(){var k=arguments;
return y.replace.call(String(b),K,function(q,J,E){if(J){E=+J;if(E<=k.length-3)return k[E]||"";E=d?A(d,J):-1;if(E<0)throw new SyntaxError("Backreference to undefined group "+q);return k[E+1]||""}if(E==="$")return"$";if(E==="&"||+E===0)return k[0];if(E==="`")return k[k.length-1].slice(0,k[k.length-2]);if(E==="'")return k[k.length-1].slice(k[k.length-2]+k[0].length);E=+E;if(!isNaN(E)){if(E>k.length-3)throw new SyntaxError("Backreference to undefined group "+q);return k[E]||""}throw new SyntaxError("Invalid token "+
q);})});
c&&(a.lastIndex=a.global?0:n);return r};
z.split=function(a,b){if(!e.isRegExp(a))return y.split.apply(this,arguments);var c=String(this),d=[],n=a.lastIndex,r=0,k;b=(b===void 0?-1:b)>>>0;e.forEach(c,a,function(q){q.index+q[0].length>r&&(d.push(c.slice(r,q.index)),q.length>1&&q.index<c.length&&Array.prototype.push.apply(d,q.slice(1)),k=q[0].length,r=q.index+k)});
r===c.length?(!y.test.call(a,"")||k)&&d.push(""):d.push(c.slice(r));a.lastIndex=n;return d.length>b?d.slice(0,b):d};
e.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(a,b){if(a[1]==="B"&&b==="default")return a[0];throw new SyntaxError("Invalid escape "+a[0]);},{scope:"all",
leadChar:"\\"});e.addToken(/\\u{([\dA-Fa-f]+)}/,function(a,b,c){b=u(a[1]);if(b>1114111)throw new SyntaxError("Invalid Unicode code point "+a[0]);if(b<=65535)return"\\u"+l(m(b));if(T&&c.indexOf("u")>-1)return a[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u");},{scope:"all",
leadChar:"\\"});e.addToken(/\[(\^?)\]/,function(a){return a[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["});
e.addToken(/\(\?#[^)]*\)/,h,{leadChar:"("});e.addToken(/\s+|#[^\n]*\n?/,h,{flag:"x"});e.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",
leadChar:"."});e.addToken(/\\k<([\w$]+)>/,function(a){var b=isNaN(a[1])?A(this.captureNames,a[1])+1:+a[1],c=a.index+a[0].length;if(!b||b>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+a[0]);return"\\"+b+(c===a.input.length||isNaN(a.input.charAt(c))?"":"(?:)")},{leadChar:"\\"});
e.addToken(/\\(\d+)/,function(a,b){if(!(b==="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:"\\"});e.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(A(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:"("});
e.addToken(/\((?!\?)/,function(a,b,c){if(c.indexOf("n")>-1)return"(?:";this.captureNames.push(null);return"("},{optionalFlags:"n",
leadChar:"("});D.exports=e},
{}]},{},[8])(8)})}).call(globalThis);var ZeZ=window.XRegExp;var POV=-1,zL6=function(E){addEventListener("pageshow",function(B){B.persisted&&(POV=B.timeStamp,E(B))},!0)};var QLz=function(E,B,I){var T=mHX,e,c;return function(Y){B.value>=0&&(Y||I)&&((c=B.value-(e||0))||e===void 0)&&(e=B.value,B.delta=c,Y=B.value,B.rating=Y>T[1]?"poor":Y>T[0]?"needs-improvement":"good",E(B))}};var Xy=-1,dHh=function(E){document.visibilityState==="hidden"&&Xy>-1&&(Xy=E.type==="visibilitychange"?E.timeStamp:0,removeEventListener("visibilitychange",dHh,!0),removeEventListener("prerenderingchange",dHh,!0))},hL6=function(){addEventListener("visibilitychange",dHh,!0);
addEventListener("prerenderingchange",dHh,!0)},sLU=function(){Xy<0&&(Xy=document.visibilityState!=="hidden"||document.prerendering?Infinity:0,hL6(),zL6(function(){setTimeout(function(){Xy=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
hL6()},0)}));
return{get firstHiddenTime(){return Xy}}};var u3D=function(){var E=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(E&&E.responseStart>0&&E.responseStart<performance.now())return E};var LVu=function(){var E=u3D();return E&&E.activationStart||0};var xHZ=function(){var E=u3D(),B="navigate";POV>=0?B="back-forward-cache":E&&(document.prerendering||LVu()>0?B="prerender":document.wasDiscarded?B="restore":E.type&&(B=E.type.replace(/_/g,"-")));return{name:"LCP",value:-1,rating:"good",delta:0,entries:[],id:"v4-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:B}};var G8u=function(E){try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var B=new PerformanceObserver(function(I){Promise.resolve().then(function(){E(I.getEntries())})});
B.observe(Object.assign({type:"largest-contentful-paint",buffered:!0},{}));return B}}catch(I){}};var Oet=function(E){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&E()})};var n4V=function(E){var B=!1;return function(){B||(E(),B=!0)}};var Mft=function(E){document.prerendering?addEventListener("prerenderingchange",function(){return E()},!0):E()};var HeN=function(E){requestAnimationFrame(function(){return requestAnimationFrame(function(){return E()})})};var mHX=[2500,4E3],NTV={},Gy4=function(E){var B=B||{};Mft(function(){var I=sLU(),T=xHZ(),e=function(y){B.reportAllChanges||(y=y.slice(-1));y.forEach(function(Z){Z.startTime<I.firstHiddenTime&&(T.value=Math.max(Z.startTime-LVu(),0),T.entries=[Z],Y())})},c=G8u(e);
if(c){var Y=QLz(E,T,B.reportAllChanges);var v=n4V(function(){NTV[T.id]||(e(c.takeRecords()),c.disconnect(),NTV[T.id]=!0,Y(!0))});
["keydown","click"].forEach(function(y){addEventListener(y,function(){var Z=v,P=self.requestIdleCallback||self.setTimeout,z=-1;Z=n4V(Z);document.visibilityState==="hidden"?Z():(z=P(Z),Oet(Z));return z},!0)});
Oet(v);zL6(function(y){T=xHZ();Y=QLz(E,T,B.reportAllChanges);HeN(function(){T.value=performance.now()-y.timeStamp;NTV[T.id]=!0;Y(!0)})})}})};var g4h;var SOl;_.D=function(){return SOl!==void 0?SOl:SOl=document.createElement("template")};
document.head.appendChild(_.D().content);var JMl;_.wp({_template:function(){if(JMl!==void 0)return JMl;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
var B=E.content,I=B.insertBefore;g4h===void 0&&(g4h=document.createElement("template"));var T=g4h;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return JMl=E},
is:"tp-yt-app-toolbar"});var WVr;var XEU;_.r4=function(){};
_.r4=_.wp({_template:function(){if(XEU!==void 0)return XEU;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;WVr===void 0&&(WVr=document.createElement("template"));var T=WVr;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return XEU=E},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.r4.instance||(_.r4.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(E){this._text===E&&(E+="\u00a0");this._text="";this.async(function(){this._text=E},this.timeout)},
_onIronAnnounce:function(E){E.detail&&E.detail.text&&this.announce(E.detail.text)}});
_.r4.instance=null;_.r4.requestAvailability=function(){_.r4.instance||(_.r4.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.r4.instance):document.addEventListener("load",function(){document.body.appendChild(_.r4.instance)})};var rMX;var ber;/*

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

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 bo,fRl,Vfz;bo=Element.prototype;fRl=bo.matches||bo.matchesSelector||bo.mozMatchesSelector||bo.msMatchesSelector||bo.oMatchesSelector||bo.webkitMatchesSelector;Vfz=function(){};
_.FVN=function(E){var B=qOt,I=[];return B._collectTabbableNodes(E,I)?B._sortByTabIndex(I):I};
_.l=Vfz.prototype;_.l._normalizedTabIndex=function(E){return(fRl.call(E,"input, select, textarea, button, object")?fRl.call(E,":not([disabled])"):fRl.call(E,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(E=E.getAttribute("tabindex")||0,Number(E)):-1};
_.l._collectTabbableNodes=function(E,B){if(E.nodeType!==Node.ELEMENT_NODE||!this._isVisible(E))return!1;var I=this._normalizedTabIndex(E),T=I>0;I>=0&&B.push(E);if(E.localName==="content"||E.localName==="slot")I=_.QT(E).getDistributedNodes();else{var e;I=((e=_.QT(E).shadowRoot)!=null?e:_.QT(E.root||E)).children}for(E=0;E<I.length;E++)T=this._collectTabbableNodes(I[E],B)||T;return T};
_.l._isVisible=function(E){var B=E.style;return B.visibility!=="hidden"&&B.display!=="none"?(B=window.getComputedStyle(E),B.visibility!=="hidden"&&B.display!=="none"):!1};
_.l._sortByTabIndex=function(E){var B=E.length;if(B<2)return E;var I=Math.ceil(B/2);B=this._sortByTabIndex(E.slice(0,I));E=this._sortByTabIndex(E.slice(I));return this._mergeSortByTabIndex(B,E)};
_.l._mergeSortByTabIndex=function(E,B){for(var I=[];E.length>0&&B.length>0;)this._hasLowerTabOrder(E[0],B[0])?I.push(B.shift()):I.push(E.shift());return I.concat(E,B)};
_.l._hasLowerTabOrder=function(E,B){E=Math.max(E.tabIndex,0);B=Math.max(B.tabIndex,0);return E===0||B===0?B>E:E>B};
var qOt=new Vfz;var DHV;var KVh;_.wp({_template:function(){if(KVh!==void 0)return KVh;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;DHV===void 0&&(DHV=document.createElement("template"));var T=DHV;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return KVh=E},
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&&_.QT(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.QT(this.parentNode).removeChild(this)},
_onTransitionend:function(E){E&&E.target===this&&this.complete()},
_openedChanged:function(E){E?this.prepare():(E=window.getComputedStyle(this),E.transitionDuration!=="0s"&&E.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 oA=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;sp(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)};
oA.prototype._bringOverlayAtIndexToFront=function(E){var B=this._overlays[E];if(B){var I=this._overlays.length-1,T=this._overlays[I];T&&this._shouldBeBehindOverlay(B,T)&&I--;if(!(E>=I)){T=Math.max(this._getZ(_.RLV(this)),this._minimumZ);for(this._getZ(B)<=T&&this._applyOverlayZ(B,T);E<I;)this._overlays[E]=this._overlays[E+1],E++;this._overlays[I]=B}}};
oA.prototype.addOverlay=function(E){var B=this._overlays.indexOf(E);if(B>=0)this._bringOverlayAtIndexToFront(B);else{B=this._overlays.length;var I=this._overlays[B-1],T=Math.max(this._getZ(I),this._minimumZ),e=this._getZ(E);I&&this._shouldBeBehindOverlay(E,I)&&(this._applyOverlayZ(I,T),B--,T=Math.max(this._getZ(this._overlays[B-1]),this._minimumZ));e<=T&&this._applyOverlayZ(E,T);this._overlays.splice(B,0,E)}this.trackBackdrop()};
oA.prototype.removeOverlay=function(E){E=this._overlays.indexOf(E);E!==-1&&(this._overlays.splice(E,1),this.trackBackdrop())};
_.RLV=function(E){return E._overlays[E._overlays.length-1]};
_.l=oA.prototype;_.l.trackBackdrop=function(){var E=this._overlayWithBackdrop();if(E||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(E)-1,this.backdropElement.opened=!!E,this.backdropElement.prepare()};
_.l._overlayWithBackdrop=function(){for(var E=this._overlays.length-1;E>=0;E--)if(this._overlays[E].withBackdrop)return this._overlays[E]};
_.l._getZ=function(E){var B=this._minimumZ;if(E){var I,T,e=Number(((I=E.hostElement)!=null?I:E).style.zIndex||window.getComputedStyle((T=E.hostElement)!=null?T:E).zIndex);e===e&&(B=e)}return B};
_.l._setZ=function(E,B){var I;((I=E.hostElement)!=null?I:E).style.zIndex=B};
_.l._applyOverlayZ=function(E,B){this._setZ(E,B+2)};
_.l._overlayInPath=function(E){E=E||[];for(var B=0;B<E.length;B++){var I=void 0;if(((I=E[B].polymerController)!=null?I:E[B])._manager===this)return E[B]}};
_.l._onCaptureClick=function(E){var B=this._overlays.length-1;if(B!==-1)for(var I=_.QT(E).path,T,e;(T=this._overlays[B])&&this._overlayInPath(I)!==((e=T.hostElement)!=null?e:T);)if(T._onCaptureClick(E),T.allowClickThrough)B--;else break};
_.l._onCaptureFocus=function(E){var B=_.RLV(this);B&&B._onCaptureFocus(E)};
_.l._onCaptureKeyDown=function(E){var B=_.RLV(this);B&&(_.mG.keyboardEventMatchesKeys(E,"esc")?B._onCaptureEsc(E):_.mG.keyboardEventMatchesKeys(E,"tab")&&B._onCaptureTab(E))};
_.l._shouldBeBehindOverlay=function(E,B){return!E.alwaysOnTop&&B.alwaysOnTop&&!B.contains(E)};
_.Up.Object.defineProperties(oA.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 E=document.activeElement;E&&E instanceof Element!==!1||(E=document.body);for(;E.root&&_.QT(E.root).activeElement;)E=_.QT(E.root).activeElement;return E}}});
_.Ac=new oA;var xyB=0,GVG=0,O7i=null,nLD=[],hQ=["wheel","mousewheel","DOMMouseScroll"],MwF;_.d("web_no_lock_on_touchstart_killswitch")&&(hQ.push("touchstart"),hQ.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;_.jy={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:_.Ac},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var E;return this._focusedChild||_.QT((E=this.hostElement)!=null?E:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var E;return _.FVN((E=this.hostElement)!=null?E: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 E;this._observer=_.QT((E=this.hostElement)!=null?E:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var E;_.QT((E=this.hostElement)!=null?E:this).unobserveNodes(this._observer)}this._observer=null;for(var B in this.__rafs)this.__rafs[B]!==null&&cancelAnimationFrame(this.__rafs[B]);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(E){this.fire("iron-overlay-canceled",E,{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 E;((E=this.hostElement)!=null?E:this).style.outline="none";var B;((B=this.hostElement)!=null?B:this).style.display="none"}},
_openedChanged:function(E){if(E){var B;((B=this.hostElement)!=null?B:this).removeAttribute("aria-hidden")}else{var I;((I=this.hostElement)!=null?I: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 E;if(this.withBackdrop&&!((E=this.hostElement)!=null?E:this).hasAttribute("tabindex")){var B;((B=this.hostElement)!=null?B:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var I;((I=this.hostElement)!=null?I: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 E;((E=this.hostElement)!=null?E:this).style.display="none";var B;((B=this.hostElement)!=null?B:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var E,B;((E=this.hostElement)!=null?E:this).style.transition=((B=this.hostElement)!=null?B:this).style.webkitTransition="none";var I,T;((I=this.hostElement)!=null?I:this).style.transform=((T=this.hostElement)!=null?T:this).style.webkitTransform="none";var e;((e=this.hostElement)!=null?e:this).style.display=""},
_finishPositioning:function(){var E;((E=this.hostElement)!=null?E:this).style.display="none";this.scrollTop=this.scrollTop;var B,I;((B=this.hostElement)!=null?B:this).style.transition=((I=this.hostElement)!=null?I:this).style.webkitTransition="";var T,e;((T=this.hostElement)!=null?T:this).style.transform=((e=this.hostElement)!=null?e:this).style.webkitTransform="";var c;((c=this.hostElement)!=null?c:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var E=this._manager.deepActiveElement,B;if(!(B=E===document.body))a:{for(;E;E=E.assignedSlot||E.parentNode||E.host)if(E===this){B=!0;break a}B=!1}B&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(E){this.noCancelOnOutsideClick||this.cancel(E)},
_onCaptureFocus:function(E){if(this.withBackdrop){var B=_.QT(E).path;B.indexOf(this)===-1?(E.stopPropagation(),this._applyFocus()):this._focusedChild=B[0]}},
_onCaptureEsc:function(E){this.noCancelOnEscKey||this.cancel(E)},
_onCaptureTab:function(E){if(this.withBackdrop){this.__ensureFirstLastFocusables();var B=E.shiftKey,I=B?this.__firstFocusableNode:this.__lastFocusableNode;B=B?this.__lastFocusableNode:this.__firstFocusableNode;if(I===B)I=!0;else{var T=this._manager.deepActiveElement;I=T===I||T===this}I&&(E.preventDefault(),this._focusedChild=B,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 E=this._focusableNodes;this.__firstFocusableNode=E[0];this.__lastFocusableNode=E[E.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(E,B){var I=this.__rafs;I[E]!==null&&cancelAnimationFrame(I[E]);I[E]=requestAnimationFrame(function(){I[E]=null;B.call(this)}.bind(this))},
__updateScrollObservers:function(E,B,I){E&&B&&this.__isValidScrollAction(I)?(I==="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),MwF=_._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()):(E=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),E!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(E,1),MwF=_._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(Mq)for(var E=this;E;)E.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&E.host&&this.__rootNodes.push(E),E=E.host||E.assignedSlot||E.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(B){B.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(E){E.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(E){return E==="lock"||E==="refit"||E==="cancel"},
__onCaptureScroll:function(E){if(!(this.__isAnimating||_.QT(E).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(E)}},
__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)}};
_.UI=[tft,_.OI,_.jy];_.wp({_template:function(){if(UHZ!==void 0)return UHZ;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;jLh===void 0&&(jLh=document.createElement("template"));var T=jLh;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return UHZ=E},
is:"tp-yt-iron-dropdown",behaviors:[_.Qi,_.mG,_.UI,NAl],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 E=_.QT(this.$.content).getDistributedNodes(),B=0,I=E.length;B<I;B++)if(E[B].nodeType===Node.ELEMENT_NODE)return E[B]},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(),_.jy._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.jy._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.jy._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var E=this.containedElement,B=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),I=0;I<B.length;I++)B[I].node=E;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(E){this._readied&&(E?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var E=this.focusTarget||this.containedElement;E&&this.opened&&!this.noAutoFocus?E.focus():_.jy._applyFocus.apply(this,arguments)}});var E6z;var BZu;/*

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 $oV=new _.uo({type:"iconset"});
_.wp({_template:function(){if(BZu!==void 0)return BZu;var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;E6z===void 0&&(E6z=document.createElement("template"));
var T=E6z;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return BZu=E},
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(E){E=(E||"").split(":");this._iconName=E.pop();this._iconsetName=E.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&&_.QT(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=$oV.byKey(this._iconsetName)){var E=this._iconset.applyIcon(this,this._iconName,this.theme);E&&E.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,_.QT(this.root).appendChild(this._img)}});var Iu$;var TZh;_.wp({_template:function(){if(TZh!==void 0)return TZh;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
var B=E.content,I=B.insertBefore;Iu$===void 0&&(Iu$=document.createElement("template"));var T=Iu$;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return TZh=E},
is:"tp-yt-iron-input",behaviors:[_.xf],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(){_.r4.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.QT(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.QT(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 E=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":E=/[0-9.,e-]/}return E},_bindValueChanged:function(E,B){B&&(E===void 0?B.value=null:E!==B.value&&(this.inputElement.value=E),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:E}))},
_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(E){var B=E.keyCode==19||E.keyCode==20||E.keyCode==45||E.keyCode==46||E.keyCode==144||E.keyCode==145||E.keyCode>32&&E.keyCode<41||E.keyCode>111&&E.keyCode<124;return!(E.keyCode==8||E.keyCode==9||E.keyCode==13||E.keyCode==27)&&!(E.charCode==0&&B)},
_onKeypress:function(E){if(this.allowedPattern||this.inputElement.type==="number"){var B=this._patternRegExp;if(B&&!(E.metaKey||E.ctrlKey||E.altKey)){this._patternAlreadyChecked=!0;var I=String.fromCharCode(E.charCode);this._isPrintable(E)&&!B.test(I)&&(E.preventDefault(),this._announceInvalidCharacter("Invalid character "+I+" not entered."))}}},
_checkPatternValidity:function(){var E=this._patternRegExp;if(!E)return!0;for(var B=0;B<this.inputElement.value.length;B++)if(!E.test(this.inputElement.value[B]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var E=this.inputElement.checkValidity();E&&(this.required&&this.bindValue===""?E=!1:this.hasValidator()&&(E=_.xf.validate.call(this,this.bindValue)));this.invalid=!E;this.fire("iron-input-validate");return E},
_announceInvalidCharacter:function(E){this.fire("iron-announce",{text:E})},
_computeValue:function(E){return E}});var eiV;var luX;var cCR=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),if$=cCR&&cCR[1]>=8;
_.wp({_template:function(){if(luX!==void 0)return luX;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;eiV===void 0&&(eiV=document.createElement("template"));var T=eiV;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return luX=E},
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:[p4D,_.OI,_.Hpz,QYZ],_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 _.QT(_.QT(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var E=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,E-this._physicalCount)},set _virtualStart(E){E=this._clamp(E,0,this._maxVirtualStart);this.grid&&(E-=E%this._itemsPerRow);this._virtualStartVal=E},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(E){E%=this._physicalCount;E<0&&(E=this._physicalCount+E);this.grid&&(E-=E%this._itemsPerRow);this._physicalStartVal=E},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(E){this._physicalCountVal=E},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 E=this._firstVisibleIndexVal;if(E==null){var B=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
E=this._iterateItems(function(I,T){B+=this._getPhysicalSizeIncrement(I);if(B>this._scrollPosition)return this.grid?T-T%this._itemsPerRow:T;if(this.grid&&this._virtualCount-1===T)return T-T%this._itemsPerRow})||0}return E},
get lastVisibleIndex(){var E=this._lastVisibleIndexVal;if(E==null){if(this.grid)E=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var B=this._physicalTop+this._scrollOffset;this._iterateItems(function(I,T){B<this._scrollBottom&&(E=T);B+=this._getPhysicalSizeIncrement(I)})}this._lastVisibleIndexVal=E}return E},
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,_.yA);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(E){this.style.webkitOverflowScrolling=E===this?"touch":"";this.style.overflowY=E===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.yA)},
updateViewportBoundaries:function(){var E=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(E["padding-top"],10);this._isRTL=E.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var E=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),B=E-this._scrollPosition,I=B>=0;this._scrollPosition=E;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(B)>this._physicalSize&&this._physicalSize>0?(B-=this._scrollOffset,I=Math.round(B/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=I,this._physicalStart+=I,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(E=this._getReusables(I),I?(this._physicalTop=E.physicalTop,this._virtualStart+=E.indexes.length,this._physicalStart+=E.indexes.length):(this._virtualStart=this._virtualStart-E.indexes.length,this._physicalStart=this._physicalStart-E.indexes.length),this._update(E.indexes,I?null:E.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),xq))},
_getReusables:function(E){var B=[],I=this._hiddenContentSize*this._ratio,T=this._virtualStart,e=this._virtualEnd,c=this._physicalCount,Y=this._physicalTop+this._scrollOffset;var v=this._physicalBottom+this._scrollOffset;var y=this._scrollPosition,Z=this._scrollBottom;if(E){var P=this._physicalStart;v=y-Y}else P=this._physicalEnd,v-=Z;for(;;){var z=this._getPhysicalSizeIncrement(P);v-=z;if(B.length>=c||v<=I)break;if(E){if(e+B.length+1>=this._virtualCount)break;if(Y+z>=y-this._scrollOffset)break;B.push(P);
Y+=z;P=(P+1)%c}else{if(T-B.length<=0)break;if(Y+this._physicalSize-z<=Z)break;B.push(P);Y-=z;P=P===0?c-1:P-1}}return{indexes:B,physicalTop:Y-this._scrollOffset}},
_update:function(E,B){if(!(E&&E.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(E);this._updateMetrics(E);if(B)for(;B.length;)E=B.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(E);this._positionItems();this._updateScrollerSize()}},
_createPool:function(E){this._ensureTemplatized();var B,I=Array(E);for(B=0;B<E;B++){var T=this.stamp(null);I[B]=T.root.querySelector("*");this._itemsParent.appendChild(T.root)}return I},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(E){E=this._clamp(this._physicalCount+E,3,this._virtualCount-this._virtualStart);E=this._convertIndexToCompleteRow(E);if(this.grid){var B=E%this._itemsPerRow;B&&E-B<=this._physicalCount&&(E+=this._itemsPerRow);E-=B}E-=this._physicalCount;B=Math.round(this._physicalCount*.5);if(!(E<0)){if(E>0){B=window.performance.now();[].push.apply(this._physicalItems,this._createPool(E));for(var I=0;I<E;I++)this._physicalSizes.push(0);this._physicalCount+=E;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=E);this._update();this._templateCost=(window.performance.now()-B)/E;B=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||B===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,B)),$fz):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,B),xq))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var E=this._getReusables(!0);this._physicalTop=E.physicalTop;this._virtualStart+=E.indexes.length;this._physicalStart+=E.indexes.length;this._update(E.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 E={__key__:!0};E[this.as]=!0;E[this.indexAs]=!0;E[this.selectedAs]=!0;E.tabIndex=!0;this._instanceProps=E;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(E,B){typeof B!=="undefined"&&(this.notifyResize(),_.po(),E&&this._updateGridMetrics())},
_itemsChanged:function(E){if(E.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,
_.yA);else if(E.path==="items.splices"){this._adjustVirtualIndex(E.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(E.value.indexSplices.some(function(I){return I.addedCount>0||I.removed.length>0})){var B=this._getActiveElement();
this.contains(B)&&B.blur()}E=E.value.indexSplices.some(function(I){return I.index+I.addedCount>=this._virtualStart&&I.index<=this._virtualEnd},this);
this._isClientFull()&&!E||this._debounce("_render",this._render,_.yA)}else E.path!=="items.length"&&this._forwardItemPath(E.path,E.value)},
_forwardItemPath:function(E,B){E=E.slice(6);var I=E.indexOf(".");I===-1&&(I=E.length);var T,e=this.modelForElement(this._offscreenFocusedItem),c=parseInt(E.substring(0,I),10);if(T=this._isIndexRendered(c)){var Y=this._getPhysicalIndex(c);var v=this.modelForElement(this._physicalItems[Y])}else e&&(v=e);v&&v[this.indexAs]===c&&(E=E.substring(I+1),E=this.as+(E?"."+E:""),v._setPendingPropertyOrPath(E,B,!1,!0),v._flushProperties&&v._flushProperties(),T&&(this._updateMetrics([Y]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(E){E.forEach(function(B){B.removed.forEach(this._removeItem,this);B.index<this._virtualStart&&(B=Math.max(B.addedCount-B.removed.length,B.index-this._virtualStart),this._virtualStart+=B,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=B))},this)},
_removeItem:function(E){this.$.selector.deselect(E);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===E&&this._removeFocusedItem()},
_iterateItems:function(E,B){var I,T;if(arguments.length===2&&B)for(T=0;T<B.length;T++){var e=B[T];var c=this._computeVidx(e);if((I=E.call(this,e,c))!=null)return I}else{e=this._physicalStart;for(c=this._virtualStart;e<this._physicalCount;e++,c++)if((I=E.call(this,e,c))!=null)return I;for(e=0;e<this._physicalStart;e++,c++)if((I=E.call(this,e,c))!=null)return I}},
_computeVidx:function(E){return E>=this._physicalStart?this._virtualStart+(E-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+E},
_assignModels:function(E){this._iterateItems(function(B,I){var T=this._physicalItems[B],e=this.items&&this.items[I];if(e!=null){var c=this.modelForElement(T);c.__key__=null;this._forwardProperty(c,this.as,e);this._forwardProperty(c,this.selectedAs,this.$.selector.isSelected(e));this._forwardProperty(c,this.indexAs,I);this._forwardProperty(c,"tabIndex",this._focusedVirtualIndex===I?0:-1);this._physicalIndexForKey[c.__key__]=B;c._flushProperties&&c._flushProperties(!0);T.removeAttribute("hidden")}else T.setAttribute("hidden",
"")},E)},
_updateMetrics:function(E){_.po();var B=0,I=0,T=this._physicalAverageCount,e=this._physicalAverage;this._iterateItems(function(c){I+=this._physicalSizes[c];this._physicalSizes[c]=this._physicalItems[c].offsetHeight;B+=this._physicalSizes[c];this._physicalAverageCount+=this._physicalSizes[c]?1:0},E);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(I=this._itemsPerRow===1?I:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+B-I,this._itemsPerRow=1);this._physicalAverageCount!==T&&(this._physicalAverage=Math.round((e*T+B)/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 E=this._physicalTop;if(this.grid){var B=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(I,T){var e=Math.floor(T%this._itemsPerRow*this._itemWidth+B);this._isRTL&&(e*=-1);this.translate3d(e+"px",E+"px",0,this._physicalItems[I]);this._shouldRenderNextRow(T)&&(E+=this._rowHeight)})}else this._iterateItems(function(I){this.translate3d(0,E+"px",0,this._physicalItems[I]);
E+=this._physicalSizes[I]})},
_getPhysicalSizeIncrement:function(E){return this.grid?this._computeVidx(E)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[E]},
_shouldRenderNextRow:function(E){return E%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var E=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(E!==0){this._physicalTop=this._physicalTop-E;var B=this._scrollPosition;!if$&&B>0&&this._resetScrollPosition(B-E)}},
_resetScrollPosition:function(E){this.scrollTarget&&E>=0&&(this._scrollPosition=this._scrollTop=E)},
_updateScrollerSize:function(E){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((E=(E=(E=E||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(E){return this.scrollToIndex(this.items.indexOf(E))},
scrollToIndex:function(E){if(!(typeof E!=="number"||E<0||E>this.items.length-1)&&(_.po(),this._physicalCount!==0)){E=this._clamp(E,0,this._virtualCount-1);if(!this._isIndexRendered(E)||E>=this._maxVirtualStart)this._virtualStart=this.grid?E-this._itemsPerRow*2:E-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var B=this._physicalStart,I=this._virtualStart,T=0,e=this._hiddenContentSize;I<E&&
T<=e;)T+=this._getPhysicalSizeIncrement(B),B=(B+1)%this._physicalCount,I++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+T);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)},_.yA)},
selectItem:function(E){return this.selectIndex(this.items.indexOf(E))},
selectIndex:function(E){if(!(E<0||E>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(E)){var B=this.modelForElement(this._physicalItems[this._getPhysicalIndex(E)]);B&&(B[this.selectedAs]=!0);this.updateSizeForIndex(E)}this.$.selector.selectIndex(E)}},
deselectItem:function(E){return this.deselectIndex(this.items.indexOf(E))},
deselectIndex:function(E){E<0||E>=this._virtualCount||(this._isIndexRendered(E)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(E)])[this.selectedAs]=!1,this.updateSizeForIndex(E)),this.$.selector.deselectIndex(E))},
toggleSelectionForItem:function(E){return this.toggleSelectionForIndex(this.items.indexOf(E))},
toggleSelectionForIndex:function(E){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(E):this.$.selector.isSelected(this.items[E]))?this.deselectIndex(E):this.selectIndex(E)},
clearSelection:function(){this._iterateItems(function(E){this.modelForElement(this._physicalItems[E])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(E){(E?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(E){var B=this.modelForElement(E.target);if(B){var I=_.QT(E).path[0];E=this._getActiveElement();var T=this._physicalItems[this._getPhysicalIndex(B[this.indexAs])];if(I.localName!=="input"&&I.localName!=="button"&&I.localName!=="select"){I=B.tabIndex;B.tabIndex=-100;var e=E?E.tabIndex:-1;B.tabIndex=I;E&&T!==E&&T.contains(E)&&e!==-100||this.toggleSelectionForItem(B[this.as])}}},
_multiSelectionChanged:function(E){this.clearSelection();this.$.selector.multi=E},
updateSizeForItem:function(E){return this.updateSizeForIndex(this.items.indexOf(E))},
updateSizeForIndex:function(E){if(!this._isIndexRendered(E))return null;this._updateMetrics([this._getPhysicalIndex(E)]);this._positionItems();return null},
_manageFocus:function(){var E=this._focusedVirtualIndex;E>=0&&E<this._virtualCount?this._isIndexRendered(E)?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(E){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(E/this._itemsPerRow)*this._itemsPerRow:E},
_isIndexRendered:function(E){return E>=this._virtualStart&&E<=this._virtualEnd},
_isIndexVisible:function(E){return E>=this.firstVisibleIndex&&E<=this.lastVisibleIndex},
_getPhysicalIndex:function(E){return(this._physicalStart+(E-this._virtualStart))%this._physicalCount},
focusItem:function(E){this._focusPhysicalItem(E)},
_focusPhysicalItem:function(E){if(!(E<0||E>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(E)||this.scrollToIndex(E);var B=this._physicalItems[this._getPhysicalIndex(E)],I=this.modelForElement(B),T;I.tabIndex=-100;B.tabIndex===-100&&(T=B);T||(T=_.QT(B).querySelector('[tabindex="-100"]'));I.tabIndex=0;this._focusedVirtualIndex=E;T&&T.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 E=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var B=this.stamp(null);this._focusBackfillItem=B.root.querySelector("*");this._itemsParent.appendChild(B.root)}this._offscreenFocusedItem=this._physicalItems[E];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[E]=this._focusBackfillItem;this._focusedPhysicalIndex=E;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var E=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),B=this._physicalItems[E];if(B){var I=this.modelForElement(B),T=this.modelForElement(this._offscreenFocusedItem);I[this.as]===T[this.as]?(this._focusBackfillItem=B,I.tabIndex=-1,this._physicalItems[E]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(E){E=this.modelForElement(E.target);var B=this.modelForElement(this._focusedItem),I=this._offscreenFocusedItem!==null,T=this._focusedVirtualIndex;E&&(B===E?this._isIndexVisible(T)||this.scrollToIndex(T):(this._restoreFocusedItem(),B&&(B.tabIndex=-1),E.tabIndex=0,this._focusedVirtualIndex=T=E[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(T),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],I&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(E){switch(E.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&E.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&&E.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(E)}},
_clamp:function(E,B,I){return Math.min(I,Math.max(B,E))},
_debounce:function(E,B,I){this._debouncers=this._debouncers||{};this._debouncers[E]=_.Tz(this._debouncers[E],I,B.bind(this));_.eo(this._debouncers[E])},
_forwardProperty:function(E,B,I){E._setPendingProperty(B,I)},
_forwardHostPropV2:function(E,B){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).forwardHostProp(E,B)},this)},
_notifyInstancePropV2:function(E,B,I){o3f(this.as,B)&&(E=E[this.indexAs],B==this.as&&(this.items[E]=I),this.notifyPath(e$(this.as,"items."+E,B),I))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(E,B,I){B.indexOf(this.as+".")===0&&this.notifyPath("items."+E.__key__+"."+B.slice(this.as.length+1),I)},
_forwardParentPath:function(E,B){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).notifyPath(E,B)},this)},
_forwardParentProp:function(E,B){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&(this.modelForElement(I)[E]=B)},this)},
_getActiveElement:function(){var E=this._itemsParent.node.domHost;return _.QT(E?E.root:document).activeElement},
_scrollTargetChanged:function(E,B){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(B)if(E==="document")this.scrollTarget=this._doc;else if(typeof E==="string"){var I,T;this.scrollTarget=(B=(T=(I=this.domHost)==null?void 0:I.polymerController)!=null?T:this.domHost)&&B.$?B.$[E]:_.QT(this.ownerDocument).querySelector("#"+E)}else this._isValidScrollTarget()&&(this._oldScrollTarget=E,this._toggleScrollListener(this._shouldHaveListener,E))}});var pDh;var Yj6;var auN=function(E,B,I,T){E-=I;B-=T;return Math.sqrt(E*E+B*B)},v6R=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
H76.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Nw6=function(E){E.maxRadius=0;E.mouseDownStart=0;E.mouseUpStart=0;E.xStart=0;E.yStart=0;E.xEnd=0;E.yEnd=0;E.containerMetrics=new H76(E.element)};
gLG.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var E=v6R()-this.mouseDownStart;this.mouseUpStart&&(E-=this.mouseUpElapsed);return E},get mouseUpElapsed(){return this.mouseUpStart?v6R()-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 E=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(E*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-E/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var E=this.radius/(this.containerMetrics.size/2);var B=this.xNow-this.containerMetrics.width/2;var I=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+B+"px, "+I+"px)";this.waveContainer.style.transform="translate3d("+B+"px, "+I+"px, 0)";this.wave.style.webkitTransform="scale("+E+","+E+")";this.wave.style.transform="scale3d("+E+","+E+",1)"},
downAction:function(E){var B=this.containerMetrics.width/2,I=this.containerMetrics.height/2;Nw6(this);this.mouseDownStart=v6R();this.center?(this.xStart=B,this.yStart=I):(this.xStart=E?E.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=E?E.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=B,this.yEnd=I);E=this.containerMetrics;B=this.xStart;I=this.yStart;this.maxRadius=Math.max(auN(B,I,0,0),auN(B,I,
E.width,0),auN(B,I,0,E.height),auN(B,I,E.width,E.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=v6R())},
remove:function(){_.QT(_.QT(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.wp({_template:function(){if(Yj6!==void 0)return Yj6;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;pDh===void 0&&(pDh=document.createElement("template"));var T=pDh;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return Yj6=E},
is:"tp-yt-paper-ripple",behaviors:[_.mG],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(){_.QT(this).parentNode.nodeType==11?this.keyEventTarget=_.QT(this).getOwnerRoot().host:this.keyEventTarget=_.QT(this).parentNode;var E=this.keyEventTarget;this.listen(E,"up","uiUpAction");this.listen(E,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(E){E.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var E=0;E<this.ripples.length;++E)if(!this.ripples[E].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(E){this.noink||this.downAction(E)},
downAction:function(E){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(E),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(E){this.noink||this.upAction(E)},
upAction:function(E){this.holdDown||(this.ripples.forEach(function(B){B.upAction(E)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var E=0;E<this.ripples.length;++E){var B=this.ripples[E];B.isOpacityFullyDecayed&&!B.isRestingAtMaxRadius&&this.removeRipple(B)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var E=new gLG(this);_.QT(this.$.waves).appendChild(E.waveContainer);this.$.background.style.backgroundColor=E.color;this.ripples.push(E);this._setAnimating(!0);return E},
removeRipple:function(E){var B=this.ripples.indexOf(E);B<0||(this.ripples.splice(B,1),E.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var E;for(E=0;E<this.ripples.length;++E){var B=this.ripples[E];B.draw();this.$.background.style.opacity=B.outerOpacity;B.isOpacityFullyDecayed&&!B.isRestingAtMaxRadius&&this.removeRipple(B)}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(E,B){B!==void 0&&(E?this.downAction():this.upAction())}});var kf={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(E){d4._downHandler.call(this,E);this.pressed&&this.ensureRipple(E)},
ensureRipple:function(E){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var B=this._rippleContainer||this.root;B&&_.QT(B).appendChild(this._ripple);if(E){B=_.QT(this._rippleContainer||this);var I=_.QT(E).rootTarget;B.deepContains(I)&&this._ripple.uiDownAction(E)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(E){this.hasRipple()&&(this._ripple.noink=E)}};var yCu={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 E=1;this.disabled?E=0:this.active||this.pressed?E=4:this.receivedFocusFromKeyboard&&(E=3);this._setElevation(E)},
_computeKeyboardClass:function(E){this.toggleClass("keyboard-focus",E)},
_spaceKeyDownHandler:function(E){d4._spaceKeyDownHandler.call(this,E);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(E){d4._spaceKeyUpHandler.call(this,E);this.hasRipple()&&this._ripple.uiUpAction()}},CJz=[QSD,
_.Qi,kf,yCu];_.wDt={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(E){E&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=E)},
_createRipple:function(){var E=kf._createRipple();E.id="ink";E.setAttribute("center","");E.classList.add("circle");return E}};
_.ZfZ=[QSD,_.Qi,kf,_.wDt];_.PJZ=[_.ZfZ,sSZ,{_checkedChanged:function(){hbh._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){kf._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var zi$;var mo$;var Q0R=function(){};
_.l=Q0R.prototype;_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._buttonStateChanged=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._createRipple=function(){};
_.l._noinkChanged=function(){};
_.l._computeKeyboardClass=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
_.l._setElevation=function(){};
Q0R=_.wp({_template:function(){if(mo$!==void 0)return mo$;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
var B=E.content,I=B.insertBefore;zi$===void 0&&(zi$=document.createElement("template"));var T=zi$;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return mo$=E},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[CJz],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?yCu._calculateElevation.apply(this):this._setElevation(0)}});var doU;var hir;var s0r={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(E){_.d("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(E)},
_onDialogClickWrapped:function(E){_.d("dialog_behavior_no_tap_killswitch")||this._onDialogClick(E)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(E,B){B&&(E?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(E){this.closingReason=this.closingReason||{};this.closingReason.confirmed=E},
_onDialogClick:function(E){for(var B=_.QT(E).path,I=0,T,e=B.indexOf((T=this.hostElement)!=null?T:this);I<e;I++)if(T=B[I],T.hasAttribute&&(T.hasAttribute("dialog-dismiss")||T.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(T.hasAttribute("dialog-confirm"));this.close();E.stopPropagation();break}}},uzD=[_.UI,
s0r];var Lxt=document.createElement("template");_.G(Lxt,'<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(Lxt.content);var xoR=document.createElement("template");_.G(xoR,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(xoR.content);_.wp({_template:function(){if(hir!==void 0)return hir;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
var B=E.content,I=B.insertBefore;doU===void 0&&(doU=document.createElement("template"));var T=doU;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return hir=E},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[uzD,NAl],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 GNu;var OfV;_.wp({_template:function(){if(OfV!==void 0)return OfV;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;GNu===void 0&&(GNu=document.createElement("template"));var T=GNu;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return OfV=E},
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 E,B,I;if(((E=window.ShadyDOM)==null?void 0:E.noPatch)!==!0&&((B=window.ShadyDOM)==null?void 0:B.noPatch)!=="on-demand"||((I=this.__shady_parentNode)==null?void 0:I.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(s0r)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var n6u=_.km(['<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>']),M9U=_.LrX(n6u);M9U.setAttribute("style","display: none;");document.head.appendChild(M9U.content);var HfD;var NZz;var g6N;var SjN;_.wp({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[n2],configure:function(E){var B=E.node,I=B.getBoundingClientRect().height;return this._effect=new KeyframeEffect(B,[{height:I/2+"px"},{height:I+"px"}],this.timingFromConfig(E))}});
_.wp({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[n2],configure:function(E){var B=E.node,I=B.getBoundingClientRect().width;return this._effect=new KeyframeEffect(B,[{width:I/2+"px"},{width:I+"px"}],this.timingFromConfig(E))}});
_.wp({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[n2],configure:function(E){var B=E.node,I=B.getBoundingClientRect().width;return this._effect=new KeyframeEffect(B,[{width:I+"px"},{width:I-I/20+"px"}],this.timingFromConfig(E))}});
_.wp({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[n2],configure:function(E){var B=E.node,I=B.getBoundingClientRect().height;this.setPrefixedProperty(B,"transformOrigin","0 0");return this._effect=new KeyframeEffect(B,[{height:I+"px",transform:"translateY(0)"},{height:I/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(E))}});var tc={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},JCu=function(){};
_.l=JCu.prototype;_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._focusBlurHandler=function(){};
_.l._changedControlState=function(){};
_.l._setFocused=function(){};
JCu=_.wp({_template:function(){if(SjN!==void 0)return SjN;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;g6N===void 0&&(g6N=document.createElement("template"));var T=g6N;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return SjN=E},
is:"tp-yt-paper-menu-button",behaviors:[_.mG,_.Qi],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:tc.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:tc.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:tc.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 E=_.QT(this.$.content).getDistributedNodes(),B=0,I=E.length;B<I;B++)if(E[B].nodeType===Node.ELEMENT_NODE)return E[B]},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(E,B){E?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):B!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(E){_.Qi._disabledChanged.apply(this,arguments);E&&this.opened&&this.close()},
__onIronOverlayCanceled:function(E){var B=this.$.trigger;_.QT(E.detail).path.indexOf(B)>-1&&E.preventDefault()}});
Object.keys(tc).forEach(function(E){JCu[E]=tc[E]});var Wxu=_.hc.IronButtonState,XDt=(0,_.zz)(HTMLElement);
_.wp({_template:function(){if(NZz!==void 0)return NZz;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;HfD===void 0&&(HfD=document.createElement("template"));var T=HfD;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return NZz=E},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Wxu,_.Qi,kf,_.sI,_.xf],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(E){var B=(0,_.Yq)(this);B.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:E});B.shadowRoot.appendChild(E);return XDt.prototype._attachDom.call(this,E)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var E=this.contentElement;E&&E.selectedItem&&this._setSelectedItem(E.selectedItem)},
get contentElement(){for(var E=_.QT(this.$.content).getDistributedNodes(),B=0,I=E.length;B<I;B++)if(E[B].nodeType===Node.ELEMENT_NODE)return E[B]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(E){this._setSelectedItem(E.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(E){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E)===this&&this.open()},
_selectedItemChanged:function(E){var B="";E?B=E.label||E.getAttribute("label")||E.textContent.trim():B="";this.value=B;this._setSelectedItemLabel(B)},
_computeMenuVerticalOffset:function(E,B){return B?B:E?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var E=this.opened?"true":"false",B=this.contentElement;B&&B.setAttribute("aria-expanded",E)},
_computeLabelClass:function(E,B,I){var T="label";if(E)I&&(T+=" label-is-hidden");else if(I||B)T+=" label-is-floating";return T},
_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 rCR;var bfD;_.wp({is:"tp-yt-paper-icon-button",_template:function(){if(bfD!==void 0)return bfD;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;rCR===void 0&&(rCR=document.createElement("template"));var T=rCR;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return bfD=E},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.ZfZ],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(E,B){var I=this.getAttribute("aria-label");I&&B!=I||this.setAttribute("aria-label",E)}});var o6Z;var ACN;_.f2=[QSD,_.Qi,{hostAttributes:{role:"option",tabindex:"0"}}];_.wp({_template:function(){if(ACN!==void 0)return ACN;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;o6Z===void 0&&(o6Z=document.createElement("template"));var T=o6Z;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return ACN=E},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.f2]});var j0D;var Uot;var kNh={attached:function(){this.fire("addon-attached")},
update:function(){}};var t9u=1,ful=1,V9z=1,qju=[_.Qi,_.mG,{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();!DY&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(E,B){E?E=E+" "+B:E=B;return E},
_onAddonAttached:function(E){E=_.QT(E).rootTarget;if(E.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,E.id);else{var B="paper-input-add-on-"+ful++;E.id=B;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,B)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(E){_.Qi._focusBlurHandler.call(this,E);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var E=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",E);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(E){try{var B=this.inputElement.selectionStart;this.value=E;this.inputElement.selectionStart=B;this.inputElement.selectionEnd=B}catch(I){this.value=E}},
_computeAlwaysFloatLabel:function(E,B){return B||E},
_updateAriaLabelledBy:function(){var E=_.QT(this.root).querySelector("label");if(E){if(E.id)var B=E.id;else B="paper-input-label-"+t9u++,E.id=B;this._ariaLabelledBy=B}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+V9z++)},
_onChange:function(E){this.shadowRoot&&this.fire(E.type,{sourceEvent:E},{node:this,bubbles:E.bubbles,cancelable:E.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var E=document.activeElement;E instanceof HTMLElement&&E!==document.body&&E!==document.documentElement||this._focusableElement.focus()}}}];var FxX;var Dol;_.wp({_template:function(){if(Dol!==void 0)return Dol;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;FxX===void 0&&(FxX=document.createElement("template"));var T=FxX;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return Dol=E},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[kNh],properties:{_charCounterStr:{type:String,value:"0"}},update:function(E){if(E.inputElement){E.value=E.value||"";var B=E.value.toString().length.toString();E.inputElement.hasAttribute("maxlength")&&(B+="/"+E.inputElement.getAttribute("maxlength"));this._charCounterStr=B}}});var KxN;var RiN;_.wp({_template:function(){if(RiN!==void 0)return RiN;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;KxN===void 0&&(KxN=document.createElement("template"));var T=KxN;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return RiN=E},
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 Ep(this.attrForValue)},get _inputElement(){return _.QT(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(E){this._addons||(this._addons=[]);E=E.target;this._addons.indexOf(E)===-1&&(this._addons.push(E),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(E){this._handleValueAndAutoValidate(E.target)},
_onValueChanged:function(E){var B=E.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,B.value===void 0||B.value===""))return;this._handleValueAndAutoValidate(E.target)},
_handleValue:function(E){var B=this._inputElementValue;B||B===0||E.type==="number"&&!E.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:E,value:B,invalid:this.invalid})},
_handleValueAndAutoValidate:function(E){this.autoValidate&&E&&(this.invalid=!(E.validate?E.validate(this._inputElementValue):E.checkValidity()));this._handleValue(E)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(E){if(this._addons)for(var B,I=0;B=this._addons[I];I++)B.update(E)},
_computeInputContentClass:function(E,B,I,T,e){var c="input-content";E?(e&&(c+=" label-is-hidden"),T&&!this.noUnfloatedLabelError&&(c+=" is-invalid")):(E=this.querySelector("label"),B||e?(c+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",T?c+=" is-invalid":I&&(c+=" label-is-highlighted")):(E&&(this.$.labelAndInputContainer.style.position="relative"),T&&!this.noUnfloatedLabelError&&(c+=" is-invalid")));I&&(c+=" focused");return c},
_computeUnderlineClass:function(E,B){var I="underline";B?I+=" is-invalid":E&&(I+=" is-highlighted");return I},
_computeAddOnContentClass:function(E,B){var I="add-on-content";B?I+=" is-invalid":E&&(I+=" is-highlighted");return I}});var EmD;var B6u;_.wp({_template:function(){if(B6u!==void 0)return B6u;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;EmD===void 0&&(EmD=document.createElement("template"));var T=EmD;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return B6u=E},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[kNh],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(E){this._setInvalid(E.invalid)}});_.wp({is:"tp-yt-paper-input",_template:function(){if(Uot!==void 0)return Uot;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;j0D===void 0&&(j0D=document.createElement("template"));var T=j0D;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return Uot=E},
behaviors:[qju,_.sI],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 $s$;var I4R;_.wp({_template:function(){if(I4R!==void 0)return I4R;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=
E.content,I=B.insertBefore;$s$===void 0&&($s$=document.createElement("template"));var T=$s$;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return I4R=E},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.f2]});var T6X;var eVN;_.wp({_template:function(){if(eVN!==void 0)return eVN;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
var B=E.content,I=B.insertBefore;T6X===void 0&&(T6X=document.createElement("template"));var T=T6X;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return eVN=E},
is:"tp-yt-paper-item-body"});var l4h;var cb6;var iJ$=function(){};
_.l=iJ$.prototype;_.l.indexOf=function(){};
_.l.selectPrevious=function(){};
_.l.selectNext=function(){};
_.l.selectIndex=function(){};
_.l.forceSynchronousItemUpdate=function(){};
_.l._checkFallback=function(){};
_.l._addListener=function(){};
_.l._removeListener=function(){};
_.l._activateEventChanged=function(){};
_.l._updateItems=function(){};
_.l._selectSelected=function(){};
_.l._filterItem=function(){};
_.l._valueToItem=function(){};
_.l._valueToIndex=function(){};
_.l._indexToValue=function(){};
_.l._valueForItem=function(){};
_.l._observeItems=function(){};
_.l._itemActivate=function(){};
_.l.multiChanged=function(){};
_.l._updateAttrForSelected=function(){};
_.l._updateSelected=function(){};
_.l._selectMulti=function(){};
_.l._selectionChange=function(){};
_.l._toggleSelected=function(){};
_.l._valuesToItems=function(){};
_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l.select=function(){};
_.l._resetTabindices=function(){};
_.l._updateMultiselectable=function(){};
_.l._focusWithKeyboardEvent=function(){};
_.l._clearSearchText=function(){};
_.l._focusPrevious=function(){};
_.l._focusNext=function(){};
_.l._applySelection=function(){};
_.l._focusedItemChanged=function(){};
_.l._onIronItemsChanged=function(){};
_.l._onShiftTabDown=function(){};
_.l._onFocus=function(){};
_.l._onUpKey=function(){};
_.l._onDownKey=function(){};
_.l._onEscKey=function(){};
_.l._onKeydown=function(){};
_.l._activateHandler=function(){};
_.l._disabledChanged=function(){};
_.l._setSelectedItem=function(){};
_.l._setItems=function(){};
_.l._setSelectedItems=function(){};
_.l._setFocusedItem=function(){};
iJ$=_.wp({_template:function(){if(cb6!==void 0)return cb6;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
var B=E.content,I=B.insertBefore;l4h===void 0&&(l4h=document.createElement("template"));var T=l4h;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return cb6=E},
is:"tp-yt-paper-listbox",behaviors:[GI$],hostAttributes:{role:"listbox"}});var p3Z;var Ygh;var a4h={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(E,B){return[E||B?"active":"",B?"cooldown":""].join(" ")},
__activeChanged:function(E,B){this.__setAriaHidden(!E);this.__coolingDown=!E&&B},
__altChanged:function(E){this.setAttribute("aria-label",E||"loading")},
__setAriaHidden:function(E){E?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.wp({_template:function(){if(Ygh!==void 0)return Ygh;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;p3Z===void 0&&(p3Z=document.createElement("template"));var T=p3Z;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return Ygh=E},
is:"tp-yt-paper-spinner",behaviors:[a4h]});var vmz;var ybZ;_.wp({_template:function(){if(ybZ!==void 0)return ybZ;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;vmz===void 0&&(vmz=document.createElement("template"));var T=vmz;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return ybZ=E},
is:"tp-yt-paper-spinner-lite",behaviors:[a4h]});var CbV;var w3t;_.wp({_template:function(){if(w3t!==void 0)return w3t;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;CbV===void 0&&(CbV=document.createElement("template"));var T=CbV;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return w3t=E},
is:"tp-yt-paper-tab",behaviors:[_.Qi,_.hc.IronButtonState,kf],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 E=_.QT(this).parentNode;return!!E&&!!E.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(E){if(this.link){var B=this.queryEffectiveChildren("a");B&&E.target!==B&&B.click()}}});var ZJt;var PbN;var zVt=_.km(['<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>']),ms6=_.LrX(zVt);document.head.appendChild(ms6.content);_.wp({_template:function(){if(PbN!==void 0)return PbN;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;ZJt===void 0&&(ZJt=document.createElement("template"));var T=ZJt;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return PbN=E},
is:"tp-yt-paper-tabs",behaviors:[_.OI,_.n3l],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(E){_.QT(this).querySelectorAll("tp-yt-paper-tab").forEach(E?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(E){E.setAttribute("noink","")},
_removeNoinkAttribute:function(E){E.removeAttribute("noink")},
_computeScrollButtonClass:function(E,B,I,T){return!B||I?"hidden":E?T?"hidden":"not-visible":""},
_computeTabsContentClass:function(E,B){var I="tabs-content";E&&(I+=" scrollable");if(!E||B)I+=" fit-container";return I},
_computeSelectionBarClass:function(E,B){var I="selection-bar";E?I+=" hidden":B&&(I+=" align-bottom");return I},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(E){return""+E},
_onIronSelect:function(E){this._tabChanged(E.detail.item,this._previousTab);this._previousTab=E.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();_.Gq._activateHandler.apply(this,arguments)},
_scheduleActivation:function(E,B){this._pendingActivationItem=E;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,B)},
_delayedActivationHandler:function(){var E=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;E.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(E){E.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(E,B){this.scrollable&&this._affectScroll(B&&-B.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(E){this.$.tabsContainer.scrollLeft+=E;E=this.$.tabsContainer.scrollLeft;this._leftHidden=E===0||this.hideScrollButtons;this._rightHidden=E===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(E,B){if(E){var I=this.$.tabsContent.getBoundingClientRect(),T=I.width,e=E.getBoundingClientRect();I=e.left-I.left;this._pos={width:this._calcPercent(e.width,T),left:this._calcPercent(I,T)};if(this.noSlide||B==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var c=B.getBoundingClientRect();B=this.items.indexOf(B);E=this.items.indexOf(E);this.$.selectionBar.classList.add("expand");
E=B<E;this._isRTL&&(E=!E);E?this._positionBar(this._calcPercent(e.left+e.width-c.left,T)-5,this._left):this._positionBar(this._calcPercent(c.left+c.width-e.left,T)-5,this._calcPercent(I,T)+5);this.scrollable&&this._scrollToSelectedIfNeeded(e.width,I)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(E,B){B-=this.$.tabsContainer.scrollLeft;B<0?this.$.tabsContainer.scrollLeft+=B:(B+=E-this.$.tabsContainer.offsetWidth,B>0&&(this.$.tabsContainer.scrollLeft+=B))},
_calcPercent:function(E,B){return 100*E/B},
_positionBar:function(E,B){E=E||0;B=B||0;this._width=E;this._left=B;this.transform("translateX("+B+"%) scaleX("+E/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var E=this.$.selectionBar.classList;E.contains("expand")?(E.remove("expand"),E.add("contract"),this._positionBar(this._pos.width,this._pos.left)):E.contains("contract")&&E.remove("contract")}});var QPR;var dsh;_.wp({_template:function(){if(dsh!==void 0)return dsh;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;QPR===void 0&&(QPR=document.createElement("template"));var T=QPR;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return dsh=E},
is:"tp-yt-paper-textarea",behaviors:[qju,_.sI],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(E){this.$.input.textarea.selectionStart=E},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(E){this.$.input.textarea.selectionEnd=E},_ariaLabelledByChanged:function(E){this._focusableElement.setAttribute("aria-labelledby",E)},
_ariaDescribedByChanged:function(E){this._focusableElement.setAttribute("aria-describedby",E)},
get _focusableElement(){return this.inputElement.textarea}});var hV$;var sPl;/*

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 uYD=function(){};
_.l=uYD.prototype;_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._noinkChanged=function(){};
_.l._focusedChanged=function(){};
_.l.registered=function(){};
_.l._invalidChanged=function(){};
_.l.hasValidator=function(){};
_.l.validate=function(){};
_.l._getValidity=function(){};
_.l._requiredChanged=function(){};
_.l._valueChanged=function(){};
_.l._checkedChanged=function(){};
_.l._buttonStateChanged=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
uYD=_.wp({is:"tp-yt-paper-toggle-button",_template:function(){if(sPl!==void 0)return sPl;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;hV$===void 0&&(hV$=document.createElement("template"));var T=hV$;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return sPl=E},
behaviors:[_.PJZ],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");_.AJ(this,function(){_.Lg(this,"pan-y")})},
_ontrack:function(E){E=E.detail;E.state==="start"?this._trackStart(E):E.state==="track"?this._trackMove(E):E.state==="end"&&this._trackEnd(E)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(E){E=E.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+E:E)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+E:E));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 E=kf._createRipple();E.id="ink";E.setAttribute("recenters","");E.classList.add("circle","toggle-ink");return E}});var LiN;var xsu;_.wp({_template:function(){if(xsu!==void 0)return xsu;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;LiN===void 0&&(LiN=document.createElement("template"));var T=LiN;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return xsu=E},
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 E=_.QT(this).parentNode,B=_.QT(this).getOwnerRoot(),I;this.for?I=_.QT(B).querySelector("#"+this.for):I=E.nodeType==Node.DOCUMENT_FRAGMENT_NODE?B.host:E;return I},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(E){E==="entry"?this.show():E==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.QT(this).textContent.trim()===""){for(var E=!0,B=_.QT(this).getEffectiveChildNodes(),I=0;I<B.length;I++)if(B[I].textContent.trim()!==""){E=!1;break}if(E)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 E=this.offset;this.marginTop!=14&&this.offset==14&&(E=this.marginTop);var B=this.offsetParent.getBoundingClientRect(),I=this._target.getBoundingClientRect(),T=this.getBoundingClientRect(),e=(I.width-T.width)/2,c=(I.height-T.height)/2,Y=I.left-B.left,v=I.top-B.top;switch(this.position){case "top":var y=Y+e;var Z=v-T.height-E;break;case "bottom":y=Y+e;Z=v+I.height+E;break;case "left":y=Y-T.width-E;Z=v+c;break;case "right":y=Y+I.width+
E,Z=v+c}this.fitToVisibleBounds?(B.left+y+T.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,y)+"px",this.style.right="auto"),B.top+Z+T.height>window.innerHeight?(this.style.bottom=B.height+"px",this.style.top="auto"):(this.style.top=Math.max(-B.top,Z)+"px",this.style.bottom="auto")):(this.style.left=y+"px",this.style.top=Z+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(E){E!==500&&this.updateStyles({"--paper-tooltip-delay-in":E+"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(E){if(E==="entry"&&this.animationEntry!=="")return this.animationEntry;if(E==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[E]&&typeof this.animationConfig[E][0].name==="string"){if(this.animationConfig[E][0].timing&&this.animationConfig[E][0].timing.delay&&this.animationConfig[E][0].timing.delay!==0){var B=this.animationConfig[E][0].timing.delay;E==="entry"?this.updateStyles({"--paper-tooltip-delay-in":B+"ms"}):E==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":B+
"ms"})}return this.animationConfig[E][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 GXN=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(GXN,_.LX);var OJl=_.A5(GXN,[0,_.Vm]);var Vi=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Vi,_.LX);var nmu=[3,4],MDh=[5,6];var HJ6=[0,nmu,MDh,_.J5U,-1,_.fa,_.WqD,-1,Nct,gd4];var N6Z=_.A5(Vi,HJ6),gml=_.ja(HJ6);var Sgl=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Sgl,_.LX);var JbD=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(JbD,_.LX);var Wi6=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Wi6,_.LX);var X3R=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(X3R,_.LX);var rbt=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(rbt,_.LX);var qC=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(qC,_.LX);qC.prototype.getSource=function(){return _.na(this,1)};
qC.prototype.getMessage=function(){return _.O8(this,4)};
qC.prototype.getData=function(){return _.DZ(this,rbt,8)};var bJh=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(bJh,_.LX);var Fy=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Fy,_.LX);var DM=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(DM,_.LX);var K2=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(K2,_.LX);K2.prototype.getUrl=function(){return _.O8(this,1)};
K2.prototype.setUrl=function(E){return _.$r(this,1,E)};
K2.prototype.hasUrl=function(){return _.St(_.wV(this,1))!=null};var omZ=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(omZ,_.LX);var AbR=[3];var jP$=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(jP$,_.LX);var RA=function(E){var B=new jP$;return _.KF(B,2,E)};
jP$.prototype.getLanguage=function(){return Hf(this,4,ES)};
var UsR=function(E){var B=RA(1);return _.V$(B,6,ES,E)},ES=[3,
4,5,6];var kX6=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(kX6,_.LX);var BW=function(E){var B=new kX6;return _.KF(B,1,E)},$Y=function(E,B){return _.V$(E,2,tDZ,B)},tDZ=[2,
3,4,5];var f4l=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(f4l,_.LX);var Ip=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Ip,_.LX);var VDZ=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(VDZ,_.LX);var qgZ=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(qgZ,_.LX);var Fih=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Fih,_.LX);var Dsh=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Dsh,_.LX);var Kih=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Kih,_.LX);var TT=function(E){return _.DZ(E,DM,5)};var RVR=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(RVR,_.LX);RVR.prototype.getValue=function(){return xU(this,1)};var EUR=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(EUR,_.LX);var ep=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(ep,_.LX);ep.prototype.getMetadata=function(){return _.Nd(this,Fih,7,lU)};
ep.prototype.hasMetadata=function(){return _.Pf(this,Fih,7,lU)};
var BVN=_.$Vt(ep),lU=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var cW=function(E){this.JSC$9812_name_=E;this.files_=[];this.directories_=[];this.directoryMap_={}};
cW.prototype.getName=function(){return this.JSC$9812_name_};var pU=function(E,B){this.callback_=B;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new cW("");$dl(this,E,this.rootDirectory_);iU(this)},$dl=function(E,B,I){for(var T=0;T<B.length;T++){var e=B[T];
e.isFile?(E.fileOps_++,e.file((0,_.w1)(E.handleFileSuccess_,E,I),(0,_.w1)(E.handleFileError_,E))):E.unscannedDirectories_.push(new Icz(e,I))}},iU=function(E){if(E.unscannedDirectories_.length>0&&E.directoryOps_<5&&!E.hasError_){E.directoryOps_++;
var B=E.unscannedDirectories_.shift(),I=B.entry,T=new cW(I.name);B=B.parent;B.directoryMap_[T.getName()]=T;B.directories_.push(T);I=I.createReader();I.readEntries((0,_.w1)(E.handleDirectorySuccess_,E,I,T),(0,_.w1)(E.handleDirectoryError_,E))}E.directoryOps_!=0||E.fileOps_!=0||E.unscannedDirectories_.length!=0&&!E.hasError_||E.callback_(E.rootDirectory_.files_,E.rootDirectory_.directories_,E.hasError_)};
pU.prototype.handleDirectorySuccess_=function(E,B,I){$dl(this,I,B);I.length==0?(this.directoryOps_--,iU(this)):E.readEntries((0,_.w1)(this.handleDirectorySuccess_,this,E,B),(0,_.w1)(this.handleDirectoryError_,this))};
pU.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;iU(this)};
pU.prototype.handleFileSuccess_=function(E,B){E.files_.push(B);this.fileOps_--;iU(this)};
pU.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;iU(this)};
var Icz=function(E,B){this.entry=E;this.parent=B};var YY=function(E){_.ms.call(this);_.vV(E,"drop",this.onObjectsDropped_,!1,this);_.vV(E,"dragenter",this.onFilesDragged_,!1,this);_.vV(E,"dragover",this.onFilesDragged_,!1,this);_.vV(E,"dragleave",this.onDragLeave_,!1,this);_.vV(E,"dragend",this.onDragLeave_,!1,this)};
_.$U(YY,_.ms);var TVu=function(E,B){_.CS.call(this,"f");this.files=E;this.directories=B};
_.$U(TVu,_.CS);var eUN=function(){_.CS.call(this,"h")};
_.$U(eUN,_.CS);var lcr=function(){_.CS.call(this,"i")};
_.$U(lcr,_.CS);var csr=function(){_.CS.call(this,"g")};
_.$U(csr,_.CS);YY.prototype.onObjectsDropped_=function(E){var B=this;E.preventDefault();var I=E.event_.dataTransfer;if((E=I&&I.items)&&E.length>0&&E[0].webkitGetAsEntry){I=[];for(var T=[],e=0;e<E.length;e++){var c=E[e].webkitGetAsEntry();c?I.push(c):T.push(E[e])}new pU(I,function(Y,v,y){y?B.dispatchEvent(new csr("Error occurred while reading from the file system.")):B.dispatchEvent(new TVu(Y,v,T))})}else(E=I&&I.files)&&this.dispatchEvent(new TVu(Array.from(E),[]))};
YY.prototype.onFilesDragged_=function(E){E.type==="dragenter"&&this.dispatchEvent(new eUN);E.preventDefault()};
YY.prototype.onDragLeave_=function(){this.dispatchEvent(new lcr)};var iar=function(E,B){this.JSC$9835_name_=E;this.inputElement_=B};
iar.prototype.getName=function(){return this.JSC$9835_name_};
iar.prototype.getInputElement=function(){return this.inputElement_};var ap=function(E,B,I){B=B===void 0?"single_file":B;I=I===void 0?[]:I;_.ms.call(this);this.overlayTarget_=E;this.parentOverlay_=E!=null?E.parentNode:_.li("scotty-overlay-parent");this.selectorType_=B;this.acceptTypes_=I;this.overlay_=pf$(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.L(ap,_.ms);
var pf$=function(E,B,I,T){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");_.vV(e,"change",E.onFilesSelected_,!1,E);I==="multiple_file"&&(e.multiple="true");I==="single_directory"&&(e.webkitdirectory="true");T.length>0&&e.setAttribute("accept",T.join(","));e.style.position="absolute";e.style.overflow="hidden";e.style.height="0px";e.style.width="0px";e.style.opacity="0";e.setAttribute("aria-hidden","true");e.setAttribute("tabIndex",-1);if(E.overlayTarget_!=
null)return e.style.height=B.offsetHeight+"px",e.style.width=B.offsetWidth+"px",E.parentOverlay_&&(E.parentOverlay_.style.position="relative"),_.n7(e,B),Jw(e,new _.Cb(B.offsetLeft,B.offsetTop)),e;E.parentOverlay_.appendChild(e);return e};
ap.prototype.click=function(){this.overlay_.click()};
ap.prototype.onFilesSelected_=function(E){a:{try{var B=(new XMLHttpRequest).upload!==void 0;break a}catch(Z){}B=!1}if(B){var I;E=Array.from((I=E.target.files)!=null?I:[]);I=[];if(this.selectorType_==="single_directory"&&(_.pa||jg||_.iq)){I=new cW("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(B=0;B<E.length;B++)for(var T=E[B],e=T.webkitRelativePath.split("/"),c=I,Y=0;Y<e.length;Y++){var v=e[Y];if(Y==e.length-1){v!="."&&c.files_.push(T);break}var y=c.directoryMap_[v];y==void 0&&(v=
y=new cW(v),c.directoryMap_[v.getName()]=v,c.directories_.push(v));c=y}I=I.directories_}this.dispatchEvent(new Y8l(E,I,null))}else E=E.target.value,E.match(/^c:\\fakepath\\/i)&&(E=E.substring(12)),this.dispatchEvent(new Y8l([],[],new iar(E,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=pf$(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Y8l=function(E,B){_.CS.call(this,"j");this.files=E;this.directories=B};
_.L(Y8l,_.CS);var ac$=function(E){this.uploadUrl_=E};var vUX=function(){_.ms.call(this)};
_.$U(vUX,_.ms);var vW=function(E){_.CS.call(this,E)};
_.$U(vW,_.CS);var yk=function(E){_.CS.call(this,E)};
_.$U(yk,_.CS);var ysD=function(E,B,I,T,e){_.ms.call(this);I=document.createElement("form");I.setAttribute("method",B);I.setAttribute("enctype","multipart/form-data");I.setAttribute("encoding","multipart/form-data");B=document.createElement("input");B.setAttribute("type","hidden");B.setAttribute("name","metadata");B.setAttribute("value",e);I.appendChild(B);I.appendChild(T);this.JSC$9852_form_=I;E=new _.tQ(E);_.Wp(E,"upload_protocol","multipart");this.JSC$9852_url_=E.toString();this.JSC$9852_request_=new Ko;this.state_=
"Ready";this.JSC$9852_errorDescription_=null;this.JSC$9852_eventHandler_=new _.DA(this);_.Bp(this,this.JSC$9852_eventHandler_);this.JSC$9852_eventHandler_.listen(this.JSC$9852_request_,"success",this.onTransferSuccess_);this.JSC$9852_eventHandler_.listen(this.JSC$9852_request_,"error",this.onTransferError_)};
_.L(ysD,vUX);_.l=ysD.prototype;_.l.run=function(){this.state_="Transferring";var E=this.JSC$9852_request_,B=this.JSC$9852_form_;if(E.JSC$9274_active_)throw Error("ne");var I=new _.tQ(this.JSC$9852_url_||B.action);E.JSC$9274_form_=B;B=E.JSC$9274_form_;I=_.yC(I.toString());I!==void 0&&(B.action=I);o7u(E)};
_.l.getResponseCode=function(){return null};
_.l.getResponseText=function(){return this.JSC$9852_request_&&this.JSC$9852_request_.getResponseText()||null};
_.l.JSC$25670_getErrorDescription=function(){return this.JSC$9852_errorDescription_};
_.l.cancel=function(){this.JSC$9852_request_&&this.JSC$9852_request_.abort();this.state_="Cancelled";this.dispatchEvent(new vW("o"))};
_.l.pause=function(){};
_.l.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new vW("l"))};
_.l.onTransferError_=function(){this.JSC$9852_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new vW("n"))};var CU=function(){_.Gw.call(this)};
_.L(CU,_.Gw);CU.prototype.createXhr=function(){var E=_.Gw.prototype.createXhr.call(this);E.upload&&(E.upload.onprogress=(0,_.w1)(this.onProgress_,this));return E};
CU.prototype.onProgress_=function(E){this.dispatchEvent(E)};var Cqu=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},Zar=function(E,B){var I=E.attempt_+1;
if(E.maxAttempts_>0&&I>E.maxAttempts_)return!1;I==0?B():E.delayCallId_=uG(function(){E.delayCallId_=null;B()},wfl(E),E);
E.attempt_=I;return!0};
Cqu.prototype.reset=function(){this.delayCallId_&&_.$i.clearTimeout(this.delayCallId_);this.attempt_=-1};
var wfl=function(E){var B=250*Math.pow(2,E.attempt_);E.maxDelayMs_>=0&&(B=Math.min(B,E.maxDelayMs_));return B};var JwG=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var w8=function(){_.ms.call(this);this.JSC$9862_request_=this.state_=null;this.JSC$9862_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9862_bytesTransferred_=0;this.retryIterator_=new Cqu;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9862_errorDescription_=null;this.JSC$9862_eventHandler_=new _.DA(this);_.Bp(this,this.JSC$9862_eventHandler_);this.JSC$9862_url_=this.blob_=null;this.JSC$9862_method_=void 0;this.chunkSize_=this.JSC$9862_metadata_=
this.JSC$9862_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9862_responseText_=this.JSC$9862_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.$U(w8,vUX);_.l=w8.prototype;_.l.run=function(){Z_(this)};
_.l.getResponseCode=function(){return this.JSC$9862_responseCode_};
_.l.getResponseText=function(){return this.JSC$9862_responseText_};
_.l.JSC$25670_getErrorDescription=function(){return this.JSC$9862_errorDescription_};
_.l.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9862_eventHandler_.removeAll();this.JSC$9862_request_&&this.JSC$9862_request_.abort();this.retryIterator_.reset();var E=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(E==="Upload"||E==="Query")E=new CU,E.JSC$7680_withCredentials_=this.JSC$9862_withCredentials_,E.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9862_bytesTransferred_=
0;this.dispatchEvent(new vW("o"))}};
_.l.pause=function(){this.pauseRequested_=!0};
var Z_=function(E){var B=E.state_;E.pauseRequested_?(E.pauseRequested_=!1,E.stateAfterUnpausing_=B,E.state_="Paused"):Zar(E.retryIterator_,function(){switch(E.state_){case "Start":E.JSC$9862_request_=new CU;var I=_.a_.clone(E.JSC$9862_headers_);E.blob_.size!=null&&(I["Content-Length"]=E.blob_.size);I=WYF(I);I["X-Goog-Upload-Protocol"]="resumable";I["X-Goog-Upload-Command"]="start";E.JSC$9862_eventHandler_.removeAll();E.JSC$9862_eventHandler_.listen(E.JSC$9862_request_,"complete",E.onStartComplete_);
E.JSC$9862_request_.JSC$7680_withCredentials_=E.JSC$9862_withCredentials_;E.JSC$9862_request_.send(E.JSC$9862_url_,E.JSC$9862_method_,E.JSC$9862_metadata_,I);E.lastCommandResponseCode_=null;E.dispatchEvent(new yk("q"));break;case "Upload":I=E.transferHandle_.uploadUrl_;var T=E.blob_.size;if(x3U()){var e=E.chunkSize_;var c=E.offset_+e>=T;T=LgZ(E.blob_,E.offset_,c?T:E.offset_+e)}else E.offset_=0,T=E.blob_,c=!0;E.JSC$9862_request_=new CU;E.JSC$9862_request_.JSC$7680_withCredentials_=E.JSC$9862_withCredentials_;
E.JSC$9862_eventHandler_.removeAll();E.JSC$9862_eventHandler_.listen(E.JSC$9862_request_,"progress",E.onUploadProgress_);e=(0,_.w1)(E.JSC$9864_onUploadComplete_,E,E.offset_+T.size,c);E.JSC$9862_eventHandler_.listen(E.JSC$9862_request_,"complete",e);E.lastCommandResponseCode_=null;E.dispatchEvent(new yk("q"));c=Object.assign({},E.JSC$9862_headers_||{},{"X-Goog-Upload-Command":"upload"+(c?", finalize":""),"X-Goog-Upload-Offset":E.offset_});E.JSC$9862_request_.send(I,"POST",T,c);break;case "Query":E.JSC$9862_request_=
new CU;E.JSC$9862_eventHandler_.removeAll();E.JSC$9862_eventHandler_.listen(E.JSC$9862_request_,"complete",E.onQueryComplete_);I=Object.assign({},E.JSC$9862_headers_||{},{"X-Goog-Upload-Command":"query"});E.JSC$9862_request_.send(E.transferHandle_.uploadUrl_,"POST","",I);E.lastCommandResponseCode_=null;E.dispatchEvent(new yk("q"));break;default:throw Error("cf");}})||PW(E,"Transfer encountered too many consecutive failures.")},PW=function(E,B){E.state_="Error";
E.JSC$9862_errorDescription_=B;E.dispatchEvent(new vW("n"))};
w8.prototype.onStartComplete_=function(E){var B=E.target;this.lastCommandResponseCode_=B.getStatus();this.dispatchEvent(new yk("r"));if(Pqu(B))zUu(this,B);else if(mdZ(B)){E=oa(E.target.getAllResponseHeaders());for(var I in E)_.lc(I.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new vW("m"));I=si(E,"X-Goog-Upload-URL");E=(E=si(E,"X-Goog-Upload-Chunk-Granularity"))?parseInt(E,10):1;I===void 0||isNaN(E)||E<=0?PW(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
E)*E,this.transferHandle_=new ac$(I),this.dispatchEvent(new vW("p")),this.state_="Upload",this.retryIterator_.reset(),Z_(this))}else Z_(this)};
w8.prototype.onUploadProgress_=function(E){this.JSC$9862_bytesTransferred_=this.offset_+E.loaded;this.dispatchEvent(new vW("k"))};
w8.prototype.JSC$9864_onUploadComplete_=function(E,B,I){var T=this,e,c;return _.a(function(Y){switch(Y.nextAddress){case 1:e=I.target;T.lastCommandResponseCode_=e.getStatus();T.dispatchEvent(new yk("r"));if(Qru(e)||e.getStatus()==404)return T.JSC$9862_bytesTransferred_=E,zUu(T,e),Y.return();if(mdZ(e)){Y.jumpTo(2);break}if(!(c=T.detectCorruptedBlobEnabled_)){Y.jumpTo(3);break}return _.C(Y,ddR(T),4);case 4:c=Y.yieldResult;case 3:if(c)return PW(T,"Blob has been modified or corrupted."),Y.return();T.requireUploadRequestModification_=
e.getStatus()==400;T.state_="Query";Z_(T);return Y.return();case 2:if(B)return PW(T,"Got a non-final success response after issuing a finalize command."),Y.return();T.JSC$9862_bytesTransferred_=E;T.offset_=E;T.retryIterator_.reset();Z_(T);return Y.return()}})};
w8.prototype.onQueryComplete_=function(E){var B=E.target;this.lastCommandResponseCode_=B.getStatus();this.dispatchEvent(new yk("r"));Pqu(B)?(B.getStatus()===200&&(this.JSC$9862_bytesTransferred_=this.blob_.size),zUu(this,B)):mdZ(B)?(E=oa(E.target.getAllResponseHeaders()),E=parseInt(si(E,"X-Goog-Upload-Size-Received"),10),isNaN(E)?PW(this,"Server did not respond with current offset."):E<this.offset_?PW(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
E+"."):this.requireUploadRequestModification_&&this.offset_===E?PW(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<E&&this.retryIterator_.reset(),this.offset_=this.JSC$9862_bytesTransferred_=E,this.state_="Upload",Z_(this))):Z_(this)};
var zUu=function(E,B){E.JSC$9862_responseCode_=B.getStatus();var I=oa(B.getAllResponseHeaders());XTi(I);E.JSC$9862_responseText_=B.getResponseText();E.state_="Response received";E.dispatchEvent(new vW("l"))},mdZ=function(E){var B=E.getStatus();
E=oa(E.getAllResponseHeaders());E=si(E,"X-Goog-Upload-Status");return B===200&&E==="active"},Qru=function(E){E=oa(E.getAllResponseHeaders());
return si(E,"X-Goog-Upload-Status")==="final"},Pqu=function(E){if(Qru(E))return!0;
E=E.getStatus();return E>=400&&E<500},ddR=function(E){var B;
return _.a(function(I){if(I.nextAddress==1){if(!E.blob_||E.originalBlobSize_<=0)return I.return(!1);if(E.blob_.size!==E.originalBlobSize_)return I.return(!0);_.q7(I,2);if(B=LgZ(E.blob_,0,1)){var T=new JT,e=Ikl(T);T.reader_.readAsBinaryString(B);I=_.C(I,e,4)}else I=I.return(!0);return I}if(I.nextAddress!=2)return I.return(E.blob_.size!==E.originalBlobSize_);_.RG(I);return I.return(!0)})};var hUt=function(E,B,I,T,e,c){_.ms.call(this);this.payload_=T;this.JSC$9865_url_=E;this.JSC$9865_method_=B;this.JSC$9865_headers_=I;this.JSC$9865_metadata_=e;this.encoding_=c||"binary";E=new _.QO;this.boundary_="uploader-"+g1()+"-"+E.JSC$9123_toIsoString();this.JSC$9865_responseText_=this.JSC$9865_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9865_errorDescription_=null;this.JSC$9865_eventHandler_=new _.DA(this);_.Bp(this,this.JSC$9865_eventHandler_)};
_.L(hUt,vUX);_.l=hUt.prototype;
_.l.run=function(){var E=_.a_.clone(this.JSC$9865_headers_);this.payload_.length!=null&&(E["Content-Length"]=this.payload_.length);E=WYF(E);E["X-Goog-Upload-Protocol"]="multipart";E["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new CU;this.JSC$9865_eventHandler_.removeAll();this.JSC$9865_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9865_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9865_url_,this.JSC$9865_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9865_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",E)};
_.l.getResponseCode=function(){return this.JSC$9865_responseCode_};
_.l.getResponseText=function(){return this.JSC$9865_responseText_};
_.l.JSC$25670_getErrorDescription=function(){return this.JSC$9865_errorDescription_};
_.l.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9865_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new vW("o")))};
_.l.pause=function(){};
_.l.onTransferProgress_=function(){this.dispatchEvent(new vW("k"))};
_.l.onTransferComplete_=function(E){var B=E.target.getStatus();B===void 0||B===-1?(this.JSC$9865_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new vW("n"))):(this.JSC$9865_responseCode_=B,E=E.target,B=oa(E.getAllResponseHeaders()),XTi(B),this.JSC$9865_responseText_=E.getResponseText(),this.state_="Complete",this.dispatchEvent(new vW("l")))};_.srl=function(E,B,I,T){T=T===void 0?!1:T;if(I instanceof iar)return new ysD(E,"POST",B,I.getInputElement(),"");if(typeof I==="string"||I instanceof String)return new hUt(E,"POST",B,I,"");var e=new w8(void 0);e.JSC$9862_url_=E;e.JSC$9862_method_="POST";e.JSC$9862_headers_=B;e.blob_=I;e.originalBlobSize_=I.size;e.JSC$9862_metadata_="";T&&(e.JSC$9862_withCredentials_=T);e.state_="Start";return e};var zT=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(zT,_.LX);_.l=zT.prototype;_.l.getEnableSsEngine=function(){return _.La(this,2)};
_.l.getEnableAwr=function(){return _.La(this,3)};
_.l.getAlohaAutoGaRollout=function(){return _.La(this,5)};
_.l.getEnableConfigurator=function(){return _.La(this,6)};
_.l.getEnableMweb=function(){return _.La(this,7)};
var Lph=function(){var E=uGU();return _.LC(E,7,!0)};
zT.prototype.getEnableCtlConsentCheckbox=function(){return _.La(this,8)};
zT.prototype.getEnableIframe=function(){return _.La(this,9)};
var uGU=function(){var E=new zT;E=_.LC(E,5,!0);E=_.LC(E,2,!0);E=_.LC(E,4,!1);E=_.LC(E,8,!0);return _.LC(E,9,!0)};
zT.prototype.getEnableScreenshotNudge=function(){return _.La(this,10)};
var xdu=function(){var E=Lph();return _.LC(E,10,!0)};
zT.prototype.getEnableWebStartupConfigEndpoint=function(){return _.La(this,11)};
zT.prototype.getEnableJunkNudge=function(){return _.La(this,12)};
var BI6=function(){var E=xdu();return _.LC(E,12,!0)};
_.l=zT.prototype;_.l.getEnableConfiguratorLocale=function(){return _.La(this,13)};
_.l.getEnableTinyNoPointer=function(){return _.La(this,14)};
_.l.getEnableSupportSessionLogging=function(){return _.La(this,15)};
_.l.getEnableFileUploadForScreenshot=function(){return _.La(this,16)};
_.l.getEnableDirectDeflectionForSingleCategory=function(){return _.La(this,17)};
_.l.getEnableImageSanitization=function(){return _.La(this,18)};
_.l.getEnableAlohaBinarySplit=function(){return _.La(this,19)};
_.l.getEnableDbFeedbackIntents=function(){return _.La(this,20)};
_.l.getEnableMarkMandatoryFieldsWithRequired=function(){return _.La(this,21)};
_.l.getEnableFeedbackCategoryCustomUi=function(){return _.La(this,22)};
_.l.getEnableRealtimeCtl=function(){return _.La(this,23)};var ET6=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(ET6,_.LX);var rwB=[/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 oLB="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 Awd=_.km(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),jzG=_.km(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var kVF,fUf;var GOU,OaV;
GOU=function(E,B,I){E.timeOfStartCall=(new Date).getTime();var T=I||_.$i,e=T.document,c=E.nonce||_.uv(T.document);c&&!E.nonce&&(E.nonce=c);if(E.flow=="help"){var Y=_.WA("document.location.href",T);!E.helpCenterContext&&Y&&(E.helpCenterContext=Y.substring(0,1200));Y=!0;if(B&&JSON&&JSON.stringify){var v=JSON.stringify(B);(Y=v.length<=1200)&&(E.psdJson=v)}Y||(B={invalidPsd:!0})}B=[E,B,I];T.GOOGLE_FEEDBACK_START_ARGUMENTS=B;I=E.feedbackServerUri||"//www.google.com/tools/feedback";if(Y=T.GOOGLE_FEEDBACK_START)Y.apply(T,B);
else{T=I+"/load.js?";for(var y in E)B=E[y],B==null||_.B6(B)||(T+=encodeURIComponent(y)+"="+encodeURIComponent(B)+"&");E=BM(e).createElement("SCRIPT");c&&E.setAttribute("nonce",c);_.nr(E,_.KX(T));e.body.appendChild(E)}};
OaV=function(E,B,I,T){var e,c;_.a(function(Y){e=I||_.$i;var v=E.serverEnvironment==="DEV",y=I||_.$i;y=E.nonce||_.uv(y.document);v={integrationKeys:{productId:E.productId,feedbackBucket:E.bucket,triggerId:E.triggerId},callbacks:{onClose:E.callback,onLoad:E.onLoadCallback},formContent:{locale:E.locale,disableScreenshot:E.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:E.abuseLink,additionalDataConsent:E.additionalDataConsent},initializationData:{isLocalServer:v,nonce:y,useNightlyRelease:v,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:E.feedbackServerUri,colorScheme:E.colorScheme},extraData:{productVersion:E.productVersion,authUser:E.authuser,configuratorId:E.configuratorId,customZIndex:E.customZIndex,tinyNoPointer:E.tinyNoPointer,
allowNonLoggedInFeedback:E.allowNonLoggedInFeedback,enableAnonymousFeedback:E.enableAnonymousFeedback}};B&&(y=new Map(Object.entries(B)),v.extraData.productSpecificData=y);c=v;return _.C(Y,DyD(c,T,e),0)})};
_.nUZ=function(E,B,I){try{if(E.flow==="help"){var T=E.helpCenterPath.replace(/^\//,"");_.sf(I||window,"https://support.google.com/"+T)}else E.flow==="submit"?GOU(E,B,I):$0f(E.productId,E.feedbackServerUri).then(function(e){e=_.DZ(e,zT,1);var c=!BRG||(e==null?void 0:e.getEnableMweb()),Y=!E.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&c&&Y?OaV(E,B,I,e):GOU(E,B,I)},function(e){e&&e.name!=="DuplicateFormError"&&GOU(E,B,I)})}catch(e){OaV(E,B,I,null)}};
_.ka("userfeedback.api.startFeedback",_.nUZ);var IFc=/https?:\/\/\S+\.\S+/,TIF=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],eKt=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var VAQ=function(E){var B=E.split(""),I=[-263237435,15,B,function(T,e,c){var Y=e.length;c.forEach(function(v,y,Z){this.push(Z[y]=e[(e.indexOf(v)-e.indexOf(this[y])+y+Y--)%e.length])},T.split(""))},
function(T,e){T=(T%e.length+e.length)%e.length;e.splice(-T).reverse().forEach(function(c){e.unshift(c)})},
"response",function(){for(var T=64,e=[];++T-e.length-32;){switch(T){case 58:T-=14;case 91:case 92:case 93:continue;case 123:T=47;case 94:case 95:case 96:continue;case 46:T=95}e.push(String.fromCharCode(T))}return e},
null,12,1540023973,65941107,null,B,function(T,e){for(T=(T%e.length+e.length)%e.length;T--;)e.unshift(e.pop())},
695603893,function(T){for(var e=T.length;e;)T.push(T.splice(--e,1)[0])},
"'[;'[(",function(T,e){T.push(e)},
null,function(T,e,c,Y,v){return e(c,Y,v)},
"continuation",B,function(T,e){if(T.length!=0){e=(e%T.length+T.length)%T.length;var c=T[0];T[0]=T[e];T[e]=c}},
function(){for(var T=64,e=[];++T-e.length-32;){switch(T){case 91:T=44;continue;case 123:T=65;break;case 65:T-=18;continue;case 58:T=96;continue;case 46:T=95}e.push(String.fromCharCode(T))}return e},
'"),/]];'];I[7]=I;I[11]=I;I[18]=I;try{(((0,I[15])(I[21]),I[22])(I[11],I[9]),I[22])(I[new Date("1970-01-01T04:30:12.000+04:30")/1E3],I[1]),((0,I[22])(I[11],I[23]),I[4])(I[10],I[18]),(0,I[20])(I[21],I[14])<<(0,I[17])(I[18],I[1]),(0,I[4])(I[8],I[21]),(0,I[19])((0,I[19])((0,I[17])(I[7],I[9]),I[3],I[20],(0,I[6])(),I[2]),I[3],I[5],(0,I[15])(),I[2])}catch(T){return"aTlOUOubTO4AP____8P_"+E}return B.join("")};_.Mit=new _.F("runAttestationCommand");var HaD=new _.F("verifyCommand");_.bO=new _.F("accessibilityContext");var NVX=new _.F("accessibilityData");var gUr=new _.F("profileCardCommand");var gRf=new _.F("signInEndpoint");var Ngc=new _.F("signOutEndpoint");var Jsh;_.S8t=new _.F("accountItemSectionRenderer");Jsh=new _.F("accountItemRenderer");_.WpD=new _.F("saveCommandToSessionStorageAction");var XfR=new _.F("crossAccountChannelTransferEndpoint");var MvQ=new _.F("getAccountMenuEndpoint");_.H64=new _.F("getAccountSwitcherEndpoint");var nHc=new _.F("getAccountsListEndpoint");var rsZ=new _.F("getAccountsListInnertubeEndpoint");_.baR=new _.F("addToToastAction");var oUh=new _.F("hideEnclosingAction");_.mJ=new _.F("replaceEnclosingAction");_.AsN=new _.F("buttonRefreshAction");var jrl=new _.F("adsControlFlowOpportunityReceivedCommand");var Ud$=new _.F("openAdAllowlistInstructionCommand");var kOt=new _.F("videoMastheadAdPrimaryVideoRenderer");var tiR=new _.F("displayAdRenderer");var ExD=new _.F("instreamVideoAdRenderer");_.fcV=new _.F("inFeedAdLayoutRenderer");var ViU=new _.F("sequenceItemInPlayerAdLayoutRenderer");_.q8$=new _.F("adSlotRenderer");var Fpu=new _.F("adAvatarViewModel");var DdR=new _.F("adBadgeViewModel");var Kpz=new _.F("adButtonViewModel");var Qk=new _.F("adImageViewModel");var U4c=new _.F("reelsAdCardButtonedViewModel");var RUz=new _.F("reelsPlayerOverlayLayoutViewModel");var ELu=new _.F("showSchedulingPanelCommand");var Bw$=new _.F("backstageCommentsRenderer");var $yR=new _.F("backstageImageRenderer");var IUZ=new _.F("backstagePostRenderer");var Twt=new _.F("postRenderer");var emR=new _.F("sharedPostRenderer");var lUr=new _.F("createBackstagePostEndpoint");var cw6=new _.F("getPostVideoPreviewEndpoint");var i7$=new _.F("updateBackstagePostEndpoint");var pTu=new _.F("filterChipTransformCommand");var YsZ=new _.F("insertRichSectionCommand");var HNG=new _.F("talkToRecsDeselectCommand");var aUZ=new _.F("talkToRecsNextCommand");var MzD=new _.F("talkToRecsSelectCommand");var vLR=new _.F("talkToRecsUpdateTextCommand");_.pq=new _.F("browseEndpoint");_.ywR=new _.F("confirmDialogEndpoint");var Cth=new _.F("expandOnHoverCardRenderer");var wTD=new _.F("lumiereShelfDetailsRenderer");var Z7N=new _.F("revealBusinessEmailCommand");var PtR=new _.F("validateChannelHandleCommand");var zmr=new _.F("channelCreationFormEndpoint");var myZ=new _.F("aboutChannelViewModel");var QzX=new _.F("channelThumbnailWithLinkRenderer");var dyt=new _.F("channelCreationServiceEndpoint");var hmR=new _.F("updateChannelPageSettingsEndpoint");var d8=function(E){this.delegate=E},hB=function(){d8.apply(this,arguments)};
_.L(hB,d8);_.Up.Object.defineProperties(hB.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(E){this.delegate.entityMetadata=E}}});var szR=function(){hB.apply(this,arguments)};
_.L(szR,hB);szR.prototype.getAssociations=function(){return[]};var An6=new _.F("webThumbnailDetailsExtensionData");var tQD=new _.F("commandContext");var uTz=new _.F("addVideoLinkAction");var LYl=new _.F("createPollAction");var xy$=new _.F("hideIdentityChipAction");var GVt=new _.F("openUpdateCommentDialogAction");var sS=new _.F("updateBackstagePollAction");var O7X=new _.F("updateCommentVoteAction");var nLz=new _.F("commentThreadRenderer");var Mwu=function(){hB.apply(this,arguments)};
_.L(Mwu,hB);Mwu.prototype.getAssociations=function(){return[]};_.H7h=new _.F("commentDialogRenderer");var Nwh=new _.F("updateCommentsSettingsEndpoint");var gL6=new _.F("commentViewModel");var Ss6=new _.F("triStateButtonViewModel");var Jwt=new _.F("voiceReplyContainerViewModel");_.pO=new _.F("commandExecutorCommand");var m0=new _.F("emoji");var WYu=new _.F("updateCreatorChannelInnertubeCommand");_.XTl=new _.F("appendContinuationItemsAction");_.rw$=new _.F("changeEngagementPanelVisibilityAction");_.u0=new _.F("continuationCommand");var b7t=new _.F("listMutationCommand");_.uU=new _.F("openPopupAction");var oL$=new _.F("persistSubscriptionsDisplayPreferencesCommand");var qsN;_.AwN=new _.F("playlistRemoveVideosAction");_.jz6=new _.F("updatePlaylistAction");_.UyU=new _.F("addToPlaylistCommand");_.kVu=new _.F("endPlaylistCommand");_.twZ=new _.F("recoverPlaylistCommand");_.fUU=new _.F("refreshPlaylistCommand");_.VwZ=new _.F("refreshFormCommand");qsN=new _.F("openOnePickAddVideoModalCommand");_.XIG=new _.F("reloadContinuationItemsCommand");_.FY$=new _.F("scrollToEngagementPanelCommand");var Dyz=new _.F("selectCountryCommand");var KYD=new _.F("showReloadUiCommand");var Rmh=new _.F("undoFeedbackAction");var ETh=new _.F("updateButtonAction");var e$c=new _.F("updateSubscribeButtonAction");var BIh=new _.F("updateToggleAction");var $0U=new _.F("webNativeShareCommand");_.D$=new _.F("webCommandMetadata");_.LU=new _.F("webHandleServiceEndpointExtension");var JXQ=new _.F("webNavigationEndpointData");var IFZ=new _.F("copyLinkCommand");var TIu=new _.F("playlistVotingRefreshPopupCommand");var eKZ=new _.F("selectChipCommand");var lFh=new _.F("setCookieCommand");var cPU=new _.F("setLocalStorageCommand");var iSz=new _.F("setPrefStorageEntryCommand");var vT6;_.pRV=new _.F("settingsUpdateCheckboxCommand");_.YkR=new _.F("settingsUpdateTextCommand");_.aFU=new _.F("settingsUpdateOptionsCommand");vT6=new _.F("settingsUpdateSwitchCommand");_.yPh=new _.F("settingsUpdateConnectedAppRendererCommand");var CGU=new _.F("updateTextInputFormFieldRendererCommand");var wRZ=new _.F("updateToggleButtonStateCommand");var ZSU=new _.F("updateUrlParamCommand");var PGD=new _.F("webSubmitFormCommand");var zKU=new _.F("channelSwitcherPageRenderer"),m0Z=new _.F("updateChannelSwitcherPageAction");_.IP=new _.F("continuationItemRenderer");_.xY=new _.F("richItemRenderer");var Q8D=new _.F("richSectionRenderer");_.d0U=new _.F("richShelfRenderer");_.hKr=new _.F("metadataBadgeRenderer");_.s8r=new _.F("multiPageMenuNotificationSectionRenderer");_.u6R=new _.F("playlistLoopButtonStateRenderer");var Lsu=new _.F("claimLegacyYoutubeChannelEndpoint");var x0$=new _.F("getNotificationMenuEndpoint");var GwN=new _.F("getSearchInVideoCommand");_.OSZ=new _.F("getTranscriptEndpoint");_.a2=new _.F("signalServiceEndpoint");var nTZ=new _.F("verifyAgeEndpoint");var Dpf=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Dpf,_.LX);Dpf.prototype.getPath=function(){return _.O8(this,1)};
Dpf.prototype.getValue=function(){return _.O8(this,2)};var Mlu=[0,_.kU,-1];var HS$=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(HS$,_.LX);var FyF=_.A5(HS$,[0,_.ts,Mlu]);var NIh=new _.F("dismissalEndpoint");var gT$=new _.F("elementsCommand");_.dX=new _.F("innertubeCommand");var SkV=new _.F("multipleInlinePlaybackCommand");var mzf=new _.F("loggingDirectives");var Irf={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"};var JPZ=new _.F("acknowledgeChannelTouStrikeCommand");var WsR=function(){hB.apply(this,arguments)};
_.L(WsR,hB);WsR.prototype.getAssociations=function(){return[]};var XRR=function(){hB.apply(this,arguments)};
_.L(XRR,hB);XRR.prototype.getAssociations=function(){return[]};var Jk=new _.F("entityBatchUpdate");_.rPu=new _.F("entityUpdateCommand");var bSR=function(){hB.apply(this,arguments)};
_.L(bSR,hB);bSR.prototype.getAssociations=function(){var E=[];this.delegate.alternateChannel&&E.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&E.push.apply(E,_.ad(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&E.push(this.delegate.oneofChannelEntity);return[].concat(_.ad(new Set(E)))};var oTh=function(){hB.apply(this,arguments)};
_.L(oTh,hB);oTh.prototype.getAssociations=function(){var E=[];this.delegate.entryCollection&&E.push(this.delegate.entryCollection);return[].concat(_.ad(new Set(E)))};
var APl=function(){hB.apply(this,arguments)};
_.L(APl,hB);APl.prototype.getAssociations=function(){var E=[];this.delegate.parentPlaylist&&E.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var B=_.p(this.delegate.entries),I=B.next();!I.done;I=B.next())E.push.apply(E,_.ad((new j8l(I.value)).getAssociations()));return[].concat(_.ad(new Set(E)))};
var j8l=function(){d8.apply(this,arguments)};
_.L(j8l,d8);j8l.prototype.getAssociations=function(){var E=[];this.delegate.video&&E.push(this.delegate.video);return[].concat(_.ad(new Set(E)))};var U06=function(){hB.apply(this,arguments)};
_.L(U06,hB);U06.prototype.getAssociations=function(){var E=[];this.delegate.descriptionEntity&&E.push(this.delegate.descriptionEntity);this.delegate.creators&&E.push.apply(E,_.ad(this.delegate.creators));this.delegate.theBiggestFan&&E.push(this.delegate.theBiggestFan);return[].concat(_.ad(new Set(E)))};
var kwZ=function(){hB.apply(this,arguments)};
_.L(kwZ,hB);kwZ.prototype.getAssociations=function(){return[]};var tlX=new _.F("fantasyRosterViewModel");var fFt=new _.F("addFollowUpSurveyCommand");var VlN=new _.F("getSurveyCommand");var qkr=new _.F("ratingSurveyOptionRenderer");_.Ms=new _.F("feedbackEndpoint");var Fsu=new _.F("reportHistoryTableCellRenderer"),D0r=new _.F("reportHistoryTableTextCellRenderer"),KsU=new _.F("reportHistoryTableReasonCellRenderer");_.RKZ=new _.F("flagEndpoint");var Eez=new _.F("getFlowCommand");var BCX=new _.F("submitFormWithValidationFlowCommand");var $6u=function(){hB.apply(this,arguments)};
_.L($6u,hB);$6u.prototype.getAssociations=function(){return[]};var IrU=new _.F("flowFormState");var TCr=new _.F("gameCardRenderer");var eoX=new _.F("accountLinkingStateChangedCommand");var lrl=function(){hB.apply(this,arguments)};
_.L(lrl,hB);lrl.prototype.getAssociations=function(){return[]};var cGZ=new _.F("changeMiniAppPlayStateCommand");var i0U=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(i0U,_.LX);var GT=[1,2,3];var pdZ=[0,GT,Gpf,_.OZ6,QKc];var Yzt=_.A5(i0U,pdZ),arD=_.ja(pdZ);var vet=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(vet,_.LX);var yG$=[0,_.As,_.kU];var CI6=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(CI6,_.LX);var wdX=[0,_.kU];var Z0Z=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Z0Z,_.LX);var PI$=function(E,B){return _.KF(E,3,B)};var zoN=_.ja([0,1,yG$,_.Vm,wdX]);var m6Z=new _.F("miniAppScoreChallengeViewModel");var Qwt=new _.F("miniGameCardViewModel");var d6r=new _.F("teaserCardViewModel");var hoU=function(){hB.apply(this,arguments)};
_.L(hoU,hB);hoU.prototype.getAssociations=function(){return[]};_.swt=new _.F("feedbackItemRenderer");var u1r={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",INSERT_CHART:"INSERT_CHART",
INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",
SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",LABS_HEADER:"LABS_HEADER",
SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",RESHARE:"RESHARE",
MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",DOLLARSIGN_COLOR:"DOLLARSIGN_COLOR",YENSIGN_COLOR:"YENSIGN_COLOR",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",
ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",
FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",
GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",
PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD",TEXT_FILLED:"TEXT_FILLED"};var LUr=function(){hB.apply(this,arguments)};
_.L(LUr,hB);LUr.prototype.getAssociations=function(){return[]};_.x6Z=new _.F("playerInterstitialRenderer");var GjX=new _.F("getKidsBlocklistPickerCommand");_.O0z=new _.F("updateKidsBlacklistEndpoint");_.AC=new _.F("likeEndpoint");var neR,MMr,H0z;neR=new _.F("addChatItemAction");MMr=new _.F("removeChatItemAction");H0z=new _.F("markChatItemAsDeletedAction");_.NCV=new _.F("setLiveChatCollapsedStateAction");var geu=function(){hB.apply(this,arguments)};
_.L(geu,hB);geu.prototype.getAssociations=function(){return[]};var SzZ=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(SzZ,_.LX);var JGD=_.A5(SzZ,[0,1,_.As]);var WU6=new _.F("liveChatEndpoint");var Xdl=new _.F("liveChatItemContextMenuEndpoint");var rGl=new _.F("liveChatReplayEndpoint");_.b0D=new _.F("emojiPickerRenderer");var oeV=new _.F("liveChatAuthorBadgeViewModel");var AGu=new _.F("deleteLiveChatMessageCommand");var jwh=new _.F("liveChatActionEndpoint");var U6$=new _.F("createLiveChatPollEndpoint");var kjZ=new _.F("manageLiveChatUserEndpoint");var tMu=new _.F("moderateLiveChatEndpoint");_.fr$=new _.F("sendLiveChatMessageEndpoint");var VMD=new _.F("sendLiveChatVoteEndpoint");var qzu=new _.F("clearLocationCommand");var FUh=new _.F("resolveLocationCommand");var D6D=new _.F("interactionLoggingCommandMetadata");var ZP6=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(ZP6,_.LX);var w0f=function(E,B){return _.q8(E,1,B)};var KU$=[0,_.U8];var C4c=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(C4c,_.LX);var yYi=function(E,B){return aH(E,1,ZP6,B)};C4c.prototype.JSC$9958_serializeBinary=BF4([0,_.ts,KU$]);var Gwd={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 RoR={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"},
EQZ={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 XGd={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"};_.lLF=new _.F("logFlowLoggingEventCommand");_.Vkc=new _.F("loggingContext");var BdV=new _.F("captionLanguageSelectActionCommand");var $Bz=new _.F("showCaptionLanguageSelectActionCommand");var IYz=new _.F("dismissDialogEndpoint");var Tdh=new _.F("hideItemSectionVideosByIdCommand");var e3r=new _.F("showMiniplayerCommand");var lYu=function(){hB.apply(this,arguments)};
_.L(lYu,hB);lYu.prototype.getAssociations=function(){return[]};var cLt=function(){hB.apply(this,arguments)};
_.L(cLt,hB);cLt.prototype.getAssociations=function(){return[]};var iLD=function(){hB.apply(this,arguments)};
_.L(iLD,hB);iLD.prototype.getAssociations=function(){return[]};var pku=function(){hB.apply(this,arguments)};
_.L(pku,hB);pku.prototype.getAssociations=function(){var E=[];this.delegate.downloadsList&&E.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&E.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&E.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&E.push(this.delegate.refresh);return[].concat(_.ad(new Set(E)))};var YHt=function(){hB.apply(this,arguments)};
_.L(YHt,hB);YHt.prototype.getAssociations=function(){var E=[];this.delegate.refresh&&E.push(this.delegate.refresh);if(this.delegate.downloads)for(var B=_.p(this.delegate.downloads),I=B.next();!I.done;I=B.next())E.push.apply(E,_.ad((new aYD(I.value)).getAssociations()));return[].concat(_.ad(new Set(E)))};
var aYD=function(){d8.apply(this,arguments)};
_.L(aYD,d8);aYD.prototype.getAssociations=function(){var E=[];this.delegate.video&&E.push(this.delegate.video);this.delegate.playlist&&E.push(this.delegate.playlist);this.delegate.videoItem&&E.push(this.delegate.videoItem);this.delegate.playlistItem&&E.push(this.delegate.playlistItem);return[].concat(_.ad(new Set(E)))};var vQ$=function(){hB.apply(this,arguments)};
_.L(vQ$,hB);vQ$.prototype.getAssociations=function(){var E=[];this.delegate.localImageEntities&&E.push.apply(E,_.ad(this.delegate.localImageEntities));return[].concat(_.ad(new Set(E)))};var yLX=function(){hB.apply(this,arguments)};
_.L(yLX,hB);yLX.prototype.getAssociations=function(){var E=[];this.delegate.playbackData&&E.push(this.delegate.playbackData);this.delegate.localImageEntities&&E.push.apply(E,_.ad(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&E.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ad(new Set(E)))};var CpZ=function(){hB.apply(this,arguments)};
_.L(CpZ,hB);CpZ.prototype.getAssociations=function(){return[]};var wkV=function(){hB.apply(this,arguments)};
_.L(wkV,hB);wkV.prototype.getAssociations=function(){var E=[];this.delegate.fakeChildren&&E.push.apply(E,_.ad(this.delegate.fakeChildren));return[].concat(_.ad(new Set(E)))};var ZLr=function(){hB.apply(this,arguments)};
_.L(ZLr,hB);ZLr.prototype.getAssociations=function(){var E=[];this.delegate.video&&E.push(this.delegate.video);this.delegate.playbackData&&E.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&E.push(this.delegate.offlineVideoPolicy);return[].concat(_.ad(new Set(E)))};var PpX=function(){hB.apply(this,arguments)};
_.L(PpX,hB);PpX.prototype.getAssociations=function(){return[]};var z3V=function(){hB.apply(this,arguments)};
_.L(z3V,hB);z3V.prototype.getAssociations=function(){var E=[];this.delegate.channelOwner&&E.push(this.delegate.channelOwner);this.delegate.videos&&E.push.apply(E,_.ad(this.delegate.videos));this.delegate.collaboratorChannels&&E.push.apply(E,_.ad(this.delegate.collaboratorChannels));this.delegate.downloadState&&E.push(this.delegate.downloadState);this.delegate.refresh&&E.push(this.delegate.refresh);return[].concat(_.ad(new Set(E)))};var mBU=function(){hB.apply(this,arguments)};
_.L(mBU,hB);mBU.prototype.getAssociations=function(){var E=[];this.delegate.video&&E.push(this.delegate.video);this.delegate.channelContributor&&E.push(this.delegate.channelContributor);return[].concat(_.ad(new Set(E)))};var QbZ=function(){d8.apply(this,arguments)};
_.L(QbZ,d8);QbZ.prototype.getAssociations=function(){var E=[];this.delegate.recommendedVideoMetadata&&E.push.apply(E,_.ad((new dBu(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.ad(new Set(E)))};
var dBu=function(){d8.apply(this,arguments)};
_.L(dBu,d8);dBu.prototype.getAssociations=function(){var E=[];this.delegate.localImageEntities&&E.push.apply(E,_.ad(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&E.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ad(new Set(E)))};var h3h=function(){d8.apply(this,arguments)};
_.L(h3h,d8);h3h.prototype.getAssociations=function(){var E=[];this.delegate.playbackPosition&&E.push(this.delegate.playbackPosition);return[].concat(_.ad(new Set(E)))};var sbr=function(){hB.apply(this,arguments)};
_.L(sbr,hB);sbr.prototype.getAssociations=function(){var E=[];this.delegate.owner&&E.push(this.delegate.owner);this.delegate.downloadState&&E.push(this.delegate.downloadState);this.delegate.userState&&E.push.apply(E,_.ad((new h3h(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&E.push.apply(E,_.ad((new QbZ(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.ad(new Set(E)))};var unN=function(){hB.apply(this,arguments)};
_.L(unN,hB);unN.prototype.getAssociations=function(){var E=[];this.delegate.userChannelDetails&&E.push(this.delegate.userChannelDetails);return[].concat(_.ad(new Set(E)))};var Lnt=function(){hB.apply(this,arguments)};
_.L(Lnt,hB);Lnt.prototype.getAssociations=function(){var E=[];this.delegate.channelOwner&&E.push(this.delegate.channelOwner);this.delegate.playbackPosition&&E.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&E.push.apply(E,_.ad(this.delegate.localImageEntities));this.delegate.downloadStatus&&E.push(this.delegate.downloadStatus);return[].concat(_.ad(new Set(E)))};var pWt=new _.F("downloadsPageSmartDownloadsOptInBannerParams");var xBu=function(){hB.apply(this,arguments)};
_.L(xBu,hB);xBu.prototype.getAssociations=function(){return[]};var Gel=function(){hB.apply(this,arguments)};
_.L(Gel,hB);Gel.prototype.getAssociations=function(){return[]};var OLV=function(){hB.apply(this,arguments)};
_.L(OLV,hB);OLV.prototype.getAssociations=function(){return[]};var nQZ=function(){hB.apply(this,arguments)};
_.L(nQZ,hB);nQZ.prototype.getAssociations=function(){return[]};var MJt=function(){hB.apply(this,arguments)};
_.L(MJt,hB);MJt.prototype.getAssociations=function(){return[]};var HLZ=function(){hB.apply(this,arguments)};
_.L(HLZ,hB);HLZ.prototype.getAssociations=function(){return[]};var NdR=function(){hB.apply(this,arguments)};
_.L(NdR,hB);NdR.prototype.getAssociations=function(){return[]};var gQZ=function(){hB.apply(this,arguments)};
_.L(gQZ,hB);gQZ.prototype.getAssociations=function(){return[]};var tBJ=new _.F("dislikeButtonViewModel");var koJ=new _.F("likeButtonViewModel");var SHt=new _.F("videoSummaryContentViewModel");var lEf=new _.F("videoSummaryParagraphViewModel");var JLZ=new _.F("changeTimelyActionVisibilityCommand");var WnZ=new _.F("hideEngagementPanelEndpoint");var XkU=new _.F("refreshPanelEndpoint");var rLZ=new _.F("scrollToSectionEndpoint");var bLR=new _.F("seekToVideoTimestampCommand");_.nJ=new _.F("showEngagementPanelEndpoint");var oQl=new _.F("showTransientPlayerScrimOverlayCommand");var AL$=new _.F("toggleEngagementPanelCommand");_.jbl=new _.F("createBroadcastCommand");var UBU=new _.F("metadataUpdateCommand");var keD=function(){hB.apply(this,arguments)};
_.L(keD,hB);keD.prototype.getAssociations=function(){return[]};var tJR=function(){hB.apply(this,arguments)};
_.L(tJR,hB);tJR.prototype.getAssociations=function(){return[]};var fYu=function(){hB.apply(this,arguments)};
_.L(fYu,hB);fYu.prototype.getAssociations=function(){return[]};_.VJt=new _.F("merchandiseShelfRenderer");var qHX=new _.F("gridMovieRenderer");_.Fn6=new _.F("movieRenderer");var DBt=function(){hB.apply(this,arguments)};
_.L(DBt,hB);DBt.prototype.getAssociations=function(){var E=[];this.delegate.trackDownloadMetadatas&&E.push.apply(E,_.ad(this.delegate.trackDownloadMetadatas));return[].concat(_.ad(new Set(E)))};var KnV=function(){hB.apply(this,arguments)};
_.L(KnV,hB);
KnV.prototype.getAssociations=function(){var E=[];this.delegate.downloadedTracks&&E.push.apply(E,_.ad(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&E.push.apply(E,_.ad(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&E.push.apply(E,_.ad(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&E.push.apply(E,_.ad(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&E.push.apply(E,_.ad(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
E.push.apply(E,_.ad(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&E.push.apply(E,_.ad(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&E.push.apply(E,_.ad(this.delegate.metadataOnlyTracks));return[].concat(_.ad(new Set(E)))};var R3U=function(){hB.apply(this,arguments)};
_.L(R3U,hB);R3U.prototype.getAssociations=function(){var E=[];this.delegate.trackDownloadMetadatas&&E.push.apply(E,_.ad(this.delegate.trackDownloadMetadatas));return[].concat(_.ad(new Set(E)))};var Ebl=function(){hB.apply(this,arguments)};
_.L(Ebl,hB);Ebl.prototype.getAssociations=function(){var E=[];this.delegate.playbackData&&E.push(this.delegate.playbackData);this.delegate.localImageEntities&&E.push.apply(E,_.ad(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&E.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ad(new Set(E)))};var BoV=function(){hB.apply(this,arguments)};
_.L(BoV,hB);
BoV.prototype.getAssociations=function(){var E=[];this.delegate.musicLibraryStatusEntity&&E.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&E.push.apply(E,_.ad(this.delegate.primaryArtists));this.delegate.details&&E.push(this.delegate.details);this.delegate.userDetails&&E.push(this.delegate.userDetails);this.delegate.tracks&&E.push.apply(E,_.ad(this.delegate.tracks));this.delegate.share&&E.push(this.delegate.share);this.delegate.downloadMetadata&&E.push(this.delegate.downloadMetadata);this.delegate.refresh&&
E.push(this.delegate.refresh);return[].concat(_.ad(new Set(E)))};
var $$l=function(){hB.apply(this,arguments)};
_.L($$l,hB);$$l.prototype.getAssociations=function(){var E=[];this.delegate.albumRelease&&E.push(this.delegate.albumRelease);this.delegate.tracks&&E.push.apply(E,_.ad(this.delegate.tracks));return[].concat(_.ad(new Set(E)))};
var IOZ=function(){hB.apply(this,arguments)};
_.L(IOZ,hB);IOZ.prototype.getAssociations=function(){var E=[];this.delegate.albumRelease&&E.push(this.delegate.albumRelease);return[].concat(_.ad(new Set(E)))};var Toz=function(){hB.apply(this,arguments)};
_.L(Toz,hB);Toz.prototype.getAssociations=function(){var E=[];this.delegate.details&&E.push(this.delegate.details);this.delegate.userDetails&&E.push(this.delegate.userDetails);return[].concat(_.ad(new Set(E)))};
var eTu=function(){hB.apply(this,arguments)};
_.L(eTu,hB);eTu.prototype.getAssociations=function(){var E=[];this.delegate.parentArtist&&E.push(this.delegate.parentArtist);return[].concat(_.ad(new Set(E)))};
var lOZ=function(){hB.apply(this,arguments)};
_.L(lOZ,hB);lOZ.prototype.getAssociations=function(){var E=[];this.delegate.parentArtist&&E.push(this.delegate.parentArtist);return[].concat(_.ad(new Set(E)))};var cTl=function(){hB.apply(this,arguments)};
_.L(cTl,hB);cTl.prototype.getAssociations=function(){return[]};var ioZ=function(){hB.apply(this,arguments)};
_.L(ioZ,hB);ioZ.prototype.getAssociations=function(){return[]};var peN=function(){hB.apply(this,arguments)};
_.L(peN,hB);
peN.prototype.getAssociations=function(){var E=[];this.delegate.tracks&&E.push.apply(E,_.ad(this.delegate.tracks));this.delegate.refresh&&E.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&E.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&E.push(this.delegate.details);this.delegate.downloadMetadata&&E.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&E.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&E.push(this.delegate.userDetails);this.delegate.entryCollection&&
E.push(this.delegate.entryCollection);this.delegate.share&&E.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&E.push.apply(E,_.ad((new Yo$(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.ad(new Set(E)))};
var Yo$=function(){d8.apply(this,arguments)};
_.L(Yo$,d8);Yo$.prototype.getAssociations=function(){var E=[];this.delegate.creatorEntity&&E.push(this.delegate.creatorEntity);return[].concat(_.ad(new Set(E)))};var aOX=function(){hB.apply(this,arguments)};
_.L(aOX,hB);aOX.prototype.getAssociations=function(){return[]};var vbz=function(){hB.apply(this,arguments)};
_.L(vbz,hB);
vbz.prototype.getAssociations=function(){var E=[];this.delegate.musicLibraryStatusEntity&&E.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&E.push.apply(E,_.ad(this.delegate.artists));this.delegate.audioModeVersion&&E.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&E.push(this.delegate.videoModeVersion);this.delegate.userDetails&&E.push(this.delegate.userDetails);this.delegate.details&&E.push(this.delegate.details);this.delegate.albumRelease&&E.push(this.delegate.albumRelease);this.delegate.share&&
E.push(this.delegate.share);this.delegate.libraryEdit&&E.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&E.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&E.push(this.delegate.playbackPosition);this.delegate.lyrics&&E.push(this.delegate.lyrics);return[].concat(_.ad(new Set(E)))};
var yTl=function(){hB.apply(this,arguments)};
_.L(yTl,hB);yTl.prototype.getAssociations=function(){var E=[];this.delegate.parentTrack&&E.push(this.delegate.parentTrack);return[].concat(_.ad(new Set(E)))};
var CMD=function(){hB.apply(this,arguments)};
_.L(CMD,hB);CMD.prototype.getAssociations=function(){var E=[];this.delegate.parentTrack&&E.push(this.delegate.parentTrack);return[].concat(_.ad(new Set(E)))};var Eg=new _.F("musicResponsiveListItemRenderer");var Ae4=new _.F("addToPlaylistEndpoint");var weN=new _.F("captionPickerEndpoint");var Zou=new _.F("suggestStats");var PMh=new _.F("backstageImageUploadEndpoint");var zTh=new _.F("createBackstagePostDialogEndpoint");_.m$R=new _.F("createCommentReplyDialogEndpoint");_.Qnu=new _.F("updateCommentDialogEndpoint");_.d$R=new _.F("updateCommentReplyDialogEndpoint");var hTR=new _.F("menuEndpoint");var NuB=new _.F("modalEndpoint");var sn$=new _.F("playlistEditorEndpoint");var u0V=new _.F("copyTextEndpoint");var LA6,x$6;LA6=new _.F("shareEndpoint");x$6=new _.F("shareEntityEndpoint");_.Gzu=new _.F("shareEntityServiceEndpoint");_.EHF=new _.F("userFeedbackEndpoint");_.kh=new _.F("watchEndpoint");var vxc=new _.F("watchPlaylistEndpoint");var Oo$=new _.F("addUpcomingEventReminderEndpoint");_.OS=new _.F("getCommentsFromInboxCommand");var nbD=new _.F("notificationOptOutEndpoint");var MoZ=new _.F("recordNotificationInteractionsEndpoint");var HoR=new _.F("removeUpcomingEventReminderEndpoint");var b6G=new _.F("getDownloadActionCommand");_.No$=new _.F("offlineOrchestrationActionCommand");var gbN=function(){hB.apply(this,arguments)};
_.L(gbN,hB);gbN.prototype.getAssociations=function(){return[]};var SoR=function(){hB.apply(this,arguments)};
_.L(SoR,hB);SoR.prototype.getAssociations=function(){return[]};var JTD=function(){hB.apply(this,arguments)};
_.L(JTD,hB);JTD.prototype.getAssociations=function(){return[]};var WAU=function(){hB.apply(this,arguments)};
_.L(WAU,hB);WAU.prototype.getAssociations=function(){return[]};var Xeh=function(){hB.apply(this,arguments)};
_.L(Xeh,hB);Xeh.prototype.getAssociations=function(){var E=[];this.delegate.transfer&&E.push(this.delegate.transfer);this.delegate.adsPlaybackData&&E.push.apply(E,_.ad(this.delegate.adsPlaybackData));this.delegate.drmLicense&&E.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&E.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&E.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ad(new Set(E)))};var rTh=function(){hB.apply(this,arguments)};
_.L(rTh,hB);rTh.prototype.getAssociations=function(){return[]};var bou=function(){hB.apply(this,arguments)};
_.L(bou,hB);bou.prototype.getAssociations=function(){var E=[];this.delegate.offlineVideoStreams&&E.push.apply(E,_.ad(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&E.push.apply(E,_.ad(this.delegate.captionTrack));return[].concat(_.ad(new Set(E)))};var obD=function(){hB.apply(this,arguments)};
_.L(obD,hB);obD.prototype.getAssociations=function(){return[]};var AT6=new _.F("showMoreDrawerCommand");var jnr=new _.F("updateEngagementPanelContentCommand");var U$N=new _.F("getPdgBuyFlowCommand");var kzz=new _.F("liveChatPurchaseMessageEndpoint");var to6=new _.F("openSuperStickerBuyFlowCommand");var fOl=new _.F("updatePdgFeatureEnablementCommand");var VoR=function(){hB.apply(this,arguments)};
_.L(VoR,hB);VoR.prototype.getAssociations=function(){return[]};var qol=function(){hB.apply(this,arguments)};
_.L(qol,hB);qol.prototype.getAssociations=function(){return[]};_.FAZ=new _.F("pdgCommentChipRenderer");_.D$r=new _.F("permissionRoleBottomBarRenderer");_.KAt=new _.F("updatePermissionRoleCommand");var RTu=new _.F("prefetchWatchCommand");var EfZ=new _.F("updatePlayerErrorMessageCommand");var NkQ=new _.F("toggleCaptionsVisibilityCommand");_.B4N=new _.F("quickActionsViewModel");var $Cz=new _.F("playerResponse");var IMl=new _.F("playlistRenderer");_.T4l=new _.F("playlistVideoListRenderer");_.nU=new _.F("playlistEditEndpoint");var eht=new _.F("createImagePollCommand");var lMN=new _.F("createQuizCommand");var cc6=new _.F("quizRenderer");var i2u=new _.F("uploadedVideoRenderer");var pOt=new _.F("decorateMessageEndpoint");var YIX=new _.F("lpOfferCardOptionViewModel");var aMN=new _.F("sfvAudioItemPlaybackCommand");var vfV=function(){hB.apply(this,arguments)};
_.L(vfV,hB);vfV.prototype.getAssociations=function(){return[]};_.MT=new _.F("reelNonVideoContentEndpoint");_.yQ=new _.F("reelWatchEndpoint");_.HW=new _.F("reelItemRenderer");var ycl=new _.F("reelMetapanelViewModel");_.Coz=new _.F("reelNonVideoContentRenderer");_.wO6=new _.F("reelPlayerOverlayRenderer");var Z2Z=new _.F("shortsLockupViewModel");var Pou=new _.F("sponsorButtonViewModel");var zhz=new _.F("reelItemWatchResponse");var mCt=new _.F("textBadgeRenderer");_.NT=new _.F("buttonRenderer");_.g8=new _.F("toggleButtonRenderer");var UFF=new _.F("switchButtonViewModel");_.QAN=new _.F("confirmDialogRenderer");var dC$;dC$=new _.F("menuRenderer");_.hhU=new _.F("menuFlexibleItemRenderer");var sAX=new _.F("pollRenderer");_.uyt=new _.F("backgroundPromoRenderer");var xCD;_.LGX=new _.F("chipCloudRenderer");xCD=new _.F("chipCloudChipRenderer");var GqZ=new _.F("dropdownRenderer");var O2V=new _.F("gridVideoRenderer");_.GWf=new _.F("itemSectionRenderer");_.nfD=new _.F("messageRenderer");var MyD=new _.F("sortFilterHeaderRenderer");_.H2r=new _.F("videoRenderer");var N4u=new _.F("resolveUrlCommandMetadata");var XWh=function(){hB.apply(this,arguments)};
_.L(XWh,hB);XWh.prototype.getAssociations=function(){return[]};_.rBr=new _.F("getAnswerCommand");_.YG=new _.F("searchEndpoint");var bUN=new _.F("genAiRichTextViewModel");var reQ=new _.F("overviewAnswerViewModel");var oYZ=new _.F("addToPlaylistServiceEndpoint");var ABU=new _.F("clearSearchHistoryEndpoint");var jpz=new _.F("clearWatchHistoryEndpoint");var UTZ=new _.F("webSerializedServiceEndpointExtension");_.kTU=new _.F("createCommentEndpoint");var tpU=new _.F("createCommentReplyEndpoint");var f_D=new _.F("performCommentActionEndpoint");var Vp$=new _.F("updateCommentEndpoint");var qSZ=new _.F("updateCommentReplyEndpoint");_.Sp=new _.F("createPlaylistServiceEndpoint");var FJZ=new _.F("deletePlaylistEndpoint");var DTl=new _.F("deleteVideoEndpoint");var oHG=new _.F("getReportFormEndpoint");var KJD=new _.F("modifyChannelNotificationPreferenceEndpoint");var cSi;_.lO=new _.F("offlinePlaylistEndpoint");cSi={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 i3G;_.ef=new _.F("offlineVideoEndpoint");i3G={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 Rk6=new _.F("pingingEndpoint");_.E8U=new _.F("selectActiveIdentityEndpoint");var BBV=new _.F("setSettingEndpoint");var NOi=new _.F("undoFeedbackEndpoint");var $eN=new _.F("unsubscribeEndpoint");_.I3r=new _.F("updatedMetadataEndpoint");var TBD=function(){hB.apply(this,arguments)};
_.L(TBD,hB);TBD.prototype.getAssociations=function(){return[]};_.eEt=new _.F("updateLocalAppSettingCommand");var l3l=new _.F("saveImageToDeviceEndpoint");var co6=new _.F("shareImageCommand");var i_U=new _.F("sharingProviderDataCommand");var pxt=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(pxt,_.LX);var YAX=[0,_.kU,-1];pxt.prototype.JSC$10157_serializeBinary=BF4(YAX);var a3Z=_.ja(YAX);var v86=new _.F("userMentionSuggestionRenderer");var yoV=new _.F("liveChatTunnelCommand");var CfX=new _.F("showSponsorshipsGiftOfferDialogCommand");var wx6=new _.F("sponsorshipsScrollableShelfViewModel");var Z_$=new _.F("updateUpcomingEventReminderButtonStateCommand");var Pfl=new _.F("upcomingEventReminderButtonStateRenderer");var zEU=new _.F("subscribeEndpoint");var meN=new _.F("registerTasksCommand");var Q5r=new _.F("showDialogCommand");_.vE=new _.F("showSheetCommand");var deD=function(){hB.apply(this,arguments)};
_.L(deD,hB);deD.prototype.getAssociations=function(){return[]};_.jf=new _.F("avatarViewModel");var YBG=new _.F("badgeViewModel");_.sO=new _.F("buttonViewModel");_.JB=new _.F("chipViewModel");var zqc=new _.F("contentPreviewImageViewModel");var LDG=new _.F("decoratedAvatarViewModel");var J7G=new _.F("downloadButtonViewModel");_.awQ=new _.F("engagementBarViewModel");_.nKG=new _.F("imageBannerViewModel");var xaD=new _.F("lockupContentMetadataRowExtension");var hER=new _.F("lockupMetadataViewModel");_.s5N=new _.F("lockupViewModel");var uAV=function(){hB.apply(this,arguments)};
_.L(uAV,hB);uAV.prototype.getAssociations=function(){return[]};_.LWl=new _.F("pageHeaderViewModel");var gzt=new _.F("thumbnailHoverOverlayToggleActionsViewModel");_.uO=new _.F("toggleButtonViewModel");var xer=function(){hB.apply(this,arguments)};
_.L(xer,hB);xer.prototype.getAssociations=function(){return[]};_.v$F=new _.F("votingViewModel");var GsN=new _.F("sectionHeaderViewModel");var O_r=new _.F("notifyDropdownOptionSelectedCommand");var Rjd=new _.F("listViewModel");_.Ce=new _.F("listItemViewModel");var n8l=new _.F("dialogHeaderViewModel");var Mu$=function(){hB.apply(this,arguments)};
_.L(Mu$,hB);Mu$.prototype.getAssociations=function(){return[]};var H_N=function(){hB.apply(this,arguments)};
_.L(H_N,hB);H_N.prototype.getAssociations=function(){return[]};var NBu=function(){hB.apply(this,arguments)};
_.L(NBu,hB);NBu.prototype.getAssociations=function(){return[]};_.g8N=new _.F("transcriptSubmitCaptionCorrectionCommand");var SAX=function(){hB.apply(this,arguments)};
_.L(SAX,hB);SAX.prototype.getAssociations=function(){return[]};var Q7i=new _.F("unpluggedStringRunImage");var JoX=new _.F("tabViewModel");var WWr=new _.F("tabbedViewModel");var XxV=function(){hB.apply(this,arguments)};
_.L(XxV,hB);XxV.prototype.getAssociations=function(){return[]};_.ror=new _.F("updateDescriptionAction");var b_$=new _.F("updateToggleButtonTextAction");_.o8D=new _.F("autoplaySwitchButtonRenderer");var g6;_.AoV=new _.F("multiMarkersPlayerBarRenderer");g6=new _.F("chapterRenderer");var j5t=new _.F("heatMarkerRenderer");var kyd=new _.F("heatmapRenderer");var Ueh=new _.F("smartSkipPlayerScrimOverlayRenderer");var kst=new _.F("timedMarkerDecorationRenderer");var Eu4=new _.F("postWebToNativeMessageCommand");var tuX=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(tuX,_.LX);var f3Z=_.A5(tuX,[0,_.kU,-2]);var VuU=new _.F("whitelistEditEndpoint");var qAV=new _.F("clearUrlParamCommand");var FW6=new _.F("commerceActionCommand");_.DeU=new _.F("getPaymentInstrumentsParamsCommand");var KWN=new _.F("getPaymentsClientTokenCommand");var REz=new _.F("googlePaymentBillingCommand");var ECD=new _.F("googlePaymentPurchaseManagerCommand");_.B5R=new _.F("logGtmCommand");var $lh=new _.F("updateCardItemOnClickCommand");_.IGZ=new _.F("ypcPauseSubscriptionCommand");_.T5h=new _.F("ypcResumeSubscriptionCommand");var e8Z=function(){hB.apply(this,arguments)};
_.L(e8Z,hB);e8Z.prototype.getAssociations=function(){return[]};var lGZ=function(){hB.apply(this,arguments)};
_.L(lGZ,hB);lGZ.prototype.getAssociations=function(){return[]};var chz=function(){hB.apply(this,arguments)};
_.L(chz,hB);chz.prototype.getAssociations=function(){return[]};var iMD=function(){hB.apply(this,arguments)};
_.L(iMD,hB);iMD.prototype.getAssociations=function(){return[]};var pcr=function(){hB.apply(this,arguments)};
_.L(pcr,hB);pcr.prototype.getAssociations=function(){return[]};var Crf=new _.F("ypcOffersEndpoint");var Yyt=new _.F("cardItemRenderer"),aGX=new _.F("cardItemTextRenderer");var vCR=new _.F("commerceCartItemQuantityPickerRenderer");var yhz=new _.F("linkCardRenderer");var fhG=new _.F("quantityIncrementerButtonViewModel");var C9D=new _.F("quantityIncrementerViewModel");var wc$=new _.F("themedImageViewModel");_.ZMh=new _.F("ypcCancelRecurrenceEndpoint");var P9N=new _.F("ypcCompleteTransactionEndpoint");_.z8l=new _.F("ypcGetCartEndpoint");_.Ej=new _.F("ypcGetOffersEndpoint");_.WW=new _.F("ypcHandleTransactionEndpoint");var mlt=new _.F("ypcLogWalletAnalyticDataEndpoint");_.QyN=new _.F("ypcRedeemCodeEndpoint");var dl6=new _.F("ypcUpdateFopEndpoint");$Y(BW(1),RA(4));i4N((new MessageChannel).port2);var h8Z=function(){this.register=new Map},nTc=function(E,B,I){E=E+"_"+B;
X2.register.has(E)?I=X2.register.get(E):(I=I(),X2.register.set(E,I));return I},syr=function(E){E=_.p(E.register.values());
for(var B=E.next();!B.done;B=E.next())_.yr(B.value,"ABORTED")};
h8Z.prototype.clear=function(){syr(this);this.register.clear()};
var X2=new h8Z;var iSD=Date.now().toString();var YkQ,ue$=_.$i.ytLoggingDocDocumentNonce_;ue$||(ue$=xh(16),_.ka("ytLoggingDocDocumentNonce_",ue$));YkQ=ue$;var zKf={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 LEr;LEr=1;_.Gx=function(E){this.veData=E};
_.Yg=function(E){return new _.Gx({trackingParams:E})};
_.wA=function(E,B,I,T,e,c){var Y=LEr++;return new _.Gx({veType:E,veCounter:Y,elementIndex:I,dataElement:B,youtubeData:T,jspbYoutubeData:e,loggingDirectives:c})};
_.l=_.Gx.prototype;
_.l.getAsJson=function(){var E={};this.veData.trackingParams!==void 0?E.trackingParams=this.veData.trackingParams:(E.veType=this.veData.veType,this.veData.veCounter!==void 0&&(E.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(E.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(E.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(E.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(E.isCounterfactual=!0);
return E};
_.l.getAsJspb=function(){var E=new pCU;this.veData.trackingParams!==void 0?E.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.gV(E,2,this.veData.veType),this.veData.veCounter!==void 0&&_.gV(E,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.gV(E,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.q8(E,5,!0));if(this.veData.dataElement!==void 0){var B=this.veData.dataElement.getAsJspb();_.fX(E,7,B)}this.veData.youtubeData!==void 0&&_.fX(E,8,this.veData.jspbYoutubeData);
return E};
_.l.toString=function(){return JSON.stringify(this.getAsJson())};
_.l.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.l.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.ka("yt_logging_screen.getRootVeType",wRt);_.ka("yt_logging_screen.getCurrentCsn",_.nC);_.ka("yt_logging_screen.getCttAuthInfo",MU);_.ka("yt_logging_screen.setCurrentScreen",_.d0f);var xlZ=function(){this.events=new Map},G0h=function(E){var B=[];
E=_.p(E.events.values());for(var I=E.next();!I.done;I=E.next())B.push(I.value);return B};
xlZ.prototype.clear=function(){this.events.clear()};var nCZ=function(){this.logTransport=new OMh;this.loggedEventRegister=new xlZ;this.unloggedEventRegister=new xlZ;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10212_flushTimer=new _.F7(this.flushInterval);this.JSC$10212_flushTimer.listen("tick",this.flush,!1,this)};
nCZ.prototype.flush=function(){if(this.eventsCount){var E={loggedEvents:G0h(this.loggedEventRegister),unloggedEvents:G0h(this.unloggedEventRegister)};if(_.d("export_player_version_to_ytconfig")){var B;(B=_.HA("PLAYER_CLIENT_VERSION"))?(B=B.split("-")[0].replace(/\./g,""),B=isNaN(Number(B))?"0":B):B="";var I=_.HA("PLAYER_CLIENT_VERSION");if(I){I=I.split("-");var T="";I.length>1&&(T=I[I.length-1]);I=cPf(T.startsWith("canary_experiment")?"canary":T.startsWith("canary_control")?"control":"none")}else I=
"CLIENT_CANARY_STATE_UNKNOWN";E.dimensions={playerClientVersion:B,playerCanaryState:I}}this.logTransport.flush(E);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10212_flushTimer.enabled&&this.JSC$10212_flushTimer.stop()}};
var M7V=function(E){r8==null&&(r8=new nCZ);var B=r8;var I=B.loggedEventRegister;E.dimensions=E.dimensions||{};E.dimensions.csn=_.nC()||"";var T=hKJ(E.dimensions).join(";");if(E.records!=null)if(I.events.has(T)){var e;(e=I.events.get(T).records)==null||e.push.apply(e,_.ad(E.records))}else I.events.set(T,E);B.JSC$10212_flushTimer.enabled||B.JSC$10212_flushTimer.start();B.eventsCount++;B.eventsCount>=100&&B.flush()};var OMh=function(){};
OMh.prototype.flush=function(E,B){_.d("enable_client_sli_logging")&&_.hK("sliEventBatch",E,{sendIsolatedPayload:!!B})};var r8;var N5$;N5$=function(E){var B=HMV;E=E===void 0?{}:E;B=B.name;var I=OSc("SUCCESS");M7V({dimensions:E,records:[{name:B,state:"SLI_STATE_END",status:I}]})};
_.MlF=function(E,B,I,T){this.name=E;this.sliId=B;this.timeoutMs=I;this.statusOnTimeout=T;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.MlF.prototype.getId=function(){return this.sliId};
_.v3=function(E,B){B=B===void 0?{}:B;E.ongoing||(E.ongoing=!0,E.dimensions=B,E.logSliId=rkh(),M7V({dimensions:E.dimensions,records:[{name:E.name,state:"SLI_STATE_START",sliId:E.logSliId}]}),E.timeoutMs>0&&(E.timeoutHandle=setTimeout(function(){_.yr(E,E.statusOnTimeout)},E.timeoutMs)))};
_.yr=function(E,B){E.ongoing&&(E.timeoutMs>0&&clearTimeout(E.timeoutHandle),E.ongoing=!1,B={dimensions:E.dimensions,records:[{name:E.name,status:OSc(B),state:"SLI_STATE_END",sliId:E.logSliId}]},X2.register.delete(E.name+"_"+E.sliId),M7V(B))};var HMV=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var gCz=function(){hB.apply(this,arguments)};
_.L(gCz,hB);gCz.prototype.getAssociations=function(){return[]};var cni=new _.F("highlightTextDecoratorColorMapExtension");var eFd=new _.F("styleRunColorMapExtension");var XRQ=_.km(["data-"]),oT6={};var j8i={};_.WU=function(E,B,I){_.Ec.call(this,E+", errorCode="+B);this.errorCode=B;this.xhr=I;this.name="PromiseAjaxError"};
_.L(_.WU,_.Ec);var Vld=function(E){this.xhr=E};var bU=function(E){this.wrappedPromise_=E===void 0?null:E;this.state_=0;this.JSC$10244_value_=null};
bU.prototype.then=function(E,B,I){return this.wrappedPromise_?this.wrappedPromise_.then(E,B,I):this.state_===1&&E?(E=E.call(I,this.JSC$10244_value_))&&typeof E.then==="function"?E:_.op(E):this.state_===2&&B?(E=B.call(I,this.JSC$10244_value_))&&typeof E.then==="function"?E:_.Syr(E):this};
bU.prototype.getValue=function(){return this.JSC$10244_value_};
bU.prototype.isRejected=function(){return this.state_==2};
pLh(bU);_.Syr=function(E){var B=new bU;E=E===void 0?null:E;B.state_=2;B.JSC$10244_value_=E===void 0?null:E;return B};
_.op=function(E){var B=new bU;E=E===void 0?null:E;B.state_=1;B.JSC$10244_value_=E===void 0?null:E;return B};var fFG={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var YzG="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Jhr=["load","abort","error"],AB=function(E,B,I){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10264_maxAspectRatio_=E;this.disableAnimation_=B===void 0?!1:B;this.disableExifRotation_=I===void 0?!1:I;this.JSC$10264_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10264_reject_=this.resolve_=null};
AB.prototype.transform=function(E){var B=this;this.mime_=E.type;kT(eul(E),this.dataUrlRead_,this.readError_,this);kT(TEl(E.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(I,T){B.resolve_=I;B.JSC$10264_reject_=T})};
AB.prototype.dataUrlRead_=function(E){this.dataUrl_=E;this.angle_!=null&&WEt(this)};
AB.prototype.exifRead_=function(E){if(this.disableExifRotation_)this.angle_=0;else{a:if(E=new DataView(E),E.byteLength<2||E.getUint16(0)!==65496)E=-2;else{for(var B=2,I=E.byteLength;B<I;){var T=E.getUint16(B),e=E.getUint16(B+2);if(T===65505){B+=4;T=E.getUint32(B);e=E.getUint16(B+4);if(T!==1165519206||e!==0)break;B+=6;T=E.getUint16(B)===18761;B+=E.getUint32(B+4,T);e=E.getUint16(B,T);B+=2;for(var c=0;c<e;c++){if(E.getUint16(B,T)===274){B+=8;E=E.getUint16(B,T);break a}B+=12}}else if(T>>8!==255)break;
else B+=e+2}E=-1}switch(E){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&&WEt(this)};
AB.prototype.readError_=function(){this.JSC$10264_reject_()};
var WEt=function(E){iu(E.JSC$10264_image_,Jhr,E.completeTransform_,!1,E);E.JSC$10264_image_.src=_.pr(E.dataUrl_).toString();E.JSC$10264_image_.src!=iv.toString()&&E.JSC$10264_image_.src.substr(0,11)==="data:image/"||E.JSC$10264_reject_()};
AB.prototype.completeTransform_=function(){if(this.JSC$10264_image_.src!=iv.toString()){var E=_.pr(this.dataUrl_),B=this.JSC$10264_image_.naturalHeight?this.JSC$10264_image_.naturalWidth/this.JSC$10264_image_.naturalHeight:null;this.invalidAspectRatio=B>this.JSC$10264_maxAspectRatio_||B<1/this.JSC$10264_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var I=this.JSC$10264_image_.naturalWidth,T=this.JSC$10264_image_.naturalHeight,e=B=0,c=this.JSC$10264_image_.naturalHeight?this.JSC$10264_image_.naturalWidth/
this.JSC$10264_image_.naturalHeight:null;c>this.JSC$10264_maxAspectRatio_?(I=this.JSC$10264_maxAspectRatio_*T,B=(I-this.JSC$10264_image_.naturalWidth)/2,this.cropped=!0):c<1/this.JSC$10264_maxAspectRatio_?(T=this.JSC$10264_maxAspectRatio_*I,e=(T-this.JSC$10264_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)c=I,I=T,T=c,c=B,B=e,e=c;switch(this.angle_){case 90:e-=I;break;case 180:B-=I;e-=T;break;case 270:B-=
T}this.cropped||this.angle_%360!==0?(E=document.createElement("canvas"),E.width=I||1,E.height=T||1,this.JSC$10264_image_.naturalWidth&&this.JSC$10264_image_.naturalHeight&&(I=E.getContext("2d"),I.rotate(Math.PI/180*this.angle_),I.drawImage(this.JSC$10264_image_,B,e,this.JSC$10264_image_.naturalWidth,this.JSC$10264_image_.naturalHeight)),this.transformedData=_.pr(E.toDataURL(this.mime_))):this.transformedData=E}else this.transformedData=E;this.resolve_(this)}};var jp=function(E,B){_.CS.call(this,E);this.value=B};
_.L(jp,_.CS);
var US=function(E,B,I,T,e,c,Y){Y=Y===void 0?!1:Y;_.ms.call(this);var v=this;this.JSC$10269_url_=E;this.channelId_=B;this.maxFileSizeMb_=I;this.JSC$10269_maxAspectRatio_=T;this.dropZoneEl_=e;this.rejectInvalidAspectRatio_=Y;this.selectButtonEl_=c;this.JSC$10269_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new YY(this.dropZoneEl_);this.selectOverlay_=new ap(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10269_image_=this.transfer_=null;this.handler_=new _.DA(this);_.Bp(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(c,"click",function(){v.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.L(US,_.ms);US.prototype.disposeInternal=function(){for(var E=this.selectButtonEl_.nextSibling;E&&E.parentNode&&E.tagName=="INPUT";)E.parentNode.removeChild(E),E=this.selectButtonEl_.nextSibling;this.cancel();_.ms.prototype.disposeInternal.call(this)};
US.prototype.uploadPromise=function(){if(this.JSC$10269_image_==null)return null;this.uploadPromise_||XcZ(this);return this.uploadPromise_};
US.prototype.cancel=function(){rhZ(this);this.JSC$10269_image_=null};
var rhZ=function(E){E.transfer_&&E.transfer_.cancel();E.transfer_=null;E.uploadPromise_=null;E.resolve_=null;E.JSC$10269_reject_=null},XcZ=function(E){rhZ(E);
E.transfer_=_.srl(E.JSC$10269_url_,{"X-YouTube-ChannelId":E.channelId_},E.JSC$10269_image_);E.handler_.listenOnce(E.transfer_,"l",E.JSC$10271_onUploadComplete_);E.handler_.listenOnce(E.transfer_,"n",E.onUploadError_);E.transfer_.run();E.uploadPromise_=new Promise(function(B,I){E.resolve_=B;E.JSC$10269_reject_=I})};
_.l=US.prototype;_.l.onChange_=function(E){E.files.length&&(this.JSC$10269_image_=E.files[0],this.JSC$10269_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10269_image_=null,this.dispatchEvent(new jp("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(XcZ(this),(new AB(this.JSC$10269_maxAspectRatio_)).transform(this.JSC$10269_image_).then((0,_.w1)(this.onPreview_,this),(0,_.w1)(this.onPreviewError_,this))))};
_.l.onPreview_=function(E){if(E.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10269_image_=null),this.dispatchEvent(new jp("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;E.cropped&&this.dispatchEvent(new jp("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new jp("yt.comments.ImageUploadOverlay.CHANGE_EVENT",E.transformedData))};
_.l.onPreviewError_=function(){this.JSC$10269_image_=null;this.dispatchEvent(new jp("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.l.onHover_=function(E){E.stopPropagation();E.preventDefault();if(E.type==="dragover")E=!0;else if(E.type==="dragleave")E=!1;else return;this.dispatchEvent(new jp("yt.comments.ImageUploadOverlay.HOVER_EVENT",E))};
_.l.JSC$10271_onUploadComplete_=function(){var E=(0,_.gBr)(this.transfer_.getResponseText());this.resolve_(E.encryptedBlobId)};
_.l.onUploadError_=function(){this.JSC$10269_reject_();rhZ(this)};var bMr=function(E){E=E||{};var B={},I={};this.url=E.url||"";this.args=E.args||_.a_.clone(B);this.assets=E.assets||{};this.attrs=E.attrs||_.a_.clone(I);this.fallback=E.fallback||null;this.fallbackMessage=E.fallbackMessage||null;this.html5=!!E.html5;this.disable=E.disable||{};this.loaded=!!E.loaded;this.messages=E.messages||{}};
bMr.prototype.clone=function(){var E=new bMr,B;for(B in this)if(this.hasOwnProperty(B)){var I=this[B];E[B]=_.cm(I)=="object"?_.a_.clone(I):I}return E};var oCl,Ahh,jyU,R0,k0h,t7R,fGR,V7R,qyh,FE6,DlN,KEu,R8$,Exz,BSX,$kU,Ilh,TSZ,eaN,llr,c4N,ij$,pFz,Y6l,alD,vxD,y4l,CF6,wF6,c0f,Zju,PFu,zaz,mku,Qvz,dkV,haZ,svl,u_V,LN$,xkV,Gmh,Ojz,nxt,M1U,Hjz,NSZ,gxV,S6N,J4r,WNN,XFV,r4l,bjr,oxu,A4D,kY,jvZ,Ukr,kmh,t1N,flh,V1N,q6D,FND,Dk6,KNV,RaR,E2N,Bhu,$9h,Ivu,Thz,eHu,lvZ,eYG,c66,izR,pyV,Yuu,av6,v2$,y66,CSh,wyu,Zzt,PSl,zHz,m9D,Qet,d9V,hHR,seX,uKz,LvZ,x9h,GJt,Ozz,n2Z,M_Z,Hzz;oCl=["account/accounts_list"];Ahh=["acknowledge_channel_tou_strike"];jyU=["notification/add_upcoming_event_reminder"];
_.Ul$=["att/get"];R0=["browse","music/browse","unplugged/browse"];k0h=["channel/claim_legacy_youtube_channel"];t7R=["history/clear_search_history"];fGR=["history/clear_watch_history"];V7R=["comment/perform_comment_action"];qyh=["comment/get_comment_replies"];FE6=["ypc/commerce_action"];DlN=["backstage/create_post"];KEu=["live/create_broadcast"];R8$=["channel/create_channel"];Exz=["comment/create_comment_reply"];BSX=["comment/create_comment"];$kU=["live_chat/create_poll"];Ilh=["playlist/create"];
TSZ=["decorate_message"];eaN=["live_chat/delete_message"];llr=["playlist/delete"];c4N=["video/delete"];ij$=["like/dislike"];pFz=["dismissal/dismiss"];Y6l=["flag/flag"];alD=["flow"];vxD=["account/account_menu"];y4l=["playlist/get_add_to_playlist"];CF6=["get_answer"];wF6=["channel/get_channel_creation_form"];c0f=["offline/get_download_action"];Zju=["kids/get_kids_blocklist_picker"];PFu=["live_chat/get_item_context_menu"];zaz=["live_chat/get_live_chat_message_buy_flow"];mku=["live_chat/get_live_chat_replay"];
Qvz=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];dkV=["live_chat/get_live_chat_super_sticker_buy_flow"];haZ=["notification/get_notification_menu"];svl=["playlist/get_settings_editor"];u_V=["backstage/get_post_video_preview"];LN$=["account/get_profile_card"];xkV=["share/get_share_panel"];Gmh=["share/get_sharing_provider_data"];Ojz=["get_survey"];nxt=["notification/get_unseen_count"];M1U=["get_user_mention_suggestions"];Hjz=["get_watch"];NSZ=["guide"];
gxV=["feedback"];S6N=["kids/update_blacklist"];J4r=["like/like"];WNN=["live_chat/live_chat_action"];XFV=["live_chat/manage_user"];r4l=["video_manager/metadata_update"];bjr=["live_chat/moderate"];oxu=["notification/modify_channel_preference"];A4D=["notification/opt_out"];kY=["get_panel","get_posts_by_host_panel"];jvZ=["player"];Ukr=["browse/edit_playlist"];kmh=["notification/record_interactions"];t1N=["reel/reel_item_watch"];flh=["reel/reel_watch_sequence"];V1N=["like/removelike"];q6D=["notification/remove_upcoming_event_reminder"];
FND=["flag/get_form"];Dk6=["miniapp/report_value"];KNV=["navigation/resolve_url"];RaR=["channel/reveal_business_email"];E2N=["in_video/search"];Bhu=["search","sfv/search","unplugged/search"];$9h=["live_chat/send_message"];Ivu=["live_chat/send_live_chat_vote"];Thz=["account/set_setting"];eHu=["submit_caption_correction"];lvZ=["subscription/subscribe"];eYG=["get_transcript"];c66=["resolve_location","unplugged/resolve_location"];izR=["subscription/unsubscribe"];pyV=["backstage/update_post"];Yuu=["channel_edit/update_channel_page_settings"];
av6=["comment/update_comment_reply"];v2$=["comment/update_comment"];y66=["comment/update_comments_settings"];CSh=["creator/update_creator_channel"];wyu=["pdg/update_enablement"];Zzt=["updated_metadata"];PSl=["channel_edit/validate_channel_handle"];zHz=["verify_age"];m9D=["next","unplugged/watch_next"];Qet=["whitelist/edit"];d9V=["ypc/cancel_recurrence"];hHR=["ypc/complete_transaction"];seX=["ypc/get_cart"];uKz=["ypc/get_fix_instrument_params"];LvZ=["ypc/get_offers"];x9h=["ypc/get_payment_instruments_params"];
GJt=["ypc/handle_transaction"];Ozz=["ypc/log_payment_server_analytics"];n2Z=["ypc/pause_subscription"];M_Z=["ypc/redeem_code"];Hzz=["ypc/resume_subscription"];var NhX=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,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,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,
3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,
84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,
253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,
32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,
28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,
213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,
140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var vN=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.ka("yt.msgs_",vN);var tB=new _.Dr("ACTION_ROUTER_TOKEN");_.fU=function(){this.autonavState_=_.d("kevlar_is_pupi_enabled")?2:hof()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.fU.prototype.getState=function(){return this.autonavState_};
_.fU.prototype.pause=function(E){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=E):this.autonavState_==1&&(this.disabledAutonavPauseReason_=E)};
_.fU.prototype.setState=function(E,B,I){B&&(this.autoplayChangedByUser=!0);B=this.autonavState_===3||E===3;this.autonavState_!=E&&(this.autonavState_=E,E!=3&&_.swG(E==2),E=_.d("kevlar_is_pupi_enabled")?I||B:!0,_.WC.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,E,I))};
_.fU.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.E8(_.fU);var Vk=function(){this.hasRun=!1};var qT={},WUG=(qT.auto_search="LATENCY_ACTION_AUTO_SEARCH",qT.ad_to_ad="LATENCY_ACTION_AD_TO_AD",qT.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",qT.app_startup="LATENCY_ACTION_APP_STARTUP",qT.browse="LATENCY_ACTION_BROWSE",qT.cast_splash="LATENCY_ACTION_CAST_SPLASH",qT.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",qT.channels="LATENCY_ACTION_CHANNELS",qT.chips="LATENCY_ACTION_CHIPS",qT.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",qT.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
qT.editor="LATENCY_ACTION_EDITOR",qT.embed="LATENCY_ACTION_EMBED",qT.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",qT.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",qT.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",qT.explore="LATENCY_ACTION_EXPLORE",qT.favorites="LATENCY_ACTION_FAVORITES",qT.home="LATENCY_ACTION_HOME",qT.inboarding="LATENCY_ACTION_INBOARDING",qT.landing="LATENCY_ACTION_LANDING",qT.library="LATENCY_ACTION_LIBRARY",qT.live=
"LATENCY_ACTION_LIVE",qT.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",qT.management="LATENCY_ACTION_MANAGEMENT",qT.mini_app="LATENCY_ACTION_MINI_APP_PLAY",qT.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",qT.onboarding="LATENCY_ACTION_ONBOARDING",qT.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",qT.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",qT.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",qT.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
qT.prebuffer="LATENCY_ACTION_PREBUFFER",qT.prefetch="LATENCY_ACTION_PREFETCH",qT.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",qT.profile_switcher="LATENCY_ACTION_LOGIN",qT.projects="LATENCY_ACTION_PROJECTS",qT.reel_watch="LATENCY_ACTION_REEL_WATCH",qT.results="LATENCY_ACTION_RESULTS",qT.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",qT.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",qT.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",qT.review="LATENCY_ACTION_REVIEW",qT.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",qT.search_ui="LATENCY_ACTION_SEARCH_UI",qT.search_suggest="LATENCY_ACTION_SUGGEST",qT.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",qT.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",qT.seek="LATENCY_ACTION_PLAYER_SEEK",qT.settings="LATENCY_ACTION_SETTINGS",qT.store="LATENCY_ACTION_STORE",qT.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",qT.tenx="LATENCY_ACTION_TENX",qT.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",qT.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
qT.watch="LATENCY_ACTION_WATCH",qT.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",qT["watch,watch7"]="LATENCY_ACTION_WATCH",qT["watch,watch7_html5"]="LATENCY_ACTION_WATCH",qT["watch,watch7ad"]="LATENCY_ACTION_WATCH",qT["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",qT.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",qT.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",qT.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",qT.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",qT.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",qT.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",qT.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",qT.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",qT);var $BD=function(E,B){dd.call(this,1,arguments);this.timer=B};
_.L($BD,dd);var Bd4=new eJF("aft-recorded",$BD);var oe4=_.$i.ytLoggingGelSequenceIdObj_||{};_.ka("ytLoggingGelSequenceIdObj_",oe4);var F2=_.$i.ytLoggingLatencyUsageStats_||{};_.ka("ytLoggingLatencyUsageStats_",F2);var D_=function(){this.cleanupJob=0},U6B=function(){D_.instance||(D_.instance=new D_);
return D_.instance};
_.l=D_.prototype;_.l.baseline=function(E,B,I){KU(this,"baseline_"+E)||_.hK("latencyActionBaselined",{clientActionNonce:E},{timestamp:B,cttAuthInfo:I})};
_.l.tick=function(E,B,I,T){KU(this,"tick_"+E+"_"+B)||_.hK("latencyActionTicked",{tickName:E,clientActionNonce:B},{timestamp:I,cttAuthInfo:T})};
_.l.info=function(E,B,I){var T=Object.keys(E).join("");KU(this,"info_"+T+"_"+B)||(E=Object.assign({},E),E.clientActionNonce=B,_.hK("latencyActionInfo",E,{cttAuthInfo:I}))};
_.l.jspbInfo=function(E,B,I){for(var T="",e=0;e<Vd(E).length;e++)Vd(E)[e]!==void 0&&(T=e===0?T.concat(""+e):T.concat("_"+e));KU(this,"info_"+T+"_"+B)||(_.$r(E,2,B),B={cttAuthInfo:I},I=_.d("jspb_sparse_encoded_pivot")?new Za([{}]):new Za,_.V$(I,7,u7V,E),AGF("latencyActionInfo",I,B))};
_.l.span=function(E,B,I){var T=Object.keys(E).join("");KU(this,"span_"+T+"_"+B)||(E.clientActionNonce=B,_.hK("latencyActionSpan",E,{cttAuthInfo:I}))};
var KU=function(E,B){F2[B]=F2[B]||{count:0};var I=F2[B];I.count++;I.time=(0,_.VZ)();E.cleanupJob||(E.cleanupJob=_.PC(_.Ll,function(){var T=(0,_.VZ)(),e;for(e in F2)F2[e]&&T-F2[e].time>6E4&&delete F2[e];E&&(E.cleanupJob=0)},5E3));
return I.count>5?(I.count===6&&Math.random()*1E5<1&&(I=new _.P7("CSI data exceeded logging limit with key",B.split("_")),B.indexOf("plev")>=0||_.OG(I)),!0):!1};var g2h,SuD;g2h=window;SuD=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.mr=g2h.performance||g2h.mozPerformance||g2h.msPerformance||g2h.webkitPerformance||new SuD;var EQt=!1,tMF=!1,IYD=(0,_.w1)(_.mr.clearResourceTimings||_.mr.webkitClearResourceTimings||_.mr.mozClearResourceTimings||_.mr.msClearResourceTimings||_.mr.oClearResourceTimings||_.ZU,_.mr);var J6r=window;J6r.ytcsi&&(J6r.ytcsi.infoGel=_.LO,J6r.ytcsi.tick=_.nO);var wk4=function(E){dd.call(this,1,arguments);this.csn=E};
_.L(wk4,dd);var Y3B=new eJF("screen-created",wk4),HLc=[],Cpt=MJG,NdQ=0,SY=new Map,ZLJ=new Map,Ppi=new Map;var OO=Symbol("uf"),kO=new WeakMap;var Rp=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},cV=function(){Rp.instance||(Rp.instance=new Rp);
return Rp.instance};
_.l=Rp.prototype;_.l.setClient=function(E){this.client=E};
_.l.JSC$10351_newScreen=function(){this.clear();this.csn=_.nC()};
_.l.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.l.reportShown=function(E,B,I){var T=this.JSC$10351_getTrackingParams(E),e=E.visualElement?E.visualElement:T;B=this.shownElements.has(e);var c=this.visibleState.get(e);this.shownElements.add(e);this.visibleState.set(e,!0);E.impressionLog&&!B&&E.impressionLog();if(T||E.visualElement)if(I=Wvr(this,E,I))if(e=XyN(this,E),EA(this,E)||e){T=E.visualElement?E.visualElement:_.Yg(T);var Y=E.interactionLoggingClientData;e||B?EA(this,E)&4?c||LnG(this.client,I,T,Y):EA(this,E)&1&&!B&&h36(this.client,I,T,Y):h36(this.client,
I,T,Y)}};
_.l.reportHidden=function(E,B,I){var T=this.JSC$10351_getTrackingParams(E),e=E.visualElement?E.visualElement:T;B=this.hiddenElements.has(e);var c=this.visibleState.get(e);this.hiddenElements.add(e);this.visibleState.set(e,!1);if(c===!1)return!0;if(!T&&!E.visualElement)return!1;I=Wvr(this,E,I);if(!I||!EA(this,E)&&XyN(this,E))return!1;T=E.visualElement?E.visualElement:_.Yg(T);EA(this,E)&8?xBF(this.client,I,T):EA(this,E)&2&&!B&&(E=this.client,B=gY({cttAuthInfo:MU(I)||void 0},I),T={csn:I,ve:T.getAsJson(),
eventType:2},I==="UNDEFINED_CSN"?WN("visualElementHidden",B,T):E?QU("visualElementHidden",T,E,B):_.hK("visualElementHidden",T,B));return!0};
_.l.JSC$10351_getTrackingParams=function(E){var B=this.getData(E),I,T;if(_.d("il_use_view_model_logging_context")&&(B==null?0:(I=B.context)==null?0:(T=I.loggingContext)==null?0:T.loggingDirectives))return B.context.loggingContext.loggingDirectives.trackingParams||"";var e,c;if(B==null?0:(e=B.rendererContext)==null?0:(c=e.loggingContext)==null?0:c.loggingDirectives)return B.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(B==null?0:B.loggingDirectives)return B.loggingDirectives.trackingParams||
"";var Y;return((Y=E.veContainer)==null?0:Y.trackingParams)?E.veContainer.trackingParams:(B==null?void 0:B.trackingParams)||""};
_.l.JSC$10351_elementShouldLogGesture=function(E,B){E=this.getData(E);return!!((Math.floor(Number(E&&E.loggingDirectives&&E.loggingDirectives.gestures&&E.loggingDirectives.gestures.types||""))||0)&B)};
_.l.JSC$10351_getNearestParentVe=function(E){var B=this.JSC$10351_getTrackingParams(E);return E.visualElement?E.visualElement:B?_.Yg(B):E.parentElement?this.JSC$10351_getNearestParentVe(E.parentElement):null};
var Wvr=function(E,B,I){var T=_.nC(I);return E.csn===null||T===E.csn||I?T:(E=new _.P7("VisibilityLogger called before newScreen",{caller:B.tagName,previous_csn:E.csn,current_csn:T}),_.OG(E),null)};
Rp.prototype.getData=function(E){var B,I=E.data||((B=E.props)==null?void 0:B.data);if(!I&&_.d("enable_wiz_always_try_logging_info_map")){var T;I=(T=tl(E))==null?void 0:T[OO]}else if(E.isWebComponentWrapper){var e;I=(e=tl(E))==null?void 0:e[OO]}return I};
var XyN=function(E,B){var I;return!((I=E.getData(B))==null||!I.loggingDirectives)},EA=function(E,B){E=E.getData(B);
return Math.floor(Number(E&&E.loggingDirectives&&E.loggingDirectives.visibility&&E.loggingDirectives.visibility.types||""))||1};var Bx;Bx=function(){};
_.TA=function(){Bx.instance||(Bx.instance=new Bx);return Bx.instance};
Bx.prototype.setClient=function(E){_.JA(cV().setClient).bind(cV())(E)};
_.r6Z=function(){_.TA();_.JA(cV().JSC$10351_newScreen).bind(cV())()};
Bx.prototype.clear=function(){_.JA(cV().clear).bind(cV())()};
Bx.prototype.reportShown=function(E,B,I){_.JA(cV().reportShown).bind(cV())(E,B,I)};
Bx.prototype.reportHidden=function(E,B,I){return _.JA(cV().reportHidden).bind(cV())(E,B,I)};
var $zi=function(E,B){return _.JA(cV().JSC$10351_getTrackingParams).bind(cV())(B)},eWc=function(E,B){return _.JA(cV().JSC$10351_getNearestParentVe).bind(cV())(B)};var $8,bzV;$8=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};
_.lu=function(){$8.instance||($8.instance=new $8);return $8.instance};
$8.prototype.setClient=function(E){this.client=E};
bzV=function(E,B,I){I=I===void 0?{}:I;_.JA(function(){var T,e,c,Y=((T=_.h(B==null?void 0:B.commandMetadata,_.D$))==null?void 0:T.rootVe)||((e=_.h(B==null?void 0:B.commandMetadata,D6D))==null?void 0:(c=e.screenVisualElement)==null?void 0:c.uiType);if(Y){T=_.h(B==null?void 0:B.commandMetadata,N4u);if(T==null?0:T.parentTrackingParams){var v=_.Yg(T.parentTrackingParams);if(T.parentCsn)var y=T.parentCsn}else I.clickedVisualElement?v=I.clickedVisualElement:B.clickTrackingParams&&(v=_.Yg(B.clickTrackingParams));
a:{T=_.h(B,_.kh);e=_.h(B,vxc);if(T){if(e=u1J(T,"VIDEO")){T={token:e,videoId:T.videoId};break a}}else if(e&&(T=u1J(e,"PLAYLIST"))){T={token:T,playlistId:e.playlistId};break a}T=void 0}I=Object.assign({},{cttAuthInfo:T,parentCsn:y},I);if(_.d("expectation_logging")){var Z;I.loggingExpectations=((Z=_.h(B==null?void 0:B.commandMetadata,D6D))==null?void 0:Z.loggingExpectations)||void 0}_.I5(E,Y,v,I)}else _.OG(new _.P7("Error: Trying to create a new screen without a rootVeType",B))})()};
_.I5=function(E,B,I,T){T=T===void 0?{}:T;_.JA(function(){NhX.includes(B)||(_.OG(new _.P7("createClientScreen() called with a non-page VE",B)),B=83769);T.isHistoryNavigation||(E.forwardHistoryStack=[],E.backHistoryStack.push({rootVe:B,key:T.key||""}));E.graftQueue=[];E.stateChangedQueue=[];T.dataPromises?o2h(E,B,I,T):A6h(E,B,I,T)})()};
_.jeD=function(E,B,I){I=I===void 0?0:I;_.JA(function(){B.then(function(T){E.pendingScreenCreation.has(I)&&E.pendingScreenFn&&E.pendingScreenFn();var e=_.nC(I),c=_.Oi(I);if(e&&c){var Y;(T==null?0:(Y=T.response)==null?0:Y.trackingParams)&&Jl(E.client,e,c,_.Yg(T.response.trackingParams));var v;(T==null?0:(v=T.playerResponse)==null?0:v.trackingParams)&&Jl(E.client,e,c,_.Yg(T.playerResponse.trackingParams))}})})()};
$8.prototype.graftServerVe=function(E,B,I){var T=this;return _.JA(function(){var e=_.Yg(E);_.Ts(T,e,B,I);return e})()};
_.lzf=function(E,B,I,T){return _.d("enable_client_ve_spec")&&B.clientVeSpec?(B=_.wA(B.clientVeSpec.uiType,void 0,B.clientVeSpec.elementIndex,B.clientVeSpec.clientYoutubeData,void 0,B),_.Ts(E,B,I,T)?B:null):B.trackingParams?E.graftServerVe(B.trackingParams,I,T):null};
_.eO=function(E,B,I,T){return _.JA(function(){if(!B.veType)return _.GF(new _.P7("Error: Trying to graft a client VE without a veType.")),null;if(B.visibilityTypes){var e=B.visibilityTypes.reduce(function(c,Y){return c|Y});
e={visibility:{types:String(e)}}}e=_.wA(B.veType,B.visualElement,B.elementIndex,B.clientYouTubeData,void 0,e);return _.Ts(E,e,I,T)?e:null})()};
_.Ts=function(E,B,I,T){T=T===void 0?0:T;return _.JA(function(){if(E.pendingScreenCreation.has(T))return E.graftQueue.push([B,I]),!0;var e=_.nC(T),c=I||_.Oi(T);if(e&&c){if(_.d("combine_ve_grafts")){var Y=E.cachedVisualElements.get(c.toString());Y?Y.push(B):(E.cachedRootVisualElements.set(c.toString(),c),E.cachedVisualElements.set(c.toString(),[B]));E.attachTimeout||(E.attachTimeout=_.PC(_.Ll,function(){U9R(E,e)},1200))}else Jl(E.client,e,c,B);
return!0}return!1})()};
_.eu=function(E,B,I){I=I===void 0?0:I;var T=E.recurringGrafts.get(I)||new Map;if(_.d("smarter_ve_dedupping"))for(var e=Array.from(T.keys()),c=0;c<e.length;c++){var Y=void 0,v=void 0;var y=B;var Z=e[c];Z.isClientVe()&&y.isClientVe()?(Y=y.getAsJson(),v=Z.getAsJson(),y=Y.veType!==v.veType||Y.elementIndex!==v.elementIndex||Y.dataElement!==v.dataElement||y.getLoggingDirectives()!==Z.getLoggingDirectives()?!1:!0):y=Z.veData.trackingParams!==void 0&&y.veData.trackingParams!==void 0?((v=y.veData)==null?void 0:
v.trackingParams)===((Y=Z.veData)==null?void 0:Y.trackingParams):!1;if(y)return}else if(T.has(B))return;T.set(B,void 0);E.recurringGrafts.set(I,T);_.nC(I)==="UNDEFINED_CSN"||E.pendingScreenCreation.has(I)||_.Ts(E,B,void 0,I)};
_.lf=function(E,B,I,T){T=_.nC(T===void 0?0:T);if(!T)return!1;OL4(E.client,T,B,I);return!0};
_.cx=function(E,B,I,T){if(!B)return!1;T=_.nC(T===void 0?0:T);if(!T)return!1;OL4(E.client,T,_.Yg(B),I);return!0};
_.np=function(E,B){var I=B.getScreenLayer&&B.getScreenLayer();if(B.visualElement)return _.lf(E,B.visualElement,void 0,I);B=$zi(_.TA(),B);return _.cx(E,B,void 0,I)};
$8.prototype.clickCommand=function(E,B,I){return _.cx(this,E.clickTrackingParams,B,I===void 0?0:I)};
$8.prototype.stateChanged=function(E,B,I){this.visualElementStateChanged(_.Yg(E),B,I===void 0?0:I)};
$8.prototype.visualElementStateChanged=function(E,B,I){I=I===void 0?0:I;I===0&&this.pendingScreenCreation.has(I)?this.stateChangedQueue.push([E,B]):this.logStateChanged(E,B,I)};
$8.prototype.logStateChanged=function(E,B,I){I=I===void 0?0:I;var T=_.nC(I);E=E||_.Oi(I);return T&&E?(nQc(this.client,T,E,B),!0):!1};
var o2h=function(E,B,I,T){T=T===void 0?{}:T;E.pendingScreenCreation.add(T.layer||0);E.pendingScreenFn=function(){A6h(E,B,I,T);var Y=_.Oi(T.layer);if(Y){for(var v=_.p(E.graftQueue),y=v.next();!y.done;y=v.next())y=y.value,_.Ts(E,y[0],y[1]||Y,T.layer);Y=_.p(E.stateChangedQueue);for(v=Y.next();!v.done;v=Y.next())v=v.value,E.logStateChanged(v[0],v[1])}};
I||_.nC(T.layer)||E.pendingScreenFn();if(T.dataPromises)for(var e=_.p(T.dataPromises),c=e.next();!c.done;c=e.next())_.jeD(E,c.value,T.layer);else _.xV(Error("vf"))},A6h=function(E,B,I,T){T=T===void 0?{}:T;
var e=void 0;T.layer||(T.layer=0);e=T.parentLayer!==void 0?T.parentLayer:T.layer;var c=_.nC(e);e=_.Oi(e);var Y=I||e,v;Y&&(T.parentCsn!==void 0?v={clientScreenNonce:T.parentCsn,visualElement:Y}:c&&c!=="UNDEFINED_CSN"&&(v={clientScreenNonce:c,visualElement:Y}));var y,Z=_.HA("EVENT_ID");c==="UNDEFINED_CSN"&&Z&&(y={servletData:{serializedServletEventId:Z}});_.d("combine_ve_grafts")&&c&&U9R(E,c);_.d("no_client_ve_attach_unless_shown")&&Y&&c&&dBF(Y,c);try{var P=_.z34(E.client,B,v,T.csnToClone,T.cttAuthInfo,
y,T.implicitGestureType,void 0,T.loggingExpectations)}catch(u){_.ni(u,{rootVeType:B,rootVe:e,parentVisualElement:I,currentCsn:c,parentEl:v,csnToClone:T.csnToClone});_.xV(u);return}_.d0f(P,B,T.layer,T.cttAuthInfo);c&&c!=="UNDEFINED_CSN"&&e&&!m0t(c)&&xBF(E.client,c,e,!0);E.backHistoryStack[E.backHistoryStack.length-1]&&!E.backHistoryStack[E.backHistoryStack.length-1].csn&&(E.backHistoryStack[E.backHistoryStack.length-1].csn=P||"");_.LO({clientScreenNonce:P});_.r6Z();var z=_.Oi(T.layer);c&&c!=="UNDEFINED_CSN"&&
z&&(_.d("web_mark_root_visible")||_.d("music_web_mark_root_visible"))&&_.rY(P,z);E.pendingScreenCreation.delete(T.layer||0);E.pendingScreenFn=void 0;var m;(m=E.recurringGrafts.get(T.layer))==null||m.forEach(function(u,x){u?_.Ts(E,x,u,T.layer):z&&_.Ts(E,x,z,T.layer)});
kJt(E)},kJt=function(E){for(var B=0;B<E.afterNewScreenOneOffJobs.length;B++){var I=E.afterNewScreenOneOffJobs[B];
try{I()}catch(T){_.xV(T)}}for(B=E.afterNewScreenOneOffJobs.length=0;B<E.afterNewScreenRecurringJobs.length;B++){I=E.afterNewScreenRecurringJobs[B];try{I()}catch(T){_.xV(T)}}},U9R=function(E,B){if(B===void 0)for(var I=PGc(),T=0;T<I.length;T++)I[T]!==void 0&&U9R(E,I[T]);
else E.cachedVisualElements.forEach(function(e,c){(c=E.cachedRootVisualElements.get(c))&&_.mBf(E.client,B,c,e)}),E.cachedVisualElements.clear(),E.cachedRootVisualElements.clear(),E.attachTimeout=void 0};var p_=function(E){E=E===void 0?{layer:0}:E;this.hasRun=!1;this.createScreenConfig=E;E={};this.wDE=(E.response=!1,E.playerResponse=!1,E)};
_.L(p_,Vk);p_.prototype.validate=function(E){return!(!E.data||!E.data.response&&!E.data.playerResponse)};
p_.prototype.handle=function(E){var B=_.lu(),I=this.createScreenConfig.layer;E.data.response&&E.data.response.trackingParams&&!this.wDE.response&&(B.graftServerVe(E.data.response.trackingParams,void 0,I),this.wDE.response=!0);E.data.playerResponse&&E.data.playerResponse.trackingParams&&!this.wDE.playerResponse&&(B.graftServerVe(E.data.playerResponse.trackingParams,void 0,I),this.wDE.playerResponse=!0)};var Y8=function(){this.nZ=_.gA();this.lQ=[];this.hqU=0};
Y8.prototype.processChunk=function(E){if(E){for(var B=_.p(this.lQ),I=B.next();!I.done;I=B.next())I=I.value,I.validate(E)&&(I.handle(E),I.hasRun=!0);_.nO("np"+this.hqU);this.hqU++}};var Xkf,fO,Vu,JLc=0,Wnc=function(E,B,I,T,e,c){var Y=Vu;this.name=E;this.attributes=B;this.startTime=I;this.id=T;this.sessionId=e;this.traceId=c;this.parent=Y};
Wnc.prototype.attr=function(E,B){this.attributes[E]=B};
Wnc.prototype.close=function(E){if(this!==Vu)throw Error("wf");var B=Vu;E&&(B.status=E);B.endTime=performance.now();E=_.p(fO.spanProcessors);for(var I=E.next();!I.done;I=E.next()){var T=void 0,e=void 0;(e=(T=I.value).onSpanEnd)==null||e.call(T,B)}Vu=B==null?void 0:B.parent};
Wnc.prototype[Symbol.dispose]=function(){this.close()};var g5F,V_l;_.BV=function(E,B,I,T,e,c,Y){Y=Y===void 0?[]:Y;this.buildCommandPayload=E;this.navigate=B;this.handleServiceRequest=I;this.sendAction=T;this.JSC$10392_screenManager=e;this.commandResolverMap=c;this.autoLogResolverAllowlist=Y;this.pendingCommands=new Set;if(bLQ("command")){var v=this.resolveCommand;this.resolveCommand=function(y,Z){var P=rLc("command",{command:y});return ALB(P,v.bind(this,y,Z),null)}}};
g5F=function(E,B,I){var T=mPi,e=Qlc,c=_.lu(),Y=t_u;I=I===void 0?[]:I;_.BV.instance=new _.BV(E,B,T,e,c,Y,I)};
V_l=function(E,B,I){if(!E.commandResolverMap)return!1;var T=tJQ(B,E.commandResolverMap);return T?((E.autoLogResolverAllowlist.some(function(e){return!!_.h(B,e)})||(I==null?0:I.forceClickLogging))&&fvz(E,B,I),T instanceof Promise?T.then(function(e){e.resolve(B,I)}):T.resolve(B,I),!0):!1};
_.BV.prototype.resolveCommand=function(E,B){var I=this,T=quh(E);if(V_l(this,E,B))return!0;if(T)return FvD(this,E,B);if(!this.buildCommandPayload)return jbi(E,"Unhandled command by buildCommandPayload"),!1;var e=this.buildCommandPayload(E,B);if(B==null?0:B.commandController)e.commandController=B.commandController;if(e.type===0){if(!this.navigate)return UBf(E,"navigate"),!1;if(!D9Z(e.command))return jbi(E,"Page requests need to specify a url"),!1;_.d("logging_avoid_blocking_during_navigation")&&_.Dic().transition("application_navigating");
E=this.navigate(e)||[];ZK6(E).then(function(){I.pendingCommands.delete(e.command)});
return!0}if(e.type===1){if(!this.handleServiceRequest)return UBf(E,"handleServiceRequest"),!1;(B==null?0:B.forceClickLogging)&&fvz(this,e.command,B);E=this.handleServiceRequest(e);ZK6(E).then(function(){I.pendingCommands.delete(e.command)});
return!0}if(e.type===2){if(!this.sendAction)return UBf(E,"sendAction"),!1;fvz(this,e.command,B);this.sendAction(e);return!0}return!1};
var fvz=function(E,B,I){if((I==null||!I.disableClickTracking)&&E.JSC$10392_screenManager)if(B.clickTrackingParams&&_.d("log_click_with_layer_from_element_in_command_handler")){var T;I=I==null?void 0:(T=I.form)==null?void 0:T.element;E.JSC$10392_screenManager.clickCommand(B,null,I&&I.getScreenLayer&&I.getScreenLayer())}else B.clickTrackingParams?E.JSC$10392_screenManager.clickCommand(B):!_.d("disable_clicked_visual_element_in_command_handler")&&(I==null?0:I.clickedVisualElement)&&_.lf(E.JSC$10392_screenManager,
I.clickedVisualElement)},quh=function(E){var B=!!_.h(E,_.pO),I;
E=((I=_.h(E,_.a2))==null?void 0:I.signal)==="CLIENT_SIGNAL";return B||E},FvD=function(E,B,I){var T=_.h(B,_.pO);
if(T)var e=(T==null?void 0:T.commands)||[];else{var c;if(((c=_.h(B,_.a2))==null?void 0:c.signal)==="CLIENT_SIGNAL"){var Y;e=((Y=_.h(B,_.a2))==null?void 0:Y.actions)||[]}}if(e){B=_.p(e);for(e=B.next();!e.done;e=B.next()){e=e.value;try{E.resolveCommand(e,I)}catch(v){v instanceof Error&&_.xV(v)}}return!0}jbi(B,"Could not handle the meta command");return!1},D9Z=function(E){var B;
return!((B=_.h(E==null?void 0:E.commandMetadata,_.D$))==null||!B.url)};var a5=function(){Vk.apply(this,arguments)};
_.L(a5,Vk);a5.prototype.validate=function(E){var B,I;return!this.hasRun&&!!((B=E.data.response)==null?0:(I=B.onResponseReceivedEndpoints)==null?0:I.length)};
a5.prototype.handle=function(E){var B=_.BV.instance;E=_.p(E.data.response.onResponseReceivedEndpoints);for(var I=E.next();!I.done;I=E.next())B.resolveCommand(I.value)};var KvD,RHz,EJZ;
KvD=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=_.i1();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.vx=function(){RHz||(RHz=new KvD);return RHz};
EJZ=function(){var E=_.vx();E.miniplayerButtonActivation=!1;E.userActivation=!1;E.playlistWatchPageActivation=!1;E.productDetailsPageActivation=!1;E.miniAppPageActivation=!1;E.playablesDestPageActivation=!1;E.lockupActivation=!1;E.showMiniplayerCommandActivation=!1;E.playlistSuggestionsShelfActivation=!1;E.mediaSessionPipActivation=!1;E.watchPipActivation=!1;E.watchWhileActivation=!1;E.shortsPipActivation=!1};
_.BQZ=function(){var E=_.vx(),B=E.mediaSessionPipActivation,I=E.watchPipActivation,T=E.watchWhileActivation,e=E.playlistWatchPageActivation,c=E.lockupActivation,Y=E.showMiniplayerCommandActivation,v=E.navigatingAwayFromWatchDeletedVideo,y=E.shortsPipActivation,Z=E.playlistSuggestionsShelfActivation,P=E.productDetailsPageActivation,z=E.miniAppPageActivation,m=E.playablesDestPageActivation;return!E.miniplayerButtonActivation&&!e&&!Z&&!P&&!z&&!m&&!c&&!Y&&!B&&!I&&!T&&!y||v};var bAB;_.yB=FD("FEwhat_to_watch","/",3854);_.oXF=FD("FEdownloads","/feed/downloads",42352);bAB=FD("FEmusic_offline","browse/FEmusic_offline",42352);var kN=function(E,B){B=B===void 0?[]:B;var I=I===void 0?[]:I;B=lcJ.apply(null,[csJ.apply(null,_.ad(B))].concat(_.ad(I)));this.store=acB(E,void 0,B)};
kN.prototype.getState=function(){return this.store.getState()};
kN.prototype.dispatch=function(E){return this.store.dispatch(E)};
kN.prototype.subscribe=function(E){return this.store.subscribe(E)};
kN.prototype.replaceReducer=function(E){return this.store.replaceReducer(E)};
kN.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.C_=function(E,B,I){var T=B(E.getState());return E.subscribe(function(){var e=B(E.getState());if(e!==T){var c=T;T=e;I(e,c)}})};var WAf;_.aL=function(E,B,I){return _.BP({type:"REPLACE_ENTITY",payload:{entityPayload:I,entityType:E,key:B}})};
WAf=function(E){return _.BP({type:"REPLACE_ENTITIES",payload:E})};
_.x4=function(E,B,I,T){return _.BP({type:"UPDATE_ENTITY",payload:{entityPayload:I,entityType:E,key:B,mergeOption:T}})};var eTF=function(E){var B=this;E=E===void 0?[]:E;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;E.forEach(function(I){B.append(I)})};
_.l=eTF.prototype;_.l.getLength=function(){return this.totalLength};
_.l.append=function(E){var B=this.arrays.length===0?!1:(B=this.arrays[this.arrays.length-1])&&B.buffer===E.buffer&&B.byteOffset+B.length===E.byteOffset;B?(B=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(B.buffer,B.byteOffset,B.length+E.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(E);this.totalLength+=E.length};
_.l.split=function(E){for(var B=new eTF,I=new eTF,T=_.p(this.arrays),e=T.next();!e.done;e=T.next())e=e.value,E>=e.length?(B.append(e),E-=e.length):E?(B.append(new Uint8Array(e.buffer,e.byteOffset,E)),I.append(new Uint8Array(e.buffer,e.byteOffset+E,e.length-E)),E=0):I.append(e);return{headView:B,tailView:I}};
_.l.extract=function(E,B){return this.split(E).tailView.split(B).headView};
_.l.isFocused=function(E){return E>=this.arrayPos&&E<this.arrayPos+this.arrays[this.arrayIdx].length};
_.l.focus=function(E){if(!this.isFocused(E))for(E<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=E&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
_.l.getDataView=function(E,B){E=E===void 0?0:E;B=B===void 0?-1:B;if(!this.totalLength||!B)return new DataView(new ArrayBuffer(0));B<0&&(B=this.totalLength-E);this.focus(E);if(!(E-this.arrayPos+B<=this.arrays[this.arrayIdx].length)){var I=this.arrayIdx,T=this.arrayPos;this.focus(E+B-1);T=new Uint8Array(this.arrayPos+this.arrays[this.arrayIdx].length-T);for(var e=0,c=I;c<=this.arrayIdx;c++)T.set(this.arrays[c],e),e+=this.arrays[c].length;this.arrays.splice(I,this.arrayIdx-I+1,T);this.arrayPos=this.arrayIdx=
0;this.focus(E)}I=this.arrays[this.arrayIdx];return new DataView(I.buffer,I.byteOffset+E-this.arrayPos,B)};
_.l.getUint8=function(E){this.focus(E);return this.arrays[this.arrayIdx][E-this.arrayPos]};(function(){var E=function(T){return new Uint8Array(T)},B=function(T){for(var e=new Uint8Array(T.length),c=0;c<T.length;c++)e[c]=T[c];
return e},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?E:B})();
var R3f=Array(1024),Kn4=window.TextDecoder?new TextDecoder:void 0,Bo4=window.TextEncoder?new TextEncoder:void 0;var ToD=function(E){this.arrayView=E;this.pos=0;this.pendingTagAndType=-1},$N=function(E){var B=E.arrayView.getUint8(E.pos);
++E.pos;if(B<128)return B;for(var I=B&127,T=1;B>=128;)B=E.arrayView.getUint8(E.pos),++E.pos,T*=128,I+=(B&127)*T;return I},lOt=function(E,B){var I=E.pendingTagAndType;
for(E.pendingTagAndType=-1;E.pos+1<=E.arrayView.totalLength;){I<0&&(I=$N(E));var T=I>>3,e=I&7;if(T===B)return!0;if(T>B){E.pendingTagAndType=I;break}I=-1;switch(e){case 0:$N(E);break;case 1:E.pos+=8;break;case 2:T=$N(E);E.pos+=T;break;case 5:E.pos+=4}}return!1};var iot=function(){this.pos=0;this.submessagePosStack=[];this.buf=IOc(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},ej=function(E,B){B=E.pos+B;
if(!(E.buf.length>=B)){for(var I=E.buf.length*2;I<B;)I*=2;E.buf=IOc(I,E.buf.subarray(0,E.pos));E.view=new DataView(E.buf.buffer,E.buf.byteOffset,E.buf.byteLength)}},TP=function(E,B){if(B>268435455){ej(E,4);
for(var I=B&1073741823,T=0;T<4;T++)E.view.setUint8(E.pos,I&127|128),I>>=7,E.pos+=1;B=Math.floor(B/268435456)}for(ej(E,4);B>127;)E.view.setUint8(E.pos,B&127|128),B>>=7,E.pos+=1;E.view.setUint8(E.pos,B);E.pos+=1};for(var ped={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,
fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,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},cTi={},$rZ=_.p(Object.entries(ped)),ITV=$rZ.next();!ITV.done;ITV=$rZ.next()){var TQZ=_.p(ITV.value),exD=TQZ.next().value,lTh=TQZ.next().value,cy6=exD,itD=lTh;itD&&(cTi[itD]=cy6)};var aOi=function(E,B){E=E===void 0?{}:E;switch(B.type){case "ENTITY_LOADED":return B.payload.reduce(function(T,e){var c,Y=(c=e.options)==null?void 0:c.persistenceOption;if(Y&&Y!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&Y!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return T;if(!e.entityKey)return _.xV(Error("yf")),T;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return e=new _.P7("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey}),_.xV(e),T;var v=(0,_.a_.getAnyKey)(e.payload);
return yTi(T,v,e.entityKey,e.payload[v])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var y=_.IY(e).entityType;v=yTi(T,y,e);break a}catch(z){if(z instanceof Error){e=new _.P7("Failed to deserialize entity key",{entityKey:e,originalMessage:z.message});_.xV(e);v=T;break a}throw z;}v=void 0}return v}if(e.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!e.payload)return e=new _.P7("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey}),_.xV(e),T;v=(0,_.a_.getAnyKey)(e.payload);
var Z,P;return CMc(T,v,e.entityKey,e.payload[v],(Z=e.fieldMask)==null?void 0:(P=Z.mergeOptions)==null?void 0:P.repeatedFieldsMergeOption)}return T},E);
case "REPLACE_ENTITY":var I=B.payload;return yTi(E,I.entityType,I.key,I.entityPayload);case "REPLACE_ENTITIES":return Object.keys(B.payload).reduce(function(T,e){var c=B.payload[e];return Object.keys(c).reduce(function(Y,v){return yTi(Y,e,v,c[v])},T)},E);
case "UPDATE_ENTITY":return I=B.payload,CMc(E,I.entityType,I.key,I.entityPayload,I.mergeOption);default:return E}};var wed;var pZZ=!1,wB,Z3,Px,zs,mW,YvV=function(E){_.Cx.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!pZZ){var B,I=new Uint8Array(256),T=new Uint8Array(256);var e=1;for(B=0;B<256;B++)I[e]=B,T[B]=e,e^=e<<1^(e>>7&&283);wB=new Uint8Array(256);Z3=im(256);Px=im(256);zs=im(256);mW=im(256);for(var c=0;c<256;c++){e=c?T[255^I[c]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;wB[c]=e;B=e<<1^(e>>7&&283);var Y=B^e;Z3[c]=B<<24|e<<16|e<<8|Y;Px[c]=Y<<24|Z3[c]>>>8;zs[c]=e<<24|Px[c]>>>
8;mW[c]=e<<24|zs[c]>>>8}pZZ=!0}e=im(44);for(I=0;I<4;I++)e[I]=E[4*I]<<24|E[4*I+1]<<16|E[4*I+2]<<8|E[4*I+3];for(T=1;I<44;I++)E=e[I-1],I%4||(E=(wB[E>>16&255]^T)<<24|wB[E>>8&255]<<16|wB[E&255]<<8|wB[E>>>24],T=T<<1^(T>>7&&283)),e[I]=e[I-4]^E;this.key=e};
_.L(YvV,_.Cx);
YvV.prototype.encrypt=function(E){var B=E.length;E=new Uint8Array(E.buffer.slice(E.byteOffset,E.byteOffset+B));for(var I=this.cipherBlock,T=0;T<B&&this.blockOffset<16;)E[T++]^=I[this.blockOffset++];for(var e=B-(B-T)%16;T<e;)aTl(this),E[T++]^=I[0],E[T++]^=I[1],E[T++]^=I[2],E[T++]^=I[3],E[T++]^=I[4],E[T++]^=I[5],E[T++]^=I[6],E[T++]^=I[7],E[T++]^=I[8],E[T++]^=I[9],E[T++]^=I[10],E[T++]^=I[11],E[T++]^=I[12],E[T++]^=I[13],E[T++]^=I[14],E[T++]^=I[15];if(T<B)for(aTl(this),this.blockOffset=0;T<B;)E[T++]^=
I[this.blockOffset++];return E};
var vJ$=function(E,B){for(var I=0;I<4;I++)E.counter[I]=B[I*4]<<24|B[I*4+1]<<16|B[I*4+2]<<8|B[I*4+3];E.blockOffset=16},aTl=function(E){for(var B=E.key,I=E.counter[0]^B[0],T=E.counter[1]^B[1],e=E.counter[2]^B[2],c=E.counter[3]^B[3],Y=3;Y>=0&&!(E.counter[Y]=-~E.counter[Y]);Y--);
for(var v,y,Z=4;Z<40;)Y=Z3[I>>>24]^Px[T>>16&255]^zs[e>>8&255]^mW[c&255]^B[Z++],v=Z3[T>>>24]^Px[e>>16&255]^zs[c>>8&255]^mW[I&255]^B[Z++],y=Z3[e>>>24]^Px[c>>16&255]^zs[I>>8&255]^mW[T&255]^B[Z++],c=Z3[c>>>24]^Px[I>>16&255]^zs[T>>8&255]^mW[e&255]^B[Z++],I=Y,T=v,e=y;E=E.cipherBlock;Y=B[40];E[0]=wB[I>>>24]^Y>>>24;E[1]=wB[T>>16&255]^Y>>16&255;E[2]=wB[e>>8&255]^Y>>8&255;E[3]=wB[c&255]^Y&255;Y=B[41];E[4]=wB[T>>>24]^Y>>>24;E[5]=wB[e>>16&255]^Y>>16&255;E[6]=wB[c>>8&255]^Y>>8&255;E[7]=wB[I&255]^Y&255;Y=B[42];
E[8]=wB[e>>>24]^Y>>>24;E[9]=wB[c>>16&255]^Y>>16&255;E[10]=wB[I>>8&255]^Y>>8&255;E[11]=wB[T&255]^Y&255;Y=B[43];E[12]=wB[c>>>24]^Y>>>24;E[13]=wB[I>>16&255]^Y>>16&255;E[14]=wB[T>>8&255]^Y>>8&255;E[15]=wB[e&255]^Y&255};var yyD=!1;(function(){var E=function(T){return new Uint8Array(T)},B=function(T){for(var e=new Uint8Array(T.length),c=0;c<T.length;c++)e[c]=T[c];
return e},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?E:B})();
var QB;var C_X=function(E){this.JSC$10459_aesKey=E};
C_X.prototype.encrypt=function(E,B){var I=this,T,e;return _.a(function(c){if(c.nextAddress==1){a:{if(!yyD&&!jg){if(QB){var Y=QB;break a}QB=(Y=window.crypto)==null?void 0:Y.subtle;var v,y,Z;if(((v=QB)==null?0:v.importKey)&&((y=QB)==null?0:y.sign)&&((Z=QB)==null?0:Z.encrypt)){Y=QB;break a}QB=void 0}Y=void 0}T=Y;if(!T)return c.return(wZ$(I,E,B));_.q7(c,3);return _.C(c,Zt6(I,E,B,T),5)}if(c.nextAddress!=3)return c.return(c.yieldResult);e=_.RG(c);_.OG(e);yyD=!0;return c.return(wZ$(I,E,B))})};
var Zt6=function(E,B,I,T){var e,c;return _.a(function(Y){switch(Y.nextAddress){case 1:if(E.cryptoKey){Y.jumpTo(2);break}return _.C(Y,T.importKey("raw",E.JSC$10459_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:E.cryptoKey=Y.yieldResult;case 2:return e={name:"AES-CTR",counter:I,length:128},_.C(Y,T.encrypt(e,E.cryptoKey,B),4);case 4:return c=Y.yieldResult,Y.return(new Uint8Array(c))}})},wZ$=function(E,B,I){E.encryptorPolyfill||(E.encryptorPolyfill=new YvV(E.JSC$10459_aesKey));
vJ$(E.encryptorPolyfill,I);return E.encryptorPolyfill.encrypt(B)},P_z=function(E){this.JSC$10463_aesKey=E};
P_z.prototype.encrypt=function(E,B){this.encryptor||(this.encryptor=new YvV(this.JSC$10463_aesKey));vJ$(this.encryptor,B);return this.encryptor.encrypt(E)};var zxR={},zT6=fF("yt-idb-pref-storage",{objectStores:(zxR.prefs={addedAtVersion:1},zxR),shared:!1,upgrade:function(E,B){B(1)&&g7(N3(E,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.dB=function(E){this.token=E};
_.dB.getInstance=function(){return _.a(function(E){return E.return(new Promise(function(B){_.tg().then(function(I){I?(_.dB.instance||(_.dB.instance=new _.dB(I)),B(_.dB.instance)):B(void 0)})}))})};
_.dB.prototype.get=function(E){var B=this,I,T,e;return _.a(function(c){if(c.nextAddress==1)return _.C(c,m$Q(B.token),2);if(c.nextAddress!=3)return I=c.yieldResult,_.C(c,I.get("prefs",E),3);T=c.yieldResult;if(!T)return c.return();e=(0,_.VZ)();return T.expirationTimestampMs<=e?c.return():c.return(T.value)})};
_.dB.prototype.set=function(E,B,I){I=I===void 0?31536E3:I;var T=this,e,c,Y;return _.a(function(v){if(v.nextAddress==1)return e=(0,_.VZ)(),c={key:E,value:B,expirationTimestampMs:e+I*1E3},_.C(v,m$Q(T.token),2);Y=v.yieldResult;return _.C(v,Y.put("prefs",c),0)})};
_.dB.prototype.remove=function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,m$Q(B.token),2);I=T.yieldResult;return _.C(T,I.delete("prefs",E),0)})};var ho={},mrh=(ho.INVALID_ENCODER_VERSION="Invalid encoder version",ho.KEY_CREATION_FAILED="Failed to create encoder key",ho.UNKNOWN_DECODE_ERROR="Failed to decode PES data",ho.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",ho.WRONG_DATA_TYPE="Encoder cannot process the data type",ho),p9=function(E,B){B=B===void 0?{}:B;_.P7.call(this,mrh[E],Object.assign({},{name:"PESEncoderError",type:E},B));this.type=E;this.level="WARNING";Object.setPrototypeOf(this,p9.prototype)};
_.L(p9,_.P7);var QZu=function(){},drZ=function(E,B,I){try{return E.encodeImpl(B,I)}catch(T){snB(T,d$Q)}},hxZ=function(E,B,I){var T;
return _.a(function(e){if(e.nextAddress==1)return _.q7(e,2),_.C(e,E.decodeAsyncImpl(B,I),4);if(e.nextAddress!=2)return e.return(e.yieldResult);T=_.RG(e);snB(T,hTQ);_.ER(e)})};
QZu.prototype.decodeAsyncImpl=function(E,B){return Promise.resolve(this.decodeImpl(E,B))};var sA=function(E,B){this.aesEncryptor=E;this.aesEncryptorAsync=B};
_.L(sA,QZu);sA.prototype.encodeImpl=function(E,B){B=u04(B);E=(new TextEncoder).encode(JSON.stringify(E));return this.aesEncryptor.encrypt(E,B)};
sA.prototype.decodeImpl=function(E,B){if(!(E instanceof Uint8Array))throw QnF(1);var I=new TextDecoder;B=u04(B);E=this.aesEncryptor.encrypt(E,B);return JSON.parse(I.decode(E))};
sA.prototype.decodeAsyncImpl=function(E,B){var I=this,T,e,c;return _.a(function(Y){if(Y.nextAddress==1){if(!(E instanceof Uint8Array))throw QnF(1);T=new TextDecoder;e=u04(B);return _.C(Y,I.aesEncryptorAsync.encrypt(E,e),2)}c=Y.yieldResult;return Y.return(JSON.parse(T.decode(c)))})};var LAG={accountLinkStatusEntity:lrl,booleanEntity:WsR,buttonEntity:SAX,captionTrack:gbN,channelHandle:szR,commerceAcquisitionClientPayloadEntity:e8Z,commerceCartListEntity:lGZ,contextNoteFeedEntityPayload:Mwu,continuationTokenEntity:PpX,downloadQualityPickerEntity:lYu,downloadsPageRefreshTokenEntity:iLD,downloadsPageViewConfigurationEntity:xBu,downloadStatusEntity:cLt,dismissState:deD,sfvAudioItemCurrentlyPlayingEntity:vfV,emojiFountainDataEntity:H_N,emojiCustomizationSetEntity:Mu$,fakeChannel:bSR,
fakePlaylist:oTh,fakePlaylistEntryCollection:APl,fakeVideo:U06,fakeVideoDescription:kwZ,featuredProductsEntity:keD,flowStateEntity:$6u,iconBadgeEntity:chz,interstitialInteractionStateEntity:LUr,likeButtonAnimationEntity:Gel,liveChatPollStateEntity:geu,liveViewerLeaderboardChatEntryPointStateEntity:VoR,liveViewerLeaderboardPointsEntity:qol,liveReactionsDataEntity:NBu,logoEntity:hoU,macroMarkerEntity:OLV,mainDownloadsLibraryEntity:pku,mainDownloadsListEntity:YHt,mainPlaylistDownloadStateEntity:vQ$,
mainPlaylistEntity:z3V,mainPlaylistVideoEntity:mBU,mainVideoDownloadStateEntity:yLX,mainVideoEntity:sbr,markersEngagementPanelSyncEntity:nQZ,markersVisibilityOverrideEntity:MJt,musicAlbumReleaseDetail:$$l,musicAlbumReleaseDownloadMetadataEntity:DBt,musicAlbumRelease:BoV,musicAlbumReleaseUserDetail:IOZ,musicArtistDetail:eTu,musicArtist:Toz,musicArtistUserDetail:lOZ,musicDownloadsLibraryEntity:KnV,musicLibraryEdit:cTl,musicLibraryStatusEntity:ioZ,musicPlaylist:peN,musicPlaylistDownloadMetadataEntity:R3U,
musicShare:aOX,musicTrackDetail:yTl,musicTrackDownloadMetadataEntity:Ebl,musicTrack:vbz,musicTrackUserDetail:CMD,offlineOrchestrationActionWrapperEntity:SoR,offlineVideoPolicy:JTD,offlineVideoStreams:WAU,offlineabilityEntity:CpZ,orchestrationWebSamplingEntity:wkV,pageHeaderEntity:uAV,pdpStateEntity:iMD,pinnedProductEntity:tJR,playbackData:Xeh,playerStateEntity:HLZ,quantityIncrementerEntity:pcr,refresh:rTh,saveToPlaylistListEntity:XWh,settingEntity:TBD,stringEntity:XRR,suggestedFeedbackChipStateEntity:NdR,
transfer:bou,trendingOfferEntity:fYu,videoDownloadContextEntity:obD,videoOverviewAsyncDataEntity:gCz,videoPlaybackPositionEntity:XxV,votingEntity:xer,ytMainChannelEntity:unN,youchatPendingResponseEntity:gQZ,ytMainDownloadedVideoEntity:ZLr,ytMainVideoEntity:Lnt};var sZD,LfD,C9,gbd,SoQ,Ott,Mm$,nJz,GSZ;sZD=function(E,B){this.JSC$10482_wrapped=E;this.JSC$10482_encoderRegistry=B;this.changedKeys={}};
LfD=function(E,B){a:{E=uPr(E.JSC$10482_encoderRegistry,B.version);try{var I=E.decodeImpl(B.data,B.key);break a}catch(T){snB(T,hTQ)}I=void 0}return I};
_.xrV=function(E,B,I){return E.JSC$10482_wrapped.objectStore("EntityStore").get(B).then(function(T){if(T){if(I&&T.entityType!==I)throw Error("zf");return LfD(E,T)}})};
C9=function(E,B,I){return I?(I=I.map(function(T){return _.xrV(E,T,B)}),N_.all(I)):E.JSC$10482_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(B)).then(function(T){return T.map(function(e){return LfD(E,e)})})};
_.NoB=function(E,B,I){var T=YoB(B),e=uPr(E.JSC$10482_encoderRegistry,1),c=Object.assign({},B);return E.JSC$10482_wrapped.objectStore("EntityStore").get(T).then(function(Y){if(Y){if(Y.entityType!==I)throw Error("zf");c.entityMetadata||(Y=LfD(E,Y),c.entityMetadata=Y.entityMetadata)}}).then(function(){var Y={key:T,
entityType:I,data:drZ(e,c,T),version:1};return N_.all([E.JSC$10482_wrapped.objectStore("EntityStore").put(Y),GSZ(E,c,I)])}).then(function(){Ott(E,T,I);
return T})};
gbd=function(E,B){var I=_.IY(B).entityType;return N_.all([E.JSC$10482_wrapped.objectStore("EntityStore").delete(B),nJz(E,B)]).then(function(){Ott(E,B,I)})};
SoQ=function(E,B,I,T){var e=uPr(E.JSC$10482_encoderRegistry,1);return _.xrV(E,B,T).then(function(c){if(c){c=DBG(c,I);var Y={key:B,entityType:T,data:drZ(e,c,B),version:1};return N_.all([E.JSC$10482_wrapped.objectStore("EntityStore").put(Y),GSZ(E,c,T)])}}).then(function(){Ott(E,B,T);
return B})};
Ott=function(E,B,I){var T=E.changedKeys[I];T||(T=new Set,E.changedKeys[I]=T);T.add(B)};
Mm$=function(E,B,I){var T=YoB(B);I=x$G(I);if(!I)return N_.resolve([]);I=new I(B);E=E.JSC$10482_wrapped.objectStore("EntityAssociationStore");B=[];I=_.p(I.getAssociations());for(var e=I.next();!e.done;e=I.next())B.push(E.put({parentEntityKey:T,childEntityKey:e.value}));return N_.all(B).then(function(c){return c.map(function(Y){return Y[1]})})};
nJz=function(E,B){return E.JSC$10482_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(B))};
GSZ=function(E,B,I){var T=YoB(B);return nJz(E,T).then(function(){return Mm$(E,B,I)})};var HtN=function(){};
_.L(HtN,QZu);HtN.prototype.encodeImpl=function(E){return E};
HtN.prototype.decodeImpl=function(E){if(E instanceof Uint8Array)throw QnF(0);return E};var nbc=function(){this.cacheMap={};this.cacheMap[0]=new HtN;if(!_.d("aes_pes_encoder_killswitch")){var E=this.cacheMap;try{var B=_.w0();var I=u04(B);var T=new sA(new P_z(I),new C_X(I))}catch(e){throw E=e instanceof Error?new p9("KEY_CREATION_FAILED",{originalMessage:e.message}):new p9("KEY_CREATION_FAILED"),_.xV(E),E;}E[1]=T}},uPr=function(E,B){B=B===void 0?0:B;
E=E.cacheMap[B];if(!E)throw B=new p9("INVALID_ENCODER_VERSION",{encoderVersion:B}),_.xV(B),B;return E};var aY=function(E,B){_.Cx.call(this);this.token=E;this.JSC$10496_encoderRegistry=B;this.observers=[];E=new _.$i.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.w0());E.onmessage=this.handleMessage.bind(this);this.channel=E};
_.L(aY,_.Cx);_.yF=function(E,B,I){var T,e,c,Y;return _.a(function(v){if(v.nextAddress==1)return _.C(v,PM6(E.token),2);if(v.nextAddress!=3)return T=v.yieldResult,_.C(v,_.bK(T,["EntityStore","EntityAssociationStore"],B,function(y){e=new sZD(y,E.JSC$10496_encoderRegistry);return I(e)}),3);
c=v.yieldResult;e&&(Y=e.changedKeys,Object.keys(Y).length>0&&(E.channel.postMessage(Y),NQz(E,Y)));return v.return(c)})};
aY.prototype.observe=function(E){var B=this;this.observers.push(E);return function(){var I=B.observers.indexOf(E);I>=0&&B.observers.splice(I,1)}};
var ZyQ=function(E){var B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,_.yF(E,{mode:"readonly",enableRetries:!0},function(T){return T.JSC$10482_wrapped.objectStore("EntityStore").getAll()}),2);
B=I.yieldResult;return I.return(Promise.all(B.filter(function(T){return!!T}).map(function(T){var e,c;
return _.a(function(Y){if(Y.nextAddress==1){e=T.key;c=T.entityType;var v=hxZ(uPr(E.JSC$10496_encoderRegistry,T.version),T.data,T.key);return _.C(Y,v,2)}return Y.return({key:e,entityType:c,data:Y.yieldResult})})})))})};
aY.prototype.handleMessage=function(E){NQz(this,E.data)};
var NQz=function(E,B){E=_.p(E.observers);for(var I=E.next();!I.done;I=E.next())I=I.value,I(B)};
aY.prototype.disposeInternal=function(){this.channel.close()};
var GzF;var uf,Sv6,iU4,Efc;uf={};_.gJX=(uf.mainVideoEntity="mainVideoEntityActionMetadata",uf.mainPlaylistEntity="mainPlaylistEntityActionMetadata",uf.musicTrack="musicTrackEntityActionMetadata",uf.musicPlaylist="musicPlaylistEntityActionMetadata",uf);Sv6=new _.Dr("DOWNLOADS_ENTITY_TYPE_MAP");iU4=_.lm("","downloadsPageViewConfigurationEntity");Efc=_.lm("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.a_6=_.lm("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.lm("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.lm("SMART_DOWNLOADS_ENABLED","settingEntity");_.lm("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var boF=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var fOi=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var KG4={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var L_,FJc,Nph,zNf;L_=window;_.J2=L_.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.coG=L_.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.A2;FJc=L_.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||QL;Nph=L_.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||H$u;_.Jyt=L_.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.qq6;zNf=L_.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Khl;bm({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 YAi=DTi(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(E){return E}}}),xj6=DTi(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(E){return E}}}),BB4=new Map;var v8G=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],l3i;var WfR=function(E){return _.BP({type:"SET_EPHEMERAL_ACTION",payload:E})};var XZD={ephemeralAction:null};var ry$={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var SAi={sharedUi:function(E,B){E=E===void 0?ry$:E;switch(B.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},E,{animatedThumbnailEnabled:B.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},E,{inlinePreviewEnabled:B.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},E,{currentPageType:B.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},E,{currentPageSubType:B.payload});default:return E}},
a11y:Yh({ephemeralAction:function(E,B){E=E===void 0?XZD.ephemeralAction:E;switch(B.type){case "SET_EPHEMERAL_ACTION":return B.payload;default:return E}}})};var Gsd=Yh({isLeaderTab:function(E,B){E=E===void 0?!0:E;switch(B.type){case "SET_IS_LEADER_TAB":var I,T;return(T=B==null?void 0:(I=B.payload)==null?void 0:I.isLeaderTab)!=null?T:E;default:return E}}});var btR=function(E){return _.BP({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:E}})};var g8d=Yh({isDesktopSmallWidth:function(E,B){switch(B.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return B.payload.isDesktopSmallWidth;default:return E===void 0?!1:E}},
isShortsActive:function(E,B){switch(B.type){case "SET_IS_SHORTS_ACTIVE":return B.payload.isShortsActive;default:return E===void 0?!1:E}},
isWatchWhileMode:function(E,B){switch(B.type){case "SET_IS_WATCH_WHILE_MODE":return B.payload.isWatchWhileMode;default:return E===void 0?!1:E}},
playerState:function(E,B){switch(B.type){case "SET_PLAYER_STATE":return B.payload.playerState;default:return E===void 0?-1:E}},
isFullscreen:function(E,B){switch(B.type){case "SET_IS_FULLSCREEN":return B.payload.isFullscreen;default:return E===void 0?!1:E}},
isSmallScreenSqueezeback:function(E,B){switch(B.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return B.payload.isSmallScreenSqueezeback;default:return E===void 0?!1:E}},
isShortsPipActive:function(E,B){switch(B.type){case "SET_IS_SHORTS_PIP_ACTIVE":return B.payload.isShortsPipActive;default:return E===void 0?!1:E}},
isPlaybackStarted:function(E,B){switch(B.type){case "SET_IS_PLAYBACK_STARTED":return B.payload.isPlaybackStarted;default:return E===void 0?!1:E}}});var zEf={playlistId:"",inviteLinkURL:""};var oJN={};var xeJ=Yh({continuationCommand:function(E,B){E=E===void 0?oJN:E;switch(B.type){case "SET_CONTINUATION_COMMAND":return B.payload.continuationCommand;default:return E}}});var WWJ=function(){return function(E){return function(B){var I=E(B);_.I2(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[B],!0);return I}}};var Ay6,fpD;Ay6=new _.Tv;_.qN=new _.Dr("WATCH_PLAYER_PROMISE_TOKEN");_.jZh=new _.Tv;_.UrZ=new _.Dr("SHORTS_PLAYER_PROMISE_TOKEN");fpD=new _.Dr("");var Xx4=function(){return function(E){return function(B){B.type==="ENTITY_LOADED"&&_.Q().resolve(_.qN).then(function(I){var T;(T=I.dispatchReduxAction)==null||T.call(I,B)});
return E(B)}}};var Q5J={currentFormId:"",commandsMap:{}};var kSh={};var O_J=Yh({additionalContext:function(E,B){switch(B.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var I;return(I=B.payload)!=null?I:"";default:return E===void 0?"":E}},
impersonatedChannelUrl:function(E,B){switch(B.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var I;return(I=B.payload)!=null?I:"";default:return E===void 0?"":E}},
selectedVideoIds:function(E,B){E=E===void 0?kSh:E;switch(B.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var I={};return Object.assign({},E,(I[B.payload]=!0,I));case "VIDEO_UNSELECTED":return B=B.payload,E=Object.assign({},E),delete E[B],E;default:return E}}});var n8i=Yh({parentClickTrackingParams:function(E,B){switch(B.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return B.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return E===void 0?"":E}}});var tmZ=function(E){return _.BP({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:E})};var fTV={};var MuB=Yh({stepStates:function(E,B){E=E===void 0?fTV:E;switch(B.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var I=E,T=B.payload,e,c,Y;E={};B={selectionStates:Object.assign({},(Y=(e=I[T.stepId])==null?void 0:e.selectionStates)!=null?Y:{},(E[T.token]={isSelected:T.isSelected},E)),userQuery:(c=I[T.stepId])==null?void 0:c.userQuery};e={};return Object.assign({},I,(e[T.stepId]=B,e));case "TALK_TO_RECS_UPDATE_USER_QUERY":return e=E,c=B.payload,Y={selectionStates:Object.assign({},
(T=(I=e[c.stepId])==null?void 0:I.selectionStates)!=null?T:{}),userQuery:{userQuery:c.userQuery,token:c.userQueryToken}},I={},Object.assign({},e,(I[c.stepId]=Y,I));default:return E}}});var VmV,qv$;VmV=function(E){return _.BP({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:E})};
qv$=function(E){return _.BP({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:E})};
_.GX=function(E){return _.BP({type:"SET_CURRENT_PAGE_TYPE",payload:E})};
_.Ff$=function(E){return _.BP({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:E})};var hEQ={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"};_.Dr6=function(E){return _.BP({type:"SET_PLAYER_STATE",payload:{playerState:E}})};var KfZ=[],Rxh={width:0,height:0};var H_d=Yh({isTheaterMode:function(E,B){E=E===void 0?_.gU("START_IN_THEATER_MODE"):E;switch(B.type){case "SET_IS_THEATER_MODE":return B.payload.isTheaterMode;default:return E}},
isWatchActive:function(E,B){switch(B.type){case "SET_IS_WATCH_ACTIVE":return B.payload.isWatchActive;default:return E===void 0?!1:E}},
isWatchFullscreen:function(E,B){switch(B.type){case "SET_IS_WATCH_FULLSCREEN":return B.payload.isWatchFullscreen;default:return E===void 0?!1:E}},
isWatchNarrowWidth:function(E,B){switch(B.type){case "SET_IS_WATCH_NARROW_WIDTH":return B.payload.isWatchNarrowWidth;default:return E===void 0?!1:E}},
isWatchRetroMode:function(E,B){switch(B.type){case "SET_IS_WATCH_RETRO_MODE":return B.payload.isWatchRetroMode;default:return E===void 0?!1:E}},
isLiveChatCollapsed:function(E,B){switch(B.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return B.payload.isLiveChatCollapsed;default:return E===void 0?!1:E}},
openEngagementPanels:function(E,B){E=E===void 0?KfZ:E;var I=[].concat(_.ad(E));switch(B.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return I.push(B.payload.panelToAdd),I;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return I.splice(I.indexOf(B.payload.panelToRemove),1),I;default:return E}},
playerState:function(E,B){switch(B.type){case "SET_PLAYER_STATE":return B.payload.playerState;default:return E===void 0?-1:E}},
watchScrollTop:function(E,B){switch(B.type){case "SET_WATCH_SCROLL_TOP":return B.payload.watchScrollTop;default:return E===void 0?0:E}},
watchWindowSize:function(E,B){E=E===void 0?Rxh:E;switch(B.type){case "SET_WATCH_WINDOW_SIZE":return B.payload.watchWindowSize;default:return E}}});var EkV={feedbackTokens:[]};var NBF=Yh({surveyFeedbackData:function(E,B){E=E===void 0?EkV:E;switch(B.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return B.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},E,B.payload);default:return E}}});var uA4={};var b_B=void 0;_.d("web_enable_redux_store_on_demand")||(b_B=roJ());var Bir=function(E,B,I){var T=this;this.listId=E;this.JSC$10629_updateCallback=B;this.isOfflineVideoCallback=I;_.t2().subscribe(function(){T.handleUpdate()})};
Bir.prototype.getPlaylistData=function(){var E=_.t2().getState().entities;if(this.listId&&this.listId!=="PPSV"){var B=ofQ(E,this.listId,!0),I=_.lm(this.listId,"mainPlaylistEntity"),T,e;E=E==null?void 0:(T=E.mainPlaylistEntity)==null?void 0:(e=T[I])==null?void 0:e.title;return o8c(B,E,this.listId)}B=_.VoQ(wW6(E));E=_.VoQ(_.s3(E));return o8c(B.concat(E))};
Bir.prototype.getPlaylistId=function(){return this.listId};
Bir.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10629_updateCallback(this.listId,this.getPlaylistData(),{})};var x8=function(E,B,I,T){T=T===void 0?[]:T;this.JSC$10632_playlistNetworkManager=E;this.listId=B;this.JSC$10632_updateCallback=I;this.videoIds=T;this.pendingUpdates=[];this.currentIndex=0};
x8.prototype.JSC$10632_setCurrentIndex=function(E){this.currentIndex=E};
x8.prototype.setListId=function(E){this.listId=E};
var $cD=function(E,B){E.currentCreateRequest&&E.currentCreateRequest.cancel(B);E.currentUpdateRequest&&E.currentUpdateRequest.cancel(B);E.currentRefreshRequest&&E.currentRefreshRequest.cancel(B)};
x8.prototype.delete=function(){$cD(this,"PROXY DELETED")};
x8.prototype.addVideos=function(E,B,I){var T=this;I!==void 0?this.videoIds.splice.apply(this.videoIds,[I,0].concat(_.ad(E))):this.videoIds.push.apply(this.videoIds,_.ad(E));this.listId||this.currentCreateRequest?(E.forEach(function(e,c){e={addedVideoId:e,action:"ACTION_ADD_VIDEO"};I&&(e.addedVideoPosition=I+c);T.pendingUpdates.push(e)}),Gs(this)):Idl(this,B.onCreateListCommand)};
var Til=function(E,B,I,T,e){sBc(E.videoIds,B,I);B>E.currentIndex&&I<=E.currentIndex?E.JSC$10632_setCurrentIndex(E.currentIndex+1):B===E.currentIndex?E.JSC$10632_setCurrentIndex(I):B<E.currentIndex&&I>=E.currentIndex&&E.JSC$10632_setCurrentIndex(E.currentIndex-1);E.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:T,movedSetVideoIdPredecessor:e});Gs(E)},Idl=function(E,B){$cD(E,"OBSOLETE");
E.currentCreateRequest=ezZ(E.JSC$10632_playlistNetworkManager,B,E.videoIds);_.sk(E.currentCreateRequest,function(){E.currentCreateRequest=void 0}).then(function(I){E.setListId(I.playlistId);
E.pendingUpdates.length>0?Gs(E):ldU(E)})},Gs=function(E){if(E.pendingUpdates.length!==0&&(E.currentRefreshRequest&&E.currentRefreshRequest.cancel("OBSOLETE"),!E.currentUpdateRequest&&!E.currentCreateRequest)){var B=E.pendingUpdates.splice(0,E.pendingUpdates.length);
E.currentUpdateRequest=E.JSC$10632_playlistNetworkManager.updatePlaylist(E.listId,B);_.sk(E.currentUpdateRequest,function(){E.currentUpdateRequest=void 0}).then(function(){E.pendingUpdates.length>0?Gs(E):ldU(E)}).thenCatch(function(){E.pendingUpdates.unshift.apply(E.pendingUpdates,_.ad(B))})}},ldU=function(E){E.currentRefreshRequest=_.cF6(E.JSC$10632_playlistNetworkManager,E.listId,E.currentIndex,E.videoIds[E.currentIndex]);
_.sk(E.currentRefreshRequest,function(){E.currentRefreshRequest=void 0}).then(function(B){E.JSC$10632_updateCallback(B.playlistId,B.playlistPanelRenderer,B.autoplayRenderer)})};
x8.prototype.size=function(){return this.videoIds.length};var iGh=function(E,B,I,T){T=T===void 0?[]:T;x8.call(this,E,B,I,T);this.JSC$10632_playlistNetworkManager=E;this.listId=B;this.JSC$10632_updateCallback=I;this.videoIds=T};
_.L(iGh,x8);_.OA=function(E,B,I,T,e,c,Y){e=e===void 0?[]:e;Y=Y===void 0?I8:Y;x8.call(this,E,B,I,e);this.JSC$10632_playlistNetworkManager=E;this.listId=B;this.JSC$10632_updateCallback=I;this.onAuthChange=T;this.videoIds=e;this.storage=c;this.cookieReader=Y;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.ta(_.Ll,this.checkLoggedInStatusChange.bind(this),1E3)};
_.L(_.OA,x8);_.l=_.OA.prototype;_.l.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.ta(_.Ll,this.checkLoggedInStatusChange.bind(this),1E3)};
_.l.JSC$10632_setCurrentIndex=function(E){x8.prototype.JSC$10632_setCurrentIndex.call(this,E);this.store()};
_.l.delete=function(){_.Ll.cancelJob(this.queueSapisIdJob);x8.prototype.delete.call(this)};
_.l.setListId=function(E){x8.prototype.setListId.call(this,E);this.store()};
_.l.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var p4z=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],YCZ=["playerResponse","videoDetails"],adX=["response","currentVideoEndpoint","watchEndpoint","videoId"],vkZ=["response","currentVideoEndpoint","watchEndpoint","playlistId"],yF6=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],CgV=["response","contents","twoColumnWatchNextResults","playlist","playlist"],w4r=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
ZG6=["response","contents","twoColumnWatchNextResults"];var n_={},tui=(n_.WEB_UNPLUGGED="^unplugged/",n_.WEB_UNPLUGGED_ONBOARDING="^unplugged/",n_.WEB_UNPLUGGED_OPS="^unplugged/",n_.WEB_UNPLUGGED_PUBLIC="^unplugged/",n_.WEB_CREATOR="^creator/",n_.WEB_KIDS="^kids/",n_.WEB_EXPERIMENTS="^experiments/",n_.WEB_MUSIC="^music/",n_.WEB_REMIX="^music/",n_.WEB_MUSIC_EMBEDDED_PLAYER="^music/",n_.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",n_);var svi,ezZ;svi=function(E,B){this.networkManager=E;this.innertubeTransportService=B};
ezZ=function(E,B,I){if(!_.h(B,_.Sp))return _.rG(Error("Df"));_.h(B,_.Sp).videoIds=I;I={create_playlist_title:_.yu("QUEUE",void 0,"Queue")};return Ue6(_.NN(E.innertubeTransportService,B,I),Ao4)};
_.cF6=function(E,B,I,T){B={videoId:T,playlistId:B,playlistIndex:I};I=_.f9(m9D);return Ue6(_.Me(E.innertubeTransportService,B,I),ksG)};
svi.prototype.updatePlaylist=function(E,B){return Ue6(_.NN(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:E,actions:B}}),j5G)};var PgD=function(E){this.storage=E},zzz;
PgD.prototype.store=function(E,B){B=B===void 0?0:B;if(this.storage&&E.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",E),this.storage.set("TLPQindex",String(B)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(I){}};
PgD.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
PgD.prototype.getPlaylistId=function(){if(!this.storage)return null;var E=null;try{E=this.storage.get("TLPQplaylist")}catch(B){}return E};var FWG=["navigationEndpoint","watchEndpoint","videoId"],qA4=["nextButtonVideo","watchEndpoint","videoId"];_.Zk=new _.Dr("NETWORK_TOKEN");_.oS=new _.Dr("PAGE_TOKEN");_.Hx=new _.Dr("PLAYLIST_TOKEN");var mcr;mcr=new _.Dr("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.P8=new _.Dr("INNERTUBE_TRANSPORT_TOKEN");var QMN,Ne,hzh,sMl,LjN,xcU;QMN=new Set(["ci","cr","carml"]);Ne=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10679_parkedJobs=new Map;this.parkedProcessors=new Map};
_.gB=function(){Ne.instance||(Ne.instance=new Ne);return Ne.instance};
Ne.prototype.onAny=function(E){return _.dcV(this,E,2)};
Ne.prototype.parkOrScheduleJob=function(E,B,I,T,e){_.Su(this,I)?_.xm().addJob(E,B,T):(e&&(E=hzh(E),sMl(this,E,B,I,e)),e=this.JSC$10679_parkedJobs.get(I),e||(this.JSC$10679_parkedJobs.set(I,[]),e=this.JSC$10679_parkedJobs.get(I)),e.push({job:E,priority:B,delay:T}))};
Ne.prototype.addListener=function(E,B,I){I&&(B=hzh(B),sMl(this,B,0,E,I));I=this.parkedProcessors.get(E);I||(this.parkedProcessors.set(E,[]),I=this.parkedProcessors.get(E));I.push(B)};
Ne.prototype.processSignal=function(E){if(!_.Su(this,E)){this.inProgressSignals.add(E);var B=this.JSC$10679_parkedJobs.get(E);if(B){B=_.p(B);for(var I=B.next();!I.done;I=B.next())I=I.value,_.xm().addJob(I.job,I.priority,I.delay);this.JSC$10679_parkedJobs.delete(E)}if(B=this.parkedProcessors.get(E)){B=_.p(B);for(I=B.next();!I.done;I=B.next())I=I.value,I();this.parkedProcessors.delete(E)}this.signals.push(E);this.inProgressSignals.delete(E)}};
_.Su=function(E,B){return QMN.has(B)||_.gU("IS_HOMEPAGE_COLD")||_.gU("IS_RESULTS_PAGE_COLD")||_.gU("IS_WATCH_PAGE_COLD")?E.signals.indexOf(B)>=0:!0};
hzh=function(E){var B=!1;return function(){B||(B=!0,E())}};
sMl=function(E,B,I,T,e){if(utl.has(T))_.xm().addJob(B,I,e);else{var c=E.compoundSignals.get(T);c&&_.xm().addJob(function(){_.Su(E,T)||(c.isTimeoutConditionSatisfied?_.xm().addJob(B,I):c.timeoutConditionObservers.push(function(){_.xm().addJob(B,I)}))},I,e)}};
_.dcV=function(E,B,I){if(B.length>1){var T=[],e=Object.create(null);B=_.p(B);for(var c=B.next();!c.done;c=B.next())c=c.value,e[c]||(T.push(c),e[c]=!0);B=T}if(B.length===1)return B[0];c=B;T="";e=I===2?"|":"&";c.sort();c=_.p(c);for(var Y=c.next();!Y.done;Y=c.next())T+=Y.value+e;if(!E.compoundSignals.get(T)){e=0;c=[];Y=_.p(B);for(var v=Y.next();!v.done;v=Y.next())v=v.value,e++,_.Su(E,v)||c.push(v);(I=I===2)&&e>c.length||!I&&!c.length?E.signals.push(T):LjN(E,T,I,B,c)}return T};
LjN=function(E,B,I,T,e){var c=e.length,Y=function(){I||--c===0?E.processSignal(B):xcU(E,B)};
e=_.p(e);for(var v=e.next();!v.done;v=e.next())E.addListener(v.value,Y);E.compoundSignals.set(B,{signals:T,isOnAny:I,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});xcU(E,B)};
xcU=function(E,B){if(!_.Su(E,B)){var I=E.compoundSignals.get(B);if(I&&!I.isTimeoutConditionSatisfied){for(var T=!1,e=0,c=0,Y=_.p(I.signals),v=Y.next();!v.done;v=Y.next()){var y=v.value;v=!_.Su(E,y);utl.has(y)?T=!0:(y=E.compoundSignals.get(y))?v&&!y.isTimeoutConditionSatisfied&&(c++,I.isInitialized||y.timeoutConditionObservers.push(function(){xcU(E,B)})):v&&e++}I.isInitialized=!0;
I.isOnAny?T&&(I.isTimeoutConditionSatisfied=!0):e===0&&c===0&&(I.isTimeoutConditionSatisfied=!0);if(I.isTimeoutConditionSatisfied)for(I=_.p(I.timeoutConditionObservers),T=I.next();!T.done;T=I.next())T=T.value,T()}}};
Ne.prototype.processSignal=Ne.prototype.processSignal;Ne.prototype.parkOrScheduleJob=Ne.prototype.parkOrScheduleJob;Ne.prototype.onAny=Ne.prototype.onAny;_.ka("ytsignals.getInstance",_.gB);Ne.prototype.onAny=Ne.prototype.onAny;Ne.prototype.parkOrScheduleJob=Ne.prototype.parkOrScheduleJob;Ne.prototype.processSignal=Ne.prototype.processSignal;var utl=new Set(["eop","eocs","dl","pcl"]);_.W3=new _.Dr("MINIPLAYER_SERVICE");var Jo,GKV,OGD;Jo=function(E,B,I){var T=_.WC.getInstance();if(!zzz){var e=new pU6;var c=void 0,Y=_.HA("ID_TOKEN");Y&&e.isAvailable()&&(c=new d0(e,"yt-queue"+Y));zzz=new PgD(c)}e=zzz;c=_.gB();this.JSC$10686_actionRouter=T;this.pageManager=E;this.playlistManager=B;this.JSC$10686_playlistNetworkManager=I;this.storage=e;this.signals=c;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Wx=function(){if(!GKV){var E=_.Q(),B=E.resolve(_.Fx(_.oS)),I=E.resolve(_.Fx(_.Zk)),T=E.resolve(_.Fx(_.Hx));E=E.resolve(_.P8);GKV=new Jo(B,T,new svi(I,E))}return GKV};
OGD=function(E,B,I){if(I){var T;if(((T=E.responsePlaylistData)==null?void 0:T.playlistId)!==I)return}E.responsePlaylistData&&(I=$l6(B,E.responsePlaylistData),E.responsePlaylistData=(0,_.a_.unsafeClone)(E.responsePlaylistData),T56(E.responsePlaylistData,I));I=E.temporaryItems.findIndex(function(e){return e.videoId===B});
I>-1&&E.temporaryItems.splice(I,1);_.XA(E,_.rB(E,E.response?E.response.autoplayRenderer:void 0))};
_.nkr=function(E,B){if(E.responsePlaylistData){var I=IGc(B,E.responsePlaylistData);T56(E.responsePlaylistData,I);if(E.queueProxy){var T=E.queueProxy;I<0||(T.videoIds.splice(I,1),I<T.currentIndex&&T.JSC$10632_setCurrentIndex(T.currentIndex-1),T.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:B}),Gs(T))}}_.XA(E,_.rB(E,E.response?E.response.autoplayRenderer:void 0))};
Jo.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.XA(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Jo.prototype.setPlaylistData=function(E,B,I){this.temporaryItems=[];this.listId=E;this.responsePlaylistData=B;_.XA(this,_.rB(this,I))};
var MSZ=function(E){return(E==null?0:E.playlistId)?E.playlistId:"PPSV"},HGV=function(E){return E&&E.playlistId?E.playlistId==="PPSV"?!0:rci(_.t2().getState().entities,E.playlistId):!1};
Jo.prototype.isPlayingOfflineVideo=function(){return this.response?HGV(this.response):!1};
Jo.prototype.closeMiniplayer=function(E){var B=this.queueProxy&&this.queueProxy.size()<=1,I=_.Q().resolve(_.W3);if(!this.queueProxy||B)this.queueProxy&&this.clearQueue(),I.close(!0);else{I.pipController.getWindow()&&window.focus();B=this.responsePlaylistData;var T=this.temporaryItems.length+(B&&B.contents?B.contents.length:0);B=_.yu("QUEUE_CLEARED_UNPLURALIZED")||_.CO("QUEUE_CLEARED",T);B=_.qg(B);I=_.yu("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");T=_.yu("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.CO("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",T);var e=_.yu("MINIPLAYER_CLOSE",void 0,"Close"),c=_.yu("CANCEL",void 0,"Cancel");_.Hk(this.JSC$10686_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.jj(I),dialogMessages:[_.jj(T)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.jj(e),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
B]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.jj(c)}}}}}}],E)}};
_.rB=function(E,B){var I={},T=E.response;I.autoplayRenderer=B;if(!E.responsePlaylistData&&!E.temporaryItems.length)return!T||!T.hasRelatedVideoData&&_.d("kevlar_prefetch_data_augments_network_data")||(I.playerData={rvs:T.relatedVideoArgs,endScreenRenderer:T.endScreenRenderer}),I;I.playerData={};if(E.index===void 0)return _.xV(Error("Ff")),I;I.panel=E.responsePlaylistData?(0,_.a_.unsafeClone)(E.responsePlaylistData):{titleText:_.jj(_.yu("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
B=I.panel;if(B.contents)for(var e=_.p(E.temporaryItems),c=e.next();!c.done;c=e.next())B.contents.push({playlistPanelVideoRenderer:c.value});E.queueProxy&&T&&T.playingVideo&&T.playingVideoId&&!B5Q(T.playingVideoId,I.panel)&&(B=T.playingVideo,e=I.panel,c=E.index,e.contents&&e.contents.splice(c===void 0?0:c,0,{playlistPanelVideoRenderer:B}));T&&T.playingVideoId&&(B=E.index,e=I.panel,B=!e.contents||B>=e.contents.length?void 0:e.contents[B].playlistPanelVideoRenderer,B&&B.videoId===T.playingVideoId||(B=
$l6(T.playingVideoId,I.panel),E.index=B!==-1?B:E.index?E.index-1:0));B=ECc(E.index+1,I.panel);e=void 0;E.index>0&&(e=ECc(E.index-1,I.panel));if(e||B)I.autoplayRenderer=Def(B,e,I.autoplayRenderer);!B&&(T==null?0:T.relatedVideoArgs)&&(I.playerData.rvs=T.relatedVideoArgs);T=T?T.playlistIndexOffset:0;E.queueProxy?chD(I.panel,E.index,T,RED,!0,!0,!0):chD(I.panel,E.index,T);I.playerData.playlistPanelRenderer=I.panel;return I};
Jo.prototype.openToast=function(E){_.Q().resolve(_.W3).openToast(E,_.yu("ADDED_TO_QUEUE",void 0,"Added to queue"))};
Jo.prototype.isMiniplayerActive=function(){return _.Q().resolve(_.W3).isMiniplayerActive()};
_.XA=function(E,B){E.playlistManager.setAutoplayRenderer(B.autoplayRenderer||null);E.playlistManager.setPlaylistData(B.panel||null);B.playerData&&E.playlistManager.setPlayerPlaybackControlData(B.playerData)};var pcJ="#";var NiR={},gkZ={},SCN={},JF6={},Wj6={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:(NiR.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",NiR),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:(gkZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",gkZ),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:(SCN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",SCN),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:(JF6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",JF6),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 fGQ=[{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:Wj6},{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:Wj6}}];_.IN=[[["NmlxeWtpbmQjbWcwZ210OGs=","YnJ2YWx1ZSNyeHI3bXI0dDQy"],"NDBBRF9QTEFDRU1FTlRfS0lORF9TVEFSVCNieXF4bDdhaW5l"]];var X46=[["aW1hcnkjOGJydGszdmJmY3NzcHI=",null],[null,["bi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciMzbnFsbTlsdmtrb3B5dGQtdHdvLWNvbHVt","ZSNtdHQ4MmRsbnBjb3NzdHlsZS1zY29w"]],["ZCNpb3c0dWdpbmtjM25tYXN0aGVhZC1h",["M2V5eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciMyOTJ4YmE5Mno="]],[null,["djl2eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNwZm9rd2dwdzk=","ZSN4dmN1cnpvNzdhNjdzdHlsZS1zY29w"]],[null,["eXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciMybTNkcnlzMGtqaG8=","ZSN2aTlzc3VnZmd4b2pzdHlsZS1zY29w"]],[null,["ZnZkeGZ5dGQtYWQtc2xvdC1yZW5kZXJlciNtZnA1aGVh"]]],
rFV=[["ZHMjb3FuM3Z5ZWg4c2k4cGxheWVyLWE=",null]];var JhJ=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var bf;bf=function(E,B,I){this.tkq=E;this.isAsync=B;this.onD=I};
_.TSc=[new bf("b.f_",!1,0),new bf("j.s_",!1,2),new bf("r.s_",!1,4),new bf("e.h_",!1,6),new bf("i.s_",!0,8),new bf("s.t_",!1,10),new bf("p.h_",!1,12),new bf("s.i_",!1,14),new bf("f.i_",!1,16),new bf("a.b_",!1,18),new bf("a.o_",!1),new bf("g.o_",!1,22),new bf("p.i_",!1,24),new bf("p.m_",!1),new bf("n.k_",!0,20),new bf("i.f_",!1),new bf("a.s_",!0),new bf("m.c_",!1),new bf("n.h_",!1,26),new bf("o.p_",!1),new bf("m.p_",!0,28),new bf("o.a_",!1),new bf("d.p_",!1)].reduce(function(E,B){E[B.tkq]=B;return E},
{});var C9c=function(){};
C9c.prototype.flush=function(E,B){E=E===void 0?[]:E;B=B===void 0?!1:B;if(_.d("enable_client_streamz_web")){E=_.p(E);for(var I=E.next();!I.done;I=E.next())I=eA6(I.value),I={serializedIncrementBatch:_.tH(I.JSC$7491_serializeBinary())},_.hK("streamzIncremented",I,{sendIsolatedPayload:B})}};var Eq;var bMJ,ZM6,LEJ,mlG,h8t,gCD,Ah6,HM4,UlB,o5;bMJ=2;ZM6=2;LEJ=2;mlG=2;h8t=2;gCD=2;Ah6=2;HM4=new B1l;UlB=["Z2xvYmFsQ2FsbGJhY2tz","b25BYm5vcm1hbGl0eURldGVjdGVk","b25BZFNraXA=","cmF3X3BsYXllcl9yZXNwb25zZQ=="];o5={};_.okl=(o5["b.f_"]=function(){return _.a(function(E){return E.nextAddress==1?_.C(E,(_.eoi()!==void 0?_.rG(Error("rf")):_.qkJ()).then(function(){return 1},function(B){if(B.message==="Biscotti id is disabled")return 3;
_.OG("Failed fetching bid");return 0}),2):E.return(E.yieldResult)})},o5["j.s_"]=N5B,o5["r.s_"]=nCc,o5["e.h_"]=function(){for(var E=function(e){return YyG(e)},B=[X46,
rFV],I=2,T=0;T<B.length&&(I=SyJ(aGi(B[T],E)),I!==0);T++);return I},o5["n.h_"]=function(){return SyJ(aGi([["player-ads",
["ytd-merch-shelf-renderer","ytp-featured-product"]]]))},o5["i.s_"]=function(){return _.HA("ISDSTAT",2)},o5["p.h_"]=function(){return 2},o5["s.t_"]=function(){return bMJ},o5["s.i_"]=oCi,o5["f.i_"]=z8i,o5["a.b_"]=G06,o5["a.o_"]=rht,o5["g.o_"]=Xct,o5["p.i_"]=WEG,o5["p.m_"]=dlG,o5["n.k_"]=function(){return _.HA("NKDSTAT",2)},o5["i.f_"]=ueB,o5["a.s_"]=function(){return _.HA("ASDSTAT",2)},o5["m.c_"]=function(){return 2},o5["o.p_"]=function(){for(var E=[],B=0,I=0;I<UlB.length;I++)E[I]=UlB[I],B++;
E[B]="d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tz";E[B+1]="YWJfc2FfZWY=";return jyf(E)},o5["m.p_"]=function(){return _.HA("MBSTAT",2)},o5["o.a_"]=function(){return k06()===0?0:t7Q()},o5["d.p_"]=function(){return Ah6},o5);var AF6,jMu,Ucz;AF6=function(){this.ongoingFlowNonces=new Map};
_.c8=function(){jMu||(jMu=new AF6);return jMu};
_.eP=function(E,B,I){return{eventType:{flowEventNamespace:E,flowEventType:B},metadata:I,statusCode:void 0,csn:void 0,can:void 0}};
_.llJ=function(E,B){var I=_.c8(),T=Ucz(I,B,!0);_.lj(I,E,B,T)};
_.lj=function(E,B,I,T){E={flowNonce:T||Ucz(E,I),flowType:I,flowEventType:B.eventType};B.metadata&&(E.flowMetadata=B.metadata);B.statusCode!==void 0&&(E.flowEventStatus=B.statusCode);B.csn&&(E.csn=B.csn);B.can&&(E.can=B.can);_.hK("flowEvent",E,void 0)};
Ucz=function(E,B,I){I=I===void 0?!1:I;var T=E.ongoingFlowNonces.get(B);if(!T||I)T=xh(16),E.ongoingFlowNonces.set(B,T);return T};_.kKD=new E9U;var Ao=function(E,B,I,T,e,c,Y){I=I===void 0?!1:I;T=T===void 0?!1:T;c=c===void 0?_.Wx():c;this.hasRun=!1;this.qeE=E;this.fS6=B;this.aYS=I;this.fromHistory=T;this.previousVideoId=e;this.v1y=c;this.tempData=Y;this.bzC=new _.$mX};
_.L(Ao,Vk);Ao.prototype.validate=function(E){return!(!E.data.playerResponse||E.data.page!=="watch"&&E.data.page!=="shorts"||this.hasRun)};
Ao.prototype.handle=function(E){var B=this,I=_.h(E.endpoint,_.kh),T=_.h(E.endpoint,_.yQ);if(_.d("kevlar_continue_playback_without_player_response")&&(I==null?0:I.videoId)&&this.previousVideoId&&(I==null?void 0:I.videoId)===this.previousVideoId&&(I==null?0:I.continuePlayback)&&!this.fromHistory)this.qeE.resolve();else{var e={};I?e.watch_endpoint=I:T&&(e.watch_endpoint=T,T.endTimeSeconds&&(e.end=T.endTimeSeconds));E.data.page==="watch"?(E.data.filler||this.aYS||(_.Mf("cfg"),_.WC.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(e,tSl(this,E.endpoint)),_.d("enable_masthead_quartile_ping_fix")&&Object.assign(e,fdU(this)),I=!_.d("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(e,I),E.data.forceExternalPlaylist&&(e.external_list=!0)):E.data.page==="shorts"&&_.WC.getInstance().triggerAction("yt-start-loading-shorts");if(I=this.fS6()){try{I.loadVideoWithPlayerResponse(E.data.playerResponse,e),I.getPlayerPromise().then(this.qeE.resolve)}catch(c){_.xV(c),this.qeE.resolve()}this.hasRun=
!0;I.getPlayerPromise().then(function(c){c.addEventListener("onAbnormalityDetected",function(){var Y=E.data.playerResponse,v=c.getVideoData().cpn;Ah6=0;_.bG$=v;if(v=Il6(Y))B.bzC.increment("IN_PLAYER"),_.ij(5),_.d("ab_st_vid_ks")?c.pauseVideo(!0):c.stopVideo(),Y.playabilityStatus=Object.assign({},Y.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:v}}),Y.videoDetails=void 0,_.WC.getInstance().triggerOptionalAction("yt-updated-playability-status",Y.playabilityStatus)})})}else _.OG(Error("If"))}};
var tSl=function(E,B){var I=_.h(B,_.kh);if(B&&I&&I.playlistId&&I.videoId&&(E=E.v1y,E.queueProxy?(E=E.queueProxy,I=E.listId===I.playlistId?E.attributionData.get(I.videoId):void 0):I=void 0,I))return{queue_info:I}},fdU=function(E){var B;
if((B=E.tempData)==null?0:B.adpings)return{adpings:E.tempData.adpings}};var ju=function(E,B,I){this.hasRun=!1;this.zz6=E;this.x6H=B;this.hz7=I};
_.L(ju,Vk);ju.prototype.validate=function(E){return!!_.a_.getValueByKeys.apply(null,[E.data].concat(_.ad(ZG6)))};
ju.prototype.handle=function(E){var B=this;this.zz6.promise.then(function(){var I=E.data;var T=_.a_.getValueByKeys.apply(null,[I].concat(_.ad(p4z))),e=_.a_.getValueByKeys.apply(null,[I].concat(_.ad(CgV))),c=_.a_.getValueByKeys.apply(null,[I].concat(_.ad(adX)));var Y=(Y=_.a_.getValueByKeys.apply(null,[I].concat(_.ad(YCZ))))?{videoId:Y.videoId,thumbnail:Y.thumbnail,title:Y.title?_.jj(Y.title):void 0,shortBylineText:Y.author?_.jj(Y.author):void 0}:void 0;var v=void 0;_.d("web_get_playlist_id_from_current_endpoint_ks")||
(v=_.a_.getValueByKeys.apply(null,[I].concat(_.ad(vkZ))));var y=_.a_.getValueByKeys.apply(null,[I].concat(_.ad(w4r))),Z=_.a_.getValueByKeys.apply(null,[I].concat(_.ad(yF6))),P=!!y||!!Z&&!!Z.results&&Z.results.length>0,z=0;e&&e.currentIndex&&e.localCurrentIndex&&(z=e.currentIndex-e.localCurrentIndex);e&&e.playlistId&&(v=e.playlistId);I={rawResponse:I,autoplayRenderer:T,hasRelatedVideoData:P,playingVideo:Y,playingVideoId:c,playlistPanelRenderer:e,playlistId:v,playlistIndex:e&&e.currentIndex,relatedVideoArgs:y,
endScreenRenderer:Z,playlistIndexOffset:z};a:{T=B.hz7;e=B.x6H;T.response=I;if(HGV(I))T.downloadPlaylistProxy&&T.downloadPlaylistProxy.getPlaylistId()===MSZ(I)||(T.downloadPlaylistProxy=new Bir(MSZ(I),T.setPlaylistData.bind(T),T.isPlayingOfflineVideo.bind(T))),T.responsePlaylistData=T.downloadPlaylistProxy.getPlaylistData(),T.listId=MSZ(I),T.index=0;else if(I.playlistPanelRenderer&&I.playlistId&&I.autoplayRenderer)I.playlistId.startsWith("TLPQ")?T.queueProxy?T.listId===I.playlistId?(T.index=I.playlistIndex,
T.responsePlaylistData=I.playlistPanelRenderer,T.queueProxy.JSC$10632_setCurrentIndex(T.index)):I.playingVideoId&&T.index!==void 0&&e.clientParams.autoSaveToQueue&&(T.index+=1,T.queueProxy.JSC$10632_setCurrentIndex(T.index),T.queueProxy.addVideos([I.playingVideoId],{},T.index)):(T.queueProxy=new _.OA(T.JSC$10686_playlistNetworkManager,I.playlistId,T.setPlaylistData.bind(T),T.clearQueue.bind(T),_.e8c(I.playlistPanelRenderer),T.storage),T.responsePlaylistData=I.playlistPanelRenderer,T.listId=I.playlistId,
T.index=I.playlistIndex):(T.index=I.playlistIndex,T.listId!==I.playlistId&&T.clearQueue(),T.responsePlaylistData=I.playlistPanelRenderer,T.listId=I.playlistId,T.playlistProxy=new iGh(T.JSC$10686_playlistNetworkManager,I.playlistId,T.setPlaylistData.bind(T),_.e8c(I.playlistPanelRenderer)));else if(!T.queueProxy)T.responsePlaylistData=void 0;else if(I.playingVideoId&&e.clientParams.autoSaveToQueue){if(T.index===void 0){_.xV(Error("Ef"));T.clearQueue();break a}T.queueProxy.videoIds.includes(I.playingVideoId)||
(T.index+=1,T.queueProxy.JSC$10632_setCurrentIndex(T.index),T.queueProxy.addVideos([I.playingVideoId],{},T.index))}_.XA(T,_.rB(T,T.response.autoplayRenderer))}})};var VSu=function(E,B){B=B===void 0?_.Wx():B;Y8.call(this);this.lQ.push(new ju(this.nZ,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},B));this.lQ.push(new Ao(this.nZ,E,!1,!1));_.d("web_response_commands_chunk_processor")&&this.lQ.push(new a5)};
_.L(VSu,Y8);VSu.prototype.processChunk=function(E){E&&E.data.player===void 0&&this.nZ.resolve();Y8.prototype.processChunk.call(this,E)};var UA=function(E,B){E=E===void 0?{layer:0}:E;this.hasRun=!1;this.createScreenConfig=E;this.ywj=B};
_.L(UA,Vk);UA.prototype.validate=function(E){return!(this.hasRun||!E.endpoint)};
UA.prototype.handle=function(E){var B=_.lu(),I,T,e=(T=_.h((I=E.endpoint)==null?void 0:I.commandMetadata,_.D$))==null?void 0:T.rootVe;this.ywj&&e?_.I5(B,e,this.ywj,this.createScreenConfig):bzV(B,E.endpoint,this.createScreenConfig);this.hasRun=!0};var k8=function(E,B){this.hasRun=!1;this.qES=E;this.previousVideoId=B};
_.L(k8,Vk);k8.prototype.validate=function(E){return _.d("kevlar_continue_playback_without_player_response")&&(E=_.h(E.endpoint,_.kh),(E==null?0:E.videoId)&&this.previousVideoId&&(E==null?void 0:E.videoId)===this.previousVideoId&&(E==null?0:E.continuePlayback))?!1:this.qES.hqU===0};
k8.prototype.handle=function(E){_.WC.getInstance().triggerAction("yt-stop-old-player",E.data,!0)};var qCr=function(E){E=E===void 0?{layer:0}:E;Y8.call(this);this.lQ.push(new k8(this));this.lQ.push(new UA(E));this.lQ.push(new p_(E))};
_.L(qCr,Y8);var Fjh=function(){this.hasRun=this.hasRun=!1};
_.L(Fjh,Vk);Fjh.prototype.validate=function(E){return!this.hasRun&&!(!E.data.csn||!E.data.rootVe)};
Fjh.prototype.handle=function(E){this.hasRun=!0;_.d0f(E.data.csn,E.data.rootVe,3)};var DcX=function(){Vk.apply(this,arguments)};
_.L(DcX,Vk);DcX.prototype.validate=function(E){return!!E.data.preconnect};
DcX.prototype.handle=function(E){_.nO("bc");E=_.p(E.data.preconnect);for(var B=E.next();!B.done;B=E.next())B=B.value,(new Image).src=B};var Kjt=function(E,B,I){I=I===void 0?{layer:0}:I;Y8.call(this);this.lQ.push(new Ao(this.nZ,E));this.lQ.push(new UA(I));this.lQ.push(new p_(I))};
_.L(Kjt,Y8);var RzZ=function(E,B,I,T,e){I=I===void 0?{layer:0}:I;T=T===void 0?_.Wx():T;Y8.call(this);var c=!!B&&!!B.clientParams&&!!B.clientParams.miniplayer;c&&this.lQ.push(new Fjh);this.lQ.push(new ju(this.nZ,B,T));this.lQ.push(new DcX);var Y,v;this.lQ.push(new Ao(this.nZ,E,c,!((Y=B.clientParams)==null||!Y.fromHistory),(v=B.clientParams)==null?void 0:v.previousVideoId,T,B.tempData));var y;this.lQ.push(new k8(this,(y=B.clientParams)==null?void 0:y.previousVideoId));var Z;(Z=B.clientParams)!=null&&Z.fromHistory||
(I.layer||(I=Object.assign({},I,{layer:c?3:0})),this.lQ.push(new UA(I,e)),this.lQ.push(new p_(I)));_.d("web_response_commands_chunk_processor")&&this.lQ.push(new a5)};
_.L(RzZ,Y8);var to,$XX;to={};
_.Eot=(to["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},to["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},to["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},to["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},to["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},to["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},to["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},to);_.f_=new _.M3("yt-edu");_.Bzz=function(){this.JSC$10781_eduDisplayedThisLoad_={}};
$XX=function(E){var B=_.Bzz.getInstance();var I=_.RI("kevlar_tooltip_impression_cap");B=I&&parseInt(_.f_.get(E+"-impression")||0,10)>=I||_.f_.get(E+"-dismissed")?!1:(I=_.Eot[E])&&!B.JSC$10781_eduDisplayedThisLoad_[I.setKey||E]&&(I.titleText&&_.yu(I.titleText)||I.bodyText&&_.yu(I.bodyText))?!0:!1;if(!B)return null;B=_.Eot[E];if(!B)return null;I=B.bodyText?_.yu(B.bodyText):void 0;var T=B.titleText?_.yu(B.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:B.position,popup:{bubbleHintRenderer:{text:T?
_.jj(T):void 0,detailsText:I?_.jj(I):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.jj(_.yu("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:E}}]}}}}}}}},{eduImpressionAction:{key:E}}]};
_.E8(_.Bzz);var c4d=!1;var alc={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"};for(var IbV="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),Tzr=[],VB=6;VB>=1;VB--)Tzr.push({columnCount:VB,query:VB==1?0:VB*2*107-4+32,className:"grid-"+VB+"-columns",width:VB*2*107+"px"});_.lbR=function(E){this.actionRouter_=E=E===void 0?_.WC.getInstance():E;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.eQh(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.eQh=function(E){var B=E.miniGuideVisible_?72:0,I=E.documentWidth_-(E.guidePersistentAndVisible_?240:B);return Tzr.find(function(T){return I>T.query})};
_.E8(_.lbR);var cNU=function(){var E=this;this.JSC$10794_keyboardInUse=!1;document.addEventListener("keydown",function(){E.onKeydown()});
document.addEventListener("mousedown",function(){E.JSC$10794_keyboardInUse=!1})},imr;
cNU.prototype.isKeyBoardInUse=function(){return this.JSC$10794_keyboardInUse};
cNU.prototype.onKeydown=function(){this.JSC$10794_keyboardInUse=!0};var pHr,D3;_.qe=new _.M3("yt-mentions");_.FA=function(){};
pHr=function(E,B){return D3(B,"drag-to-reorder-edu-displayed")};
D3=function(E,B,I,T,e,c){I=I===void 0?"OPEN_POPUP_POSITION_TOP":I;if(B){if(_.qe.get(B))return;_.qe.set(B,!0,T)}if(e&&c!==void 0){B=Number(_.qe.get(e)||0);if(B>=c)return;_.qe.set(e,B+1)}return[{openPopupAction:{popupType:"HINT",position:I,popup:{bubbleHintRenderer:{detailsText:E,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.E8(_.FA);var YUh,abR,voh;YUh=function(E,B,I,T){this.JSC$10804_taskManager_=E;this.onFulfilled_=typeof B==="function"?B:null;this.onRejected_=typeof I==="function"?I:null;this.JSC$10804_context_=T};
abR=function(E,B){E.onFulfilled_&&_.wT(E.JSC$10804_taskManager_,function(){E.onFulfilled_.call(E.JSC$10804_context_,B)})};
voh=function(E,B){E.onRejected_&&_.wT(E.JSC$10804_taskManager_,function(){E.onRejected_.call(E.JSC$10804_context_,B)})};
_.K_=function(E){this.JSC$10807_taskManager_=E;this.callbacks_=[]};
_.K_.prototype.then=function(E,B,I){this.callbacks_.push(new YUh(this.JSC$10807_taskManager_,E,B,I));return this};
_.K_.prototype.onSuccess=function(E){this.callbacks_.forEach(function(B){abR(B,E)})};
_.K_.prototype.onFailure=function(E){this.callbacks_.forEach(function(B){voh(B,E)})};
_.K_.prototype.cancel=function(){this.callbacks_.length=0};
pLh(_.K_);_.y4i=null;_.P$=new _.Dr("ACTIVITY_TOKEN");var zaD=/^[a-zA-Z0-9_\-]{11}$/;var mkF=_.PT(function(){var E,B;return(B=(E=window).matchMedia)==null?void 0:B.call(E,"(prefers-reduced-motion: reduce)").matches});var yNN=_.PT(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 E=_.WA("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");E||(E=_.li("VIDEO"),_.ka("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
E));return!!(E&&E.canPlayType&&E.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var CYz;_.R5=new _.Dr("SHORTS_CONTROLLER_TOKEN");CYz=new _.Dr("SHORTS_STATE_STORE_TOKEN");var Ey=function(E,B){var I=_.aG.apply(2,arguments);E=E===void 0?0:E;_.P7.call(this,B,I);this.errorType=E;Object.setPrototypeOf(this,this.constructor.prototype)};
_.L(Ey,_.P7);var wH$,Zmu,PYN,zQR,QWZ,sli,bb,f26,u9N,sWU,Mrt,Gtt,xX$;wH$=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(E){return E+"="}).join("|"));
Zmu=RegExp(".*\\?.*ybp=1.*");PYN=["FEcommerce_cart","SPcommerce_checkout"];zQR=RegExp(".*\\?.*playnext=1.*");_.Bc=function(E,B,I,T){this.watchEndpointMap=E;this.reelWatchEndpointMap=B;this.innerTubeTransportService=I;this.fetchPbj=T;this.forceWebFEForAdsTesting=!1};
QWZ=function(E,B,I){var T=_.Q().resolve(_.Fx(mXU));_.Bc.instance=new _.Bc(E,B,I,T)};
_.dXZ=function(E,B){var I=_.RI("web_pbj_log_warning_rate",0);I=I>0&&Math.random()<I;var T;if((T=_.h(B.commandMetadata,_.D$))==null||!T.rootVe)return I&&_.OG(Error("Of")),!1;var e;T=(e=_.h(B.commandMetadata,_.D$))==null?void 0:e.url;if(!T)return I&&_.OG(Error("Pf")),!1;if(zQR.test(T))return!0;if(wH$.test(T))return I&&_.OG(Error("Qf`"+T)),!1;var c;e=(c=_.h(B,_.pq))==null?void 0:c.browseId;if(Zmu.test(T)&&(!e||!PYN.includes(e)))return I&&_.OG(Error("Rf`"+T)),!1;if(_.h(B,_.kh)){if(E.forceWebFEForAdsTesting)return I&&
_.OG(Error("Sf")),!1;if(!(E.watchEndpointMap.watchNext&&E.watchEndpointMap.player||_.d("kevlar_fetch_initial_data_op_watch_client")))return I&&_.OG(Error("Kf")),!1;E=_.RI("web_pbj_log_warning_rate",0);E=E>0&&Math.random()<E;_.h(B,_.kh)?ZjF(B)?B=!0:(E&&_.OG(Error("Lf")),B=!1):(E&&_.OG(Error("Kf")),B=!1);return B}if(_.h(B,_.yQ))return PFF(B);if(_.h(B,_.MT))return!0;B=_.H$(E.innerTubeTransportService,B);I&&_.OG(Error("Tf"));return B};
sli=function(E,B,I,T,e,c){B={url:B};if(I==null?0:I.itct)B.parentTrackingParams=I.itct;var Y=_.f9(KNV);return _.Me(E.innerTubeTransportService,B,Y).then(function(v){(v=v.endpoint)||(v=_.yB);(I==null?0:I.itct)&&v&&!v.trackingParams&&(v.trackingParams=I.itct);var y=aN(v);return bb(E,v,I,T,y,e,c)})};
bb=function(E,B,I,T,e,c,Y,v){v=v===void 0?{}:v;if(E.fetchPbj&&!_.dXZ(E,B)){v=E.fetchPbj(B);var y=_.i1(v.then(function(f){if(!f)throw Error("Uf");Y(y)||c(B,f);return f}));
return y}var Z,P,z={rootVe:(Z=_.h(B.commandMetadata,_.D$))==null?void 0:Z.rootVe,url:(P=_.h(B.commandMetadata,_.D$))==null?void 0:P.url,endpoint:B,page:e};if(_.h(B,_.kh)){var m,u={contentPlaybackContext:_.Cq(I,(m=_.h(B.commandMetadata,_.D$))==null?void 0:m.url,T)},x=_.gA();_.d("web_streaming_watch")&&window.TextDecoderStream?(v=hQD(E.innerTubeTransportService,B,u,function(f){!z.response&&f.content&&(z.response=f.content);!z.playerResponse&&f.player&&(z.playerResponse=f.player);c(B,z)}),Z=Ksf(B),Z.length&&
(z.preconnect=Z,c(B,z)),sWU(v,x,z).catch(function(f){f instanceof Ey&&f.errorType===2&&u9N(E,B,u,z,c,Y,x)})):u9N(E,B,u,z,c,Y,x);
return x.promise}if(_.h(B,_.yQ)){var M;if(((M=_.h(B,_.yQ))==null?void 0:M.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var N=_.gA();_.L6Z(_.Q().resolve(_.R5),B).then(function(f){xX$(E,I,T,e,c,N,f)});
return N.promise}v=_.i1();var W;Z={contentPlaybackContext:_.Cq(I,(W=_.h(B.commandMetadata,_.D$))==null?void 0:W.url,T)};(W=E.reelWatchEndpointMap.player)&&(W=W().JSC$11783_getRequest(B,Z))&&(v=_.Me(E.innerTubeTransportService,W.innerTubeRequest,W.input,B.clickTrackingParams,W.config));W=_.i1();(P=E.reelWatchEndpointMap.reelItemWatch)&&(P=P().JSC$11783_getRequest(B))&&(W=_.Me(E.innerTubeTransportService,P.innerTubeRequest,P.input,B.clickTrackingParams,P.config));P=_.i1();(m=E.reelWatchEndpointMap.reelWatchSequence)&&
_.h(B,_.yQ).sequenceParams&&(Z=m().JSC$11783_getRequest(B,Z))&&(P=_.Me(E.innerTubeTransportService,Z.innerTubeRequest,Z.input,B.clickTrackingParams,Z.config));Z=_.i1(z);m=_.gA();Gtt(B,Z,v,W,P,c,Y,m);return m.promise}var U;if(_.h(B,vxc)&&((U=_.h(B.commandMetadata,_.D$))==null?0:U.url))return v=uKD(_.Se(wM().location.href),_.Se(_.h(B.commandMetadata,_.D$).url)).toString(),sli(E,v,I,T,c,function(){return!1});
if(_.h(B,_.MT))return c(B,z),_.i1(z);if(_.H$(E.innerTubeTransportService,B)){v=Object.assign({},{tempData:I,disableCache:I.disableCache},v);var q=_.NN(E.innerTubeTransportService,B,v).then(function(f){z.response=f;Y(q)||c(B,z);return z});
return q}return _.i1(z)};
_.nor=function(E,B,I,T){if(_.h(B,_.kh)||_.h(B,_.yQ)&&(_.d("mweb_enable_shorts_innertube_player_prefetch")||_.d("kevlar_enable_shorts_prefetch_in_sequence"))||_.h(B,RTu)&&_.d("web_enable_prefetching_videos_on_home")){var e,c={contentPlaybackContext:_.Cq(I,(e=_.h(B.commandMetadata,_.D$))==null?void 0:e.url,T),prefetchPlaybackContext:dk4(I)},Y,v,y;if(((Y=_.h(B,_.kh))==null?void 0:(v=Y.watchEndpointSupportedPrefetchConfig)==null?void 0:(y=v.prefetchHintConfig)==null?void 0:y.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(I=
E.watchEndpointMap.watchNext)if(c=I().JSC$11783_getRequest(B,c))return Promise.resolve(_.Me(E.innerTubeTransportService,c.innerTubeRequest,c.input,void 0,c.config).then(function(z){return z}))}else if(_.h(B,_.yQ)&&_.d("web_prefetch_riw_for_next_video")){if(I=E.reelWatchEndpointMap.reelItemWatch)if((I=I().JSC$11783_getRequest(B,c))&&_.Me(E.innerTubeTransportService,I.innerTubeRequest,I.input,void 0,I.config).then(function(z){return z}),I=E.reelWatchEndpointMap.player)if(c=I().JSC$11783_getRequest(B,
c))return Promise.resolve(_.Me(E.innerTubeTransportService,c.innerTubeRequest,c.input,void 0,c.config).then(function(z){return z}))}else if(I=E.watchEndpointMap.player)if(c=I().JSC$11783_getRequest(B,c))return Promise.resolve(_.Me(E.innerTubeTransportService,c.innerTubeRequest,c.input,void 0,c.config).then(function(z){return z}))}else if(_.H$(E.innerTubeTransportService,B)){var Z={tempData:I},P=Oml(E.innerTubeTransportService,B);
return P?new Promise(function(z,m){var u,x;return _.a(function(M){if(M.nextAddress==1)return _.C(M,P,2);if(M.nextAddress!=4)return u=M.yieldResult,u.JSC$11790_getStoreKey(B,Z)?_.C(M,_.NN(E.innerTubeTransportService,B,Z),4):(m(new _.P7("Prefetching request builder with no store key.",B)),M.jumpTo(0));x=M.yieldResult;z(x);_.ER(M)})}):Promise.reject(new _.P7("Prefetching unregistered request builder.",B))}return Promise.reject(new _.P7("No request builder available to prefetch endpoint.",B))};
f26=function(E,B){var I,T,e;if(_.h(B,_.kh)){var c=E.watchEndpointMap.watchNext;c&&(I=c());(E=E.watchEndpointMap.player)&&(T=E())}else if(_.h(B,_.yQ))(c=E.reelWatchEndpointMap.reelItemWatch)&&(I=c()),(c=E.reelWatchEndpointMap.player)&&(T=c()),(E=E.reelWatchEndpointMap.reelWatchSequence)&&(e=E());else{a:{E=z14(B,E.innerTubeTransportService.endpointMap);if(E!==void 0)if(typeof E.then==="function")_.xV(new _.P7("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",B));else break a;
E=void 0}E&&(I=E)}var Y,v,y;return{content:(Y=I)==null?void 0:Y.JSC$11790_getStoreKey(B),player:(v=T)==null?void 0:v.JSC$11790_getStoreKey(B),reelSequence:(y=e)==null?void 0:y.JSC$11790_getStoreKey(B)}};
u9N=function(E,B,I,T,e,c,Y){var v=_.i1(),y=E.watchEndpointMap.player;y&&(y=y().JSC$11783_getRequest(B,I))&&(v=_.Me(E.innerTubeTransportService,y.innerTubeRequest,y.input,B.clickTrackingParams,y.config));y=_.i1();var Z=E.watchEndpointMap.watchNext;Z&&(I=Z().JSC$11783_getRequest(B,I))&&(y=_.Me(E.innerTubeTransportService,I.innerTubeRequest,I.input,B.clickTrackingParams,I.config));E=_.i1(T);Mrt(B,E,v,y,e,c,Y)};
sWU=function(E,B,I){return _.a(function(T){if(T.nextAddress==1)return _.C(T,E,2);B.resolve(I);_.ER(T)})};
Mrt=function(E,B,I,T,e,c,Y){var v,y,Z,P,z;_.a(function(m){switch(m.nextAddress){case 1:return _.C(m,B,2);case 2:v=m.yieldResult;if(c(Y.promise))return Y.resolve(v),m.return();e(E,v);y=Ksf(E);if(!y.length){m.jumpTo(3);break}return _.C(m,B,4);case 4:v.preconnect=y,e(E,v);case 3:return _.q7(m,5),_.C(m,I,7);case 7:Z=m.yieldResult;_.W7(m,6);break;case 5:return P=_.RG(m),Y.reject(P),m.return();case 6:if(Z===void 0)return v.reload=!0,e(E,v),Y.resolve(v),m.return();if(c(Y.promise))return Y.resolve(v),m.return();
v.playerResponse=Z;e(E,v);_.q7(m,8);return _.C(m,T,10);case 10:z=m.yieldResult;_.W7(m,9);break;case 8:_.RG(m);case 9:if(z===void 0)return v.response={responseContext:{}},Y.resolve(v),m.return();if(c(Y.promise))return Y.resolve(v),m.return();v.response=z;e(E,v);Y.resolve(v);_.ER(m)}})};
Gtt=function(E,B,I,T,e,c,Y,v){var y,Z,P,z,m,u;_.a(function(x){switch(x.nextAddress){case 1:return _.C(x,B,2);case 2:y=x.yieldResult;if(Y(v.promise))return v.resolve(y),x.return();c(E,y);Z=Ksf(E);if(!Z.length){x.jumpTo(3);break}return _.C(x,B,4);case 4:y.preconnect=Z,c(E,y);case 3:return _.q7(x,5),_.C(x,I,7);case 7:P=x.yieldResult;_.W7(x,6);break;case 5:return z=_.RG(x),v.reject(z),x.return();case 6:if(P===void 0)return y.reload=!0,c(E,y),v.resolve(y),x.return();if(Y(v.promise))return v.resolve(y),
x.return();y.playerResponse=P;c(E,y);_.q7(x,8);return _.C(x,T,10);case 10:m=x.yieldResult;_.W7(x,9);break;case 8:_.RG(x);case 9:if(m===void 0)return y.response={responseContext:{}},v.resolve(y),x.return();if(Y(v.promise))return v.resolve(y),x.return();y.response=m;c(E,y);_.q7(x,11);return _.C(x,e,13);case 13:u=x.yieldResult;_.W7(x,12);break;case 11:_.RG(x);case 12:if(Y(v.promise))return v.resolve(y),x.return();y.reelWatchSequenceResponse=u;c(E,y);v.resolve(y);_.ER(x)}})};
xX$=function(E,B,I,T,e,c,Y){var v,y,Z,P,z,m;_.a(function(u){if((v=Y)==null||!v.replacementEndpoint)return c.reject(),u.return();y=Y.replacementEndpoint;(Z=_.h(y,_.yQ))?(Y.sequenceContinuation&&(Z.sequenceParams=Y.sequenceContinuation),P=_.Q().resolve(_.R5),z=Z.sequenceParams,HmR(P,y)&&delete Z.sequenceParams,m=bb(E,y,B,I,T,e,function(){return!1}),m.then(function(x){return _.a(function(M){if(M.nextAddress==1)return Nzr(P,{reelWatchEndpoint:{sequenceParams:z}},x),_.C(M,0,2);
c.resolve(x);_.ER(M)})})):c.reject();
_.ER(u)})};_.gou=function(E){if(E.validatedFragments_.length==0)return null;if(!E.mergedPrefetchedData_){for(var B=[],I=_.p(E.validatedFragments_),T=I.next();!T.done;T=I.next()){T=_.p(E.fragmentConfiguration_[T.value].graftedKeys);for(var e=T.next();!e.done;e=T.next())(e=E.prefetchedData_[e.value].trackingParams)&&B.push(e)}E.mergedPrefetchedData_={};Object.assign(E.mergedPrefetchedData_,E.prefetchedData_,{clientSideGrafts:B})}return E.mergedPrefetchedData_};var SU$;_.$C=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
SU$=function(E,B,I){if(_.CFG(B))return E.prefetchCache_.get(_.wFG(B,I))};_.Iy=new _.Dr("NAVIGATION_TOKEN");var JND=function(E){var B=this;var I=I===void 0?u_4():I;var T=T===void 0?_.Q().resolve(_.Iy):T;this.onePickCommand=E;this.JSC$10908_playlistNetworkManager=I;this.navigationManager=T;this.videoPickerBuilder=_.hac("yt-addtoplaylist");_.Gbz(m3Z(QxZ(z_V(this.videoPickerBuilder.setTitle(E.modalTitle).setSize(1E3).addView(sIZ()).addView(hpR())).addView("youtube"),E.selectButtonLabel)),function(e){B.handleAction(e)})};
JND.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
JND.prototype.handleAction=function(E){var B=this;if(E&&this.onePickCommand.listId&&E.action==="picked"&&E.docs){var I=[];E.docs.forEach(function(T){I.push({addedVideoId:T.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10908_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,I).then(function(){_.d("playlist_add_video_hard_reload_killswitch")?B.navigationManager.reload():W6V(B.navigationManager)})}};var XHZ=function(){if(this.constructor===XHZ)throw new TypeError("Vf");};
_.l=XHZ.prototype;_.l.dispose=function(){};
_.l.disconnect=function(){};
_.l.reconnect=function(){};
_.l.observe=function(E,B,I){return{element:E,option:I}};
_.l.unobserveByKey=function(){};var LNB=function(E,B){B=B===void 0?0:B;XHZ.call(this);this.viewroot=E;this.defaultPrescanHeight=B;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),E?{root:E,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.L(LNB,XHZ);_.l=LNB.prototype;_.l.dispose=function(){this.disconnect();this.handlers.clear()};
_.l.disconnect=function(E){this.isConnected=!1;this.pauseObservingUntilReconnect=E===void 0?!1:E;this.observer.disconnect();E=_.p(this.prescanObservers.values());for(var B=E.next();!B.done;B=E.next())B.value.disconnect()};
_.l.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var E=_.p(this.handlers),B=E.next();!B.done;B=E.next()){var I=_.p(B.value);B=I.next().value;var T=I.next().value;I=!1;T=_.p(T.keys());for(var e=T.next();!e.done;e=T.next())if((e=e.value)&&e.state==="prescan"){I=!0;break}I&&rND(this,B).observe(B);this.observer.observe(B)}}};
_.l.handleObserveEvent=function(E){E=_.p(E);for(var B=E.next();!B.done;B=E.next()){B=B.value;var I=this.handlers.get(B.target);if(I){var T=B.isIntersecting;I=_.p(I);for(var e=I.next();!e.done;e=I.next()){var c=_.p(e.value);e=c.next().value;c=c.next().value;e&&(e.state==="visible"&&T||e.state==="hidden"&&!T)&&(c(B.target,e.state),e.calledOnce&&this.unobserveByKey({element:B.target,option:e}))}}}};
_.l.handlePrescanEvent=function(E){E=_.p(E);for(var B=E.next();!B.done;B=E.next()){B=B.value;var I=this.handlers.get(B.target);if(I&&B.isIntersecting){I=_.p(I);for(var T=I.next();!T.done;T=I.next()){var e=_.p(T.value);T=e.next().value;e=e.next().value;T&&T.state==="prescan"&&(e(B.target,T.state),T.calledOnce&&this.unobserveByKey({element:B.target,option:T}))}}}};
_.l.observe=function(E,B,I){var T=(T=this.handlers.get(E))&&T.has(I)?{element:E,option:I}:void 0;if(T)return T;T={element:E,option:I};this.handlers.has(E)||this.handlers.set(E,new Map);var e=this.handlers.get(E);e&&!e.has(I)&&e.set(I,B);this.pauseObservingUntilReconnect||(I.state==="prescan"&&rND(this,E).observe(E),this.observer.observe(E));return T};
_.l.unobserveByKey=function(E){var B=this.handlers.get(E.element);if(B&&B.has(E.option)){B.delete(E.option);if(E&&E.option.state==="prescan")for(var I=_.p(this.prescanObservers.values()),T=I.next();!T.done;T=I.next())T.value.unobserve(E.element);B.size===0&&(this.handlers.delete(E.element),this.observer.unobserve(E.element))}};
var rND=function(E,B){var I=E.defaultPrescanHeight;B.hasAttribute("prescan-height")&&(B=Number(B.getAttribute("prescan-height")),isNaN(B)||(I=B));if(E.prescanObservers.has(I))return E.prescanObservers.get(I);B="-0.1px -0.1px "+I+"px -0.1px";B=new IntersectionObserver(E.handlePrescanEvent.bind(E),E.viewroot?{root:E.viewroot,rootMargin:B}:{rootMargin:B});E.prescanObservers.set(I,B);return B};var bmu=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],ooD=function(){var E,B=this;this.JSC$10925_actionRouter=E=E===void 0?_.WC.getInstance():E;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return B.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return B.visibilityObservedElementHandlerKeys}}},AN$,UX6,fbZ;
ooD.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.d("kevlar_use_vimio_behavior")&&_.HA("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=xk4())};
ooD.prototype.dispose=function(){this.visibilityMonitor&&_.zw(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
ooD.prototype.handleVisibilityRefreshed=function(){for(var E=_.p(this.targetMap.entries()),B=E.next();!B.done;B=E.next()){var I=_.p(B.value);B=I.next().value;I=I.next().value;_.jWR(this,B,I)}};
_.tr$=function(E,B,I){UX6(E,I);var T=_.ktN(E,B);T.element=I;E.targetedElements.set(I,B);_.jWR(E,B,T)};
UX6=function(E,B){var I=E.targetedElements.get(B);if(I){var T=E.targetMap.get(I);T&&(delete T.element,E.targetMap.set(I,T));E.targetedElements.delete(B);E.visibilityObserver&&E.visibilityObservedElementHandlerKeys&&(I=E.visibilityObservedElementHandlerKeys.get(B))&&(E.visibilityObserver.unobserveByKey(I),E.visibilityObservedElementHandlerKeys.delete(B))}};
_.jWR=function(E,B,I){var T=I.action,e=I.element;e&&T&&(bmu.includes(B)||_.HA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||E.visibilityMonitor&&E.visibilityMonitor.isNodeVisible(e)?fbZ(E,B,I):E.visibilityObserver&&(E.visibilityObservedElementHandlerKeys||(E.visibilityObservedElementHandlerKeys=new WeakMap),T=E.visibilityObserver.observe(e,function(){fbZ(E,B,I);E.visibilityObservedElementHandlerKeys.delete(e)},{calledOnce:!0,
state:"visible"}),E.visibilityObservedElementHandlerKeys.set(e,T)))};
fbZ=function(E,B,I){var T=I.action;(I=I.element)&&T&&(_.Hk(E.JSC$10925_actionRouter,[T],I),E.targetMap.delete(B),E.targetedElements.delete(I),E.triggeredTargets.add(B))};
_.ktN=function(E,B){var I=E.targetMap.get(B);I||(I={},E.targetMap.set(B,I));return I};
_.T0=function(){AN$||(AN$=new ooD);return AN$};var VrR=document.createElement("div");VrR.style.touchAction="pan-down";var Gm6=VrR.style.touchAction==="pan-down";var qUD,F6u;qUD=function(){this.hammerFn=C0D();this.JSC$10933_screenManager=_.lu();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.wA(83615);_.eu(this.JSC$10933_screenManager,this.ve);OjD()};
_.e7=function(){F6u||(F6u=new qUD);return F6u};
qUD.prototype.registerTouchEvents=function(E,B,I){var T=_.aG.apply(3,arguments),e=this.hammerFn(E,{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}]]});I&&e.set({touchAction:I});this.nodeManagerMapping.set(E,e);var c=
nxG(B);T=_.p(T);for(var Y=T.next();!Y.done;Y=T.next()){Y=Y.value;if(Y.includes("swipe")||Y.includes("pinch")||Y.includes("pan"))Y.includes("swipe")?e.get("swipe").set({enable:!0,direction:c,velocity:.2}):Y.includes("pinch")?e.get("pinch").set({enable:!0}):Y.includes("pan")&&(e.get("pan").set({enable:!0,direction:c}),e.get("swipe").set({enable:!0,direction:c,velocity:.2}),e.get("swipe").recognizeWith("pan"));DXl(this,E,e,Y)}};
var DXl=function(E,B,I,T){I.on(T,function(e){if(T.includes("pinch"))E.lastPinchTime=Date.now();else if(T.includes("swipe")&&Date.now()-E.lastPinchTime<400)return;e.pointerType!=="mouse"&&(e=T==="doubletap"?{coordinates:e.center}:T.includes("pan")?e:T.includes("swipe")?{target:e.target}:{},B.dispatchEvent(new CustomEvent(T,{bubbles:!0,composed:!0,detail:e})))})};
qUD.prototype.unregisterTouchEvents=function(E){var B=_.aG.apply(1,arguments),I=this.nodeManagerMapping.get(E);if(I){B=_.p(B);for(var T=B.next();!T.done;T=B.next())I.off(T.value);this.nodeManagerMapping.delete(E);E.style.touchAction="unset"}};var K6u=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var M1f=null;var EwU;_.l9=function(E,B,I){var T=I&&I>0?I:0;I=T?Date.now()+T*1E3:0;if((T=T?(0,_.RQN)():EwU())&&window.JSON){typeof B!=="string"&&(B=JSON.stringify(B,void 0));try{T.set(E,B,I)}catch(e){T.remove(E)}}};
_.cc=function(E){var B=EwU(),I=(0,_.RQN)();if(!B&&!I||!window.JSON)return null;try{var T=B.get(E)}catch(e){}if(typeof T!=="string")try{T=I.get(E)}catch(e){}if(typeof T!=="string")return null;try{T=JSON.parse(T,void 0)}catch(e){}return T};
_.i9=function(E){try{var B=EwU(),I=(0,_.RQN)();B&&B.remove(E);I&&I.remove(E)}catch(T){}};
_.RQN=_.PT(function(){try{var E=new iCJ;var B=E.isAvailable()?E:null}catch(I){return null}return B?new _.Rj(B):null});
EwU=_.PT(function(){var E=new pU6;return E.isAvailable()?new _.Rj(E):null});var BPR=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},q6c=function(){BPR.instance||(BPR.instance=new BPR);
return BPR.instance},FNc=function(E){var B=E.networkEvents;
E.networkEvents=[];return _.d("enable_network_monitoring")?B:[]};var $AV;$AV={};_.IPl=fF("yt-serviceworker-metadata",{objectStores:($AV.auth={addedAtVersion:1},$AV["resource-manifest-assets"]={addedAtVersion:2},$AV),shared:!0,upgrade:function(E,B){B(1)&&N3(E,"resource-manifest-assets");B(2)&&N3(E,"auth")},
version:2});var WNd=self.location.origin+"/";XF4([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//]);XF4([/purge_shell=1/]);var TPN=void 0;TPN=TPN===void 0?[]:TPN;for(var e6t=[],lP$=_.p(Ial),cuD=lP$.next();!cuD.done;cuD=lP$.next())e6t.push({key:cuD.value});for(var iDR=_.p(TPN),pbZ=iDR.next();!pbZ.done;pbZ=iDR.next())e6t.push(pbZ.value);var Y56,zv=_.$i==null?void 0:(Y56=_.$i.performance)==null?void 0:Y56.memory,oxF=!1,DkG={},UkJ={},mh={},QQ=navigator;var pM=function(E){this.JSC$10977_expiringStorage=new mz(E)};
pM.prototype.set=function(E,B,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$10977_expiringStorage.set(E,B,I)};
pM.prototype.get=function(E){return this.JSC$10977_expiringStorage.get(E)};
pM.prototype.remove=function(E){this.JSC$10977_expiringStorage.remove(E)};var eHF=_.km(["https://www.youtube.com/",""]),lvc=_.km(["https://studio.youtube.com/",""]),avG="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",izQ=null,ZzG;var aPz=_.km(["https://www.youtube.com/iframe_api"]),YC=function(){this.playerResolver_=_.gA();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.ZU;this.playbackDurationSeconds_=0},vwZ=function(E){var B=function(){return window.YT&&typeof window.YT.ready==="function"};
if(B())return _.i1(window.YT);var I=_.gA(),T=_.li("SCRIPT");T.onload=T.onreadystatechange=function(){T.readyState&&T.readyState!="loaded"&&T.readyState!="complete"||(T.onload=_.ZU,T.onreadystatechange=_.ZU,T.onerror=_.ZU,B()?I.resolve(window.YT):I.reject(new _.P7("Failed to load the iframe player library","script.onload",T.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
T.onerror=function(e){T.onload=_.ZU;T.onreadystatechange=_.ZU;T.onerror=_.ZU;I.reject(new _.P7("Failed to load the iframe player library","script.onerror",e&&e.target&&e.target.src))};
_.nr(T,_.jR(aPz));E.insertBefore(T,E.firstChild);return I.promise},yuz=function(E,B,I){var T,e;
_.a(function(c){switch(c.nextAddress){case 1:return E.playbackEndedCallback_=I,_.q7(c,2),_.C(c,vwZ(B.parentElement||null),4);case 4:T=c.yieldResult;_.W7(c,3);break;case 2:return e=_.RG(c),e instanceof _.P7&&e.args&&e.args[0]=="script.onerror"?_.OG(e):_.xV(e),c.return();case 3:T.ready(function(){return new T.Player(B,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:E.onPlayerReady_.bind(E),onStateChange:E.onPlayerStateChange_.bind(E),
onCueRangeExit:E.onCueRangeExit_.bind(E)}})}),_.ER(c)}})};
_.l=YC.prototype;_.l.getPlayerPromise=function(){return this.playerPromise_};
_.l.onPlayerReady_=function(E){this.playerResolver_.resolve(E.target)};
_.l.onPlayerStateChange_=function(E){if(E.data==YT.PlayerState.PLAYING){E=E.target;var B=E.getCurrentTime();E.addCueRange("playback",B,B+this.playbackDurationSeconds_)}};
_.l.onCueRangeExit_=function(E){E.data=="playback"&&(E.target.stopVideo(),this.playbackEndedCallback_())};
_.l.stopVideo=function(){this.playerPromise_.then(function(E){E.stopVideo()})};
var CND=function(E){E.playerVars_&&E.playerPromise_.then(function(B){typeof B.cueVideoByPlayerVars!="function"?_.OG(new _.P7("vmh: player API not ready","cueVideoByPlayerVars",typeof B.cueVideoByPlayerVars)):B.cueVideoByPlayerVars(E.playerVars_)})};
YC.prototype.playVideo=function(){var E=this;this.playerVars_&&this.playerPromise_.then(function(B){typeof B.loadVideoByPlayerVars!="function"?(B=new _.P7("vmh: player API not ready","loadVideoByPlayerVars",typeof B.loadVideoByPlayerVars),_.xV(B)):B.loadVideoByPlayerVars(E.playerVars_)})};
var wbR=function(E,B,I,T,e){B&&(I===void 0&&(I=0),T===void 0&&(T=0),E.playbackDurationSeconds_=T/1E3,E.playerVars_={adformat:"17_8",videoId:B,suggestedQuality:"hd720",startSeconds:I/1E3,player_params:e})};
YC.prototype.mute=function(){this.playerPromise_.then(function(E){E.mute()})};
YC.prototype.unMute=function(){this.playerPromise_.then(function(E){E.unMute()})};var sei=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var ay;ay=function(){this.tokenJars={};if(this.cookiesEnabled=_.CF()){var E=_.v7.get("CONSISTENCY",void 0);E&&ZDZ(this,{encryptedTokenJarContents:E})}};
_.Lvt=function(){ay.instance||(ay.instance=new ay);return ay.instance};
ay.prototype.handleResponse=function(E,B){if(!B)throw Error("$f");var I,T;B=((I=B.innerTubeRequest.context)==null?void 0:(T=I.request)==null?void 0:T.consistencyTokenJars)||[];var e;(E=(e=E.responseContext)==null?void 0:e.consistencyTokenJar)&&this.replace(B,E)};
ay.prototype.replace=function(E,B){E=_.p(E);for(var I=E.next();!I.done;I=E.next())delete this.tokenJars[I.value.encryptedTokenJarContents];ZDZ(this,B)};
var ZDZ=function(E,B){if(B.encryptedTokenJarContents&&(E.tokenJars[B.encryptedTokenJarContents]=B,typeof B.expirationSeconds==="string")){var I=Number(B.expirationSeconds);setTimeout(function(){delete E.tokenJars[B.encryptedTokenJarContents]},I*1E3);
E.cookiesEnabled&&_.yZ("CONSISTENCY",B.encryptedTokenJarContents,I,void 0,!0)}};var PNN,vc;PNN=window.location.hostname.split(".").slice(-2).join(".");_.H8=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var E=_.HA("LOCATION_PLAYABILITY_TOKEN");_.HA("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=z6Z(this))&&(E=this.localStorage.get("yt-location-playability-token"));E&&(this.locationPlayabilityToken=E,this.mostRecentPosition=void 0)};
_.H8.getInstance=function(){vc=_.WA("yt.clientLocationService.instance");vc||(vc=new _.H8,_.ka("yt.clientLocationService.instance",vc));return vc};
_.H8.prototype.setLocationOnInnerTubeContext=function(E){E.client||(E.client={});if(this.mostRecentPosition)E.client.locationInfo||(E.client.locationInfo={}),E.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),E.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),E.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),E.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)E.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.H8.prototype.handleResponse=function(E){var B;E=(B=E.responseContext)==null?void 0:B.locationPlayabilityToken;E!==void 0&&(this.locationPlayabilityToken=E,this.mostRecentPosition=void 0,_.HA("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=z6Z(this))&&this.localStorage.set("yt-location-playability-token",E,15552E3):_.yZ("YT_CL",JSON.stringify({loctok:E}),15552E3,PNN,!0))};
var z6Z=function(E){return E.localStorage===void 0?new _.M3("yt-client-location"):E.localStorage};
_.H8.prototype.clearLocationPlayabilityToken=function(E){E==="TVHTML5"?(this.localStorage=z6Z(this))&&this.localStorage.remove("yt-location-playability-token"):_.BGt("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.H8.prototype.getCurrentPositionFromGeolocation=function(){var E=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var B=!1,I=1E4;_.HA("INNERTUBE_CLIENT_NAME")==="MWEB"&&(B=!0,I=15E3);return new Promise(function(T,e){navigator.geolocation.getCurrentPosition(function(c){E.mostRecentPosition=c;T(c)},function(c){e(c)},{enableHighAccuracy:B,
maximumAge:0,timeout:I})})};
_.H8.prototype.createUnpluggedLocationInfo=function(E){var B={};E=E.coords;if(E==null?0:E.latitude)B.latitudeE7=Math.floor(E.latitude*1E7);if(E==null?0:E.longitude)B.longitudeE7=Math.floor(E.longitude*1E7);if(E==null?0:E.accuracy)B.locationRadiusMeters=Math.round(E.accuracy);return B};
_.H8.prototype.createLocationInfo=function(E){var B={};E=E.coords;if(E==null?0:E.latitude)B.latitudeE7=Math.floor(E.latitude*1E7);if(E==null?0:E.longitude)B.longitudeE7=Math.floor(E.longitude*1E7);return B};var mAR=function(E,B){var I=gG();E||(E="unknown");B||(B="unknown");E="MAIN_APP_WEB_PAGE_TYPE_"+E.toUpperCase();E in RoR||(E="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");B="MAIN_APP_WEB_REQUEST_TYPE_"+B.toUpperCase();B in EQZ||(B="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.v3(I,{mainAppWeb:{pageType:E,requestType:B,isShellLoad:_.gU("IS_SHELL_LOAD",!1)}})},QFZ={start:function(){_.v3(NI6(),{mainAppWeb:_.NK()})},
success:function(){_.yr(NI6(),"SUCCESS")},
failure:function(){_.yr(NI6(),"FAILURE")},
cancelled:function(){_.yr(NI6(),"CANCELLED")}};var dAu,h6D,M_c;dAu=_.km(["/sw.js"]);h6D=_.km(["/sw.js?0"]);_.sFZ=_.jR(dAu);M_c=_.jR(h6D);var uM6=function(){var E=Error.apply(this,arguments);this.message=E.message;"stack"in E&&(this.stack=E.stack)};
_.L(uM6,Error);_.JR.prototype.load=function(E){this.megabloxUrl_=_.HA("YPC_MB_URL");_.Sc(this.megabloxUrl_,(0,_.w1)(function(){E&&E()},this))};
_.UZB=function(E,B,I,T,e,c,Y,v,y,Z,P){_.Nhi(y);E.load((0,_.w1)(function(){try{var z=c?c:_.HA("HL"),m=_.HA("SESSION_INDEX");_.PIB("client",function(){CiU("59",{helpCenterPath:"/youtube",locale:z,window:window}).JSC$7859_loadChatSupport({authuser:String(m)})})}catch(u){throw gE(10,P,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),e&&e(u),_.xV(u),u;
}LtZ(this,B,I,T,e,c,Y,v,y,Z,P)},E))};
_.JR.prototype.openFixFlowDialog=function(E,B,I,T){this.load((0,_.w1)(function(){try{xAz(this,_.WA("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(E).withIntegratorCallback(B).load(I,T)}catch(e){throw _.xV(e),e;}},this))};
var xAz=function(E,B,I,T){var e=B.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.d("enable_window_constrained_buy_flow_dialog")&&(e=e.usingPopupStyle(_.WA("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));T&&(e=e.usingCloseCallback(T));B.bootstrap.fromPaymentsUrl(E.megabloxUrl_);E=B.bootstrap.asMashupMode(e);I=I?I:_.HA("HL");E.usingGaiaIndex(_.HA("SESSION_INDEX")).usingLocale(I).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.d("enable_google_payments_buyflow_material2_style_web")?
E.usingStyle(":m2;pc=#444;ac=#065fd4"):E.usingStyle(":md;pc=#444;ac=#065fd4");return E},LtZ=function(E,B,I,T,e,c,Y,v,y,Z,P){try{var z=_.WA("payments.business.integration");
if(!z)throw new uM6("payments.business.integration is undefined");var m=z.standaloneContextAuthId.forUserId(),u=xAz(E,z,c,v);Y&&u.usingServerAnalyticsEventHandler(Y);var x=u.inStandaloneContext(m).buyFlow(function(M){if(M&&(!M.integratorData||M.integratorData===""||M.error))if(M.error!=null)if(String(M.error)==="-1")_.g26(y);else{var N=String(M.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";gE(10,P,N,M.debugCode);
_.SP(N,y,M.debugCode);N=new _.P7("PAYMENT_ERROR_MESSAGE::"+M.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+M.internalErrorDetails);_.xV(N)}else gE(10,P,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.SP("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",y,"EMPTY_INTEGRATOR_DATA"),_.xV(Error("cg"));I&&I(M)}).withEncryptedParameters(B);
Z&&x.withClientParameters(JWG(_.qhQ(Z)));x.load(function(){gE(24,P);_.HN("ttc",void 0,"commerce_transaction");lYF("commerce_transaction");T&&T()},function(M){if(M==null?0:M.debugCode)var N=M==null?void 0:M.debugCode;
else if(!M||(M==null?0:M.debugCode))N="EMPTY_LOAD_FAILURE_ERROR",_.xV(Error(N));else{N="EMPTY_LOAD_FAILURE_DEBUG_CODE";var W=new _.P7("LOAD_FAILURE:"+M.message," DEBUG_CODE:"+N);_.xV(W)}gE(10,P,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",N);_.SP("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",y,N);_.xV(M);e&&e(M)})}catch(M){throw M instanceof uM6&&(gE(10,P,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),e&&e(M)),_.xV(M),M;
}};var G6l;G6l=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.o$d=function(E,B){B=B===void 0?!1:B;E=G6l.test(E)?_.KX(E):null;!B&&window.payments||!E?(E=_.gA(),B=E.promise,E.resolve()):B=_.n0(E,{attributes:{"data-payments-main":"",id:"payment-lib"}});return B};var ODD;ODD=_.km(["//www.googletagmanager.com/gtm.js?id=",""]);_.y5=function(E,B){_.tk(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:B}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.HA("GL")}),B=_.li("SCRIPT"),B.async=!0,_.nr(B,_.jR(ODD,E)),B.id="gtm",E=document.getElementsByTagName("script"),E.length==0?document.head.appendChild(B):(E=E[0],E.parentNode.insertBefore(B,E)))};
_.CM=function(E){if(E=JSON.parse(E))window.dataLayer=window.dataLayer||[],window.dataLayer.push(E)};var nwr,MUt;nwr=_.km(["https://clients2.google.com/gr/gr_sync.js"]);_.r0i=function(){};
_.r0i.prototype.init=function(){if(MUt()){var E=_.gA();E.resolve();return E.promise}return _.n0(_.jR(nwr)).then(function(){if(!MUt())throw Error("dg");},function(){throw Error("eg");
})};
_.b54=function(){if(!MUt())return"";var E=window.google.gr;E.init({async:{schedule:"sync"},merchantId:"youtube"});E.start();E=E.finish();return E==null?"":E};
MUt=function(){return window.google!=null&&window.google.gr!=null};var Urc,fT4=new Set,kS6;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.r=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.L(_.r,PolymerFakeBaseClassWithoutHtml);_.l6=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.L(_.l6,PolymerFakeBaseClassWithoutHtml);var Suc=window.ShadyDOM;var wZB,yyc,P_D,zxQ,QZF,drt,w5,tR;wZB=_.d("enable_shadydom_free_scoped_query_methods");yyc=_.d("enable_shadydom_free_scoped_node_methods");P_D=_.d("enable_shadydom_free_scoped_readonly_properties_batch_one");zxQ=_.d("enable_shadydom_free_parent_node");QZF=_.d("enable_shadydom_free_children");drt=_.d("enable_shadydom_free_last_child");w5=window.ShadyDOM;_.FN=w5&&w5.noPatch&&w5.wrap?w5.wrap:w5?function(E){return w5.patch(E)}:function(E){return E};
tR=function(E){if(E instanceof ShadowRoot)this.host=(0,_.FN)(E.host),this.root=E;else if(E.$$){this.host=(0,_.FN)(E);var B;this.root=(B=E.root)!=null?B:this.host}else if(E.polymerController){this.host=(0,_.FN)(E);var I;this.root=(I=this.host.shadowRoot)!=null?I:this.host}else this.root=this.host=(0,_.FN)(E)};
C_i();ZtG();hxc();sZc();mr6();var HDu={querySelector:function(E,B){B=WvJ(B,bj(E));E=_.oN(E);return AR(E).prototype.querySelector.call(E,B)},
querySelectorAll:function(E,B){B=WvJ(B,bj(E));E=_.oN(E);return AR(E).prototype.querySelectorAll.call(E,B)}},NPl={appendChild:function(E,B){var I=bj(E),T=_.rE(B);
return _.aTi(_.oN(E),I?_.Uq(B,I,T):B)},
cloneNode:function(E,B){var I=_.rE(E);E=_.oN(E);B=AR(E).prototype.cloneNode.call(E,B);return I?kG(B,I):B},
contains:function(E,B){var I=bj(E),T=_.rE(B);return I!==T?!1:vJB(E,B)},
insertBefore:function(E,B,I){var T=bj(E),e=_.rE(B);E=_.oN(E);B=T?_.Uq(B,T,e):B;return AR(E).prototype.insertBefore.call(E,B,I)},
removeChild:function(E,B){var I=bj(E);E=_.oN(E);B=I?kG(B,I):B;return AR(E).prototype.removeChild.call(E,B)},
replaceChild:function(E,B,I){var T=bj(E),e=_.rE(B);B=T?_.Uq(B,T,e):e?kG(B,e):B;I=T?kG(I,T):I;E=_.oN(E);return AR(E).prototype.replaceChild.call(E,B,I)},
getRootNode:function(E,B){B=B===void 0?{composed:!0}:B;var I;if(((I=B)!=null?I:{}).composed)E=V_i(E);else{B=E;for(E=r6c(E);E;)B=E,E=o26(E);E=B}return E}},Lfc=P_D?{firstChild:exc,
nextSibling:$rt,previousSibling:TQt,firstElementChild:lT6,lastElementChild:itc,nextElementSibling:BQc,previousElementSibling:IT4,childNodes:pZc}:{};zxQ&&(Lfc.parentNode=EJt);QZF&&(Lfc.children=Yv4);drt&&(Lfc.lastChild=cyG);wZB&&uPJ(HDu);yyc&&uPJ(NPl);xr4();var GSc=function(E){this.node=E instanceof ShadowRoot?E.host:E};
OtG();nJD();var gJi=new WeakMap;var JyG=Symbol("vd");var oJd=new Set(["tap","track","down","up"]),AyG=_.d("pbcm_fi_query_decorators");var ZG=function(){return _.l6.apply(this,arguments)||this};
_.L(ZG,_.l6);_.l=ZG.prototype;_.l.getState=function(){return this.store.getState()};
_.l.dispatch=function(E){this.store.dispatch(E)};
_.l.beforeRegister=function(){if(this&&typeof this==="object"){var E;var B=!!this.useSignals||!((E=this.polymerController)==null||!E.useSignals)}else B=!1;if(!B&&this.properties)for(B=_.p(Object.keys(this.properties)),E=B.next();!E.done;E=B.next()){var I=E.value;E=this.properties[I];if(E.selector){if(E.computed)throw Error("kg");I=["reduxPropertiesRecomputeTrigger",'"'+I+'"'].concat(_.ad(E.selectorArgs||[])).join(",");E.computed="recomputeReduxSelector("+I+")"}}};
_.l.attached=function(){var E=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){E.reduxPropertiesRecomputeTrigger++}));
_.d("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.l.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.l.recomputeReduxSelector=function(E,B){var I=_.aG.apply(2,arguments),T=this.properties[B].selector;if(!T)throw Error("ig`"+B);return T.apply(null,[this.store.getState()].concat(_.ad(I)))};
_.l.select=function(E){var B=_.aG.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return E.apply(null,[this.store.getState()].concat(_.ad(B)))};
_.Up.Object.defineProperties(ZG.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
ZG.prototype.recomputeReduxSelector=ZG.prototype.recomputeReduxSelector;_.k([_.X(),_.t("design:type",Number)],ZG.prototype,"reduxPropertiesRecomputeTrigger",void 0);ZG=_.k([_.cl()],ZG);var Pc=[],FfB={},mB=function(){return tJ.apply(this,arguments)||this};
_.L(mB,tJ);mB.prototype._addPropertyEffect=function(E,B,I){if(B==="__observeEffects"&&I){var T,e=(T=I.info.method)!=null?T:I.info.methodName;if(e){var c=this[e];this[e]=function(){Pc.push(e);try{c==null||c.apply(this,arguments)}finally{Pc.pop()}}}}_.mA._addPropertyEffect.apply(this,[E,
B,I])};
mB.prototype._setPendingProperty=function(E,B,I){if(Pc.length){var T=Pc[Pc.length-1],e;(e=FfB[this.is])!=null&&e.has(T)||(DrG(this.is,T),_.hK("polymerPropertyChangedInObserver",{componentName:this.is,observerName:T}))}return _.mA._setPendingProperty.apply(this,[E,B,I])};
mB=_.k([msG()],mB);var Kft=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Ek4,Y7={};_.d("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Y7);var yE=function(){return _.l6.apply(this,arguments)||this};
_.L(yE,_.l6);yE.prototype._setUnmanagedPropertyToNode=function(E,B,I){E.loggingStatus&&(E.loggingStatus.isDeclarativeExternal=!0);if(I!==E[B]||typeof I==="object")E[B]=I;E.is&&E.polymerController&&E.polymerController!==E&&a3(E.is,B,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");E.loggingStatus&&(E.loggingStatus.isDeclarativeExternal=!1)};
yE=_.k([_.cl()],yE);Rx6()&&(Hu.prototype._setUnmanagedPropertyToNode=(new yE)._setUnmanagedPropertyToNode);_.Cg4={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(E){},set polymerController(E){}}]};var zg=function(){var E=tJ.apply(this,arguments)||this;E.json=function(){};
return E};
_.L(zg,tJ);zg.prototype.equals=function(E,B){return E===B};
zg.prototype.isEmpty=function(E){return!E||_.Di(E)&&E.length===0};
zg=_.k([msG()],zg);var gwN=function(E){E=wTc(E);WO.call(this,E)};
_.L(gwN,WO);gwN.prototype.addProvider=function(E){E=E.key?E:wTc([E])[0];var B=this.keyIdToIndex.get(E.key.id);if(B){if(ezc(E,this.providers[B]))throw Error("lg`"+E.key.displayName);}else WO.prototype.addProvider.call(this,E)};
var S5l=new gwN([]);var JuD=!1;var adi={};JuD||(YCc(),JuD=!0);
adi.InjectBehavior={initializeInjection:function(){var E=this.provide;try{if((E=E!=null?E:[])&&E.length>0)for(var B=wTc(E),I=_.p(B),T=I.next();!T.done;T=I.next())S5l.addProvider(T.value);var e=new Set;ldf(this.behaviors||[],e);B={};for(var c=_.p(e),Y=c.next();!Y.done;Y=c.next()){var v=Y.value;v.inject&&Object.assign(B,v.inject)}this.inject&&Object.assign(B,this.inject);for(var y=_.p(Object.keys(B)),Z=y.next();!Z.done;Z=y.next()){var P=Z.value,z=B[P];try{this[P]=S5l.resolve(z)}catch(m){throw m;}}}catch(m){throw Error(m.message);
}}};var yFG;var w4J=/\bclass\b/.test(function(){}.toString()),zzD=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var Wtr=function(E){this.wasDefined=!0;Array.isArray(E)||E instanceof Array?(this.JSC$11136_getImpl=E[0],this.JSC$11136_setImpl=E[1]):this.JSC$11136_getImpl=E};
_.l=Wtr.prototype;_.l.getWithPath=function(E){return dc4(this.JSC$11136_getImpl(),E)};
_.l.setWithPath=function(E,B){var I=this;if(E.length)throw Error("mg");if(!this.JSC$11136_setImpl)throw Error("ng");vh(function(){I.JSC$11136_setImpl(B)})};
_.l.notifyPath=function(){throw Error("og");};
_.l.notifySplices=function(){throw Error("pg");};
_.l.getChangeRecordSignal=function(E,B){var I=this;if(E.length)throw Error("qg");return function(){var T=I.getWithPath(E);return{path:B!=null?B:"",base:T,value:T}}};
_.l.getSplicesSignal=function(){throw Error("rg");};
_.l.getPathMutationSignal=function(){throw Error("sg");};
_.l.pop=function(){throw Error("tg");};
_.l.push=function(){throw Error("ug");};
_.l.splice=function(){throw Error("vg");};
_.l.unshift=function(){throw Error("wg");};var z0=function(E){var B=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(E)||E instanceof Array?(this.JSC$11141_getImpl=E[0],this.JSC$11141_setImpl=E[1]):this.JSC$11141_getImpl=E;this.wasDefined=!1;e2(function(){B.wasDefined=B.JSC$11141_getImpl()!==void 0})};
z0.prototype.getWithPath=function(E){return dc4(this.JSC$11141_getImpl(),E)};
z0.prototype.setWithPath=function(E,B){var I=this;if(E[E.length-1]!=="*"&&E[E.length-1]!=="splices"){if(E.length===0){if(!this.JSC$11141_setImpl)throw Error("xg");this.wasDefined||(this.wasDefined=B!==void 0);vh(function(){I.JSC$11141_setImpl(B)})}else{for(var T=e2(function(){return I.getWithPath([])}),e=0;e<E.length-1;e++){if(!T)return;
T=T[E[e]]}e=E[E.length-1];T&&(T[e]=B);this.wasDefined||(this.wasDefined=E.length>1||B!==void 0)}Xbu(this,E,{pathComponents:E,value:B})}};
z0.prototype.notifyPath=function(E,B){E.length===0?B&&this.setWithPath(E,B.value):Xbu(this,E,{pathComponents:E,value:B==null?void 0:B.value,fallbackWhenUndefined:B==null?void 0:B.value})};
var Xbu=function(E,B,I,T){if(E.setMutationSignal){var e=++E.mutationIndex,c=[E.observedPath],Y=E.observedPath,v;B.length===0&&(v=Y);for(var y=0;y<B.length;y++){var Z=Y.subPaths[B[y]];if(!Z)break;c.push(Z);Y=Z;y===B.length-1&&(v=Z)}for(B=!1;c.length;)Y=c.shift(),Y.data={index:e,mutation:I,spliceMutationIndex:T},B||(B=Y===v),B&&c.push.apply(c,_.ad(Object.values(Y.subPaths)));vh(function(){E.setMutationSignal(e)})}};
z0.prototype.notifySplices=function(E,B){var I=this,T=e2(function(){return I.getWithPath(E)}),e=[].concat(_.ad(E),["splices"]);
Xbu(this,e,{pathComponents:e,value:{indexSplices:B}});if(T==null?0:T.length)B=this.mutationIndex,e=[].concat(_.ad(E),["length"]),Xbu(this,e,{pathComponents:e,value:T.length},B)};
var rut=function(E,B,I,T,e,c){E.notifySplices(I,[{index:T,addedCount:e,removed:c,object:B,type:"splice"}])},bD$=function(E,B){E=E.observedPath;
for(var I=0;I<B.length;I++){var T=B[I],e=E.subPaths[T];e||(e={pathComponents:B.slice(0,I+1),subPaths:{}},E.subPaths[T]=e);E=e}},AuR=function(E,B,I){bD$(E,B);
if(!E.getMutationSignal){var T=_.p(_.lQ(E.mutationIndex,void 0,"HavCgf"));E.getMutationSignal=T.next().value;E.setMutationSignal=T.next().value}var e=E.getMutationSignal;return _.aJ(function(){e();return I(owh(E,B))},void 0,"BYaPo")};
z0.prototype.getChangeRecordSignal=function(E,B){var I=this,T=this.mutationIndex,e;return AuR(this,E,function(c){if(c&&c.index>T){var Y=c.mutation;T=c.index;e=void 0}c=e2(function(){return I.getWithPath(E)});
if(Y){var v=Y.pathComponents[Y.pathComponents.length-1],y=[].concat(_.ad(Y.pathComponents));if(v==="splices"||v==="length")return{base:c,path:(B?[B].concat(_.ad(y)):y).join("."),value:Y.value};var Z=E.length>y.length?E:y,P;return{base:c!=null?c:Y.fallbackWhenUndefined,path:(B?[B].concat(_.ad(Z)):Z).join("."),value:(P=e2(function(){return I.getWithPath(Z)}))!=null?P:Y.fallbackWhenUndefined}}e||(e={base:c,
path:(B?[B].concat(_.ad(E)):E).join("."),value:c});return e})};
z0.prototype.getSplicesSignal=function(E){var B=this.mutationIndex,I;return AuR(this,E,function(T){if(T&&T.index>B&&T.spliceMutationIndex!==B){var e=T.mutation;B=T.index;I=void 0}return e&&e.pathComponents[e.pathComponents.length-1]==="splices"?I=T=e.value:I})};
z0.prototype.getPathMutationSignal=function(E){var B=this;bD$(this,E);if(!this.getMutationSignal){var I=_.p(_.lQ(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=I.next().value;this.setMutationSignal=I.next().value}var T=this.getMutationSignal,e=this.mutationIndex,c;return _.aJ(function(){T();var Y=owh(B,E);if(Y&&Y.index>e&&Y.mutation&&hz6(Y.mutation.pathComponents,E)){var v=Y.mutation;e=Y.index}if(!c||e!==c.index){var y,Z;Y=(Z=e2(function(){return B.getWithPath(E)}))!=null?Z:(y=v)==null?
void 0:y.fallbackWhenUndefined;
c={index:e,value:Y}}return c},void 0,"Aumsyf")};
var owh=function(E,B){E=E.observedPath;B=_.p(B);for(var I=B.next();!I.done;I=B.next())E=E.subPaths[I.value];return E.data};
z0.prototype.pop=function(E){var B=this,I=e2(function(){return B.getWithPath(E)});
if(!(I instanceof Array))throw Error("yg");var T=I.length>0,e=I.pop();T&&rut(this,I,E,I.length,0,[e]);return e};
z0.prototype.push=function(E){var B=_.aG.apply(1,arguments),I=this,T=e2(function(){return I.getWithPath(E)});
if(!(T instanceof Array))throw Error("zg");var e=T.length,c=T.push.apply(T,_.ad(B));B.length&&rut(this,T,E,e,B.length,[]);return c};
z0.prototype.splice=function(E,B,I){var T=_.aG.apply(3,arguments),e=this,c=e2(function(){return e.getWithPath(E)});
if(!(c instanceof Array))throw Error("Ag");B<0?B=c.length-Math.floor(-B):B&&(B=Math.floor(B));var Y=c.splice.apply(c,[B,I].concat(_.ad(T)));(T.length||Y.length)&&rut(this,c,E,B,T.length,Y);return Y};
z0.prototype.unshift=function(E){var B=_.aG.apply(1,arguments),I=this,T=e2(function(){return I.getWithPath(E)});
if(!(T instanceof Array))throw Error("Bg");var e=T.unshift.apply(T,_.ad(B));B.length&&rut(this,T,E,0,B.length,[]);return e};var jFZ=!0,UAu=!1,TPd=!1,k6Z=!1,mE=!1,tUu=0;k6Z=!1;tUu=0;jFZ=!0;mE=UAu=TPd=!1;var Q5=function(E,B,I){this.model=E;this.unknownSignalResolver=B;this.options=I;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];B=_.p(HG4());E=B.next().value;B=B.next().value;this.owner=E;this.disposeImpl=B};
Q5.prototype.dispose=function(){if(!this.isDisposed){for(var E=_.p(this.childSignalProxies),B=E.next();!B.done;B=E.next())B.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var fPZ=function(E,B){E=fx(E.owner);try{B()}finally{fx(E)}};
Q5.prototype.effect=function(E){fPZ(this,function(){_.QS(E)})};
var VUR=function(E,B){E.options!=null||(E.options={});var I;(I=E.options).immutableProps!=null||(I.immutableProps=new Set);E.options.immutableProps.add(B)},Ib4=function(E,B){B=""+B;
q5X(E,B);var I;if((I=E.model.__signalCache)==null?0:I.has(B))I=E.model.__signalCache.get(B),Array.isArray(I)&&VUR(E,B);var T,e,c;return(c=(T=E.options)==null?void 0:(e=T.immutableProps)==null?void 0:e.has(B))!=null?c:!1},Ftu=function(E,B){var I;
E.unknownSignalResolver&&(I=E.unknownSignalResolver(B));var T,e;((T=E.options)==null?0:(e=T.immutableProps)==null?0:e.has(B))?I!=null||(I=new Wtr(_.lQ(E.model[B],void 0,"q2oXO"))):I!=null||(I=new z0(_.lQ(E.model[B],void 0,"fw0V7b")));var c=E.model.hostElement;Object.defineProperty(E.model,B,{get:function(){$cc(c,B);return I.getWithPath([])},
set:function(Y){vl(c,B);E.setWithPath([B],Y)},
configurable:!0});return I},q5X=function(E,B){var I,T,e;
((I=E.model.__signalCache)==null||!I.has(B))&&((T=E.options)==null?0:(e=T.externalSignalProps)==null?0:e.has(B))&&E.model[B]},sM=function(E,B){B=""+B;
var I=E.signalCache[B];if(I!==void 0)return I;I=!1;q5X(E,B);var T;if((T=E.model.__signalCache)==null?0:T.has(B))if(I=E.model.__signalCache.get(B),Array.isArray(I))I=!0,VUR(E,B);else return E.signalCache[B]=E.model.__signalCache.get(B).signal,E.signalCache[B];var e,c;T=(c=(e=E.options)==null?void 0:e.reactivityMode)!=null?c:0;var Y,v;if(!((Y=E.options)==null?0:(v=Y.reactiveProps)==null?0:v.has(B))&&!I&&T===1)throw Error("Cg`"+B);e=I?DAX(E,B):Ftu(E,B);return E.signalCache[B]=e},DAX=function(E,B){var I=
Object.getOwnPropertyDescriptor(E.model.constructor.prototype,B),T=function(){return E.model[B]};
return new Wtr(I&&I.get&&!I.set?T:[T,function(e){E.model[B]=e}])};
Q5.prototype.getWithPath=function(E){var B=_.p(E);E=B.next().value;B=bi(B);$cc(this.model.hostElement,""+E);return sM(this,E).getWithPath(B)};
Q5.prototype.setWithPath=function(E,B){if(E.length){vl(this.model.hostElement,E.join("."));var I=_.p(E);E=I.next().value;I=bi(I);sM(this,E).setWithPath(I,B)}};
Q5.prototype.getPathMutationSignal=function(E){var B=_.p(E);E=B.next().value;B=bi(B);return sM(this,E).getPathMutationSignal(B)};
Q5.prototype.notifyPath=function(E,B){var I=_.p(E);E=I.next().value;I=bi(I);sM(this,E).notifyPath(I,B)};
var KtD=function(E,B){if(B.type==="literal")return function(){return{rootWasDefined:!0,value:B.value}};
var I=dp(B.path),T=_.p(I),e=T.next().value;T=bi(T);var c,Y;if(B.type==="path"&&(I.length===1||((c=E.options)==null?0:(Y=c.immutableProps)==null?0:Y.has(e))))return function(){var z=E.getWithPath(I.slice(0,1)),m=dc4(z,I.slice(1));z=z!==void 0;mE&&(z=sM(E,I[0]).wasDefined);return{rootWasDefined:z,value:m}};
var v=sM(E,e);if(B.type==="path"){var y=v.getPathMutationSignal(T);return function(){var z=mE?v.wasDefined:uQ(E.owner,function(){return v.getWithPath([])})!==void 0;
var m,u=(m=y())==null?void 0:m.value;return{rootWasDefined:z,value:u}}}if(B.type==="splices"){var Z=v.getSplicesSignal(T);
return function(){var z=Z();return{rootWasDefined:mE?v.wasDefined:z!==void 0,value:z}}}var P=v.getChangeRecordSignal(T,""+e);
return function(){var z=P();return{rootWasDefined:mE?v.wasDefined:z!==void 0,value:z}}},OGc=function(E,B,I){var T=I.map(function(v){return KtD(E,v)}),e=I.length===0,c=[],Y=I.length!==1||I[0].type!=="path"?!1:!0;
E.effect(function(){for(var v=T.length,y=[],Z=!!c.length,P=0;P<v;P++){var z=T[P](),m=z.rootWasDefined;z=z.value;e||(e=m);y[P]=z;Y&&(y[P+v]=Z?c[P]:y[P],c[P]=z)}e&&uQ(E.owner,function(){return void B.apply(null,_.ad(y))})})},sMi=function(E,B,I,T,e){var c=sM(E,B);
e!==void 0&&c.setWithPath([],e);OGc(E,function(){var Y=_.aG.apply(0,arguments);vl(E.model.hostElement,B,!0);c.setWithPath([],I.apply(null,_.ad(Y)))},T)};
Q5.prototype.arrayPush=function(E){var B=_.aG.apply(1,arguments),I=_.p(E),T=I.next().value;I=bi(I);T=sM(this,T);return T.push.apply(T,[I].concat(_.ad(B)))};
Q5.prototype.arraySplice=function(E,B,I){var T=_.aG.apply(3,arguments),e=_.p(E),c=e.next().value;e=bi(e);c=sM(this,c);return c.splice.apply(c,[e,B,I].concat(_.ad(T)))};
Q5.prototype.arrayUnshift=function(E){var B=_.aG.apply(1,arguments),I=_.p(E),T=I.next().value;I=bi(I);T=sM(this,T);return T.unshift.apply(T,[I].concat(_.ad(B)))};
Q5.prototype.notifySplices=function(E,B){var I=_.p(E);E=I.next().value;I=bi(I);sM(this,E).notifySplices(I,B)};var X4G=/([^\s]+?)\(([\s\S]*)\)/,SCd=/\.([^.]+)$/,bGB=/\\,/g,NiQ=/&comma;/g,gkt=/\\(.)/g,rF4=[],JFG={"*":"wildcard",splices:"splices"};var Fj6=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"),tSi=/[A-Z]/,R6D=["class","hidden","id","on-dom-change"],KjG=new Set([].concat(_.ad(R6D),
["if","notify-dom-change","restamp"])),Rzc=new Set([].concat(_.ad(R6D),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),EoG=new Set(["restamp"]);var Ktc=new Set(["className","id"]);var eQ6=Symbol(),vo6=window;var QWt=window;var GtG=0,sWf=0,u6=[],xXB=0,hQc=!1,L6t=document.createTextNode("");(new window.MutationObserver(u9d)).observe(L6t,{characterData:!0});var x7=new Map,L$=0,Es6=function(E){this.mappedHandleId=E},noJ=function(E,B,I,T){this.mappedHandleId=E;
var e=this;this.mappedHandleId=E;this.callback=B;this.waitTime=I;this.schedulerPriority=T;this.handleId=_.Ll.addJob(function(){e.callback();x7.delete(e.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.L(noJ,Es6);noJ.prototype.cancel=function(){_.Ll.cancelJob(this.handleId);x7.delete(this.mappedHandleId)};
var MrG=function(E,B){this.mappedHandleId=E;var I=this;this.mappedHandleId=E;this.callback=B;this.handleId=Omi(function(){I.callback();x7.delete(I.mappedHandleId)})};
_.L(MrG,Es6);MrG.prototype.cancel=function(){var E=this.handleId-sWf;E<0||u6.length<=E||(u6[E]=null);x7.delete(this.mappedHandleId)};var SUB=function(){};
SUB.prototype.cancel=function(){this.jobHandle!==void 0&&(HmQ(this.jobHandle),this.jobHandle=void 0)};
SUB.prototype.run=function(E,B,I){var T=this;this.cancel();this.callback=E;this.jobHandle=_.Gg(function(){E();T.callback=void 0},B,I)};
SUB.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var NzJ=new WeakMap;var Byz=fL(function(E){for(var B=E,I=0;I<3;I++)B=Object.getPrototypeOf(B);delete B.prototype.connectedCallback;var T=function(){return E.apply(this,arguments)||this};
_.L(T,E);T.prototype._attachDom=function(e){if(!e)return null;var c=(0,_.FN)(this.hostElement);c.attachShadow({mode:"open",shadyUpgradeFragment:e});c.shadowRoot.appendChild(e);return c.shadowRoot};
T.prototype._takeAttributes=function(){for(var e=this.hostElement.attributes,c=0;c<e.length;c++){var Y=e[c],v=void 0,y=void 0;(y=(v=this).__attributeReaction)==null||y.call(v,Y.name,null,Y.value)}};
T.prototype._readyClients=function(){E.prototype._readyClients.call(this);this.root=this};
T.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);E.prototype.connectedCallback.call(this)};
_.Up.Object.defineProperties(T,{template:{configurable:!0,enumerable:!0,get:function(){return T.prototype._template}}});
return T}),$Jz=fL(function(E){var B=function(){return E.apply(this,arguments)||this};
_.L(B,E);B.prototype.created=function(){if(this.__notifyEffects)for(var I=_.p(Object.values(this.__notifyEffects)),T=I.next();!T.done;T=I.next()){T=_.p(T.value);for(var e=T.next();!e.done;e=T.next())e.value.fn=rNc}if(this.__reflectEffects)for(I=_.p(Object.values(this.__reflectEffects)),T=I.next();!T.done;T=I.next())for(T=_.p(T.value),e=T.next();!e.done;e=T.next())e.value.fn=bmF};
B.prototype._addEventListenerToNode=function(I,T,e){I=n$(I);sp(I,T,e)||E.prototype._addEventListenerToNode.call(this,I,T,e)};
B.prototype._removeEventListenerFromNode=function(I,T,e){I=n$(I);uZ(I,T,e)||E.prototype._removeEventListenerFromNode.call(this,I,T,e)};
B.prototype._propertiesChanged=function(I,T,e){if(this.__dataToNotify&&this.__notifyEffects)for(var c=_.p(Object.keys(this.__dataToNotify)),Y=c.next();!Y.done;Y=c.next()){Y=Y.value;var v=XHc(Y);this.__notifyEffects[v]||delete this.__dataToNotify[Y]}else this.__dataToNotify=null;E.prototype._propertiesChanged.call(this,I,T,e)};
B.prototype.fire=function(I,T,e){T=T===void 0?{}:T;var c;return _.$O(n$((c=e==null?void 0:e.node)!=null?c:this),I,T,e)};
B.prototype._ensureAttribute=function(I,T){var e=n$(this);e.hasAttribute(I)||hd(e,T,I)};
B.prototype.isLightDescendant=function(I){var T=n$(this);return n$(T)!==I&&_.n(T).contains(I)&&_.n(T).getRootNode()===_.n(I).getRootNode()};
return B});
_.Qi.ready=function(){var E;((E=this.hostElement)!=null?E:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var B;((B=this.hostElement)!=null?B:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.OI._subscribeIronResize=function(E){var B;((B=E.hostElement)!=null?B:E).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.OI._unsubscribeIronResize=function(E){var B;((B=E.hostElement)!=null?B:E).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var jWQ=[Array,Boolean,Date,Number,Object,String],Hl=function(E,B,I,T){this.polySiInfo=E;this.polySiParams=B;this.polySiContext=I;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;T||this instanceof HTMLElement&&(T=this);if(!T)throw Error("Jg");this.allowedProps=B.allowedProps;this.hostElement=T;this.is=E.is;this.upgradeDisabled=!!B.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");E=new Set(B.reactiveSchemas.filter(function(e){return e.type!==
"observe"}).map(function(e){return e.propertyKey}));
this.signalProxy=new Q5(this,void 0,{reactiveProps:E,reactivityMode:B.reactivityMode});this.__dataHasAccessor={};B=_.p(B.reactiveSchemas);for(E=B.next();!E.done;E=B.next())E=E.value,E.type==="signal"&&(this.__dataHasAccessor[E.propertyKey]=!0);this.upgradeDisabled||I5l(this)};
Hl.prototype.getExtraMethodsToForward=function(){return[]};
var I5l=function(E){E.polySiContext.didRegister||(E.registered(),E.polySiContext.didRegister=!0);E.polySiContext.finalizedTemplate||(E.polySiContext.finalizedTemplate={},E.polySiParams.templateGetter&&(E.polySiContext.finalizedTemplate.processedTemplate=dXt(E.polySiParams.templateGetter,E.polySiParams.is)));TyZ(E);var B=E.hostElement;B.loggingStatus!=null||(B.loggingStatus={});B.loggingStatus.isInitializing=!0;e2(function(){return void E.created()});
B.loggingStatus.isInitializing=!1;E.isPolySiElementConnected&&eMr(E)},eMr=function(E){E.didCallReady||(e2(function(){return void E.ready()}),E.didCallReady=!0);
E.isAttached=!0;E.attached()};
_.l=Hl.prototype;_.l.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||eMr(this)};
_.l.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.l.attributeChangedCallback=function(E,B,I){if(this.upgradeDisabled)E==="disable-upgrade"&&I===null&&(this.upgradeDisabled=!1,I5l(this));else if(B!==I){var T=_.yT(E),e=this.polySiContext.typesForSignals[T];if(e){switch(e){case Object:try{var c=JSON.parse(I)}catch(v){c=I}break;case Array:try{c=JSON.parse(I)}catch(v){c=null}break;case Date:c=isNaN(I)?String(I):Number(I);c=new Date(c);break;case Boolean:c=I!==null;break;case Number:c=Number(I);break;default:c=I}this[T]=c}T=_.p(this.polySiParams.behaviors);
for(e=T.next();!e.done;e=T.next())c=void 0,(c=e.value.attributeChanged)==null||c.call(this,E,B,I);var Y;(Y=this.attributeChanged)==null||Y.call(this,E,B,I)}};
_.l.attributeChangedCallbackWrapper=function(E,B,I){this.attributeChangedCallback(E,B,I)};
_.l.setPropertiesFromInitialAttributeValues=function(){for(var E=0;E<this.hostElement.attributes.length;E++){var B=this.hostElement.attributes[E];(B.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(B.name))&&this.attributeChangedCallback(B.name,null,B.value)}};
_.l.created=function(){this.provide=this.polySiParams.provide;var E;(E=this.initializeInjection)==null||E.call(this);E=_.p(this.polySiParams.reactiveSchemas);for(var B=E.next();!B.done;B=E.next())B=B.value,B.type==="signal"&&(this.mutablePropNames.add(B.propertyKey),sM(this.signalProxy,B.propertyKey));ANB(this,this.polySiInfo,this.polySiParams.behaviors);E=_.p(this.polySiParams.reactiveSchemas);for(B=E.next();!B.done;B=E.next())B=B.value,B.type==="signal"&&B.value!==void 0&&(this.signalProxy.model[B.propertyKey]=
typeof B.value==="function"?B.value.call(this):B.value);if(this.polySiParams.signalProperties)for(E=_.p(this.polySiParams.signalProperties),B=E.next();!B.done;B=E.next()){B=B.value;var I=void 0;((I=this.__signalCache)==null?0:I.has(B))||(this.signalProxy.model[B]=void 0)}k6Z||l5N(this);ooc(this);E=_.p(this.polySiParams.behaviors);for(B=E.next();!B.done;B=E.next())I=void 0,(I=B.value.created)==null||I.call(this);var T;(T=this.polySiInfo.created)==null||T.call(this)};
_.l.registered=function(){var E=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var B=Object.getPrototypeOf(this);B.addReactiveSchema=function(v){E.polySiParams.reactiveSchemas.push(v)};
for(var I=_.p(this.polySiParams.behaviors),T=I.next();!T.done;T=I.next()){var e=void 0;(e=T.value.beforeRegister)==null||e.call(B)}var c;(c=this.polySiInfo.beforeRegister)==null||c.call(B);B.addReactiveSchema=ktd;I=_.p(this.polySiParams.behaviors);for(T=I.next();!T.done;T=I.next())e=void 0,(e=T.value.registered)==null||e.call(B);var Y;(Y=this.polySiInfo.registered)==null||Y.call(B)};
_.l.ready=function(){var E;(E=this.beforeReady)==null||E.call(this);k6Z&&l5N(this);var B;if(E=(B=this.polySiContext.finalizedTemplate)==null?void 0:B.processedTemplate){E=mXf(E.template,E.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:E.hasInsertionPoint,thisCtx:this});B=E.nodesById;E=E.root;var I=this.hostElement;var T=T===void 0?!1:T;I=(0,_.FN)(I);if(!I.attachShadow)throw Error("Bd");if(!I.shadowRoot||T)I.attachShadow({mode:"open",shadyUpgradeFragment:E}),I.shadowRoot.appendChild(E);
this.root=I.shadowRoot;this.$=B}cru(this);T=_.p(this.polySiParams.behaviors);for(B=T.next();!B.done;B=T.next())E=void 0,(E=B.value.ready)==null||E.call(this);var e;(e=this.polySiInfo.ready)==null||e.call(this)};
_.l.attached=function(){for(var E=_.p(this.polySiParams.behaviors),B=E.next();!B.done;B=E.next()){var I=void 0;(I=B.value.attached)==null||I.call(this)}var T;(T=this.polySiInfo.attached)==null||T.call(this)};
_.l.detached=function(){for(var E=_.p(this.polySiParams.behaviors),B=E.next();!B.done;B=E.next()){var I=void 0;(I=B.value.detached)==null||I.call(this)}var T;(T=this.polySiInfo.detached)==null||T.call(this)};
var TyZ=function(E){for(var B=_.p(E.polySiParams.behaviors),I=B.next();!I.done;I=B.next())if(I=I.value,I.listeners)for(var T in I.listeners)zQQ(E,E.hostElement,T,I.listeners[T]);if(E.polySiInfo.listeners)for(var e in E.polySiInfo.listeners)zQQ(E,E.hostElement,e,E.polySiInfo.listeners[e])},zQQ=function(E,B,I,T,e){E=QMd(E,T,e);
sp(B,I,E)||B.addEventListener(I,E);return E},l5N=function(E){for(var B=_.p(E.polySiParams.reactiveSchemas),I=B.next();!I.done;I=B.next())I=I.value,I.type==="compute"||I.type==="computeWithMethod"?uti(E.signalProxy,I,E):I.type==="redux"?GK4(E.signalProxy,I,E.store):I.type==="signal"&&I.readOnly&&xcf(E.signalProxy,I)},cru=function(E){for(var B=_.p(E.polySiParams.reactiveSchemas),I=B.next(),T={};!I.done;T={schema$jscomp$12:void 0},I=B.next())T.schema$jscomp$12=I.value,T.schema$jscomp$12.type==="notify"?
nkJ(E.signalProxy,T.schema$jscomp$12,E.hostElement):T.schema$jscomp$12.type==="observe"?MSt(E.signalProxy,T.schema$jscomp$12,E):T.schema$jscomp$12.type==="reflect"&&E.signalProxy.effect(function(c){return function(){var Y=E.signalProxy.getWithPath([c.schema$jscomp$12.propertyKey]);
AFG(E.hostElement,c.schema$jscomp$12.propertyKey,Y)}}(T));
if(E.reflectedAttributes)for(B=_.p(Object.entries(E.reflectedAttributes)),T=B.next(),I={};!T.done;I={key$jscomp$873:void 0,value$jscomp$8783:void 0},T=B.next()){var e=_.p(T.value);T=e.next().value;e=e.next().value;I.key$jscomp$873=T;I.value$jscomp$8783=e;E.signalProxy.effect(function(c){return function(){AFG(E.hostElement,c.key$jscomp$873,(0,c.value$jscomp$8783)())}}(I))}};
_.l=Hl.prototype;_.l._setPendingProperty=function(E,B){this.set(E,B);return!1};
_.l._enableProperties=function(){};
_.l._setPendingPropertyOrPath=function(E,B){this.notifyPath(E,B);return!1};
_.l._addPropertyEffect=function(){};
_.l._stampTemplate=function(){throw Error("Kg");};
_.l.fire=function(E,B,I){B=B===void 0?{}:B;I=I===void 0?{}:I;var T,e,c={bubbles:(T=I.bubbles)!=null?T:!0,cancelable:!!I.cancelable,composed:(e=I.composed)!=null?e:!0},Y;return _.$O(trB((Y=I.node)!=null?Y:this.hostElement),E,B,c)};
_.l.get=function(E,B){var I=dp(E);return B?dc4(B,I):E==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(I)};
_.l.linkPaths=function(){};
_.l.listen=function(E,B,I){E=trB(E);this.boundListeners!=null||(this.boundListeners=new WeakMap);var T=this.boundListeners.get(E);T||(T={},this.boundListeners.set(E,T));var e=B+I;T[e]||(T[e]=zQQ(this,E,B,I))};
_.l.notifyPath=function(E,B){this.signalProxy.notifyPath(dp(E),arguments.length===2?{value:B}:void 0)};
_.l.canNotifyPath=function(E){var B,I;return this.mutablePropNames.has(E)&&!((B=this.signalProxy.options)==null?0:(I=B.immutableProps)==null?0:I.has(E))};
_.l.notifySplices=function(E,B){this.signalProxy.notifySplices(dp(E),B)};
_.l.pop=function(E){var B=this.signalProxy;E=dp(E);var I=_.p(E);E=I.next().value;I=bi(I);return sM(B,E).pop(I)};
_.l.push=function(E){var B=_.aG.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[dp(E)].concat(_.ad(B)))};
_.l.set=function(E,B,I){if(I)throw Error("Lg");E==="hidden"?this.hostElement.hidden=!!B:this.signalProxy.setWithPath(dp(E),B)};
_.l.setProperties=function(E){E=_.p(Object.entries(E));for(var B=E.next();!B.done;B=E.next()){var I=_.p(B.value);B=I.next().value;I=I.next().value;this[B]=I}};
_.l.splice=function(E,B,I){var T=_.aG.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[dp(E),B,I].concat(_.ad(T)))};
_.l.unlinkPaths=function(){};
_.l.unlisten=function(E,B,I){E=trB(E);if(this.boundListeners){var T=this.boundListeners.get(E);if(T){I=B+I;var e=T[I];e&&(uZ(E,B,e)||E.removeEventListener(B,e),delete T[I])}}};
_.l.unshift=function(E){var B=_.aG.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[dp(E)].concat(_.ad(B)))};
_.Up.Object.defineProperties(Hl.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 IPi=[Array,Boolean,Date,Number,Object,String];var lPB=!1;var d5=function(){var E=HTMLElement.apply(this,arguments)||this;E.restamp=!1;E.notifyDomChange=!1;E.JSC$11249_didCallConnected=!1;E.JSC$11249_renderDebouncer=null;E.disableTemplateUpdateSignalImpl=Ni()?void 0:_.lQ(!1,void 0,"zLXz1e");var B;E.getDisableTemplateUpdate=(B=E.disableTemplateUpdateSignalImpl)==null?void 0:B[0];var I;E.setDisableTemplateUpdate=(I=E.disableTemplateUpdateSignalImpl)==null?void 0:I[1];return E};
_.L(d5,HTMLElement);var iE$=function(E){E.conditionSignalImpl!=null||(E.conditionSignalImpl=new z0(_.lQ(!1,void 0,"wcuOQ")));return E.conditionSignalImpl};
_.l=d5.prototype;_.l.showHideChildren=function(E){p5Z(this,E,this.if)};
_.l.attributeChangedCallback=function(E,B,I){if(this.JSC$11249_didCallConnected)throw Error("Pg`"+E);E==="notify-dom-change"?this.notifyDomChange=I!==null:E==="restamp"&&(this.restamp=I!==null)};
_.l.debounceRender=function(){this.JSC$11249_renderDebouncer=_.Tz(this.JSC$11249_renderDebouncer,xq,this.JSC$11249_renderImpl.bind(this));_.eo(this.JSC$11249_renderDebouncer)};
_.l.disconnectedCallback=function(){var E=(0,_.FN)(this).parentNode;(!E||E.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in E&&!E.host)&&YN6(this)};
_.l.connectedCallback=function(){var E=this;this.JSC$11249_didCallConnected=!0;jFZ?cuc():this.style.display="none";this.parentSignalProxy.effect(function(){iE$(E).getWithPath([]);E.debounceRender()})};
_.l.render=function(){_.po()};
_.l.JSC$11249_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var E=this.if;if(E){a:{var B=(0,_.FN)(this).parentNode;if(this.hasInstance()){var I=this.instance.children;if((I==null?0:I.length)&&(0,_.FN)(this).previousSibling!==I[I.length-1])for(var T=0;T<I.length;T++)(0,_.FN)(B).insertBefore(I[T],this)}else{if(!B){B=!1;break a}a5r(this,B)}B=!0}if(!B)return}else this.restamp&&YN6(this);p5Z(this,!1,E);E&&vsh(this);UAu&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.l.hasInstance=function(){return!!this.instance};
var a5r=function(E,B){var I=E.parentSignalProxy;if(Ni()){var T=_.p(_.lQ(!0,void 0,"wXzgnc"));var e=T.next().value;T=T.next().value;I=E.parentSignalProxy}else{var c;var Y=new Q5((c=yru(E))!=null?c:{},function(y){var Z=sM(E.parentSignalProxy,y).getChangeRecordSignal([]);y=_.lQ(void 0,void 0,"mryEkc");var P=new z0(y);Y.effect(function(){if(E.getDisableTemplateUpdate&&!E.getDisableTemplateUpdate()){var z=Z();P.notifyPath(dp(z.path),{value:z.value})}});
return P});
E.parentSignalProxy.childSignalProxies.push(Y);var v=I=Y}I=mXf(E.templateInfo,E.templateInfo.nodeInfoList,I,{eventListenerHost:E.eventListenerHost,hasInsertionPoint:E.templateInfo.hasInsertionPoint,thisCtx:E.eventListenerHost,enabledSignal:Ni()?e:void 0,getModel:function(){return yru(E)}}).root;
E.instance={root:I,children:[],hidden:!1,signalProxy:v,getTemplateUpdatesEnabled:e,setTemplateUpdatesEnabled:T};v=_.p(I.childNodes);for(e=v.next();!e.done;e=v.next())E.instance.children.push(e.value);(0,_.FN)(B).insertBefore(E.instance.root,E)},yru=function(E){if((E=E.parentSignalProxy.model)&&!E.hostElement){var B={},I;
for(I in E)E.hasOwnProperty(I)&&(B[I]=E[I]);return B}},YN6=function(E){if(E.instance){var B=E.instance.children;
if(B.length){var I=(0,_.FN)(B[0]).parentNode;if(I){I=(0,_.FN)(I);for(var T=0;T<B.length;T++)I.removeChild(B[T])}}Ni()?E.instance.setTemplateUpdatesEnabled(!1):E.instance.signalProxy.dispose();E.instance=void 0}},p5Z=function(E,B,I){B=B||!I;
E.instance&&E.instance.hidden!==B&&(E.instance.hidden=B,e6G(B,E.instance.children))},vsh=function(E){if(Ni()){var B=E.instance;
B&&uQ(E.parentSignalProxy.owner,function(){return!B.getTemplateUpdatesEnabled()})&&B.setTemplateUpdatesEnabled(!0)}else E.setDisableTemplateUpdate(!1)};
_.Up.Object.defineProperties(d5.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var E=this;return uQ(this.parentSignalProxy.owner,function(){return iE$(E).getWithPath([])})},
set:function(E){E||(Ni()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));iE$(this).setWithPath([],!!E)}}});
_.Up.Object.defineProperties(d5,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",d5);var CPZ=[],hh=function(){var E=HTMLElement.apply(this,arguments)||this;E.as="item";E.indexAs="index";E.itemsIndexAs="itemsIndex";E.targetFramerate=20;E.notifyDomChange=!1;E.isDetached=!1;E.JSC$11256_renderDebouncer=null;E.instances=[];E.chunkingId=null;E.chunkCount=null;E.shouldMeasureChunk=!1;E.shouldContinueChunking=!1;E.renderStartTime=null;E.JSC$11256_didCallConnected=!1;return E};
_.L(hh,HTMLElement);var w5R=function(E){E.itemSignalImpl!=null||(E.itemSignalImpl=new z0(_.lQ(CPZ,void 0,"YBrqgf")));return E.itemSignalImpl},ZEX=function(E,B){Array.isArray(B)||(B=CPZ);
w5R(E).setWithPath([],B)};
_.l=hh.prototype;_.l.showHideChildren=function(E){for(var B=_.p(this.instances),I=B.next();!I.done;I=B.next())e6G(E,I.value.children)};
_.l.notifyPath=function(E,B){E=dp(E);E[0]==="items"&&(E.length===1?ZEX(this,B):w5R(this).setWithPath(E.slice(1),B))};
_.l.canNotifyPath=function(E){return E==="items"};
_.l.attributeChangedCallback=function(E,B,I){if(this.JSC$11256_didCallConnected)throw Error("Qg`"+E);E==="as"?this.as=I:E==="index-as"?this.indexAs=I:E==="items-index-as"?this.itemsIndexAs=I:E==="initial-count"?this.initialCount=Number(I):E==="notify-dom-change"?this.notifyDomChange=I!==null:E==="target-framerate"&&(this.targetFramerate=Number(I))};
_.l.disconnectedCallback=function(){this.isDetached=!0;for(var E=0;E<this.instances.length;E++)PPX(this,E);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.l.connectedCallback=function(){var E=this,B=w5R(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var e=B(),c=dp(e.path);if(c[0]===void 0||c[0]==="splices"||c[0]==="length")E.debounceRender();else{var Y=c[0];if(Y=E.instances[typeof Y==="string"?Math.floor(Number(Y)):Y])c=[E.as].concat(_.ad(c.slice(1))),Y.signalProxy.notifyPath(c,e)}});
this.JSC$11256_didCallConnected=!0;jFZ?cuc():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var I=(0,_.FN)((0,_.FN)(this).parentNode),T=0;T<this.instances.length;T++)I.insertBefore(this.instances[T].root,this);this.chunkingId&&this.render()}};
_.l.debounceRender=function(){this.JSC$11256_renderDebouncer=_.Tz(this.JSC$11256_renderDebouncer,xq,this.JSC$11256_renderImpl.bind(this));_.eo(this.JSC$11256_renderDebouncer)};
_.l.render=function(){this.debounceRender();_.po()};
_.l.JSC$11256_renderImpl=function(){var E=this,B=this.items,I=zMl(this,B.length);mJU(this,B,I);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){E.chunkingId=null;if(E.shouldMeasureChunk){var T=performance.now()-E.renderStartTime;E.chunkCount=Math.round(Math.ceil(1E3/E.targetFramerate)/T*E.chunkCount)||1}E.shouldContinueChunking&&E.debounceRender()}));
UAu&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var zMl=function(E,B){var I=B,T=E.instances.length;if(E.initialCount){if(E.chunkCount){var e=Math.min(Math.max(B-T,0),E.chunkCount);I=Math.min(T+e,B)}else I=Math.min(B,E.initialCount),e=Math.max(I-T,0),E.chunkCount=e||1;E.shouldMeasureChunk=e===E.chunkCount;E.shouldContinueChunking=I<B;E.renderStartTime=performance.now()}return I},mJU=function(E,B,I){for(var T=0;T<I;T++){var e=E.instances[T],c=B[T];
e?(e.signalProxy.setWithPath([E.as],c),e.signalProxy.setWithPath([E.indexAs],T)):QfX(E,c,T)}for(B=E.instances.length-1;B>=T;B--)I=E,e=B,PPX(I,e),_.p(I.instances.splice(e,1)).next().value.signalProxy.dispose()},PPX=function(E,B){E=E.instances[B];
B=(0,_.FN)(E.root);for(var I=0;I<E.children.length;I++)B.appendChild(E.children[I])},QfX=function(E,B,I){var T={};
B=Object.assign({},dJN(E),(T[E.as]=B,T[E.indexAs]=I,T[E.itemsIndexAs]=I,T));var e=new Q5(B,function(Y){if(Y!==E.as&&Y!==E.indexAs){if(Y===E.itemsIndexAs)return sM(e,E.indexAs);var v=sM(E.parentSignalProxy,Y).getChangeRecordSignal([]);Y=_.lQ(void 0,void 0,"Mu2Bwb");var y=new z0(Y);e.effect(function(){var Z=v();y.notifyPath(dp(Z.path),{value:Z.value})});
return y}});
E.parentSignalProxy.childSignalProxies.push(e);T=mXf(E.templateInfo,E.templateInfo.nodeInfoList,e,{eventListenerHost:E.eventListenerHost,getModel:function(){var Y={};return Object.assign({},dJN(E),(Y[E.as]=e.model[E.as],Y[E.indexAs]=e.model[E.indexAs],Y[E.itemsIndexAs]=e.model[E.indexAs],Y))},
hasInsertionPoint:E.templateInfo.hasInsertionPoint,thisCtx:E.eventListenerHost,methodInvocationRequirement:tUu,enabledSignal:E.stampingEnabled}).root;B={root:T,children:[],signalProxy:e};T=_.p(T.childNodes);for(var c=T.next();!c.done;c=T.next())B.children.push(c.value);T=(T=E.instances[I+1])?T.children[0]:E;(0,_.FN)((0,_.FN)(E).parentNode).insertBefore(B.root,T);E.instances[I]=B},dJN=function(E){if((E=E.parentSignalProxy.model)&&!E.hostElement){var B={},I;
for(I in E)E.hasOwnProperty(I)&&(B[I]=E[I]);return B}};
hh.prototype.itemForElement=function(E){var B=this,I=this.instances.find(function(T){return T.children.includes(E)});
if(I)return uQ(this.parentSignalProxy.owner,function(){return I.signalProxy.getWithPath([B.as])})};
hh.prototype.indexForElement=function(E){var B=this.instances.findIndex(function(I){return I.children.includes(E)});
return B>=0?B:void 0};
_.Up.Object.defineProperties(hh.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var E=this;return uQ(this.parentSignalProxy.owner,function(){return w5R(E).getWithPath([])})},
set:function(E){ZEX(this,E)}},
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}}});
_.Up.Object.defineProperties(hh,{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",hh);var hMt,sfl;_.sy=new _.Dr("STATE_STORE_TOKEN");hMt=new _.Dr("SELECT_TOKEN");sfl=new _.Dr("DISPATCH_TOKEN");var yuD={getSelectFn:function(){var E;return(E=_.Q().resolve(_.Fx(hMt)))!=null?E:iDQ},
getDispatchFn:function(){var E;return(E=_.Q().resolve(_.Fx(sfl)))!=null?E:_.gp().dispatch.bind(_.gp())},
getAppStore:function(){return _.Q().resolve(_.sy)}},pbt,vwt=!1;var ZDt=void 0;var upl=function(){};
upl.prototype.hasAttribute=function(E){if(E==="dir")return!1;if(E==="disable-upgrade"){var B,I;return(I=(B=this.hostElement)==null?void 0:B.hasAttribute("disable-upgrade"))!=null?I:!1}throw Error("Rg`"+E);};
upl.prototype.attributeChangedCallbackWrapper=function(E,B,I){if(E==="disable-upgrade"&&this.__isUpgradeDisabled&&I===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var T;((T=this.hostElement)!=null?T:this).isConnected&&this.connectedCallback()}else B===I||this.__isReflecting||this.attributeChangedCallback(E,B,I)};
upl.prototype.getExtraMethodsToForward=function(){for(var E=this,B=[],I=_.p(LTU),T=I.next(),e={};!T.done;e={tagName$jscomp$52:void 0,name$jscomp$533:void 0},T=I.next())e.name$jscomp$533=T.value,T=void 0,e.name$jscomp$533==="_setPendingProperty"?(e.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),T=function(c){return function(Y,v,y){a3(c.tagName$jscomp$52,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return E._setPendingProperty(Y,v,y)}}(e)):T=function(c){return function(){return E[c.name$jscomp$533].apply(E,
_.ad(_.aG.apply(0,arguments)))}}(e),B.push([e.name$jscomp$533,
T]);return B};
for(var sFt=$Jz(Byz((0,_.zz)(upl))),G6i=["disabled","disable-upgrade"],xJU=(0,_.zz)(function(){}),G9Z=new Set(Object.getOwnPropertyNames(xJU.prototype)),NPi=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.ad(G9Z))),nwJ=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),LTU=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),OEr=new Set([].concat(_.ad(nwJ),_.ad(LTU),_.ad(G9Z))),nsU=_.p(OEr),MkZ=nsU.next();!MkZ.done;MkZ=nsU.next())Kft.add(MkZ.value);var HDF={created:function(){ooc(this);this.initializeInjection()}};var AuQ=!1,jV=window.ShadyDOM,FtF=["appendChild","insertBefore","removeChild","replaceChild"],q5i=[Node];jV&&q5i.push(jV.Wrapper);var $JD,I5i,l5d={};var td=new Set,UM="",crF="";var k7,f$=new Set;var ZEi=new Set("context didCallReady is info params signalProxy".split(" ")),zMi="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),mJf="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var HEh=Yh({entities:vbD}),NyX=new kN(HEh);var u9=function(){return _.l6.apply(this,arguments)||this};
_.L(u9,_.l6);_.Up.Object.defineProperties(u9.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return NyX}}});
u9=_.k([_.cl()],u9);_.LM=[ZG.prototype,u9.prototype];_.xC={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var E=this,B={};setTimeout(function(){var I;return _.$O((I=E.hostElement)!=null?I:E,"yt-live-chat-add-tooltip-target",B)},0);
this.handler_=B.handler},
detached:function(){if(this.handler_){var E;this.handler_.removeElementFromSupportingTooltips((E=this.hostElement)!=null?E:this)}this.handler_=null}}};_.Ee=new _.Dr("ICON_MANAGER_TOKEN");var gsR=[48,20,18,16,15,13,12],Arf=new Map,Jrc=new Set,Nyi=new Set,SNc=new Set,HE6=new Set,gsQ=new Set,X5F=new Promise(function(E){var B=!1,I=!1,T=!1,e=[],c=function(Y){if("detail"in Y)if(Y=Y.detail,Y.name==="yt-icons")WTF(Y),B=!0;else if(Y.name==="yt-sys-icons")WTF(Y),I=!0;else{var v;((v=Y.name)==null?0:v.includes("yt-sys-icons"))&&Y.size!==24&&(WTF(Y,!0),e.push(Y.size),e.length===gsR.length&&(T=!0))}B&&I&&T&&(window.removeEventListener("iron-iconset-added",c),E())};
window.addEventListener("iron-iconset-added",c)}),bEi=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"]]);_.G0={};_.G0.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.U3,computeHref_:function(E,B){B=B===void 0?!1:B;if(!E||E.commandExecutorCommand)return null;var I=rad(E,B);return B||I!==null?I?_.d("enable_polymer_resin")?_.pr(I).toString():I:null:(_.OG(new _.P7("computeHref was null",this.is,E)),null)},
computeOptionalHref_:function(E){return this.computeHref_(E,!0)},
computeNofollow_:function(E){return E?ngF(E)?"nofollow":null:null},
computeIcon_:function(E){return E&&E.iconType?_.R3(E.iconType):""},
resolveCommand:function(E,B,I){B=B===void 0?{}:B;return _.$g(E,this.hostElement,B,I===void 0?!1:I)}};var JrZ,Oy;_.SND={};JrZ=null;
Oy={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_=xk4(this.viewroot));_.Gg(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var E=this;this.unobserve_();if(_.d("kevlar_vimio_use_shared_monitor"))f5c(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 B=[];this.visibilityOptionVisible_&&B.push(this.visibilityObserver.observe(this.hostElement,function(){return E.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&B.push(this.visibilityObserver.observe(this.hostElement,function(){return E.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&B.push(this.visibilityObserver.observe(this.hostElement,function(){return E.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=B}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){jfc(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 E=_.Ql(this.parentNode,function(I){var T,e=(T=I.polymerController)!=null?T:I;return!!e.getVisibilityObserverForChild&&e.getVisibilityObserverForChild()},!0);
if(E){var B;this.localVisibilityObserver_=((B=E.polymerController)!=null?B:E).getVisibilityObserverForChild()}else JrZ||(JrZ=xk4()),this.localVisibilityObserver_=JrZ;return this.localVisibilityObserver_},visibilityCallback:function(E){E?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.d("kevlar_use_vimio_behavior")||(Oy={});Oy&&!_.d("kevlar_use_vimio_behavior")&&(delete Oy.attached,delete Oy.detached);_.SND.YtVisibilityObserverBehavior=[Oy];var WTu={};WTu.YtVisualElementBehavior=[_.SND.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.d("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.d("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var E=this.getScreenLayer&&this.getScreenLayer(),B=this.getVisibilityLogger();B&&B.reportShown(this,void 0,E)}},
onHidden:function(){if(_.d("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.d("kevlar_vimio_use_shared_monitor")){var E=this.getScreenLayer&&this.getScreenLayer(),B=this.getVisibilityLogger();B&&B.reportHidden(this,void 0,E)}},
getVisibilityLogger:function(){return _.d("kevlar_use_vimio_behavior")?_.TA():null},
shouldSkipLogging:function(){if(_.HA("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var E=this.getParentRenderer&&this.getParentRenderer();if(!E)return!1;var B,I=(B=E.polymerController)!=null?B:E;if(!I.data)return!1;E=this.data.trackingParams;E=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:E;var T;B=(T=I.data)==null?void 0:T.trackingParams;var e,c;B=((e=I.data)==null?0:e.loggingDirectives)?(c=I.data)==null?void 0:c.loggingDirectives.trackingParams:B;return E&&B&&E===
B}}];var DJc=new Map,aQ;var T3F=function(E){this.layer=E},G8=function(E){return E.layer!==void 0?E.layer:E.parent?G8(E.parent):E.layer=0};var ILG;_.R={};ILG=0;_.R.YtRendererBehavior=[_.G0.YtComponentBehavior,WTu.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_:_.d("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var E,B;(B=(E=this.monitorScrollElement)!=null?E:this.hostElement)==null||B.removeEventListener("scroll",_.Kq(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();qNG(this.hostElement);UX6(_.T0(),this.hostElement);kO.delete(this.hostElement)},
registerRenderer:function(E){var B;((B=E.polymerController)!=null?B:E).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(E),this.markDirty())},
unregisterRenderer_:function(E){this.useVimio_||(this.childCache_.delete(E),this.markDirty())},
attached:function(){var E=this,B=this.getParentRenderer();if(B){var I,T,e;(T=(I=(e=B.polymerController)!=null?e:B).registerRenderer)==null||T.call(I,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var c,Y;(Y=(c=this.monitorScrollElement)!=null?c:this.hostElement)==null||Y.addEventListener("scroll",_.Kq(this,this.onScroll))}_.Ll.addJob(function(){KTG(E.hostElement)},8);
I=new T3F(this.screenLayer||void 0);(B=tl(B))&&B.layerNode&&(I.parent=B.layerNode);B={};gQc(this.hostElement,(B.isRenderer=!0,B.layerNode=I,B[OO]=this.data,B))},
getParentRenderer:function(){for(var E=this.hostElement.parentNode,B,I;E&&((B=tl(E))==null||!B.isRenderer)&&!((I=E.polymerController)!=null?I:E).isRenderer_;)E=E.parentNode||E.host;return E},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.d("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.gU("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.d("debug_web_ve_data")&&this.data.trackingParams){var E="";try{E=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(I){_.xV(I)}if(E){var B=DqB(E,1);B!==void 0&&(this.hostElement.dataset.veIndex=String(B));E=DqB(E,2);
E!==void 0&&(this.hostElement.dataset.ve=String(E))}}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,_.d("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Yg(this.data.loggingDirectives.trackingParams)),this.visualElement=_.eO(_.lu(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var E=this.data.targetId;_.tr$(_.T0(),E,this.hostElement)}else UX6(_.T0(),this.hostElement)},
onScroll:function(){var E=Date.now();E-this.lastHandledScroll_<50||(this.lastHandledScroll_=E,this.markDirty())},
markDirty:function(){_.d("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():Tui(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var E=this.getParentRenderer();if(E&&(E=tl(E))&&E.layerNode)return G8(E.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.ad(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var E=0;E<this.data.impressionEndpoints.length;E++)this.sendImpression(this.data.impressionEndpoints[E]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(E){E.clickTrackingParams&&delete E.clickTrackingParams;var B,I;(E==null?0:(B=E.commandMetadata)==null?0:(I=B.webCommandMetadata)==null?0:I.sendPost)?_.l1(this.hostElement,[E,{impression:!0}]):_.cN(this.hostElement,[E],this.hostElement)},
logExplicitClick:function(E){var B=_.nC(this.getScreenLayer());if(B){var I,T=(I=E.polymerController)!=null?I:E;E=T.visualElement;T=T.trackingParams||T.clickTrackingParams;!E&&T&&(E=_.Yg(T));E&&_.Al(B,E)}}}];var X5u={},nM=function(){return _.l6.apply(this,arguments)||this};
_.L(nM,_.l6);nM.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
nM.prototype.onPdgItemBehaviorClick=nM.prototype.onPdgItemBehaviorClick;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],nM.prototype,"data",void 0);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],nM.prototype,"onPdgItemBehaviorClick",null);nM=_.k([_.cl()],nM);X5u.YtPdgLiveChatItemBehavior=[nM.prototype,_.R.YtRendererBehavior];var rr6;var bEX;_.Ml={};_.Ml.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Hc=function(){var E=tJ.apply(this,arguments)||this;E.switchTemplateAtRegistration=!1;return E};
_.L(Hc,tJ);Hc.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||i1D(this),_.JNc(this,"doRender"),this.doRender())};
Hc.prototype.debounceRender=function(){this.templatingFn&&_.OM(this,"doRender",this.doRender)};
Hc.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.xV(Error("ah"))};
Hc.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
Hc=_.k([msG()],Hc);var osz=Hc;var ArU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Nl={},vWi=(Nl[1]={filterString:null,isUnwrappable:null,unwrap:null},Nl[2]={filterString:function(E,B,I){return Kp(I)},
isUnwrappable:function(E){return E instanceof P1},
unwrap:function(E){return mm(E)}},Nl[3]={filterString:function(E,B,I){return ArU.test(I)?I:iv.toString()},
isUnwrappable:function(E){return T1(E)},
unwrap:function(E){return _.e6(E)}},Nl[4]={filterString:function(){return iv.toString()},
isUnwrappable:function(E){return E instanceof DK},
unwrap:function(E){return _.Ef(E).toString()}},Nl[5]={filterString:function(E,B,I){return I},
isUnwrappable:function(E){return typeof E==="string"},
unwrap:function(E){return E.toString()}},Nl[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(E){return E instanceof _.Lr},
unwrap:function(E){return G1(E)}},Nl[8]={filterString:function(E,B,I){I=String(I).toLowerCase();
return pnc(E,B,I)?I:"zClosurez"},
isUnwrappable:null,unwrap:null},Nl[10]={filterString:null,isUnwrappable:null,unwrap:null},Nl);kV[G5["default"]]=CCt;var wjt=[];var Nxc=PCi("A"),gZJ=PCi("BUTTON"),yH=PCi("DIV"),S0c=PCi("LABEL");(function(){var E=bQ;bQ=function(B){E==null||E(B);C8(function(){for(var I=0;I<B.length;I++)Z16(B[I])})}})();var g5=function(){var E=_.l6.apply(this,arguments)||this;E.hasUnmounted=!1;return E};
_.L(g5,_.l6);_.l=g5.prototype;_.l.beforeRegister=function(){var E=this.doIdomRender;this.templatingFn?_.xV(Error("$g")):(this.templatingFn=E,this.switchTemplateAtRegistration=!0,aLQ(this))};
_.l.attached=function(){};
_.l.detached=function(){Z16(this.hostElement)};
_.l.renderIdom=function(){throw Error("ch");};
_.l.doIdomRender=function(){var E=this;R4G(this.hostElement,function(){E.renderIdom()})};
g5=_.k([_.cl()],g5);var jfZ=[osz.prototype,g5.prototype];var UJt,k9z=function(){return UJt!==void 0?UJt:UJt=document.createElement("template")};
document.head.appendChild(k9z().content);var tkX;var f5D,VkZ=function(){return f5D!==void 0?f5D:f5D=document.createElement("template")};
document.head.appendChild(VkZ().content);var qN6;var FTV=document.head,DJZ=FTV.appendChild,KTt;if(qN6===void 0){var RMU=document.createElement("template");_.G(RMU,"\x3c!--css-build:shady--\x3e");RMU.content.insertBefore(VkZ().content.cloneNode(!0),RMU.content.firstChild);qN6=RMU}KTt=qN6;DJZ.call(FTV,KTt.content);var EW6,Buh=function(){return EW6!==void 0?EW6:EW6=document.createElement("template")};
document.head.appendChild(Buh().content);var $zl;var ILt=document.head,TuX=ILt.appendChild,egX;if($zl===void 0){var lLu=document.createElement("template");_.G(lLu,"\x3c!--css-build:shady--\x3e");lLu.content.insertBefore(Buh().content.cloneNode(!0),lLu.content.firstChild);$zl=lLu}egX=$zl;TuX.call(ILt,egX.content);var cX$=document.head,i1z=cX$.appendChild,pj6;if(tkX===void 0){var YLh=document.createElement("template");_.G(YLh,"\x3c!--css-build:shady--\x3e");YLh.content.insertBefore(k9z().content.cloneNode(!0),YLh.content.firstChild);tkX=YLh}pj6=tkX;i1z.call(cX$,pj6.content);var aLR,vWX=function(){return aLR!==void 0?aLR:aLR=document.createElement("template")};
document.head.appendChild(vWX().content);var yXZ;_.ME=new _.Dr("DARK_THEME_TOKEN");var pzF=new _.F("accessibilityProperties");var iRG=new _.F("layoutProperties");var Ylc=new _.F("imageType");var CCZ={};if("ytAttributedStringLinkHoverColor"in CCZ)throw Error("fh`ytAttributedStringLinkHoverColor");(function(E,B){CCZ[E]="value"in B&&"unit"in B?hgQ(E,B):function(I){try{return B(I)}catch(T){throw Error("dh`"+E+"`"+T.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var wjZ=function(E){var B=this;this.holdTime=E===void 0?500:E;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(I){var T=new CustomEvent("LONG_PRESS"),e;(e=I.changedTouches[0].target)==null||e.dispatchEvent(T)};
this.ontouchstart=function(I){B.longPressTimeout=_.dT(_.Ll,function(){B.onlongpress(I);B.longPressOccurred=!0},B.holdTime)};
this.ontouchmove=function(){_.Ll.cancelJob(B.longPressTimeout);B.longPressTimeout=NaN;B.longPressOccurred=!1;B.moveOccurred=!0};
this.ontouchend=function(I){if(B.longPressTimeout&&!B.longPressOccurred&&!B.moveOccurred){var T;(T=I.changedTouches[0].target)==null||T.dispatchEvent(new Event("click"))}_.Ll.cancelJob(B.longPressTimeout);B.longPressTimeout=NaN;B.longPressOccurred=!1;B.moveOccurred=!1}};var Uzc=function(E,B){wjZ.call(this,B);var I=this;this.callback=E;this.onlongpress=function(T){var e;(e=I.callback)==null||e.call(I,T)}};
_.L(Uzc,wjZ);var knJ=function(E,B){var I=Object.assign({},B);E=_.p(new Map([["ontouchstart",E.ontouchstart],["ontouchend",E.ontouchend],["ontouchmove",E.ontouchmove]]));for(var T=E.next(),e={};!T.done;e={eventName$jscomp$88:void 0,eventHandler$jscomp$3:void 0},T=E.next()){var c=_.p(T.value);T=c.next().value;c=c.next().value;e.eventName$jscomp$88=T;e.eventHandler$jscomp$3=c;B[e.eventName$jscomp$88]=function(Y){return function(v){var y;(y=I[Y.eventName$jscomp$88])==null||y.call(I,v);(0,Y.eventHandler$jscomp$3)(v)}}(e)}};_.Dt=new _.Dr("COMMAND_HANDLER_TOKEN");var uIF=new _.F("parallelCommand");var Gnc=new _.F("performOnceCommand");var xzJ=new _.F("serialCommand");var O1D=void 0;var Z1h=function(){this.data=[]};
Z1h.prototype.push=function(E){this.data.push(E)};var RL={};_.lQ(RL,void 0,"sgPmTd");_.lQ(null,void 0,"jypsq");var Dwd=new Z1h;var WOt=[kfZ,tdh,fiD,qcN,VdV,UG$,FQU,DGR];var l84=new _.F("bracketTextDecorator");var n8=new _.F("highlightTextDecorator");_.NE=new _.Dr("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var B$c=function(){},PCl;
(PCl=window.requestIdleCallback)==null||PCl.bind(window);var I86={calledOnce:!1,state:"visible"},$RD={calledOnce:!1,state:"hidden"};var Tef=new _.Dr("ICON_RENDERER_TOKEN"),zgl=new _.Dr("ICON_WIZ_COMPONENT_TOKEN");_.i0=_.rp(function(E){var B=E.icon;var I=E.active;var T=E.className;var e=E.style;var c=E.dataSelected;var Y=E.dataDisabled;var v=E.role;var y=E.animateIcon;var Z=E.themeOverride;var P=E.ariaHidden;var z=E.ariaExpanded;var m=E.ariaLabel;var u=E.id;var x=E.size;var M=E.iconFilter;return _.w(_.wU,{cond:B,then:function(){var N=_.Q().resolve(zgl);return _.w(N,{icon:B,dataSelected:c,dataDisabled:Y,animateIcon:y,themeOverride:Z,ariaExpanded:z,id:u,active:I,size:x,role:v,className:T,ariaHidden:P,ariaLabel:m,
style:function(){return e!=null&&e()||x==null||!x()?e==null?void 0:e():"width: "+(x==null?void 0:x())+"px;height: "+((x==null?void 0:x())+"px;")},
iconFilter:M})}})},"b");
_.i0.idomCompat=!0;var xRQ=window.devicePixelRatio||1;var M3c=new Map([["yt_outline_bag_black_24","bag"]]);var S7=function(E){var B=this;this.margin=.1;this.whenInViewportWithMargin=E;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){B.requestScan()});
window.addEventListener("touchend",function(){B.requestScan()});
window.addEventListener("updateui",function(){B.requestScan()});
var I=new _.qH((0,_.w1)(this.requestScan,this),100);window.addEventListener("scroll",function(){I.fire()},!0);
window.addEventListener("resize",(0,_.w1)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){B.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.w1)(this.requestScan,this))};
S7.prototype.observe=function(E){this.observationTargets.includes(E)||this.observationTargets.push(E)};
S7.prototype.unobserve=function(E){this.observationTargets=this.observationTargets.filter(function(B){return B!==E})};
S7.prototype.requestScan=function(){var E=this;this.scanRequested||(C8(function(){mzU(E)}),this.scanRequested=!0)};
var mzU=function(E){var B=(1+E.margin)*(document.documentElement.clientHeight||window.innerHeight);E.observationTargets=E.observationTargets.filter(function(I){var T=I.getBoundingClientRect();(T=B>T.top&&!!T.height)&&E.whenInViewportWithMargin(I);return!T&&I.parentNode});
E.scanRequested=!1};
S7.prototype.disconnect=function(){this.observationTargets=[]};var Q7l,hgR;Q7l=_.p(_.lQ(Slt(),void 0,"O3X2wd"));_.dzz=Q7l.next().value;hgR=Q7l.next().value;window.addEventListener("resize",function(){hgR(Slt())});var s7r={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},uIu=void 0,LON=window.innerWidth,xzr=window.innerHeight;window.addEventListener("resize",function(){uIu=void 0});var GnZ;if("IntersectionObserver"in window)GnZ=XzF();else{if(uIu===void 0){var O1z;O1z="matchMedia"in window?window.matchMedia(s7r.landscape+","+s7r.portrait).matches:void 0;uIu=O1z!==void 0?O1z:LON>=930&&xzr>=550||LON>=550&&xzr>=930}GnZ=uIu?{observe:function(E){C8(function(){var B;(B=E.onViewportEntered)==null||B.call(E)})},
unobserve:function(){}}:new S7(function(E){C8(function(){var B;
(B=E.onViewportEntered)==null||B.call(E)})})}var JnQ=GnZ;var nWl=_.rp(function(E){var B=!1,I=_.oH(function(T){_.dt(function(){B=!0;T.onload=null})});
_.m$(function(){var T,e=(T=E.data)==null?void 0:T.call(E),c,Y=(c=E.getSrc)==null?void 0:c.call(E).cb,v;T=(v=E.config)==null?void 0:v.call(E);if(v=I.value){bRc(v,T);var y;rnc(v,e||null,function(Z,P){if(!B)return Y?Y(Z,P):Z},T,(y=E.lazy)==null?void 0:y.call(E))}});
return _.w("img",{el:I})},"c");
nWl.idomCompat=!0;_.Ja=_.rp(function(E){var B=function(){var I,T=E.data(),e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q,f,ed,K,p4,sc,Gf,xi,ki,WG,rJ,Uc;var CV={contentMode:(e=E.contentMode)==null?void 0:e.call(E),loadedClass:(c=E.loadedClass)==null?void 0:c.call(E),isPreloaded:(Y=E.isPreloaded)==null?void 0:Y.call(E),notifyOnLoaded:(v=E.notifyOnLoaded)==null?void 0:v.call(E),notifyOnUnloaded:(y=E.notifyOnUnloaded)==null?void 0:y.call(E),preferredThumbnail:(Z=E.preferredThumbnail)==null?void 0:Z.call(E),preserveHeight:(P=E.preserveHeight)==
null?void 0:P.call(E),preserveWidth:(z=E.preserveWidth)==null?void 0:z.call(E),objectPosition:(m=E.objectPosition)==null?void 0:m.call(E),targetWidth:(u=E.targetWidth)==null?void 0:u.call(E),targetHeight:(x=E.targetHeight)==null?void 0:x.call(E),shouldShowPlaceholder:(M=E.shouldShowPlaceholder)==null?void 0:M.call(E),useWidth:(N=E.useWidth)==null?void 0:N.call(E),alt:(W=E.alt)==null?void 0:W.call(E),className:(U=E.className)==null?void 0:U.call(E),onerror:E.onerror,onload:E.onload,style$:((q=E.style$)==
null?void 0:q.call(E))||((f=E.style)==null?void 0:f.call(E)),color:(ed=E.color)==null?void 0:ed.call(E),width:(K=E.width)==null?void 0:K.call(E),height:(p4=E.height)==null?void 0:p4.call(E),"aria-hidden$":(rJ=(sc=E["aria-hidden$"])==null?void 0:sc.call(E))!=null?rJ:(Gf=E.ariaHidden)==null?void 0:Gf.call(E),draggable:(xi=E.draggable)==null?void 0:xi.call(E),"data-disabled$":(Uc=(ki=E["data-disabled$"])==null?void 0:ki.call(E))!=null?Uc:(WG=E.dataDisabled)==null?void 0:WG.call(E)};return jtG(T,CV,(I=
E.hideOn404)==null?void 0:I.call(E))};
return _.w(_.m4,null,_.w(_.PA,{when:function(){var I;return((I=B())==null?void 0:I.type)==="image"}},function(){return _.w(nWl,{data:function(){return B().image},
getSrc:{cb:function(I,T){var e=B().image.sources,c=B().config.isPreloaded,Y=B().config.useWidth,v=B().config.targetWidth,y=B().config.targetHeight,Z=B().config.preferredThumbnail;return _.GuG(T,e,c,Y,v,y,Z)||""}},
config:function(){var I=B().config,T;for(T in I)I[T]===void 0&&delete I[T];return I},
lazy:E.renderLazy})}),_.w(_.PA,{when:function(){var I;
return((I=B())==null?void 0:I.type)==="icon"}},function(){return _.w(_.i0,{icon:function(){return B().iconName},
role:function(){return B().config.role},
className:function(){return B().config.className},
style:function(){return B().config.style$+";width: "+(B().config.width+"px;height: ")+(B().config.height+"px;color: ")+(B().config.color+";")},
ariaLabel:function(){return B().config["aria-label$"]},
ariaHidden:function(){return B().config["aria-hidden$"]},
dataDisabled:function(){return B().config["data-disabled$"]}})}))},"d");
_.Ja.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var M4R=function(E){return function(B){return _.w(Zp4,null,function(){var I=B.data(),T=_.s_(B.config);return _.w(js,null,function(){return void E(I,T)})})}}(V36),t3B=_.rp(function(E){var B=function(T){var e,c=_.URG(function(m){e=hx(function(){for(var u=_.p(P()),x=u.next();!x.done;x=u.next()){x=qlF(x.value);
x=typeof x==="string"?document.createTextNode(x):x;if(!(x instanceof Node)){u=new _.P7("Part is not a node",x,typeof x);_.xV(u);break}m.appendChild(x)}})}),Y=XC(function(){return vjc(T())},{isEqual:kuc}),v=_.Wl(E.config),y=function(){var m,u=Y();
return!((m=v())==null||!m.ariaLabel)||!(u.commandRuns&&u.commandRuns.length!==0||u.paragraphStyleRuns&&u.paragraphStyleRuns.length!==0)},Z=XC(v,{isEqual:DRG}),P=function(){var m=a8i(Y(),Z());
CBQ(m,Z());return Y().content?Qtf(Y().content,m).parts:[]},z=!0;
_.m$(function(){Y();Z();if(z)z=!1;else{var m=P();Promise.resolve().then(function(){var u=c.value;if(u){u.innerText="";var x;(x=e)==null||x();e=_.dU(u,function(){return _.w(Fwd,{parts:m})})}})}});
return _.w("span",{el:c,class:function(){return Y()&&FO4(Y(),v())},
dir:function(){var m;return((m=v())==null?0:m.userInput)?"auto":void 0},
"aria-label":function(){var m;return y()?(m=v())==null?void 0:m.ariaLabel:void 0},
role:function(){return y()?"text":void 0}})},I;
return((I=E.config)==null?0:I.renderedFromFormattedString)?B(E.text):_.w(_.wU,{cond:E.text,then:B})},"e");
t3B.idomCompat=!0;_.aS=_.rp(function(E){var B=_.Wl(E.text),I=Kwc(E);E.renderedFromFormattedString!==void 0&&(I.renderedFromFormattedString=!0);return _.d("attr_string_reactive")?_.w(t3B,{text:B,config:I}):_.w(_.wU,{cond:function(){var T;return B()&&((T=vjc(B()))==null?void 0:T.content)},
then:function(){return _.w(M4R,{data:E.text,config:I})},
debugInstance:"Apcuac"})},"f");
_.aS.idomCompat=!0;var E_d=function(E,B,I){B=B===void 0?"unknown":B;I=I===void 0?{}:I;_.P7.call(this,E+" ("+B+")",Object.assign({},{name:"YtWcwError",tagName:B},I));Object.setPrototypeOf(this,this.constructor.prototype)};
_.L(E_d,_.P7);_.cUf=new WeakMap;_.lW4=!1;var ePG,iBQ,$uF,TWi;_.Jh=Symbol("hh");_.bu=Symbol("ih");ePG=Symbol("jh");iBQ=new Set(Object.getOwnPropertyNames(Element.prototype));$uF=!_.d("web_wcw_disable_component_function_named_child_props");TWi=Symbol("kh");var H1$=_.rp(function(E){return _.w("yt-attributed-string",{"aria-label":E.ariaLabel,hidden:E.hidden,id:E.id,class:E.className,"force-default-style":E.forceDefaultStyle},_.w(_.aS,{text:E.data,ariaLabel:E.ariaLabel,ellipsisTruncate:E.ellipsisTruncate,isOverlay:E.isOverlay,linkInheritColor:E.linkInheritColor,noPreWrap:E.noPreWrap,noWrap:E.noWrap,userInput:E.userInput,noEndpoints:E.noEndpoints,headerRuns:E.headerRuns}))},"g");
_.d("web_wiz_attributed_string")&&_.oQ(H1$,"yt-attributed-string",{props:{ariaHidden:_.Jh,ariaLabel:_.Jh,className:_.Jh,ellipsisTruncate:_.Jh,isOverlay:_.Jh,linkInheritColor:_.Jh,noEndpoints:_.Jh,noStyleRuns:_.Jh,noLinkColor:_.Jh,noPreWrap:_.Jh,noWrap:_.Jh,skipOnClick:_.Jh,userInput:_.Jh,headerRuns:_.Jh,id:_.Jh,data:_.Jh,hidden:_.Jh,forceDefaultStyle:_.Jh,text:_.bu,stopPropagation:_.bu,disableUpgrade:_.bu,disable:_.bu,slot:_.bu}});var Wc=function(){return _.r.apply(this,arguments)||this};
_.L(Wc,_.r);Wc.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},V36(this.data,this.config))};
_.k([_.g(jfZ),_.t("design:type",Object)],Wc.prototype,"ytIdomTemplatingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Wc.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wc.prototype,"ariaLabel",void 0);_.k([_.X(),_.t("design:type",Boolean)],Wc.prototype,"disable",void 0);_.k([_.X(),_.t("design:type",Boolean)],Wc.prototype,"ellipsisTruncate",void 0);_.k([_.X(),_.t("design:type",Boolean)],Wc.prototype,"isOverlay",void 0);
_.k([_.X(),_.t("design:type",Boolean)],Wc.prototype,"linkInheritColor",void 0);_.k([_.X(),_.t("design:type",Boolean)],Wc.prototype,"noPreWrap",void 0);_.k([_.X(),_.t("design:type",Boolean)],Wc.prototype,"noWrap",void 0);_.k([_.X(),_.t("design:type",Boolean)],Wc.prototype,"userInput",void 0);_.k([_.X(),_.t("design:type",Boolean)],Wc.prototype,"noEndpoints",void 0);_.k([_.X(),_.t("design:type",Array)],Wc.prototype,"headerRuns",void 0);
Wc=_.k([_.QE({is:"yt-attributed-string",disableElementRegistration:!0})],Wc);
_.d("web_wiz_attributed_string")||_.A(Wc,"yt-attributed-string",function(){if(yXZ===void 0){var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
E.content.insertBefore(vWX().content.cloneNode(!0),E.content.firstChild);yXZ=E}E=yXZ;return E},{mode:2});var Nu$,gWV,wrQ;Nu$=function(){this.firstThumbnailLoaded=!1};
_.SLh=function(){gWV||(gWV=new Nu$);return gWV};
wrQ=function(E){var B=_.SLh();B.firstThumbnailLoaded||(B.firstThumbnailLoaded=!0,_.nO("ftl",E))};
Nu$.prototype.reset=function(){this.firstThumbnailLoaded=!1};var YWB=0,CzG=new WeakMap,v_i=0,Ue=new Set;var JXR,WOZ=function(){return JXR!==void 0?JXR:JXR=document.createElement("template")};
document.head.appendChild(WOZ().content);var XjD;var muB,duc,Xe;_.f8=_.$i.caches;Xe=function(){};
Xe.prototype.open=function(E){return _.f8.open(rX$(E))};
Xe.prototype.has=function(E){return _.f8.has(rX$(E))};
Xe.prototype.delete=function(E){return _.f8.delete(rX$(E))};
Xe.prototype.match=function(E,B){var I=this,T,e,c,Y,v,y;return _.a(function(Z){switch(Z.nextAddress){case 1:return _.C(Z,I.keys(),2);case 2:T=Z.yieldResult,e=_.p(T),c=e.next();case 3:if(c.done){Z.jumpTo(5);break}Y=c.value;return _.C(Z,I.open(Y),6);case 6:return v=Z.yieldResult,_.C(Z,v.match(E,B),7);case 7:if(y=Z.yieldResult)return Z.return(y);c=e.next();Z.jumpTo(3);break;case 5:return Z.return()}})};
var hP6=function(){};
_.L(hP6,Xe);var rX$=function(E){if(E.includes(":"))throw Error("nh`"+E);return E+":"+_.w0("CacheStorage get")};
hP6.prototype.keys=function(){var E,B,I,T,e,c,Y,v,y;return _.a(function(Z){if(Z.nextAddress==1)return E=[],B=_.w0("CacheStorage keys"),_.C(Z,_.f8.keys(),2);I=Z.yieldResult;T=_.p(I);for(e=T.next();!e.done;e=T.next())c=e.value,Y=_.zPd(c),v=Y.originalName,y=Y.datasyncId,y===B&&E.push(v);return Z.return(E)})};var r5=function(){var E=_.r.apply(this,arguments)||this;E.objectURL=null;E.loadTime=Infinity;return E};
_.L(r5,_.r);_.l=r5.prototype;_.l.renderIdom=function(){PzQ(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&ojc(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.l.objectFitToContentMode=function(E){switch(E){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.l.logThumbnailFailureVe=function(){var E=_.wA(197497);_.Ts(_.lu(),E);var B=_.nC();B&&E&&B&&_.b1(B,[E])};
_.l.loadImageFromCacheIfExists=function(E){var B=this,I=E.target;(I==null?0:I.src)&&uVJ(I.src).then(function(T){B.objectURL=_.YM(T).toString();B.setSrc(I,B.objectURL)}).catch(function(){})};
_.l.onError=function(E){var B=this;if(_.d("web_use_cache_for_image_fallback")){var I=E.target;I&&uVJ(I.src).then(function(T){B.objectURL=_.YM(T).toString();B.setSrc(I,B.objectURL)}).catch(function(){_.d("kevlar_woffle_log_thumbnail_failure_ve")&&B.logThumbnailFailureVe();
_.d("kevlar_woffle_fallback_image")&&B.setSrc(I,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.l.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.l.setConfig=function(){var E=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(B){E.loadImageFromCacheIfExists(B);E.revokeObjectURL();ZB6(E.hostElement)},
onerror:function(B){E.onError(B)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.d("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.l.setSrc=function(E,B){B&&(E.src=B)};
_.k([_.g(jfZ),_.t("design:type",Object)],r5.prototype,"ytIdomTemplatingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],r5.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],r5.prototype,"alt",void 0);_.k([_.X(),_.t("design:type",Boolean)],r5.prototype,"ftlEligible",void 0);_.k([_.X(),_.t("design:type",Number)],r5.prototype,"height",void 0);_.k([_.X(),_.t("design:type",Boolean)],r5.prototype,"notifyOnLoaded",void 0);
_.k([_.X(),_.t("design:type",Boolean)],r5.prototype,"notifyOnUnloaded",void 0);_.k([_.X(),_.t("design:type",String)],r5.prototype,"objectFit",void 0);_.k([_.X(),_.t("design:type",String)],r5.prototype,"objectPosition",void 0);_.k([_.X(),_.t("design:type",String)],r5.prototype,"preferredThumbnail",void 0);_.k([_.X(),_.t("design:type",Boolean)],r5.prototype,"preserveHeight",void 0);_.k([_.X(),_.t("design:type",Boolean)],r5.prototype,"preserveWidth",void 0);
_.k([_.X({value:!0}),_.t("design:type",Boolean)],r5.prototype,"useWidth",void 0);_.k([_.X({value:function(){return!_.gU("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.t("design:type",Boolean)],r5.prototype,"shouldRenderLazy",void 0);_.k([_.X(),_.t("design:type",Number)],r5.prototype,"width",void 0);r5=_.k([_.QE({is:"yt-image",disableElementRegistration:!0})],r5);
_.A(r5,"yt-image",function(){if(XjD===void 0){var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);E.content.insertBefore(WOZ().content.cloneNode(!0),E.content.firstChild);
XjD=E}E=XjD;return E},{mode:2});var b9=function(){return _.r.apply(this,arguments)||this};
_.L(b9,_.r);b9.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var E=_.ha(this.data.onVisibleCommand);E&&this.ytComponentBehavior.resolveCommand(E)}};
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],b9.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Ml.YtVisibilityBehavior),_.t("design:type",Object)],b9.prototype,"ytVisibilityBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],b9.prototype,"data",void 0);b9=_.k([_.QE({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],b9);
_.A(b9,"yt-bumper-user-edu-content-view-model",function(){if(bEX===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;rr6===void 0&&(rr6=document.createElement("template"));var T=rr6;I.call(B,T.content.cloneNode(!0),E.content.firstChild);bEX=E}E=bEX;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var b1U;var oWl,AXD=function(){if(oWl!==void 0)return oWl;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;b1U===void 0&&(b1U=document.createElement("template"));var T=b1U;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return oWl=E};var j7h;_.oy={};j7h=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"]);_.oy.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var E=this.getContext_();return E?E.getTaskManager():_.Ll},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var E=_.$O(this.hostElement,"yt-get-context-provider",{});E.detail&&E.detail.contextProvider?this.cachedProviderNode_=E.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return j7h.has(this.hostElement.localName)},
getNetworkManager:function(){var E=this.getContext_();if(E)return E.getNetworkManager()}};var MFc,UzD,t4Z,knr;_.Ah=function(E){var B=UzD.get(E);if(B&&(B=B.pop()))return knr++,B;t4Z++;try{var I=document.createElement(E)}catch(T){throw new _.P7("ElementPool failed to create element",E,T.message);}return I};
MFc=function(E){var B=E.is;if(B){var I=UzD.get(B);I||(I=[],UzD.set(B,I));var T=_.HA("ELEMENT_POOL_CONFIG")||{};I.length>=(T[B]!==void 0?T[B]:_.HA("ELEMENT_POOL_DEFAULT_CAP",0))||I.push(E)}else _.OG(new _.P7("Element pool should only handle custom elements:",E.nodeName))};
UzD=new Map;t4Z=0;knr=0;var VA=new WeakMap,n_6=new WeakMap;var V4t;_.j7=function(E,B,I){I=I===void 0?_.xm():I;this.JSC$11517_defaultPriority=E;this.signal=B;this.scheduler=I;this.nextJobDescriptor=0;this.JSC$11517_parkedJobs=[];this.scheduledJobs=new Map};
_.Uy=function(E,B){if(B){var I=_.gB();E.signal&&!_.Su(I,E.signal)?(I.addListener(E.signal,function(){E.processSignal()}),E.JSC$11517_parkedJobs.push({job:B,
priority:void 0})):fLZ(E,B)}};
V4t=function(E,B){if(B!==E.JSC$11517_defaultPriority){E.JSC$11517_defaultPriority=B;for(var I=_.p(E.scheduledJobs.values()),T=I.next();!T.done;T=I.next())T=T.value,E.scheduler.cancelJob(T.jobId),T.jobId=E.scheduler.addJob(T.jobWrapper,B)}};
_.j7.prototype.flushJobs=function(){V4t(this,10);this.processSignal()};
_.j7.prototype.cancel=function(){for(var E=_.p(this.scheduledJobs),B=E.next();!B.done;B=E.next()){var I=_.p(B.value);B=I.next().value;I=I.next().value;this.scheduler.cancelJob(I.jobId);this.scheduledJobs.delete(B)}this.JSC$11517_parkedJobs=[]};
_.j7.prototype.processSignal=function(){for(var E=_.p(this.JSC$11517_parkedJobs),B=E.next();!B.done;B=E.next())B=B.value,fLZ(this,B.job,B.priority);this.JSC$11517_parkedJobs=[]};
var fLZ=function(E,B,I){I=I||E.JSC$11517_defaultPriority;if(I===10)kg(B);else{var T=E.nextJobDescriptor++,e=function(){B();E.scheduledJobs.delete(T)},c=E.scheduler.addJob(e,I);
E.scheduledJobs.set(T,{jobWrapper:e,jobId:c,priority:I})}};_.qW(SWF);var JUt={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};CEt({beforeVisit:function(E){if(td.has(E.type)){var B;(B=E.props).idomKey!=null||(B.idomKey=E.type)}else E.type.TAG_NAME&&(UM=E.type.TAG_NAME)},
afterRender:function(E,B){var I;UM=(I=B==null?void 0:B.type)!=null?I:""},
didPatch:function(){UM=""}});var qLZ;_.kC={};qLZ={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.kC.YtRendererstamperBehavior=[_.oy.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 E in this.stampDom){var B=this.stampDom[E];B&&B.id&&this.addReactiveSchema({type:"observe",method:{methodName:xuG(B.id),args:[{type:"wildcard",path:E}]}})}else{(E=(this.constructor.generatedFrom||this).observers)||(E=[]);for(B in this.stampDom){var I=this.stampDom[B];I&&I.id&&E.push(xuG(I.id)+"("+B+".*)")}this.constructor.generatedFrom.observers=E}},
addStampDomObserverFns_:function(){for(var E in this.stampDom){var B=this.stampDom[E];B.id?(this[xuG(B.id)]=this.rendererStamperObserver_.bind(this,E,B.id),this.hasDataPath_[E]=!1):(B=new _.P7("Bad rendererstamper config",this.is+":"+E),_.xV(B))}},
rendererStamperObserver_:function(E,B,I){if(I.path==E){if(I.value===void 0&&!this.hasDataPath_[E])return;this.hasDataPath_[E]=I.value!==void 0}this.rendererStamperApplyChangeRecord_(E,B,I)},
rendererStamperApplyChangeRecord_:function(E,B,I){var T=this.renderJobsMap_[B],e=null;E==I.path?(I=I.value,_.Di(I)||(I=I===void 0||I===null?[]:[I]),E=this.stampDom[E],E.mapping&&(e=this.stampDomArray_.bind(this,I,B,E.mapping,E.reuseComponents,E.events,E.stamperStableList)),T&&T.cancel(),I=E.usePageScheduler?this.getTaskManager():void 0,T||E.initialRenderPriority==void 0)?E.renderPriority==void 0||T||(T=new _.j7(E.renderPriority,E.waitForSignal,I),this.renderJobsMap_[B]=T):(T=new _.j7(E.initialRenderPriority,
E.waitForSignal,I),this.renderJobsMap_[B]=T,e=function(c,Y){c();V4t(Y,10)}.bind(this,e,T)):e=E+".splices"==I.path?this.stampDomArraySplices_.bind(this,E,B,I.value):this.forwardRendererStamperChanges_.bind(this,E,B,I);
T?_.Uy(T,e):e()},
forwardRendererStamperChanges_:function(E,B,I){var T=I.path.slice(E.length+1),e=this.getStampContainer_(B),c=T.indexOf("."),Y=T.substring(0,c),v=!1,y=0,Z=parseInt(Y,0);if(Y[0]=="#"){v=parseInt(Y.substring(1),0);Z=this.get(E);var P=this.get([E,Y]);Z[v]==P?y=v:y=Z.indexOf(P);v=!0}else isNaN(Z)||(y=Z,v=!0);v&&(T=T.substring(Y.length+1),c=T.indexOf("."));Y=_.QT(e).children[y];var z;if(e=(z=Y==null?void 0:Y.polymerController)!=null?z:Y)T="data"+T.slice(c),typeof e.notifyPath!=="function"?_.OG(new _.P7("notifyPath missing",
this.is+": "+E+", "+B)):I.value?e.notifyPath(T,I.value):e.notifyPath(T)},
stampDomArraySplices_:function(E,B,I){if(I&&I.indexSplices){var T=this.getStampContainer_(B);if(T){for(var e=_.QT(T),c=OBt(this.stampDom[E].reuseComponents),Y=I.indexSplices.length,v=0;v<Y;v++){for(var y=I.indexSplices[v],Z=e.children[y.index],P=y.removed.length;P>0;P--)Z&&Z.parentElement&&(_.QT(Z.parentElement).removeChild(Z),c&&MFc(Z),Z=e.children[y.index]);P=this.stampDom[E].mapping;for(var z=y.index+y.addedCount,m=document.createDocumentFragment(),u=c,x=y.index;x<z;x++){var M=y.object[x],N=LPG(P,
M);if(N){var W=P[N];M=M[N];N=this.getComponentName_(W,M);var U=Z?VA.has(Z):!1;u&&Z&&Z.is==N&&U?(N=Z,this.telemetry_.reuse++,Z=Z.nextElementSibling):u&&Z&&U?(N=this.createComponent_(W,M,c),U=_.QT(Z).nextElementSibling,e.insertBefore(N,U),NWF(this.is,e,Z,c),Z=U):(u=!1,N=this.createComponent_(W,M,c),m.appendChild(N));this.deferRenderStamperBinding_(N,W,M)}else W=new _.P7("Unimplemented type",E,B,T.tagName,Object.keys(M)[0]),_.xV(W)}e.insertBefore(m,Z)}this.flushRenderStamperComponentBindings_();this.stampDom[E].events&&
_.$O(this.hostElement,"yt-rendererstamper-finished",{container:T})}else E=new _.P7("Container object not found",B,this.hostElement?this.hostElement.is:""),_.xV(E)}},
stampDomArray_:function(E,B,I,T,e,c){var Y=this.getStampContainer_(B);if(Y)if(B=_.QT(Y),T=OBt(T),E){var v=0,y=0,Z;if(c=c===void 0?_.gU("STAMPER_STABLE_LIST",!1):c||!1)for(Z=B.firstElementChild;Z&&!VA.has(Z)&&E.length>y;){c=E[y];var P=LPG(I,c);if(P){if(this.getComponentName_(I[P],c[P])!=Z.is){var z=this.createComponent_(I[P],c[P],T),m=_.QT(Z).nextElementSibling;m?B.insertBefore(z,m):B.appendChild(z);NWF(this.is,B,Z,T);Z=z}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(Z,I[P],c[P]);v++;
y++;Z=_.QT(Z).nextElementSibling}else y++}g_F(this.is,B,v,T);v=Z;if(E.length>y){c=document.createDocumentFragment();for(P=E.length;y<P;y++)if(z=E[y],m=LPG(I,z))Z=this.createComponent_(I[m],z[m],T),this.deferRenderStamperBinding_(Z,I[m],z[m]),c.appendChild(Z);v&&_.QT(v).parentNode&&Z&&!VA.has(Z)?B.insertBefore(c,v):B.appendChild(c)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();e&&_.$O(this.hostElement,"yt-rendererstamper-finished",{container:Y})}else g_F(this.is,B,0,
T);else E=new _.P7("Container object not found",B,this.hostElement?this.hostElement.is:""),_.xV(E)},
getStampContainer_:function(E){return this.$&&this.$[E]||_.n(this.hostElement).querySelector("#"+E)},
getComponentName_:function(E,B){return typeof E==="string"?E:E.matcher?E.matcher.call(this,B):E.component},
createComponent_:function(E,B,I){E=this.getComponentName_(E,B);try{var T=f$.has(E)||td.has(E);if(I&&!T){var e=_.Ah(E);try{_.Dk(e)}catch(c){I="Failed to clear styles for "+E+".",c.message&&(I+=" Original error: "+c.message),_.OG(new _.P7(I))}}else e=document.createElement(E)}catch(c){return e="YtRendererStamperBehavior failed to create "+E+".",c.message&&(e+=" Original description: "+c.message),c.message="YtRendererStamperBehavior failed to create element",_.ni(c,e),qLZ.hasOwnProperty(E)?_.OG(c):_.xV(c),
document.createElement("SPAN")}this.telemetry_.create++;return e},
deferRenderStamperBinding_:function(E,B,I){this.deferredBindingTasks_.push({component:E,typeOrConfig:B,data:I})},
flushRenderStamperComponentBindings_:function(){for(var E=0,B=this.deferredBindingTasks_.length;E<B;E++){var I=this.deferredBindingTasks_[E];if(!I)break;var T=void 0,e=void 0,c=void 0,Y=void 0,v=I.component,y=I.typeOrConfig;I=I.data;var Z=(Y=v.polymerController)!=null?Y:v;Y=v.loggingStatus;try{Y&&(Y.isRendererStamper=!0);if(typeof y!=="string"){for(c in y.attributes)y.attributes[c]===!0?v.setAttribute(c,""):y.attributes[c]===!1?v.removeAttribute(c):v.setAttribute(c,y.attributes[c]);for(e in y.params)Z[e]=
y.params[e],v!==Z&&a3(v.localName,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(T in y.properties){var P=y.properties[T];if(P){var z=GhG(P);Z[T]=this.get(z);v!==Z&&a3(v.localName,T,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(T==="on-tap"||T==="on-click"){var m=this.get(z);v.addEventListener("click",m);n_6.set(v,{property:T,listener:{type:"element",eventName:"click",handler:m}})}}else{var u=new _.P7("Undefined property binding",T);_.xV(u)}}}if(y.classListBinding){var x=GhG(y.classListBinding),
M=x?this[x]:null;if(M)for(T=0;T<M.length;T++)_.VQ(v,M[T],!0)}Z.data=I}finally{Y&&(Y.isRendererStamper=!1)}if(T=VA.get(v))v.hidden=!1,VA.delete(v),_.Ll.cancelJob(T)}this.deferredBindingTasks_.length=0}}];_.th={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(E){for(var B=_.WC.getInstance(),I=_.p(Object.keys(E)),T=I.next();!T.done;T=I.next()){var e=T.value;T=E[e];if(this&&this[T]){var c=B.actionRoutingMap.get(e);c||(c=new Map,B.actionRoutingMap.set(e,c));B.registerActionHandler(this,e,this[T].bind(this),c)}else e=Error("hd"),e.params=T,_.SI(e)}},
unregisterActionMap:function(E){_.r9(_.WC.getInstance(),E,this)}}]};var Dx=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var FC;var K8=new Map;var qWd=window.matchMedia("(forced-colors: active)").matches;var FOV;var DzX;var RPD=new _.Dr("LOTTIE_LOADER_TOKEN");_.qW(EZ6);_.oQ(_.rp(function(E){return _.w("ytd-lottie-player",{id:E.id,hidden:E.hidden,class:E.className,"aria-label":E.ariaLabel,style:"display: block;"},_.w(_.E1,{data:E.data,animationName:function(){var B;return((B=E.data().animationConfig)==null?void 0:B.name)||""},
animationRef:function(){return E.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.Jh,
id:_.Jh,hidden:_.Jh,className:_.Jh,ariaLabel:_.Jh}});var fM=function(){var E=_.r.apply(this,arguments)||this;E.animationRef={};return E};
_.L(fM,_.r);_.l=fM.prototype;
_.l.handlePropertyChange=function(){var E=this.animatedIcon,B=this.active,I=this.isDarkTheme;if(E){var T=this.previousActive!==B;this.previousActive=B;this.animationRef.lottieEl?T&&this.toggleAnimation(B,E.totalFrames):B?this.initializeAnimationAsToggled(E.lottiePlayerProps,E.totalFrames):this.initializeAnimationAsUntoggled(E.lottiePlayerProps);E.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=E.type;this.lottiePlayerProps=this.computeLottiePlayerProps(E,I)}};
_.l.computeLottiePlayerProps=function(E,B){var I=this.deepCloneLottiePlayerProps(E);B?(B=E.nameDarkTheme,E=E.pathDarkTheme):(B=E.name,E=E.path);I.animationConfig.name=B;(B=K8.get(E))?I.animationConfig.animationData=B:I.animationConfig.path=E;return I};
_.l.initializeAnimationAsToggled=function(E,B){E.animationConfig.initialSegment=[B-1,B]};
_.l.initializeAnimationAsUntoggled=function(E){E.animationConfig.initialSegment=void 0};
_.l.toggleAnimation=function(E,B){if(E){var I;(I=this.animationRef.lottieEl)==null||I.playSegments([0,B],!0)}else{var T;(T=this.animationRef.lottieEl)==null||T.playSegments([0,1],!0)}};
_.l.deepCloneLottiePlayerProps=function(E){var B=Object.assign({},E.lottiePlayerProps.animationConfig);E=Object.assign({},E.lottiePlayerProps);E.animationConfig=B;return E};
fM.prototype.handlePropertyChange=fM.prototype.handlePropertyChange;_.k([_.X(),_.t("design:type",Object)],fM.prototype,"animatedIcon",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],fM.prototype,"active",void 0);_.k([_.X(),_.t("design:type",Boolean)],fM.prototype,"isDarkTheme",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],fM.prototype,"animatedIconType",void 0);_.k([_.X(),_.t("design:type",Boolean)],fM.prototype,"previousActive",void 0);
_.k([_.X(),_.t("design:type",Object)],fM.prototype,"lottiePlayerProps",void 0);_.k([_.X(),_.t("design:type",Object)],fM.prototype,"animationRef",void 0);_.k([_.EM("animatedIcon","active","isDarkTheme"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fM.prototype,"handlePropertyChange",null);fM=_.k([_.QE({is:"yt-animated-icon",disableElementRegistration:!0})],fM);
_.A(fM,"yt-animated-icon",function(){if(DzX===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;FOV===void 0&&(FOV=document.createElement("template"));var T=FOV;I.call(B,T.content.cloneNode(!0),E.content.firstChild);DzX=E}E=DzX;return E},{mode:2});var KO6;var RgN;var I9i=_.rp(function(E){var B=_.AK(),I=xP(function(){return{value:null}});
_.dt(function(){var e;(e=I.value)==null||e.cancel()});
var T=_.aJ(E.data,{equals:function(e,c){return e.iconName===c.iconName&&e.iconStyle===c.iconStyle&&e.iconSize===c.iconSize&&e.iconSetName===c.iconSetName&&e.iconSelected===c.iconSelected}},"aoiXAb");
_.m$(function(){var e,c=(e=E.options)==null?void 0:e.call(E);$Qc(B,I,T(),c)});
return _.w("span",{class:"yt-icon-shape",el:B})},"i");
I9i.idomCompat=!0;var woJ=["youtube_fill","youtube_outline"];var Ej6=new _.uo({type:"iconset",value:void 0}),V5=function(){var E=_.r.apply(this,arguments)||this;E.isDarkTheme=document.documentElement.hasAttribute("dark");E.iconName="";E.iconsetName="yt-icons";E.iconset=null;E.missingIconSet=!1;E.iconType=null;E.iconShapeDataSignal=_.lQ(void 0,void 0,"RQ9kUb");E.renderingOptionsSignal=_.lQ({iconWidth:"100%",iconHeight:"100%",iconFilter:E.iconFilter},void 0,"qtx8Ef");E.wizHasRendered=!1;E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return E};
_.L(V5,_.r);_.l=V5.prototype;_.l.onDarkModeToggledAction=function(E){E!==this.isDarkTheme&&(this.isDarkTheme=E)};
_.l.handlePropertyChange=function(){var E=this,B,I,T,e,c,Y,v,y,Z,P,z;return _.a(function(m){switch(m.nextAddress){case 1:if(B=!E.icon&&!E.iconName||!E.isAttached)return m.return();I=E;T=I.icon;e=I.size;c=I.defaultToFilled;Y=I.active;v=I.targetContainer;E.toggleContainerClass(v);_.d("kevlar_use_wil_icons")&&T&&(y=Mkt(T),y.length?_.d("kevlar_icon_type_fix_killswitch")?(Z=y[1].toUpperCase(),E.iconType=u1r[Z],E.iconType||(E.iconType=y[1])):E.iconType=y[1]:E.iconType=null);if(T){m.jumpTo(2);break}E.iconsetName=
"";E.iconName="";return _.C(m,E.renderIcon(v,T),3);case 3:return m.return();case 2:P=E.computeIcon(T);z=Mkt(P);z.length&&(E.iconsetName=z[0],E.iconName=z[1]);if(!_.d("kevlar_use_wil_icons")){m.jumpTo(4);break}return _.C(m,E.getIconShapeData(),5);case 5:E.iconShapeData=m.yieldResult;case 4:if(E.shouldRenderIconShape(v)){m.jumpTo(6);break}return _.C(m,E.determineIconSet(P,Y,c,e,v),6);case 6:return _.C(m,E.renderIcon(v,T),0)}})};
_.l.toggleContainerClass=function(E){E?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.l.computeIcon=function(E){return!_.d("default_to_innertube_icon")||E.indexOf(":")>0?E:_.R3(E)};
_.l.determineIconSet=function(E,B,I,T){var e=this;return _.a(function(c){return c.nextAddress==1?_.d("kevlar_system_icons")||_.HA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.HA("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.C(c,e.switchToYtSysIconset(E,B,I,T),3):c.jumpTo(2):c.nextAddress!=2?c.return():_.C(c,e.useYtSysIconsetForMissingIcons(E,B,I,T),0)})};
_.l.switchToYtSysIconset=function(E,B,I,T){var e=this,c,Y,v,y,Z,P,z;return _.a(function(m){switch(m.nextAddress){case 1:if(!E||e.iconsetName!=="yt-icons"&&e.iconsetName!=="yt-sys-icons"){m.jumpTo(0);break}c=Mkt(E);Y=c[1];Y=_.osD(Y);_.d("enable_polymer_icons_replace_underscores_dash")&&Y.includes("_filled")&&(Y=Y.replace(/_filled/g,"-filled"));return _.C(m,K$(Y,!0),3);case 3:return v=m.yieldResult,_.C(m,K$(Y,!1),4);case 4:if((y=m.yieldResult)||B&&v)e.iconsetName="yt-sys-icons";e.iconName=e.getIconName(Y,
B,I,y,v);if(T===24){m.jumpTo(0);break}Z="yt-sys-icons"+T+":"+e.iconName;return _.C(m,K$(Z,!1,!0),6);case 6:return P=m.yieldResult,_.C(m,K$(Z,!0,!0),7);case 7:z=m.yieldResult;e.iconName=e.getIconName(Y,B,I,P,z);if(!B&&P||B&&z)e.iconsetName="yt-sys-icons"+T;_.ER(m)}})};
_.l.getIconName=function(E,B,I,T,e){E.includes("-filled")&&(E=E.replace("-filled",""));return e&&(B||I)?E+"-filled":E};
_.l.useYtSysIconsetForMissingIcons=function(E,B,I,T){var e=this,c,Y;return _.a(function(v){if(v.nextAddress==1)return e.iconsetName!=="yt-icons"?v.jumpTo(0):_.C(v,K$(e.iconName,!1,!1,!0),3);if(v.nextAddress!=4)return c=v.yieldResult,_.C(v,K$(e.iconName,!1),4);Y=v.yieldResult;if(c||!Y)return v.jumpTo(0);e.iconsetName="yt-sys-icons";return _.C(v,e.switchToYtSysIconset(E,B,I,T),0)})};
_.l.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.l.getIconManager=function(){return _.a(function(E){try{return E.return(_.Q().resolve(_.Ee))}catch(B){return E.return(new Promise(function(I){_.gB().parkOrScheduleJob(function(){I(_.Q().resolve(_.Ee))},2,"ci")}))}})};
_.l.getIconShapeData=function(){var E=this,B,I,T,e,c,Y;return _.a(function(v){if(v.nextAddress==1){if(!E.iconType)return v.return(void 0);B=E.iconType.toLowerCase();I=B.endsWith("_filled")||B.endsWith("-filled");return _.C(v,E.getIconManager(),2)}T=v.yieldResult;e=E.active||E.defaultToFilled||I?"youtube_fill":"youtube_outline";c={iconName:B,iconStyle:e,iconSize:E.size,iconSetName:E.iconsetName};Y=!!T.resolveIcon(c);Y||(c.iconSize=void 0,Y=!!T.resolveIcon(c));!Y&&I&&(c.iconName=B.substring(0,B.length-
7),c.iconSize=E.size,Y=!!T.resolveIcon(c),Y||(c.iconSize=void 0,Y=!!T.resolveIcon(c)));Y||(c.iconStyle=void 0,Y=!!T.resolveIcon(c));Y||_.OG(new _.P7("Icon not supported",{iconName:c.iconName,iconStyle:c.iconStyle,iconSize:c.iconSize,iconType:B}));return v.return(Y?c:void 0)})};
_.l.shouldRenderIconShape=function(E){if(!_.d("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;E=this.getContainer(E);return!FPG(E,this.icon)};
_.l.renderIcon=function(E,B){var I=this,T,e,c,Y,v,y,Z,P;return _.a(function(z){switch(z.nextAddress){case 1:if(B&&I.icon!==B)return z.return();T=I.getContainer(E);e=FPG(T,I.icon);if(I.shouldRenderIconShape(E)&&I.iconType)return I.applyIconShape(e,T),z.return();I.removeIconShape();if(!T)return z.return();I.iconName===""&&I.iconset&&T&&(I.removeStaticIcon(I.iconset,T),e&&I.removeAnimatedIcon(T));if(I.iconName===""&&I.iconset||!I.iconsetName||!Ej6)return z.return();I.iconset=Ej6.byKey(I.iconsetName);
if(!I.iconset)return I.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Kq(I,I.onIconsetAdded)),z.return();I.missingIconSet&&(I.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Kq(I,I.onIconsetAdded)));Y=(c=e||I.isAnimatedIcon?VFQ(I.icon):void 0)&&!c.lazyLoad;y=c&&((v=c)==null?void 0:v.lazyLoad)&&(c.lottiePlayerProps.animationConfig.animationData?!0:K8.get(I.isDarkTheme?c.pathDarkTheme:c.path)?!0:!1);if(Y||y)return I.applyAnimatedIcon(T,c,I.iconset),z.return();if(y||
(Z=c)==null||!Z.lazyLoad){z.jumpTo(2);break}P=KPc(c,I.isDarkTheme);I.applyStaticIcon(I.iconset,T,I.iconName,E,e);return _.C(z,P,3);case 3:return _.C(z,I.renderIcon(I.targetContainer,I.icon),4);case 4:return z.return();case 2:I.applyStaticIcon(I.iconset,T,I.iconName,E,e),_.ER(z)}})};
_.l.getContainer=function(E){var B,I=(B=V_i(this.hostElement))==null?void 0:B.host;B=!!I&&!!I.polymerController;if(!E||B)return E?this.getTargetContainer(E,I):this.hostElement};
_.l.getTargetContainer=function(E,B){var I=_.n(B).querySelector("#"+E);I||(E=new _.P7("yt-icon container missing",B.is,E),_.xV(E));return I};
_.l.applyStaticIcon=function(E,B,I,T,e){e&&this.removeAnimatedIcon(B);this.removeIconShape();e=e&&!!this.iconType&&!!this.iconShapeData&&_.d("kevlar_use_wil_icons");try{e?this.applyIconShape(!1,B):E.applyIcon(B,I)}catch(c){this.handleError(c,T,B)}};
_.l.applyIconShape=function(E,B){this.iconset&&B&&(this.removeStaticIcon(this.iconset,B),E&&this.removeAnimatedIcon(B));E={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var I=_.p(this.iconShapeDataSignal);B=I.next().value;I=I.next().value;var T=_.p(this.renderingOptionsSignal),e=T.next().value;T=T.next().value;I(this.iconShapeData);T(E);if(!this.wizHasRendered)for(this.wizHasRendered=!0,E=_.p(Tx4(B,e)).next().value;E.firstChild;)_.n(this.hostElement).appendChild(E.firstChild)};
_.l.removeIconShape=function(){if(_.d("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.l.removeStaticIcon=function(E,B){E.removeIcon(B)};
_.l.applyAnimatedIcon=function(E,B,I){this.removeStaticIcon(I,E);this.removeIconShape();var T;I=this.animatedIconElement&&((T=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:T.type)===B.type;if(this.animatedIconElement&&I){this.animatedIconElement.polymerController.animatedIcon=B;var e;((e=this.animatedIconElement)==null?void 0:e.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(E),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=B,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.d("kevlar_use_wil_icons")?E.insertBefore(this.animatedIconElement,E.childNodes[0]):(E=_.n(E),E.insertBefore(this.animatedIconElement,E.childNodes[0]))};
_.l.removeAnimatedIcon=function(E){_.d("kevlar_use_wil_icons")?this.animatedIconElement&&E.contains(this.animatedIconElement)&&E.removeChild(this.animatedIconElement):(E=_.n(E),this.animatedIconElement&&E.contains(this.animatedIconElement)&&E.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.l.handleError=function(E,B,I){_.ni(E,this.iconName,B,I);B=FPG(I,this.icon);var T=!1;window.location.href.includes("JpymaW6Lh2w")?T=!0:I._svgIcon&&(I=(I=I._svgIcon.parentNode)?I.tagName:"unknown",_.ni(E,I),I==="YT-ICON"&&E.name==="NotFoundError"?T=!0:E.name==="NotFoundError"&&B&&(T=!0));T?_.OG(E):_.xV(E)};
_.Up.Object.defineProperties(V5,{template:{configurable:!0,enumerable:!0,get:function(){if(RgN===void 0){var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;
KO6===void 0&&(KO6=document.createElement("template"));var T=KO6;I.call(B,T.content.cloneNode(!0),E.content.firstChild);RgN=E}E=RgN;return E}}});
V5.prototype.handlePropertyChange=V5.prototype.handlePropertyChange;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],V5.prototype,"actionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",String)],V5.prototype,"icon",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],V5.prototype,"active",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],V5.prototype,"defaultToFilled",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],V5.prototype,"isAnimatedIcon",void 0);
_.k([_.X({value:24}),_.t("design:type",Number)],V5.prototype,"size",void 0);_.k([_.X({value:""}),_.t("design:type",String)],V5.prototype,"targetContainer",void 0);_.k([_.X(),_.t("design:type",Object)],V5.prototype,"animatedIconElement",void 0);_.k([_.X(),_.t("design:type",Object)],V5.prototype,"isDarkTheme",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],V5.prototype,"ariaHidden",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],V5.prototype,"ariaLabel",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],V5.prototype,"role",void 0);_.k([_.X(),_.t("design:type",String)],V5.prototype,"style",void 0);_.k([_.X(),_.t("design:type",String)],V5.prototype,"iconFilter",void 0);_.k([_.EM("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype",Promise)],V5.prototype,"handlePropertyChange",null);
V5=_.k([_.QE({is:"yt-icon",noInjection:!0})],V5);var B$D;var $Rz=function(){var E=document.body,B=E.appendChild;if(B$D===void 0){var I=document.createElement("template");_.G(I,'\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>');
B$D=I}I=B$D;B.call(E,I.content)};
document.body?$Rz():window.addEventListener("DOMContentLoaded",$Rz);var I8h,T$U=function(){return I8h!==void 0?I8h:I8h=document.createElement("template")};
document.head.appendChild(T$U().content);var eFN,l8V=function(){return eFN!==void 0?eFN:eFN=document.createElement("template")};
document.head.appendChild(l8V().content);var cnl;_.ZR=new _.Dr("KEY_MANAGER_TOKEN");var psJ={duration:1E3,easing:"ease",fill:"forwards"};_.qW(ikG);var iR6=_.$3(_.IS);_.qW(_.IS);_.Y3=_.rp(function(E){var B=_.oH(E.ref),I=E.aTagConfig?E.aTagConfig:_.aJ(function(){var c,Y,v,y,Z,P;var z=(P=_.ha((y=E.command)==null?void 0:y.call(E)))!=null?P:(Z=E.command)==null?void 0:Z.call(E);return _.uu({innertubeCommand:z,skipOnClick:(c=E.skipOnClick)==null?void 0:c.call(E),stopPropagation:(Y=E.dangerousStopPropagation)==null?void 0:Y.call(E),defaultTarget:(v=E.target)==null?void 0:v.call(E)})||{}},void 0,"gnrRge");
_.m$(function(){B.value._data=I()._data;B.value.params=I().params});
var T=_.TI(function(c){var Y,v;return void((v=(Y=I()).onpointerdown)==null?void 0:v.call(Y,c))}),e=_.TI(function(c){var Y,v;
return void((v=(Y=I()).onclick)==null?void 0:v.call(Y,c))});
return _.w("a",{el:B,href:function(){return I().href$},
rel:function(){return I().rel$},
class:function(){var c,Y;return(Y=I().className)!=null?Y:(c=E.className)==null?void 0:c.call(E)},
style:function(){var c;if((c=E.style)==null?0:c.call(E))return E.style();var Y;return((Y=E.disabled)==null?0:Y.call(E))?"pointer-events:none":""},
"aria-haspopup":function(){return!!I()["aria-haspopup$"]},
"force-new-state":ex(function(){return I()["force-new-state$"]}),
title:ex(function(){var c,Y;return(Y=I().title$)!=null?Y:(c=E.title)==null?void 0:c.call(E)}),
role:ex(function(){return I().role$}),
target:ex(function(){return I().target$}),
dir:ex(function(){var c;return((c=E.dir)==null?0:c.call(E))?E.dir():I().dir}),
tabindex:function(){var c;return I().tabindex$?Number(I().tabindex$):(c=E.tabIndex)==null?void 0:c.call(E)},
"aria-hidden":function(){var c,Y;return(Y=I()["aria-hidden$"])!=null?Y:(c=E.ariaHidden)==null?void 0:c.call(E)},
"aria-label":function(){var c,Y;return(Y=I()["aria-label$"])!=null?Y:(c=E.ariaLabel)==null?void 0:c.call(E)},
"aria-current":E.ariaCurrent,"aria-labelledby":E.ariaLabelledby,"aria-describedby":E.ariaDescribedby,"aria-selected":E.ariaSelected,"tab-identifier":E.tabIdentifier,"on:pointerdown":T,"on:click":e},E.children)},"j");var pzu=function(E,B){this.fillAnimation=new Animation(vZt(E),document.timeline);this.strokeAnimation=new Animation(y$6(B),document.timeline)};
pzu.prototype.play=function(){var E,B;(B=(E=this.fillAnimation).play)==null||B.call(E);var I,T;(T=(I=this.strokeAnimation).play)==null||T.call(I)};
pzu.prototype.cancel=function(){var E,B;(B=(E=this.fillAnimation).cancel)==null||B.call(E);var I,T;(T=(I=this.strokeAnimation).cancel)==null||T.call(I)};_.v$=_.rp(function(E){var B=E.model;var I=E.pointerDownEvent;var T=E.pointerUpEvent;var e=E.pointerLeaveEvent;E=_.oH();var c=_.c$({"border-radius":function(){return B().borderRadius}}),Y=_.oH(),v=_.oH(),y=_.p(_.l0(function(){return(T==null?0:T())||(e==null?0:e())?!1:!(I==null||!I())||!1})),Z=y.next().value,P=y.next().value,z=void 0,m=function(){!z&&v.value&&Y.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(z=new pzu(v.value,Y.value));
var U;(U=z)==null||U.play()},u=function(){var U;
(U=z)==null||U.cancel()},x=function(){var U;
(U=z)==null||U.cancel()};
_.m$(function(){(T==null?0:T())&&m()});
_.m$(function(){(I==null?0:I())&&u()});
_.m$(function(){(e==null?0:e())&&x()});
y=_.TI(function(){m();P(!1)});
var M=_.TI(function(){u();P(!0)}),N=_.TI(function(){x();
P(!1)});
_.dt(function(){if(z){var U;(U=z)==null||U.cancel();z=void 0}});
var W={};Z=_.RQ("yt-spec-touch-feedback-shape",function(){return wsD(B().color)},(W["yt-spec-touch-feedback-shape--focused"]=function(){return!!B().focused&&!B().disabled},W["yt-spec-touch-feedback-shape--circular"]=function(){return!!B().circular},W["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!B().isExtended},W["yt-spec-touch-feedback-shape--down"]=Z,W["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!B().triggerEvents},W));
return _.w("yt-touch-feedback-shape",{style:_.c$({"border-radius":"inherit"})},_.w("div",{el:E,class:Z,style:_.c$({"margin-top":function(){return B().customTopExtend?"-"+B().customTopExtend+"px":void 0}}),
"on:mousedown":M,"on:mouseup":y,"on:pointerleave":N,"on:touchstart":M,"on:touchend":y,"aria-hidden":!0},_.w("div",{class:"yt-spec-touch-feedback-shape__stroke",style:c,el:Y}),_.w("div",{class:"yt-spec-touch-feedback-shape__fill",style:c,el:v})))},"k");
_.v$.idomCompat=!0;var YlZ={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 ql=_.C4();ql=ql.toLowerCase();if(_.vG(ql,"android")){var a8l=ql.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);a8l&&parseFloat(a8l[1])<100||ql.match("("+Object.keys(YlZ).join("|")+")")};var vjZ=_.rp(function(E){return _.w(_.wU,{cond:E.aTagConfig,then:function(B){return _.w(_.Y3,{aTagConfig:B,disabled:E.disabled,className:E.className,style:E.style,title:E.title,ariaLabel:E.ariaLabel,ariaCurrent:function(){var I,T;return((I=E.toggleable)==null?void 0:I.call(E))&&((T=E.toggled)==null?void 0:T.call(E))}},E.children)},
else:function(){return _.w("button",{"on:click":_.TI(function(B){var I;return(I=E.onClick)==null?void 0:I.call(E,B)}),
class:E.className,title:E.title,style:E.style,disabled:E.disabled,"aria-pressed":function(){var B,I;return((B=E.toggleable)==null?0:B.call(E))?!((I=E.toggled)==null||!I.call(E)):void 0},
"aria-label":E.ariaLabel,"aria-disabled":E.visiblyDisabled,"aria-hidden":E.ariaHidden,tabindex:E.tabIndex},E.children)}})},"l"),CBR=_.rp(function(E){var B=E.data;
var I=E.hasIconLeading;var T=E.hasIconLeadingTrailing;var e=E.hasIconTrailing;var c=E.iconButton;var Y=E.iconClassName;var v=E.secondaryIconClassName;var y=E.icon;var Z=E.secondaryIcon;var P=E.textContentClassName;return _.w(Fe,{className:"",style:"display: inherit; justify-content: center"},_.w(_.wU,{cond:function(){return y&&(I()||T()||(c==null?void 0:c()))},
then:function(){return _.w(Fe,null,_.w("div",{class:Y,"aria-hidden":"true"},y==null?void 0:y()))}}),_.w(_.wU,{cond:function(){return(B().buttonText||B().animatedTextProps||B().formattedButtonText)&&!(c==null?0:c())},
then:function(){return _.w(Fe,null,_.w(ynr,{className:P,iconPosition:function(){return B().iconPosition},
text:function(){return B().buttonText},
oneOffCustomTextWrap:function(){return B().oneOffCustomTextWrap},
formattedButtonText:function(){return B().formattedButtonText},
animatedTextProps:function(){return B().animatedTextProps}}))}}),_.w(_.wU,{cond:e,
then:function(){return _.w(Fe,null,_.w("div",{class:Y},y==null?void 0:y()))}}),_.w(_.wU,{cond:T,
then:function(){return _.w(Fe,null,_.w("div",{class:v},Z==null?void 0:Z()))}}),_.w(_.wU,{cond:function(){return!B().disabled&&!0},
then:function(){return _.w(_.v$,{model:function(){return{color:mQQ(B())}}})}}))},"m"),ynr=_.rp(function(E){var B=function(){var I,T;
return((I=E.iconPosition)==null?void 0:I.call(E))==="icon-with-label"||((T=E.oneOffCustomTextWrap)==null?void 0:T.call(E))};
return _.w("div",{class:E.className,"aria-hidden":function(){var I,T,e;return((I=E.ariaHidden)==null?void 0:I.call(E))&&(!((T=E.animatedTextProps)==null||!T.call(E))||!((e=E.formattedButtonText)==null||!e.call(E)))}},_.w(_.m4,null,_.w(_.PA,{when:function(){var I;
return(I=E.animatedTextProps)==null?void 0:I.call(E)}},function(){return _.w(iR6,{numberText:function(){return E.animatedTextProps().numberText},
numberValue:function(){return E.animatedTextProps().numberValue},
heightPx:function(){return E.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return E.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return E.animatedTextProps().shouldAnimate},
forceRollUp:function(){return E.animatedTextProps().forceRollUp}})}),_.w(_.PA,{when:function(){var I;
return(I=E.formattedButtonText)==null?void 0:I.call(E)}},function(){return _.w(_.aS,{text:function(){return Object.assign({},E.formattedButtonText(),{lineBreakMode:B()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":E.formattedButtonText().lineBreakMode,
alignment:B()?"TEXT_ALIGNMENT_CENTER":E.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!B()}})}),_.w(_.zb,null,function(){return E.text})))},"n"),wzr=_.rp(function(E){return _.w(_.wU,{cond:E.hasLabel,
then:function(){var B;return _.w("label",{class:E.className},E.children,(B=E.textContent)==null?void 0:B.call(E))},
else:function(){return E.children}})},"o"),Fe=_.rp(function(E){return E.children},"p");var aQQ=qm("stamper-context");_.qW(MXQ);var F3=_.rp(function(E){var B=E.data;var I=E.icon;var T=E.iconName;var e=E.secondaryIcon;var c=E.secondaryIconName;var Y=E.focusedOverride;G_J();var v=Zkf(B),y=v.size,Z=v.style;E=v.disabled;var P=v.onTap,z=v.alignByText,m=v.aTagConfig,u=v.customColors,x=v.segmentedPosition,M=v.toggled,N=v.toggleable,W=v.accessibilityLabel,U=v.onToggle,q=v.iconPosition,f=v.oneOffCustomTextWrap,ed=v.disableTextEllipsis,K=v.disableBackdropFilter,p4=v.tooltipText,sc=v.ariaHidden,Gf=v.tabIndex,xi=v.buttonText,ki=v.formattedButtonText,
WG=v.animatedTextProps,rJ=zyi(B,I,e,T,c,Y),Uc=rJ.type;I=rJ.shouldFocus;T=rJ.hasIconLeading;e=rJ.hasIconTrailing;c=rJ.hasIconLeadingTrailing;var CV=rJ.hasIconOnly;Y=rJ.hasIconOnly40;var Bm=rJ.hasIconWithLabel;v=rJ.iconButton;var LV=rJ.visiblyDisabled,I$=rJ.overrideSmallSizeIcon,bc=rJ.iconToRender;rJ=rJ.secondaryIconToRender;var hz={},TU={};return _.w(wzr,{className:_.RQ("yt-spec-button-shape-with-label",(hz["yt-spec-button-shape-with-label--is-overlay"]=function(){return Z()==="overlay"||Z()==="overlay-dark"},
hz)),
hasLabel:Bm,textContent:function(){return _.w(ynr,{text:xi,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:f,iconPosition:q,formattedButtonText:ki,animatedTextProps:WG})}},_.w(vjZ,{aTagConfig:m,
className:_.RQ("yt-spec-button-shape-next",function(){return dQG(Uc())},function(){return LV()?void 0:hyD(Z())},function(){return siJ(y())},(TU["yt-spec-button-shape-next--disabled"]=LV,TU["yt-spec-button-shape-next--focused"]=I,TU["yt-spec-button-shape-next--icon-trailing"]=e,TU["yt-spec-button-shape-next--icon-leading"]=T,TU["yt-spec-button-shape-next--icon-leading-trailing"]=c,TU["yt-spec-button-shape-next--icon-button"]=function(){return CV()||Bm()},TU["yt-spec-button-shape-next--icon-only-default"]=
Y,TU["yt-spec-button-shape-next--align-by-text"]=z,TU["yt-spec-button-shape-next--segmented-start"]=function(){return x()==="start"},TU["yt-spec-button-shape-next--segmented-end"]=function(){return x()==="end"},TU["yt-spec-button-shape-next--override-small-size-icon"]=I$,TU["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=f,TU["yt-spec-button-shape-next--disable-text-ellipsis"]=ed,TU["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=function(){return!K()&&Qii()},TU)),
style:function(){return L8i(u()).style},
onClick:function(Wm){P==null||P(Wm);N()&&(U==null||U(Wm))},
disabled:E,ariaLabel:W,toggleable:N,toggled:M,title:function(){var Wm;return(Wm=p4())!=null?Wm:""},
visiblyDisabled:LV,ariaHidden:sc,tabIndex:Gf},_.w(CBR,{data:B,hasIconLeading:T,hasIconLeadingTrailing:c,hasIconTrailing:e,iconButton:v,icon:bc,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:rJ})))},"q");
F3.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var ZRD=_.rp(function(E){var B=E.data;var I=E.id;var T=E.hidden;var e=E.className;var c=E.icon;var Y=E.secondaryIcon;var v=E.iconName;var y=E.secondaryIconName;E=_.p(_.lQ(!1,void 0,"ikxyhf"));var Z=E.next().value,P=E.next().value,z=function(){var u=_.Q().resolve(_.Fx(_.ZR));u&&P(u.isKeyBoardInUse())},m=function(){P(!1)};
E=_.oH(function(u){if(_.Q().resolve(_.Fx(_.ZR)))return u.addEventListener("focusin",z),u.addEventListener("focusout",m),function(){u.removeEventListener("focusin",z);u.removeEventListener("focusout",m)}});
return _.w("yt-button-shape",{el:E,id:I,class:e,hidden:T},_.w(_.wU,{cond:B,then:function(){return _.w(F3,{data:B,icon:c,secondaryIcon:Y,iconName:v,secondaryIconName:y,focusedOverride:Z})}}))},"r");
_.d("web_wiz_button_shape")&&_.oQ(ZRD,"yt-button-shape",{props:{data:_.Jh,id:_.Jh,hidden:_.Jh,className:_.Jh,icon:_.bu,secondaryIcon:_.bu,iconName:_.Jh,secondaryIconName:_.Jh},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var DG=function(){var E=_.r.apply(this,arguments)||this;E.keyboardFocused=!1;return E};
_.L(DG,_.r);DG.prototype.onFocus=function(){var E=_.Q().resolve(_.Fx(_.ZR));E&&(this.keyboardFocused=E.isKeyBoardInUse())};
DG.prototype.onBlur=function(){this.keyboardFocused=!1};
DG.prototype.renderIdom=function(){var E=this;if(this.data){var B=pp(this.data,!!this.iconName),I=ucB(this.data),T=function(){var c;Zx("yt-icon",{icon:E.iconName,active:(c=E.data)==null?void 0:c.toggled,size:B,style:"width: "+B+"px; height: "+B+"px;",iconFilter:I},Jx)},e=function(){var c;
Zx("yt-icon",{icon:E.secondaryIconName,active:(c=E.data)==null?void 0:c.toggled,size:B,style:"width: "+B+"px; height: "+B+"px;",iconFilter:I},Jx)};
this.data.focused=this.keyboardFocused;_.d("web_reactive_button_shape_in_c3po")?gX(F3)({data:this.data,iconName:this.iconName,secondaryIconName:this.secondaryIconName}):W8J(this.data,T,e);_.$O(this.hostElement,"yt-renderidom-finished")}};
_.Up.Object.defineProperties(DG,{template:{configurable:!0,enumerable:!0,get:function(){if(cnl===void 0){var E=document.createElement("template");_.G(E,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);E.content.insertBefore(l8V().content.cloneNode(!0),E.content.firstChild);E.content.insertBefore(T$U().content.cloneNode(!0),E.content.firstChild);cnl=E}E=cnl;return E}}});
DG.prototype.onBlur=DG.prototype.onBlur;DG.prototype.onFocus=DG.prototype.onFocus;_.k([_.g(jfZ),_.t("design:type",Object)],DG.prototype,"ytIdomTemplatingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],DG.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],DG.prototype,"iconName",void 0);_.k([_.X(),_.t("design:type",String)],DG.prototype,"secondaryIconName",void 0);_.k([_.X(),_.t("design:type",Object)],DG.prototype,"keyboardFocused",void 0);
_.k([_.RN("focusin"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],DG.prototype,"onFocus",null);_.k([_.RN("focusout"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],DG.prototype,"onBlur",null);DG=_.k([_.QE({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.d("web_wiz_button_shape")})],DG);_.oQ(_.rp(function(E){function B(){I().seconds&&c(kTf({seconds:Number(I().seconds)-Date.now()/1E3}))}
var I=E.targetTimestamp;E=E.className;var T=_.p(_.lQ("",void 0,"U1Q8Ae")),e=T.next().value,c=T.next().value;_.hA(function(){B();var Y=setInterval(function(){B()},1E3);
_.dt(function(){clearInterval(Y)})});
return _.w("yt-countdown",{class:_.RQ("ytCountDownHost",E)},_.w("div",null,e))},"s"),"yt-countdown",{props:{targetTimestamp:_.Jh,
className:_.bu}});_.ne=_.rp(function(E){var B=E.data;var I=E.className;var T=E.style;var e=E.useOutlinedIcon;var c=E.buttonOverrides;var Y=E.animatedTextProps;var v=E.onClick;var y=_.oH(function(N){return function(){UX6(_.T0(),N)}}),Z=function(){return B().iconName},P,z=(P=_.Q().resolve(_.Fx(_.ME)))==null?void 0:P(),m=function(){var N=B();
var W=c==null?void 0:c(),U=Y==null?void 0:Y();if(N){var q=bkD(N.type);var f=!!N.title||!!N.titleFormatted;var ed=!(!N.iconName&&!N.iconImage);f=ed&&!f?"icon-only":ed?N.iconTrailing||N.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;f==="icon-only-40"&&(q="text");var K,p4=(K=W==null?void 0:W.disabled)!=null?K:N.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||N.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";K=Object;ed=K.assign;var sc=N.title,Gf=N.titleFormatted;U=U&&U.numberText&&
!isNaN(Number(U.numberValue))?U:void 0;var xi=N.accessibilityText,ki=r$c(N.style),WG=oZF(N.state),rJ=A$G(N.buttonSize),Uc=XsG(N,y,p4,v);p4=p4&&!N.onDisabledTap;var CV=_.uu({elementsCommand:N.onTap,forceNewState:!0});CV=L8(CV)?CV:void 0;var Bm=N.customFontColor,LV=N.customBackgroundColor;var I$=N.customBorderColor;var bc=N.customDarkThemeFontColor,hz=N.customDarkThemeBackgroundColor,TU=N.customDarkThemeBorderColor;Bm=z&&bc?bc:Bm;LV=z&&hz?hz:LV;I$=z&&TU?TU:I$;I$={color:Bm?_.hR(Bm):void 0,backgroundColor:LV?
_.hR(LV):void 0,borderColor:I$?_.hR(I$):void 0};N=ed.call(K,{},{buttonText:sc,formattedButtonText:Gf,animatedTextProps:U,accessibilityLabel:xi,style:ki,type:q,state:WG,size:rJ,iconPosition:f,onTap:Uc,disabled:p4,aTagConfig:CV,customColors:I$,tooltipText:N.tooltip},W)}else N={style:"mono",type:"text",state:"active",size:"M"};N.focused=M();return N},u=function(){return pp(m(),!!B().iconName)};
E=_.p(_.lQ(!1,void 0,"JjUrEe"));P=E.next().value;var x=E.next().value,M=P;E=_.TI(function(){var N=_.Q().resolve(_.Fx(_.ZR));N&&x(N.isKeyBoardInUse());return!1});
P=_.TI(function(){x(!1);return!1});
_.m$(function(){var N,W=_.h(B==null?void 0:(N=B())==null?void 0:N.onVisible,_.dX);W&&_.se(W,{disableClickTracking:!0})});
_.uW(function(){y.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var N=B().targetId;N&&_.tr$(_.T0(),N,y.value)});
return _.w("button-view-model",{el:y,class:_.RQ("yt-spec-button-view-model",I),"on:focusin":E,"on:focusout":P},_.w(_.wU,{cond:function(){return B().iconImage?{sources:[B().iconImage]}:void 0},
then:function(N){return _.w(F3,{data:m,icon:function(){return _.w(_.Ja,{data:N,alt:"",targetWidth:u,targetHeight:u,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.w(F3,{data:m,icon:function(){return _.w(_.i0,{icon:Z,active:function(){return(e==null?0:e())?!1:m().toggled},
animateIcon:function(){var N;return!!(T==null?0:(N=T())==null?0:N.animateIcon)},
size:u})}})}}))},"t");
_.ne.idomCompat={callbacks:{onClick:!0}};_.oQ(_.rp(function(E){return _.w("yt-button-view-model",{id:E.id,class:_.RQ(E.scopingClassName,E.classes),icon:function(){var B;return(B=E.icon)==null?void 0:B.call(E)},
"dialog-dismiss":function(){var B;return((B=E.dialogDismiss)==null?0:B.call(E))?"":void 0}},_.w(_.ne,{data:function(){var B;
return(B=E.data)==null?void 0:B.call(E)},
className:function(){var B;return(B=E.className)==null?void 0:B.call(E)},
style:function(){var B;return(B=E.style)==null?void 0:B.call(E)},
useOutlinedIcon:function(){var B;return(B=E.useOutlinedIcon)==null?void 0:B.call(E)},
buttonOverrides:function(){var B;return(B=E.buttonOverrides)==null?void 0:B.call(E)},
animatedTextProps:function(){var B;return(B=E.animatedTextProps)==null?void 0:B.call(E)},
onClick:function(B){var I;return(I=E.onClick)==null?void 0:I.call(E,B)}}))},"u"),"yt-button-view-model",{props:{data:_.Jh,
className:_.Jh,style:_.Jh,useOutlinedIcon:_.Jh,buttonOverrides:_.Jh,animatedTextProps:_.Jh,onClick:_.bu,scopingClassName:_.Jh,id:_.Jh,icon:_.Jh,dialogDismiss:_.Jh,classes:_.Jh}});var KM=function(){var E=_.r.apply(this,arguments)||this;E.isGoalActive=!0;return E};
_.L(KM,_.r);KM.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
KM.prototype.progressBarChanged=function(){var E=_.n(this.hostElement).querySelector("#progress-bar-progress"),B,I,T,e=(T=Number((B=this.creatorGoalState)==null?void 0:B.currentGoalCount)/Number((I=this.creatorGoalState)==null?void 0:I.totalGoalCount)*100)!=null?T:0,c;E.style.width=((c=Math.min(e,100))!=null?c:0)+"%"};
KM.prototype.goalStateChanged=function(){var E;this.isGoalActive=((E=this.creatorGoalState)==null?void 0:E.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var B;E={"--yt-progress-bar-color":egi((B=this.creatorGoalState)==null?void 0:B.progressBarColor)};_.Dk(this.hostElement,E)};
KM.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Up.Object.defineProperties(KM.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var E;return this.isGoalActive&&!((E=this.creatorGoalState)==null||!E.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.creatorGoalState)==null?0:E.endTimestampMs){var B;E=Number((B=this.creatorGoalState)==null?void 0:B.endTimestampMs)/1E3;return{seconds:String(E)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.creatorGoalState)==null?0:E.themedTargetImage){var B;E=_.h((B=this.creatorGoalState)==null?void 0:B.themedTargetImage,wc$);return this.isAppDarkTheme()?E==null?void 0:E.imageDark:E==null?void 0:E.imageLight}}}});
_.Up.Object.defineProperties(KM,{template:{configurable:!0,enumerable:!0,get:function(){return AXD()}}});
KM.prototype.goalStateChanged=KM.prototype.goalStateChanged;KM.prototype.progressBarChanged=KM.prototype.progressBarChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.LM),_.t("design:type",Object)],KM.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);
_.k([_.X({selectorArgs:["data.creatorGoalEntityKey"],selector:function(E,B){return _.cP(E.entities,"creatorGoalEntity",B)}}),
_.t("design:type",Object)],KM.prototype,"creatorGoalState",void 0);_.k([_.X(),_.t("design:type",Object)],KM.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],KM.prototype,"isGoalActive",void 0);_.k([_.S("creatorGoalState","isGoalActive"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],KM.prototype,"shouldShowCountdown",null);_.k([_.S("creatorGoalState"),_.t("design:type",Object),_.t("design:paramtypes",[])],KM.prototype,"endTimestamp",null);
_.k([_.S("creatorGoalState"),_.t("design:type",Object),_.t("design:paramtypes",[])],KM.prototype,"targetIconThemedImage",null);_.k([_.EM("creatorGoalState.currentGoalCount"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KM.prototype,"progressBarChanged",null);_.k([_.EM("creatorGoalState.creatorGoalState"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KM.prototype,"goalStateChanged",null);
KM=_.k([_.QE({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],KM);_.A(KM,"yt-creator-goal-progress-flow-view-model",function(){return AXD()},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var PBR;var zFz;var Ry=function(){return _.r.apply(this,arguments)||this};
_.L(Ry,_.r);Ry.prototype.attached=function(){var E,B,I;if(this==null?0:(E=this.data)==null?0:(B=E.pdgPurchasedBumperLoggingDirectives)==null?0:(I=B.loggingDirectives)==null?0:I.trackingParams){var T,e,c;k_D(this==null?void 0:(T=this.data)==null?void 0:(e=T.pdgPurchasedBumperLoggingDirectives)==null?void 0:(c=e.loggingDirectives)==null?void 0:c.trackingParams)}};
Ry.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Ry.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Ry.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ry.prototype,"data",void 0);Ry=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Ry);
_.A(Ry,"yt-live-chat-item-bumper-view-model",function(){if(zFz===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;PBR===void 0&&(PBR=document.createElement("template"));var T=PBR;I.call(B,T.content.cloneNode(!0),E.content.firstChild);zFz=E}E=zFz;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var mRr;var QtU;_.W$=function(E,B){this.data=E;this.actions=B;this.data=E;this.actions=B};
_.O1=function(){};_.E6={};_.E6.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(E,B){tXd(this.hostElement,E,B)},
getNavigationEndpointPopupAction:function(E){return f9D(E,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(E,B){VXi(this.hostElement,E,B,this.openPopupConfig)}};var Tkc=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.BF={};
_.BF.YtEndpointBehavior=[_.E6.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.HA("openPopupConfig");(this.useClickHandler=_.gU("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(E){DQt(this.hostElement,E,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(E){var B=this.hostElement,I=this.openPopupConfig,T=this.disableCommandHandlerOverride;T=T===void 0?!1:T;var e=q0f(E);if(e){e.href&&Lq(e.href);var c=E.detail;var Y=c.sourceEvent;c=c.preventer;Y=Y.button!==void 0?Y.button===0&&!ZQ(Y):c?!ZQ(c):!0;e.data&&Y&&F8d(B,e,E,I,T)}},
onEndpointTouchEnd_:function(E){ZQ(E)||q0f(E)&&E.preventDefault()},
onEndpointTapStart_:function(E){$1B(E)}}];var e1B="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),cef=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var dRh={};dRh.YtPlaintextBehavior=[_.mG,{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(E){E.preventDefault();E=E.clipboardData.getData("text/plain");document.execCommand("insertText",!1,E)},
preventRichTextFormatting_:function(E){_.ar&&(E=E.detail.keyboardEvent,E.stopImmediatePropagation(),E.preventDefault())}}];var hFh;var stD;var $x=function(){var E=_.r.apply(this,arguments)||this;E.ignoreShadyDom=!1;E.hasChange_=!1;E.hasSetTitle_=!1;E.useIOObserverForVisibilityLogging_=_.d("kevlar_use_vimio_behavior")&&_.HA("INNERTUBE_CLIENT_NAME")==="WEB";E.ytFormattedStringObserverHandlerKeys_=void 0;return E};
_.L($x,_.r);_.l=$x.prototype;_.l.created=function(){this.useIOObserverForVisibilityLogging_=_.d("kevlar_use_vimio_behavior")&&_.HA("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.l.ready=function(){_.HA("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_()};
_.l.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.l.detached=function(){this.unobserveIOObservers_()};
_.l.clearContents_=function(){for(var E=this.getRoot(),B=E.lastChild;B&&B.tagName!=="STYLE";){try{E.removeChild(B)}catch(I){break}B=E.lastChild}};
_.l.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var E=_.p(this.ytFormattedStringObserverHandlerKeys_),B=E.next();!B.done;B=E.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(B.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.l.resetForAttributedString=function(){var E=this.getRoot();!E.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),E.appendChild(this.ytAttributedStringElementRef))};
_.l.resetForFormattedString=function(){var E=this.getRoot(),B=E.querySelector("yt-attributed-string");B&&(this.ytAttributedStringElementRef=E.removeChild(B))};
_.l.textChanged=function(){this.textChanged_(this.text)};
_.l.textChanged_=function(E){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!E||!E.runs&&!E.simpleText;if(_.d("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var B=this.hostElement.firstChild;B&&B.nodeName==="FONT";){var I=B;B=B.nextSibling;this.hostElement.removeChild(I)}B=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
I=E.simpleText;var T;!I&&((T=E.runs)==null?void 0:T.length)===1&&this.isSimpleString_(E.runs[0])&&(I=E.runs[0].text);I!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.HA("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(I!==void 0){try{B.textContent=I}catch(e){}B.textContent||(this.isEmpty=!0)}else E=E.runs,I!==void 0&&(E=[{text:I}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),E&&this.updateText_(E),
B.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.l.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)};
_.l.computeAriaLabel_=function(E){return E};
_.l.computeEllipsisTruncateStyling=function(E,B){return E&&!B};
_.l.computeUseAttributedString=function(E){return _.d("web_replace_formatted_with_attributed_string")&&dzD(E)&&!this.disableAttributedString&&!this.enableContentEditable};
_.l.setNodeStyle_=function(E,B){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.d("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?B.removeAttribute("dir"):B.setAttribute("dir","auto");B.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");B.style.color="";var I=null;this.noStyles||(E.bold&&(B.classList.add("bold"),I="bold"),E.deemphasize&&(B.classList.add("deemphasize"),I="deemphasize"),E.italics&&B.classList.add("italic"),
E.strikethrough&&B.classList.add("strikethrough"),E.errorUnderline&&(B.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),E.bracket&&B.classList.add("bracket"),E.textColor&&(B.style.color=_.dE(E.textColor)));I!==B.getAttribute("style-target")&&(I?B.setAttribute("style-target",I):B.removeAttribute("style-target"))};
_.l.setUpVisibilityLogging_=function(E,B){var I=this;this.setNodeTrackingParams_(E,B);var T;((T=B.data)==null?0:T.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(E=this.ytRendererBehavior.visibilityObserver.observe(B,function(e){var c=I.ytRendererBehavior.getVisibilityLogger();c&&c.reportShown(e)},this.ytRendererBehavior.visibilityOptionVisible_),B=this.ytRendererBehavior.visibilityObserver.observe(B,function(e){var c=I.ytRendererBehavior.getVisibilityLogger();
c&&c.reportHidden(e)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(E),this.ytFormattedStringObserverHandlerKeys_.push(B))};
_.l.setNodeTrackingParams_=function(E,B){B.data||(B.data={});if((E=E.loggingDirectives?E.loggingDirectives.trackingParams:null)||B.data.trackingParams)B.data.trackingParams=E};
_.l.computeHasLinkOnly_=function(E){return!(!E||E.length!==1||this.noEndpoints||!E[0].navigationEndpoint)};
_.l.getRoot=function(){var E=this.buildScopeDomOptions();return this.enableContentEditable?_.n(_.n(this.hostElement,E).querySelector("[contenteditable]")):_.n(this.hostElement,E)};
_.l.fixContenteditableScope=function(){var E=function(B){B&&(B.nodeType===1&&B.classList&&(B.classList.add("style-scope"),B.classList.add("yt-formatted-string")),B.childNodes&&B.childNodes.forEach(function(I){E(I)}))};
E(this.getRoot())};
_.l.updateText_=function(E){for(var B=E.length,I=this.getRoot(),T=I.firstChild;T&&T.nodeName==="STYLE";)T=T.nextSibling;for(var e=0;e<B&&T;){var c=E[e],Y=_.d("remove_cr_char")&&c.text?c.text.replace("\r",""):c.text;if(this.isSimpleString_(c)&&!this.useMixedDirectionFormattedStrings)if(T.nodeName==="#text"){T.textContent!=Y&&(T.textContent=Y);e++;T=T.nextSibling;continue}else break;if(_.h(c,m0))break;else if(!this.noEndpoints&&c.navigationEndpoint){if(T.nodeName!=="A")break;this.setDataOnAnchor_(T,
c.navigationEndpoint)}else if(T.nodeName!=="SPAN")break;this.setNodeStyle_(c,T);this.setUpVisibilityLogging_(c,T);T.textContent!=Y&&(T.textContent=Y);e++;T=T.nextSibling}if(T)for(c=I.lastChild,T=e?T.previousSibling:null;c&&c!=T;){try{I.removeChild(c)}catch(v){break}c=I.lastChild}e!==B&&this.addTextNodes_(E,e)};
_.l.addTextNodes_=function(E,B){for(var I=document.createDocumentFragment(),T=E.length;B<T;B++){var e=E[B],c=_.d("remove_cr_char")&&e.text?e.text.replace("\r",""):e.text;if(this.isSimpleString_(e)&&!this.useMixedDirectionFormattedStrings)I.appendChild(document.createTextNode(c));else{var Y=_.h(e,m0);if(Y){if(Y.image){var v=document.createElement("img");Y.isCustomEmoji||v.classList.add("small-emoji");v.classList.add("emoji");Y.isCustomEmoji&&(v.dataset.emojiId=Y.emojiId);v.src=_.Aa(Y.image.thumbnails,
this.emojiSize);(e=this.get("image.accessibility.accessibilityData.label",Y))?v.alt=e:Y.shortcuts&&Y.shortcuts.length>0?v.alt=Y.shortcuts[0]:Y.emojiId&&(v.alt=Y.emojiId);I.appendChild(v);this.hasEmoji=!0}}else!this.noEndpoints&&e.navigationEndpoint?(v=document.createElement("a"),v.classList.add("yt-simple-endpoint"),v.setAttribute("spellcheck","false"),this.setDataOnAnchor_(v,e.navigationEndpoint)):v=document.createElement("span"),this.setNodeStyle_(e,v),this.setUpVisibilityLogging_(e,v),v.appendChild(document.createTextNode(c)),
I.appendChild(v)}}this.getRoot().appendChild(I)};
_.l.isSimpleString_=function(E){return(this.noEndpoints||!E.navigationEndpoint)&&!_.h(E,m0)&&(this.noStyles||!(E.bold||E.deemphasize||E.italics||E.strikethrough||E.errorUnderline||E.bracket||E.textColor))&&!E.loggingDirectives};
_.l.getRawText=function(){return _.U3(this.text)};
_.l.getFirstRunText=function(){var E;if(((E=this.text)==null?0:E.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.l.setFirstRunText=function(E){var B;((B=this.text)==null?0:B.runs)&&this.text.runs[0]&&(this.text.runs[0].text=E,this.textChanged_(this.text))};
_.l.setDataOnAnchor_=function(E,B){var I=this;!_.d("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(B)||this.isSignalServiceEndpoint_(B)?(E.onclick=this.serviceEndpointHandler_(B),Cr(E,"#")):GAQ({text:this.text,command:B},function(){b8f(E,B,I.target)})};
_.l.isServiceEndpoint_=function(E){var B;return!((B=_.h(E==null?void 0:E.commandMetadata,_.D$))==null||!B.sendPost)};
_.l.isSignalServiceEndpoint_=function(E){return!!_.h(E,_.a2)};
_.l.serviceEndpointHandler_=function(E){var B=this;return function(I){_.l1(B.hostElement,[E]);I.preventDefault()}};
_.l.overrideAriaLabelChanged_=function(){var E=this.getRoot();this.enableContentEditable&&E&&E.setAttribute("aria-label",this.overrideAriaLabel)};
_.l.enableContentEditableChanged_=function(){var E=this,B=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),B=_.n(this.hostElement,B),!B.lastChild||B.lastChild instanceof HTMLElement&&B.lastChild.id!=="contenteditable-root"){var I=document.createElement("div");I.id="contenteditable-root";I.setAttribute("contenteditable","true");I.setAttribute("dir","auto");I.onfocus=function(){E.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
B.appendChild(I);this.overrideAriaLabel&&I.setAttribute("aria-label",this.overrideAriaLabel)}}else I=_.fq(this.hostElement).firstChild,I instanceof HTMLElement&&I.id==="contenteditable-root"&&_.n(this.hostElement,B).removeChild(I)};
_.l.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.l.getNodesForVisibilityLogging_=function(){return _.ei(this.getRoot().childNodes,function(E){var B;return!((B=E.data)==null||!B.trackingParams)})};
_.l.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.l.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var E=this.ytRendererBehavior.getVisibilityLogger();E&&this.getNodesForVisibilityLogging_().forEach(function(B){E.reportShown(B)})}};
_.l.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var E=this.ytRendererBehavior.getVisibilityLogger();E&&this.getNodesForVisibilityLogging_().forEach(function(B){E.reportHidden(B)})}};
_.Up.Object.defineProperties($x.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.d("enable_mixed_direction_formatted_strings")}}});
$x.prototype.enableContentEditableChanged_=$x.prototype.enableContentEditableChanged_;$x.prototype.overrideAriaLabelChanged_=$x.prototype.overrideAriaLabelChanged_;$x.prototype.ellipsisTruncateChanged_=$x.prototype.ellipsisTruncateChanged_;$x.prototype.textChanged=$x.prototype.textChanged;_.k([_.g(dRh.YtPlaintextBehavior),_.t("design:type",Object)],$x.prototype,"ytPlaintextBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],$x.prototype,"ytComponentBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],$x.prototype,"text",void 0);_.k([_.X(),_.t("design:type",Boolean)],$x.prototype,"noEndpoints",void 0);_.k([_.X(),_.t("design:type",Boolean)],$x.prototype,"noStyles",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],$x.prototype,"isDarkTheme",void 0);
_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],$x.prototype,"splitLines",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],$x.prototype,"forceDefaultStyle",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],$x.prototype,"ellipsisTruncate",void 0);_.k([_.X(),_.t("design:type",Object)],$x.prototype,"ignoreShadyDom",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.t("design:type",Boolean)],$x.prototype,"ellipsisTruncateStyling",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.t("design:type",String)],$x.prototype,"ariaLabel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],$x.prototype,"isEmpty",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.t("design:type",Boolean)],$x.prototype,"hasLinkOnly_",void 0);_.k([_.X(),_.t("design:type",Boolean)],$x.prototype,"hasEmoji",void 0);_.k([_.X(),_.t("design:type",Boolean)],$x.prototype,"disableAttributedString",void 0);_.k([_.X(),_.t("design:type",Boolean)],$x.prototype,"isOverlay",void 0);_.k([_.X(),_.t("design:type",Boolean)],$x.prototype,"linkInheritColor",void 0);
_.k([_.X(),_.t("design:type",Boolean)],$x.prototype,"noPreWrap",void 0);_.k([_.X(),_.t("design:type",Boolean)],$x.prototype,"userInput",void 0);_.k([_.X({value:16}),_.t("design:type",Number)],$x.prototype,"emojiSize",void 0);_.k([_.X(),_.t("design:type",String)],$x.prototype,"target",void 0);_.k([_.X(),_.t("design:type",Boolean)],$x.prototype,"enableContentEditable",void 0);_.k([_.X(),_.t("design:type",String)],$x.prototype,"overrideAriaLabel",void 0);
_.k([_.X(),_.t("design:type",Boolean)],$x.prototype,"respectHtmlDir",void 0);_.k([_.X(),_.t("design:type",Boolean)],$x.prototype,"respectLangDir",void 0);_.k([_.S("plaintextOnly"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],$x.prototype,"useMixedDirectionFormattedStrings",null);_.k([_.X({computed:"computeUseAttributedString(text)"}),_.t("design:type",Boolean)],$x.prototype,"useYtAttributedString",void 0);
_.k([_.EM("text"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$x.prototype,"textChanged",null);_.k([_.EM("ellipsisTruncate"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$x.prototype,"ellipsisTruncateChanged_",null);_.k([_.EM("overrideAriaLabel"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$x.prototype,"overrideAriaLabelChanged_",null);
_.k([_.EM("enableContentEditable"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$x.prototype,"enableContentEditableChanged_",null);$x=_.k([_.QE({is:"yt-formatted-string",disableElementRegistration:!0})],$x);
_.A($x,"yt-formatted-string",function(){if(stD===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;hFh===void 0&&(hFh=document.createElement("template"));var T=hFh;I.call(B,T.content.cloneNode(!0),E.content.firstChild);stD=E}E=stD;return E});var uku;var Lw6;var xRR;var Gu6;var Iv=function(){var E=_.r.apply(this,arguments)||this;E.focused=!1;E.disabled=!1;E.isOverlay=!1;return E};
_.L(Iv,_.r);Iv.prototype.triggerDown=function(){if(!this.disabled){_.VQ(this.hostElement,"down",!0);var E;(E=this.currentAnimation)==null||E.cancel()}};
Iv.prototype.triggerUp=function(){if(!this.disabled){_.VQ(this.hostElement,"down",!1);var E=this.fillElement;var B=this.strokeElement;typeof GroupEffect==="function"?(E=new GroupEffect([vZt(E),y$6(B)]),E=new Animation(E,document.timeline)):E=new pzu(E,B);this.currentAnimation=E;var I;(I=this.currentAnimation)==null||I.play()}};
_.k([_.$7(".stroke"),_.t("design:type",HTMLElement)],Iv.prototype,"strokeElement",void 0);_.k([_.$7(".fill"),_.t("design:type",HTMLElement)],Iv.prototype,"fillElement",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Iv.prototype,"focused",void 0);_.k([_.X(),_.t("design:type",Object)],Iv.prototype,"disabled",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Iv.prototype,"isOverlay",void 0);Iv=_.k([_.QE({is:"yt-interaction",disableElementRegistration:!0})],Iv);
_.A(Iv,"yt-interaction",function(){if(Gu6===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;xRR===void 0&&(xRR=document.createElement("template"));var T=xRR;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Gu6=E}E=Gu6;return E},{mode:2});var Tm=function(){return _.r.apply(this,arguments)||this};
_.L(Tm,_.r);_.l=Tm.prototype;_.l.ready=function(){var E=this,B=_.n(this.hostElement).querySelector("#button");B.addEventListener("focus",function(){imr||(imr=new cNU);E.keyboardFocused=imr.isKeyBoardInUse()});
B.addEventListener("blur",function(){E.keyboardFocused=!1;E.rippleUp_()})};
_.l.computeTabIndex_=function(E){return E?-1:0};
_.l.computeButtonAriaPressed_=function(E){if(this.toggleable)return E?"true":"false"};
_.l.rippleDown_=function(){_.n(this.hostElement).querySelector("#interaction").triggerDown()};
_.l.rippleUp_=function(){_.n(this.hostElement).querySelector("#interaction").triggerUp()};
_.l.onPressedChanged_=function(){var E=_.fq(_.n(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.fq(_.n(this.hostElement).querySelector("#button")).children[0];E&&(E.active=this.pressed)};
Tm.prototype.onPressedChanged_=Tm.prototype.onPressedChanged_;Tm.prototype.rippleUp_=Tm.prototype.rippleUp_;Tm.prototype.rippleDown_=Tm.prototype.rippleDown_;_.k([_.X(),_.t("design:type",String)],Tm.prototype,"label",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Tm.prototype,"disabled",void 0);_.k([_.X(),_.t("design:type",Boolean)],Tm.prototype,"pressed",void 0);_.k([_.X(),_.t("design:type",Object)],Tm.prototype,"toggleable",void 0);
_.k([_.X(),_.t("design:type",Boolean)],Tm.prototype,"untabbable",void 0);_.k([_.X(),_.t("design:type",Boolean)],Tm.prototype,"keyboardFocused",void 0);_.k([_.RN("down"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Tm.prototype,"rippleDown_",null);_.k([_.RN("up"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Tm.prototype,"rippleUp_",null);
_.k([_.EM("pressed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Tm.prototype,"onPressedChanged_",null);Tm=_.k([_.QE({is:"yt-icon-button",disableElementRegistration:!0})],Tm);
_.A(Tm,"yt-icon-button",function(){if(Lw6===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;uku===void 0&&(uku=document.createElement("template"));var T=uku;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Lw6=E}E=Lw6;return E},{mode:2});var ORN=_.km(["aria-"]),e1={};e1.YtRenderButtonBehavior=[_.R.YtRendererBehavior,_.BF.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!!_.Q().resolve(_.Fx(_.ZR))&&_.d("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 E=this.computeHref_(this.endpoint,!0);E?Cr(this.elements_.endpoint,E):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){E=this.buttonClass.split(" ");E=_.p(E);for(var B=E.next();!B.done;B=E.next())B=B.value,_.VQ(this.hostElement,B,!0),this.elements_.button&&_.VQ(this.elements_.button,B,!0),this.elements_.text&&_.VQ(this.elements_.text,B,!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&&(E=null,this.buttonAccessibility&&(E=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=E:E?_.H1([_.od(ORN)],this.elements_.button,"aria-label",E):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var E=_.Q().resolve(_.Fx(_.ZR));E&&(this.keyboardFocused=E.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Ah("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,_.QT(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.QT(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(E,B){if(B)for(E=B.split(" "),E=_.p(E),B=E.next();!B.done;B=E.next())B=B.value,_.VQ(this.hostElement,B,!1),this.elements_.button&&_.VQ(this.elements_.button,B,!1),this.elements_.text&&_.VQ(this.elements_.text,B,!1)},
buttonIconChanged_:function(E){this.elements_.icon?E?(this.elements_.icon.icon=E,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.QT(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.qK(this.hostElement,"is-paper-button-with-icon",!1)):E&&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"&&_.QT(this.elements_.button).appendChild(this.elements_.icon):_.QT(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.qK(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(E){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,E){var B=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(E){case "yt_icon_button_with_label":B=!0;_.VQ(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();E=_.QT(this.elements_.button).firstElementChild;
this.elements_.icon=E;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.QT(this.elements_.endpoint).appendChild(this.elements_.button);_.QT(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Ah("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;_.QT(this.elements_.button).appendChild(this.elements_.text);_.QT(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":B=!0,this.elements_.button=this.getYtIconButton_(),E=_.QT(this.elements_.button).firstElementChild,this.elements_.icon=E,this.setIconActive_(this.elements_.icon),
_.QT(this.elements_.endpoint).appendChild(this.elements_.button)}_.qK(this.hostElement,"is-icon-button",B);_.qK(this.hostElement,"is-paper-button",!B);_.qK(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 I;_.n((I=this.container.hostElement)!=null?I:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.QT(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(E){if(E!=void 0||this.disabled)this.disabled=E,this.elements_.button&&(this.elements_.button.disabled=E)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(E){_.d("kevlar_system_icons")&&E&&this.data&&(this.data.isSelected!==void 0?E.active=this.data.isSelected:this.data.isToggled!==void 0&&(E.active=this.data.isToggled))},
observeBasicPalette_:function(E){_.zI(this.hostElement,E)},
disabledChanged_:function(E){this.data&&this.set("data.isDisabled",E)},
onYtButtonTap_:function(E){if(this.disabled)E.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.l1(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(E=this.disableCommandHandlerOverride,!this.data||!this.data.command||E||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.d("handle_service_request_actions")||_.l1(this.hostElement,[this.serviceEndpoint]),
_.$O(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.d("handle_service_request_actions")?(E=[],this.serviceEndpoint&&E.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&E.push(this.data.command),E.length&&_.cN(this.hostElement,E,this.hostElement)):this.data&&this.data.command&&(E=this.data.command,E.accountUnlinkCommand||E.accountLinkCommand||E.insertAdCommand||E.insertHighlightMarkerCommand||
E.createLivestreamHighlightClipCommand||E.getVideoUploadFeedbackCommand||E.musicDeletePrivatelyOwnedEntityCommand||E.ypcCancelRecurrenceEndpoint||E.getMultiSelectCommandEndpoint?_.l1(this.hostElement,[E]):_.cN(this.hostElement,[E],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 E,B=_.n((E=this.container.hostElement)!=null?E:this.container);B.lastChild&&B.lastChild.tagName!="STYLE";)try{B.removeChild(B.lastChild)}catch(I){break}},
getYtIconButton_:function(){var E=this.reuseEnabled_()?_.Ah("yt-icon-button"):document.createElement("yt-icon-button"),B=_.QT(E).firstElementChild;if(B&&B.is!="yt-icon"){for(B=_.QT(E);B.lastChild;)B.removeChild(B.lastChild);B=null}B||(B=this.getIcon_(),this.setIconActive_(B),_.QT(E).appendChild(B));return E},
reuseEnabled_:function(){return _.d("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Ah("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Ah("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.njX={};
_.njX.YtButtonBehavior=[e1.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var E=this.data;E&&(this._setEndpoint(this.computeEndpoint_(E)),this._setServiceEndpoint(this.computeServiceEndpoint_(E)),this._setCommand(this.computeCommand_(E)),this._setButtonIcon(this.computeButtonIcon_(E)),this._setButtonText(this.computeButtonText_(E,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(E)),this._setButtonTooltip(this.computeTooltip_(E)),this._setButtonClass(this.computeButtonClass_(E)),this._setIconPositionType(this.computeIconPositionType_(E)),this.updateRenderedElements())},
setPressedState:function(E){var B;if((B=this.elements_)==null?0:B.button)this.elements_.button.pressed=!!E},
computeIconPositionType_:function(E){return E&&E.iconPosition||null},
computeEndpoint_:function(E){var B=E&&E.navigationEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.url"),T=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return B?B:E&&E.command&&E.command.modalEndpoint?E.command:I&&!T&&E.command?E.command:null},
computeServiceEndpoint_:function(E){var B=E&&E.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return B?B:I&&E.command?E.command:null},
computeCommand_:function(E){return E&&E.command||null},
computeButtonIcon_:function(E){return E&&E.icon&&E.icon.iconType?_.R3(E.icon.iconType):null},
computeButtonText_:function(E,B){return!B&&E&&E.text||null},
computeAccessibility_:function(E){return this.get("accessibilityData.accessibilityData",E)||E&&E.accessibility||(E&&E.text?{label:this.getSimpleString(E.text)}:null)},
computeTooltip_:function(E){return E?E.isDisabled&&E.disabledTooltip||E.tooltip||null:null},
computeButtonClass_:function(E){var B=E&&E.style?E.style.toLowerCase().replace(/_/g,"-")+" ":"";B+=E&&E.size?E.size.toLowerCase().replace(/_/g,"-")+" ":"";E.colorData&&E.colorData.basicColorPaletteData&&E.colorData.basicColorPaletteData.borderColor&&(B+="palette-with-border");return B.trim()}}];var ma={};var M3D;var HRr;var N$Z,gjX=function(){return N$Z!==void 0?N$Z:N$Z=document.createElement("template")};
document.head.appendChild(gjX().content);var SlZ;var JnR,WwX=function(){return JnR!==void 0?JnR:JnR=document.createElement("template")};
document.head.appendChild(WwX().content);var Xzu;var rnZ,bRZ=function(){return rnZ!==void 0?rnZ:rnZ=document.createElement("template")};
document.head.appendChild(bRZ().content);var ojZ;var Anh=document.head,jtt=Anh.appendChild,UR6;if(ojZ===void 0){var kuD=document.createElement("template");_.G(kuD,"\x3c!--css-build:shady--\x3e");kuD.content.insertBefore(bRZ().content.cloneNode(!0),kuD.content.firstChild);ojZ=kuD}UR6=ojZ;jtt.call(Anh,UR6.content);var t3$=document.head,f8$=t3$.appendChild,V3h;if(Xzu===void 0){var qlu=document.createElement("template");_.G(qlu,"\x3c!--css-build:shady--\x3e");qlu.content.insertBefore(WwX().content.cloneNode(!0),qlu.content.firstChild);Xzu=qlu}V3h=Xzu;f8$.call(t3$,V3h.content);var FwN=document.head,DR6=FwN.appendChild,KwZ;if(SlZ===void 0){var RFZ=document.createElement("template");_.G(RFZ,"\x3c!--css-build:shady--\x3e");RFZ.content.insertBefore(gjX().content.cloneNode(!0),RFZ.content.firstChild);SlZ=RFZ}KwZ=SlZ;DR6.call(FwN,KwZ.content);var E_N;_.QH("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");E_N=_.d("web_button_rework")&&_.gU("BUTTON_REWORK")||_.d("web_button_rework_with_live");_.lF=function(){return _.r.apply(this,arguments)||this};
_.L(_.lF,_.r);_.lF.prototype.created=function(){this.openPopupConfig=_.HA("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.lF.prototype.onYtNavigate_=function(E){var B=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(E.detail.endpoint);B&&(this.ytOpenPopupBehavior.openPopup(B),E.stopPropagation(),E.preventDefault())};
_.Up.Object.defineProperties(_.lF,{template:{configurable:!0,enumerable:!0,get:function(){if(HRr===void 0){var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
var B=E.content,I=B.insertBefore;M3D===void 0&&(M3D=document.createElement("template"));var T=M3D;I.call(B,T.content.cloneNode(!0),E.content.firstChild);HRr=E}E=HRr;return E}}});
_.lF.prototype.onYtNavigate_=_.lF.prototype.onYtNavigate_;_.k([_.g(_.E6.YtOpenPopupBehavior),_.t("design:type",Object)],_.lF.prototype,"ytOpenPopupBehavior",void 0);_.k([_.g(_.njX.YtButtonBehavior),_.t("design:type",Object)],_.lF.prototype,"ytButtonBehavior",void 0);_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],_.lF.prototype,"onYtNavigate_",null);
_.lF=_.k([_.QE({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:E_N})],_.lF);var BWh;var $uu=_.d("web_button_rework")&&_.gU("BUTTON_REWORK")||_.d("web_button_rework_with_live"),cF=function(){var E=_.r.apply(this,arguments)||this;E.isPressed=!1;E.forceIconButton=!1;E.forceIconOnly=!1;E.forceModernIconButton=!1;E.skipCommandHandling=!1;E.alignByText=!1;E.fitToVisibleBounds=!0;E.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};E.onTap=function(B){_.$O(E.hostElement,"yt-service-request-sent-button-renderer",B)};
return E};
_.L(cF,_.r);_.l=cF.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.l.onClick=function(E){var B,I=this.disabled||((B=this.data)==null?void 0:B.isDisabled);B=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");I&&B&&E.stopPropagation()};
_.l.computeIcon=function(){var E,B,I=(E=this.data)==null?void 0:(B=E.icon)==null?void 0:B.iconType;if(I)return _.R3(I)};
_.l.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.l.handleUpdateButtonAction=function(E){E=_.h(E,ETh);var B=_.h(E==null?void 0:E.updatedButton,_.NT);if(this.data&&E&&B){var I=this.data;I.targetId&&E.targetId&&I.targetId===E.targetId&&(this.data=B)}};
_.Up.Object.defineProperties(cF.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var E=this;if(this.data){var B=yeD({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.$O(E.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.$O(E.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});B.alignByText=this.alignByText;return B}}}});
_.Up.Object.defineProperties(cF,{template:{configurable:!0,enumerable:!0,get:function(){if(BWh===void 0){var E=document.createElement("template");_.G(E,'\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>');BWh=E}E=BWh;return E}}});
cF.prototype.onClick=cF.prototype.onClick;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],cF.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],cF.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],cF.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],cF.prototype,"isPressed",void 0);
_.k([_.X(),_.t("design:type",Object)],cF.prototype,"forceIconButton",void 0);_.k([_.X(),_.t("design:type",Object)],cF.prototype,"forceIconOnly",void 0);_.k([_.X(),_.t("design:type",Object)],cF.prototype,"forceModernIconButton",void 0);_.k([_.X(),_.t("design:type",Object)],cF.prototype,"skipCommandHandling",void 0);_.k([_.X(),_.t("design:type",Object)],cF.prototype,"alignByText",void 0);_.k([_.X(),_.t("design:type",Object)],cF.prototype,"buttonTooltipPosition",void 0);
_.k([_.X(),_.t("design:type",Object)],cF.prototype,"fitToVisibleBounds",void 0);_.k([_.X({computed:"computeTooltip(data)"}),_.t("design:type",Object)],cF.prototype,"tooltip",void 0);_.k([_.X(),_.t("design:type",Object)],cF.prototype,"overrides",void 0);_.k([_.X(),_.t("design:type",Boolean)],cF.prototype,"disabled",void 0);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],cF.prototype,"onClick",null);
_.k([_.S("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.t("design:type",Object),_.t("design:paramtypes",[])],cF.prototype,"computedButtonShape",null);cF=_.k([_.QE({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!$uu,cssBuildOptOut:!0}),_.QE({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!$uu,cssBuildOptOut:!0})],cF);var IWX;var TWl;var iF=function(){var E=_.r.apply(this,arguments)||this;E.empty_=!0;E.loadTime=Infinity;E.pendingPaint=!1;E.hasChange_=!1;E.oldThumbnail_=null;E.oldDelayedSrc_="";E.objectURL_=null;return E};
_.L(iF,_.r);_.l=iF.prototype;_.l.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.l.ready=function(){var E=this.shouldShowPlaceholder_();_.VQ(this.hostElement,"no-transition",!0);E&&this.hostElement.classList.add("with-placeholder")};
_.l.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.l.isThumbPreloaded_=function(E){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",E)};
_.l.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||ePt};
_.l.computeThumbnailSrc_=function(E){return E&&E.thumbnails?_.Aa(E.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.l.computeAlt_=function(){var E=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&E||""};
_.l.thumbnailChanged_=function(){var E=_.p([this.thumbnail,this.oldThumbnail_]),B=E.next().value;E=E.next().value;this.oldThumbnail_=B;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(E=this.computeThumbnailSrc_(E),this.computeThumbnailSrc_(B)===E))return;_.d("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(B)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):B&&_.gU("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.AJ(this,this.onReload_):_.AJ(this,this.onShow_):this.resetImage_();B&&(this.hostElement.style.opacity=""+B.opacity)}};
_.l.delayedSrcChanged_=function(){var E=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===E||this.resetImage_()};
_.l.setSrc_=function(E){E?(_.n(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.n(this.hostElement).querySelector("#img").src=E):(_.n(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.l.resetImage_=function(){PzQ(this.hostElement);this.empty_=!0;this.setSrc_(ePt);this.ytRendererBehavior.invalidate(!1)};
_.l.observePlaceholderColor_=function(){var E=this.thumbnail&&this.thumbnail.placeholderColor;E?this.hostElement.style.backgroundColor=_.dE(E):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.l.onLoad_=function(){_.n(this.hostElement).querySelector("#img").src&&_.n(this.hostElement).querySelector("#img").src!==ePt&&(ZB6(this.hostElement),this.notifyOnLoaded&&_.$O(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.l.onError_=function(){var E=this;if(_.d("web_use_cache_for_image_fallback"))uVJ(_.n(this.hostElement).querySelector("#img").src).then(function(B){E.objectURL_=_.YM(B).toString();E.setSrc_(E.objectURL_)}).catch(function(){_.d("kevlar_woffle_fallback_image")&&E.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.l.onPrescanVisible=function(){this.onShow_()};
_.l.onVisible=function(){if(_.d("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.l.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var E=this.computeSrc_();E!==_.n(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(E))}};
_.l.onReload_=function(){this.empty_=!1;var E=this.computeSrc_();E!==_.n(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(E))};
_.l.shouldShowPlaceholder_=function(){return _.d("kevlar_thumbnail_bg")};
iF.prototype.observePlaceholderColor_=iF.prototype.observePlaceholderColor_;iF.prototype.delayedSrcChanged_=iF.prototype.delayedSrcChanged_;iF.prototype.thumbnailChanged_=iF.prototype.thumbnailChanged_;_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],iF.prototype,"alt",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],iF.prototype,"ariaHidden",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],iF.prototype,"ariaLabel",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],iF.prototype,"hidden",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],iF.prototype,"id",void 0);_.k([_.g(_.Ml.YtVisibilityBehavior),_.t("design:type",Object)],iF.prototype,"ytVisibilityBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",String)],iF.prototype,"delayedSrc",void 0);
_.k([_.X(),_.t("design:type",Object)],iF.prototype,"thumbnail",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],iF.prototype,"loaded",void 0);_.k([_.X(),_.t("design:type",Boolean)],iF.prototype,"notifyOnLoaded",void 0);_.k([_.X(),_.t("design:type",Number)],iF.prototype,"height",void 0);_.k([_.X(),_.t("design:type",Number)],iF.prototype,"width",void 0);_.k([_.X({value:function(){return"width"}}),
_.t("design:type",String)],iF.prototype,"dimension",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],iF.prototype,"fit",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],iF.prototype,"fitHeight",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],iF.prototype,"fitWidth",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],iF.prototype,"objectFit",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],iF.prototype,"objectPosition",void 0);_.k([_.X(),_.t("design:type",String)],iF.prototype,"preferredThumbnail",void 0);_.k([_.X({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.t("design:type",String)],iF.prototype,"alt_",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],iF.prototype,"sharedTooltipText",void 0);
_.k([_.X(),_.t("design:type",Boolean)],iF.prototype,"ftlEligible",void 0);_.k([_.X({value:void 0}),_.t("design:type",String)],iF.prototype,"observeHiddenOption",void 0);_.k([_.X({value:"observe_once"}),_.t("design:type",String)],iF.prototype,"observePrescanOption",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],iF.prototype,"roundedContainer",void 0);
_.k([_.i6("thumbnail"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],iF.prototype,"thumbnailChanged_",null);_.k([_.i6("delayedSrc"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],iF.prototype,"delayedSrcChanged_",null);_.k([_.EM("thumbnail.placeholderColor"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],iF.prototype,"observePlaceholderColor_",null);
iF=_.k([_.QE({is:"yt-img-shadow",disableElementRegistration:!0})],iF);var ePt=_.gU("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.VE()(iF,"yt-img-shadow",function(){if(TWl===void 0){var E=document.createElement("template");_.G(E,'\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">');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;IWX===void 0&&(IWX=document.createElement("template"));var T=IWX;I.call(B,T.content.cloneNode(!0),E.content.firstChild);TWl=E}E=TWl;return E},{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 LIB;_.pj=new _.Dr("SCREEN_MANAGER_TOKEN");LIB=new _.Dr("LOG_INITIAL_SCREEN_TOKEN");_.Le=_.rp(function(E){function B(p4){return _.h(p4,_.sO)}
function I(){var p4=T().isTogglingDisabled||m()?M():!M();N(p4);U(!1);if(!T().isTogglingDisabled){var sc;(sc=Y)==null||sc(!!p4)}var Gf;((Gf=c)==null?0:Gf())||_.cx(_.Q().resolve(_.pj),T().trackingParams);var xi;if(!p4||!B(T().defaultButtonViewModel)||(xi=c)!=null&&xi()){var ki;!B(T().toggledButtonViewModel)||((ki=c)==null?0:ki())||_.cx(_.Q().resolve(_.pj),B(T().toggledButtonViewModel).trackingParams)}else _.cx(_.Q().resolve(_.pj),B(T().defaultButtonViewModel).trackingParams)}
var T=E.data,e=E.buttonShapeOverrides,c=E.disableExplicitClickLogging,Y=E.onToggle,v=E.style,y=E.useOutlinedIcon,Z=E.className,P=function(){var p4,sc;return M()?(p4=E.animatedTextPropsToggled)==null?void 0:p4.call(E):(sc=E.animatedTextPropsDefault)==null?void 0:sc.call(E)},z=_.aJ(function(){return P()?Object.assign({},P(),{shouldAnimate:W()}):void 0},void 0,"ZKEa0b"),m=function(){var p4;
return((p4=ed())==null?void 0:p4.isToggled)!==void 0},u=_.p(_.l0(function(){var p4,sc,Gf;
return m()?(p4=ed())==null?void 0:p4.isToggled:(Gf=e==null?void 0:(sc=e())==null?void 0:sc.toggled)!=null?Gf:T().isToggled})),x=u.next().value;
u=u.next().value;var M=x,N=u;u=_.p(_.l0(function(){var p4,sc;return(p4=E.animatedTextPropsToggled)==null?void 0:(sc=p4.call(E))==null?void 0:sc.shouldAnimate}));
x=u.next().value;u=u.next().value;var W=x,U=u;x=_.p(_.lQ(!1,void 0,"S11hid"));var q=x.next().value,f=x.next().value,ed=_.hk(function(p4){var sc;a:{var Gf=T().entityKey,xi=T().toggledStateEntitySelectorType;if(xi&&Gf)switch(xi){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var ki;p4=(ki=_.cP(p4.entities,"sfvAudioItemCurrentlyPlayingEntity",Gf))!=null?ki:void 0;ki=(sc=p4==null?void 0:p4.sfvAudioItemPlaybackState)!=null?sc:void 0;if(ki==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){sc={isToggled:!0};
break a}if(ki){sc={isToggled:!1};break a}break;default:_.OG(new _.P7("Error: entitySelectorType defined but not matched in selector.",p4,xi))}sc=void 0}return sc});
x=_.TI(function(){var p4=_.Q().resolve(_.Fx(_.ZR));p4&&f(p4.isKeyBoardInUse());return!1});
u=_.TI(function(){f(!1);return!1});
var K=function(){return Object.assign({},e==null?void 0:e(),{onToggle:I,toggleable:!0,toggled:M(),focused:q()})};
return _.w("toggle-button-view-model",{"on:focusin":x,"on:focusout":u,class:Z},_.w(_.wU,{cond:function(){return M()?B(T().toggledButtonViewModel):B(T().defaultButtonViewModel)},
then:function(p4){return _.w(_.ne,{data:p4,className:Z,style:v,useOutlinedIcon:y,buttonOverrides:K,animatedTextProps:z})}}))},"v");
_.Le.idomCompat={callbacks:{onToggle:!0}};_.oQ(_.rp(function(E){return _.w("yt-toggle-button-view-model",{class:function(){var B;return(B=E.scopingClassName)==null?void 0:B.call(E)}},_.w(_.Le,{data:function(){var B;
return(B=E.data)==null?void 0:B.call(E)},
buttonShapeOverrides:function(){var B;return(B=E.overrides)==null?void 0:B.call(E)},
animatedTextPropsDefault:function(){var B;return(B=E.animatedTextPropsDefault)==null?void 0:B.call(E)},
animatedTextPropsToggled:function(){var B;return(B=E.animatedTextPropsToggled)==null?void 0:B.call(E)},
disableExplicitClickLogging:function(){var B;return(B=E.disableExplicitClickLogging)==null?void 0:B.call(E)},
onToggle:function(B){var I;return(I=E.onToggle)==null?void 0:I.call(E,B)},
style:function(){var B;return(B=E.style)==null?void 0:B.call(E)},
useOutlinedIcon:function(){var B;return(B=E.useOutlinedIcon)==null?void 0:B.call(E)},
className:function(){var B;return(B=E.className)==null?void 0:B.call(E)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.Jh,
buttonShapeOverrides:_.Jh,overrides:_.Jh,animatedTextPropsDefault:_.Jh,animatedTextPropsToggled:_.Jh,disableExplicitClickLogging:_.Jh,onToggle:_.bu,style:_.Jh,useOutlinedIcon:_.Jh,className:_.Jh,scopingClassName:_.Jh}});var Yx=function(){return _.r.apply(this,arguments)||this};
_.L(Yx,_.r);Yx.prototype.onTap=function(E){E.stopPropagation();E=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.x4("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:E})):this.ytLiveChatReduxBehavior.dispatch(_.aL("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:E}))};
_.Up.Object.defineProperties(Yx.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.engagementState)==null?void 0:E.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var E=_.h(this.data.toggleButton,_.uO),B;if(Number(((B=this.likeCountState)==null?void 0:B.likeCountIfIndifferentNumber)||"0")===0){var I;B=((I=this.data.likeCountPlaceholder)==null?void 0:I.content)||""}else{var T,e,c;B=((T=this.likeCountState)==null?void 0:(e=T.likeCountIfIndifferent)==null?void 0:e.content)||((c=this.data.likeCountPlaceholder)==null?void 0:c.content)||""}var Y,v;I=((Y=this.likeCountState)==null?void 0:(v=
Y.likeCountIfLiked)==null?void 0:v.content)||"1";Y=_.h(E.toggledButtonViewModel,_.sO);return Object.assign({},E,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.h(E.defaultButtonViewModel,_.sO),{title:B})},toggledButtonViewModel:{buttonViewModel:Object.assign({},Y,{title:I})}})}}}});
Yx.prototype.onTap=Yx.prototype.onTap;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Yx.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.LM),_.t("design:type",Object)],Yx.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Yx.prototype,"data",void 0);
_.k([_.X({selectorArgs:["data.likeCountEntityKey"],selector:Cxt}),_.t("design:type",Object)],Yx.prototype,"likeCountState",void 0);_.k([_.X({selectorArgs:["data.engagementStateKey"],selector:jid}),_.t("design:type",Object)],Yx.prototype,"engagementState",void 0);_.k([_.S("data","engagementState"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Yx.prototype,"isLiked",null);
_.k([_.S("data","likeCountState","isLiked"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yx.prototype,"toggleButton",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],Yx.prototype,"onTap",null);Yx=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Yx);
_.A(Yx,"yt-live-chat-like-button-view-model",function(){if(QtU===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;mRr===void 0&&(mRr=document.createElement("template"));var T=mRr;I.call(B,T.content.cloneNode(!0),E.content.firstChild);QtU=E}E=QtU;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var lWV;var cUU;var av=function(){return _.r.apply(this,arguments)||this};
_.L(av,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],av.prototype,"data",void 0);av=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],av);
_.A(av,"yt-live-chat-paid-message-footer-renderer",function(){if(cUU===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;lWV===void 0&&(lWV=document.createElement("template"));var T=lWV;I.call(B,T.content.cloneNode(!0),E.content.firstChild);cUU=E}E=cUU;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var iBR;var prN;var YW$;var aWr,v_X=function(){if(aWr!==void 0)return aWr;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;YW$===void 0&&(YW$=document.createElement("template"));var T=YW$;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return aWr=E};var vF=function(){return _.r.apply(this,arguments)||this};
_.L(vF,_.r);vF.prototype.onTap=function(E){E.stopPropagation()};
_.Up.Object.defineProperties(vF.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var E=_.h(this.data.replyButton,_.sO),B,I,T,e,c,Y,v,y=Number(((B=this.replyCountState)==null?void 0:B.replyCountNumber)||"0")===0?(I=this.data)==null?void 0:(T=I.replyCountPlaceholder)==null?void 0:T.content:((e=this.replyCountState)==null?void 0:(c=e.replyCount)==null?void 0:c.content)||((Y=this.data)==null?void 0:(v=Y.replyCountPlaceholder)==null?void 0:v.content)||"",Z;return Object.assign({},
E,{title:y,accessibilityText:(Z=this.replyCountState)==null?void 0:Z.replyButtonAccessibilityText})}}}});
_.Up.Object.defineProperties(vF,{template:{configurable:!0,enumerable:!0,get:function(){return v_X()}}});
vF.prototype.onTap=vF.prototype.onTap;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],vF.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.LM),_.t("design:type",Object)],vF.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],vF.prototype,"data",void 0);
_.k([_.X({selectorArgs:["data.replyCountEntityKey"],selector:function(E,B){return _.cP(E.entities,"replyCountEntity",B)}}),
_.t("design:type",Object)],vF.prototype,"replyCountState",void 0);_.k([_.S("data","replyCountState"),_.t("design:type",Object),_.t("design:paramtypes",[])],vF.prototype,"buttonViewModel",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],vF.prototype,"onTap",null);vF=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],vF);
_.A(vF,"yt-live-chat-reply-button-view-model",function(){return v_X()},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var yUU;var Cz6;var yJ=function(){var E=_.r.apply(this,arguments)||this;E.ariaLabel="";return E};
_.L(yJ,_.r);
yJ.prototype.dataChanged=function(){for(var E=(0,_.FN)(_.n(this.hostElement).querySelector("#image"));E.firstChild;)E.removeChild(E.firstChild);if(this.data)if(this.data.icon){var B=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(B.polymerController.icon="yt-sys-icons:shield-filled",B.polymerController.defaultToFilled=!0):B.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();E.appendChild(B)}else if(this.data.customThumbnail){B=document.createElement("img");
var I=_.prd(this.data.customThumbnail.thumbnails,16);I?(B.src=I,E.appendChild(B),B.setAttribute("alt",this.hostElement.ariaLabel||"")):_.OG(new _.P7("Could not compute URL for thumbnail",this.data.customThumbnail))}};
yJ.prototype.identity=function(E){return E};
yJ.prototype.computeType=function(E){return FS(E||void 0)};
yJ.prototype.dataChanged=yJ.prototype.dataChanged;_.k([_.X(),_.t("design:type",Object)],yJ.prototype,"data",void 0);_.k([_.X({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.t("design:type",Object)],yJ.prototype,"ariaLabel",void 0);_.k([_.X({computed:"computeType(data)",reflectToAttribute:!0}),_.t("design:type",String)],yJ.prototype,"type",void 0);
_.k([_.X({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.t("design:type",String)],yJ.prototype,"sharedTooltipText",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("live_chat_enable_new_moderator_badge")}}),
_.t("design:type",Boolean)],yJ.prototype,"enableNewModeratorBadge",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],yJ.prototype,"dataChanged",null);yJ=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],yJ);
_.A(yJ,"yt-live-chat-author-badge-renderer",function(){if(Cz6===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;yUU===void 0&&(yUU=document.createElement("template"));var T=yUU;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Cz6=E}E=Cz6;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var wrR;var ZBh;var Zl=function(){return _.r.apply(this,arguments)||this};
_.L(Zl,_.r);_.l=Zl.prototype;_.l.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"}}}}};
_.l.computeBadgesInsideChip=function(E){return E?E.filter(function(B){return FS(B.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.l.computeBadgesOutsideChip=function(E){return this.prependChatBadges||!E?[]:E.filter(function(B){B=FS(B.liveChatAuthorBadgeRenderer);return B!=="verified"&&B!=="owner"})};
_.l.computeBadgesBeforeChip=function(E){return this.prependChatBadges&&E?E.filter(function(B){B=FS(B.liveChatAuthorBadgeRenderer);return B!=="verified"&&B!=="owner"}):[]};
_.l.computeIsHighlighted=function(E,B){var I=!!hMG(E,"owner"),T=!!hMG(E,"verified");E=!!hMG(E,"moderator");return(I||T&&!E)&&!B};
_.l.computeAuthorType=function(E){return dJd(E)};
_.l.computeAuthorClass=function(E,B){return B?(E?E+" ":"")+"single-line":E};
_.l.onSeedColorChanged=function(){_.d("live_chat_author_name_color_usernames")||_.d("live_chat_seed_color_usernames")||_.d("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):_.d("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Zl.prototype.onSeedColorChanged=Zl.prototype.onSeedColorChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Zl.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Zl.prototype,"authorName",void 0);_.k([_.X(),_.t("design:type",Array)],Zl.prototype,"authorBadges",void 0);
_.k([_.X({computed:"computeAuthorType(authorBadges)"}),_.t("design:type",String)],Zl.prototype,"authorType",void 0);_.k([_.X({computed:"computeAuthorClass(authorType, singleLine)"}),_.t("design:type",String)],Zl.prototype,"authorClass",void 0);_.k([_.X({computed:"computeBadgesInsideChip(authorBadges)"}),_.t("design:type",Array)],Zl.prototype,"badgesInsideChip",void 0);_.k([_.X({computed:"computeBadgesOutsideChip(authorBadges)"}),_.t("design:type",Array)],Zl.prototype,"badgesOutsideChip",void 0);
_.k([_.X({computed:"computeBadgesBeforeChip(authorBadges)"}),_.t("design:type",Array)],Zl.prototype,"badgesBeforeChip",void 0);_.k([_.X({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Zl.prototype,"isHighlighted",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],Zl.prototype,"singleLine",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],Zl.prototype,"disableHighlighting",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Zl.prototype,"dashboardMoneyFeed",void 0);_.k([_.X({value:_.d("live_chat_prepend_badges"),reflectToAttribute:!0}),_.t("design:type",Boolean)],Zl.prototype,"prependChatBadges",void 0);_.k([_.X(),_.t("design:type",String)],Zl.prototype,"authorNameColor",void 0);_.k([_.$7("#author-name"),_.t("design:type",HTMLDivElement)],Zl.prototype,"username",void 0);
_.k([_.EM("authorNameColor"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Zl.prototype,"onSeedColorChanged",null);Zl=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Zl);
_.A(Zl,"yt-live-chat-author-chip",function(){if(ZBh===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;wrR===void 0&&(wrR=document.createElement("template"));var T=wrR;I.call(B,T.content.cloneNode(!0),E.content.firstChild);ZBh=E}E=ZBh;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var PzR;var zPN;var PF=function(){var E=_.r.apply(this,arguments)||this;E.debounceCommand=_.zV(function(B){E.ytComponentBehavior.resolveCommand(B)},1500);
return E};
_.L(PF,_.r);PF.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var E=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",B,I,T=this.isHearted?(B=this.data)==null?void 0:B.unheartCommand:(I=this.data)==null?void 0:I.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.x4("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:E}));(E=_.ha(T))&&this.debounceCommand(E)}};
_.Up.Object.defineProperties(PF.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var E,B;if(!((E=this.data)==null?0:(B=E.creatorThumbnail)==null?0:B.sources))return{};E={thumbnails:[]};B={};B.url=this.data.creatorThumbnail.sources[0].url;E.thumbnails.push(B);return E}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((I=this.engagementState)==null?void 0:I.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}}});
PF.prototype.onTap=PF.prototype.onTap;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],PF.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.LM),_.t("design:type",Object)],PF.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],PF.prototype,"data",void 0);
_.k([_.X({selectorArgs:["data.engagementStateKey"],selector:jid}),_.t("design:type",Object)],PF.prototype,"engagementState",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],PF.prototype,"thumbnailDetails",null);_.k([_.S("data","engagementState"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],PF.prototype,"isHearted",null);_.k([_.S("data","engagementState"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],PF.prototype,"isEditable",null);
_.k([_.S("data","engagementState"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],PF.prototype,"showCreatorView",null);_.k([_.S("data","engagementState"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],PF.prototype,"showButton",null);_.k([_.S("data","isHearted"),_.t("design:type",String),_.t("design:paramtypes",[])],PF.prototype,"label",null);_.k([_.S("data","isHearted"),_.t("design:type",Object),_.t("design:paramtypes",[])],PF.prototype,"heartHoverText",null);
_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],PF.prototype,"onTap",null);PF=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],PF);
_.A(PF,"yt-live-chat-creator-heart-view-model",function(){if(zPN===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;PzR===void 0&&(PzR=document.createElement("template"));var T=PzR;I.call(B,T.content.cloneNode(!0),E.content.firstChild);zPN=E}E=zPN;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var zm=function(E,B){this.serviceId=new cAN(E,B)};
zm.prototype.toString=function(){return this.serviceId.toString()};var mu$=function(){this.internalMap={}};
_.l=mu$.prototype;_.l.contains=function(E){return Object.prototype.hasOwnProperty.call(this.internalMap,E)};
_.l.get=function(E){if(this.contains(E))return this.internalMap[E]};
_.l.set=function(E,B){this.internalMap[E]=B};
_.l.getKeys=function(){return Object.keys(this.internalMap)};
_.l.remove=function(E){delete this.internalMap[E]};var mN=function(){this.mappings=new mu$;this.errorCallbacks=new Set};
mN.prototype.getModuleId=function(E){return E.serviceId.getModuleId()};
mN.prototype.get=function(E){var B=this.mappings.get(E.toString());return Quh(this,B,E)};
mN.prototype.getMultipleAsync=function(){var E=_.aG.apply(0,arguments),B=this,I=E.map(function(y){return B.getModuleId(y)}),T=E.map(function(y){return B.mappings.get(y.toString())}).filter(function(y){return y});
if(T.length===E.length)return _.i1(T.map(function(y,Z){return Quh(B,y,E[Z])}));
var e=d1().loadMultiple(I);T=_.hP(I.map(function(y){return e[y]}));
var c=document.hidden,Y=-1,v=_.RI("get_async_timeout_ms",-1);v>-1&&(Y=setTimeout(function(){_.OG(new _.P7("Module timeout.",I,c,document.hidden))},v));
return _.sk(T.then(function(){return E.map(function(y){return Quh(B,B.mappings.get(y.toString()),y)})}).thenCatch(function(y){for(var Z=_.p(B.errorCallbacks),P=Z.next();!P.done;P=Z.next())P=P.value,P(y);
throw y;}),function(){clearTimeout(Y)})};
mN.prototype.registerService=function(E,B){this.mappings.set(E.toString(),{type:"mapping",value:B});return E};
var Quh=function(E,B,I){switch(B.type){case "mapping":return B.value;case "factory":return B=B.value(),E.mappings.set(I.toString(),{type:"mapping",value:B}),B;default:return _.E9(B)}};
mN.prototype.onLoadError=function(E){var B=this;this.errorCallbacks.add(E);return function(){B.errorCallbacks.delete(E)}};
_.QJ=new mN;var duD=function(){};
_.l=duD.prototype;
_.l.JSC$11783_getRequest=function(E,B,I){B=B===void 0?{}:B;I=I===void 0?YGl:I;var T=B;if(this.isNavigationCommand()){var e,c=(e=_.h(E==null?void 0:E.commandMetadata,_.D$))==null?void 0:e.url;T=_.x96(E.clickTrackingParams,!0,!1,c,this.JSC$11783_getClientScreen(T))}else T=_.x96(E.clickTrackingParams,!1,this.includeCsn);T={context:T};if(e=this.getExtension(E))return this.JSC$11783_buildRequest(T,e,B),e=this.getApiUrl(E),c=Object.assign({},{command:E},this.getRequestConfig(E,B)),T={input:e,requestShell:jc(e),
innerTubeRequest:T,config:c},T.config.authStrategy?T.config.authStrategy.identity=I:T.config.authStrategy={identity:I},(E=this.JSC$11783_getRequestKey(E,B))&&!T.config.requestKey&&(T.config.requestKey=E),T;E=new _.P7("Error: Failed to create Request from Command.",E);_.xV(E)};
_.l.getApiUrl=function(E){var B=_.f9(this.getApiPaths(E)),I;(E=(I=_.h(E.commandMetadata,_.D$))==null?void 0:I.apiUrl)&&(B=E);return D0J(FsF(B))};
_.l.isNavigationCommand=function(){return!1};
_.l.JSC$11783_getClientScreen=function(){};
_.l.JSC$11783_getRequestKey=function(){};
_.l.getRequestConfig=function(){};
_.Up.Object.defineProperties(duD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var dS=function(){};
_.L(dS,duD);dS.prototype.JSC$11790_getStoreKey=function(){};
dS.prototype.JSC$11783_getRequestKey=function(E,B){B=B===void 0?{}:B;return this.JSC$11790_getStoreKey(E,B)};var h4=function(){};
_.L(h4,dS);h4.prototype.JSC$11783_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:jc("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
h4.prototype.getApiPaths=function(){return[]};
h4.prototype.getExtension=function(){};
h4.prototype.JSC$11783_buildRequest=function(){};var hPh={},su$=(hPh.GET_DATASYNC_IDS=Lp(h4),hPh);var uVr,LP6,xut,hQD,s6,n_h,Oml,OBZ,Ght;uVr="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");LP6=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.MN=function(E,B,I,T,e,c,Y,v,y){this.endpointMap=E;this.networkManager=B;this.authService=I;this.responseProcessorMap=T;this.innertubeResponseStore=e;this.contextProcessors=c;this.asyncContextProcessors=Y;this.localInnertubeRouter=v;this.requestSequencer=y;this.inflightRequests=new Map;E.signalEndpointMap||(E.signalEndpointMap={});E.signalEndpointMap=Object.assign({},su$,E.signalEndpointMap)};
xut=function(E,B,I,T,e,c,Y,v,y){if(_.MN.instance!==void 0){if(T=_.MN.instance,E=[E!==T.endpointMap,B!==T.networkManager,I!==T.authService,e!==T.innertubeResponseStore,c!==T.contextProcessors,Y!==T.asyncContextProcessors,v!==T.localInnertubeRouter],E.some(function(Z){return Z}))throw new _.P7("InnerTubeTransportService is already initialized",E);
}else _.MN.instance=new _.MN(E,B,I,T,e,c,Y,v,y)};
_.NN=function(E,B,I){var T=T===void 0?YGl:T;var e=Oml(E,B);return e?new _.cC(function(c,Y){var v,y,Z,P,z;return _.a(function(m){switch(m.nextAddress){case 1:return _.C(m,e,2);case 2:v=m.yieldResult;y=v.JSC$11783_getRequest(B,I,T);if(!y){Y(new _.P7("Error: Failed to build request for command.",B));m.jumpTo(0);break}Lq(y.input);P=((Z=y.requestShell)==null?void 0:Z.mode)==="cors"?"cors":void 0;if(E.authService.syncHeaders){z=Ght(y.config,P);m.jumpTo(4);break}return _.C(m,OBZ(y.config,P),5);case 5:z=
m.yieldResult;case 4:c(n_h(E,y,z)),_.ER(m)}})}):_.rG(new _.P7("Error: No request builder found for command.",B))};
hQD=function(E,B,I,T){var e=e===void 0?YGl:e;var c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q,f,ed,K;return _.a(function(p4){switch(p4.nextAddress){case 1:c=PxQ(B,E.endpointMap);if(!c)throw new _.P7("Error: No streaming request builder found for command",B);Y=c.JSC$11783_getRequest(B,I,e);if(!Y)throw new _.P7("Failed to build YtRequest for streaming Command",B);if((v=E.localInnertubeRouter)==null||!v.shouldPreferLocalResponse(Y.input,Y.innerTubeRequest)){p4.jumpTo(2);break}return _.C(p4,E.localInnertubeRouter.localInnertubeResponse(Y.input,
Y.innerTubeRequest),3);case 3:return y=p4.yieldResult,Z={},y.playerResponse&&(s6(E,y.playerResponse,Y),Z.player=y.playerResponse,(P=T)==null||P(Z,y)),y.watchNextResponse&&(s6(E,y.watchNextResponse,Y),Z.content=y.watchNextResponse,(z=T)==null||z(Z,y)),p4.return(Z);case 2:u=((m=Y.requestShell)==null?void 0:m.mode)==="cors"?"cors":void 0;if(E.authService.syncHeaders){x=Ght(Y.config,u);p4.jumpTo(4);break}return _.C(p4,OBZ(Y.config,u),5);case 5:x=p4.yieldResult;case 4:return W=(N=(M=Y.requestShell)==null?
void 0:M.headers)!=null?N:{},Y.requestShell=Object.assign({},Y.requestShell,{headers:Object.assign({},W,x)}),U=Object.assign({},Y.requestShell),q=JSON.stringify(Y.innerTubeRequest),Y.requestShell.method==="POST"&&(U=Object.assign({},U,{body:q})),f=function(sc,Gf){s6(E,Gf.playerResponse||Gf.watchNextResponse||Gf.reelItemWatchResponse||Gf.reelWatchSequenceResponse,Y);T==null||T(sc,Gf)},ed={},_.C(p4,MFD(E.networkManager,Y.input,U,f),6);
case 6:return ed=p4.yieldResult,((K=Y.config)==null?0:K.responseTick)&&_.nO(Y.config.responseTick),p4.return(ed)}})};
_.Me=function(E,B,I,T,e){e=e===void 0?{authStrategy:{identity:YGl}}:e;var c=c===void 0?!0:c;var Y=function(){};
Y=yLi(aYc(I));B.context||(B.context=_.x96(T,c));return new _.cC(function(v){var y,Z,P,z,m;return _.a(function(u){if(u.nextAddress==1)return y=FsF(I),Z=_.AQ(y),E.authService.syncHeaders?(P=Ght(e,Z),u.jumpTo(2)):_.C(u,OBZ(e,Z),3);u.nextAddress!=2&&(P=u.yieldResult);z=D0J(FsF(I));m={input:z,requestShell:jc(z),innerTubeRequest:B,config:e};v(n_h(E,m,P,Y));_.ER(u)})})};
s6=function(E,B,I){var T;if(B&&!(B==null?0:(T=B.sequenceMetaData)==null?0:T.skipProcessing)&&E.responseProcessorMap){T=_.p(uVr);for(var e=T.next();!e.done;e=T.next())e=e.value,E.responseProcessorMap[e]&&E.responseProcessorMap[e].handleResponse(B,I)}};
n_h=function(E,B,I,T){T=T===void 0?function(){}:T;
var e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q,f,ed,K,p4,sc,Gf,xi,ki,WG,rJ,Uc,CV,Bm,LV,I$,bc,hz,TU,Wm,z2,cG,$I,tz,pX;return _.a(function(OZ){switch(OZ.nextAddress){case 1:Y=(e=B.config)==null?void 0:(c=e.storeStrategy)==null?void 0:c.storeKey;if(!(Y&&E.innertubeResponseStore&&E.innertubeResponseStore.has(Y))||((v=B.config)==null?0:(y=v.storeStrategy)==null?0:y.disableCache)){OZ.jumpTo(2);break}return _.C(OZ,E.innertubeResponseStore.get(Y),3);case 3:if((Z=OZ.yieldResult)&&!Z.isExpired())return OZ.return(Promise.resolve(_.c3(Z)));
case 2:if(!((P=B)==null?0:(z=P.innerTubeRequest)==null?0:z.context)){OZ.jumpTo(4);break}m=B.innerTubeRequest.context;if(!(E.asyncContextProcessors&&E.asyncContextProcessors.length>0)){OZ.jumpTo(5);break}u=[];x=_.p(E.asyncContextProcessors);for(M=x.next();!M.done;M=x.next())N=M.value,W=N.processContext(B),W.wrappedPromise_&&u.push(W.wrappedPromise_);if(!(u.length>0)){OZ.jumpTo(5);break}return _.C(OZ,Promise.all(u),5);case 5:U=_.p(E.contextProcessors||[]),q=U.next();case 8:if(q.done){OZ.jumpTo(4);break}f=
q.value;return _.C(OZ,f.processContext(m),9);case 9:q=U.next();OZ.jumpTo(8);break;case 4:if((ed=E.localInnertubeRouter)==null||!ed.shouldPreferLocalResponse(B.input,B.innerTubeRequest)){OZ.jumpTo(12);break}return _.C(OZ,E.localInnertubeRouter.localInnertubeResponse(B.input,B.innerTubeRequest),13);case 13:return K=OZ.yieldResult,s6(E,K,B),OZ.return(K);case 12:return(Gf=(sc=B.config)==null?void 0:sc.requestKey)&&E.inflightRequests.has(Gf)?p4=E.inflightRequests.get(Gf):(xi=JSON.stringify(B.innerTubeRequest),
rJ=(WG=(ki=B.requestShell)==null?void 0:ki.headers)!=null?WG:{},B.requestShell=Object.assign({},B.requestShell,{headers:Object.assign({},rJ,I)}),Uc=Object.assign({},B.requestShell),B.requestShell.method==="POST"&&(Uc=Object.assign({},Uc,{body:xi})),((CV=B.config)==null?0:CV.requestTick)&&_.nO(B.config.requestTick),Bm=function(){return E.networkManager.fetch(B.input,Uc,B.config)},p4=E.requestSequencer?HBZ(E.requestSequencer,B,Bm):Bm(),Gf&&E.inflightRequests.set(Gf,p4)),_.C(OZ,p4,14);
case 14:if((LV=OZ.yieldResult)&&"error"in LV&&((I$=LV)==null?0:(bc=I$.error)==null?0:bc.details))for(hz=LV.error.details,TU=_.p(hz),Wm=TU.next();!Wm.done;Wm=TU.next())z2=Wm.value,(cG=z2["@type"])&&LP6.indexOf(cG)>-1&&(delete z2["@type"],LV=z2);Gf&&E.inflightRequests.has(Gf)&&E.inflightRequests.delete(Gf);(($I=B.config)==null?0:$I.responseTick)&&_.nO(B.config.responseTick);if(LV||(tz=E.localInnertubeRouter)==null||!tz.canProvideFallbackResponse(B.input,B.innerTubeRequest)){OZ.jumpTo(15);break}return _.C(OZ,
E.localInnertubeRouter.localFallbackInnertubeResponse(B.input,B.innerTubeRequest),16);case 16:LV=OZ.yieldResult;case 15:return s6(E,LV,B),((pX=B.config)==null?0:pX.processorTick)&&_.nO(B.config.processorTick),T(),OZ.return(LV||void 0)}})};
_.H$=function(E,B){return Z66(B,E.endpointMap)};
Oml=function(E,B){E=z14(B,E.endpointMap);if(E!==void 0)return Promise.resolve(E)};
OBZ=function(E,B){var I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1){e=(I=E)==null?void 0:(T=I.authStrategy)==null?void 0:T.sessionIndex;var v=_.i1(ZOi({sessionIndex:e}));return _.C(Y,v,2)}c=Y.yieldResult;return Y.return(Promise.resolve(Object.assign({},m1d(B),c)))})};
Ght=function(E,B){var I;E=E==null?void 0:(I=E.authStrategy)==null?void 0:I.sessionIndex;I=ZOi({sessionIndex:E});return Object.assign({},m1d(B),I)};var NWu,g_u,SWu,JUZ,WP$,Xr$,o_u,AUl,xx,juR,Uuu,bBD,khR;NWu=0;g_u=/tone[1-5]/;SWu=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");JUZ="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
WP$=Number.MAX_SAFE_INTEGER;Xr$=RegExp("\ufe0f","g");_.uF=function(E){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;E&&_.rUD(this,E)};
_.rUD=function(E,B){try{_.iK(B,{context:E,onSuccess:function(T,e){Array.isArray(e)?E.load(e):(T=new _.P7("Emoji manager JSON response was not an array!",{response:e}),_.xV(T))},
onError:function(T){T=new _.P7("Failed to retrieve emoji manager initial JSON data!",{url:B,statusCode:Ik(T).toString()});_.OG(T)}})}catch(T){var I=new _.P7("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:B});
_.OG(I)}};
_.uF.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.uF.prototype.load=function(E,B){if(B)if(E.length)E=E.concat(B.emojis);else{this.emojis=B.emojis;this.emojiMap=B.emojiMap;this.emojiShortcutMap=B.emojiShortcutMap;this.emojiShortcutCharMap=bBD(B);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=B.emojiRegex;return}this.emojis=[].concat(_.ad(new Set(this.emojis.concat(E))));this.hasInitializedShortcutCharMap=!1;E=Array(this.emojis.length);for(B=0;B<this.emojis.length;B++){var I=this.emojis[B];if(I.emojiId){this.emojiMap[I.emojiId]=I;this.emojiMap[I.emojiId].index=
B;for(var T=0;I.shortcuts&&T<I.shortcuts.length;T++)this.emojiShortcutMap[I.shortcuts[T].toLocaleLowerCase()]=I;E[B]=I.isCustomEmoji&&I.shortcuts?I.shortcuts[0]:I.emojiId}}E.sort(function(e,c){return c.length-e.length});
if(E.length)try{this.emojiRegex=new RegExp(E.join("|").replace("*","\\*"),"gi")}catch(e){this.emojiRegex=/$./}else this.emojiRegex=/$./};
o_u=function(E,B){B=_.p(B);for(var I=B.next();!I.done;I=B.next()){var T=I.value;if(T.emojiId&&E.emojiMap[T.emojiId]){I=Object.assign({},E.emojiMap[T.emojiId],T);E.emojiMap[T.emojiId]=I;var e=void 0;I.index&&((e=E.emojis[I.index])==null?void 0:e.emojiId)===T.emojiId&&(E.emojis[I.index]=I);T=void 0;if((T=I.shortcuts)==null?0:T.length)for(E.hasInitializedShortcutCharMap=!1,T=_.p(I.shortcuts),e=T.next();!e.done;e=T.next())E.emojiShortcutMap[e.value.toLocaleLowerCase()]=I}}};
AUl=function(E){var B,I;_.a(function(T){if(T.nextAddress==1)return _.C(T,_.dB.getInstance(),2);if(T.nextAddress!=3)return(B=T.yieldResult)?_.C(T,B.get("ytlc-emoji-pref"),3):T.return();(I=T.yieldResult)&&o_u(E,Object.keys(I).map(function(e){return{emojiId:e,stickyPrefId:I[e]}}).filter(function(e){return!!e.emojiId&&!!e.stickyPrefId}));
_.ER(T)})};
_.Lj=function(E,B,I){return(E=E.emojiMap[B])&&(!E.isLocked||I!==void 0&&I)?E:void 0};
xx=function(E,B,I){I=_.Lj(E,B,I===void 0?!1:I);var T=B.match("\u200d");I&&E.skinTone!==0&&(E=(T==null?void 0:T.length)===1?_.Lj(E,B.replace("\u200d",SWu[E.skinTone]+"\u200d")):_.Lj(E,B+SWu[E.skinTone]))&&(I=E);return I};
juR=function(E,B){var I=E.emojiMap[B];return(I==null?0:I.stickyPrefId)?E.emojiMap[I.stickyPrefId]:xx(E,B)};
_.yL=function(E,B){E=E.emojiShortcutMap[B.toLocaleLowerCase()];return!E||E.isLocked?null:E};
Uuu=function(E,B,I){return bBD(E,I===void 0?!1:I)[B]||{}};
bBD=function(E,B){B=B===void 0?!1:B;if(!E.hasInitializedShortcutCharMap){E.hasInitializedShortcutCharMap=!0;for(var I=0;I<E.emojis.length;I++){var T=E.emojis[I];if(!(T.isLocked||B&&T.isCustomEmoji&&T.emojiId&&!E.pickerCustomEmojiIds.includes(T.emojiId)))for(var e=0;T.shortcuts&&e<T.shortcuts.length;e++){var c=T.shortcuts[e];c.startsWith(":_")&&T.isCustomEmoji&&(E.emojiShortcutCharMap[":_"]==null&&(E.emojiShortcutCharMap[":_"]=Object.create(null)),E.emojiShortcutCharMap[":_"][c]=T);if(!(c.length<3||
!T.isCustomEmoji&&g_u.test(c))){var Y=c.substr(0,3).toLocaleLowerCase();E.emojiShortcutCharMap[Y]==null&&(E.emojiShortcutCharMap[Y]=Object.create(null));E.emojiShortcutCharMap[Y][c]=T}}}}return E.emojiShortcutCharMap};
_.uF.prototype.createEmoji=function(E,B){B=B===void 0?!0:B;var I=document.createElement("img");E.isCustomEmoji||I.classList.add("small-emoji");I.classList.add("emoji");I.classList.add("yt-formatted-string");I.src=E.image?_.Aa(E.image.thumbnails,this.emojiSize)||"":"";var T=void 0;E.image&&E.image.accessibility&&E.image.accessibility.accessibilityData&&(T=E.image.accessibility.accessibilityData.label);I.alt=T?T:(E.isCustomEmoji&&E.shortcuts?E.shortcuts[0]:E.emojiId)||"";E.isCustomEmoji&&(I.dataset.emojiId=
E.emojiId);_.cf&&(I.setAttribute("contenteditable","false"),I.setAttribute("unselectable","on"));B&&(E.shortcuts&&E.shortcuts.length&&I.setAttribute("shared-tooltip-text",E.shortcuts[0]),I.id="emoji-"+NWu++);return I};
_.uF.prototype.createDocumentFragment=function(E,B,I,T){B=B===void 0?!1:B;I=I===void 0?!0:I;T=T===void 0?!1:T;E=E.replace(Xr$,"");for(var e=document.createDocumentFragment(),c=0,Y,v=0;(Y=this.emojiRegex.exec(E))!=null;){var y=_.Lj(this,Y[0])||_.yL(this,Y[0]);!y||y.isCustomEmoji&&!B||(y=this.createEmoji(y,I),c!==Y.index&&e.appendChild(document.createTextNode(E.substring(c,Y.index))),e.appendChild(y),c=Y.index+Y[0].length,v++)}if(!T||v)return e.appendChild(document.createTextNode(E.substr(c))),e};
khR=function(E,B,I){var T,e,c,Y,v,y,Z,P,z;return _.a(function(m){if(m.nextAddress==1){if(!B.emojiId||!E.emojiMap[B.emojiId])return m.return();T=Object.assign({},E.emojiMap[B.emojiId],{stickyPrefId:I});E.emojiMap[B.emojiId]=T;B.index&&((e=E.emojis[B.index])==null?void 0:e.emojiId)===B.emojiId&&(E.emojis[B.index]=T);if((c=B.shortcuts)==null?0:c.length)for(E.hasInitializedShortcutCharMap=!1,Y=_.p(B.shortcuts),v=Y.next();!v.done;v=Y.next())y=v.value,E.emojiShortcutMap[y.toLocaleLowerCase()]=T;return _.C(m,
_.dB.getInstance(),2)}if(m.nextAddress!=4)return(Z=m.yieldResult)?_.C(m,Z.get("ytlc-emoji-pref"),4):m.jumpTo(0);z=(P=m.yieldResult)!=null?P:{};z[B.emojiId]=I;return _.C(m,Z.set("ytlc-emoji-pref",z,WP$),0)})};
_.Gm=new _.uF;var VFR;_.O6={};
VFR={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.d("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:_.d("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 oY(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 E=_.n(this.hostElement||this).querySelector("#inline-action-button-container");E&&E.setAttribute("aria-hidden","true");this.menuButton=_.n(this.hostElement).querySelector("#menu-button")},
attached:function(){var E=this.menuButton;E&&(E.addEventListener("focusin",_.Kq(this,this.onMenuButtonFocus_)),E.addEventListener("focusout",_.Kq(this,this.onMenuButtonBlur_)))},
detached:function(){var E=this.menuButton;E&&(E.removeEventListener("focusin",_.Kq(this,this.onMenuButtonFocus_)),E.removeEventListener("focusout",_.Kq(this,this.onMenuButtonBlur_)))},
identity:_.JD,truthy:function(E){return!!E},
computeTimestampString:function(E){return E?E.timestampText?this.getSimpleString(E.timestampText):this.TIME_FORMATTER.format(new Date(E.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(E){return _.d("live_chat_whole_message_clickable")&&E},
computeMenuVisible_:function(E,B){return E||B},
computeHasInlineActionButtons:function(E){if(!E)return!1;var B,I;return!((B=E.inlineActionButtons)==null||!B.length)||!((I=E.additionalInlineActionButtons)==null||!I.length)},
createDocumentFragmentFromString:function(E){var B=_.Gm.createDocumentFragment.bind(_.Gm),I;if((I=this.participantsManager)==null||!I.viewerRegex)return B(E);I=document.createDocumentFragment();for(var T=0,e;(e=this.participantsManager.viewerRegex.exec(E))!=null;){if(e.index>0){var c=":"+e[0]+":";if((_.Lj(_.Gm,c)||_.yL(_.Gm,c))&&E.indexOf(c)===e.index-1)continue}I.appendChild(B(E.substring(T,e.index)));T=document.createElement("span");T.appendChild(B(e[0]));T.classList.add("mention");I.appendChild(T);
T=e.index+e[0].length}I.appendChild(B(E.substring(T)));return I},
createDocumentFragment:function(E){var B=document.createDocumentFragment();if(E.simpleText)return B.appendChild(this.createDocumentFragmentFromString(E.simpleText)),B;if(!E.runs)return B;for(var I=0;I<E.runs.length;I++){var T=E.runs[I];if(T.emoji)B.appendChild(_.Gm.createEmoji(T.emoji));else if(T.text)if(T.navigationEndpoint){var e=document.createElement("a");e.classList.add("yt-simple-endpoint");b8f(e,T.navigationEndpoint);_.n(e).appendChild(this.createDocumentFragmentFromString(T.text));B.appendChild(e)}else B.appendChild(this.createDocumentFragmentFromString(T.text))}return B},
hasModerationOverlayVisible:function(){var E;return((E=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:E.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(E){E.composedPath().some(function(B){return(B=B instanceof Element?B:null)?B.tagName&&(B.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||B.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.d("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(E)},
colorFromDecimal:function(E){return egi(E)},
markAsDeleted:function(E,B){this.set("data.deletedStateMessage",E);this.set("data.showOriginalContentMessage",B)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(E){if(this.data.contextMenuEndpoint){var B=_.Q().resolve(_.Zk),I=this.data.contextMenuEndpoint,T;(T=_.MN.instance)&&_.H$(T,I)?(B=tFD(B,I),T=_.Me(T,{},B)):T=_.fWZ(B,I);T.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);E&&E.stopPropagation()}},
handleGetContextMenuResponse_:function(E){var B=_.MN.instance;B&&_.H$(B,{liveChatEndpoint:{}})||(E=E.response);E.liveChatItemContextMenuSupportedRenderers&&E.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(E.liveChatItemContextMenuSupportedRenderers.menuRenderer);E.actions&&_.I2(this.hostElement,"yt-live-chat-actions",[E.actions])},
handleGetContextMenuError:function(E){if(E instanceof Error||E instanceof Object||E instanceof String)var B=E;_.xV(new _.P7("Error encountered calling GetLiveChatItemContextMenu",B))},
showContextMenu_:function(E){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:E}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.$O(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.$O(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.O6.YtLiveChatItemBehavior=[VFR,_.G0.YtComponentBehavior,_.E6.YtOpenPopupBehavior];_.nj=function(){};var qWN;var FP6;var Duu;var KPZ;var Mk=function(){var E=_.r.apply(this,arguments)||this;E.active=!1;E.identity=_.JD;return E};
_.L(Mk,_.r);Mk.prototype.dataChanged=function(){this.active=!1};
Mk.prototype.onClick=function(){_.$O(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Mk.prototype.dataChanged=Mk.prototype.dataChanged;_.k([_.X(),_.t("design:type",Object)],Mk.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Mk.prototype,"active",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Mk.prototype,"dataChanged",null);Mk=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Mk);
_.A(Mk,"yt-live-chat-text-input-field-suggestion",function(){if(KPZ===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;Duu===void 0&&(Duu=document.createElement("template"));var T=Duu;I.call(B,T.content.cloneNode(!0),E.content.firstChild);KPZ=E}E=KPZ;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});_.HF=function(E,B,I){return CustomEvent.call(this,E,{detail:{value:B,path:I}})||this};
_.L(_.HF,CustomEvent);_.Nk=function(){var E=_.r.apply(this,arguments)||this;E.viewerName=null;E.actionMap={"yt-live-chat-actions":"onChatMessage_"};E.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];E.PARTICIPANT_TIME_USEC_=3E8;return E};
_.L(_.Nk,_.r);_.l=_.Nk.prototype;_.l.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.l.addParticipant=function(E){var B=_.dG4(this.participants,E,function(T,e){T=T[Object.keys(T)[0]];e=e[Object.keys(e)[0]];T=String(_.U3(T.authorName)).toLowerCase();e=String(_.U3(e.authorName)).toLowerCase();return T<e?-1:T==e?0:1}.bind(this));
if(B>=0){var I=this.participants[B];I[Object.keys(I)[0]].timestampUsec&&this.splice("participants",B,1,E)}else this.splice("participants",-B-1,0,E);E=E[Object.keys(E)[0]];B=_.U3(E.authorName).toLocaleLowerCase();I=B.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(I)||(this.allParticipantsCharMap_[I]={});this.allParticipantsCharMap_[I][B]=E};
_.l.getAuthorsFromPrefix=function(E){return this.allParticipantsCharMap_.hasOwnProperty(E)?this.allParticipantsCharMap_[E]:null};
_.l.computeViewerRegex_=function(E){if(!E)return null;E=E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.d("enable_web_yt_handles")||_.d("enable_live_chat_yt_handles")?new RegExp("([#]"+E.replace(/ /g,"\\s*")+"|^"+E.replace(/ /g,"\\s*")+"$|^"+E.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+E.replace(/ /g,"\\s*")+"$|(?<=\\s)"+E.replace(/ /g,"\\s*")+"(?=\\s))","ig"):new RegExp("([@#]"+E.replace(/ /g,"\\s*")+"|^"+E.replace(/ /g,"\\s*")+"$|^"+E.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+E.replace(/ /g,"\\s*")+
"$|(?<=\\s)"+E.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.l.checkForStaleParticipants_=function(){var E=this;this.trimOldParticipants_();this.asyncHandle_&&HmQ(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Gg(function(){E.checkForStaleParticipants_()},3E4))};
_.l.onChatMessage_=function(E){var B=this,I=Date.now()*1E3;E.forEach(function(T){if(T=_.h(T,neR)){T=T.item;var e=Object.keys(T)[0];B.SUPPORTED_ITEM_TYPES_.indexOf(e)!=-1&&T[e].timestampUsec>=I-B.PARTICIPANT_TIME_USEC_&&B.addParticipant(T)}},this);
this.checkForStaleParticipants_()};
_.l.trimOldParticipants_=function(){for(var E=Date.now()*1E3,B=this.participants.length-1;B>=0;B--){var I=this.participants[B];I=I[Object.keys(I)[0]];I.timestampUsec&&I.timestampUsec<E-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",B,1)}};
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],_.Nk.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],_.Nk.prototype,"viewerName",void 0);_.k([_.X({computed:"computeViewerRegex_(viewerName)"}),_.t("design:type",Object)],_.Nk.prototype,"viewerRegex",void 0);_.k([_.X({value:function(){return[]},
notify:!0}),_.t("design:type",Array)],_.Nk.prototype,"participants",void 0);_.Nk=_.k([_.QE({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Nk);var RPz=/.*([:@#].*?)$/,gS=/\u00a0/g,EZh=String.fromCharCode(160),BxN={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"},S1=function(){var E=_.r.apply(this,arguments)||this;E.disabled=!1;E.liveChatRichMessageInput=null;E.messageInput=null;E.isValidWithNoInputText=!1;E.suggestions=[];E.emojiManager=_.Gm;E.inputMethodEditorActive=
!1;E.suggestionIndex=-1;E.JSC$11838_lastSuggestionRange=null;return E};
_.L(S1,_.r);_.l=S1.prototype;_.l.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.l.attached=function(){_.iq&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.l.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.l.dataChanged=function(){if(!this.ignoreColorMapping){var E=!1,B={},I;for(I in BxN)this.data&&this.data.hasOwnProperty(I)&&(B[BxN[I]]=this.colorFromDecimal(this.data[I]),E=!0);E&&_.Dk(this.hostElement,B)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.l.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.l.colorFromDecimal=function(E){E=Math.floor(Number(E));return"rgba("+[E>>16&255,E>>8&255,E&255,(E>>24&255)/255].join()+")"};
_.l.preventDrag=function(E){E.dataTransfer&&(E.dataTransfer.dropEffect="none");E.preventDefault()};
_.l.preventResize=function(E){E.returnValue=!1};
_.l.onInputChange=function(){var E=this.characterCount,B=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&B&&B.remove();if(!B&&this.characterCount>this.maxCharacterLimit){var I=window.getSelection();if(I){var T=I.getRangeAt(0);I.removeAllRanges();I.addRange(T)}}if(I=this.getCurrentRange())T=this.calculateTextBeforeRange(I),this.completeEmojisInRange(I,T,!0)||this.updateSuggestions(I,T);T=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(T);
_.$O(this.hostElement,"yt-live-chat-message-input-change",T);B&&this.characterCount===0&&B.remove();I&&I.commonAncestorContainer.parentElement.id==="input"&&I.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>E):I&&!I.collapsed&&I.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(E=this.input.childNodes.length-1;E>=0;E--)this.input.childNodes[E].nodeName==="BR"&&this.input.childNodes[E].remove()};
_.l.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.l.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var E=this.getCurrentRange();E&&E.commonAncestorContainer.parentElement.id==="input"&&E.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.l.mergeOverflowText=function(E){if(E){var B=document.createRange();B.selectNodeContents(E);B=B.extractContents();this.input.insertBefore(B,E)}};
_.l.checkRangeAtEndOfInput=function(){var E=this.getCurrentRange();if(E){var B=_.n(this.hostElement).querySelector("#overflow-text"),I=document.createRange();B&&B.previousSibling?B.previousSibling instanceof HTMLImageElement?I.selectNode(B.previousSibling):I.selectNodeContents(B.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?I.selectNode(this.input.lastChild):I.selectNodeContents(this.input.lastChild));I.collapse(!1);return I.isPointInRange(E.startContainer,
E.startOffset)}return!1};
_.l.handleOverflowText=function(E){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var B=_.n(this.hostElement).querySelector("#overflow-text"),I=this.getCurrentRange();this.input.normalize();E=this.checkRangeAtEndOfInput()&&E;this.mergeOverflowText(B);for(var T,e=0,c=0,Y,v=this.input.childNodes,y=0;y<v.length;y++){var Z=v[y];Z instanceof Text?(c+=Z.textContent.length,c>this.maxCharacterLimit&&(T=Z,e=this.maxCharacterLimit+Z.textContent.length-c)):Z instanceof HTMLImageElement&&
(T=void 0,c=Z.dataset.emojiId&&((T=this.data)==null?0:T.emojiCharacterCount)?c+this.data.emojiCharacterCount:c+Z.alt.length,T=this.input,e=y);if(c>this.maxCharacterLimit&&T){Y=document.createRange();Y.collapse(!1);B?(c=this.input.lastChild.previousSibling,c instanceof Text?Y.setEnd(this.input.lastChild.previousSibling,c.textContent.length):c instanceof HTMLImageElement&&Y.setEnd(this.input,this.input.childNodes.length-1)):Y.selectNodeContents(this.input);Y.setStart(T,e);break}}Y&&(T=!1,I&&(E=Y.isPointInRange(I.startContainer,
I.startOffset-1)),B||(B=document.createElement("span"),B.id="overflow-text",B.textContent="",B.setAttribute("contenteditable","true"),_.n(_.n(this.hostElement).querySelector("#input")).appendChild(B),T=!0),B&&(I=Y.extractContents(),B.insertBefore(I,B.firstChild),E&&B.firstChild&&(I=document.createRange(),T?I.setStartAfter(B.lastChild):I.setStartAfter(B.firstChild),I.collapse(!0),B=window.getSelection(),B.removeAllRanges(),B.addRange(I))))}};
_.l.checkForDuplicateSpans=function(){for(var E=0;E<this.input.childNodes.length;E++){var B=this.input.childNodes[E];if(B.nodeName==="SPAN"){var I=document.createRange();I.selectNodeContents(B);I=I.extractContents();this.input.insertBefore(I,B);B.remove()}}this.handleOverflowText(!0)};
_.l.getCurrentRange=function(){var E=window.getSelection();return E&&E.rangeCount?E.getRangeAt(0).cloneRange():null};
_.l.getInputRange=function(){var E=this.getCurrentRange();if(E){for(var B=E.commonAncestorContainer,I=!1,T=_.n(this.hostElement).querySelector("#input");B;){if(B===T){I=!0;break}B=B.parentNode}I||(E=null)}E||(E=this.getRangeAtEnd());return E};
_.l.getRangeAtEnd=function(){var E=document.createRange(),B=_.n(this.hostElement).querySelector("#input").lastChild;!B||B.nodeName!=="#text"&&B.nodeName!=="SPAN"?(E.selectNodeContents(_.n(this.hostElement).querySelector("#input")),E.collapse(!1)):B.nodeName==="#text"?E.setStart(B,B.textContent.length):E.setStart(B,B.childNodes.length);return E};
_.l.getSuggestions=function(E){var B=[],I=E.substring(0,3),T=Uuu(_.Gm,I,!0);if(T)for(var e in T)if(e.toLocaleLowerCase().indexOf(E)===0){var c=T[e];if(c&&c.emojiId){if(c=juR(_.Gm,c.emojiId)){var Y=void 0,v=void 0,y=void 0,Z=void 0,P=((Y=c.image)==null?0:(v=Y.accessibility)==null?0:(y=v.accessibilityData)==null?0:y.label)||c.isCustomEmoji?(Z=c.shortcuts)==null?void 0:Z[0]:c.emojiId;B.push({suggestion:{emoji:!0,image:c.image,alt:P,text:e,textToInsertWhenSelected:c.isCustomEmoji?e:P}})}if(B.length>=
64)break}}if(!this.participantsManager)return null;T=_.d("enable_web_yt_handles")||_.d("enable_live_chat_yt_handles");if(I.indexOf("@")===0||I.indexOf("#")===0)if(e=I.charAt(0),E=E.substring(1),I=T&&I.indexOf("@")===0?I.substring(0,2):I.substring(1),I=this.participantsManager.getAuthorsFromPrefix(I))for(var z in I)if(z.indexOf(E)===0||T&&z.indexOf(e+E)===0)if(c=I[z],Y=_.U3(c.authorName),B.push({suggestion:{author:!0,authorType:e,image:c.authorPhoto,alt:Y,text:Y}}),B.length>=64)break;return B?B.sort(function(m,
u){return u.suggestion.text<m.suggestion.text?-1:u.suggestion.text===m.suggestion.text?0:1}):null};
_.l.insertSuggestion=function(E){var B=_.d("enable_web_yt_handles")||_.d("enable_live_chat_yt_handles")?E.text+EZh:E.authorType+E.text+EZh;E.emoji?this.insertTextAtRange(this.JSC$11838_lastSuggestionRange,E.textToInsertWhenSelected||""):E.author&&this.insertTextAtRange(this.JSC$11838_lastSuggestionRange,B)};
_.l.updateSuggestionsAtCaret=function(){var E=this.getCurrentRange();E&&this.updateSuggestions(E,this.calculateTextBeforeRange(E))};
_.l.offsetStartOfRangeBy=function(E,B){for(;B>0;)if(E.startOffset-B>=0){E.setStart(E.startContainer,E.startOffset-B);break}else{B=E.startContainer instanceof HTMLImageElement?B-E.startContainer.alt.length:B-E.startOffset;var I=E.startContainer.previousSibling;if(!I){E.setStart(E.startContainer,0);break}if(_.d("live_chat_require_space_for_autocomplete_emoji")){var T=void 0,e=void 0;E.setStart(I,((T=I)==null?void 0:(e=T.textContent)==null?void 0:e.length)||0)}else E.setStart(I,I.childNodes.length||
0)}};
_.l.updateSuggestions=function(E,B){var I=this;this.JSC$11838_lastSuggestionRange&&(this.JSC$11838_lastSuggestionRange.detach(),this.JSC$11838_lastSuggestionRange=null);if((B=RPz.exec(B))&&B.length&&(B=B[B.length-1].toLocaleLowerCase(),B.length>2&&(this.offsetStartOfRangeBy(E,B.length),this.JSC$11838_lastSuggestionRange=E,(E=this.getSuggestions(B))&&E.length))){this.suggestions=E;_.AJ(this,function(){_.n(I.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(E.length-1);return}this.dropdown.opened=!1};
_.l.completeEmojisInRange=function(E,B,I){var T=B.replace(/[\s\xa0]+$/,"");B=B.length-T.length;T=T.split(" ");T=T[T.length-1].trim().toLocaleLowerCase();var e=T.lastIndexOf(":");if(I&&!B&&e!==T.length-1)return!1;e!==-1&&(I=T.lastIndexOf(":",e-1),I!==-1&&(T=T.substring(I)));if((I=_.yL(_.Gm,T))&&I.emojiId){I=juR(_.Gm,I.emojiId)||null;this.offsetStartOfRangeBy(E,T.length+B);var c,Y,v,y;T=(((c=I)==null?0:c.isCustomEmoji)?(Y=I)==null?void 0:(v=Y.shortcuts)==null?void 0:v[0]:(y=I)==null?void 0:y.emojiId)||
"";B&&(T+=EZh);this.insertTextAtRange(E,T);this.dropdown.opened=!1;return!0}return!1};
_.l.onSuggestion=function(E){this.insertSuggestion(E.detail);this.dropdown.opened=!1};
_.l.onKeyPress=function(E){E.keyCode===13&&(E.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.$O(this.hostElement,"yt-live-chat-send-message"))};
_.l.completeEmojis=function(){var E=document.createRange(),B=_.n(this.hostElement).querySelector("#input").lastChild;B?E.setStart(B,B.childNodes.length):(E.selectNodeContents(_.n(this.hostElement).querySelector("#input")),E.collapse(!1));this.completeEmojisInRange(E,this.calculateTextBeforeRange(E),_.d("live_chat_require_space_for_autocomplete_emoji"))};
_.l.maybePreventTextFormatting=function(E){!_.ar||!E.ctrlKey&&!E.metaKey||E.keyCode!==66&&E.keyCode!==73||(E.stopImmediatePropagation(),E.preventDefault())};
_.l.onKeyDown=function(E){this.maybePreventTextFormatting(E);if(this.dropdown.opened)switch(E.keyCode){case 27:this.dropdown.opened=!1;E.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;E.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);E.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),E.preventDefault()}};
_.l.onKeyUp=function(E){switch(E.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.cf)this.onInputChange()};
_.l.changeSuggestionIndex=function(E){if(this.dropdown.opened){var B=_.n(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<B.children.length&&(B.children[this.suggestionIndex].active=!1);var I=this.suggestions.length;this.suggestionIndex=(E+I)%I;E=B.children[this.suggestionIndex];E.active=!0;B.scrollTop=E.offsetTop}};
_.l.onInputPaste=function(E){E.preventDefault();(E=E.clipboardData)&&E.types&&(E=E.getData("text/plain")||"",E=E.replace(/\n/g,""),this.insertText(E));(E=this.getCurrentRange())&&E.commonAncestorContainer.parentElement.id==="input"&&E.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.l.onFocus=function(){this._setFocused(!0)};
_.l.onBlur=function(){this._setFocused(!1)};
_.l.insertText=function(E){this.insertTextAtRange(this.getInputRange(),E)};
_.l.insertTextAtRange=function(E,B){if(E&&(E.collapsed||E.deleteContents(),B=_.Gm.createDocumentFragment(B,!0,!1))){for(var I=_.p((B==null?void 0:B.childNodes)||[]),T=I.next();!T.done;T=I.next()){T=T.value;var e=void 0,c=void 0,Y=void 0,v=void 0,y=void 0;(Y=(e=window)==null?void 0:(c=e.ShadyCSS)==null?void 0:c.ScopingShim)==null||(y=(v=Y).scopeNode)==null||y.call(v,T,this.hostElement.localName)}I=B.lastChild;E.insertNode(B);this.focused||this.input.focus();if(this.focused){E=E.cloneRange();E.selectNodeContents(I);
E.collapse(!1);if(B=window.getSelection())B.removeAllRanges(),B.addRange(E);E.commonAncestorContainer.parentElement.id==="input"&&E.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}E=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(E);_.$O(this.hostElement,"yt-live-chat-message-input-change",E)}};
_.l.setLiveChatRichMessageInput=function(E){_.n(_.n(this.hostElement).querySelector("#input")).textContent="";if(E&&E.textSegments){for(var B=0;B<E.textSegments.length;B++){var I=E.textSegments[B];I.text?_.n(_.n(this.hostElement).querySelector("#input")).appendChild(_.Gm.createDocumentFragment(I.text,!0,!1)):I.emojiId&&(I=_.Lj(_.Gm,I.emojiId))&&_.n(_.n(this.hostElement).querySelector("#input")).appendChild(_.Gm.createEmoji(I,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.l.setText=function(E){this.setLiveChatRichMessageInput(E?{textSegments:[{text:E}]}:null)};
_.l.calculateTextBeforeRange=function(E){var B="",I=E.startContainer;if(I&&I instanceof Text){var T;B=((T=I.textContent)==null?void 0:T.substring(0,E.startOffset))||"";I=I.previousSibling}for(;I&&I instanceof Text;)B=I.textContent+B,I=I.previousSibling;return B.replace(gS," ")};
_.l.calculateLiveChatRichMessageInput=function(){for(var E=[],B="",I=_.n(_.n(this.hostElement).querySelector("#input")).childNodes,T=0;T<I.length;T++){var e=I[T];e instanceof Text?B+=e.textContent:e instanceof HTMLImageElement&&(e.dataset.emojiId?(B&&(E.push({text:B.replace(gS," ")}),B=""),E.push({emojiId:e.dataset.emojiId})):B+=e.alt)}B&&E.push({text:B.replace(gS," ")});if(I=_.n(this.hostElement).querySelector("#overflow-text")){B="";I=I.childNodes;for(T=0;T<I.length;T++)e=I[T],e instanceof Text?
B+=e.textContent:e instanceof HTMLImageElement&&(e.dataset.emojiId?(B&&(E.push({text:B.replace(gS," ")}),B=""),E.push({emojiId:e.dataset.emojiId})):B+=e.alt);B&&E.push({text:B.replace(gS," ")})}return{textSegments:E}};
_.l.computeCharacterCount=function(E){if(!E||!E.textSegments)return 0;for(var B=0,I=0;I<E.textSegments.length;I++){var T=E.textSegments[I];if(T.text)B+=T.text.length;else if(T.emojiId){var e=void 0;if((e=this.data)==null?0:e.emojiCharacterCount)B+=this.data.emojiCharacterCount;else{var c=e=void 0,Y=void 0;B+=((c=_.Lj(_.Gm,(e=T)==null?void 0:e.emojiId))==null?void 0:(Y=c.shortcuts)==null?void 0:Y[0].length)||0}}}return B};
_.l.characterCountChanged=function(){_.$O(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.l.focusedChanged=function(){this.hostElement.dispatchEvent(new _.HF("focused-changed",this.focused))};
_.l.focus=function(){this.setFocus(!1)};
_.l.focusAtEnd=function(){this.setFocus(!0)};
_.l.setFocus=function(E){E=E?this.getRangeAtEnd():this.getInputRange();_.n(this.hostElement).querySelector("#input").focus();var B=window.getSelection();B&&(B.removeAllRanges(),B.addRange(E))};
_.l.insertEmoji=function(E){var B,I=((E==null?0:E.isCustomEmoji)?(B=E.shortcuts)==null?void 0:B[0]:E==null?void 0:E.emojiId)||"";this.insertText(I)};
_.l.computeText=function(E){if(!E||!E.textSegments)return"";for(var B="",I=0;I<E.textSegments.length;I++){var T=E.textSegments[I];if(T.text)B+=T.text;else if(T.emojiId){var e=void 0,c=void 0,Y=void 0;B+=((c=_.Lj(_.Gm,(e=T)==null?void 0:e.emojiId))==null?void 0:(Y=c.shortcuts)==null?void 0:Y[0])||""}}return B};
_.l.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Up.Object.defineProperties(S1.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.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}}});
S1.prototype.focusedChanged=S1.prototype.focusedChanged;S1.prototype.characterCountChanged=S1.prototype.characterCountChanged;S1.prototype.onSuggestion=S1.prototype.onSuggestion;S1.prototype.onMessageSet=S1.prototype.onMessageSet;S1.prototype.dataChanged=S1.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],S1.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],S1.prototype,"disabled",void 0);_.k([_.S("disabled"),_.t("design:type",Number),_.t("design:paramtypes",[])],S1.prototype,"inputTabIndex",null);_.k([_.S("data.maxCharacterLimit"),_.X({readOnly:!0,notify:!0}),_.t("design:type",Number),_.t("design:paramtypes",[])],S1.prototype,"maxCharacterLimit",null);
_.k([_.S("liveChatRichMessageInput"),_.X({readOnly:!0,notify:!0}),_.t("design:type",Number),_.t("design:paramtypes",[])],S1.prototype,"characterCount",null);_.k([_.S("maxCharacterLimit, characterCount"),_.X({readOnly:!0,notify:!0}),_.t("design:type",Number),_.t("design:paramtypes",[])],S1.prototype,"remainingCharacterCount",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],S1.prototype,"isChatMessageInput",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],S1.prototype,"inputExpanded",void 0);_.k([_.X({readOnly:!0,notify:!0}),_.t("design:type",Object)],S1.prototype,"liveChatRichMessageInput",void 0);_.k([_.X(),_.t("design:type",Object)],S1.prototype,"messageInput",void 0);_.k([_.X(),_.t("design:type",Boolean)],S1.prototype,"ignoreColorMapping",void 0);_.k([_.S("characterCount"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],S1.prototype,"hasText",null);
_.k([_.X(),_.t("design:type",Object)],S1.prototype,"isValidWithNoInputText",void 0);_.k([_.S("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.X(),_.t("design:type",Boolean),_.t("design:paramtypes",[])],S1.prototype,"isInputValid",null);_.k([_.X({readOnly:!0,value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],S1.prototype,"focused",void 0);_.k([_.X(),_.t("design:type",Array)],S1.prototype,"suggestions",void 0);
_.k([_.X(),_.t("design:type",_.uF)],S1.prototype,"emojiManager",void 0);_.k([_.X(),_.t("design:type",_.Nk)],S1.prototype,"participantsManager",void 0);_.k([_.X(),_.t("design:type",Boolean)],S1.prototype,"noUnderline",void 0);_.k([_.X(),_.t("design:type",Object)],S1.prototype,"inputMethodEditorActive",void 0);_.k([_.$7("#dropdown"),_.t("design:type",Object)],S1.prototype,"dropdown",void 0);_.k([_.$7("#input"),_.t("design:type",HTMLElement)],S1.prototype,"input",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],S1.prototype,"dataChanged",null);_.k([_.EM("messageInput"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],S1.prototype,"onMessageSet",null);_.k([_.RN("yt-live-chat-select-suggestion"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],S1.prototype,"onSuggestion",null);
_.k([_.EM("characterCount"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],S1.prototype,"characterCountChanged",null);_.k([_.EM("focused"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],S1.prototype,"focusedChanged",null);S1=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],S1);
_.$QD=_.A(S1,"yt-live-chat-text-input-field-renderer",function(){if(FP6===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;qWN===void 0&&(qWN=document.createElement("template"));var T=qWN;I.call(B,T.content.cloneNode(!0),E.content.firstChild);FP6=E}E=FP6;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var J4=function(){var E=_.r.apply(this,arguments)||this;E.buttonOverrides={style:"overlay",type:"filled"};E.allowAnimations=!1;E.modern=_.d("web_button_rework_with_live");E.noPadding=!1;return E};
_.L(J4,_.r);_.l=J4.prototype;_.l.shouldSupportInlineActionButtons=function(){return!0};
_.l.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"}}}}};
_.l.ready=function(){var E=document.querySelector("yt-live-chat-app");E&&E.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.l.attached=function(){this.allowAnimations=!1};
_.l.dataChanged=function(){if(this.data){var E={"--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)};_.Dk(this.hostElement,E);this.allowAnimations=!0}};
_.l.messageChanged=function(){var E,B=(E=this.data)==null?void 0:E.message;E=_.n(_.n(this.hostElement).querySelector("#message"));E.textContent="";B&&E.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(B))};
_.l.computeShowOnlyHeader=function(E,B){return!E||E.pdgLikeButton||E.replyButton||E.buyFlowButton?!1:this.isEmpty(E,B)&&!E.footer};
_.l.computeShowFooterDivider=function(E,B,I){return E?!!E.footer&&!this.isEmpty(E,B)&&!I:!1};
_.l.computeIsUserEditable=function(E){return!!E.inputField};
_.l.computeHasHeartButton=function(E){return(E==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(E==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(E==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.l.computeNoveltyImage=function(E){if(E.headerOverlayImage&&E.headerOverlayImage.thumbnails.length){var B=E.headerOverlayImage.thumbnails[0],I,T;if((I=E.pdgPurchasedNoveltyLoggingDirectives)==null?0:(T=I.loggingDirectives)==null?0:T.trackingParams){var e,c;k_D((e=E.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(c=e.loggingDirectives)==null?void 0:c.trackingParams)}return B.width||0}return 0};
_.l.computeAuthorPhotoSize=function(E){return(E==null?0:E.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.l.inputFocus=function(){var E=_.n(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");E&&E.focus()};
_.l.inputInsertEmoji=function(E){var B=_.n(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");B&&B.insertEmoji(E)};
_.l.inputMessage=function(){var E=_.n(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),B;return E&&((B=this.data)==null?0:B.inputField)?(E.completeEmojis(),_.GI(E.liveChatRichMessageInput)):null};
_.l.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.l.isEmpty=function(E,B){return E?E.empty||!(E.message||E.inputField||B):!0};
_.l.onLowerBuyButtonClick=function(){var E,B=_.h((E=this.data)==null?void 0:E.buyButton,_.NT);B&&B.trackingParams&&!cXB(B.command)&&(E=_.Yg(B.trackingParams))&&(B=_.nC())&&_.Al(B,E)};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.Up.Object.defineProperties(J4.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?0:E.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
J4.prototype.isDeletedChanged=J4.prototype.isDeletedChanged;J4.prototype.messageChanged=J4.prototype.messageChanged;J4.prototype.dataChanged=J4.prototype.dataChanged;_.k([_.g(X5u.YtPdgLiveChatItemBehavior),_.t("design:type",Object)],J4.prototype,"ytPdgLiveChatItemBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.LM),_.t("design:type",Object)],J4.prototype,"ytLiveChatReduxBehavior",void 0);
_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],J4.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],J4.prototype,"data",void 0);_.k([_.X({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:jid}),_.t("design:type",Object)],J4.prototype,"engagementState",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.t("design:type",Boolean)],J4.prototype,"isUserEditable",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.t("design:type",Boolean)],J4.prototype,"hasHeartButton",void 0);_.k([_.X({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.t("design:type",Boolean)],J4.prototype,"showOnlyHeader",void 0);
_.k([_.X({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.t("design:type",Boolean)],J4.prototype,"showFooterDivider",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Object)],J4.prototype,"allowAnimations",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],J4.prototype,"dashboardMoneyFeed",void 0);_.k([_.X({computed:"computeNoveltyImage(data)"}),_.t("design:type",Number)],J4.prototype,"noveltyWidth",void 0);
_.k([_.X({computed:"computeAuthorPhotoSize(data)"}),_.t("design:type",Number)],J4.prototype,"authorPhotoSize",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],J4.prototype,"modern",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],J4.prototype,"noPadding",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J4.prototype,"dataChanged",null);
_.k([_.EM("data.message"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J4.prototype,"messageChanged",null);_.k([_.S("data","dashboardMoneyFeed"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],J4.prototype,"hideLowerBumper",null);_.k([_.EM("isDeleted"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J4.prototype,"isDeletedChanged",null);
J4=_.k([_.b({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],J4);
_.A(J4,"yt-live-chat-paid-message-renderer",function(){if(prN===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;iBR===void 0&&(iBR=document.createElement("template"));var T=iBR;I.call(B,T.content.cloneNode(!0),E.content.firstChild);prN=E}E=prN;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var I9l;var TxV;var WF=function(){var E=_.l6.apply(this,arguments)||this;E._noAccessors=!0;return E};
_.L(WF,_.l6);WF.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.HA("openPopupConfig")};
_.k([_.g(_.E6.YtOpenPopupBehavior),_.t("design:type",Object)],WF.prototype,"ytOpenPopupBehavior",void 0);WF=_.k([_.cl()],WF);_.X_=[_.E6.YtOpenPopupBehavior,WF.prototype];var eyh;var Sx=[_.pq,zmr,_.nU,_.YG,_.kh,_.OSZ,_.yQ,_.rBr,_.Ms,b6G];_.d("web_watch_get_updated_metadata_response_processing")&&Sx.push(_.I3r);_.d("web_continuation_response_processing")&&Sx.push(_.u0);var Rsc=new _.Dr("RESPONSE_RECEIVED_COMMANDS"),Jei=new _.Dr("RESPONSE_RECEIVED_COMMANDS");var O6c="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),GH4=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],x1d=["GET_UNSEEN_NOTIFICATION_COUNT"];var rS=function(){var E=_.l6.apply(this,arguments)||this;E._noAccessors=!0;E.serviceEndpointHandlers=[];return E};
_.L(rS,_.l6);rS.prototype.created=function(){var E=this;this.endpointHandlerActionMap={"yt-service-request":function(B,I,T,e){var c;return LHJ(E.hostElement,B,I,T,e,E.serviceEndpointHandlers,(c=E.onEntitiesUpdated)==null?void 0:c.bind(E))}}};
rS.prototype.attached=function(){_.X4(_.WC.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
rS.prototype.detached=function(){_.r9(_.WC.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
rS=_.k([_.cl()],rS);_.l9t=[rS.prototype];var c$V,ik6=function(){return c$V!==void 0?c$V:c$V=document.createElement("template")};
document.head.appendChild(ik6().content);var psr;var Y0N=document.head,a9r=Y0N.appendChild,vZZ;if(psr===void 0){var y$h=document.createElement("template");_.G(y$h,"\x3c!--css-build:shady--\x3e");y$h.content.insertBefore(ik6().content.cloneNode(!0),y$h.content.firstChild);psr=y$h}vZZ=psr;a9r.call(Y0N,vZZ.content);var C8U,wsz=function(){return C8U!==void 0?C8U:C8U=document.createElement("template")};
document.head.appendChild(wsz().content);var ZkU;var P8Z=document.head,zyX=P8Z.appendChild,mQR;if(ZkU===void 0){var Qil=document.createElement("template");_.G(Qil,"\x3c!--css-build:shady--\x3e");Qil.content.insertBefore(wsz().content.cloneNode(!0),Qil.content.firstChild);ZkU=Qil}mQR=ZkU;zyX.call(P8Z,mQR.content);var dQ6;_.QH("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.QH("sharingRendererButtons","buttonRenderer","ytd-button-renderer");dQ6=_.d("web_button_rework")&&_.gU("BUTTON_REWORK")||_.d("web_button_rework_with_live");_.bF=function(){var E=_.r.apply(this,arguments)||this;E.isPressed=!1;E.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return E};
_.L(_.bF,_.r);_.l=_.bF.prototype;_.l.created=function(){this.showTooltips=!0};
_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.onHintIdChanged=function(){var E=this,B,I,T=(B=this.ytButtonBehavior.data)==null?void 0:(I=B.hint)==null?void 0:I.hintRenderer;if(T&&T.hintId){B=_.Ta(this.hostElement,"yt-get-opened-popups-action");B=(B&&B.length===1?B[0]:[]).length>0;var e=null;T.hintId!=="sponsor-pre-purchase"||B?T.hintId.startsWith("sponsor-post-purchase")&&!B?e=$XX("membership-manage"):T.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!B&&(e=$XX("membership-freebie-join")):e=$XX("membership-join");e&&_.Ll.addLowPriorityJob(function(){for(var c=
_.p(e),Y=c.next();!Y.done;Y=c.next())E.ytComponentBehavior.resolveCommand(Y.value)})}};
_.l.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.l.onYtNavigate=function(E){var B=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(E.detail.endpoint);B&&(E.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(B))};
_.l.onYtServiceRequestSent=function(E,B){this.handleServiceRequestActions(B);_.$O(this.hostElement,"yt-service-request-sent-button-renderer")};
_.l.onServiceRequestCompleted=function(E,B){this.handleServiceRequestActions(B);_.$O(this.hostElement,"yt-service-request-completed-button-renderer")};
_.l.updateButton=function(E){var B;if(E=(B=_.h(E,ETh))==null?void 0:B.updatedButton)this.ytButtonBehavior.data=_.h(E,_.NT)};
_.l.handleUpdateButtonAction=function(E){var B=this.ytButtonBehavior.data;B.targetId&&E.updateButtonAction.targetId&&B.targetId===E.updateButtonAction.targetId&&this.updateButton(E)};
_.l.handleServiceRequestActions=function(E){if(E=E.actions)for(var B=0;B<E.length;B++)this.updateButton(E[B])};
_.Up.Object.defineProperties(_.bF,{template:{configurable:!0,enumerable:!0,get:function(){if(eyh===void 0){var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);eyh=E}E=eyh;return E}}});
_.bF.prototype.onServiceRequestCompleted=_.bF.prototype.onServiceRequestCompleted;_.bF.prototype.onYtServiceRequestSent=_.bF.prototype.onYtServiceRequestSent;_.bF.prototype.onYtNavigate=_.bF.prototype.onYtNavigate;_.bF.prototype.onPressedStateChanged=_.bF.prototype.onPressedStateChanged;_.bF.prototype.onHintIdChanged=_.bF.prototype.onHintIdChanged;_.k([_.X(),_.t("design:type",Object)],_.bF.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],_.bF.prototype,"isPressed",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],_.bF.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.njX.YtButtonBehavior),_.t("design:type",Object)],_.bF.prototype,"ytButtonBehavior",void 0);_.k([_.g(_.X_),_.t("design:type",Object)],_.bF.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],_.bF.prototype,"ytComponentBehavior",void 0);
_.k([_.g(e1.YtRenderButtonBehavior),_.t("design:type",Object)],_.bF.prototype,"ytRenderButtonBehavior",void 0);_.k([_.EM("data.hint.hintRenderer"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],_.bF.prototype,"onHintIdChanged",null);_.k([_.EM("isPressed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],_.bF.prototype,"onPressedStateChanged",null);
_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],_.bF.prototype,"onYtNavigate",null);_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],_.bF.prototype,"onYtServiceRequestSent",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],_.bF.prototype,"onServiceRequestCompleted",null);_.bF=_.k([_.b({is:"ytd-button-renderer",disableElementRegistration:dQ6})],_.bF);var ov=function(){var E=_.r.apply(this,arguments)||this;E.modern=_.d("web_button_rework_with_live");E.buttonOverrides={style:"overlay",type:"filled"};return E};
_.L(ov,_.r);_.l=ov.prototype;_.l.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"}}}}};
_.l.ready=function(){var E=document.querySelector("yt-live-chat-app");E&&E.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.l.dataChanged=function(){if(this.data&&this.data.sticker){var E=_.Aa(this.data.sticker.thumbnails,this.stickerWidth);E||_.j9B(E).thenCatch(function(){_.OG(new _.P7("Failed to load Super Sticker with url",E))})}};
_.l.computeAuthorPhotoSize=function(E){return(E==null?0:E.isV2Style)?32:40};
_.l.computeIsV2Style=function(E){return(E==null?0:E.isV2Style)?!0:!1};
_.l.onStickerLoaded=function(E){var B,I,T;(B=_.XN(E))==null||(I=B.parentNode)==null||(T=I.classList)==null||T.add("sticker-loaded")};
_.l.computeNoveltyImageWidth=function(E){var B,I;if(E==null?0:(B=E.headerOverlayImage)==null?0:(I=B.thumbnails)==null?0:I.length){B=E.headerOverlayImage.thumbnails[0];var T,e;if((T=E.pdgPurchasedNoveltyLoggingDirectives)==null?0:(e=T.loggingDirectives)==null?0:e.trackingParams){var c,Y;k_D((c=E.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Y=c.loggingDirectives)==null?void 0:Y.trackingParams)}return B.width||0}return 0};
_.l.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.l.updateStickerStyles=function(){var E=this.data;E&&(E={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(E.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(E.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(E.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(E.authorNameTextColor)},
_.Dk(this.hostElement,E))};
_.l.onBuyButtonClick=function(){var E,B=_.h((E=this.data)==null?void 0:E.buyButton,_.NT);B&&!cXB(B.command)&&this.ytRendererBehavior.logExplicitClick(B)};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.Up.Object.defineProperties(ov.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 E;return((E=this.data)==null?0:E.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
ov.prototype.updateStickerStyles=ov.prototype.updateStickerStyles;ov.prototype.isDeletedChanged=ov.prototype.isDeletedChanged;ov.prototype.onStickerLoaded=ov.prototype.onStickerLoaded;ov.prototype.dataChanged=ov.prototype.dataChanged;_.k([_.g(X5u.YtPdgLiveChatItemBehavior),_.t("design:type",Object)],ov.prototype,"ytPdgLiveChatItemBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],ov.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],ov.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ov.prototype,"data",void 0);
_.k([_.X({computed:"computeAuthorPhotoSize(data)"}),_.t("design:type",Number)],ov.prototype,"authorPhotoSize",void 0);_.k([_.X(),_.t("design:type",Boolean)],ov.prototype,"isDeleted",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],ov.prototype,"dashboardMoneyFeed",void 0);_.k([_.X({computed:"computeNoveltyImageWidth(data)"}),_.t("design:type",Number)],ov.prototype,"noveltyWidth",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ov.prototype,"modern",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.t("design:type",Boolean)],ov.prototype,"isV2Style",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ov.prototype,"dataChanged",null);_.k([_.RN("yt-img-shadow-loaded"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],ov.prototype,"onStickerLoaded",null);
_.k([_.S("data"),_.t("design:type",Number),_.t("design:paramtypes",[])],ov.prototype,"stickerWidth",null);_.k([_.S("data"),_.t("design:type",Number),_.t("design:paramtypes",[])],ov.prototype,"stickerHeight",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ov.prototype,"hasHeartButton",null);_.k([_.S("data","dashboardMoneyFeed"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ov.prototype,"hideLowerBumper",null);
_.k([_.EM("isDeleted"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ov.prototype,"isDeletedChanged",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ov.prototype,"updateStickerStyles",null);ov=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],ov);
_.A(ov,"yt-live-chat-paid-sticker-renderer",function(){if(TxV===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;I9l===void 0&&(I9l=document.createElement("template"));var T=I9l;I.call(B,T.content.cloneNode(!0),E.content.firstChild);TxV=E}E=TxV;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var hyz;var sir;var uc$,L8l=function(){return uc$!==void 0?uc$:uc$=document.createElement("template")};
document.head.appendChild(L8l().content);var xQZ,G_r=function(){return xQZ!==void 0?xQZ:xQZ=document.createElement("template")};
document.head.appendChild(G_r().content);var OkN;var nZu,MXR=function(){return nZu!==void 0?nZu:nZu=document.createElement("template")};
document.head.appendChild(MXR().content);var Hk$;var NxD=document.head,gZr=NxD.appendChild,S0Z;if(Hk$===void 0){var J$N=document.createElement("template");_.G(J$N,"\x3c!--css-build:shady--\x3e");J$N.content.insertBefore(MXR().content.cloneNode(!0),J$N.content.firstChild);Hk$=J$N}S0Z=Hk$;gZr.call(NxD,S0Z.content);var W8r=document.head,Xst=W8r.appendChild,r$D;if(OkN===void 0){var A4=document.createElement("template");_.G(A4,"\x3c!--css-build:shady--\x3e");A4.content.insertBefore(G_r().content.cloneNode(!0),A4.content.firstChild);A4.content.insertBefore(L8l().content.cloneNode(!0),A4.content.firstChild);OkN=A4}r$D=OkN;Xst.call(W8r,r$D.content);var j1=function(){var E=_.l6.apply(this,arguments)||this;E.focusedIndex=0;E.verticalOffset=0;E.verticalAlign="top";E.dynamicAlign=!0;return E};
_.L(j1,_.l6);j1.prototype.emojiUrl=function(E){E=_.Lj(this.emojiManager,E);if(!E)return"";var B;E=(B=E.image)==null?void 0:B.thumbnails;return _.Aa(E,24)||""};
var bkz=function(E){var B;E.emojiVariants&&(B=E.data)!=null&&B.target&&_.AJ(E,function(){E.set("verticalOffset",-1*E.hostElement.clientHeight);var I=_.n(E.hostElement).querySelector("img");I&&I.focus()})};
_.l=j1.prototype;_.l.onKeyboardEnter=function(){};
_.l.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.l.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.l.onKeyDown=function(E){switch(E.keyCode){case 13:this.onKeyboardEnter();E.preventDefault();break;case 40:this.changeFocus(1);E.preventDefault();break;case 38:this.changeFocus(-1);E.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.l.onYtEmojiSelect=function(E){var B=this,I,T,e,c,Y,v,y,Z;return _.a(function(P){if(P.nextAddress==1)return T=(I=B.data)==null?void 0:I.emoji,Y=((e=T)==null?void 0:e.stickyPrefId)||((c=T)==null?void 0:c.emojiId),y=(v=E.detail)==null?void 0:v.emojiId,Y&&y&&Y!==y?_.C(P,(Z=B.emojiManager)==null?void 0:khR(Z,T,y),2):P.return();_.I2(B.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[T,y]);_.ER(P)})};
_.l.changeFocus=function(E){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+E+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(E=_.n(this.hostElement).querySelector("#variants"))&&E.children[this.focusedIndex].focus())};
_.Up.Object.defineProperties(j1.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
j1.prototype.onYtEmojiSelect=j1.prototype.onYtEmojiSelect;j1.prototype.onKeyDown=j1.prototype.onKeyDown;j1.prototype.onEmojiVariantsChanged=j1.prototype.onEmojiVariantsChanged;j1.prototype.onVerticalOffsetOrPositionTargetChanged=j1.prototype.onVerticalOffsetOrPositionTargetChanged;_.k([_.g(_.UI),_.t("design:type",Object)],j1.prototype,"ironOverlayBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],j1.prototype,"data",void 0);_.k([_.X(),_.t("design:type",_.uF)],j1.prototype,"emojiManager",void 0);
_.k([_.X(),_.t("design:type",Object)],j1.prototype,"emojiVariants",void 0);_.k([_.X(),_.t("design:type",Object)],j1.prototype,"focusedIndex",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],j1.prototype,"positionTarget",null);_.k([_.X({reflectToAttribute:!0}),_.S("verticalOffset","data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],j1.prototype,"isPositioned",null);_.k([_.X(),_.t("design:type",Object)],j1.prototype,"verticalOffset",void 0);
_.k([_.X(),_.t("design:type",Object)],j1.prototype,"verticalAlign",void 0);_.k([_.X(),_.t("design:type",Object)],j1.prototype,"dynamicAlign",void 0);_.k([_.EM("verticalOffset","positionTarget"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],j1.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.k([_.EM("emojiVariants"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],j1.prototype,"onEmojiVariantsChanged",null);
_.k([_.RN("keydown"),_.t("design:type",Function),_.t("design:paramtypes",[KeyboardEvent]),_.t("design:returntype")],j1.prototype,"onKeyDown",null);_.k([_.RN("yt-emoji-select"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype",Promise)],j1.prototype,"onYtEmojiSelect",null);j1=_.k([_.cl()],j1);var oZu=[j1.prototype];var A$t;var jiN;var UQt=/medium-light|medium-dark|light|medium|dark/,k_z=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,tXN=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),U6=function(){var E=_.r.apply(this,arguments)||this;E.userSelection={left:null,right:null};E.scrollAction="lock";E.isEmojiDraftInProgress=!1;return E};
_.L(U6,_.r);_.l=U6.prototype;_.l.onClick=function(E){E=_.XN(E);E instanceof HTMLImageElement&&this.selectOrUpdateEmoji(E)};
_.l.selectOrUpdateEmoji=function(E){var B=E.getAttribute("selection");B&&(B==="default"?_.$O(this.hostElement,"yt-emoji-select",_.Lj(this.emojiManager,E.id)):B==="left"?this.userSelection=Object.assign({},this.userSelection,{left:E.src}):B==="right"?this.userSelection=Object.assign({},this.userSelection,{right:E.src}):B==="user"&&this.userSelection.left&&this.userSelection.right&&_.$O(this.hostElement,"yt-emoji-select",_.Lj(this.emojiManager,E.id)))};
_.l.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.l.onMultiSelectorThumbnailRowChanged=function(){var E,B,I;((E=this.data)==null?0:(B=E.emoji)==null?0:(I=B.multiSelectorThumbnailRow)==null?0:I.length)&&this.openSelector()};
_.l.getThumbnailFromEmojiRow=function(E){var B,I;return(E==null?void 0:(B=E.thumbnails)==null?void 0:(I=B[0])==null?void 0:I.url)||""};
_.l.getEmojiAltTextForPartialSelector=function(E){var B;return((B=this.getThumbnailFromEmojiRow(E).match(k_z))==null?void 0:B[0])||""};
_.l.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.l.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.l.getRowSelection=function(E){return["left","right"][E]};
_.l.getIdFromComposedEmoji=function(E){return(E==null?void 0:E.emojiId)||""};
_.l.getEmojiFromPartialSelections=function(E,B){if(!E&&!B)return null;var I,T,e=(I=this.data)==null?void 0:(T=I.emoji)==null?void 0:T.variantIds;if(!e||!e.length)return null;var c;E=(c=E.match(UQt))==null?void 0:c[0];var Y;B=(Y=B.match(UQt))==null?void 0:Y[0];if(!E||!B)return null;var v=tXN.get(E);Y=tXN.get(B);if(v===Y){Y=Array.from(tXN.values()).filter(function(Z){return Z!==v}).join("|");
var y=new RegExp("^((?!("+Y+")).)*"+v+"$")}else y=new RegExp(v+".*"+Y);return(e=e.find(function(Z){return y.test(Z)}))&&_.Lj(this.emojiManager,e)||null};
_.l.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var E,B=this.ytEmojiSelectorBehavior.emojiUrl(((E=this.data.emoji)==null?void 0:E.emojiId)||"");_.n(this.hostElement).querySelector('[selection="user"]').src.includes(B)||(this.isEmojiDraftInProgress=!0)}};
_.l.onDomChange=function(){bkz(this.ytEmojiSelectorBehavior)};
_.l.getFocusableElements=function(){return _.n(this.hostElement).querySelectorAll("img").filter(function(E){return E.getAttribute("role")==="option"})};
_.l.changeFocus=function(E){var B=this.getFocusableElements();B!=null&&B.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+E+B.length)%B.length,this.ytEmojiSelectorBehavior.focusedIndex<B.length&&(E=B[this.ytEmojiSelectorBehavior.focusedIndex])&&E.focus())};
_.l.onKeyboardEnter=function(){var E=this.getFocusableElements();E!=null&&E.length&&(E=E[this.ytEmojiSelectorBehavior.focusedIndex])&&E instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(E),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Up.Object.defineProperties(U6.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var E=this,B,I,T;return this.emojiManager&&((B=this.data)==null?0:(I=B.emoji)==null?0:(T=I.variantIds)==null?0:T.length)?this.data.emoji.variantIds.map(function(e){return!!e&&_.Lj(E.emojiManager,e)}).filter(function(e){return!!e}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var E,B=(E=this.userSelection)==null?void 0:E.left,I;E=(I=this.userSelection)==null?void 0:I.right;return B&&E?this.getEmojiFromPartialSelections(B,E):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.composedEmojiSelection)==null?0:E.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var B;E=(B=this.userSelection)==null?void 0:B.left;var I;B=(I=this.userSelection)==null?void 0:I.right;if(!E&&!B){var T;return this.ytEmojiSelectorBehavior.emojiUrl(((T=this.data.emoji)==null?void 0:T.emojiId)||"")}return E&&!B?E:!E&&B?B:""}}});
U6.prototype.onMultiSelectorThumbnailRowChanged=U6.prototype.onMultiSelectorThumbnailRowChanged;U6.prototype.onClick=U6.prototype.onClick;_.k([_.g(_.UI),_.t("design:type",Object)],U6.prototype,"ironOverlayBehavior",void 0);_.k([_.g(oZu),_.t("design:type",Object)],U6.prototype,"ytEmojiSelectorBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],U6.prototype,"data",void 0);_.k([_.X(),_.t("design:type",_.uF)],U6.prototype,"emojiManager",void 0);
_.k([_.X(),_.t("design:type",Object)],U6.prototype,"userSelection",void 0);_.k([_.X(),_.t("design:type",Object)],U6.prototype,"scrollAction",void 0);_.k([_.X(),_.t("design:type",Object)],U6.prototype,"isEmojiDraftInProgress",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],U6.prototype,"emojiVariants",null);_.k([_.S("data","userSelection"),_.t("design:type",Object),_.t("design:paramtypes",[])],U6.prototype,"composedEmojiSelection",null);
_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[MouseEvent]),_.t("design:returntype")],U6.prototype,"onClick",null);_.k([_.EM("data.emoji.multiSelectorThumbnailRow"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],U6.prototype,"onMultiSelectorThumbnailRowChanged",null);_.k([_.S("data","userSelection","composedEmojiSelection"),_.t("design:type",String),_.t("design:paramtypes",[])],U6.prototype,"draftEmojiUrl",null);
U6=_.k([_.QE({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],U6);
_.A(U6,"yt-emoji-multi-person-selector",function(){if(jiN===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;A$t===void 0&&(A$t=document.createElement("template"));var T=A$t;I.call(B,T.content.cloneNode(!0),E.content.firstChild);jiN=E}E=jiN;return E},{mode:2});var f9z;var VXl;var kx=function(){var E=_.r.apply(this,arguments)||this;E.tooltip_=null;return E};
_.L(kx,_.r);_.l=kx.prototype;_.l.dataChanged_=function(){var E;if((E=this.data)==null?0:E.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.n(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.FN)(this.tooltip_).textContent=this.data.tooltip};
_.l.computeTargetId=function(){var E;return((E=this.data)==null?void 0:E.targetId)||""};
_.l.computeId_=function(E){return E};
_.l.computeIcon_=function(E){return _.R3(E)};
_.l.onTap_=function(){this.active=!this.active;_.$O(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.l.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("active-changed",this.active))};
_.Up.Object.defineProperties(kx.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var E,B;if((E=this.data)==null?0:(B=E.icon)==null?0:B.iconType)return this.data.icon.iconType==="SUPER_STICKER";var I,T;return((I=this.data)==null?void 0:(T=I.icon)==null?void 0:T.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
kx.prototype.activeChangedForBinding=kx.prototype.activeChangedForBinding;kx.prototype.dataChanged_=kx.prototype.dataChanged_;_.k([_.g(_.xC.YtLiveChatTooltipTargetingBehavior),_.t("design:type",Object)],kx.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],kx.prototype,"data",void 0);_.k([_.X({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.t("design:type",String)],kx.prototype,"id",void 0);
_.k([_.X({computed:"computeTargetId(data.targetId)"}),_.t("design:type",String)],kx.prototype,"targetId",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],kx.prototype,"active",void 0);_.k([_.X({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.t("design:type",String)],kx.prototype,"icon",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],kx.prototype,"dataChanged_",null);
_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],kx.prototype,"iconFilled",null);_.k([_.EM("active"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],kx.prototype,"activeChangedForBinding",null);kx=_.k([_.QE({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],kx);
_.A(kx,"yt-emoji-picker-category-button-renderer",function(){if(VXl===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;f9z===void 0&&(f9z=document.createElement("template"));var T=f9z;I.call(B,T.content.cloneNode(!0),E.content.firstChild);VXl=E}E=VXl;return E},{mode:2});var q0U;var F8N;var t4=function(){var E=_.r.apply(this,arguments)||this;E.ariaLabel=null;E.ariaActivedescendant=null;E.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};E.JSC$11903_ignoreNextFocus_=!1;E.longPressTimeoutId=-1;return E};
_.L(t4,_.r);_.l=t4.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.l.emojiChanged_=function(){this.changeFocus_(0,!1);for(var E=_.lu(),B=0;B<this.emoji.length;B++){var I={veType:88013,elementIndex:B},T=this.emoji[B];T.isCustomEmoji&&(T=document.querySelector(("#"+T.emojiId).replace("/","\\/")))&&(I=_.eO(E,I))&&(T.visualElement=I)}};
_.l.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.l.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.l.emojiSkinToneChanged_=function(E){this.skinTone=E};
_.l.dataChanged=function(){this.data&&this.data.emojiData&&o_u(this.emojiManager,this.data.emojiData)};
_.l.emojiUrl=function(E){E=this.getEmoji(E);if(!E)return"";var B;E=(B=E.image)==null?void 0:B.thumbnails;return _.Aa(E,24)||""};
_.l.emojiAlt=function(E){var B=this.get("image.accessibility.accessibilityData.label",E);return B?B:E.isCustomEmoji?E.shortcuts[0]:E.emojiId};
_.l.emojiAriaLabel=function(E){return E.shortcuts?E.shortcuts[0]:""};
_.l.emojiAriaSelected=function(E,B,I){return E&&I==B?"true":"false"};
_.l.getEmoji=function(E){if(this.emojiManager)return this.shouldUseStickyPreferences?juR(this.emojiManager,E):xx(this.emojiManager,E)};
_.l.computeId_=function(E){return E.categoryId||""};
_.l.computeEmoji=function(E){var B=this;return this.emojiManager?E.emojiIds?E.emojiIds.map(function(I){return I?_.Lj(B.emojiManager,I):null}).filter(U1G):E.emojiData?E.emojiData.map(function(I){var T=!!I.emojiId&&_.Lj(B.emojiManager,I.emojiId);
return T?Object.assign({},T,I):null}).filter(U1G):[]:[]};
_.l.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.l.computeAriaLabel_=function(E){return _.U3(E)};
_.l.computeAriaActivedescendant_=function(E,B){return E&&E[B]?E[B].emojiId||"":""};
_.l.handleLongPressEmojiWithVariants=function(E,B){this.changeFocusToEmoji(E.emojiId,!1);this.openVariantSelector(E,B)};
_.l.onMouseDown=function(E){var B=this;this.hostElement!==document.activeElement&&(this.JSC$11903_ignoreNextFocus_=!0);if(E.button===0){var I=_.XN(E);if(I instanceof HTMLImageElement){var T=_.n(this.hostElement).querySelector("#repeat").itemForElement(I);this.emojiContainsVariants(T)&&(this.longPressTimeoutId=setTimeout(function(){B.handleLongPressEmojiWithVariants(T,I)},500))}}};
_.l.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.l.onFocus=function(){this.JSC$11903_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11903_ignoreNextFocus_=!1};
_.l.onBlur_=function(){this.showFocus=!1};
_.l.emojiContainsVariants=function(E){return!!(E&&E.variantIds&&E.variantIds.length)};
_.l.onClick=function(E){clearTimeout(this.longPressTimeoutId);E=_.XN(E);if(E instanceof HTMLImageElement){var B=E.id;this.changeFocusToEmoji(B,!1);var I=this.getEmoji(B),T;if(T=this.shouldUseStickyPreferences&&this.emojiContainsVariants(I)){var e;T=!((e=this.emojiManager.emojiMap[B])!=null&&e.stickyPrefId)}T?(e=_.n(this.hostElement).querySelector("#repeat").itemForElement(E),this.openVariantSelector(e,E)):_.$O(this.hostElement,"yt-emoji-select",I)}};
_.l.isActiveEmojiWithVariants=function(E,B){return E&&B?B.stickyPrefId?E===B.stickyPrefId:E===B.emojiId:!1};
_.l.onCloseEmojiVariantSelector=function(E){this.activeEmojiWithVariantsId===E&&(this.activeEmojiWithVariantsId="")};
_.l.onMouseOver_=function(E){E=_.XN(E);E instanceof HTMLImageElement&&_.$O(this.hostElement,"yt-emoji-hover",_.Lj(this.emojiManager,E.id))};
_.l.changeFocus_=function(E,B){this.focusedIndex=(this.focusedIndex+E+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(E=this.emoji[this.focusedIndex],B&&(this.showFocus=!0,_.n(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.$O(this.hostElement,"yt-emoji-hover",E)))};
_.l.changeFocusToEmoji=function(E,B){if(E){var I=this.emoji.findIndex(function(T){return T.emojiId===E});
I!==-1&&this.changeFocus_(I-this.focusedIndex,B)}};
_.l.onKeyDown_=function(E){switch(E.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var B=this.emoji[this.focusedIndex];if(B&&B.emojiId){if(this.emojiContainsVariants(B)){var I=_.n(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(B,I)}else _.$O(this.hostElement,"yt-emoji-select",xx(this.emojiManager,B.emojiId)),this.hostElement.focus();E.preventDefault()}}break;case 40:this.changeFocus_(1,!0);E.preventDefault();break;case 38:this.changeFocus_(-1,!0),E.preventDefault()}};
_.l.onEmojiStickyPreferenceChanged=function(E,B){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&E.emojiId&&E.variantIds&&E.variantIds.includes(B)&&this.activeEmojiWithVariantsId!==B&&this.setStickyEmojiPreference(E.emojiId,B)};
_.l.openVariantSelector=function(E,B){this.activeEmojiWithVariantsId=E.stickyPrefId||E.emojiId||"";_.$O(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:E,target:B})};
_.l.setStickyEmojiPreference=function(E,B){if(this.data){var I=this.emoji.findIndex(function(e){return e.emojiId===E});
if(I!==-1){var T=this.emoji[I];T.stickyPrefId=B;this.set("emoji."+I,Object.assign({},T));this.activeEmojiWithVariantsId=B}}};
t4.prototype.onKeyDown_=t4.prototype.onKeyDown_;t4.prototype.onMouseOver_=t4.prototype.onMouseOver_;t4.prototype.onClick=t4.prototype.onClick;t4.prototype.onBlur_=t4.prototype.onBlur_;t4.prototype.onFocus=t4.prototype.onFocus;t4.prototype.onMouseUp=t4.prototype.onMouseUp;t4.prototype.onMouseDown=t4.prototype.onMouseDown;t4.prototype.dataChanged=t4.prototype.dataChanged;t4.prototype.disableIncrementalLoadingChanged_=t4.prototype.disableIncrementalLoadingChanged_;t4.prototype.emojiManagerChanged_=t4.prototype.emojiManagerChanged_;
t4.prototype.emojiChanged_=t4.prototype.emojiChanged_;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],t4.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],t4.prototype,"data",void 0);_.k([_.X({computed:"computeId_(data)"}),_.t("design:type",String)],t4.prototype,"id",void 0);_.k([_.X({computed:"computeEmoji(data)"}),_.t("design:type",Array)],t4.prototype,"emoji",void 0);_.k([_.X(),_.t("design:type",Number)],t4.prototype,"skinTone",void 0);
_.k([_.X(),_.t("design:type",_.uF)],t4.prototype,"emojiManager",void 0);_.k([_.X(),_.t("design:type",Boolean)],t4.prototype,"disableIncrementalLoading",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],t4.prototype,"focusedIndex",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],t4.prototype,"showFocus",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.t("design:type",Object)],t4.prototype,"ariaLabel",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.t("design:type",Object)],t4.prototype,"ariaActivedescendant",void 0);_.k([_.X({value:60}),_.t("design:type",Number)],t4.prototype,"domRepeatTargetFramerate",void 0);_.k([_.X({value:1}),_.t("design:type",Number)],t4.prototype,"domRepeatInitialCount",void 0);_.k([_.X({value:""}),_.t("design:type",String)],t4.prototype,"activeEmojiWithVariantsId",void 0);
_.k([_.X({value:!1}),_.t("design:type",Boolean)],t4.prototype,"shouldUseStickyPreferences",void 0);_.k([_.EM("emoji"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],t4.prototype,"emojiChanged_",null);_.k([_.EM("emojiManager"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],t4.prototype,"emojiManagerChanged_",null);
_.k([_.EM("disableIncrementalLoading"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],t4.prototype,"disableIncrementalLoadingChanged_",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],t4.prototype,"dataChanged",null);_.k([_.RN("mousedown"),_.t("design:type",Function),_.t("design:paramtypes",[Object]),_.t("design:returntype")],t4.prototype,"onMouseDown",null);
_.k([_.RN("mouseup"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],t4.prototype,"onMouseUp",null);_.k([_.RN("focus"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],t4.prototype,"onFocus",null);_.k([_.RN("blur"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],t4.prototype,"onBlur_",null);
_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],t4.prototype,"onClick",null);_.k([_.RN("mouseover"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],t4.prototype,"onMouseOver_",null);_.k([_.RN("keydown"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],t4.prototype,"onKeyDown_",null);
t4=_.k([_.QE({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],t4);
_.A(t4,"yt-emoji-picker-category-renderer",function(){if(F8N===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;q0U===void 0&&(q0U=document.createElement("template"));var T=q0U;I.call(B,T.content.cloneNode(!0),E.content.firstChild);F8N=E}E=F8N;return E},{mode:2});var DQZ;var K8Z;var Ryz;var EHu;var fj=function(){var E=_.r.apply(this,arguments)||this;E.ariaLabel=null;E.ariaActivedescendant=null;E.getFormattedStringRawText=_.U3;E.JSC$11909_ignoreNextFocus_=!1;return E};
_.L(fj,_.r);_.l=fj.prototype;_.l.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")};
_.l.emojiUrl=function(E){var B,I;E=(B=xx(this.emojiManager,E,!0))==null?void 0:(I=B.image)==null?void 0:I.thumbnails;return _.Aa(E,24)||""};
_.l.emojiAlt=function(E){var B=this.get("image.accessibility.accessibilityData.label",E);return B?B:E.isCustomEmoji?E.shortcuts[0]:E.emojiId};
_.l.emojiId=function(E){return"emoji"+E};
_.l.computeId_=function(E){return E.categoryId||""};
_.l.computeAriaActivedescendant_=function(E){return this.emoji&&E<this.emoji.length?this.emojiId(E):""};
_.l.emojiChanged_=function(){this.changeFocus_(0,!1);for(var E=_.lu(),B=0;B<this.emoji.length;B++){var I={veType:88013,elementIndex:B},T=this.emoji[B];T.isCustomEmoji&&(T=document.querySelector(("#"+T.emojiId).replace("/","\\/")))&&(I=_.eO(E,I))&&(T.visualElement=I)}};
_.l.computeEmoji_=function(E){var B=this;return this.emojiManager?E.emojiIds.map(function(I){return _.Lj(B.emojiManager,I,!0)}).filter(kHJ):[]};
_.l.titleOffsetChanged_=function(){var E=this.hostElement.getBoundingClientRect(),B=_.n(this.hostElement).querySelector("#title").getBoundingClientRect();E=Math.max(0,Math.min(this.titleOffset,E.height-B.height));_.n(this.hostElement).querySelector("#title").style.top=E+"px"};
_.l.onEmojiMouseOver_=function(E){_.$O(this.hostElement,"yt-emoji-hover",E.model.item)};
_.l.onEmojiTap_=function(E){this.data.command&&(E=RyD(_.Q().resolve(_.Fx(Ss)),this.data.command,E),_.$O(this.hostElement,"yt-navigate",E))};
_.l.emojiAriaLabel=function(E){return E.shortcuts[0]};
_.l.emojiAriaSelected=function(E,B,I){return E&&I==B?"true":"false"};
_.l.changeFocus_=function(E,B){var I=this.emoji.length;this.focusedIndex=(this.focusedIndex+E+I)%I;E=this.emoji[this.focusedIndex];if(B){var T;(T=_.n(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||T.scrollIntoView(!1);_.$O(this.hostElement,"yt-emoji-hover",E)}};
_.l.onMouseDown_=function(){this.JSC$11909_ignoreNextFocus_=!0};
_.l.onFocus_=function(){this.JSC$11909_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11909_ignoreNextFocus_=!1};
_.l.onBlur_=function(){this.showFocus=!1};
_.l.onKeyDown_=function(E){switch(E.keyCode){case 13:this.onEmojiTap_(E);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);E.preventDefault();break;case 38:this.changeFocus_(-1,!0),E.preventDefault()}};
fj.prototype.onKeyDown_=fj.prototype.onKeyDown_;fj.prototype.onBlur_=fj.prototype.onBlur_;fj.prototype.onFocus_=fj.prototype.onFocus_;fj.prototype.onMouseDown_=fj.prototype.onMouseDown_;fj.prototype.onEmojiTap_=fj.prototype.onEmojiTap_;fj.prototype.titleOffsetChanged_=fj.prototype.titleOffsetChanged_;fj.prototype.emojiChanged_=fj.prototype.emojiChanged_;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],fj.prototype,"ytComponentBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],fj.prototype,"data",void 0);_.k([_.X({computed:"computeId_(data)"}),_.t("design:type",String)],fj.prototype,"id",void 0);_.k([_.X({computed:"computeEmoji_(data)"}),_.t("design:type",Array)],fj.prototype,"emoji",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],fj.prototype,"titleOffset",void 0);_.k([_.X({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.t("design:type",Object)],fj.prototype,"ariaLabel",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.t("design:type",Object)],fj.prototype,"ariaActivedescendant",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],fj.prototype,"showFocus",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],fj.prototype,"focusedIndex",void 0);_.k([_.X(),_.t("design:type",_.uF)],fj.prototype,"emojiManager",void 0);
_.k([_.EM("emoji"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fj.prototype,"emojiChanged_",null);_.k([_.EM("titleOffset"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fj.prototype,"titleOffsetChanged_",null);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],fj.prototype,"onEmojiTap_",null);
_.k([_.RN("mousedown"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fj.prototype,"onMouseDown_",null);_.k([_.RN("focus"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fj.prototype,"onFocus_",null);_.k([_.RN("blur"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fj.prototype,"onBlur_",null);
_.k([_.RN("keydown"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],fj.prototype,"onKeyDown_",null);fj=_.k([_.QE({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],fj);
_.A(fj,"yt-emoji-picker-upsell-category-renderer",function(){if(EHu===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Ryz===void 0&&(Ryz=document.createElement("template"));var T=Ryz;I.call(B,T.content.cloneNode(!0),E.content.firstChild);EHu=E}E=EHu;return E},{mode:2});var BkZ;var $1$;var VJ=function(){var E=_.r.apply(this,arguments)||this;E.scrollAction="lock";E.verticalAlign="top";return E};
_.L(VJ,_.r);_.l=VJ.prototype;_.l.onClick=function(E){E=_.XN(E);E instanceof HTMLImageElement&&_.$O(this.hostElement,"yt-emoji-select",_.Lj(this.emojiManager,E.id))};
_.l.openSelector=function(){this.ironOverlayBehavior.open()};
_.l.onDomChange=function(){bkz(this.ytEmojiSelectorBehavior)};
_.l.computeIsFamilySelector=function(E){var B;return(E==null?void 0:(B=E.emoji)==null?void 0:B.emojiId)==="\ud83d\udc6a"};
_.l.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var E=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];E&&E.emojiId&&(_.$O(this.hostElement,"yt-emoji-select",_.Lj(this.emojiManager,E.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Up.Object.defineProperties(VJ.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var E=this,B,I,T;return this.emojiManager&&((B=this.data)==null?0:(I=B.emoji)==null?0:(T=I.variantIds)==null?0:T.length)?this.data.emoji.variantIds.map(function(e){return!!e&&_.Lj(E.emojiManager,e)}).filter(function(e){return!!e}):[]}}});
VJ.prototype.onClick=VJ.prototype.onClick;_.k([_.g(_.UI),_.t("design:type",Object)],VJ.prototype,"ironOverlayBehavior",void 0);_.k([_.g(oZu),_.t("design:type",Object)],VJ.prototype,"ytEmojiSelectorBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],VJ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",_.uF)],VJ.prototype,"emojiManager",void 0);_.k([_.X(),_.t("design:type",Object)],VJ.prototype,"scrollAction",void 0);_.k([_.X(),_.t("design:type",Object)],VJ.prototype,"verticalAlign",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.t("design:type",Boolean)],VJ.prototype,"isFamilySelector",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],VJ.prototype,"emojiVariants",null);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[MouseEvent]),_.t("design:returntype")],VJ.prototype,"onClick",null);VJ=_.k([_.QE({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],VJ);
_.A(VJ,"yt-emoji-variant-selector",function(){if($1$===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;BkZ===void 0&&(BkZ=document.createElement("template"));var T=BkZ;I.call(B,T.content.cloneNode(!0),E.content.firstChild);$1$=E}E=$1$;return E},{mode:2});var ISl=/:/g,TkZ=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],qk=function(){var E=_.r.apply(this,arguments)||this;E.emojiVariantSelector=null;E.emojiMultiPersonSelector=null;E.identity=_.JD;E.lastAnimationTime_=0;E.animationStart_=null;E.animationEnd_=null;return E};
_.L(qk,_.r);_.l=qk.prototype;
_.l.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}}};
_.l.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Gm)};
_.l.attached=function(){_.cf&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&AUl(this.emojiManager)};
_.l.dataChanged=function(){var E;if((E=this.data)==null?0:E.categories){E=this.emojiManager;var B=this.getCustomEmojiIds();E.pickerCustomEmojiIds=[].concat(_.ad(JUZ),_.ad(B))}};
_.l.getCustomEmojiIds=function(){var E,B=(E=this.data.categories)==null?void 0:E.find(function(c){var Y;return((Y=c.emojiPickerCategoryRenderer)==null?void 0:Y.categoryId)&&TkZ.includes(c.emojiPickerCategoryRenderer.categoryId)}),I;
E=(I=this.data.categories)==null?void 0:I.find(function(c){return c.emojiPickerUpsellCategoryRenderer});
var T,e;return[B==null?void 0:(T=B.emojiPickerCategoryRenderer)==null?void 0:T.emojiIds,E==null?void 0:(e=E.emojiPickerUpsellCategoryRenderer)==null?void 0:e.emojiIds].flat().filter(function(c){return!!c})};
_.l.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.l.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.l.updateCategoriesAndPlaceholderInternal=function(E,B){var I=this;E&&B&&(this.categories=E.categories||[],this.categoryButtons=E.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Gg(function(){I.updateButtons_()}))};
_.l.computeId_=function(E){return E.id||""};
_.l.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(E){return E.emojiPickerCategoryRenderer&&E.emojiPickerCategoryRenderer.emojiData}):!1};
_.l.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.l.onShowEmojiVariantSelector=function(E){var B=E.detail.emojiData;B.variantIds&&B.variantIds.length&&(B.multiSelectorThumbnailRow&&B.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:B,target:E.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:B,target:E.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.l.onIronOverlayClosed=function(E){var B=juR(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");B&&E.composedPath&&(E.composedPath().includes(_.n(this.hostElement).querySelector("#emoji-variant-selector"))||E.composedPath().includes(_.n(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.I2(this.hostElement,"yt-close-emoji-variant-selector",[B.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.l.onEmojiVariantSelectorMouseup=function(E){var B=E.target.firstChild;this.variantSelectorOpened&&B&&_.Gg(function(){B.noCancelOnOutsideClick=!1},100)};
_.l.onEmojiVariantSelectorMousedown=function(E){E=E.target.firstChild;this.variantSelectorOpened&&E&&(E.noCancelOnOutsideClick=!1)};
_.l.onSelectCategory_=function(E){var B=this.search!="";this.search="";for(var I=_.n(this.hostElement).querySelector("#categories").children,T=0;T<I.length;T++){var e=I[T];if(e.id==E.detail.categoryId){B?(_.n(this.hostElement).querySelector("#categories").scrollTop=e.offsetTop,this.updateButtons_()):(this.animationStart_=_.n(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=e.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.l.onEmojiHover_=function(E){this.placeholder=E.detail.shortcuts?E.detail.shortcuts[0]:""};
_.l.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.l.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.l.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.l.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.l.computeSearchCategory_=function(E){E=E.replace(ISl,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();E=E.split(" ");for(var B=[],I=this.emojiManager.emojis,T=0;T<I.length;T++){var e=I[T];if(e.searchTerms)for(var c=0;c<e.searchTerms.length;c++){for(var Y=e.searchTerms[c].toLocaleLowerCase(),v=!1,y=0;y<E.length;y++)if(Y.indexOf(E[y])!=-1){v=!0;break}if(v&&(!e.isCustomEmoji||!e.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(e.emojiId))){B.push(e.emojiId);
break}}}return{categoryId:-1,emojiIds:B}};
_.l.computeSearchEmptyMessage_=function(E,B){return E&&B&&B.emojiIds&&B.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.l.computeSearching_=function(E){return this.emojiManager&&E.replace(ISl,"").length>1};
_.l.computeSkinToneHidden=function(){var E;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((E=this.data)==null||!E.hideSkinTonePicker)};
_.l.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.l.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.l.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.l.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.l.selectSkinTone_=function(E){E=Number(E.target.getAttribute("tone"));this.set("emojiManager.skinTone",E);_.I2(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[E]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.l.skinToneChanged_=function(){_.n(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var E=_.n(this.hostElement).querySelector("#dropdown-content").children,B=0;B<E.length;B++)B===this.skinTone?E[B].setAttribute("selected",""):E[B].removeAttribute("selected")};
_.l.animateScroll_=function(E){this.lastAnimationTime_||(this.lastAnimationTime_=E);E-=this.lastAnimationTime_;E<200?(_.n(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*E/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.n(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.l.searchChanged_=function(){this.updateButtons_()};
_.l.updateButtons_=function(){var E=null;if(!this.search)for(var B=_.n(this.hostElement).querySelector("#categories").scrollTop,I=_.n(this.hostElement).querySelector("#categories").children,T=0;T<I.length;T++){var e=I[T];e.offsetTop<=B&&(E=e.id)}B=_.n(this.hostElement).querySelector("#category-buttons").children;for(I=0;I<B.length;I++)T=B[I],T.active=T.id===E};
qk.prototype.searchChanged_=qk.prototype.searchChanged_;qk.prototype.skinToneChanged_=qk.prototype.skinToneChanged_;qk.prototype.onEmojiHover_=qk.prototype.onEmojiHover_;qk.prototype.onSelectCategory_=qk.prototype.onSelectCategory_;qk.prototype.onShowEmojiVariantSelector=qk.prototype.onShowEmojiVariantSelector;qk.prototype.updateCategoriesAndPlaceholder_=qk.prototype.updateCategoriesAndPlaceholder_;qk.prototype.dataChanged=qk.prototype.dataChanged;
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],qk.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],qk.prototype,"data",void 0);_.k([_.X({value:function(){return[]}}),
_.t("design:type",Array)],qk.prototype,"categories",void 0);_.k([_.X({value:function(){return[]}}),
_.t("design:type",Array)],qk.prototype,"categoryButtons",void 0);_.k([_.X({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.t("design:type",Boolean)],qk.prototype,"disableScroll",void 0);_.k([_.X({computed:"computeId_(data)",reflectToAttribute:!0}),_.t("design:type",String)],qk.prototype,"id",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],qk.prototype,"selected",void 0);
_.k([_.X({value:!1}),_.t("design:type",Boolean)],qk.prototype,"disableIncrementalLoading",void 0);_.k([_.X(),_.t("design:type",String)],qk.prototype,"placeholder",void 0);_.k([_.X({value:""}),_.t("design:type",String)],qk.prototype,"search",void 0);_.k([_.X({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.t("design:type",Boolean)],qk.prototype,"searching",void 0);_.k([_.X({computed:"computeSearchCategory_(search)"}),_.t("design:type",Object)],qk.prototype,"searchCategory",void 0);
_.k([_.X({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.t("design:type",Object)],qk.prototype,"searchEmptyMessage",void 0);_.k([_.X({computed:"identity(emojiManager.skinTone)"}),_.t("design:type",Number)],qk.prototype,"skinTone",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],qk.prototype,"skinToneOpened",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],qk.prototype,"variantSelectorOpened",void 0);
_.k([_.X({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.t("design:type",Boolean)],qk.prototype,"skinToneHidden",void 0);_.k([_.X(),_.t("design:type",_.uF)],qk.prototype,"emojiManager",void 0);_.k([_.X(),_.t("design:type",Object)],qk.prototype,"emojiVariantSelector",void 0);_.k([_.X(),_.t("design:type",Object)],qk.prototype,"emojiMultiPersonSelector",void 0);
_.k([_.X({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.t("design:type",Boolean)],qk.prototype,"shouldUseStickyPreferences",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qk.prototype,"dataChanged",null);_.k([_.EM("data","selected"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qk.prototype,"updateCategoriesAndPlaceholder_",null);
_.k([_.RN("yt-show-emoji-variant-selector"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],qk.prototype,"onShowEmojiVariantSelector",null);_.k([_.RN("yt-emoji-picker-select-category"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],qk.prototype,"onSelectCategory_",null);_.k([_.RN("yt-emoji-hover"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],qk.prototype,"onEmojiHover_",null);
_.k([_.EM("skinTone"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qk.prototype,"skinToneChanged_",null);_.k([_.EM("search"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qk.prototype,"searchChanged_",null);qk=_.k([_.QE({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],qk);
_.A(qk,"yt-emoji-picker-renderer",function(){if(K8Z===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;DQZ===void 0&&(DQZ=document.createElement("template"));var T=DQZ;I.call(B,T.content.cloneNode(!0),E.content.firstChild);K8Z=E}E=K8Z;return E},{mode:2});var F_=function(){var E=_.r.apply(this,arguments)||this;E.emojiManager=_.Gm;E.isDarkTheme=document.documentElement.hasAttribute("dark");E.selectedIndex=1;E.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return E};
_.L(F_,_.r);_.l=F_.prototype;_.l.handleEmojiCustomizationVisible=function(E){this.emojiPickerRenderer.selected=E;this.selectedIndex=1;E?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.l.emojiCustomizationSetChanged=function(){var E;(E=this.data)!=null&&E.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.iD(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.l.updateSaveButtonState=function(E){var B;(B=this.data)!=null&&B.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.aL("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:E}))};
_.l.emojiUrl=function(E){E=_.Lj(this.emojiManager,E);if(!E)return"";var B;E=(B=E.image)==null?void 0:B.thumbnails;return _.Aa(E,24)||""};
_.l.emojiAlt=function(E){var B=_.Lj(this.emojiManager,E);if(!B)return E;var I,T,e,c=(B==null?void 0:(I=B.image)==null?void 0:(T=I.accessibility)==null?void 0:(e=T.accessibilityData)==null?void 0:e.label)||"";return c?c:B.isCustomEmoji?B.shortcuts[0]:B.emojiId||E};
_.l.emojiAriaLabel=function(E){var B,I;return((B=_.Lj(this.emojiManager,E))==null?void 0:(I=B.shortcuts)==null?void 0:I[0])||E};
_.l.onEmojiClick=function(E){E.model.index!==0&&(this.selectedIndex=E.model.index)};
_.l.onEmojiSelect=function(E){E=E.detail;var B,I;((B=this.data)==null?0:B.emojiCustomizationSetEntityKey)&&((I=this.emojiCustomizationSet)==null?0:I.emojiId)&&E.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,E.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.aL("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,E.emojiId,this.selectedIndex)}))};
_.l.canEditEmoji=function(E,B,I){E=E.indexOf(B);return E===I||E===0||I===0?!1:!0};
_.l.getUpdatedEmojiIdList=function(E,B,I){var T=E.indexOf(B);E=[].concat(_.ad(E));T>=0&&(E[T]=E[I]);E[I]=B;return E};
_.Up.Object.defineProperties(F_,{template:{configurable:!0,enumerable:!0,get:function(){if(sir===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;hyz===void 0&&(hyz=document.createElement("template"));var T=hyz;I.call(B,T.content.cloneNode(!0),E.content.firstChild);sir=E}E=sir;return E}}});
F_.prototype.onEmojiSelect=F_.prototype.onEmojiSelect;_.k([_.g(_.LM),_.t("design:type",Object)],F_.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],F_.prototype,"ytActionHandlerBehavior",void 0);_.k([_.$7("yt-emoji-picker-renderer"),_.t("design:type",Object)],F_.prototype,"emojiPickerRenderer",void 0);
_.k([_.X({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(E,B){return _.cP(E.entities,"emojiCustomizationSetEntity",B)},
observer:"emojiCustomizationSetChanged"}),_.t("design:type",Object)],F_.prototype,"emojiCustomizationSet",void 0);_.k([_.X(),_.t("design:type",Object)],F_.prototype,"originalEmojiSet",void 0);_.k([_.X(),_.t("design:type",_.uF)],F_.prototype,"emojiManager",void 0);_.k([_.X(),_.t("design:type",Object)],F_.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],F_.prototype,"isDarkTheme",void 0);_.k([_.X(),_.t("design:type",Object)],F_.prototype,"selectedIndex",void 0);
_.k([_.RN("yt-emoji-select"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],F_.prototype,"onEmojiSelect",null);F_=_.k([_.QE({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],F_);var e1$;var lSz;var ceU;var i6u;var Dl=function(){var E=_.r.apply(this,arguments)||this;E.authorBadges=[];return E};
_.L(Dl,_.r);_.l=Dl.prototype;_.l.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.l.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]]"}}}}}};
_.l.dataChanged=function(){var E=dJd(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",E)};
_.l.updateMessage=function(){var E=this.data.message,B=_.n(_.n(this.hostElement).querySelector("#message"));B.textContent="";E&&B.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(E))};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.l.onShowOriginalClick=function(E){E.preventDefault();this.showOriginal=!0};
_.l.computeShowBar=function(E,B,I){return E&&B||I};
_.l.computeAuthorBadges=function(E){return E.authorBadges||[]};
_.l.computeAuthorIsOwner=function(E){return!!hMG(E.authorBadges,"owner")};
_.l.computeAuthorNameColor=function(E){var B;if(_.d("live_chat_author_name_color_usernames")&&(E==null?0:(B=E.authorName)==null?0:B.simpleText))return _.OEJ(_.nsf(E.authorName.simpleText));if(_.d("live_chat_seed_color_usernames")&&(E==null?0:E.authorSeedColorArgb))return _.OEJ(_.DN(E.authorSeedColorArgb));if(_.d("live_chat_colored_usernames"))return"#cc0000";var I;return _.d("live_chat_simple_color_usernames")&&(E==null?0:(I=E.authorName)==null?0:I.simpleText)&&(E==null?0:E.authorUsernameColorLight)&&
(E==null?0:E.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.DN(E.authorUsernameColorDark):_.DN(E.authorUsernameColorLight):""};
Dl.prototype.updateMessage=Dl.prototype.updateMessage;Dl.prototype.dataChanged=Dl.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],Dl.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Dl.prototype,"data",void 0);
_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],Dl.prototype,"showOriginal",void 0);_.k([_.X({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Dl.prototype,"isDimmed",void 0);_.k([_.X({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Dl.prototype,"showBar",void 0);
_.k([_.X({computed:"computeAuthorBadges(data)"}),_.t("design:type",Array)],Dl.prototype,"authorBadges",void 0);_.k([_.X({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Dl.prototype,"authorIsOwner",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],Dl.prototype,"inCollapsedBanner",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],Dl.prototype,"inBanner",void 0);
_.k([_.X({value:_.d("live_chat_hide_avatars"),reflectToAttribute:!0}),_.t("design:type",Boolean)],Dl.prototype,"avatarHidden",void 0);_.k([_.X({computed:"computeAuthorNameColor(data)"}),_.t("design:type",String)],Dl.prototype,"authorNameColor",void 0);_.k([_.X(),_.t("design:type",_.Nk)],Dl.prototype,"participantsManager",void 0);_.k([_.X({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.t("design:type",Object)],Dl.prototype,"filledButtonOverrides",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Dl.prototype,"dataChanged",null);_.k([_.EM("data.message"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Dl.prototype,"updateMessage",null);Dl=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Dl);
_.A(Dl,"yt-live-chat-text-message-renderer",function(){if(i6u===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;ceU===void 0&&(ceU=document.createElement("template"));var T=ceU;I.call(B,T.content.cloneNode(!0),E.content.firstChild);i6u=E}E=i6u;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var Kj=function(){var E=_.r.apply(this,arguments)||this;E.tonalButtonOverrides={type:"tonal",style:"overlay"};return E};
_.L(Kj,_.r);
Kj.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]]"}}}}}};
Kj.prototype.shouldSupportInlineActionButtons=function(){return!0};
Kj.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Up.Object.defineProperties(Kj.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],Kj.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Kj.prototype,"data",void 0);_.k([_.X(),_.t("design:type",_.Nk)],Kj.prototype,"participantsManager",void 0);
_.k([_.X(),_.t("design:type",Object)],Kj.prototype,"tonalButtonOverrides",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data.infoDialogButton"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kj.prototype,"hasInfoDialogButton",null);Kj=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Kj);
_.A(Kj,"yt-live-chat-auto-mod-message-renderer",function(){if(lSz===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;e1$===void 0&&(e1$=document.createElement("template"));var T=e1$;I.call(B,T.content.cloneNode(!0),E.content.firstChild);lSz=E}E=lSz;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var pIl;var YTN;var aSZ;var Rv=function(){return _.r.apply(this,arguments)||this};
_.L(Rv,_.r);_.k([_.X(),_.t("design:type",Object)],Rv.prototype,"data",void 0);Rv=_.k([_.b({is:"ytd-factoid-renderer",disableElementRegistration:!0})],Rv);
_.A(Rv,"ytd-factoid-renderer",function(){if(aSZ!==void 0)return aSZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return aSZ=E},{mode:1});var Eu=function(){return _.r.apply(this,arguments)||this};
_.L(Eu,_.r);Eu.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.k([_.X(),_.t("design:type",Object)],Eu.prototype,"data",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);Eu=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Eu);
_.A(Eu,"yt-live-chat-channel-activity-reputation-renderer",function(){if(YTN===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;pIl===void 0&&(pIl=document.createElement("template"));var T=pIl;I.call(B,T.content.cloneNode(!0),E.content.firstChild);YTN=E}E=YTN;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var vHU;var yez;var By=function(){return _.r.apply(this,arguments)||this};
_.L(By,_.r);By.prototype.ready=function(){var E=document.querySelector("yt-live-chat-app");E&&E.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Boolean)],By.prototype,"menuFocused",void 0);_.k([_.X(),_.t("design:type",Object)],By.prototype,"data",void 0);_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],By.prototype,"ytLiveChatItemBehavior",void 0);By=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],By);
_.A(By,"yt-live-chat-donation-announcement-renderer",function(){if(yez===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;vHU===void 0&&(vHU=document.createElement("template"));var T=vHU;I.call(B,T.content.cloneNode(!0),E.content.firstChild);yez=E}E=yez;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var CxZ;var wIX,Z6h=function(){if(wIX!==void 0)return wIX;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;CxZ===void 0&&(CxZ=document.createElement("template"));var T=CxZ;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return wIX=E};var $2=function(){return _.r.apply(this,arguments)||this};
_.L($2,_.r);_.Up.Object.defineProperties($2,{template:{configurable:!0,enumerable:!0,get:function(){return Z6h()}}});
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],$2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],$2.prototype,"data",void 0);$2=_.k([_.QE({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],$2);_.A($2,"yt-live-chat-empty-feed-view-model",function(){return Z6h()},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var PxR;var z1V;var Ie=function(){return _.r.apply(this,arguments)||this};
_.L(Ie,_.r);Ie.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"}}}}}};
_.Up.Object.defineProperties(Ie.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var E,B;return{runs:[{text:(E=this.data)==null?void 0:(B=E.channelName)==null?void 0:B.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var E=[],B;if((B=this.data)==null||!B.channelBadges)return E;var I;B=_.p((I=this.data)==null?void 0:I.channelBadges);for(I=B.next();!I.done;I=B.next()){I=_.h(I.value,oeV);var T=void 0,e=void 0;if((T=I)==null?0:(e=T.badgeImage)==null?0:e.sources)T=void 0,e={liveChatAuthorBadgeRenderer:{tooltip:I.tooltip,accessibility:{accessibilityData:{label:(T=_.h(I.rendererContext,_.bO))==null?void 0:T.label}}}},I.badgeImage.sources[0].clientResource?e.liveChatAuthorBadgeRenderer.icon=
{iconType:I.badgeImage.sources[0].clientResource.imageName}:e.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:I.badgeImage.sources},E.push(e)}return E}}});
_.k([_.X(),_.t("design:type",Object)],Ie.prototype,"data",void 0);_.k([_.S("data.channelName"),_.t("design:type",Object),_.t("design:paramtypes",[])],Ie.prototype,"channelName",null);_.k([_.S("data.channelBadges"),_.t("design:type",Array),_.t("design:paramtypes",[])],Ie.prototype,"channelBadges",null);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Ie.prototype,"ytRendererstamperBehavior",void 0);
Ie=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Ie);
_.A(Ie,"yt-live-chat-identity-view-model",function(){if(z1V===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;PxR===void 0&&(PxR=document.createElement("template"));var T=PxR;I.call(B,T.content.cloneNode(!0),E.content.firstChild);z1V=E}E=z1V;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var m1N;var Q9U;var d1l;var h1D;var TJ=function(){var E=_.r.apply(this,arguments)||this;E.hidden=!1;E.supportsInlineActionButtons=!0;return E};
_.L(TJ,_.r);TJ.prototype.ready=function(){var E;((E=document.querySelector("yt-live-chat-app"))==null?0:E.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
TJ.prototype.dataChanged=function(E){var B=(0,_.FN)(_.n(this.hostElement).querySelector("#detail-text"));B.textContent="";(E==null?0:E.detailText)&&B.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(E.detailText))};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],TJ.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X({observer:"dataChanged"}),_.t("design:type",Object)],TJ.prototype,"data",void 0);
_.k([_.X({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.t("design:type",Object)],TJ.prototype,"hidden",void 0);TJ=_.k([_.b({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],TJ);
_.A(TJ,"yt-live-chat-legacy-paid-message-renderer",function(){if(h1D===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;d1l===void 0&&(d1l=document.createElement("template"));var T=d1l;I.call(B,T.content.cloneNode(!0),E.content.firstChild);h1D=E}E=h1D;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var s9$;var ud6;var LHr={},e_=function(){return _.l6.apply(this,arguments)||this};
_.L(e_,_.l6);e_.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
e_.prototype.onLiveChatMembershipItemBehaviorClick=e_.prototype.onLiveChatMembershipItemBehaviorClick;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],e_.prototype,"data",void 0);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],e_.prototype,"onLiveChatMembershipItemBehaviorClick",null);e_=_.k([_.cl()],e_);
LHr.YtLiveChatMembershipItemBehavior=[e_.prototype,_.R.YtRendererBehavior];var lS=function(){var E=_.r.apply(this,arguments)||this;E.supportsInlineActionButtons=!0;E.hasPrimaryHeaderText=!1;E.showOnlyHeader=!1;E.authorBadges=[];E.modern=_.d("web_button_rework_with_live");E.buttonOverrides={style:"overlay",type:"filled"};return E};
_.L(lS,_.r);_.l=lS.prototype;_.l.shouldSupportInlineActionButtons=function(){return!0};
_.l.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.l.ready=function(){var E=document.querySelector("yt-live-chat-app");E&&E.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.l.messageChanged=function(){var E=this.data.message,B=(0,_.FN)(_.n(this.hostElement).querySelector("#message"));B.textContent="";E&&B.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(E))};
_.l.computeHasPrimaryHeaderText=function(E){return!(!E||!E.headerPrimaryText)};
_.l.computeShowOnlyHeader=function(E,B){return this.isMessageEmpty(E,B)};
_.l.computeAuthorBadges=function(E){return E.authorBadges||[]};
_.l.isMessageEmpty=function(E,B){return!E||E.empty?!0:!E.message&&!E.inputField&&!B};
_.l.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.l.getInputElement=function(){return _.n(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.l.inputFocus=function(){var E=this.getInputElement();E&&E.focus()};
_.l.inputInsertEmoji=function(E){var B=this.getInputElement();B&&B.insertEmoji(E)};
_.l.inputMessage=function(){var E=this.getInputElement();return E&&this.data.inputField?(E.completeEmojis(),_.GI(E.liveChatRichMessageInput)):null};
_.l.onFooterButtonClick=function(){this.data.footerButton&&_.$O(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.l.shouldSupportWholeItemClick=function(){return!0};
lS.prototype.isDeletedChanged=lS.prototype.isDeletedChanged;lS.prototype.messageChanged=lS.prototype.messageChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],lS.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.g(LHr.YtLiveChatMembershipItemBehavior),_.t("design:type",Object)],lS.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],lS.prototype,"data",void 0);_.k([_.X({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.t("design:type",Object)],lS.prototype,"hasPrimaryHeaderText",void 0);_.k([_.X({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.t("design:type",Object)],lS.prototype,"showOnlyHeader",void 0);
_.k([_.X({computed:"computeAuthorBadges(data)"}),_.t("design:type",Array)],lS.prototype,"authorBadges",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],lS.prototype,"modern",void 0);_.k([_.EM("data.message"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],lS.prototype,"messageChanged",null);_.k([_.EM("isDeleted"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],lS.prototype,"isDeletedChanged",null);
lS=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],lS);
_.A(lS,"yt-live-chat-membership-item-renderer",function(){if(ud6===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;s9$===void 0&&(s9$=document.createElement("template"));var T=s9$;I.call(B,T.content.cloneNode(!0),E.content.firstChild);ud6=E}E=ud6;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var x1N;var GHV;var cy=function(){return _.r.apply(this,arguments)||this};
_.L(cy,_.r);cy.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],cy.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],cy.prototype,"data",void 0);cy=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],cy);
_.A(cy,"yt-live-chat-mode-change-message-renderer",function(){if(GHV===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;x1N===void 0&&(x1N=document.createElement("template"));var T=x1N;I.call(B,T.content.cloneNode(!0),E.content.firstChild);GHV=E}E=GHV;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var O6D;var nHD;var iS=function(){return _.r.apply(this,arguments)||this};
_.L(iS,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],iS.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],iS.prototype,"data",void 0);iS=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],iS);
_.A(iS,"yt-live-chat-moderation-message-renderer",function(){if(nHD===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;O6D===void 0&&(O6D=document.createElement("template"));var T=O6D;I.call(B,T.content.cloneNode(!0),E.content.firstChild);nHD=E}E=nHD;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var MvR;var H6V;var pz=function(){var E=_.r.apply(this,arguments)||this;E.modern=_.d("web_button_rework");return E};
_.L(pz,_.r);pz.prototype.onClick=function(){var E;if((E=this.data)!=null&&E.onClickCommand){var B;_.BV.instance.resolveCommand((B=this.data)==null?void 0:B.onClickCommand)}};
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],pz.prototype,"modern",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.LM),_.t("design:type",Object)],pz.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],pz.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],pz.prototype,"data",void 0);pz=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],pz);
_.A(pz,"yt-live-chat-offer-click-count-message-renderer",function(){if(H6V===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;MvR===void 0&&(MvR=document.createElement("template"));var T=MvR;I.call(B,T.content.cloneNode(!0),E.content.firstChild);H6V=E}E=H6V;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var NkR;var Y2=function(){return _.r.apply(this,arguments)||this};
_.L(Y2,_.r);_.k([_.X(),_.t("design:type",Object)],Y2.prototype,"data",void 0);Y2=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Y2);
_.A(Y2,"yt-live-chat-placeholder-item-renderer",function(){if(NkR===void 0){var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);NkR=E}E=NkR;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var gHV;var STr;var JeX=new oY(7),ae=function(){var E=_.r.apply(this,arguments)||this;E.data={};return E};
_.L(ae,_.r);ae.prototype.dataChanged=function(){var E;((E=this.data)==null?0:E.class)&&_.VQ(this.hostElement,this.data.class,!0);var B;((B=this.oldData)==null?0:B.class)&&_.VQ(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
ae.prototype.computeTimestampString=function(E){return JeX.format(new Date(E/1E3))};
ae.prototype.dataChanged=ae.prototype.dataChanged;_.k([_.X(),_.t("design:type",Object)],ae.prototype,"data",void 0);_.k([_.X({computed:"computeTimestampString(data.timestampUsec)"}),_.t("design:type",String)],ae.prototype,"timestampString",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ae.prototype,"dataChanged",null);ae=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],ae);
_.A(ae,"yt-live-chat-server-error-message",function(){if(STr===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;gHV===void 0&&(gHV=document.createElement("template"));var T=gHV;I.call(B,T.content.cloneNode(!0),E.content.firstChild);STr=E}E=STr;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var WHR;var XI6;var vy=function(){var E=_.r.apply(this,arguments)||this;E.defaultToFilledIcon=!1;return E};
_.L(vy,_.r);vy.prototype.computeHasPrimaryColorIcon=function(E){return E==="SPARK"||E==="SPONSORSHIP_STAR"};
vy.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],vy.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],vy.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],vy.prototype,"defaultToFilledIcon",void 0);_.k([_.X(),_.t("design:type",Object)],vy.prototype,"data",void 0);
_.k([_.X({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.t("design:type",Boolean)],vy.prototype,"hasPrimaryColorIcon",void 0);vy=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],vy);
_.A(vy,"yt-live-chat-viewer-engagement-message-renderer",function(){if(XI6===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;WHR===void 0&&(WHR=document.createElement("template"));var T=WHR;I.call(B,T.content.cloneNode(!0),E.content.firstChild);XI6=E}E=XI6;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var reR;var yD=function(){var E=_.r.apply(this,arguments)||this;E.modernUpdate=!1;E.buttonStyle="overlay";E.buttonType="filled";return E};
_.L(yD,_.r);yD.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
yD.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],yD.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],yD.prototype,"modernUpdate",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],yD.prototype,"buttonStyle",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],yD.prototype,"buttonType",void 0);
yD=_.k([_.b({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],yD);
_.A(yD,"ytd-ad-hover-text-button-renderer",function(){if(reR!==void 0)return reR;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return reR=E},{mode:1});var b66;var Cz=function(){var E=_.r.apply(this,arguments)||this;E.buttonOverrides={size:"XS"};E.modern=_.d("web_button_rework");return E};
_.L(Cz,_.r);Cz.prototype.onHelpTap=function(E){this.data&&this.data.informationDialog&&(_.$O(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),E.preventDefault(),E.stopPropagation())};
_.k([_.X(),_.t("design:type",Object)],Cz.prototype,"buttonOverrides",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Cz.prototype,"modern",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Cz.prototype,"data",void 0);Cz=_.k([_.b({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Cz);
_.A(Cz,"ytd-live-chat-purchased-product-message-renderer",function(){if(b66!==void 0)return b66;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return b66=E},{mode:1});var oH6;var AeV;var wh=function(){var E=_.r.apply(this,arguments)||this;E.isContainerDeleted=!1;return E};
_.L(wh,_.r);wh.prototype.onContextMenuClick=function(E){this.ytLiveChatItemBehavior.showContextMenu(E)};
wh.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))};
wh.prototype.isContainerDeletedChanged=wh.prototype.isContainerDeletedChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],wh.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],wh.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],wh.prototype,"isContainerDeleted",void 0);
_.k([_.X(),_.t("design:type",String)],wh.prototype,"deletedStateMessage",void 0);_.k([_.EM("isContainerDeleted"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wh.prototype,"isContainerDeletedChanged",null);wh=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],wh);
_.A(wh,"ytd-sponsorships-live-chat-header-renderer",function(){if(AeV!==void 0)return AeV;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return AeV=E},{mode:1});var Zv=function(){var E=_.r.apply(this,arguments)||this;E.modern=_.d("web_button_rework_with_live");E.buttonOverrides={style:"overlay",type:"filled"};return E};
_.L(Zv,_.r);Zv.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]]"}}}}}};
Zv.prototype.onCtaButtonClick=function(){var E,B=_.h((E=this.data)==null?void 0:E.optInPrompt,_.NT);if(E=this.maybeGetButtonCommand(B)){var I;(I=_.lu())==null||I.clickCommand(E)}};
Zv.prototype.maybeGetButtonCommand=function(E){return!E||!E.command||_.h(E.command,CfX)===void 0&&_.h(E.command,yoV)===void 0?null:E.command};
Zv.prototype.shouldHideOptinPrompt=function(E,B){return!E||B};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],Zv.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Zv.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Zv.prototype,"modern",void 0);Zv=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Zv);
_.A(Zv,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(oH6!==void 0)return oH6;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return oH6=E},{mode:1});var j9$;var Py=function(){return _.r.apply(this,arguments)||this};
_.L(Py,_.r);Py.prototype.onContextMenuClick=function(E){this.ytLiveChatItemBehavior.showContextMenu(E)};
Py.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))};
Py.prototype.isDeletedChanged=Py.prototype.isDeletedChanged;_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],Py.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Py.prototype,"data",void 0);_.k([_.EM("isDeleted"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Py.prototype,"isDeletedChanged",null);Py=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Py);
_.A(Py,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(j9$!==void 0)return j9$;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return j9$=E},{mode:1});var zJ=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return E};
_.L(zJ,_.r);_.l=zJ.prototype;
_.l.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"}}}};
_.l.handleLiveChatAction=function(E){_.h(E,H0z)?this.handleMarkChatItemAsDeletedAction(_.h(E,H0z)):_.h(E,MMr)&&this.handleRemoveChatItemAction(_.h(E,MMr))};
_.l.handleLiveChatActions=function(E){E.forEach(this.handleLiveChatAction,this)};
_.l.handleMarkChatItemAsDeletedAction=function(E){var B=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(T,e){var c=Object.keys(T)[0];Object.values(T)[0].id===E.targetItemId&&B.markAsDeleted("data.items",e,c,E.deletedStateMessage,E.showOriginalContentMessage)})};
_.l.handleRemoveChatItemAction=function(E){var B=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(T,e){Object.values(T)[0].id===E.targetItemId&&B.splice("data.items",e,1)})};
_.l.markAsDeleted=function(E,B,I,T,e){E=[E,B,I].join(".");this.set(E+".deletedStateMessage",T);this.set(E+".showOriginalContentMessage",e)};
_.k([_.X(),_.t("design:type",Object)],zJ.prototype,"data",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],zJ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],zJ.prototype,"ytActionHandlerBehavior",void 0);zJ=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],zJ);
_.A(zJ,"yt-live-chat-item-display-list-renderer",function(){if(Q9U===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;m1N===void 0&&(m1N=document.createElement("template"));var T=m1N;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Q9U=E}E=Q9U;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var U1t;var kHr,tvz=function(){if(kHr!==void 0)return kHr;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;U1t===void 0&&(U1t=document.createElement("template"));var T=U1t;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return kHr=E};var mv=function(){var E=_.r.apply(this,arguments)||this;E.isHeader=!1;return E};
_.L(mv,_.r);mv.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Up.Object.defineProperties(mv,{template:{configurable:!0,enumerable:!0,get:function(){return tvz()}}});
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],mv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],mv.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],mv.prototype,"isHeader",void 0);mv=_.k([_.QE({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],mv);_.A(mv,"yt-live-chat-item-display-renderer",function(){return tvz()},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var fSX,VvV,R16,KHR;
fSX={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}};VvV={home:"eohps",search:"eosps",watch:"eowps"};_.qTR=["watch","search","home"];
_.QD=function(){this.JSC$12020_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12020_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.HA("PRECONSTRUCTION_DELAY",0);this.signals_=_.gB();this.targetPage_=""};
_.QD.prototype.init=function(E,B){E=E===void 0?"":E;B=B===void 0?null:B;if(this.JSC$12020_isInitialized_)this.abort();else if(this.JSC$12020_isInitialized_=!0,E&&_.FHZ(this,E),B){var I=_.Su(this.signals_,"pcl")?0:10,T=function(){for(var e=0,c;c=_.qTR[e++];)c!=E&&c!=B&&this.pendingPages_.push(c);_.D1V(this)}.bind(this);
this.signals_.parkOrScheduleJob(T,I,"pcl")}};
_.QD.prototype.abort=function(){this.fragmentJobId_&&(_.Ll.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);KHR(this)};
_.FHZ=function(E,B){E.JSC$12020_isInitialized_&&!E.targetPage_&&(E.targetPage_=B,R16(E,B),E.isInitialPass_=!1,R16(E,B),E.signals_.processSignal(VvV[E.targetPage_]),KHR(E),_.D1V(E))};
_.D1V=function(E){E.pendingPages_.length&&!E.pagePreparerJobId_&&(E.pagePreparerJobId_=_.PC(_.Ll,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.FHZ(this,this.pendingPages_.shift())}.bind(E),E.DEFAULT_DELAY_))};
R16=function(E,B){if(B=fSX[B])for(var I in B){var T=!1,e=I;I.charAt(0)=="~"&&(T=!0,e=I.substring(1));var c=B[I];c=typeof c=="object"?c:{count:c};B[I]=c;c.componentName=e;c.count>0&&(E.isInitialPass_?T||E.isSeenDuringInitialPass_[e]||(E.JSC$12020_queue_.push({componentName:e,count:1,signals:c.signals}),E.isSeenDuringInitialPass_[e]=!0,c.count--):E.JSC$12020_queue_.push(c))}};
KHR=function(E){E.JSC$12020_queue_.length=0;E.targetPage_="";E.isInitialPass_=!0;E.signals_.processSignal("eop")};
_.QD.getInstance=function(){return _.eD(_.QD)};var ERR=function(){this.signals=_.gB();this.init()};
ERR.prototype.startPreconstruction=function(){_.QD.getInstance().init(_.gU("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
ERR.prototype.init=function(){Bgr(this);window.Polymer&&q4r&&ijB();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var E=_.$i.ytcsi;if(E&&E.gt&&(E=E.gt())&&E.tick&&(E.tick.aft>0||E.tick.pbs>0)&&(_.gU("IS_HOMEPAGE_COLD")||_.gU("IS_RESULTS_PAGE_COLD")||_.gU("IS_WATCH_PAGE_COLD"))){$MU(this);break a}i9c(Bd4,this.onNotifications,this)}};
var Bgr=function(E){var B=function(){E.signals.processSignal("dl")};
document.readyState==="complete"?(_.Xx(Error("th"),"WARNING"),B()):_.oGc(window,"load",B)};
ERR.prototype.onNotifications=function(E){E.timer||(_.gU("IS_HOMEPAGE_COLD")||_.gU("IS_RESULTS_PAGE_COLD")||_.gU("IS_WATCH_PAGE_COLD"))&&$MU(this)};
var $MU=function(E){E.signals.parkOrScheduleJob(function(){E.signals.processSignal("eocs")},10,"eor")};
new ERR;var dh,h6=function(){return _.l6.apply(this,arguments)||this};
_.L(h6,_.l6);_.l=h6.prototype;_.l.enableActiveViewMeasurement=function(E){if(this.isActiveViewEnabled(E)){var B=this.getUrlPrefixesFromCommand(E.viewableCommands);E=this.getUrlPrefixesFromCommand(E.endOfSessionCommands);dh||(dh=new rmt(this.getVersion()));bu6(dh,this.hostElement);oFG(dh,this.hostElement,B,E)}};
_.l.stopActiveViewMeasurement=function(){dh&&bu6(dh,this.hostElement)};
_.l.isActiveViewEnabled=function(E){return!!E&&(this.hasAtLeastOneUrl(E.viewableCommands)||this.hasAtLeastOneUrl(E.endOfSessionCommands))};
_.l.hasAtLeastOneUrl=function(E){return!!E&&E.length>0&&E[0].loggingUrls!=null&&E[0].loggingUrls.length>0};
_.l.getVersion=function(){var E=_.HA("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(E==null?void 0:E.length)===2?E[1]:null};
_.l.getUrlPrefixesFromCommand=function(E){if(!E)return[];var B=[];E=_.p(E);for(var I=E.next();!I.done;I=E.next())if(I=I.value,I.loggingUrls){I=_.p(I.loggingUrls);for(var T=I.next();!T.done;T=I.next())T=T.value,T.baseUrl&&B.push(T.baseUrl)}return B};
h6=_.k([_.cl()],h6);var su=[h6.prototype];var uS=function(){return _.l6.apply(this,arguments)||this};
_.L(uS,_.l6);_.Up.Object.defineProperties(uS.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.d("enable_entity_store_from_dependency_injection")?_.gp():_.t2()}}});
uS=_.k([_.cl()],uS);_.Lz=[ZG.prototype,uS.prototype];var Ip$=["ytd-rich-shelf-renderer"],x2=function(){var E=_.l6.apply(this,arguments)||this;E._noAccessors=!0;E.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";E.followUpDialogPromise=null;E.followUpDialogPromiseResolve=null;E.followUpDialogPromiseReject=null;return E};
_.L(x2,_.l6);_.l=x2.prototype;_.l.dismissibleItemIsDismissedChanged_=function(E){_.d("kevlar_fluid_dismiss")&&(E?_.$O(this.hostElement,"yt-dismissible-item-dismissed"):_.$O(this.hostElement,"yt-dismissible-item-undismissed"))};
_.l.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.l.dismissibleItemReset_=function(){var E=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 _.cC(function(B,I){E.followUpDialogPromiseResolve=B;E.followUpDialogPromiseReject=I});
_.$O(this.hostElement,"yt-enable-lockup-interaction")};
_.l.dismissibleItemOnYtServiceRequestSent_=function(E,B){B.actions&&this.dismissibleItemProcessActions(B.actions,E)};
_.l.dismissibleItemOnRequestSent=function(E){if(_.d("web_button_rework"))for(var B=_.p(E.detail),I=B.next();!I.done;I=B.next()){var T=void 0;(I=(T=_.h(I.value,_.a2))==null?void 0:T.actions)&&this.dismissibleItemProcessActions(I,E)}};
_.l.dismissibleItemOnCommandSent=function(E,B){B&&this.dismissibleItemProcessActions(B,E)};
_.l.setAndGetDismissedContentId=function(E){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+E};
_.l.replayDismissAction=function(E){this.dismissibleItemProcessActions([E])};
_.l.dismissibleItemProcessActions=function(E,B){for(var I=0;I<E.length;I++){var T=E[I],e=void 0;((e=_.h(T,_.pO))==null?0:e.commands)&&this.dismissibleItemProcessActions(_.h(T,_.pO).commands,B);if(_.h(T,_.mJ)){if(e=_.h(T,_.mJ),!e.replaceParentSection||Ip$.includes(this.hostElement.nodeName.toLowerCase()))_.d("web_see_fewer_shorts_reactive_dismissal")&&e.groupDismissal&&tvD(this,e.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(e),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.aL("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:T})),T=void 0,(T=B)==null||T.stopPropagation()}else if(_.h(T,oUh))this.dismissibleItemHandleHideEnclosingAction_(),T=void 0,(T=B)==null||T.stopPropagation();else if(_.h(T,Rmh))_.d("web_see_fewer_shorts_reactive_dismissal")&&(T=_.h(T,Rmh),e=void 0,((e=T)==null?0:e.targetGroupId)&&tvD(this,{targetGroupId:T.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.aL("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),T=void 0,(T=B)==null||T.stopPropagation();else if(_.h(T,_.a2))(T=_.h(T,_.a2).actions)&&_.cN(this.hostElement,T,this.hostElement),T=void 0,(T=B)==null||T.stopPropagation();else{var c=e=void 0;((e=_.h(T,_.g9))==null?void 0:e.signal)!=="TELL_US_WHY"||((c=_.h(T,_.g9))==null?0:c.targetId)&&_.d("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),T=void 0,(T=B)==null||T.stopPropagation())}}};
_.l.dismissibleItemOnYtServiceRequestCompleted_=function(E,B){var I=this.get("feedbackResponses.0.followUpDialog",B.data);I?this.followUpDialogPromiseResolve(I):B.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(B.actions,E)};
_.l.dismissibleItemHandleReplaceEnclosingAction_=function(E){this.dismissedRenderer=E.item;this.isDismissed=!0;var B=null;(B=_.n(this.hostElement).querySelector("#dismissed"))&&_.AJ(this,function(){_.AI(B)});
_.$O(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.l.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.l.dismissibleItemHandleUndoFeedbackAction_=function(){_.$O(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.l.dismissibleItemHandleTellUsWhySignalAction_=function(){var E=this;this.followUpDialogPromise.then(function(B){E.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:B}})})};
x2.prototype.dismissibleItemOnYtServiceRequestCompleted_=x2.prototype.dismissibleItemOnYtServiceRequestCompleted_;x2.prototype.dismissibleItemOnCommandSent=x2.prototype.dismissibleItemOnCommandSent;x2.prototype.dismissibleItemOnRequestSent=x2.prototype.dismissibleItemOnRequestSent;x2.prototype.dismissibleItemOnYtServiceRequestSent_=x2.prototype.dismissibleItemOnYtServiceRequestSent_;x2.prototype.dismissibleItemDataChanged_=x2.prototype.dismissibleItemDataChanged_;
x2.prototype.dismissibleItemIsDismissedChanged_=x2.prototype.dismissibleItemIsDismissedChanged_;_.k([_.g(_.X_),_.t("design:type",Object)],x2.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],x2.prototype,"ytdReduxBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],x2.prototype,"isDismissed",void 0);_.k([_.X(),_.t("design:type",Object)],x2.prototype,"dismissedRenderer",void 0);
_.k([_.EM("isDismissed"),_.t("design:type",Function),_.t("design:paramtypes",[Boolean]),_.t("design:returntype")],x2.prototype,"dismissibleItemIsDismissedChanged_",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],x2.prototype,"dismissibleItemDataChanged_",null);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],x2.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.k([_.RN("yt-service-request-sent-button-renderer"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],x2.prototype,"dismissibleItemOnRequestSent",null);
_.k([_.RN("yt-dismissible-item-action"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Array]),_.t("design:returntype")],x2.prototype,"dismissibleItemOnCommandSent",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],x2.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);x2=_.k([_.cl()],x2);_.GJ=[_.X_,_.Lz,x2.prototype];var Ou=function(){var E=_.l6.apply(this,arguments)||this;E.disableGridStateAware=!1;E.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};E.currentGridClass="";return E};
_.L(Ou,_.l6);Ou.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.AJ(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var E=this.gridStateAwareGetElement();_.VQ(E,"grid",!0)}};
Ou.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Ou.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.n(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Ou.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var E="grid-disabled";else{E=_.lbR.getInstance();var B=this.get("pageSubtype");E=B&&IbV.includes(B)?"grid-disabled":E.currentSnapState_?E.currentSnapState_.className:null}(B=this.gridStateAwareGetElement())&&E!==this.currentGridClass&&(E&&_.VQ(B,E,!0),this.currentGridClass&&_.VQ(B,this.currentGridClass,!1),this.currentGridClass=E)};
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Ou.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",String)],Ou.prototype,"gridStateAwareSizingElementSelector",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Ou.prototype,"disableGridStateAware",void 0);Ou=_.k([_.cl()],Ou);_.nz=[Ou.prototype,_.th.YtActionHandlerBehavior];_.M9=new _.Dr("GUIDE_TOKEN");var N9;_.Hy={};N9=function(){var E=_.l6.apply(this,arguments)||this;E.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 E};
_.L(N9,_.l6);_.l=N9.prototype;_.l.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.l.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var E=_.Q().resolve(_.Fx(_.M9));E&&(this.guidePersistentAndVisible=E.getGuidePersistentAndVisible(),this.activeEndpoint=E.getActiveEndpoint(),this.guideOpened=E.getGuideOpened(),this.miniGuideVisible=E.getMiniGuideVisible())};
_.l.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.l.handleGuideStateAction=function(E){this.guidePersistentAndVisible=E};
_.l.handleMiniGuideStateAction=function(E){this.miniGuideVisible=E};
_.l.handleGuideOpenedAction=function(E){this.guideOpened=E};
_.l.handleActiveEndpointAction=function(E){this.activeEndpoint=E};
N9.prototype.onActiveEndpointChange=N9.prototype.onActiveEndpointChange;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],N9.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],N9.prototype,"guidePersistentAndVisible",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],N9.prototype,"miniGuideVisible",void 0);_.k([_.X(),_.t("design:type",Object)],N9.prototype,"activeEndpoint",void 0);
_.k([_.EM("activeEndpoint"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],N9.prototype,"onActiveEndpointChange",null);_.k([_.X(),_.t("design:type",Boolean)],N9.prototype,"guideOpened",void 0);N9=_.k([_.cl()],N9);_.Hy.YtdGuideStateAwareBehavior=[];_.Hy.YtdGuideStateAwareBehavior.push(N9.prototype,_.th.YtActionHandlerBehavior);var Tgz=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],gh=function(){var E=_.l6.apply(this,arguments)||this;E.hoverJobId=0;E.JSC$12051_touched=!1;return E};
_.L(gh,_.l6);_.l=gh.prototype;_.l.created=function(){this.useExpandableTooltip=!Tgz.includes(this.is)};
_.l.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.l.detached=function(){this.useExpandableTooltip=!1};
_.l.lockupOnDown=function(E){this.interactionElement&&!_.XZ(_.W8(E),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.l.lockupOnUp=function(E){this.interactionElement&&!_.XZ(_.W8(E),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.l.onTouchStart=function(){this.JSC$12051_touched=!0};
_.l.lockupOnMouseEnter=function(){var E=this,B=_.RI("kevlar_lockup_hover_delay",-1);this.JSC$12051_touched&&B>=0?(_.Ll.cancelJob(this.hoverJobId),this.hoverJobId=_.Ll.addJob(function(){E.lockupIsHovered=!0},8,B),this.JSC$12051_touched=!1):this.lockupIsHovered=!0};
_.l.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Ll.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.l.lockupOnPopupClosed=function(E,B){var I;((I=B.popupRenderer)==null?void 0:I.is)==="ytd-menu-popup-renderer"&&(E=B.popupRenderer.veData,B=_.nC(),E&&B&&_.o2(B,[E]))};
_.l.lockupOnLockupRequested=function(E){var B=E.detail.videoIds[0],I;E.detail&&B===((I=this.data)==null?void 0:I.videoId)&&(E.detail.returnValue=[this.data])};
_.l.lockupOnYtServiceRequestSent=function(E,B){if(E=B.actions)for(var I=0;I<E.length;I++){var T=E[I];if(T.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&B.ajaxPromise){var e=void 0,c=(e=_.h(B.endpoint,_.nU))==null?void 0:e.playlistId;e=void 0;T=(e=T.removedVideoId)!=null?e:"";OGD(_.Wx(),T,c)}else T.action==="ACTION_REMOVE_VIDEO"&&B.ajaxPromise&&(c=void 0,T=(c=T.setVideoId)!=null?c:"",_.nkr(_.Wx(),T))}};
_.l.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.l.lockupOnLockupEnabled=function(){if(!this.$){var E=_.Q().resolve(_.oS).getCurrentPage(),B=this.getParentRenderer?this.getParentRenderer():void 0;_.OG(new _.P7("component not ready",this.is,this.isAttached,E==null?void 0:E.is,B==null?void 0:B.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
gh.prototype.lockupOnLockupEnabled=gh.prototype.lockupOnLockupEnabled;gh.prototype.lockupOnLockupDisabled=gh.prototype.lockupOnLockupDisabled;gh.prototype.lockupOnYtServiceRequestSent=gh.prototype.lockupOnYtServiceRequestSent;gh.prototype.lockupOnLockupRequested=gh.prototype.lockupOnLockupRequested;gh.prototype.lockupOnPopupClosed=gh.prototype.lockupOnPopupClosed;gh.prototype.lockupOnMouseLeave=gh.prototype.lockupOnMouseLeave;gh.prototype.lockupOnMouseEnter=gh.prototype.lockupOnMouseEnter;
gh.prototype.onTouchStart=gh.prototype.onTouchStart;gh.prototype.lockupOnUp=gh.prototype.lockupOnUp;gh.prototype.lockupOnDown=gh.prototype.lockupOnDown;_.k([_.X(),_.t("design:type",Object)],gh.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],gh.prototype,"lockupIsHovered",void 0);_.k([_.X(),_.t("design:type",Boolean)],gh.prototype,"lockupTouchTriggered",void 0);_.k([_.X(),_.t("design:type",Boolean)],gh.prototype,"useExpandableTooltip",void 0);
_.k([_.$7("#interaction"),_.t("design:type",Object)],gh.prototype,"interactionElement",void 0);_.k([_.RN("down"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],gh.prototype,"lockupOnDown",null);_.k([_.RN("up"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],gh.prototype,"lockupOnUp",null);
_.k([_.RN("touchstart"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gh.prototype,"onTouchStart",null);_.k([_.RN("mouseenter"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gh.prototype,"lockupOnMouseEnter",null);_.k([_.RN("mouseleave"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gh.prototype,"lockupOnMouseLeave",null);
_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],gh.prototype,"lockupOnPopupClosed",null);_.k([_.RN("yt-lockup-requested"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],gh.prototype,"lockupOnLockupRequested",null);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],gh.prototype,"lockupOnYtServiceRequestSent",null);_.k([_.RN("yt-disable-lockup-interaction"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gh.prototype,"lockupOnLockupDisabled",null);
_.k([_.RN("yt-enable-lockup-interaction"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gh.prototype,"lockupOnLockupEnabled",null);gh=_.k([_.cl()],gh);_.S_=[gh.prototype];_.e5$={YtdReduxBehavior:[]};_.e5$.YtdReduxBehavior.push.apply(_.e5$.YtdReduxBehavior,_.Lz);var J6=function(){var E=_.l6.apply(this,arguments)||this;E._noAccessors=!0;E.disableNowPlaying=!1;E.disableTooltips=!1;E.useHoveredProperty=!1;E.hovered=!1;E.isThumbnailHovered_=!1;E.addBackground=_.d("kevlar_thumbnail_bg");E.nowPlaying=!1;E.disableRounding=!1;E.size="small";return E};
_.L(J6,_.l6);_.l=J6.prototype;_.l.computeThumbnailOverlaySidePanelWidth_=function(E,B){return E-B};
_.l.computeSize=function(E,B){if(!this.disableRounding){if(!E&&!B)return"small";E=Math.max(E||0,B||0);return E>=256?"large":E>=96?"medium":"small"}};
_.l.computeFinalHoveredState_=function(E,B,I){return this.nowPlaying?!1:_.d("kevlar_thumbnail_fluid")&&E?B:I};
_.l.computeHoverOverlays_=function(E,B){return E&&B?B:void 0};
_.l.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.l.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.l.checkMiniplayer_=function(){var E;if(((E=this.data)==null?0:E.playlistSetVideoId)&&_.d("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{E=_.vx();var B=E.currentEndpoint;!this.disableNowPlaying&&B&&_.h(B,_.kh)&&this.data?(B=_.h(B,_.kh),this.nowPlaying=this.data.playlistId?B.playlistId===this.data.playlistId:B.videoId===this.data.videoId,this.isVideoPlaying=E==null?void 0:E.isVideoPlaying):this.nowPlaying=!1}};
J6.prototype.checkMiniplayer_=J6.prototype.checkMiniplayer_;J6.prototype.onMouseLeave_=J6.prototype.onMouseLeave_;J6.prototype.onMouseEnter_=J6.prototype.onMouseEnter_;J6.prototype.computeHoverOverlays_=J6.prototype.computeHoverOverlays_;J6.prototype.computeFinalHoveredState_=J6.prototype.computeFinalHoveredState_;J6.prototype.computeSize=J6.prototype.computeSize;J6.prototype.computeThumbnailOverlaySidePanelWidth_=J6.prototype.computeThumbnailOverlaySidePanelWidth_;
_.k([_.g(_.Lz),_.t("design:type",Object)],J6.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],J6.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Number)],J6.prototype,"height",void 0);_.k([_.X(),_.t("design:type",Boolean)],J6.prototype,"bottomSidePanel",void 0);_.k([_.X(),_.t("design:type",Number)],J6.prototype,"width",void 0);_.k([_.X(),_.t("design:type",Object)],J6.prototype,"disableNowPlaying",void 0);
_.k([_.X({selector:_.O3}),_.t("design:type",Boolean)],J6.prototype,"miniplayerIsActive",void 0);_.k([_.X(),_.t("design:type",Object)],J6.prototype,"disableTooltips",void 0);_.k([_.X(),_.t("design:type",Object)],J6.prototype,"useHoveredProperty",void 0);_.k([_.X(),_.t("design:type",Object)],J6.prototype,"hovered",void 0);_.k([_.X(),_.t("design:type",Object)],J6.prototype,"isThumbnailHovered_",void 0);
_.k([_.X({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.t("design:type",Boolean)],J6.prototype,"finalHoveredState_",void 0);_.k([_.X({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.t("design:type",Number)],J6.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],J6.prototype,"addBackground",void 0);
_.k([_.X({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.t("design:type",Object)],J6.prototype,"hoverOverlays_",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],J6.prototype,"nowPlaying",void 0);_.k([_.X(),_.t("design:type",Boolean)],J6.prototype,"isVideoPlaying",void 0);_.k([_.X(),_.t("design:type",Object)],J6.prototype,"disableRounding",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.t("design:type",Object)],J6.prototype,"size",void 0);_.k([_.RN("mouseenter"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J6.prototype,"onMouseEnter_",null);_.k([_.RN("mouseleave"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J6.prototype,"onMouseLeave_",null);
_.k([_.EM("data","disableNowPlaying","miniplayerIsActive"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J6.prototype,"checkMiniplayer_",null);J6=_.k([_.cl()],J6);var lpl=[J6.prototype];_.Wy={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(E,B){return E+":"+_.$l(B)},
getPlayerListener_:function(E,B,I){E=this.getPlayerListenerKey_(E,B);B=this.playerListeners_.get(E);I&&this.playerListeners_.delete(E);return B},
savePlayerListener_:function(E,B){var I=B.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(E,B),I);return I},
listenToPlayerEvent:function(E,B,I){I=this.savePlayerListener_(B,I);E.addEventListener(B,I)},
listenToPlayerEvents:function(E,B){B.forEach(function(I,T){this.listenToPlayerEvent(E,T,I)}.bind(this))},
unlistenFromPlayerEvent:function(E,B,I){I=this.getPlayerListener_(B,I,!0);E.removeEventListener(B,I)},
unlistenFromPlayerEvents:function(E,B){B.forEach(function(I,T){this.unlistenFromPlayerEvent(E,T,I)}.bind(this))}}};
_.XK=function(){};_.cZR=new _.Dr("PLAYER_API_TOKEN");var D14=!1,BgJ,R1G=!1,IpB;var fp=function(E,B,I,T,e){_.Cx.call(this);var c=this;this.playerId=B;this.webPlayerContextConfig=T;this.eVQ=e;this.u5e=!1;this.api={};this.lyQ=this.xE3=null;this.dNU=new _.Ya;this.fc={};this.mbF=this.kKe=this.elementId=this.gYM=this.config=null;this.coQ=!1;this.qj=this.hzg=null;this.p1E={};this.oAC=["onReady"];this.lastError=null;this.ukj=NaN;this.sEQ={};this.gjN=0;this.di=this.targetElement=E;_.Bp(this,this.dNU);iHz(this);I?this.gjN=setTimeout(function(){c.loadNewVideoConfig(I)},0):T&&(p_r(this),
Ybl(this))};
_.L(fp,_.Cx);fp.prototype.getId=function(){return this.playerId};
fp.prototype.loadNewVideoConfig=function(E){if(!this.isDisposed()){this.gjN&&(clearTimeout(this.gjN),this.gjN=0);var B=E||{};B instanceof bMr||(B=new bMr(B));this.config=B;this.setConfig(E);Ybl(this);this.isReady()&&apD(this)}};
var p_r=function(E){var B;E.webPlayerContextConfig?B=E.webPlayerContextConfig.rootElementId:B=E.config.attrs.id;E.elementId=B||E.elementId;E.elementId==="video-player"&&(E.elementId=E.playerId,E.webPlayerContextConfig?E.webPlayerContextConfig.rootElementId=E.playerId:E.config.attrs.id=E.playerId);var I;((I=E.di)==null?void 0:I.id)===E.elementId&&(E.elementId+="-player",E.webPlayerContextConfig?E.webPlayerContextConfig.rootElementId=E.elementId:E.config.attrs.id=E.elementId)};
fp.prototype.setConfig=function(E){this.gYM=E;this.config=vRZ(E);p_r(this);if(!this.kKe){var B;this.kKe=yZu(this,((B=this.config.args)==null?void 0:B.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var I;if((I=this.config)==null?0:I.attrs)E=this.config.attrs,(B=E.width)&&this.di&&(this.di.style.width=Sw(Number(B)||B,!0)),(E=E.height)&&this.di&&(this.di.style.height=Sw(Number(E)||E,!0))};
var apD=function(E){if(E.config&&E.config.loaded!==!0)if(E.config.loaded=!0,!E.config.args||E.config.args.autoplay!=="0"&&E.config.args.autoplay!==0&&E.config.args.autoplay!==!1){var B;E.api.loadVideoByPlayerVars((B=E.config.args)!=null?B:null)}else E.api.cueVideoByPlayerVars(E.config.args)},w_Z=function(E){var B=!0,I=E.getPlayerElement();
I&&E.config&&(B=I.dataset.version===C7Z(E));return B&&!!_.WA("yt.player.Application.create")},Ybl=function(E){if(!E.isDisposed()&&!E.coQ){var B=w_Z(E);
if(B&&(E.getPlayerElement()?"html5":null)==="html5")E.mbF="html5",E.isReady()||ZHU(E);else if(P7Z(E),E.mbF="html5",B&&E.qj&&E.targetElement)E.targetElement.appendChild(E.qj),ZHU(E);else{E.config&&(E.config.loaded=!0);var I=!1;E.hzg=function(){I=!0;var T=z5l(E,"player_bootstrap_method")?_.WA("yt.player.Application.createAlternate")||_.WA("yt.player.Application.create"):_.WA("yt.player.Application.create");var e=E.config?vRZ(E.config):void 0;T&&T(E.targetElement,e,E.webPlayerContextConfig,E.eVQ);ZHU(E)};
E.coQ=!0;B?E.hzg():(_.Sc(C7Z(E),E.hzg),(B=mMz(E))&&d6J(B||""),Q4r(E)&&!I&&_.ka("yt.player.Application.create",null))}}};
fp.prototype.getPlayerElement=function(){var E=_.tk(document,this.elementId);!E&&this.di&&this.di.querySelector&&(E=this.di.querySelector("#"+this.elementId));return E};
var ZHU=function(E){if(!E.isDisposed()){var B=E.getPlayerElement(),I=!1;B&&B.getApiInterface&&B.getApiInterface()&&(I=!0);if(I){E.coQ=!1;if(!z5l(E,"html5_remove_not_servable_check_killswitch")){var T;if((B==null?0:B.isNotServable)&&E.config&&(B==null?0:B.isNotServable((T=E.config.args)==null?void 0:T.video_id)))return}dMV(E)}else E.ukj=setTimeout(function(){ZHU(E)},50)}},dMV=function(E){iHz(E);
E.u5e=!0;var B=E.getPlayerElement();if(B){E.xE3=h5h(E,B,"addEventListener");E.lyQ=h5h(E,B,"removeEventListener");var I=B.getApiInterface();I=I.concat(B.getInternalApiInterface());for(var T=E.api,e=0;e<I.length;e++){var c=I[e];T[c]||(T[c]=h5h(E,B,c))}}for(var Y in E.fc)E.fc.hasOwnProperty(Y)&&E.xE3&&E.xE3(Y,E.fc[Y]);apD(E);E.kKe&&E.kKe(E.api);E.dNU.publish("onReady",E.api)},h5h=function(E,B,I){var T=B[I];
return function(){var e=_.aG.apply(0,arguments);try{return E.lastError=null,T.apply(B,e)}catch(c){if(I!=="sendAbandonmentPing")throw c.params=I,E.lastError=c,e=new _.P7("PlayerProxy error in method call",{error:c,method:I,playerId:E.playerId}),e.level="WARNING",e;}}},iHz=function(E){E.u5e=!1;
if(E.lyQ)for(var B in E.fc)E.fc.hasOwnProperty(B)&&E.lyQ(B,E.fc[B]);for(var I in E.sEQ)E.sEQ.hasOwnProperty(I)&&clearTimeout(Number(I));E.sEQ={};E.xE3=null;E.lyQ=null;B=E.api;for(var T in B)B.hasOwnProperty(T)&&(B[T]=null);B.addEventListener=function(e,c){E.addEventListener(e,c)};
B.removeEventListener=function(e,c){E.removeEventListener(e,c)};
B.destroy=function(){E.dispose()};
B.getLastError=function(){return E.getLastError()};
B.getPlayerType=function(){return E.getPlayerType()};
B.getCurrentVideoConfig=function(){return E.gYM};
B.loadNewVideoConfig=function(e){E.loadNewVideoConfig(e)};
B.isReady=function(){return E.isReady()}};
fp.prototype.isReady=function(){return this.u5e};
fp.prototype.addEventListener=function(E,B){var I=this;this.isDisposed();var T=yZu(this,B);T&&(_.AD(this.oAC,E)||this.fc[E]||(B=s4V(this,E),this.xE3&&this.xE3(E,B)),this.dNU.subscribe(E,T),E==="onReady"&&this.isReady()&&setTimeout(function(){T(I.api)},0))};
fp.prototype.removeEventListener=function(E,B){this.isDisposed()||(B=yZu(this,B))&&this.dNU.unsubscribe(E,B)};
var yZu=function(E,B){var I=B;if(typeof B==="string"){if(E.p1E[B])return E.p1E[B];I=function(){var T=_.aG.apply(0,arguments),e=_.WA(B);if(e)try{e.apply(_.$i,T)}catch(c){throw T=new _.P7("PlayerProxy error when executing callback",{error:c}),T.level="ERROR",T;}};
E.p1E[B]=I}return I?I:null},s4V=function(E,B){var I=function(T){var e=function(){E.isDisposed();
if(!E.isDisposed())try{E.dNU.publish(B,T!=null?T:void 0)}catch(v){var Y=new _.P7("PlayerProxy error when creating global callback",{error:v.message,event:B,playerId:E.playerId,data:T,originalStack:v.stack,componentStack:v.componentStack});Y.level="WARNING";throw Y;}};
if(z5l(E,"web_player_publish_events_immediately"))e();else{var c=setTimeout(function(){e();_.a_.remove(E.sEQ,String(c))},0);
_.a_.add(E.sEQ,String(c),!0)}};
return E.fc[B]=I};
fp.prototype.getPlayerType=function(){return this.mbF||(this.getPlayerElement()?"html5":null)};
fp.prototype.getLastError=function(){return this.lastError};
var P7Z=function(E){E.cancel();iHz(E);E.mbF=null;E.config&&(E.config.loaded=!1);var B=E.getPlayerElement();B&&(w_Z(E)||!Q4r(E)?E.qj=B:(B&&B.destroy&&B.destroy(),E.qj=null));E.targetElement&&_.GV(E.targetElement)};
fp.prototype.cancel=function(){this.hzg&&_.U0G(C7Z(this),this.hzg);clearTimeout(this.ukj);this.coQ=!1};
fp.prototype.disposeInternal=function(){P7Z(this);if(this.qj&&this.config&&this.qj.destroy)try{this.qj.destroy()}catch(B){var E=new _.P7("PlayerProxy error during disposal",{error:B});E.level="ERROR";throw E;}this.p1E=null;for(E in this.fc)this.fc.hasOwnProperty(E)&&delete this.fc[E];this.gYM=this.config=this.api=null;delete this.targetElement;delete this.di;_.Cx.prototype.disposeInternal.call(this)};
var Q4r=function(E){var B,I;E=(B=E.config)==null?void 0:(I=B.args)==null?void 0:I.fflags;return!!E&&E.indexOf("player_destroy_old_version=true")!==-1},C7Z=function(E){return E.webPlayerContextConfig?E.webPlayerContextConfig.jsUrl:(E=E.config.assets)?E.js:""},mMz=function(E){return E.webPlayerContextConfig?E.webPlayerContextConfig.cssUrl:(E=E.config.assets)?E.css:""},z5l=function(E,B){if(E.webPlayerContextConfig)var I=E.webPlayerContextConfig.serializedExperimentFlags;
else{var T;if((T=E.config)==null?0:T.args)I=E.config.args.fflags}return(I||"").split("&").includes(B+"=true")},vRZ=function(E){for(var B={},I=_.p(Object.keys(E)),T=I.next();!T.done;T=I.next()){T=T.value;
var e=E[T];B[T]=typeof e==="object"?_.a_.clone(e):e}return B};var iHD={},cZQ="player_uid_"+(Math.random()*1E9>>>0);var rh=function(E,B,I,T,e,c){B=B===void 0?document.createElement("div"):B;this.webPlayerContextConfig=E;this.container=B;this.commandResolver=I;this.apiResolver=apc();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Tv;T||c?uhu(this):L1U(this);this.pendingPlayerResponse=T;this.pendingWatchNextResponse=e;this.pendingPlayerVars=c;xMN(this)};
rh.prototype.loadVideoWithPlayerResponse=function(E,B,I){this.loadVideo(E,B,I)};
rh.prototype.loadVideoWithPlayerVars=function(E){return this.loadVideo(void 0,void 0,E)};
rh.prototype.destroy=function(E){if(E=_.tk(document,E))E=cZQ+"_"+_.$l(E),(E=iHD[E])&&E.dispose()};
var OHZ=function(E,B){var I;_.a(function(T){if(T.nextAddress==1)return E.pendingWatchNextResponse=B,E.synchronousApi?(I=E.synchronousApi,T.jumpTo(2)):_.C(T,E.api,3);T.nextAddress!=2&&(I=T.yieldResult);GLV(E,I);E.pendingWatchNextResponse&&(I.updateVideoData({raw_watch_next_response:E.pendingWatchNextResponse}),E.pendingWatchNextResponse=void 0);_.ER(T)})},GLV=function(E,B){var I;
if(!(B==null?0:(I=B.isReady)==null?0:I.call(B))){var T;E=new _.P7("playerApi is falsey",{synchronousApi:E.synchronousApi,apiResolved:E.apiResolver.resolved,playerApiUndefined:B===void 0,playerApiNull:B===null,playerApiReady:(B==null?void 0:(T=B.isReady)==null?void 0:T.call(B))===!0,playerApiMethods:B?Object.keys(B):[]});_.xV(E)}},nRV=function(E,B){if(typeof E[B]==="function")return E[B]()},M5t=function(E){var B=window,I,T=(I=B.ytplayer)==null?void 0:I.bootstrapPlayerContainer;
if((I=T==null?void 0:T.firstElementChild)&&_.bG(I,"html5-video-player")){var e,c,Y=(e=B.ytplayer)==null?void 0:(c=e.bootstrapWebPlayerContextConfig)==null?void 0:c.contextId;e=E.webPlayerContextConfig.contextId;if(Y&&Y===e){T!==E.container&&(T=!1,nRV(I,"getPlayerState")===2&&(T=!0),E.container.appendChild(I),T||nRV(I,"playVideo"));var v;if((v=B.ytplayer)==null?0:v.bootstrapPlayerResponse)E.bootstrapPlayerResponse=B.ytplayer.bootstrapPlayerResponse}}},xMN=function(E){var B,I,T,e,c;
_.a(function(Y){if(Y.nextAddress==1)return E.pageReadyOrDataAvailable?Y.jumpTo(2):_.C(Y,E.pageReadyOrDataAvailableResolver.promise,2);if(Y.nextAddress!=4)return!_.d("kevlar_player_unified_player_loading")||KHQ()&&ERQ()?Y.jumpTo(4):_.C(Y,e5B(),4);M5t(E);if(E.pendingPlayerResponse||E.pendingPlayerVars)B=lpi(E.pendingPlayerResponse,E.pendingWatchNextResponse,E.pendingPlayerVars),E.pendingPlayerResponse&&E.pendingPlayerResponse===E.bootstrapPlayerResponse&&(B.loaded=!0),E.bootstrapPlayerResponse=void 0;
I=Ybi(E.container,B,E.webPlayerContextConfig);((T=B)==null?0:T.loaded)&&E.pendingWatchNextResponse?(OHZ(E,E.pendingWatchNextResponse),E.pendingPlayerResponse=void 0,E.pendingPlayerVars=void 0):HHU(E);e=function(v){I.removeEventListener("onReady",e);E.synchronousApi=v;E.apiResolver.resolve(v)};
I.addEventListener("onReady",e);E.commandResolver!==void 0&&(c=E.commandResolver,I.addEventListener("innertubeCommand",function(v){c(v)}));
_.ER(Y)})};
rh.prototype.loadVideo=function(E,B,I){var T=this,e,c,Y,v,y,Z,P,z,m;return _.a(function(u){if(u.nextAddress==1)return T.pendingPlayerResponse=E,T.pendingWatchNextResponse=B,T.pendingPlayerVars=I,uhu(T),T.synchronousApi?(e=T.synchronousApi,u.jumpTo(2)):_.C(u,T.api,3);u.nextAddress!=2&&(e=u.yieldResult);GLV(T,e);Y=new Promise(function(x){c=x});
v=function(){var x=e.getPlayerResponse();x&&(e.removeEventListener("onVideoDataChange",v),c(x))};
e.addEventListener("onVideoDataChange",v);if(T.pendingPlayerResponse||T.pendingPlayerVars)T.pendingPlayerResponse&&T.pendingPlayerResponse===T.bootstrapPlayerResponse?(c(T.pendingPlayerResponse),T.pendingWatchNextResponse&&OHZ(T,T.pendingWatchNextResponse)):(y=lpi(T.pendingPlayerResponse,T.pendingWatchNextResponse,T.pendingPlayerVars),(m=(Z=T.pendingPlayerResponse)==null?void 0:(P=Z.playerConfig)==null?void 0:(z=P.playbackStartConfig)==null?void 0:z.startPaused)?e.cueVideoByPlayerVars(y.args):e.loadVideoByPlayerVars(y.args)),
HHU(T),T.bootstrapPlayerResponse=void 0;return u.return(Y)})};
var L1U=function(E){if(document.readyState==="complete"||document.readyState==="interactive")uhu(E);else{var B=function(){document.removeEventListener("DOMContentLoaded",B);uhu(E)};
document.addEventListener("DOMContentLoaded",B)}},uhu=function(E){E.pageReadyOrDataAvailable=!0;
E.pageReadyOrDataAvailableResolver.resolve()},HHU=function(E){E.pendingPlayerResponse=void 0;
E.pendingWatchNextResponse=void 0;E.pendingPlayerVars=void 0};
_.Up.Object.defineProperties(rh.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var bS=function(E){nL.call(this,E===void 0?"document_active":E);var B=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(I){B.transition("document_disposed",{event:I})});
window.addEventListener("beforeunload",function(I){B.transition("document_disposed_preventable",{event:I})});
window.addEventListener("unload",function(I){B.transition("document_disposed",{event:I});B.hasRun=new Map})};
_.L(bS,nL);
bS.prototype.runPreventableDispose=function(E,B){if(!this.hasRun.get("document_disposed_preventable")){E(B==null?void 0:B.event);var I,T;if((B==null?0:(I=B.event)==null?0:I.defaultPrevented)||(B==null?0:(T=B.event)==null?0:T.returnValue)){B.event.returnValue||(B.event.returnValue=!0);B.event.defaultPrevented||B.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")};
bS.prototype.runDispose=function(E,B){this.hasRun.get("document_disposed")?this.transition("document_active"):(E(B==null?void 0:B.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
bS.prototype.runFlush=function(E,B){E(B==null?void 0:B.event);this.transition("document_active")};
bS.prototype.runActive=function(){};var oe=function(E){nL.call(this,E===void 0?"document_visibility_unknown":E);var B=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(I){document.visibilityState==="visible"?B.transition("document_visible",{event:I}):B.transition("document_hidden",
{event:I})});
_.d("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(I){B.transition("document_backgrounded",{event:I})}),window.addEventListener("focus",function(I){B.transition("document_foregrounded",{event:I})}))};
_.L(oe,nL);oe.prototype.runVisible=function(E,B){E(B==null?void 0:B.event);_.d("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
oe.prototype.runHidden=function(E,B){E(B==null?void 0:B.event);_.d("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
oe.prototype.runBackgrounded=function(E,B){E(B==null?void 0:B.event)};
oe.prototype.runForegrounded=function(E,B){E(B==null?void 0:B.event)};var A6=function(){this.teardownLifecycle=new bS;this.visibilityLifecycle=new oe};
A6.prototype.install=function(){var E=_.aG.apply(0,arguments),B=this;E.forEach(function(I){B.teardownLifecycle.install(I)});
E.forEach(function(I){B.visibilityLifecycle.install(I)})};var j_=function(){A6.call(this);var E={};this.install((E.document_disposed={callback:this.abortSlisAndFlush},E));_.d("combine_ve_grafts")&&(E={},this.install((E.document_disposed={callback:this.flushInteractionLoggingAttachVes},E)));E={};this.install((E.flush_logs={callback:this.logFinalPayload},E));_.d("web_log_cfg_cee_ks")||_.PC(_.Ll,NgZ)};
_.L(j_,A6);var vRc=function(){j_.loggingInstance||(j_.loggingInstance=new j_);return j_.loggingInstance};
j_.prototype.logFinalPayload=function(){if(_.d("web_fp_via_jspb")){var E=new sjR,B=_.nC();B&&_.$r(E,1,B);B=_.d("jspb_sparse_encoded_pivot")?new Za([{}]):new Za;_.V$(B,380,u7V,E);AGF("finalPayload",B);_.d("web_fp_via_jspb_and_json")&&_.hK("finalPayload",{csn:_.nC()})}else _.hK("finalPayload",{csn:_.nC()})};
j_.prototype.abortSlisAndFlush=function(){syr(X2);r8!=null&&r8.flush()};
j_.prototype.flushInteractionLoggingAttachVes=function(){U9R(_.lu())};
var NgZ=function(){var E=_.HA("CLIENT_EXPERIMENT_EVENTS");if(E){var B=rDG();E=_.p(E);for(var I=E.next();!I.done;I=E.next())I=I.value,B(I)&&_.hK("genericClientExperimentEvent",{eventType:I});delete _.nc.CLIENT_EXPERIMENT_EVENTS}};var gRU={};
gRU.YtPlayerBehavior=[_.Wy.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 E=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Tv;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;yZF(function(){E.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Lg(this,"pan-down"),_.d("kevlar_pinch_fullscreen")&&_.e7().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.d("kevlar_pinch_fullscreen")&&_.e7().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(E,B,I){var T=this;VH(this.useUnifiedPlayer_());if(this.mainAppPlayer_)VH(!1,"MainAppPlayer already created.");else{var e=_.d("kevlar_player_container_query_killswitch")?this.$.container:_.n(this.hostElement).querySelector("#container");this.mainAppPlayer_=new rh(this.getWebPlayerContextConfig_(),e,function(c){return _.$g(c,T.hostElement)},E,B,I);
this.mainAppPlayer_.api.then(function(c){T.player_=c;T.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Ay6.resolve(c)})}},
loadVideoWithPlayerResponse:function(E,B){var I=this;if(this.useUnifiedPlayer_()){var T=this.watchNextData,e,c=(e=E.videoDetails)==null?void 0:e.videoId,Y,v,y;(e=(Y=this.watchNextData)==null?void 0:(v=Y.currentVideoEndpoint)==null?void 0:(y=v.watchEndpoint)==null?void 0:y.videoId)&&c!=e&&(T=void 0,_.d("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(E,T,B):this.createMainAppPlayer_(E,T,B);this.mainAppPlayer_.api.then(function(){_.$O(I.hostElement,
"yt-player-updated")})}else this.update(Vv4(E,B))},
loadVideoWithPlayerVars:function(E){var B=this;this.useUnifiedPlayer_()?(_.d("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(E):this.createMainAppPlayer_(void 0,void 0,E),this.mainAppPlayer_.api.then(function(){_.$O(B.hostElement,"yt-player-updated")})):this.update({args:E})},
update:function(E){var B=this;if(this.useUnifiedPlayer_())VH(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(E);var I=$6F(E.args);I&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==I&&Object.assign(E.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(E).then(function(T){_.$O(B.hostElement,"yt-player-updated",_.d("kevlar_player_updated_obsolete_player_killswitch")?
T:void 0)})}_.GF(new _.P7("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,B.getPlayerPromise(),2);I=T.yieldResult;if(!I)throw Error("vh");E&&B.updatePlayerPlaylist_(E);_.ER(T)})},
acquireApi_:function(E){var B=this;if(this.useUnifiedPlayer_())VH(!1,"Invalid method call in kevlar_unified_player.");else return _.Ll.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(VH(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(I){B.shouldAutoplay_(E)?I.loadVideoByPlayerVars(E.args):I.cueVideoByPlayerVars(E.args)})):this.initPlayerPromise_=this.initPlayerContainer_(E),this.initPlayerPromise_},
initPlayerContainer_:function(E){var B=this;if(this.useUnifiedPlayer_())VH(!1,"Invalid method call in kevlar_unified_player.");else return VH(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.OG(Error("wh")),VH(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.d("kevlar_player_container_query_killswitch")?this.$.container:_.n(this.hostElement).querySelector("#container"),e5B().then(function(){var I=B.initPlayer_(E);B.playerResolver_.resolve(I);
return I})},
onPlayerReady_:function(E,B){this.useUnifiedPlayer_()?VH(!1,"Invalid method call in kevlar_unified_player."):(E.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Ay6.resolve(E),B(E))},
maybeCallApiMethodOnElement_:function(E,B){if(typeof E[B]==="function")return E[B]()},
maybeAdoptBootstrapPlayer_:function(){var E=window,B,I=(B=E.ytplayer)==null?void 0:B.bootstrapPlayerContainer;if((B=I==null?void 0:I.firstElementChild)&&B.classList.contains("html5-video-player")){var T,e,c=(T=E.ytplayer)==null?void 0:(e=T.bootstrapWebPlayerContextConfig)==null?void 0:e.contextId;T=this.getWebPlayerContextConfig_().contextId;if(c&&c===T){I!==this.playerContainer_&&(I=!1,this.maybeCallApiMethodOnElement_(B,"getPlayerState")===2&&(I=!0),this.playerContainer_.appendChild(B),I||this.maybeCallApiMethodOnElement_(B,
"playVideo"));var Y;if((Y=E.ytplayer)==null?0:Y.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=E.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(E){var B=this;if(this.useUnifiedPlayer_())VH(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(I){B.maybeAdoptBootstrapPlayer_();var T=E?qTQ(E):void 0;T&&T==B.bootstrapPlayerResponse_&&(E.loaded=!0);T=B.playerContainer_;var e=B.getWebPlayerContextConfig_();T=Ybi(T,E,e);B.player_=T;B.onPlayerReadyEvent_=B.onPlayerReady_.bind(B,B.player_,I);B.player_.addEventListener("onReady",B.onPlayerReadyEvent_);B.player_.addEventListener("innertubeCommand",
B.onPlayerInnerTubeCommand_.bind(B))})},
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(E){E.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(E){E.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var E=_.Q().resolve(_.oS).getCurrentPage();E&&E.getScrollTop()<=0?_.Lg(this,"pan-down"):_.Lg(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(E){E.isFullscreen()||E.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(E){E.isFullscreen()&&E.toggleFullscreen()})},
updatePlayerPlaylist_:function(E){var B=this,I,T,e;return _.a(function(c){if(c.nextAddress==1)return I=_.Q().resolve(_.Fx(_.Hx)),T=!!(I&&I.playlistComponent&&I.playlistComponent.loopOn),_.C(c,B.getPlayerPromise(),2);var Y=e=c.yieldResult,v=Y.updatePlaylist,y=[];if(_.d("kevlar_player_playlist_use_local_index")){var Z,P;var z=(P=(Z=E.localCurrentIndex)!=null?Z:E.currentIndex)!=null?P:0}else{var m;z=(m=E.currentIndex)!=null?m:0}if(E.contents)for(Z=0;Z<E.contents.length;Z++)if((P=E.contents[Z])&&P.playlistPanelVideoRenderer)if(KWd(P)){P=
P.playlistPanelVideoRenderer;m="";P.shortBylineText&&(m=_.U3(P.shortBylineText));var u="";P.title?u=_.U3(P.title):P.unplayableText&&(u=_.U3(P.unplayableText));y.push({author:m,title:u,encrypted_id:P.videoId})}else Z<z&&--z;v.call(Y,{index:z,list:E.playlistId?E.playlistId:"",loop:T,playlist_title:E.title,playlist_length:y.length,video:y,fetch:0,external_list:"1",title:E.title?E.title:"",playlist_author:E.ownerName?_.U3(E.ownerName):void 0});_.ER(c)})},
focusOnPlayer:function(){_.AJ(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var E=this.playerContainer_.querySelector(".html5-video-player");E&&(_.SbX(_.Q().resolve(_.P$)),E.focus())}})},
preparePlayer:function(){var E=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(B){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")B();else{var I=function(){document.removeEventListener("DOMContentLoaded",I);B()};
document.addEventListener("DOMContentLoaded",I)}})).then(function(){return e5B()}).then(function(){E.initPlayerPromise_||E.preparePlayerJobId_||(E.preparePlayerJobId_=_.PC(_.Ll,function(){E.initPlayerPromise_||(E.initPlayerPromise_=E.initPlayerContainer_())}))}):_.GF(new _.P7("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(E){this.useUnifiedPlayer_()?VH(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(E)||(E.args.autoplay="0")},
shouldAutoplay_:function(E){if(this.useUnifiedPlayer_())VH(!1,"Invalid method call in kevlar_unified_player.");else{var B=this.get("args.el",E);return B&&B!="detailpage"&&this.isMiniplayerActive_()||B&&(B=="sponsorshipsoffer"||B=="handlesclaiming")&&this.get("args.autoplay",E)=="0"?!1:(E=qTQ(E))&&this.get("playerConfig.playbackStartConfig.startPaused",E)?!1:!0}},
isMiniplayerActive_:function(){return _.Q().resolve(_.W3).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var E=this.getPlayer();if(E){var B=E.getPlayerState();_.d("kevlar_player_check_ad_state_on_stop")&&(B=E.getPlayerState(E.getPresentingPlayerType()));B!=5&&E.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(E,B,I){I=I===void 0?!1:I;var T=this,e,c,Y,v;return _.a(function(y){if(y.nextAddress==1)return B||(B=T.hostElement),e=T.useUnifiedPlayer_()?!!T.mainAppPlayer_:!!T.initPlayerPromise_,e?_.C(y,T.getPlayerPromise(),2):(I?E.insertBefore(B,E.firstChild):E.appendChild(B),y.return());c=y.yieldResult;Y=c.getPlayerState(c.getPresentingPlayerType());v=!1;if(Y==-1||Y==1||Y==3)v=!0;I?E.insertBefore(B,E.firstChild):E.appendChild(B);v&&c.playVideo();c.setSize(NaN,NaN);_.ER(y)})},
watchNextDataChanged_:function(E){var B=this;E&&(this.useUnifiedPlayer_()&&_.d("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&OHZ(this.mainAppPlayer_,E):this.getPlayerPromise().then(function(I){I.updateVideoData(B.computeWatchNextPlayerVars_(E))}))},
computeWatchNextPlayerVars_:function(E){if(this.useUnifiedPlayer_()&&_.d("kevlar_unified_player_update_watch_next_killswitch"))VH(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:E}},
maybeSendAbandonmentPing_:function(){var E=this.getPlayer();E&&E.getPlayerState()!=5&&E.getPlayerState()!=0&&E.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var E=_.HA("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(E=Object.assign({},E),E.rootElementId=this.playerId);E.serializedExperimentIds&&E.serializedExperimentFlags||_.OG(Error("xh"));return E},
hasWebPlayerContextConfig_:function(){return!!_.HA("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(E){this.useUnifiedPlayer_()?VH(!1,"Invalid method call in kevlar_unified_player."):_.$g(E,this.hostElement)},
useUnifiedPlayer_:function(){var E=_.d("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.d("kevlar_unified_player")||E}}];var JZr={};JZr.YtPlaylistPanelBehavior=[_.R.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(E){E=E.detail;if(E.actions.loop!=void 0||E.actions["yt-icons:loop"]!=void 0)this.loopOn=E.actions.loop||E.actions["yt-icons:loop"];if(E.actions.shuffle!=void 0||E.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=E.actions.shuffle||E.actions["yt-icons:shuffle"]},
setMenuData_:function(E){if(!E||!E.playlistButtons||E.isInfinite)return null;for(var B=E.playlistButtons.menuRenderer.topLevelButtons,I=B.length,T=0;T<I;T++)if(B[T].toggleButtonRenderer){var e=B[T].toggleButtonRenderer;e.defaultIcon.iconType=="LOOP"&&this.loopOn?e.isToggled=this.loopOn:e.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(e.isToggled=this.shuffleOn)}return E.playlistButtons}}];var W1z=function(E){Kg.call(this,E,132);this.isDocument=E===document.documentElement};
_.L(W1z,Kg);W1z.prototype.calculateScrollDelta=function(E,B,I){var T=0;E<B?T=E<B-100?-48:-8:E>B+I&&(T=E>B+I+100?48:8);return T};
W1z.prototype.JSC$9188_onMouseMove=function(E){this.isDocument||(E.clientX=E.event_.pageX,E.clientY=E.event_.pageY);Kg.prototype.JSC$9188_onMouseMove.call(this,E)};var Uu=function(){var E=_.l6.apply(this,arguments)||this;E._noAccessors=!0;E.scrollElement=document.documentElement;E.JSC$12111_dragListGroup=null;E.dragScrollSupport=null;E.onDraggerCreated=function(B){var I=B.JSC$9184_dragger;I.scrollTarget_=E.scrollElement;B=B.draggerEl;I&&B.menuOpened&&I.setEnabled(!1)};
E.onDragStart=function(B){var I=B.draggerEl;B=B.currDragItem;var T=Object.assign({},B==null?void 0:B.data);T.trackingParams=void 0;I.data=T;I.style.position="absolute";I.style.width=(B==null?void 0:B.clientWidth)+"px";I.style.zIndex="2030";I.onDrag&&I.onDrag();_.d("web_owner_document_fallback_killswitch")?(B=document.querySelector("ytd-app"))&&_.n(B).appendChild(I):(B=_.Zs(I),(T=B.querySelector("ytd-app"))?_.n(T).appendChild(I):B.body.appendChild(I));E.dragScrollSupport=new W1z(E.scrollElement);E.dragScrollSupport.horizontalScrolling_=
!1;I=E.dragScrollSupport;I.constrainScroll_=!!I.margin_&&!1};
E.onDrop=function(B){E.handleDrop(B);E.dragScrollSupport&&(_.bl(E.dragScrollSupport),E.dragScrollSupport=null)};
E.onReorderableScroll=function(){if(E.JSC$12111_dragListGroup){var B=E.JSC$12111_dragListGroup;PjN(B,B.currDragItem_)}};
return E};
_.L(Uu,_.l6);Uu.prototype.detached=function(){_.X_R(this)};
_.X_R=function(E){E.JSC$12111_dragListGroup&&(_.zw(E.JSC$12111_dragListGroup,iqV,E.onDragStart),_.zw(E.JSC$12111_dragListGroup,vGN,E.onDragStart),E.JSC$12111_dragListGroup.dispose(),E.JSC$12111_dragListGroup=null);E.dragScrollSupport&&(_.bl(E.dragScrollSupport),E.dragScrollSupport=null);E.scrollElement.removeEventListener("scroll",E.onReorderableScroll)};
_.rZu=function(E,B,I,T){T=T===void 0?"":T;_.X_R(E);I&&(E.scrollElement=I);E.JSC$12111_dragListGroup=new We;E.JSC$12111_dragListGroup.hysteresisDistance_=2;Cjl(E.JSC$12111_dragListGroup,B);E.JSC$12111_dragListGroup.draggerElClasses_=_.Ir("dragging").split(" ");T&&w8$(E.JSC$12111_dragListGroup,function(e){var c=e||document,Y=null;c.getElementsByClassName?Y=c.getElementsByClassName(T)[0]:Y=a1N("*",T,e);return Y||e});
_.vV(E.JSC$12111_dragListGroup,lkl,E.onDraggerCreated);_.vV(E.JSC$12111_dragListGroup,iqV,E.onDragStart);_.vV(E.JSC$12111_dragListGroup,vGN,E.onDrop);E.JSC$12111_dragListGroup.init();E.scrollElement.addEventListener("scroll",E.onReorderableScroll,{passive:!0})};
Uu.prototype.handleDrop=function(){};
_.Up.Object.defineProperties(Uu.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.k([_.X({value:100}),_.t("design:type",Number)],Uu.prototype,"scrollMargin",void 0);Uu=_.k([_.cl()],Uu);_.bHz=[Uu.prototype];_.k2={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(E,B,I){var T=this.getClickTarget_(B);if(T&&this.isClickAllowed_(T)){B.preventDefault();E=(0,_.a_.unsafeClone)(E);var e=this.getContainerBoundingRect();B=this.getRelativeClickXy_(B,e);this.expandEndpointUrlMacros_(E,{NX:B[0],NY:B[1],NB:T.code});I&&this.truncateWebCommendMetadataUrl_(E);_.$O(this.hostElement,"yt-navigate",{endpoint:E})}},
getClickTarget_:function(E){if(!this.clickTargetMap)return null;E=_.W8(E)||[];E=_.p(E);for(var B=E.next();!B.done;B=E.next()){B=B.value;if(B===_.n(this.hostElement).querySelector("#menu"))break;if(B=this.clickTargetMap.get(B.id))return B}return null},
getRelativeClickXy_:function(E,B){var I=E.detail.x,T=E.detail.y;_.d("use_on_click_for_desktop_display_ad")&&E.clientX!=null&&E.clientY!=null&&(I=E.clientX,T=E.clientY);E=Math.round(I-B.left);B=Math.round(T-B.top);return E<0||B<0?[null,null]:[E,B]},
getContainerBoundingRect:function(){return _.n(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(E,B){for(var I=_.p(E.loggingUrls||[]),T=I.next();!T.done;T=I.next())T=T.value,T.baseUrl&&(T.baseUrl=vM(T.baseUrl,B));E.urlEndpoint&&E.urlEndpoint.url&&(E.urlEndpoint.url=vM(E.urlEndpoint.url,B));E.commandMetadata&&E.commandMetadata.webCommandMetadata&&E.commandMetadata.webCommandMetadata.url&&(E.commandMetadata.webCommandMetadata.url=vM(E.commandMetadata.webCommandMetadata.url,B))},
truncateWebCommendMetadataUrl_:function(E){if(E.commandMetadata&&E.commandMetadata.webCommandMetadata&&E.commandMetadata.webCommandMetadata.url){var B=E.commandMetadata.webCommandMetadata.url,I=B.indexOf("&pp=");if(I>0){var T=B.indexOf("&",I+1);E.commandMetadata.webCommandMetadata.url=T>I&&T<B.length?B.slice(0,I)+B.slice(T):B.slice(0,I)}}},
configureClickTargets:function(E,B,I){this.containerId=E;this.clickTargetMap=new Map;E=_.p(B);for(B=E.next();!B.done;B=E.next())if(B=B.value,B.location){var T=I.get(B.location);T&&(_.VQ(_.n(this.hostElement).querySelector("#"+T),"yt-simple-endpoint",this.isClickAllowed_(B)),this.clickTargetMap.set(T,B))}},
isClickAllowed_:function(E){return E.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||E.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||E.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||E.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.t6={};
_.t6.YtLazyListBehavior=[_.oy.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 E=(this.constructor.generatedFrom||this).observers;E||(E=[]);E.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
E}},
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 E=this.renderElementsOutsideVisibleArea_;E&&(V4t(E,4),E.processSignal())},
deepLazyListObserver_:function(E){var B=this;if(E){var I=E.value||[];if(this.itemsPath==E.path){var T=this.nonDeferredItemCount;E=0;T>-1&&I.length>T&&(E=_.HA("REMAINING_DOVA_DEFERRED_CHUNKS",-1));E>0?(T>0&&(T=I.slice(0,T),this.setInitialItemsOnDataChanged(T)),(T=this.renderElementsOutsideVisibleArea_)?T.cancel():(T=this.renderElementsOutsideVisibleArea_=new _.j7(2,"eocs"),_.oGc(window,"scroll",function(){return B.renderDeferredElements()})),_.Uy(T,function(){B.setInitialItemsOnDataChanged(I)}),_.MD("REMAINING_DOVA_DEFERRED_CHUNKS",
E-1)):this.setInitialItemsOnDataChanged(I)}else if(this.itemsPath+".splices"==E.path)this.onItemsUpdated_(I);
else T="shownItems"+E.path.substr(this.itemsPath.length),this.useSignals&&T==="shownItems.length"||this.notifyPath(T,E.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(E){E&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(E),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(E){E=E.indexSplices;for(var B=0,I=E.length;B<I;B++){var T=E[B];if(T.index<this.shownCount&&(T.removed&&this.splice("shownItems",T.index,T.removed.length),T.addedCount)){var e=T.object.slice(T.index,T.index+T.addedCount);T=["shownItems",T.index,0];T.push.apply(T,e);this.splice.apply(this,T)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(E){this.cancelPendingTasks_();E||(E=[]);this.items_=E;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&&(_.gU("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.AJ(this,this.tryRenderChunk_)))},
fillRange_:function(E,B){this.canShowMore&&this.items_&&(E=this.items_.slice(E,B),E.unshift("shownItems"),this.push.apply(this,E),this.shownCount=B,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var E=this;this.canShowMore&&_.OM(this,"renderChunk",function(){E.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.gU("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.wT(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var E=this.renderElementsOutsideVisibleArea_;E&&(E.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var E=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(E-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=E;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(E){return Math.ceil(1E3/E)},
onCanShowMoreUpdated_:function(E){this.data&&this.items_!==null&&(E?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(E){!this.shouldUseTaskManager()&&this.data&&(!E&&this.canShowMore?(_.JNc(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):E&&this.partiallyRenderedItems_.has(this.items_)&&(_.d("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var q9;_.fz={};
q9=function(){var E=_.l6.apply(this,arguments)||this;E.atStart=!0;E.atEnd=!0;E.startIndex=0;E.endIndex=0;E.scrollCount=0;E.initialStartIndex=0;E.disableScrollEventListener=!1;E.useFloorScrolling=!1;E.isSearch=!1;E.dragging=!1;E.dragMouseStart=0;E.dragOffsetStart=0;E.disableWheelScroll=!1;E.centerListItems=!1;E.offset=0;E.minComponentWidth=0;E.marginWidthRight=0;E.marginWidthLeft=0;E.setButtonsStateRequested=!1;E.itemsVisibilityObserver=null;E.fullyVisibleItemsIndices=[];E.JSC$12122_onWheelScroll=function(B){if(E.isSearch&&
!E.disableWheelScroll&&_.d("desktop_enable_dmpanel_wheel_scroll")){var I=B.shiftKey?Math.abs(B.deltaY)>Math.abs(B.deltaX)?B.deltaY:B.deltaX:B.deltaX;I!==0&&(B.preventDefault(),E.ytLazyListBehavior.fillRemainingListItems(),E.offset+=I,VD(E),E.reposition_())}};
E.onPointerDown=function(B){oRV(E)&&(E.dragMouseStart=B.clientX,E.dragOffsetStart=E.offset,E.dragging=!0)};
E.onPointerMove=function(B){oRV(E)&&E.dragging&&(E.ytLazyListBehavior.fillRemainingListItems(),E.offset=E.dragOffsetStart-(B.clientX-E.dragMouseStart),VD(E),E.reposition_())};
E.onPointerUp=function(){oRV(E)&&(E.dragging=!1)};
return E};
_.L(q9,_.l6);var AZ6=function(E){var B=_.n(E.hostElement).querySelector("#items").children;if(!B)return 0;var I=0;E=_.p(E.fullyVisibleItemsIndices);for(var T=E.next();!T.done;T=E.next())I+=B[T.value].clientWidth;return I},oRV=function(E){return E.isSearch&&_.d("desktop_enable_dmpanel_click_drag_scroll")};
q9.prototype.created=function(){this.cachedViewportWidth=_.HA("initialInnerWidth")||window.innerWidth;this.JSC$12122_cachedViewportHeight=_.HA("initialInnerHeight")||window.innerHeight;_.HA("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.MD("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
q9.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.d("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();j46(this)};
q9.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.d("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var E;(E=this.itemsVisibilityObserver)==null||E.disconnect();this.itemsVisibilityObserver=null;var B;(B=this.itemsObserver)==null||B.disconnect()};
var j46=function(E){var B=_.n(E.hostElement).querySelector("#scroll-container");if(B){if(!E.itemsVisibilityObserver){var I=window.getComputedStyle(B).marginRight;E.itemsVisibilityObserver=new IntersectionObserver(function(T){UMZ(E,T)},{root:B,
rootMargin:I,threshold:.98})}if(B=_.n(E.hostElement).querySelector("#items"))E.itemsObserver=new qKZ(B,function(T){kL$(E,T)})}},kL$=function(E,B){t5t(E)&&(Array.from(B.addedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){E.itemsVisibilityObserver&&E.itemsVisibilityObserver.observe(I)}),Array.from(B.removedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){E.itemsVisibilityObserver&&E.itemsVisibilityObserver.unobserve(I)}))},
UMZ=function(E,B){var I=new Set(E.fullyVisibleItemsIndices);
B=_.p(B);for(var T=B.next();!T.done;T=B.next()){T=T.value;var e=T.target.parentElement;e?(e=Array.from(e.children).indexOf(T.target),T.isIntersecting?I.add(e):I.has(e)&&I.delete(e)):_.OG(new _.P7("Parent element not found",T.target.nodeName))}E.fullyVisibleItemsIndices=Array.from(I).sort(function(c,Y){return c-Y});
I.size===0?_.OG(new _.P7("No visible entries in horizontal list")):(E.startIndex=E.fullyVisibleItemsIndices[0],E.endIndex=E.fullyVisibleItemsIndices[E.fullyVisibleItemsIndices.length-1])},t5t=function(E){E.data?E=(E=E.data)&&E.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===E.itemSizeConstraint:!1:E=!1;
return E};
_.l=q9.prototype;_.l.addScrollEventListeners=function(){var E=_.n(this.hostElement).querySelector("#scroll-container");E.style.touchAction="pan-y";E.addEventListener("wheel",this.JSC$12122_onWheelScroll);E.addEventListener("pointerdown",this.onPointerDown);E.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.l.removeScrollEventListeners=function(){var E=_.n(this.hostElement).querySelector("#scroll-container");E.removeEventListener("wheel",this.JSC$12122_onWheelScroll);E.removeEventListener("pointerdown",this.onPointerDown);E.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.l.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.AJ(this,this.setStartIndex,[this.initialStartIndex])};
_.l.reposition_=function(){var E=_.HA("HTML_DIR")=="rtl"?"":"-",B=_.n(this.hostElement).querySelector("#items");B&&(B.style.transform="translateX("+E+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.l.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.AJ(this,this.setButtonsState_))};
_.l.setButtonsState_=function(){this.setButtonsStateRequested=!1;var E=_.n(this.hostElement).querySelector("#items").firstElementChild;if(E){this.minComponentWidth||(this.minComponentWidth=fpz(this,E));E=_.n(this.hostElement).querySelector("#scroll-container").clientWidth;var B=_.n(this.hostElement).querySelector("#items").clientWidth,I=this.get(this.ytLazyListBehavior.itemsPath,this);if(I){var T=Math.round(E/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+T,I.length)-1)}this.ytLazyListBehavior.canShowMore?B+this.minComponentWidth>=this.offset+E&&(this.atEnd=!1):this.atEnd=this.offset+E>=B-20?!0:!1;this.atStart=this.offset<=20}};
_.l.setStartIndex=function(E){if(!this.minComponentWidth){var B=_.n(this.hostElement).querySelector("#items").firstElementChild;if(!B)return;this.minComponentWidth=fpz(this,B)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*E;VD(this);this.reposition_()};
_.l.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.po();var E=_.n(this.hostElement).querySelector("#scroll-container").clientWidth;_.d("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=fpz(this,_.n(this.hostElement).querySelector("#items").firstElementChild));E=this.useFloorScrolling?Math.floor(E/this.minComponentWidth)||1:Math.round(E/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&V5u(this);this.offset+=t5t(this)?
AZ6(this):E*this.minComponentWidth;VD(this);this.reposition_();this.scrollCount++};
_.l.prevClick_=function(){var E=_.n(this.hostElement).querySelector("#scroll-container").clientWidth;E=this.useFloorScrolling?Math.floor(E/this.minComponentWidth)||1:Math.round(E/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=t5t(this)?AZ6(this):this.minComponentWidth*this.scrollCount-1):this.offset-=t5t(this)?AZ6(this):E*this.minComponentWidth;this.centerListItems&&V5u(this);VD(this);this.reposition_()};
_.l.onIronResize_=function(){this.resizeSupportEnabled&&_.AJ(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.l.onItemsTransitionEnd_=function(E){_.XN(E)===_.n(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.l.onChildElementFocus_=function(E){E=E.target.closest("#items > *");var B=_.n(this.hostElement).querySelector("#scroll-container");if(B.contains(E)){if(_.d("web_horizontal_list_behavior_focus_killswitch"))if(E.offsetLeft<this.offset)this.offset=Math.abs(E.offsetLeft)<E.clientWidth?0:E.offsetLeft;else if(E.offsetLeft+E.clientWidth>this.offset+B.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.po(),this.offset=E.offsetLeft+E.clientWidth-B.clientWidth;else return;else{var I=_.n(this.hostElement).querySelector("#items"),
T=_.HA("HTML_DIR")==="rtl",e=T?I.clientWidth-E.offsetLeft:E.offsetLeft;I=T?I.clientWidth-(E.offsetLeft+E.clientWidth):E.offsetLeft+E.clientWidth;var c=T?e>this.offset+B.clientWidth:e<this.offset,Y=T?I<this.offset:I>this.offset+B.clientWidth,v=T?c:Y;if(T?Y:c)B=T?I:e,this.offset=Math.abs(B)<E.clientWidth?0:B;else if(v)this.ytLazyListBehavior.fillRemainingListItems(),_.po(),this.offset=(T?e:I)-B.clientWidth;else return}VD(this);this.reposition_()}};
_.l.observeShownItems_=function(){this.reset()};
_.l.checkComponentWidthResize=function(){var E=_.n(this.hostElement).querySelector("#items").firstElementChild;E&&(E=fpz(this,E),this.centerListItems||E!==this.minComponentWidth)&&(this.minComponentWidth=E,this.offset=E*this.scrollCount,this.centerListItems&&V5u(this),VD(this),this.reposition_())};
var fpz=function(E,B){var I=window.getComputedStyle(B).marginRight;I=Math.floor(Number(I.replace("px","")));var T=window.getComputedStyle(B).marginLeft;T=Math.floor(Number(T.replace("px","")));E.centerListItems&&!E.marginWidthRight&&(E.marginWidthRight=I,E.marginWidthLeft=T);return E.resizeSupportEnabled?B.getBoundingClientRect().width+I:B.offsetWidth+I},VD=function(E){var B=_.n(E.hostElement).querySelector("#scroll-container").clientWidth,I=_.n(E.hostElement).querySelector("#items").clientWidth;
E.offset<0?E.offset=0:E.offset+B>=I&&(E.offset=I-B)},V5u=function(E){E.offset-=(_.n(E.hostElement).querySelector("#scroll-container").clientWidth+E.marginWidthRight-E.minComponentWidth)/2-E.marginWidthLeft};
_.Up.Object.defineProperties(q9.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var E=_.HA("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(E==-1)E=this.JSC$12122_cachedViewportHeight,E=E>1320?5:E>1020?4:E>730?3:E>430?2:1;else if(E==0)return 0;_.MD("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",E-1);E=_.HA("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(E>-1)return E;E=this.cachedViewportWidth;E=E>1600?6:E>1400?5:E>1300?4:E>1090?5:E>870?4:E>660?3:2;_.MD("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
E);return E},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.d("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
q9.prototype.observeShownItems_=q9.prototype.observeShownItems_;q9.prototype.onChildElementFocus_=q9.prototype.onChildElementFocus_;q9.prototype.onItemsTransitionEnd_=q9.prototype.onItemsTransitionEnd_;q9.prototype.onIronResize_=q9.prototype.onIronResize_;q9.prototype.prevClick_=q9.prototype.prevClick_;q9.prototype.nextClick_=q9.prototype.nextClick_;q9.prototype.setButtonsState_=q9.prototype.setButtonsState_;q9.prototype.requestButtonsStateUpdate_=q9.prototype.requestButtonsStateUpdate_;
q9.prototype.reposition_=q9.prototype.reposition_;q9.prototype.reset=q9.prototype.reset;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.t6.YtLazyListBehavior),_.t("design:type",Object)],q9.prototype,"ytLazyListBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],q9.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],q9.prototype,"atStart",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],q9.prototype,"atEnd",void 0);_.k([_.X(),_.t("design:type",Object)],q9.prototype,"startIndex",void 0);_.k([_.X(),_.t("design:type",Object)],q9.prototype,"endIndex",void 0);_.k([_.X({value:6}),_.t("design:type",Number)],q9.prototype,"initialCount",void 0);_.k([_.X(),_.t("design:type",Object)],q9.prototype,"scrollCount",void 0);_.k([_.X(),_.t("design:type",Object)],q9.prototype,"initialStartIndex",void 0);
_.k([_.X(),_.t("design:type",Object)],q9.prototype,"disableScrollEventListener",void 0);_.k([_.X(),_.t("design:type",Object)],q9.prototype,"supportComponentResize",void 0);_.k([_.X({value:function(){var E=this;return function(){return E.prevClick_()}}}),
_.t("design:type",Function)],q9.prototype,"boundPrevClick",void 0);_.k([_.X({value:function(){var E=this;return function(){return E.nextClick_()}}}),
_.t("design:type",Function)],q9.prototype,"boundNextClick",void 0);_.k([_.X(),_.t("design:type",Object)],q9.prototype,"useFloorScrolling",void 0);_.k([_.X(),_.t("design:type",Object)],q9.prototype,"isSearch",void 0);_.k([_.X(),_.t("design:type",Object)],q9.prototype,"dragging",void 0);_.k([_.X(),_.t("design:type",Object)],q9.prototype,"dragMouseStart",void 0);_.k([_.X(),_.t("design:type",Object)],q9.prototype,"dragOffsetStart",void 0);
_.k([_.X(),_.t("design:type",Object)],q9.prototype,"disableWheelScroll",void 0);_.k([_.X(),_.t("design:type",Object)],q9.prototype,"centerListItems",void 0);_.k([_.RN("iron-resize"),_.EM("guideOpened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],q9.prototype,"onIronResize_",null);_.k([_.RN("transitionend"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],q9.prototype,"onItemsTransitionEnd_",null);
_.k([_.RN("focusin"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],q9.prototype,"onChildElementFocus_",null);_.k([_.EM("shownItems"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],q9.prototype,"observeShownItems_",null);q9=_.k([_.cl()],q9);_.fz.YtdHorizontalListBehavior=[];_.fz.YtdHorizontalListBehavior.push(_.OI,_.R.YtRendererBehavior,_.t6.YtLazyListBehavior,_.Hy.YtdGuideStateAwareBehavior,q9.prototype);var w_t=["APP_STATE","PI"];var qb$=_.km(["about:blank"]),F1Z={pushState:window.history.pushState,replaceState:window.history.replaceState};var FK=function(E){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=E;this.internalPushState=E.pushState.bind(E);this.internalReplaceState=E.replaceState.bind(E)};
FK.prototype.init=function(){this.initialized=!0};
FK.prototype.pushState=function(E,B){this.initialized||this.init();this.internalPushState&&this.internalPushState(E,"",B)};
FK.prototype.replaceState=function(E,B){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(E,"",B)};
FK.prototype.getState=function(){return this.history&&this.history.state};var DMr=function(E){var B=function(){var I=E.apply(this,arguments)||this;I.boundHistoryPushState=!1;I.boundHistoryReplaceState=!1;I.debugInfo={};return I};
_.L(B,E);B.prototype.init=function(){var I=_.li("IFRAME");_.QC(I,_.jR(qb$));I.sandbox="allow-same-origin";I.style.display="none";this.iframe=I;document.body.appendChild(I);this.bindHistoryStateFunctions();E.prototype.init.call(this)};
B.prototype.bindHistoryStateFunctions=function(){var I=this,T=[],e;this.iframe&&((e=this.iframe.contentWindow)==null?0:e.history)&&(e=this.iframe.contentWindow.history)&&(T.push(e),Object.getPrototypeOf(e)&&T.push(Object.getPrototypeOf(e)));window.history&&T.push(window.history);e=window.history;Object.getPrototypeOf(e)&&T.push(Object.getPrototypeOf(e));T.push(F1Z);e=function(Y){for(var v=null,y=0;y<T.length;y++){var Z=T[y][Y];if(typeof Z==="function"){v=Z.bind(window.history);I.debugInfo[Y]=y;break}}return v};
if(!this.boundHistoryReplaceState){var c=e("replaceState");c&&(this.internalReplaceState=c,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(e=e("pushState"))&&(this.internalPushState=e,this.boundHistoryPushState=!0)};
return B}(FK),K1N=function(){return DMr.call(this,window.history)||this};
_.L(K1N,DMr);K1N.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Dv=function(E){this.browserHistory=E;this.initialized=!1};
Dv.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Dv.prototype.pushState=function(E,B){this.initialized||this.init();this.browserHistory.pushState(E,B)};
Dv.prototype.replaceState=function(E,B){this.initialized||this.init();this.browserHistory.replaceState(E,B)};
Dv.prototype.handlePopstate=function(E){return E.state};_.R5h=function(E,B,I,T,e){this.endpoint=E;this.forward=B;this.historyEntry=I;this.JSC$26352_savedComponentState=T;this.legacyBorder=e===void 0?!1:e};var Enl=function(E,B){this.rootData=E;this.scrollTop=B};var sg=new _.Dr("PAGE_REQUEST_TOKEN"),mXU=new _.Dr("FETCH_PBJ_TOKEN");_.Kz=new _.Dr("EPHEMERAL_STORE_TOKEN");_.Re=function(E){this.data=Object.assign({},E);var B;(B=this.data.innertubeResponse)==null||delete B.frameworkUpdates};
_.Re.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.VZ)()};
_.c3=function(E){return Object.assign({},E.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var Bmh=function(){this.maxSize=100;this.timeToDataCache=new Map};
Bmh.prototype.get=function(E){var B=this.timeToDataCache.get(E);B&&(this.timeToDataCache.delete(E),this.timeToDataCache.set(E,B));if(B&&B.rootData&&(_.d("web_use_response_store_for_history_cache")||_.d("mweb_use_new_history_manager"))){var I=_.Q().resolve(_.Kz),T=$nU(B),e=!!T;if(T){if(T.content){var c=Ev(I,T.content);e&&c?B.rootData.response=_.c3(c):e=!1}T.player&&(c=Ev(I,T.player),e&&c?B.rootData.playerResponse=_.c3(c):e=!1);T.reelSequence&&(I=Ev(I,T.reelSequence),e&&I?B.rootData.reelWatchSequenceResponse=
_.c3(I):e=!1)}e||(this.timeToDataCache.delete(E),B=void 0)}return B};
Bmh.prototype.set=function(E,B){if(B.rootData&&(_.d("web_use_response_store_for_history_cache")||_.d("mweb_use_new_history_manager"))){var I=$nU(B),T=Object.assign({},B.rootData);I&&(I.content&&B.rootData.response&&(Iqh(this,I.content,B.rootData.response),T.response=null),I.player&&B.rootData.playerResponse&&(Iqh(this,I.player,B.rootData.playerResponse),T.playerResponse=null),I.reelSequence&&B.rootData.reelWatchSequenceResponse&&(Iqh(this,I.reelSequence,B.rootData.reelWatchSequenceResponse),T.reelWatchSequenceResponse=
null));B=new Enl(T,B.scrollTop)}this.timeToDataCache.has(E)?this.timeToDataCache.delete(E):this.timeToDataCache.size>=this.maxSize&&(I=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(I.value));this.maxSize!==0&&this.timeToDataCache.set(E,B)};
Bmh.prototype.clear=function(){this.timeToDataCache.clear()};
var $nU=function(E){var B=_.Q().resolve(_.Fx(sg)),I;if((I=E.rootData)==null?0:I.endpoint)return B==null?void 0:f26(B,E.rootData.endpoint);var T;_.OG(new _.P7("History snapshot response data does not contain endpoint",(T=E.rootData)==null?void 0:T.url));return null},Iqh=function(E,B,I){if(E.maxSize>0){var T;
(E=(T=I.responseContext)==null?void 0:T.maxAgeSeconds)&&Number(E)>0&&(T=_.Q().resolve(_.Kz),I=DQ(I,E),T.put(B,new _.Re(I)))}};var Tmr=function(E,B,I){this.endpoint=B;this.JSC$26357_savedComponentState=I===void 0?null:I;this.entryTime=E};var dM4=1;var BZ=function(E){var B=function(){var I=E.apply(this,[].concat(_.ad(_.aG.apply(0,arguments))))||this;I.historyEntryTime=0;I.historySnapshotCache=I.createHistoryCache();return I};
_.L(B,E);B.prototype.createHistoryCache=function(){return new Bmh};
B.prototype.saveAndReplace=function(I,T,e){var c=window.location.href;var Y=Y===void 0?{}:Y;var v=(v=this.browserHistory.getState())&&v.entryTime?v.entryTime:h56();I=this.createNewHistoryEntry(I,Y,v);this.saveSnapshot(v,T,e);this.replaceState(I,c||window.location.href)};
B.prototype.saveAndPush=function(I,T,e,c,Y){Y=Y===void 0?{}:Y;this.saveSnapshot(this.historyEntryTime,e,c);e=this.historySnapshotCache;c=this.historyEntryTime;var v=e.timeToDataCache.keys();v=_.p(v);for(var y=v.next();!y.done;y=v.next())y=y.value,y>c&&e.timeToDataCache.delete(y);T=this.createNewHistoryEntry(T,Y);this.pushState(T,I)};
B.prototype.saveSnapshot=function(I,T,e){this.historySnapshotCache.set(I,new Enl(T,e))};
B.prototype.createNewHistoryEntry=function(I,T,e){e=e===void 0?h56():e;return new Tmr(e,I,T)};
B.prototype.handlePopstate=function(I){var T=E.prototype.handlePopstate.call(this,I),e=null,c=null,Y=!1,v=null;T&&T.entryTime&&(v=this.historySnapshotCache.get(T.entryTime)||null,Y=T.entryTime>this.historyEntryTime,this.historyEntryTime=T.entryTime,e=T.endpoint,c=T.JSC$26357_savedComponentState);this.handleHistoryCacheLoad(new _.R5h(e,Y,v,c),I);return T};
B.prototype.pushState=function(I,T){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);E.prototype.pushState.call(this,I,T)};
B.prototype.replaceState=function(I,T){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);E.prototype.replaceState.call(this,I,T)};
B.prototype.handleHistoryCacheLoad=function(){};
return B}(Dv),ejZ=function(){var E=BZ.call(this,new K1N)||this;
E.dispatchElement=null;E.entryIndex=0;return E};
_.L(ejZ,BZ);_.l=ejZ.prototype;_.l.init=function(E){E=E===void 0?!0:E;BZ.prototype.init.call(this);this.initialized||(E||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.l.handlePopstate=function(E){var B=null;E.state||(B="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return BZ.prototype.handlePopstate.call(this,E);var I=new CustomEvent("yt-history-pop",{cancelable:!0});_.I2(this.dispatchElement,"yt-history-pop",[I,{errorMsg:B}]);_.Ta(this.dispatchElement,"yt-close-all-popups-action");if(!I.defaultPrevented){I=_.Q().resolve(_.oS);B=I.getCurrentData();var T=I.getCurrentPage();I=0;T?(T=_.I2(this.dispatchElement,"yt-get-page-offset",
[T]),T.length>0&&(I=T[0])):_.OG(new _.P7("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:B?B.page:"undefined"}));B&&(B.csn=_.nC());this.saveSnapshot(this.historyEntryTime,B,I)}return BZ.prototype.handlePopstate.call(this,E)};
_.l.handleHistoryCacheLoad=function(E,B){E.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.p(_.Ta(this.dispatchElement,"yt-history-will-navigate",[B])).next().value||_.I2(this.dispatchElement,"yt-history-load",[B,E]))};
_.l.pushState=function(E,B){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var I=new _.P7("history.pushState is not a function",this.getDebugString());_.xV(I)}BZ.prototype.pushState.call(this,E,B)};
_.l.replaceState=function(E,B){if(!this.browserHistory.boundHistoryReplaceState){var I=new _.P7("history.replaceState is not a function",this.getDebugString());_.xV(I)}BZ.prototype.replaceState.call(this,E,B)};
_.l.saveAndPush=function(E,B,I,T,e){e=e===void 0?{}:e;I&&(I.csn=_.nC());BZ.prototype.saveAndPush.call(this,E,B,I,T,e)};
_.l.getDebugString=function(){var E=[];this.initialized&&E.push("i");this.browserHistory.boundHistoryReplaceState&&E.push("bhr");this.browserHistory.boundHistoryPushState&&E.push("bhs");"replaceState"in this.browserHistory.debugInfo&&E.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&E.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&E.push("ei:"+String(this.entryIndex));return E.join(",")};
_.$J=function(E,B){E.init(!0);var I=E.browserHistory.getState();E.replaceState(I,FZ(B))};
ejZ.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.IZ=new _.Dr("DESKTOP_HISTORY_MANAGER_TOKEN");var lqV=[10,20,30,40,50,60],TS=function(){this.currentPartitionIndex=0},cSl=function(E){N5$({mainAppWeb:_.NK(),
survivalSli:{partitionMinute:E,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},i36=function(E){N5$({mainAppWeb:_.NK(),
survivalSli:{partitionMinute:E,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},pBD=function(E){return E.currentPartitionIndex>=0&&E.currentPartitionIndex<lqV.length?lqV[E.currentPartitionIndex]:-1},YdZ=function(E){return E.currentPartitionIndex>0&&E.currentPartitionIndex-1<lqV.length?lqV[E.currentPartitionIndex-1]:-1};
TS.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var E=YdZ(this);E>0&&i36(E);E=pBD(this);E>0&&cSl(E);aql(this)}};
var aql=function(E){var B=pBD(E);if(B>0){var I=YdZ(E);I<0&&(I=0);E.intervalId=_.Ll.addJob(function(){var T=YdZ(E);T>0&&i36(T);T=pBD(E);T>0&&cSl(T);aql(E)},3,(B-I)*6E4);
E.currentPartitionIndex+=1}else E.currentPartitionIndex=-1};var vnZ=function(){this.skipNextNavigation=!1},ySu=function(E,B,I){if(!B)return!1;
if(E.skipNextNavigation)return E.skipNextNavigation=!1;if(_.h(I,_.JK))return!1;var T,e,c;if((T=_.h(I,_.pq))==null?0:(e=T.browseEndpointContextSupportedConfigs)==null?0:(c=e.browseEndpointContextMainConfig)==null?0:c.skipConfirmation)return!1;var Y;return((Y=_.h(B.commandMetadata,_.D$))==null?void 0:Y.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
vnZ.prototype.showConfirmationDialog=function(E,B){this.navigateParams=B;this.customConfirmationCommand?_.Q().resolve(_.Dt).resolveCommand(this.customConfirmationCommand):(B={openPopupAction:{popup:{confirmDialogRenderer:{title:_.jj(_.yu("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.jj(_.yu("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.jj(_.yu("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.jj(_.yu("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.WC.getInstance().triggerAction("yt-open-popup-action",B,E))};
vnZ.prototype.cancelPendingNavigation=function(){var E;((E=this.navigateParams)==null?void 0:E.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var CXu=function(){},Z3z=function(E,B,I,T,e,c,Y){I=I===void 0?{}:I;
Y=Y===void 0?{}:Y;var v=_.Bc.instance,y,Z=(y=_.h(B,_.JK))==null?void 0:y.url;return Z?sli(v,Z,I,window.location.href,function(P,z){wBD(E,P,z,!1,!0,I,c,T)},function(){return!1}):bb(v,B,I,window.location.href,aN(B),function(P,z){wBD(E,P,z,!1,!0,I,c,T)},e,Y)},wBD=function(E,B,I,T,e,c,Y,v){if(!E.JSC$12180_chunkHandler)if(I.page==="watch")if(e||T){if(_.d("kevlar_continue_playback_without_player_response")){var y;
var Z=(y=_.h(v,_.kh))==null?void 0:y.videoId}E.JSC$12180_chunkHandler=new RzZ(_.jx,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:T,previousVideoId:Z},tempData:c},Y)}else E.JSC$12180_chunkHandler=new VSu(_.jx);else I.page==="shorts"&&e&&!T?E.JSC$12180_chunkHandler=new Kjt(_.jx,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:c},Y):E.JSC$12180_chunkHandler=new qCr(Y);E.JSC$12180_chunkHandler.processChunk({endpoint:B,data:I});return E.JSC$12180_chunkHandler.nZ.promise},
PXZ=function(E,B,I,T,e){(I=_.gou(I))&&wBD(E,B,I,!1,!0,T,void 0,e)};var zjX=function(){this.pendingNavigationPromise=null};
_.l=zjX.prototype;_.l.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.l.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.l.addEventListener=function(){throw Error("yh");};
_.l.dispatchEvent=function(){throw Error("yh");};
_.l.removeEventListener=function(){throw Error("yh");};var mnu=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],em=function(){_.ms.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];QCt(this)};
_.L(em,_.ms);em.prototype.verifyUser=function(){var E=QCt(this),B=E.logout;if(!E.sessionChange)return!0;this.dispatchEvent("ytsessionchange");B&&this.dispatchEvent("ytuserinvalid");return!1};
var QCt=function(E){var B=mnu.map(function(e){var c;return(c=_.v7.get(e))!=null?c:""}),I=B.some(function(e,c){return E.sessionCookies&&E.sessionCookies[c]!==""&&e===""}),T=B.some(function(e,c){return E.sessionCookies&&E.sessionCookies[c]!==e});
E.sessionCookies=B;return{logout:I,sessionChange:T}};
em.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Ll.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var GL4=new _.Dr("POSTMESSAGE_TUNNEL_TOKEN");var uhF=["/parent_tools","/file_download","/artist_roster"],M5G=[kfZ,tdh,fiD,qcN,VdV,UG$,FQU,DGR];var dnR=new _.Dr("APP_ROOT");var l_=new _.Dr("NAVIGATION_CONFIRMATION_SERVICE");var hjV="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),sCu=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
cZ=function(E,B){this.pendingNavigationPromise=null;this.JSC$12198_clientRoot=E;this.historyManager=B;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new CXu;this.debugString=E.is;E={"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};_.X4(_.WC.getInstance(),E,this.JSC$12198_clientRoot)},O3Z,nnX,MTD,H3$,GCl;
_.L(cZ,zjX);cZ.prototype.reload=function(){_.xG(window.location.href)};
var W6V=function(E){E.currentEndpoint&&_.h(E.currentEndpoint,_.yQ)?E.reload():E.currentEndpoint&&E.navigate(E.currentEndpoint,!0,void 0,{disableCache:!0})};
cZ.prototype.navigate=function(E,B,I,T,e,c,Y,v){B=B===void 0?!1:B;I=I===void 0?{}:I;T=T===void 0?{}:T;var y=_.Q().resolve(l_),Z;if(!Y&&ySu(y,(Z=this.currentEndpoint)!=null?Z:void 0,E))return y.showConfirmationDialog(this.JSC$12198_clientRoot.parentElement,{endpoint:E,reload:B,params:I,tempData:T,requestType:e,createScreenConfig:c}),!1;var P=_.gB();_.Su(P,"eocs")||P.parkOrScheduleJob(function(){P.processSignal("eocs")},10,"eor");
Y=aN(E);y=T.autonav==="1";Z=_.nC();em.instance||(em.instance=new em);var z=em.instance.verifyUser(),m;if(_.d("enable_dark_theme_only_on_shorts")){var u=document.documentElement.hasAttribute("dark"),x=_.Oq(!0)==="USER_INTERFACE_THEME_DARK";if(Y==="shorts"){if(!u)if(_.d("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var M;_.xG((M=_.h(E==null?void 0:E.commandMetadata,_.D$))==null?void 0:M.url,void 0,void 0,window.top)}}else{var N;_.xG(_.jI((N=_.h(E==null?
void 0:E.commandMetadata,_.D$))==null?void 0:N.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.d("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!u){var W;_.xG(_.jI((W=_.h(E==null?void 0:E.commandMetadata,_.D$))==null?void 0:W.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(x!==u){var U;_.xG(_.jI((U=_.h(E==null?void 0:E.commandMetadata,_.D$))==null?void 0:U.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(Y==="watch"){if(uih(_.Q().resolve(_.W3),
E)&&(z||_.d("fix_miniplayer_navigation_killswitch")))return!1;_.d("block_all_player_prefetch_requests")||(m=SU$(_.eD(_.$C),E,y))}else{var q,f=(q=_.h(this.currentEndpoint,_.kh))==null?void 0:q.videoId;f&&_.dB.getInstance().then(function(ki){ki&&ki.set("yt-miniplayer-shown-video-id",f)})}m&&(I.frags=m.missingFragments_.join(","));
M=null;var ed;N=(ed=_.h(E==null?void 0:E.commandMetadata,_.D$))==null?void 0:ed.ignoreNavigation;if(!N)if(_.d("kevlar_command_url")){var K;M=(K=_.h(E==null?void 0:E.commandMetadata,_.D$))==null?void 0:K.url}else M=_.O8t(E,I);if(M&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&M==this.lastNavigationUrl)return _.LO({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.yr(gG(),"CANCELLED")}M&&(this.lastNavigationUrl=M);ead();_.MD("IS_HOMEPAGE_COLD",
!1);_.MD("IS_RESULTS_PAGE_COLD",!1);_.MD("IS_WATCH_PAGE_COLD",!1);E.loggingUrls&&E.loggingUrls.forEach(function(ki){ki.baseUrl&&_.JI(ki.baseUrl)});
_.Sbi(E,c?c.layer:0)&&_.d("kevlar_flush_logs_on_away_navigation")&&_.Li();if(HHf(E))return!1;mAR(Y,e);if(!M)return N||_.OG(new _.P7("Can't construct url for endpoint",E)),_.yr(gG(),"FAILURE"),!1;_.s44();ed=E&&_.h(E,_.pq)&&_.h(E,_.pq).browseId.startsWith("UC");I=(K=_.d("enable_dark_theme_only_on_shorts")&&Y==="shorts"?!1:_.nq()&&document.documentElement.hasAttribute("dark")!==_.Gv())?{themeRefresh:1}:{};K&&!_.CF()&&_.Oq()==="USER_INTERFACE_THEME_DARK"&&(I.theme="dark");ed=K||LcV(M)&&!ed&&!_.d("kevlar_disable_url_allowlist");
z||(ed=!0);if(ed||_.HA("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var p4;var sc=(p4=window.top)==null?void 0:p4.location.href}catch(ki){var Gf;sc=(Gf=ki)==null?void 0:Gf.message}_.OG(new _.P7("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:sc}))}E=_.d("kevlar_redirect_on_window_killswitch")?window.top:window;Lq(M);_.xG(_.jI(M,I),void 0,void 0,E);_.yr(gG(),"ABORTED");return!1}_.d("kevlar_early_popup_close")&&_.I2(this.JSC$12198_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12180_chunkHandler=void 0;var xi;sc=aN((xi=this.currentEndpoint)!=null?xi:void 0);(xi=Y==="shorts"&&sc==="shorts")||_.e3J();_.JA(frB)("nr",void 0);y&&_.LO({webInfo:{navigationReason:"an"}});E.clickTrackingParams&&(T.itct=E.clickTrackingParams,T.csn=Z);YuF(T);T.endpoint=JSON.stringify(E);_.d("enable_unknown_lact_fix_on_html5")&&(_.Q().resolve(_.P$),T.lact=_.DD());_.a_.isEmpty(T)||_.qU(M,T);!_.d("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(c=Object.assign({},{layer:0},c,{parentLayer:3}));this.pendingNavigationPromise=c=Z3z(this.pageFetcher,E,T,this.currentEndpoint,this.JSC$12198_isNetworkPromiseStale.bind(this),c,v);c=c.then(this.handleNavigateSuccess.bind(this,c,E,m,T),this.handleNavigateFail.bind(this,c,E));_.vx().navigationFinishPromise=c;B={endpoint:E,pageType:Y,url:FZ(M),reload:!!B,noProgressBar:_.d("web_disable_page_navigation_progress")||xi};e&&(B.type=e);this.fireEvent("yt-navigate-start",B);m&&
PXZ(this.pageFetcher,E,m,T,this.currentEndpoint);return!0};
cZ.prototype.JSC$12198_isNetworkPromiseStale=function(E){return E!=this.pendingNavigationPromise};
var xnh=function(E,B,I,T,e){var c=aN(B);B={endpoint:B,pageType:c};e&&(B.errorMessage=e);_.OG(I);B.navigationDoneMs=_.nO("nd");B.navigationErrorReason=T;E.fireEvent("yt-navigate-error",B)};
cZ.prototype.handleNavigateFail=function(E,B,I){var T=void 0;I instanceof _.X$&&(T=I,xEc(I));if(this.JSC$12198_isNetworkPromiseStale(E))return _.rG(T);_.yr(gG(),"FAILURE");xnh(this,B,I,"101");return _.rG(I)};
cZ.prototype.handleNavigateSuccess=function(E,B,I,T,e){if(this.JSC$12198_isNetworkPromiseStale(E))return _.i1();this.pendingNavigationPromise=null;if(!e)return B=new _.P7("Missing data in response for navigation endpoint",B),_.rG(B);if(e.reload)return window.location.reload(!0),_.i1();I&&(E={},_.a_.extend(E,_.gou(I),e),e=E);var c,Y;I=(c=e)==null?void 0:(Y=c.timing)==null?void 0:Y.responseStart;I!=null&&_.nO("srt",I);_.nO("pdc");var v,y;c=(v=e)==null?void 0:(y=v.timing)==null?void 0:y.info;c!=null&&
(v=_.JA(_.D6c)(c),_.LO(v));_.yr(gG(),"SUCCESS");GCl(this,B,e,1,T);return _.i1()};
var LcV=function(E){var B=E;_.d("kevlar_no_redirect_to_classic_2_ks")||(B=(new _.tQ(E)).getPath());if(B==="/"||B==="/red")return!1;var I=!0;hjV.forEach(function(T){E.indexOf(T)===0&&(I=!1)});
sCu.forEach(function(T){var e=T.url;_.d(T.expFlag)&&E.indexOf(e)===0&&(I=!1)});
return I};
cZ.prototype.publishPageData=function(E){this.fireEvent("yt-page-data-fetched",{pageData:E})};
O3Z=function(E,B,I,T,e,c){var Y=null;B.page!=="watch"||T?B.filler||_.I2(E.JSC$12198_clientRoot,"yt-stop-old-player",[B]):Y=wBD(E.pageFetcher,e,B,I,!1,c,void 0,E.currentEndpoint);if(Y)return Y.then(E.publishPageData.bind(E,B));E.publishPageData(B);return _.i1()};
nnX=function(E,B,I){var T=null;if(!I)return T=new _.P7("Empty data",E.debugString,B);var e=I.response;if(!e)return T;var c={endpointType:aN(B)||"unknown"};e.responseContext?(e=e.responseContext.errors)&&(T=new _.P7("Errors in response context",E.debugString,B,e,c)):T=e.error||e.errorMetadata?new _.P7("Errors in response",E.debugString,B,e.error,e.errorMetadata,c):new _.P7("responseContext missing",E.debugString,B,Object.keys(e).sort().join(","),c);var Y,v,y,Z;if(E=I==null?void 0:(Y=I.response)==null?
void 0:(v=Y.responseContext)==null?void 0:(y=v.webResponseContextExtensionData)==null?void 0:(Z=y.webResponseContextDebugData)==null?void 0:Z.debugErrorMessages)for(Y=0;Y<E.length;Y++);return T};
MTD=function(E){var B,I,T,e;return E==null?void 0:(B=E.response)==null?void 0:(I=B.responseContext)==null?void 0:(T=I.errors)==null?void 0:(e=T.error)==null?void 0:e["0"]};
H3$=function(E,B){var I;if(I=B.url&&!B.url.startsWith("/clip"))I=B.url,I=!_.d("webfe_parse_debug_param_in_resolveurl_service")&&E.searchDebugUrlMatcher.test(I)||M$G(I)?!0:!1;if(I)M$G(B.url)&&_.AA(window.location.href).themeRefresh?(B=_.F$(B.url,"themeRefresh"),_.$J(E.historyManager,B)):B.url&&!mMD(B.url)&&_.$J(E.historyManager,B.url);else if(B.endpoint){var T,e,c;(I=(T=B.endpoint)==null?void 0:(e=T.commandMetadata)==null?void 0:(c=e.webCommandMetadata)==null?void 0:c.url)&&!mMD(I)&&_.$J(E.historyManager,
I);I&&B.url&&I!=B.url&&!B.url.match("playnext=1")&&new _.P7("Response url mismatch in response data",E.debugString,I,B.url)}};
_.NmV=function(E,B,I,T,e,c,Y,v){c=c===void 0?!1:c;var y=_.Q().resolve(l_),Z;if(!v&&ySu(y,(Z=E.currentEndpoint)!=null?Z:void 0,B))return y.showConfirmationDialog(E.JSC$12198_clientRoot.parentElement,{endpoint:B,data:I,navigationType:T,tempData:e,isMiniplayer:c,isForwardHistoryNavigation:Y==null?void 0:Y.forward}),_.i1();E.pageFetcher.JSC$12180_chunkHandler=void 0;return GCl(E,B,I,T,e,c)};
GCl=function(E,B,I,T,e,c){c=c===void 0?!1:c;E.isMiniplayerExpansion=c;var Y=T===2;E.currentEndpoint=B;E.numNavigations++;E.numNavigations&&(DkG.navigationCount=E.numNavigations);_.MD("NUM_NAV",E.numNavigations);var v=nnX(E,B,I);if(v)return xnh(E,B,v,"102",MTD(I)),_.rG(v);var y,Z,P,z;v=I.rootVe||(I==null?void 0:(y=I.response)==null?void 0:(Z=y.responseContext)==null?void 0:(P=Z.webResponseContextExtensionData)==null?void 0:(z=P.ytConfigData)==null?void 0:z.rootVisualElementType);!Y&&I&&H3$(E,I);var m,
u;y=I==null?void 0:(m=I.response)==null?void 0:(u=m.responseContext)==null?void 0:u.maxAgeSeconds;if(!Y&&!isNaN(y)){var x;_.d("kevlar_use_response_ttl_to_invalidate_cache")?x=(0,_.VZ)()+1E3*y:_.d("kevlar_always_invalidate_cache")&&(x=0);isNaN(x)||(I.expirationTime=x)}_.d("html5_enable_ssap_entity_id")&&Y&&I.playerResponse&&(I.playerResponse.cacheMetadata={isCacheHit:!0});_.eD(_.$C).prefetchCache_.clear();Y||I.page!=="watch"||I.type!=="reduced"&&T!==1?T=O3Z(E,I,Y,!!c,B,e):(E.publishPageData(I),T=_.i1());
e=T.then(function(){var M=aN(B);M={endpoint:B,pageType:M,fromHistory:Y,response:I};M.navigationDoneMs=_.nO("nd");E.fireEvent("yt-navigate-finish",M)});
I.csn&&v&&I.clientSideGrafts&&T.then(E.attachClientSideGrafts.bind(E,I,_.Oi()));return e};
_.l=cZ.prototype;_.l.attachClientSideGrafts=function(E,B){E.clientSideGrafts&&B&&E.clientSideGrafts.forEach(function(I){if(B&&I){var T=_.Yg(I);_.d("combine_ve_grafts")?_.lu().graftServerVe(I,B):_.XD(E.csn,B,T)}})};
_.l.handleSignalActionHistoryBack=function(){window.history.back()};
_.l.handleSignalActionCloseWindow=function(){window.close()};
_.l.handleSignalActionReloadPage=function(){this.reload()};
_.l.handleSignalActionSoftReloadPage=function(){W6V(this)};
_.l.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.l.fireEvent=function(E,B){E=new CustomEvent(E,{bubbles:!0,cancelable:!1,composed:!0,detail:B});this.dispatchEvent(E)};
_.l.addEventListener=function(E,B){this.JSC$12198_clientRoot.addEventListener(E,B)};
_.l.dispatchEvent=function(E){return this.JSC$12198_clientRoot.dispatchEvent(E)};
_.l.removeEventListener=function(E,B){this.JSC$12198_clientRoot.removeEventListener(E,B)};
cZ[F1]=[dnR,_.IZ];_.gSc=new zm("browse","h8y2qb");_.SYc=new zm("search","JzFVk");_.Jff=new zm("shorts","xwEKAe");_.Wl4=new zm("watchFixie","nmfa2d");_.XSF=new zm("watchFlexy","CF909");_.rfc=new zm("watchGrid","Tm0L3c");_.bYJ=new zm("watchLearningJourney","L3n37");var gn6;var i_=function(){return _.r.apply(this,arguments)||this};
_.L(i_,_.r);_.Up.Object.defineProperties(i_,{template:{configurable:!0,enumerable:!0,get:function(){if(gn6===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);gn6=E}E=gn6;return E}}});
_.k([_.g(gRU.YtPlayerBehavior),_.t("design:type",Object)],i_.prototype,"ytPlayerBehavior",void 0);i_=_.k([_.b({is:"ytd-player"})],i_);var Sdr;var JSr;var Wcr;var pt=function(){var E=_.r.apply(this,arguments)||this;E.forceModernIconButton=!1;E.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return E};
_.L(pt,_.r);pt.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]]"}}}}}};
pt.prototype.handleAccountLinkingStateChangedCommand=function(E){if(E=_.h(E,eoX)){var B,I=(B=this.data)==null?void 0:B.providerKey;B=E.providerKey;I&&B&&I.id===B.id&&I.subject===B.subject&&(E=E.linked,E!==void 0&&(this.set("data.linked",E),this.notifyPath("data.linked"),_.d("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(E)))}};
pt.prototype.setPlayerAccountLinkState=function(E){var B=new C4c;yYi(B,w0f(new ZP6,E));var I=_.jx();I&&I.getPlayerPromise().then(function(T){T.setAccountLinkState(_.tH(B.JSC$9958_serializeBinary(),4));T.updateAccountLinkingConfig(E)})};
pt.prototype.handleShowAccountLinkDialog=function(){var E=this.get("button.buttonRenderer.command");E&&_.YO([E],this.hostElement)};
_.Up.Object.defineProperties(pt.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}}}});
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],pt.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],pt.prototype,"ytRendererBehavior",void 0);_.k([_.g([_.th.YtActionHandlerBehavior]),_.t("design:type",Object)],pt.prototype,"actionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],pt.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],pt.prototype,"overrides",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],pt.prototype,"forceModernIconButton",void 0);_.k([_.X({value:"bottom"}),_.t("design:type",String)],pt.prototype,"buttonTooltipPosition",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],pt.prototype,"forceIconButton",void 0);_.k([_.X(),_.t("design:type",Boolean)],pt.prototype,"disableTextTransform",void 0);
_.k([_.S("data","data.linked","data.isWarning"),_.t("design:type",Object),_.t("design:paramtypes",[])],pt.prototype,"button",null);pt=_.k([_.b({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],pt);
_.A(pt,"ytd-account-link-button-renderer",function(){if(Wcr!==void 0)return Wcr;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Wcr=E},{mode:1});var XBZ;var rSu=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],YJ=function(){return _.r.apply(this,arguments)||this};
_.L(YJ,_.r);YJ.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
YJ.prototype.updateButtonActiveState=function(){var E=this,B=!!rSu.find(function(I){return E.currentState===I});
this.button&&(this.button.isPressed=B)};
_.Up.Object.defineProperties(YJ.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.playlistLoopStateEntity)==null?void 0:E.state)||((B=this.data)==null?void 0:B.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var E=void 0,B;if(this.currentState&&((B=this.data)==null?0:B.states)){B=_.p(this.data.states);for(var I=B.next();!I.done;I=B.next()){I=_.h(I.value,_.u6R);var T=void 0;if(((T=I)==null?void 0:T.state)===this.currentState){E=I;break}}}return E}}});
YJ.prototype.updateButtonActiveState=YJ.prototype.updateButtonActiveState;_.k([_.g(_.Lz),_.t("design:type",Object)],YJ.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.oR4}),_.t("design:type",Object)],YJ.prototype,"playlistLoopStateEntity",void 0);_.k([_.X(),_.t("design:type",Object)],YJ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],YJ.prototype,"forceIconOnly",void 0);_.k([_.$7("ytd-button-renderer"),_.t("design:type",_.bF)],YJ.prototype,"button",void 0);
_.k([_.S("data","playlistLoopStateEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],YJ.prototype,"currentState",null);_.k([_.EM("currentButtonStateRenderer"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],YJ.prototype,"updateButtonActiveState",null);_.k([_.S("currentState"),_.t("design:type",Object),_.t("design:paramtypes",[])],YJ.prototype,"currentButtonStateRenderer",null);
YJ=_.k([_.b({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],YJ);
_.A(YJ,"ytd-playlist-loop-button-renderer",function(){if(XBZ!==void 0)return XBZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return XBZ=E},
{mode:1});var b3Z;var onr=_.yu("DOWNLOAD",{},"Download"),ASD=_.yu("DOWNLOADING",{},"Downloading"),jCu=_.yu("DOWNLOADED",{},"Downloaded"),Unu=_.yu("RETRY",{},"Retry"),aZ=function(){var E=_.r.apply(this,arguments)||this;E.forceIconButton=!1;E.forceIconOnly=!1;E.overrides=!1;E.buttonTooltipPosition=!1;E.styleActionButton=!1;E.disableTextTransform=!1;E.downloadProgress=0;E.isDownloadComplete=!1;E.isHidden=!0;E.transferState="TRANSFER_STATE_UNKNOWN";E.isVideoDeletedByUser=!1;E.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return E};
_.L(aZ,_.r);_.l=aZ.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.dataChanged=function(){var E;(E=this.data)!=null&&E.text||(E=_.Mg(_.t2().getState(),this.videoId),this.updateButtonState(E))};
_.l.computeVideoId=function(E){return E};
_.l.showHideButton=function(){this.updateButtonVisibility()};
_.l.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.l.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.l.updateButtonState=function(E){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==ASD||!_.Zm(E))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(E){case "TRANSFER_STATE_UNKNOWN":E=onr;var B="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":E=Unu;B="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":E=jCu;B="OFFLINE_PIN";I="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":E=
ASD;B="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":E=Unu;B="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;default:E=onr,B="OFFLINE_DOWNLOAD",I="ACTION_ADD"}this.isVideoDeletedByUser&&(E=onr,B="OFFLINE_DOWNLOAD",I="ACTION_ADD");var T=Object.assign({},this.data);T.text=_.jj(E);T.tooltip=E;T.icon={iconType:B};T.size="SIZE_DEFAULT";T.style="STYLE_DEFAULT";_.h(T.command,_.ef)&&(_.h(T.command,_.ef).action=I);this.set("data",T)}};
_.l.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var E="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?E="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?E="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?E="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?E="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?E="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(E="OFFLINE_PIN",this.isDownloadComplete=!0);var B;E!==((B=this.data.icon)==null?void 0:B.iconType)&&(B=Object.assign({},this.data),B.text=_.jj(ASD),B.tooltip=ASD,B.icon={iconType:E},_.h(B.command,_.ef)&&(_.h(B.command,_.ef).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",B))}};
aZ.prototype.updateProgress=aZ.prototype.updateProgress;aZ.prototype.onTransferStateChanged=aZ.prototype.onTransferStateChanged;aZ.prototype.showHideButton=aZ.prototype.showHideButton;aZ.prototype.dataChanged=aZ.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],aZ.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],aZ.prototype,"forceIconButton",void 0);
_.k([_.X(),_.t("design:type",Object)],aZ.prototype,"forceIconOnly",void 0);_.k([_.X(),_.t("design:type",Object)],aZ.prototype,"overrides",void 0);_.k([_.X(),_.t("design:type",Object)],aZ.prototype,"buttonTooltipPosition",void 0);_.k([_.X(),_.t("design:type",Object)],aZ.prototype,"styleActionButton",void 0);_.k([_.X(),_.t("design:type",Object)],aZ.prototype,"disableTextTransform",void 0);
_.k([_.X({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.t("design:type",String)],aZ.prototype,"videoId",void 0);_.k([_.X(),_.t("design:type",Object)],aZ.prototype,"data",void 0);_.k([_.X({selector:gK,selectorArgs:["videoId"]}),_.t("design:type",Object)],aZ.prototype,"downloadProgress",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aZ.prototype,"isDownloadComplete",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aZ.prototype,"isHidden",void 0);_.k([_.X({selector:_.Mg,selectorArgs:["videoId"]}),_.t("design:type",String)],aZ.prototype,"transferState",void 0);_.k([_.X({selector:_.bUd,selectorArgs:["videoId"]}),_.t("design:type",Object)],aZ.prototype,"isVideoDeletedByUser",void 0);_.k([_.X({selector:SSF,selectorArgs:["videoId"]}),_.t("design:type",Object)],aZ.prototype,"offlineabilityState",void 0);
_.k([_.X({value:!0}),_.t("design:type",Boolean)],aZ.prototype,"showTooltips",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],aZ.prototype,"sendCommandWhenDisabled",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],aZ.prototype,"disabled",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aZ.prototype,"dataChanged",null);
_.k([_.i6("offlineabilityState"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aZ.prototype,"showHideButton",null);_.k([_.i6("transferState","isVideoDeletedByUser"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aZ.prototype,"onTransferStateChanged",null);_.k([_.i6("downloadProgress"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aZ.prototype,"updateProgress",null);
aZ=_.k([_.b({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],aZ);
_.A(aZ,"ytd-download-button-renderer",function(){if(b3Z!==void 0)return b3Z;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return b3Z=E},{mode:2});var kCD;var tTZ,fqZ=function(){if(tTZ!==void 0)return tTZ;var E=document.createElement("template");_.G(E,'\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 tTZ=E};var VT$=_.d("web_button_rework")&&_.gU("BUTTON_REWORK")||_.d("web_button_rework_with_live"),qd$=_.RI("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,vZ=function(){var E=_.r.apply(this,arguments)||this;E.isPressed=!1;E.forceIconButton=!1;E.forceIconOnly=!1;E.forceModernIconButton=!1;E.alignByText=!1;E.isShorts=!1;E.animatedText=!1;E.shouldAnimate=!1;E.JSC$12236_browserSupportsAnimation=_.d("web_supports_animations_api");E.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};E.onTap=function(){var B;if((B=E.data)==null||!B.defaultNavigationEndpoint){var I;B=!((I=E.data)==null?0:I.isToggled);var T;if((T=E.data)==null||!T.preventAutoToggle){E.shouldAnimate=!1;E.disableTextUpdateJobId&&_.Ll.cancelJob(E.disableTextUpdateJobId);E.disableTextUpdateJobId=_.Ll.addLowPriorityJob(function(){E.disableTextUpdateJobId=void 0},qd$);
var e;E.set("data.isToggled",!((e=E.data)==null?0:e.isToggled));I=E.getInnertubeIcon();T={toggled:B,actions:{}};I&&(T.actions[I.toLowerCase()]=B);_.$O(E.hostElement,"yt-toggle-button",T)}}};
return E};
_.L(vZ,_.r);_.l=vZ.prototype;_.l.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Ll.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.toggle=function(E){var B;this.set("data.isToggled",E!==void 0?E:!((B=this.data)==null?0:B.isToggled))};
_.l.handleUpdateToggleButtonStateCommand=function(E){if(this.data){E=_.h(E,wRZ);var B,I,T,e=(B=this.data)==null?void 0:(I=B.toggleButtonSupportedData)==null?void 0:(T=I.toggleButtonIdData)==null?void 0:T.id;e&&E&&e===(E==null?void 0:E.buttonId)&&this.set("data.isToggled",E.toggled)}};
_.l.handleUpdateToggleButtonTextAction=function(E){if(this.data){E=_.h(E,b_$);var B,I,T,e=(B=this.data)==null?void 0:(I=B.toggleButtonSupportedData)==null?void 0:(T=I.toggleButtonIdData)==null?void 0:T.id;e&&E&&e===(E==null?void 0:E.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=E.defaultNumericalValue,this.set("data.defaultText",E.defaultText),this.set("data.toggledText",E.toggledText),this.shouldAnimate=!1)}};
_.l.getInnertubeIcon=function(){var E=this.data;if(E){var B,I,T=((B=E.defaultIcon)==null?0:B.iconType)?(I=E.defaultIcon)==null?void 0:I.iconType:null,e,c;B=((e=E.toggledIcon)==null?0:e.iconType)?(c=E.toggledIcon)==null?void 0:c.iconType:T;return E.isToggled?B:T}};
_.l.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Up.Object.defineProperties(vZ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var E={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$12236_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var B=E.renderer;var I=E.element;var T=E.toggled;var e=E.onTapCallback;var c=E.commandClientArgs;var Y=E.overrides;var v=E.forceIcon;var y=E.forceModernIconButton;var Z=E.forceDisabled;var P=E.useAnimatedText;var z=E.animatedTextProps;E=kLB(B,T);v=!B.defaultIcon||!v&&B.defaultText?B.defaultIcon?"leading":void 0:y?"icon-only":"icon-only-40";v==="icon-only-40"&&(E.type="text");var m;y=Object;var u=y.assign,x;a:switch((x=
B.style)==null?void 0:x.styleType){case "STYLE_COMPACT_GRAY":x={size:"S"};break a;default:x={size:"M"}}var M=!!T;var N=(N=T&&B.toggledText||B.defaultText)?_.zA(N):void 0;P?(P=_.U3(T&&B.toggledText||B.defaultText))&&z&&!isNaN(Number(z.numberValue))?(z.numberText=P,T&&(z.numberValue+=1),P=z):P=void 0:P=void 0;var W,U,q,f;var ed=(z=((U=T?B.toggledAccessibilityData||((ed=B.toggledText)==null?void 0:ed.accessibility):B.accessibilityData||((W=B.defaultText)==null?void 0:W.accessibility))==null?void 0:(q=
U.accessibilityData)==null?void 0:q.label)||((f=B.accessibility)==null?void 0:f.label))?z:_.U3(T&&B.toggledText||B.defaultText);Z=Z===void 0?B.isDisabled:Z;I=UMc(B,T,e,I,c);T=j4G(B,T);T!=null&&T.length?(T=_.uu({innertubeCommand:SL6(T),forceNewState:!0}),T=L8(T)?T:void 0):T=void 0;B=u.call(y,{},E,x,{iconPosition:v},Y,{focused:!1,toggled:M,toggleable:!0,formattedButtonText:N,animatedTextProps:P,accessibilityLabel:ed,disabled:Z,onTap:I,aTagConfig:T},i6F((m=B.colorData)==null?void 0:m.basicColorPaletteData));
B.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(B.type="filled");return B}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var E=this.getInnertubeIcon();if(E)return _.R3(E)}}});
vZ.prototype.resetAnimation=vZ.prototype.resetAnimation;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],vZ.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],vZ.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],vZ.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],vZ.prototype,"isPressed",void 0);_.k([_.X(),_.t("design:type",Object)],vZ.prototype,"forceIconButton",void 0);_.k([_.X(),_.t("design:type",Object)],vZ.prototype,"forceIconOnly",void 0);_.k([_.X(),_.t("design:type",Object)],vZ.prototype,"forceModernIconButton",void 0);_.k([_.X(),_.t("design:type",Object)],vZ.prototype,"alignByText",void 0);_.k([_.X(),_.t("design:type",Object)],vZ.prototype,"overrides",void 0);
_.k([_.X(),_.t("design:type",Boolean)],vZ.prototype,"disabled",void 0);_.k([_.X(),_.t("design:type",Object)],vZ.prototype,"isShorts",void 0);_.k([_.X(),_.t("design:type",Object)],vZ.prototype,"buttonTooltipPosition",void 0);_.k([_.X(),_.t("design:type",Object)],vZ.prototype,"animatedText",void 0);_.k([_.X(),_.t("design:type",String)],vZ.prototype,"textNumberValue",void 0);_.k([_.X({computed:"computeTooltip(data, data.isToggled)"}),_.t("design:type",Object)],vZ.prototype,"tooltip",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vZ.prototype,"resetAnimation",null);_.k([_.S("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.t("design:type",Object),_.t("design:paramtypes",[])],vZ.prototype,"computedButtonShape",null);_.k([_.S("data.*"),_.t("design:type",Object),_.t("design:paramtypes",[])],vZ.prototype,"computedIcon",null);
vZ=_.k([_.b({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],vZ);VT$&&_.A(vZ,"ytd-toggle-button-renderer",fqZ,{mode:_.qi("kevlar_poly_si_batch_j081")?1:2});var Bm6=[],$nf=!1;_.qW(ejc);var FcU,DnZ;FcU=_.rp(function(E){function B(Z){var P;return _.a(function(z){if(z.nextAddress==1)return(P=!V5F(Z,v())||!v().enabled)?z.jumpTo(2):_.C(z,R56(),3);z.nextAddress!=2&&(P=z.yieldResult);if(P)return z.return();I();setTimeout(function(){Y(!1)},1500);
_.ER(z)})}
function I(){setTimeout(function(){Y(!0);var Z;(Z=T.lottieEl)==null||Z.goToAndPlay(0)},150)}
var T=_.$4(),e=_.p(_.lQ(!1,void 0,"xffAp")),c=e.next().value,Y=e.next().value,v=_.Wl(E.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.uW(function(){var Z,P;((Z=E.settings)==null?void 0:(P=Z.call(E))==null?void 0:P.uniqueId)==="this is not intended behavior"&&_.OG(new _.P7("Smartimation Settings is undefined"))});
_.m$(function(){v().experimentEnabled&&(v().enabled?qbB(B):(Y(!1),F1c(B)),_.dt(function(){F1c(B)}))});
_.m$(function(){v().timings.join("");v().experimentEnabled&&(DMJ(v()),_.dt(function(){K1d(v())}))});
var y=_.aJ(function(){return t5G(T,v())},void 0,"d96jJc");
e={};return _.w("yt-smartimation",{class:_.RQ(E.className,"smartimation",(e["smartimation--experiment-enabled"]=function(){return v().experimentEnabled},e["smartimation--active-border"]=c,e["smartimation--enable-masking"]=lq4(),e))},_.w(_.wU,{cond:function(){return v().experimentEnabled},
then:function(){return _.w("div",{class:"smartimation__border"},_.w(_.E1,{className:"smartimation__border-gradient",data:y,animationName:function(){return y().animationConfig.name}}))}}),_.w("div",{class:"smartimation__content"},E.children))},"x");
_.fef=_.d("web_enable_sink_smartimations")?FcU:ejc;DnZ=_.d("web_enable_sink_smartimations")?FcU:_.$3(ejc);FcU.idomCompat=!0;_.d("web_enable_sink_smartimations")?_.oQ(DnZ,"yt-smartimation",{props:{className:_.Jh,settings:_.Jh}}):_.qE(_.fef,"yt-smartimation",{propNames:["className","settings"]});var yw=function(){var E=_.r.apply(this,arguments)||this;E.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};E.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};E.shouldEnableSmartimation=!1;return E};
_.L(yw,_.r);yw.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
yw.prototype.onDataChanged=function(){var E,B;this.shouldEnableSmartimation=(((E=this.data)==null?void 0:(B=E.timedAnimationData)==null?void 0:B.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
yw.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var E=_.h(this.data.likeButton,_.g8),B=_.h(this.data.dislikeButton,_.g8);return!!((E==null?0:E.isToggled)||(B==null?0:B.isToggled))};
yw.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]]"}}}}}};
_.Up.Object.defineProperties(yw.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var E,B,I=((E=this.data)==null?void 0:(B=E.timedAnimationData)==null?void 0:B.animationTiming)||[];return{uniqueId:"like-dislike",timings:I,enabled:this.shouldEnableSmartimation,experimentEnabled:I.length>0}}}});
yw.prototype.onDataChanged=yw.prototype.onDataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],yw.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],yw.prototype,"likeButtonOverride",void 0);_.k([_.X(),_.t("design:type",Object)],yw.prototype,"dislikeButtonOverride",void 0);
_.k([_.S("shouldEnableSmartimation"),_.t("design:type",Object),_.t("design:paramtypes",[])],yw.prototype,"smartimationSettings",null);_.k([_.EM("data"),_.RN("yt-toggle-button"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],yw.prototype,"onDataChanged",null);yw=_.k([_.b({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],yw);
_.A(yw,"ytd-segmented-like-dislike-button-renderer",function(){if(kCD!==void 0)return kCD;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return kCD=E},{mode:1});var Kcu;var RjN;(RjN=document.body)==null||RjN.setAttribute("rounded-container","");var EE6={};EE6.YtToggleButtonBehavior=[_.th.YtActionHandlerBehavior,e1.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 E=this.data.isToggled;if(!this.isModal_(E)){if(!this.data.preventAutoToggle){this.toggle();var B={toggled:this.data.isToggled,actions:{}};B.actions[this.buttonIcon]=this.data.isToggled;_.$O(this.hostElement,"yt-toggle-button",B)}B=this.data.defaultServiceEndpoint||null;var I=this.data.toggledServiceEndpoint||null;if(B&&I||B&&this.data.preventAutoToggle)E=E?I:B,B=this.disableCommandHandlerOverride,_.d("killswitch_toggle_button_behavior_resolve_command")||B?_.l1(this.hostElement,
[E]):_.$g(E,this.hostElement),_.$O(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:E})}},
stateChanged_:function(){var E=this.data;if(E){var B=E.isToggled;this._setEndpoint(this.computeEndpoint_(E));this._setServiceEndpoint(this.computeServiceEndpoint_(E));this._setButtonIcon(this.computeButtonIcon_(E,B));this._setButtonText(this.computeButtonText_(E,B));this._setButtonAccessibility(this.computeAccessibility_(E,B));this._setButtonTooltip(this.computeTooltip_(E,B));this._setButtonClass(this.computeButtonClass_(E,B));this._setIconPositionType(this.computeIconPositionType_(E));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=B):this.elements_.button.setAttribute("aria-pressed",B));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=B)}},
shouldSetIconActiveState_:function(){return _.d("kevlar_system_icons")},
toggle:function(E){this.set("data.isToggled",E!==void 0?E:!this.data.isToggled);_.d("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(E){if(E){var B,I;return!!((B=this.data)==null?0:(I=B.toggledServiceEndpoint)==null?0:I.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(E){return E&&E.defaultNavigationEndpoint||null},
computeButtonIcon_:function(E,B){var I=E&&E.defaultIcon?_.R3(E.defaultIcon.iconType):null;E=E&&E.toggledIcon?_.R3(E.toggledIcon.iconType):I;return B?E:I},
handleUpdateToggleButtonStateCommand_:function(E){E=E.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==E.buttonId&&this.toggle(E.toggled)},
computeButtonText_:function(E,B){return E?B&&E.toggledText||E.defaultText||null:null},
computeAccessibility_:function(E,B){return E?(B?this.get("toggledAccessibilityData.accessibilityData",E):this.get("accessibilityData.accessibilityData",E))||E.accessibility||null:null},
computeTooltip_:function(E,B){return E?B&&E.toggledTooltip||E.defaultTooltip||null:null},
computeButtonClass_:function(E,B){if(!E)return"";var I="",T=E.toggledStyle||E.style;if(B=B?T:E.style){B.styleType&&(B=B.styleType);try{I+=B.toLowerCase().replace(/_/g,"-")+" "}catch(e){_.ni(e,B,typeof B),_.OG(e)}}if(E=E.size){E.sizeType&&(E=E.sizeType);try{I+=E.toLowerCase().replace(/_/g,"-")+" "}catch(e){_.ni(e,E,typeof E),_.OG(e)}}return I.trim()},
computeIconPositionType_:function(E){return E&&E.iconPosition||null},
computeServiceEndpoint_:function(E){var B=E&&E.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return B?B:I&&E.command?E.command:null},
handleUpdateToggleButtonTextAction_:function(E){E=E.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==E.buttonId&&(this.set("data.defaultText",E.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",E.toggledText),this.notifyPath("data.toggledText"))}}];_.QH("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var BeR=_.d("web_button_rework")&&_.gU("BUTTON_REWORK")||_.d("web_button_rework_with_live"),Ct=function(){var E=_.r.apply(this,arguments)||this;E.systemIcons=_.d("kevlar_system_icons");E.roundedContainer=!0;return E};
_.L(Ct,_.r);Ct.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Ct.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var E=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var B={toggled:!!this.data.isToggled,actions:{}};B.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var I,T;B.actions.playlistId=(I=this.data.defaultServiceEndpoint)==null?void 0:(T=I.playlistEditEndpoint)==null?void 0:T.playlistId;_.$O(this.hostElement,"yt-toggle-button",B)}(E=E?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(E)}};
Ct.prototype.onYtNavigate=function(E){var B=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(E.detail.endpoint);B&&(E.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(B))};
_.Up.Object.defineProperties(Ct,{template:{configurable:!0,enumerable:!0,get:function(){if(Kcu===void 0){var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);Kcu=E}E=Kcu;return E}}});
Ct.prototype.onYtNavigate=Ct.prototype.onYtNavigate;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Ct.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.X_),_.t("design:type",Object)],Ct.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.g(EE6.YtToggleButtonBehavior),_.t("design:type",Object)],Ct.prototype,"ytToggleButtonBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],Ct.prototype,"data",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],Ct.prototype,"showTooltips",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Ct.prototype,"systemIcons",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Ct.prototype,"roundedContainer",void 0);_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Ct.prototype,"onYtNavigate",null);
Ct=_.k([_.b({is:"ytd-toggle-button-renderer",disableElementRegistration:BeR})],Ct);var $L$;_.wQ=new _.Dr("PANEL_CONTROLLER_TOKEN");_.ZT=new _.Dr("SHEET_CONTROLLER_TOKEN");_.PZ=new _.Dr("DIALOG_CONTROLLER_TOKEN");$L$=new _.Dr("DIALOG_CONTAINER_TOKEN");var wBc=_.yu("DOWNLOAD",{},"Download"),Z3D=_.yu("DOWNLOADING",{},"Downloading"),PXc=_.yu("DOWNLOADED",{},"Downloaded"),zji=_.yu("RETRY",{},"Retry");var IeZ=_.rp(function(E){var B=xn6,I=function(){return""},T=hj4(E.data),e=sCF(E.data),c=ui6(E.data),Y=Lc4(E.data);
B=function(){var v=E.data(),y=ySF(v,T(),e(),c(),Y()),Z=!!v.videoId,P=y.text;return{title:Z?P:void 0,tooltip:Z?void 0:P,accessibilityText:P,onTap:y.onTap,iconName:y.iconType,style:v.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:y.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:v.buttonSize}};
I={};I=_.RQ("ytDownloadButtonViewModelHost",(I.ytDownloadButtonViewModelIsHidden=function(){var v=E.data(),y=Y();return v.playlistId||y()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||y()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},I));
return _.w("download-button-view-model",{class:I},_.w(_.ne,{data:B}))},"y");
IeZ.idomCompat=!0;_.qW(nni);_.qW(GCi);var e$D=_.rp(function(E){var B=E.backgroundLottieRef;var I=E.foregroundLottieRef;var T=E.children;var e=E.wrapperClass;var c=E.disableAnimation;E=function(){return(_.d("web_animated_actions")||_.d("web_animated_actions_v2"))&&!(c==null?0:c())};
return _.w("yt-animated-action",{class:_.RQ("animated-action__container",e)},_.w("div",{class:"animated-action__content-with-background"},_.w(_.wU,{cond:E,then:function(){return _.w(TeU,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:B==null?void 0:B(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(MTc()?"dark":"light")+"_v5.json"}}}})}}),T),_.w(_.wU,{cond:E,
then:function(){return _.w(TeU,{lottiePlayerProps:function(){return{animationRef:I==null?void 0:I(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(MTc()?"dark":"light")+"_v4.json"}}}})}}))},"z");
e$D.idomCompat=!0;var c7J=_.d("web_enable_sink_animated_actions")?e$D:nni,leR=_.d("web_enable_sink_animated_actions")?e$D:_.$3(nni),TeU=_.rp(function(E){var B=E.wrapperClass;var I=E.lottieClass;var T=E.lottiePlayerProps;return _.w("div",{class:_.RQ("animated-action__lottie",B),"aria-hidden":"true"},_.w(_.E1,{className:I,data:T,animationName:function(){return T().animationConfig.name}}))},"A");var H3B={isOpen:!1};var gnG={isAllowed:!1};var JSJ={errorMessage:"",title:"",privacy:"",isDisabled:!0};var XBc={isOpen:!1};var b3t={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var c7r={response:void 0};var ASc=function(E,B){E=E===void 0?c7r:E;switch(B.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},E,{response:B.payload});default:return E}};var iIV={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var jCF=function(E,B){E=E===void 0?iIV:E;switch(B.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},E,{nextDisabled:B.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},E,{nextCommand:B.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},E,{footerSubmissionData:B.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},E,{isImpersonationValid:B.payload});default:return E}};var pJU={reportFormData:void 0,reportDetailsFormData:void 0};var UnF=function(E,B){E=E===void 0?pJU:E;switch(B.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},E,{reportFormData:B.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},E,{reportDetailsFormData:B.payload});default:return E}};var Y$$=void 0;_.d("mweb_enable_redux_store_on_demand")||(Y$$=new kN(kCc()));var leQ=_.rp(function(E){E=_.XS(E,{themeOverride:void 0,animationRef:{}});var B=E.animatedIconType,I=E.active,T=E.themeOverride,e=E.animationRef;E=E.staticIconFn;var c=_.p(_.lQ(void 0,void 0,"P5a72b")),Y=c.next().value,v=c.next().value,y=function(){a:{var N=B();var W=T==null?void 0:T();var U;W=(W==null?void 0:W.useDarkTheme)||((U=_.Q().resolve(_.Fx(_.ME)))==null?void 0:U());switch(N){case "LIKE":b:{Y$$||(Y$$=new kN(kCc()));if((N=juQ(Y$$.getState()))&&N.animationStyle)switch(N.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":N=
fqc({name:W?"valentines25_heart_dark":"valentines25_heart_light",path:W?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":N=fqc({name:W?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:W?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":N=
fqc({name:W?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:W?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}N=void 0}if(N){W=N;break a}W="animated_like_icon_"+(W?"dark_v4":"light_v4");W={lottiePlayerProps:{animationConfig:{name:W,path:tTc("animated_like_icon",W),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":W={lottiePlayerProps:{animationConfig:{name:W?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(W?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}W=void 0}return W},Z=function(){var N,W;
return(W=(N=y())==null?void 0:N.lottiePlayerProps.animationConfig.name)!=null?W:""},P=function(){if(y()){var N=y().lottiePlayerProps.animationConfig.path;
return K8.get(N)||Y()}};
c=_.p(_.lQ(!1,void 0,"h6xR3c"));var z=c.next().value;c=c.next().value;var m=qdB(c),u=function(){var N=y(),W,U,q;return(q=N==null?void 0:(W=N.lottiePlayerProps.animationConfig)==null?void 0:(U=W.rendererSettings)==null?void 0:U.className)!=null?q:""},x=void 0,M=void 0;
_.m$(function(){var N=y(),W=Z(),U=P(),q=z(),f=I();if(N&&(M!==W&&(M=W,x=f,W=e(),m.animationConfig=N.lottiePlayerProps.animationConfig,m.animationRef=W,U&&(m.animationConfig.animationData=U,m.animationConfig.path=void 0),W=N.lottiePlayerProps.animationConfig.path,!K8.get(W)&&N.lazyLoad&&W&&VTB(W,v)),!(q||N.lazyLoad&&!U))){if(U=!e().lottieEl)f?(q=N.totalFrames,m.animationConfig.initialSegment=[q-1,q]):m.animationConfig.initialSegment=void 0;if(x!==f&&!U)if(U=e(),f){var ed;(ed=U.lottieEl)==null||ed.playSegments([0,
N.totalFrames],!0)}else{var K;(K=U.lottieEl)==null||K.playSegments([0,1],!0)}x=f}});
return _.w("animated-icon",{class:"ytAnimatedIconHost"},_.w(_.wU,{cond:function(){var N,W;return!((N=y())==null||!N.lottiePlayerProps.animationConfig.path||((W=y())==null?0:W.lazyLoad)&&!P()||z())},
then:function(){return _.w(_.E1,{data:m,animationName:Z,className:u,animationRef:e})},
else:E}))},"B");_.qW(iI4);var aeu,y7z;aeu=_.rp(function(E){var B=_.oH(),I=_.oH(),T=_.oH(),e=_.$4(),c=_.$4(),Y=_.$4(),v=_.iO(_.RS,function(){return E.data().stateEntityStoreKey}),y=_.iO(JZJ,function(){var I$,bc;
return(bc=(I$=E.data().notificationStateEntityStoreKeys)==null?void 0:I$.subsNotificationStateKey)!=null?bc:""}),Z=function(){return!E.data().enableSubscribeButtonPostClickAnimation},P=_.p(_.lQ(0,void 0,"LZz2ld")),z=P.next().value,m=P.next().value;
P=_.p(_.lQ(0,void 0,"DTJZzd"));var u=P.next().value,x=P.next().value;P=_.p(_.lQ(!1,void 0,"vYdJ9e"));var M=P.next().value,N=P.next().value;P=_.p(_.lQ(!1,void 0,"HsSmhb"));var W=P.next().value,U=P.next().value;P=_.p(_.lQ(!1,void 0,"St29Yd"));var q=P.next().value,f=P.next().value,ed="";P=_.p(_.lQ(!1,void 0,"p20o0d"));var K=P.next().value,p4=P.next().value,sc=function(){U(!0);_.wT(_.Ll,function(){U(!1)},1500)};
_.m$(function(){var I$=W();e2(function(){I$&&!Z()&&v()&&Ckc(e,c,Y)})});
_.m$(function(){var I$=v();e2(function(){if(!Z()&&I$){var bc;((bc=E.animateWidth)==null?0:bc.call(E))&&y7D(B.value,!!I$.subscribed,z(),u());I$.subscribed&&I$.key===ed&&sc();I$.key&&(ed=I$.key)}})});
P=_.aJ(function(){var I$,bc,hz,TU=E.data(),Wm=!((I$=v())==null||!I$.subscribed);I$=!((bc=E.isOverlay)==null||!bc.call(E));bc=M()?B.value:void 0;var z2=(hz=y())==null?void 0:hz.state;hz=K();vEF(TU,z2);return pe({model:TU,subscribed:Wm,isOverlay:I$,element:bc,notificationState:z2,disableTextEllipsis:!0,focused:hz})},void 0,"CJfYod");
var Gf=function(){var I$;if(!Z()&&((I$=E.animateWidth)==null?0:I$.call(E))&&(I==null?0:I.value)&&(T==null?0:T.value)&&!q()){I$=v();var bc=_.p((I$==null?0:I$.subscribed)?[I,T]:[T,I]),hz=bc.next().value;bc=bc.next().value;hz=Math.ceil(hz.value.getBoundingClientRect().width);bc=Math.ceil(bc.value.getBoundingClientRect().width);m(hz);x(bc);y7D(B.value,!(I$==null||!I$.subscribed),hz,bc);f(!0)}},xi=_.TI(function(I$){Gf();
var bc=v();bc&&(I$.detail.endpoint.subscribeEndpoint||I$.detail.endpoint.unsubscribeEndpoint)&&Y$B(B.value,!bc.subscribed,bc)}),ki=function(){var I$=_.Q().resolve(_.Fx(_.ZR));
I$&&p4(I$.isKeyBoardInUse())},WG=function(){p4(!1)};
_.bE("yt-player-subscribe",function(I$){var bc=v();bc&&I$===E.data().channelId&&Y$B(B.value,!0,bc)});
_.bE("yt-player-unsubscribe",function(I$){var bc=v();bc&&I$===E.data().channelId&&Y$B(B.value,!1,bc)});
_.bE("yt-update-subscribe-button-action",function(I$){I$=_.h(I$,e$c);var bc=v();bc&&I$&&I$.channelId===E.data().channelId&&Y$B(B.value,!!I$.subscribed,bc)});
_.uW(function(){B.value&&(B.value.addEventListener("focusin",ki),B.value.addEventListener("focusout",WG));var I$=_.PC(_.Ll,function(){Gf()});
N(!0);_.dt(function(){_.Ll.cancelJob(I$);B.value&&(B.value.removeEventListener("focusin",ki),B.value.removeEventListener("focusout",WG))})});
var rJ=function(){var I$,bc,hz;if(hz=!((I$=v())==null||!I$.subscribed))I$=!!E.data().disableNotificationBell,hz=(bc=y())==null?void 0:bc.state,hz=!I$&&!!hz;return hz},Uc=function(){var I$;
return!((I$=v())==null?0:I$.subscribed)},CV=function(){var I$,bc;
if(bc=Uc()){bc=!!E.data().disableNotificationBell;var hz=(I$=y())==null?void 0:I$.state;bc=!bc&&!!hz}return bc},Bm={},LV={};
return _.w("yt-subscribe-button-view-model",{class:_.RQ("yt-subscribe-button-view-model-wiz",(Bm["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var I$,bc;return!((I$=v())==null||!I$.subscribed)&&((bc=E.animateWidth)==null?void 0:bc.call(E))&&W()},Bm["yt-subscribe-button-view-model-wiz--hidden"]=function(){var I$;
return!((I$=v())==null?0:I$.subscribed)&&E.data().hideWhenUnsubscribed},Bm)),
el:B,"on:yt-service-request-sent":xi},_.w(leR,{backgroundLottieRef:e,foregroundLottieRef:c,wrapperClass:_.RQ("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(LV["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var I$;return((I$=E.animateWidth)==null?void 0:I$.call(E))&&W()},LV["yt-subscribe-button-view-model-wiz__static-width"]=function(){var I$;
return!((I$=E.animateWidth)==null?0:I$.call(E))},LV)),
disableAnimation:Z},_.w("div",{el:I,class:"yt-subscribe-button-view-model-wiz__container"},_.w(F3,{data:P,icon:function(){return _.w(_.wU,{cond:rJ,then:function(){var I$=function(){var bc;return pJf((bc=y())==null?void 0:bc.state)};
return _.w(_.wU,{cond:function(){return Z()||I$()!=="NOTIFICATIONS_NONE"},
then:function(){return _.w(_.i0,{icon:I$})},
else:function(){return _.w(leQ,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:Y})}})}})},
secondaryIconName:function(){return rJ()?"EXPAND":void 0}}))),_.w("div",{el:T,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.w(_.wU,{cond:function(){var I$;return((I$=E.animateWidth)==null?void 0:I$.call(E))&&!Z()&&!q()},
then:function(){return _.w(F3,{data:_.aJ(function(){var I$;return pe({model:E.data(),subscribed:Uc(),isOverlay:!((I$=E.isOverlay)==null||!I$.call(E)),element:B.value,disableTextEllipsis:!0})},void 0,"VQgKbc"),
iconName:function(){var I$;return CV()?pJf((I$=y())==null?void 0:I$.state):void 0},
secondaryIconName:function(){return CV()?"EXPAND":void 0}})}})))},"C");
_.vEu=_.d("web_enable_sink_yt_subscribe_button_view_model")?aeu:iI4;y7z=_.d("web_enable_sink_yt_subscribe_button_view_model")?aeu:_.$3(iI4);aeu.idomCompat=!0;var wJc=new _.Dr("RENDERER_STAMPER_OPTIONS_TOKEN");var QW;_.mV=new VVu;QW=new Map;var HIQ="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),gEc=["notificationTextRenderer","notificationMultiActionRenderer"],Nei="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
MBc=sc6(function(E){return _.s_(E==null?void 0:E.targetId)}).useUpdatableData;var nEc=0;_.hM.debugName="EjJbCe";var CkD=_.rp(function(E){var B=E.data;var I=_.iO(_.RS,function(){return B().subscriptionStateEntityKey});
return _.w(_.wU,{cond:function(){var T=B(),e=I();return!T.hideWhenUnsubscribed||(e==null?0:e.subscribed)?_.h(B().button,_.sO):void 0},
then:function(T){return _.w("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.w(_.ne,{data:T,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var W5i=_.z8({buttonViewModel:_.ne,subscribeButtonViewModel:_.vEu,downloadButtonViewModel:IeZ,toggleButtonViewModel:_.Le,subscribePlusButtonViewModel:CkD});_.qW(r7F);var wJD=_.rp(function(E){return _.w(_.hM,{data:function(){return E.actionRow().actions}},{buttonViewModel:function(B){var I=B.data;
return _.w(zS,{isRow:E.isRow,isIconOnlyButton:function(){return bId(I())},
useIntrinsicWidth:E.useIntrinsicWidth},_.w(_.ne,{data:I}))},
subscribeButtonViewModel:function(B){return _.w(zS,{isRow:E.isRow},_.w(y7z,{data:B.data,isOverlay:!1,animateWidth:function(){return!E.isRow()}}))},
downloadButtonViewModel:function(B){var I=B.data;return _.w(zS,{isRow:E.isRow,isIconOnlyButton:function(){return!!I().playlistId}},_.w(IeZ,{data:I}))},
toggleButtonViewModel:function(B){var I=B.data;return _.w(zS,{isRow:E.isRow,isIconOnlyButton:function(){var T=I();return bId(_.h(T.isToggled?T.toggledButtonViewModel:T.defaultButtonViewModel,_.sO))}},_.w(_.Le,{data:I}))},
subscribePlusButtonViewModel:function(B){return _.w(zS,{isRow:E.isRow},_.w(CkD,{data:B.data}))}})},"E"),zS=_.rp(function(E){var B={};
return _.w("div",{class:_.RQ("yt-flexible-actions-view-model-wiz__action",(B["yt-flexible-actions-view-model-wiz__action--row-action"]=E.isRow,B["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=E.useIntrinsicWidth,B["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,B["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=E.isIconOnlyButton,B))},E.children)},"F"),ZI6=_.rp(function(E){var B=function(){var T;
return((T=E.layout)==null?void 0:T.call(E))===1},I={};
return _.w("yt-flexible-actions-view-model",{class:_.RQ("yt-flexible-actions-view-model-wiz",E.className,(I["yt-flexible-actions-view-model-wiz--inline"]=function(){return!B()},I["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return E.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},I))},_.w(_.Zt,{each:function(){return E.data().actionsRows||[]}},function(T){return _.w(_.wU,{cond:B,
then:function(){return _.w("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.w(wJD,{actionRow:T,isRow:B,useIntrinsicWidth:function(){return!!E.data().respectActionIntrinsicWidth}}))},
else:function(){return _.w(wJD,{actionRow:T,isRow:B})}})}))},"G"),Pk$=_.d("web_enable_sink_yt_flexible_actions_view_model")?ZI6:r7F,mf=_.d("web_enable_sink_yt_flexible_actions_view_model")?ZI6:_.$3(r7F);
ZI6.idomCompat=!0;_.oQ(mf,"yt-flexible-actions-view-model",{props:{data:_.Jh,layout:_.Jh,justifyContentOverride:_.Jh,className:_.Jh}});_.qW(oED);var z$R,q$i;z$R=_.rp(function(E){var B=_.iO(s1,function(){var e;return(e=E.data().dislikeEntityKey)!=null?e:""}),I=_.aJ(function(){var e=B();
return e?e.likeStatus==="DISLIKE":_.h(E.data().toggleButtonViewModel,_.uO).isToggled},void 0,"D8oIFb"),T=_.aJ(function(){return Object.assign({},_.h(E.data().toggleButtonViewModel,_.uO),{isToggled:I()})},void 0,"shaCXe");
return _.w("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.w(_.Le,{data:T,buttonShapeOverrides:E.buttonShapeOverrideables,onToggle:function(e){var c=B();c&&e!==(c.likeStatus==="DISLIKE")&&c.key&&_.Jd(_.x4("likeStatusEntity",c.key,{likeStatus:e?"DISLIKE":"INDIFFERENT",hadUserInteraction:e}))}}))},"H");
q$i=_.d("web_enable_sink_dislike_button_view_model")?z$R:oED;_.mLl=_.d("web_enable_sink_dislike_button_view_model")?z$R:_.$3(oED);z$R.idomCompat=!0;_.qW(jcD);var QcU,VB6;QcU=_.rp(function(E){var B=_.d("web_supports_animations_api"),I=XC(function(m){var u=Z(),x,M=(u==null?void 0:(x=u.likeCountIfIndifferent)==null?void 0:x.content)!==m.numberText;if(v()||!M)return m;var N,W;return{numberText:(u==null?void 0:(N=u.likeCountIfIndifferent)==null?void 0:N.content)||"",numberValue:Number((W=u==null?void 0:u.likeCountIfIndifferentNumber)!=null?W:0),heightPx:36,shouldAnimate:!!u}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),T=XC(function(m){var u=Z(),x,M=(u==null?void 0:(x=u.likeCountIfIndifferent)==null?void 0:x.content)!==m.numberText;if(v()||!M)return m;var N,W;return{numberText:(u==null?void 0:(N=u.likeCountIfLiked)==null?void 0:N.content)||"",numberValue:Number((W=u==null?void 0:u.likeCountIfLikedNumber)!=null?W:0),heightPx:36,shouldAnimate:!!u}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),e=_.p(_.lQ(void 0,void 0,"T6jMHc")),c=e.next().value,Y=e.next().value,v=c,y=_.iO(s1,function(){var m,u;return(u=(m=E.data())==null?void 0:m.likeStatusEntityKey)!=null?u:""}),Z=_.iO(Cxt,function(){var m,u;
return((m=E.likeCountEntity)==null?void 0:(u=m.call(E))==null?void 0:u.key)||""}),P=_.aJ(function(){var m;
return((m=y())==null?void 0:m.likeStatus)==="LIKE"},void 0,"WxQBcd"),z=function(){var m;
return B&&!((m=E.likeCountEntity)==null||!m.call(E))};
return _.w("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.w(_.Le,{data:function(){var m=Object,u=m.assign,x;var M=_.h((x=E.data())==null?void 0:x.toggleButtonViewModel,_.uO);return u.call(m,{},M||{},{isToggled:P()})},
buttonShapeOverrides:E.buttonShapeOverrideables,animatedTextPropsDefault:function(){return z()?I():void 0},
animatedTextPropsToggled:function(){return z()?T():void 0},
onToggle:function(m){ULi(m,y(),v(),Y)},
style:function(){var m;return((m=E.disableIconAnimation)==null?0:m.call(E))?void 0:{animateIcon:"true"}}}))},"I");
VB6=_.d("web_enable_sink_like_button_view_model")?QcU:jcD;_.dLz=_.d("web_enable_sink_like_button_view_model")?QcU:_.$3(jcD);_.qW(F5D);_.qE(F5D,"segmented-like-dislike-button-view-model",{propNames:["data"]});var $jG=0;_.oQ(P4t,"account-link-button-view-model",{props:{data:_.Jh,className:_.bu,setMinWidth:_.bu,forceIconOnly:_.bu}});_.QH("menuRenderer","menuRenderer","ytd-menu-renderer");
var h$R={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"}},
sch=_.d("web_fix_missing_action_buttons")?100:200,Qw=function(){var E=_.r.apply(this,arguments)||this;E.safeArea=!_.d("kevlar_flex_menu_safe_area_killswitch");E.tonalOverride=!1;E.threeDotSize="M";E.isOverlay=!1;E.useOverlayDark=!1;E.topLevelIconsOnly=!1;E.JSC$12385_lastWidth=0;E.maybeUpdateFlexibleMenu=function(){_.d("web_fix_missing_action_buttons")?requestAnimationFrame(E.maybeUpdateFlexibleMenuImpl):E.maybeUpdateFlexibleMenuImpl()};
E.maybeUpdateFlexibleMenuImpl=function(){var B;if((B=E.data)!=null&&B.flexibleItems){E.maybeFlushDebouncer();B=E.hostElement.clientWidth;var I=B>E.JSC$12385_lastWidth,T,e=((T=E.topLevelButtonsContainer)==null?void 0:T.scrollHeight)||0,c;T=((c=E.flexibleItemButtonsContainer)==null?void 0:c.scrollHeight)||0;c=E.hostElement.scrollHeight>Math.max(e,T)+8;I?(E.resetFlexibleItems(),E.JSC$12385_lastWidth=E.hostElement.clientWidth,E.maybeUpdateFlexibleMenu()):c&&(E.shrinkFlexibleMenu(),E.JSC$12385_lastWidth=
B)}};
E.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){E.onOverflowTap()},
iconPosition:"icon-only",style:E.isOverlay?E.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:E.threeDotSize,state:"active",accessibilityLabel:E.computeAccessibilityLabel(E.data)},E.threeDotButtonOverride)};
E.onOverflowTap=function(){if(E.data.fetchMenuCommand)_.Q().resolve(_.Dt).resolveCommand(E.data.fetchMenuCommand,{form:{element:E.hostElement}});else if(E.data.isDisabled&&E.data.disabledCommand)_.$g(E.data.disabledCommand,E.hostElement);else{var B=E.createMenuRendererVe(),I={items:E.items};E.data.menuPopupAccessibility&&(I.menuPopupAccessibility=E.data.menuPopupAccessibility);E.data.footer&&(I.footer=E.data.footer);B={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:I},veData:B}};_.Q().resolve(_.ZT).openSheet({openPopupActionCommand:B},
E.hostElement)}};
return E};
_.L(Qw,_.r);_.l=Qw.prototype;_.l.updateButtonOverrides=function(){if(!_.d("menu_renderer_label_update_upkillswitch")){var E=_.n(this.hostElement).querySelector("yt-button-view-model");E&&(E.buttonOverrides=this.buttonOverrides)}};
_.l.computeHasItems=function(){var E;return((E=this.topLevelButtonData)==null?void 0:E.length)||this.hasFlexibleItems};
_.l.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.l.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Dk(this.hostElement,{"--ytd-menu-renderer-button-color":_.dE(this.data.iconColor)}))};
_.l.onStamperFinished=function(){this.JSC$12385_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.l.setupFlexibleMenu=function(){var E=this,B;(B=this.data)!=null&&B.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.qH(this.maybeUpdateFlexibleMenu,sch,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){E.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))};
_.l.maybeFlushDebouncer=function(){if(_.d("web_replace_formatted_with_attributed_string")){var E;(E=this.topLevelButtons)==null||E.forEach(function(I){var T;(I=(T=I.getElementsByTagName("yt-attributed-string"))==null?void 0:T[0])&&W64(I)});
var B;(B=this.flexibleItemButtons)==null||B.forEach(function(I){var T;(I=(T=I.getElementsByTagName("yt-attributed-string"))==null?void 0:T[0])&&W64(I)})}};
_.l.resetFlexibleItems=function(){var E;if((E=this.data)!=null&&E.flexibleItems){_.d("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var B;this.flexAsTopLevelButtons=(B=this.data.flexibleItems)==null?void 0:B.map(function(I){return _.h(I,_.hhU).topLevelButton});
_.d("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.l.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.l.shrinkFlexibleMenu=function(){var E;(E=this.flexAsTopLevelButtons)!=null&&E.length&&(this.flexAsTopLevelButtons=[].concat(_.ad(this.flexAsTopLevelButtons.slice(0,-1))))};
_.l.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:h$R,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:h$R,events:!0}}};
_.l.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.l.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.l.detached=function(){this.icon="yt-icons:more_vert"};
_.l.computeTopLevelButtonData=function(E){if(!E)return[];var B;E=(B=E==null?void 0:E.topLevelButtons)!=null?B:[];return _.a_.unsafeClone([].concat(_.ad(E)))};
_.l.computeItems=function(E,B){if(!E)return[];var I=[];if(B){var T=(E.flexibleItems||[]).map(function(Y){return _.h(Y,_.hhU)});
T=_.p(T);for(var e=T.next();!e.done;e=T.next())e=e.value,B.includes(e.topLevelButton)||(e=e.menuItem)&&I.push(e)}var c;E=(c=E==null?void 0:E.items)!=null?c:[];return[].concat(_.ad(I),_.ad(E))};
_.l.computeMenuActive=function(E,B){return E||B};
_.l.onPopupOpened=function(){this.overlayOpen=!0;_.$O(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.l.onPopupClosed=function(){this.overlayOpen=!1;_.$O(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.l.onPopupCanceled=function(){this.overlayOpen=!1;_.$O(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.l.computeAccessibilityLabel=function(E){return this.get("accessibility.accessibilityData.label",E)};
_.l.isHidden=function(E,B){return this.tonalOverride||!E?!0:E.fetchMenuCommand||E.isDisabled&&E.disabledCommand?!1:!(B==null?0:B.length)};
_.l.isModernOverflowHidden=function(E,B){return this.tonalOverride&&E?E.fetchMenuCommand?!1:!(B==null?0:B.length):!0};
_.l.createMenuRendererVe=function(){var E=this.data.trackingParams,B=_.nC(),I=_.Oi();return E&&B&&I?(E=_.Yg(E),I=_.wA(7591),_.d("combine_ve_grafts")?_.Ts(_.lu(),I,E):_.XD(B,E,I),I):null};
_.Up.Object.defineProperties(Qw.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.flexAsTopLevelButtons)==null||!E.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Qw.prototype.onPopupCanceled=Qw.prototype.onPopupCanceled;Qw.prototype.onPopupClosed=Qw.prototype.onPopupClosed;Qw.prototype.onPopupOpened=Qw.prototype.onPopupOpened;Qw.prototype.tonalOverrideChanged=Qw.prototype.tonalOverrideChanged;Qw.prototype.resetFlexibleItems=Qw.prototype.resetFlexibleItems;Qw.prototype.setupFlexibleMenu=Qw.prototype.setupFlexibleMenu;Qw.prototype.iconButtonColorChanged=Qw.prototype.iconButtonColorChanged;Qw.prototype.updateButtonOverrides=Qw.prototype.updateButtonOverrides;
_.k([_.g(_.X_),_.t("design:type",Object)],Qw.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);_.k([_.$7("#button-shape"),_.t("design:type",DG)],Qw.prototype,"buttonShape",void 0);_.k([_.$7("#button"),_.t("design:type",Object)],Qw.prototype,"button",void 0);
_.k([_.X(),_.t("design:type",Object)],Qw.prototype,"data",void 0);_.k([_.X({computed:"computeTopLevelButtonData(data)"}),_.t("design:type",Array)],Qw.prototype,"topLevelButtonData",void 0);_.k([_.X(),_.t("design:type",Array)],Qw.prototype,"flexAsTopLevelButtons",void 0);_.k([_.X({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.t("design:type",Array)],Qw.prototype,"items",void 0);_.k([_.X({value:"yt-icons:more_vert"}),_.t("design:type",String)],Qw.prototype,"icon",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Qw.prototype,"safeArea",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.t("design:type",Boolean)],Qw.prototype,"menuActive",void 0);_.k([_.X(),_.t("design:type",Boolean)],Qw.prototype,"menuFocused",void 0);_.k([_.X({value:"bottom"}),_.t("design:type",String)],Qw.prototype,"buttonTooltipPosition",void 0);_.k([_.X(),_.t("design:type",Boolean)],Qw.prototype,"overlayOpen",void 0);
_.k([_.X({value:!0}),_.t("design:type",Boolean)],Qw.prototype,"forceIconButton",void 0);_.k([_.X(),_.t("design:type",Boolean)],Qw.prototype,"styleActionButton",void 0);_.k([_.X(),_.t("design:type",Boolean)],Qw.prototype,"disableTextTransformOnButtons",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Qw.prototype,"tonalOverride",void 0);_.k([_.X(),_.t("design:type",Object)],Qw.prototype,"threeDotSize",void 0);
_.k([_.X(),_.t("design:type",Object)],Qw.prototype,"threeDotButtonOverride",void 0);_.k([_.X(),_.t("design:type",Object)],Qw.prototype,"isOverlay",void 0);_.k([_.X(),_.t("design:type",Object)],Qw.prototype,"useOverlayDark",void 0);_.k([_.X({computed:"computeButtonOverride(tonalOverride)"}),_.t("design:type",Object)],Qw.prototype,"buttonOverride",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Qw.prototype,"hasCustomIconColor",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("flexAsTopLevelButtons"),_.t("design:type",Object),_.t("design:paramtypes",[])],Qw.prototype,"hasFlexibleItems",null);_.k([_.X({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.t("design:type",Boolean)],Qw.prototype,"hasItems",void 0);_.k([_.X(),_.t("design:type",Object)],Qw.prototype,"topLevelIconsOnly",void 0);
_.k([_.EM("topLevelIconsOnly"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Qw.prototype,"updateButtonOverrides",null);_.k([_.S("topLevelIconsOnly"),_.t("design:type",Object),_.t("design:paramtypes",[])],Qw.prototype,"buttonOverrides",null);_.k([_.$7("#top-level-buttons-computed"),_.t("design:type",HTMLElement)],Qw.prototype,"topLevelButtonsContainer",void 0);_.k([_.eV(".top-level-buttons > *"),_.t("design:type",Array)],Qw.prototype,"topLevelButtons",void 0);
_.k([_.$7("#flexible-item-buttons"),_.t("design:type",HTMLElement)],Qw.prototype,"flexibleItemButtonsContainer",void 0);_.k([_.eV("#flexible-item-buttons > *"),_.t("design:type",Array)],Qw.prototype,"flexibleItemButtons",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Qw.prototype,"iconButtonColorChanged",null);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Qw.prototype,"setupFlexibleMenu",null);_.k([_.i6("topLevelIconsOnly"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Qw.prototype,"resetFlexibleItems",null);_.k([_.EM("tonalOverride"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Qw.prototype,"tonalOverrideChanged",null);
_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Qw.prototype,"onPopupOpened",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Qw.prototype,"onPopupClosed",null);_.k([_.RN("yt-popup-canceled"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Qw.prototype,"onPopupCanceled",null);
_.A(Qw,"ytd-menu-renderer",function(){if(JSr===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);JSr=E}E=JSr;return E},{mode:_.qi("kevlar_poly_si_batch_j030")?1:2});var uBz;var L5R;_.fe=_.rp(function(E){var B=E.data;var I=function(){if(B().icon)a:{var T={iconName:B().icon};for(var e=_.Q().resolve(_.Ee),c=_.p([12,24]),Y=c.next();!Y.done;Y=c.next()){var v=Y.value;Y=Object.assign({},T,{iconStyle:"youtube_fill",iconSize:v});v=Object.assign({},T,{iconStyle:"youtube_outline",iconSize:v});if(e.resolveIcon(Y)){T=Y;break a}if(e.resolveIcon(v)){T=v;break a}}T=void 0}else T=void 0;return T};
E={};return _.w("badge-shape",{class:_.RQ("badge-shape-wiz",function(){return Qot(B().type)},(E["badge-shape-wiz--overlay"]=function(){return B().isOverlay},E["badge-shape-wiz--ads-include-dot"]=function(){return B().adsIncludeDot},E["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(B().type){case 16:case 17:case 18:var T=!0;
break a;default:T=!1}return T},E["badge-shape-wiz--status-badge"]=function(){a:switch(B().type){case 11:case 12:case 13:case 14:case 15:var T=!0;
break a;default:T=!1}return T},E["badge-shape-wiz--no-text"]=function(){return!B().text},E["badge-shape-wiz--modern"]=function(){return B().modern},E)),
style:_.c$({"background-color":function(){var T;return(T=B().customColors)==null?void 0:T.backgroundColor}}),
role:function(){return B().accessibilityText?"img":void 0},
"aria-label":function(){return B().accessibilityText}},_.w(_.wU,{cond:function(){return B().animation},
then:function(T){return _.w(_.E1,{className:"badge-shape-wiz__icon",data:T,animationName:function(){return T().animationConfig.name||""}})}}),_.w(_.wU,{cond:function(){var T;
return I()&&!((T=B())==null?0:T.animation)},
then:function(){return _.w("div",{class:"badge-shape-wiz__icon"},_.w(I9i,{data:function(){return I()}}))}}),_.w("div",{class:"badge-shape-wiz__text"},function(){var T;
return(T=B())==null?void 0:T.text}))},"J");
_.fe.idomCompat=!0;_.oQ(_.fe,"badge-shape",{props:{data:_.Jh}});var dQ=function(){var E=_.r.apply(this,arguments)||this;E.systemIcons=_.d("kevlar_system_icons");E.animated=_.d("animated_live_badge_icon");E.useBadgeShape=_.d("web_badge_shape_defrag");return E};
_.L(dQ,_.r);_.l=dQ.prototype;_.l.addTooltips=function(){for(var E=_.n(this.hostElement).querySelectorAll(".badge"),B=0,I;I=E[B++];){var T=this.repeatElement.itemForElement(I);I=_.n(I);I.lastChild&&I.lastChild.is==="tp-yt-paper-tooltip"&&I.removeChild(I.lastChild);if(T=T.metadataBadgeRenderer&&T.metadataBadgeRenderer.tooltip){var e=_.Ah("tp-yt-paper-tooltip");(0,_.FN)(e).textContent=T;e.setAttribute("position","top");I.appendChild(e)}}};
_.l.badgesChanged=function(){var E=this;_.gB().parkOrScheduleJob(function(){E.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.l.standaloneRoundedBadgeChanged=function(){var E=this.useRoundedBadge?this.useRoundedBadge:void 0;E&&(this.useRoundedBadge=E)};
_.l.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.l.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.l.computeStyle=function(E){_.d("enable_html5_teal_ad_badge")&&E==="BADGE_STYLE_TYPE_AD"&&(E="badge-style-type-ad-alternate");_.d("kevlar_ytb_live_badges")&&E==="BADGE_STYLE_TYPE_LIVE_NOW"&&(E="badge-style-type-live-now-alternate");return E?E.toLowerCase().replace(/_/g,"-"):""};
_.l.computeRole=function(E){return this.computeAriaLabel(E)?"img":"status"};
_.l.computeAriaLabel=function(E){var B;return(E==null?void 0:(B=E.accessibilityData)==null?void 0:B.label)||(E==null?void 0:E.label)};
_.l.computeBadgeShape=function(E){var B;if(E){var I,T=zWi(E.style),e=mj4(E.style),c=E.label,Y=((I=E.accessibilityData)==null?void 0:I.label)||E.label;E=(B=E.icon)==null?void 0:B.iconType;B={type:T,brNzRatingBadgeType:e,text:c,accessibilityText:Y,icon:E!=="PREMIUM"?E:void 0}}else B={};return B};
_.l.updateComputedBadges=function(E,B,I){var T=this;(B=B?[B]:I?[I]:void 0)?this.computedBadges=B:this.computedBadges=E==null?void 0:E.filter(function(e){var c;if((c=e.metadataBadgeRenderer)==null?0:c.groups){c=!1;e=_.p(e.metadataBadgeRenderer.groups);for(var Y=e.next();!Y.done;Y=e.next()){Y=Y.value;var v=void 0;c=c||((v=T.hiddenBadgeGroups)==null?void 0:v.includes(Y))}return!c}return!0})};
_.l.useFilledIcons=function(E){return _.d("kevlar_system_icons")&&(E==="AUDIO_BADGE"||E==="CHECK_CIRCLE_THICK"||E==="OFFICIAL_ARTIST_BADGE"||E==="SPONSORSHIP_STAR"||E==="PERSON_RADAR_FILLED"||E==="PERSON_RADAR")};
_.l.computeIcon=function(E){var B,I;E=E==null?void 0:(B=E.metadataBadgeRenderer)==null?void 0:(I=B.icon)==null?void 0:I.iconType;if(E!=="PREMIUM"&&E)return _.R3(E)};
_.l.computeStandaloneBadge=function(E){var B;E=E==null?void 0:(B=E.icon)==null?void 0:B.iconType;return E==="PREMIUM_STANDALONE"||E==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
dQ.prototype.hiddenBadgeGroupsChanged=dQ.prototype.hiddenBadgeGroupsChanged;dQ.prototype.standaloneBadgeChanged=dQ.prototype.standaloneBadgeChanged;dQ.prototype.standaloneRoundedBadgeChanged=dQ.prototype.standaloneRoundedBadgeChanged;dQ.prototype.badgesChanged=dQ.prototype.badgesChanged;_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],dQ.prototype,"hidden",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],dQ.prototype,"componentBehavior",void 0);
_.k([_.X(),_.t("design:type",Array)],dQ.prototype,"badges",void 0);_.k([_.X(),_.t("design:type",Object)],dQ.prototype,"topStandaloneBadge",void 0);_.k([_.X(),_.t("design:type",Object)],dQ.prototype,"bottomStandaloneBadge",void 0);_.k([_.X(),_.t("design:type",Object)],dQ.prototype,"computedBadges",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],dQ.prototype,"mediumFontAdBadge",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],dQ.prototype,"useRoundedBadge",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],dQ.prototype,"largeFontAdBadge",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],dQ.prototype,"overlayAd",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],dQ.prototype,"overlayPremium",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],dQ.prototype,"noDotAdBadge",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],dQ.prototype,"collectionTruncate",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],dQ.prototype,"isThumbnailBadge",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],dQ.prototype,"wrapBadges",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],dQ.prototype,"systemIcons",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],dQ.prototype,"animated",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],dQ.prototype,"useBadgeShape",void 0);_.k([_.X({value:[]}),_.t("design:type",Array)],dQ.prototype,"hiddenBadgeGroups",void 0);_.k([_.$7("#repeat"),_.t("design:type",ZN)],dQ.prototype,"repeatElement",void 0);_.k([_.i6("badges"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dQ.prototype,"badgesChanged",null);
_.k([_.i6("useRoundedBadge"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dQ.prototype,"standaloneRoundedBadgeChanged",null);_.k([_.i6("topStandaloneBadge","bottomStandaloneBadge"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dQ.prototype,"standaloneBadgeChanged",null);_.k([_.i6("hiddenBadgeGroups"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dQ.prototype,"hiddenBadgeGroupsChanged",null);
dQ=_.k([_.b({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],dQ);
var xLV=_.VE()(dQ,"ytd-badge-supported-renderer",function(){if(L5R===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);L5R=E}E=L5R;return E},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.qi("kevlar_poly_si_batch_j053")?1:2});var hy=function(){var E=_.r.apply(this,arguments)||this;E.iconType="STAR";E.standardizeIconSize=_.d("kevlar_system_icons");E.mediaHoverOverlayInitialVisibility=_.d("enable_top_landscape_image_button_command_web");E.noBottomMargin=!1;E.thumbnailObjectFit="CONTAIN";E.thumbnailFitHeight=!0;E.actionMap={"yt-mute-ad-action":"handleMuteAd"};return E};
_.L(hy,_.r);_.l=hy.prototype;
_.l.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"}}}};
_.l.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",hy.JSC$12397_DEFAULT_CLICK_LOCATION_BEHAVIOR,hy.JSC$12397_CLICK_LOCATION_ID_MAP))};
_.l.onTap=function(E){if(!_.d("use_on_click_for_desktop_display_ad"))this.onTapOrClick(E)};
_.l.onClick=function(E){if(_.d("use_on_click_for_desktop_display_ad"))this.onTapOrClick(E)};
_.l.onTapOrClick=function(E){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,E,!1)};
_.l.updateMediaBackgroundImage=function(){var E=this.get("data.image.thumbnail.thumbnails");E&&(E=_.Aa(E,0))&&_.Dk(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+E+")"})};
_.l.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var E=0;E<this.data.impressionEndpoints.length;E++){var B=this.data.impressionEndpoints[E];B.clickTrackingParams&&delete B.clickTrackingParams;_.Q().resolve(_.Dt).resolveCommand(B,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var I;((I=this.data)==null?0:I.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.l.handleMuteAd=function(){};
_.l.attached=function(){var E=this;_.d("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&E.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.d("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Up.Object.defineProperties(hy.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)==null||!E.titleText)return"";var B;return _.yu("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((B=this.data)==null?void 0:B.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?0:E.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?0:E.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?0:E.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?0:E.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?0:E.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 E;return!((E=this.data)==null||!E.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"}}});
hy.prototype.onClick=hy.prototype.onClick;hy.prototype.onTap=hy.prototype.onTap;hy.prototype.dataChanged=hy.prototype.dataChanged;
hy.JSC$12397_CLICK_LOCATION_ID_MAP=_.d("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"]]);
hy.JSC$12397_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.d("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"}];_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],hy.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.GJ),_.t("design:type",Object)],hy.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],hy.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.k2.YtSparklesClickLocationBehavior),_.t("design:type",Object)],hy.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.g(su),_.t("design:type",Object)],hy.prototype,"ytdActiveViewBehavior",void 0);_.k([_.g([_.th.YtActionHandlerBehavior]),_.t("design:type",Object)],hy.prototype,"actionHandlerBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],hy.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],hy.prototype,"clickCommand",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Boolean)],hy.prototype,"miniMode",void 0);_.k([_.X(),_.t("design:type",String)],hy.prototype,"iconType",void 0);_.k([_.S("data.titleText"),_.t("design:type",String),_.t("design:paramtypes",[])],hy.prototype,"titleAriaLabel",null);
_.k([_.S("data.rating"),_.t("design:type",Object),_.t("design:paramtypes",[])],hy.prototype,"getRating",null);_.k([_.S("data.price"),_.t("design:type",Object),_.t("design:paramtypes",[])],hy.prototype,"getPrice",null);_.k([_.S("data.thirdLine"),_.t("design:type",Object),_.t("design:paramtypes",[])],hy.prototype,"getThirdLine",null);_.k([_.S("data.fourthLine"),_.t("design:type",Object),_.t("design:paramtypes",[])],hy.prototype,"getFourthLine",null);
_.k([_.S("data.fifthLine"),_.t("design:type",Object),_.t("design:paramtypes",[])],hy.prototype,"getFifthLine",null);_.k([_.S("getRating"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],hy.prototype,"computeRatingHidden",null);_.k([_.S("getPrice"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],hy.prototype,"computePriceHidden",null);_.k([_.S("getThirdLine"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],hy.prototype,"computeThirdLineHidden",null);
_.k([_.S("getFourthLine"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],hy.prototype,"computeFourthLineHidden",null);_.k([_.S("getFifthLine"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],hy.prototype,"computeFifthLineHidden",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.energyIcon"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],hy.prototype,"hasEnergyIcon",null);
_.k([_.S("computePriceHidden","computeRatingHidden"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],hy.prototype,"computeSecondaryTextHidden",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],hy.prototype,"standardizeIconSize",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],hy.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],hy.prototype,"noBottomMargin",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data.layout"),_.t("design:type",String),_.t("design:paramtypes",[])],hy.prototype,"layout",null);_.k([_.S("data.layout"),_.t("design:type",Object),_.t("design:paramtypes",[])],hy.prototype,"mediaThumbnailWidth",null);_.k([_.S("layout"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],hy.prototype,"useRoundedBadge",null);_.k([_.X(),_.t("design:type",String)],hy.prototype,"thumbnailObjectFit",void 0);
_.k([_.X(),_.t("design:type",Object)],hy.prototype,"thumbnailFitHeight",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],hy.prototype,"dataChanged",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],hy.prototype,"onTap",null);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],hy.prototype,"onClick",null);
hy=_.k([_.b({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],hy);
_.A(hy,"ytd-display-ad-renderer",function(){if(uBz!==void 0)return uBz;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return uBz=E},{mode:1});var GoZ;var OIh;var nEZ;var djJ=new Map;var MBZ=!1;var sv=function(){var E=_.r.apply(this,arguments)||this;E.DEFAULT_TOOLTIP_OFFSET="10";E.TOOLTIP_OFFSET_NO_BANNER="-8";E.badges=null;E.noEndpoints=!1;E.wrapText=!1;E.forceVerified=!1;E.tooltipPosition="top";E.compactStyle=!1;E.height=0;E.lineHeight=0;return E};
_.L(sv,_.r);_.l=sv.prototype;_.l.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.l.attached=function(){var E=this;this.observer=new MutationObserver(function(B,I){E.handleResized();I.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.l.detached=function(){this.observer&&this.observer.disconnect()};
_.l.logTooltipEvent=function(){_.d("kevlar_wiz_tooltip_event_killswitch")||MBZ||(_.hWf("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),MBZ=!0)};
_.l.handleWindowResized=function(){this.handleResized()};
_.l.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")))};
_.l.onHeightChanged=function(){if(this.verified){var E=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.HA("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=E:this.textContainerEl.style.marginRight=E}};
_.l.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.HA("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.l.handleResized=function(){var E=this;this.verified&&_.Ll.addLowPriorityJob(function(){E.fitBackgroundToText();var B=getComputedStyle(E.hostElement).lineHeight;B&&(B=B.match(/\d+/))&&B.length&&(E.lineHeight=Number(B[0]));E.height=E.lineHeight&&!E.wrapText?E.lineHeight:E.textEl.offsetHeight})};
_.l.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var E=document.createRange(),B=_.n(this.textEl).children;B.length>0?E.selectNodeContents(B[0]):E.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(E.getBoundingClientRect().width)+"px"}};
_.l.computeChannelBadgeStyle=function(E){var B;if((E==null?0:(B=E.runs)==null?0:B.length)&&E.runs[0].textColor)return"--ytd-badge-icon-color:"+_.dE(E.runs[0].textColor)+";"};
_.Up.Object.defineProperties(sv.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"?_.jj(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var E=this.get("badges.0.metadataBadgeRenderer.tooltip");if(E)return E}return _.U3(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
sv.prototype.onLineHeightChanged=sv.prototype.onLineHeightChanged;sv.prototype.onHeightChanged=sv.prototype.onHeightChanged;sv.prototype.onChannelNameChanged=sv.prototype.onChannelNameChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],sv.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],sv.prototype,"badges",void 0);_.k([_.X(),_.t("design:type",Object)],sv.prototype,"channelName",void 0);
_.k([_.X(),_.t("design:type",Object)],sv.prototype,"noEndpoints",void 0);_.k([_.X(),_.t("design:type",Object)],sv.prototype,"wrapText",void 0);_.k([_.X(),_.t("design:type",Object)],sv.prototype,"forceVerified",void 0);_.k([_.X(),_.t("design:type",Object)],sv.prototype,"tooltipPosition",void 0);_.k([_.X(),_.t("design:type",String)],sv.prototype,"tooltip",void 0);_.k([_.X(),_.t("design:type",Boolean)],sv.prototype,"hasChannelArt",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],sv.prototype,"compactStyle",void 0);_.k([_.$7("#text-container"),_.t("design:type",HTMLElement)],sv.prototype,"textContainerEl",void 0);_.k([_.$7("#text"),_.t("design:type",Object)],sv.prototype,"textEl",void 0);_.k([_.$7("#verified-tooltip"),_.t("design:type",HTMLElement)],sv.prototype,"verifiedTooltip",void 0);_.k([_.X(),_.t("design:type",Object)],sv.prototype,"height",void 0);
_.k([_.X(),_.t("design:type",Object)],sv.prototype,"lineHeight",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("badges","forceVerified"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sv.prototype,"verified",null);_.k([_.S("badges","verified"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sv.prototype,"hideBadges",null);_.k([_.S("channelName"),_.t("design:type",Object),_.t("design:paramtypes",[])],sv.prototype,"formattedName",null);
_.k([_.S("badges","verified","formattedName"),_.t("design:type",String),_.t("design:paramtypes",[])],sv.prototype,"tooltipText",null);_.k([_.S("hasChannelArt"),_.t("design:type",String),_.t("design:paramtypes",[])],sv.prototype,"tooltipOffset",null);_.k([_.EM("channelName"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sv.prototype,"onChannelNameChanged",null);
_.k([_.EM("height"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sv.prototype,"onHeightChanged",null);_.k([_.EM("lineHeight","height"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sv.prototype,"onLineHeightChanged",null);sv=_.k([_.b({is:"ytd-channel-name",disableElementRegistration:!0})],sv);
_.A(sv,"ytd-channel-name",function(){if(nEZ!==void 0)return nEZ;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return nEZ=E},{mode:_.qi("kevlar_poly_si_batch_j036")?1:2});var u_=function(){var E=_.r.apply(this,arguments)||this;E.standardizeIconSize=_.d("kevlar_system_icons");E.enableModernCommentBadges=_.d("enable_modern_comment_badges");return E};
_.L(u_,_.r);u_.prototype.basicPaletteChanged=function(){var E;(E=this.data.color)!=null&&E.basicColorPaletteData&&_.zI(this.hostElement,this.data.color.basicColorPaletteData)};
u_.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var E,B=this.get("basicColorPaletteData.backgroundColor",(E=this.data)==null?void 0:E.color),I;E=this.get("basicColorPaletteData.foregroundTitleColor",(I=this.data)==null?void 0:I.color);I={};B?(B=_.dE(B),I["--ytd-author-comment-badge-background-color"]=B):(I["--ytd-author-comment-badge-icon-background-color"]="transparent",I["--ytd-author-comment-badge-background-color"]="transparent");E?(B=_.dE(E),I["--ytd-author-comment-badge-name-color"]=
B,I["--ytd-author-comment-badge-icon-color"]=B):I["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(I).length>0&&_.Dk(this.hostElement,I)}};
u_.prototype.useFilledIcons=function(E){return _.d("kevlar_system_icons")&&(E==="CHECK_CIRCLE_THICK"||E==="OFFICIAL_ARTIST_BADGE")};
_.Up.Object.defineProperties(u_.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
u_.prototype.colorChanged=u_.prototype.colorChanged;u_.prototype.basicPaletteChanged=u_.prototype.basicPaletteChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],u_.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],u_.prototype,"standardizeIconSize",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],u_.prototype,"enableModernCommentBadges",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data.authorUnifiedVerified"),_.t("design:type",Object),_.t("design:paramtypes",[])],u_.prototype,"verified",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],u_.prototype,"creator",null);_.k([_.EM("data.color.basicColorPaletteData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],u_.prototype,"basicPaletteChanged",null);
_.k([_.EM("data.color"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],u_.prototype,"colorChanged",null);u_=_.k([_.b({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],u_);
_.A(u_,"ytd-author-comment-badge-renderer",function(){if(OIh!==void 0)return OIh;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return OIh=E},{mode:1});var HIR;var Lt=function(){return _.r.apply(this,arguments)||this};
_.L(Lt,_.r);Lt.prototype.computeThumbnailWidth=function(E){if(E==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Lt.prototype,"data",void 0);_.k([_.X({computed:"computeIcon_(data.icon)"}),_.t("design:type",String)],Lt.prototype,"icon",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],Lt.prototype,"surface",void 0);
_.k([_.X({reflectToAttribute:!0,value:_.d("enable_shrink_image_size_on_web_posts_singleton")}),_.t("design:type",Boolean)],Lt.prototype,"searchSxsUx",void 0);Lt=_.k([_.b({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Lt);
_.A(Lt,"ytd-backstage-image-renderer",function(){if(HIR!==void 0)return HIR;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return HIR=E},{mode:1});var Nel;var xJ=function(){var E=_.r.apply(this,arguments)||this;E.isLoading=!1;E.selectedItemIndex=-1;return E};
_.L(xJ,_.r);_.l=xJ.prototype;_.l.computeIsChannelOwner=function(E){if(!E)return!0;E=E[0];return!(E&&(E.signinEndpoint||E.selectServiceEndpoint))};
_.l.computeIsImagePoll=function(E){return(E==null?void 0:E.type)==="POLL_TYPE_IMAGE"};
_.l.computeIsTotalVotesDisabled=function(E){return!(E==null?0:E.totalVotes)};
_.l.thumbnailSrc=function(E){var B,I,T,e;return(E==null?0:(B=E.thumbnails)==null?0:(I=B[0])==null?0:I.url)?_.pr((T=E.thumbnails)==null?void 0:(e=T[0])==null?void 0:e.url):void 0};
_.l.progressWidth=function(E){return"width:"+(E?E*100:0)+"%;"};
_.l.textAreaWidth=function(E){return this.isImagePoll?null:"width:"+(E?E*100:0)+"%;"};
_.l.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.l.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var E=this.data.choices,B=0;B<E.length;B++)if(E[B].selected){this.selectedItemIndex=B;break}};
_.l.onPopupClosed=function(E,B){E=Number(this.pollVotes.selected);B.confirmed&&(this.selectChoice(E,!1),_.I2(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.l.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.l.onYtCommentPollRevert=function(E,B){B&&(this.selectChoice(B.selectedChoiceIndex,!0),this.set("data.totalVotes",B.totalVotes))};
_.l.onYtServiceRequestSent=function(E,B){if(B.actions)for(E=0;E<B.actions.length;E++){var I=B.actions[E];_.h(I,sS)&&this.set("data.totalVotes",_.h(I,sS).totalVotes)}};
_.l.onYtServiceRequestCompleted=function(E){var B=this.get("detail.data.actionResults.0.feedback",E);E=this.get("detail.data.actionResults.0.status",E);if(B==="FEEDBACK_DESELECT"||B==="FEEDBACK_SELECT")this.isLoading=!1,E==="STATUS_FAILED"?_.$O(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.l.getEndpoint=function(E,B){return B===E?this.data.choices[B].deselectServiceEndpoint||null:this.data.choices[E].selectServiceEndpoint||null};
_.l.selectChoice=function(E,B){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var I=0;I<this.data.choices.length;I++){var T;if(E===this.selectedItemIndex){var e=!1;var c=T=null}else T=(e=I===E)?this.data.choices[I].voteRatioIfSelected:this.data.choices[I].voteRatioIfNotSelected,c=e?this.data.choices[I].votePercentageIfSelected:this.data.choices[I].votePercentageIfNotSelected;this.set("data.choices."+I+".voteRatio",T);
this.set("data.choices."+I+".votePercentage",c);this.set("data.choices."+I+".selected",e)}B||(this.isLoading=!0,(B=this.getEndpoint(E,this.selectedItemIndex))&&(_.d("web_ytd_backstage_poll_renderer_command_resolver_ks")?_.l1(this.hostElement,[B]):_.Q().resolve(_.Dt).resolveCommand(B,{form:{element:this.hostElement}})));this.selectedItemIndex=this.selectedItemIndex===E?-1:E};
_.Up.Object.defineProperties(xJ.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
xJ.prototype.onYtServiceRequestCompleted=xJ.prototype.onYtServiceRequestCompleted;xJ.prototype.onYtServiceRequestSent=xJ.prototype.onYtServiceRequestSent;xJ.prototype.onYtCommentPollRevert=xJ.prototype.onYtCommentPollRevert;xJ.prototype.onPopupClosed=xJ.prototype.onPopupClosed;xJ.prototype.dataChanged=xJ.prototype.dataChanged;_.k([_.g(_.f2),_.t("design:type",Object)],xJ.prototype,"paperItemBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.X_),_.t("design:type",Object)],xJ.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],xJ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],xJ.prototype,"isLoading",void 0);_.k([_.X({computed:"computeIsChannelOwner(data.choices)"}),_.t("design:type",Boolean)],xJ.prototype,"isChannelOwner",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.t("design:type",Boolean)],xJ.prototype,"isImagePoll",void 0);_.k([_.X({computed:"computeIsTotalVotesDisabled(data)"}),_.t("design:type",Boolean)],xJ.prototype,"isTotalVotesDisabled",void 0);_.k([_.X(),_.t("design:type",Object)],xJ.prototype,"previousPollInfo",void 0);_.k([_.X(),_.t("design:type",Object)],xJ.prototype,"selectedItemIndex",void 0);_.k([_.$7("#poll-votes"),_.t("design:type",Object)],xJ.prototype,"pollVotes",void 0);
_.k([_.S("isChannelOwner"),_.t("design:type",Object),_.t("design:paramtypes",[])],xJ.prototype,"endpointStyle",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],xJ.prototype,"dataChanged",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],xJ.prototype,"onPopupClosed",null);
_.k([_.RN("yt-comment-poll-revert"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],xJ.prototype,"onYtCommentPollRevert",null);_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],xJ.prototype,"onYtServiceRequestSent",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],xJ.prototype,"onYtServiceRequestCompleted",null);xJ=_.k([_.b({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],xJ);
_.A(xJ,"ytd-backstage-poll-renderer",function(){if(Nel!==void 0)return Nel;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Nel=E},{mode:2});var gEZ;var S$u={autoplay:!1,loop:!1},J7t={simpleText:""},GS=function(){var E=_.r.apply(this,arguments)||this;E.isLoading=!1;E.usesPanelLockup=!1;E.selectedItemIndex=-1;E.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},S$u,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});E.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},S$u,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});E.correctnessAnimationProps=[];E.correctnessAnimationRefs=[];return E};
_.L(GS,_.r);_.l=GS.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.l.computeIsChannelOwner=function(E){if(!E)return!0;E=E[0];return!(E&&(E.signinEndpoint||E.selectServiceEndpoint))};
_.l.computeIsTotalVotesDisabled=function(E){return!(E==null?0:E.totalVotes)};
_.l.computeIsImageQuiz=function(E){return(E==null?void 0:E.type)==="POLL_TYPE_IMAGE"};
_.l.onExplanationChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var E=this.data.choices;if(E){this.maybeInitializeQuizLotties(E);for(var B=0;B<E.length;B++)if(E[B].isSelected||this.isChannelOwner&&E[B].isCorrect){this.selectedItemIndex=B;return}this.selectedItemIndex=-1}}};
_.l.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var E=this.selectedItemIndex,B=Number(this.quizVotes.selected);this.selectChoice(B);this.sendVoteAction(B,E);this.quizVotes.selected=-1;var I;E=!((I=this.data)==null?0:I.enableAnimation);this.maybePlayAnswerAnimations(E)}};
_.l.onYtCommentPollRevert=function(E,B){B&&(this.selectChoice(B.selectedChoiceIndex),this.set("data.totalVotes",B.totalVotes))};
_.l.onYtServiceRequestSent=function(E,B){if(B.actions)for(E=_.p(B.actions),B=E.next();!B.done;B=E.next())(B=_.h(B.value,sS))&&this.set("data.totalVotes",B.totalVotes)};
_.l.onYtServiceRequestCompleted=function(E){var B=this.get("detail.data.actionResults.0.feedback",E);E=this.get("detail.data.actionResults.0.status",E);if(B==="FEEDBACK_DESELECT"||B==="FEEDBACK_SELECT")this.isLoading=!1,E==="STATUS_FAILED"?_.$O(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.l.getAnimationPropsForChoiceIndex=function(E,B){return B[E]};
_.l.maybePlayAnswerAnimations=function(E){E=E===void 0?!1:E;var B;if((B=this.data)!=null&&B.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){B=_.p(this.correctnessAnimationRefs);for(var I=B.next();!I.done;I=B.next()){var T=void 0,e=void 0;(T=I.value)==null||(e=T.lottieEl)==null||e.stop()}if(!(this.selectedItemIndex<0)){B=0;E&&(B=this.isCorrect?37:25);var c,Y;(c=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(Y=c.lottieEl)==null||Y.goToAndPlay(E?B:0,!0);if(!(this.isCorrect||
(c=this.data.choices.findIndex(function(P){return P.isCorrect}),c<0))){var v,y;
(y=(v=this.correctnessAnimationRefs[c])==null?void 0:v.lottieEl)==null||y.goToAndPlay(37,!0);var Z;v=(Z=this.fadeContainers)==null?void 0:Z.item(c);!E&&v&&this.fadeIn(v)}}}};
_.l.thumbnailSrc=function(E){var B,I,T,e;return(E==null?0:(B=E.thumbnails)==null?0:(I=B[0])==null?0:I.url)?_.pr((T=E.thumbnails)==null?void 0:(e=T[0])==null?void 0:e.url):void 0};
_.l.a11yVotedText=function(E,B){var I,T,e=((I=this.data)==null?void 0:(T=I.correctVotedText)==null?void 0:T.simpleText)||"",c,Y;I=((c=this.data)==null?void 0:(Y=c.votedText)==null?void 0:Y.simpleText)||"";if(!B)return"";var v,y;if((v=this.data)==null?0:(y=v.choices)==null?0:y[E].isCorrect)return e;var Z,P;return((Z=this.data)==null?0:(P=Z.choices)==null?0:P[E].isSelected)?I:""};
_.l.getEndpoint=function(E,B){return B===E?this.data.choices[E].deselectServiceEndpoint||null:this.data.choices[E].selectServiceEndpoint||null};
_.l.sendVoteAction=function(E,B){if(E=this.getEndpoint(E,B))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(E)};
_.l.selectChoice=function(E){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var B=0;B<this.data.choices.length;B++)this.set("data.choices."+B+".isSelected",E===this.selectedItemIndex?!1:B===E);this.selectedItemIndex=this.selectedItemIndex===E?-1:E};
_.l.maybeInitializeQuizLotties=function(E){var B=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=E.map(function(I){return{animationConfig:I.isCorrect?B.baseCorrectLottiePlayerAnimationConfig:B.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){B.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(I){return I.animationRef||{}})};
_.l.fadeIn=function(E){E.classList.add("fade-in");_.ta(_.Ll,function(){E.classList.remove("fade-in")},900)};
_.Up.Object.defineProperties(GS.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.d("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.U3(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 E,B;return((E=this.data)==null?void 0:(B=E.choices)==null?void 0:B.some(function(I){return I.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null||!E.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?J7t:this.data.choices[this.selectedItemIndex].explanation||J7t}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null||!E.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
GS.prototype.onYtServiceRequestCompleted=GS.prototype.onYtServiceRequestCompleted;GS.prototype.onYtServiceRequestSent=GS.prototype.onYtServiceRequestSent;GS.prototype.onYtCommentPollRevert=GS.prototype.onYtCommentPollRevert;GS.prototype.dataChanged=GS.prototype.dataChanged;GS.prototype.onExplanationChanged=GS.prototype.onExplanationChanged;_.k([_.g(_.f2),_.t("design:type",Object)],GS.prototype,"paperItemBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],GS.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.oy.YtTaskEmitterBehavior),_.t("design:type",Object)],GS.prototype,"ytTaskEmitterBehavior",void 0);_.k([_.g(_.X_),_.t("design:type",Object)],GS.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],GS.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],GS.prototype,"isLoading",void 0);_.k([_.X(),_.t("design:type",Object)],GS.prototype,"usesPanelLockup",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.t("design:type",Boolean)],GS.prototype,"isChannelOwner",void 0);_.k([_.X({computed:"computeIsTotalVotesDisabled(data)"}),_.t("design:type",Boolean)],GS.prototype,"isTotalVotesDisabled",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.t("design:type",Boolean)],GS.prototype,"isImageQuiz",void 0);_.k([_.X(),_.t("design:type",Object)],GS.prototype,"previousQuizInfo",void 0);_.k([_.X(),_.t("design:type",Object)],GS.prototype,"selectedItemIndex",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data","usesPanelLockup"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],GS.prototype,"shouldUseModernUi",null);
_.k([_.eV(".fade-container"),_.t("design:type",Object)],GS.prototype,"fadeContainers",void 0);_.k([_.X(),_.t("design:type",Array)],GS.prototype,"correctnessAnimationProps",void 0);_.k([_.S("explanation","showCorrectAnswer"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],GS.prototype,"showExplanation",null);_.k([_.S("isChannelOwner","isAttempted"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],GS.prototype,"showCorrectAnswer",null);
_.k([_.S("isChannelOwner","isAttempted","data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],GS.prototype,"isQuizAnsweringDisabled",null);_.k([_.S("isQuizAnsweringDisabled"),_.t("design:type",Object),_.t("design:paramtypes",[])],GS.prototype,"endpointStyle",null);_.k([_.S("data","selectedItemIndex"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],GS.prototype,"isAttempted",null);
_.k([_.S("data","selectedItemIndex"),_.t("design:type",Object),_.t("design:paramtypes",[])],GS.prototype,"explanation",null);_.k([_.S("data","selectedItemIndex"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],GS.prototype,"isCorrect",null);_.k([_.$7("ytd-expander"),_.t("design:type",Object)],GS.prototype,"expander",void 0);_.k([_.$7("#quiz-votes"),_.t("design:type",Object)],GS.prototype,"quizVotes",void 0);
_.k([_.EM("explanation"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],GS.prototype,"onExplanationChanged",null);_.k([_.EM("data","isChannelOwner"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],GS.prototype,"dataChanged",null);_.k([_.RN("yt-comment-quiz-revert"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],GS.prototype,"onYtCommentPollRevert",null);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],GS.prototype,"onYtServiceRequestSent",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],GS.prototype,"onYtServiceRequestCompleted",null);GS=_.k([_.b({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],GS);
_.A(GS,"ytd-backstage-quiz-renderer",function(){if(gEZ!==void 0)return gEZ;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return gEZ=E},{mode:1});var W5X;var Ov=function(){return _.r.apply(this,arguments)||this};
_.L(Ov,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ov.prototype,"data",void 0);Ov=_.k([_.b({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],Ov);
_.A(Ov,"ytd-post-uploaded-video-renderer",function(){if(W5X!==void 0)return W5X;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return W5X=E},{mode:1});var XJz;var nt=function(){return _.r.apply(this,arguments)||this};
_.L(nt,_.r);nt.prototype.useFilledIcons=function(E){return E==="SPONSORSHIP_STAR"};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],nt.prototype,"data",void 0);nt=_.k([_.b({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],nt);
_.A(nt,"ytd-sponsors-only-badge-renderer",function(){if(XJz!==void 0)return XJz;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return XJz=E},{mode:1});var r7u;var Mr=function(){return _.r.apply(this,arguments)||this};
_.L(Mr,_.r);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Mr.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Mr.prototype,"data",void 0);Mr=_.k([_.b({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Mr);
_.A(Mr,"ytd-child-video-renderer",function(){if(r7u!==void 0)return r7u;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return r7u=E},{mode:1});var bIN;var oEz;var HZ=function(){var E=_.r.apply(this,arguments)||this;E.size=0;E.enableWebModernCollectionsV2=_.d("web_modern_collections_v2");E.fallbackImageSize={height:void 0,width:9999};E.webModernCollections=!1;return E};
_.L(HZ,_.r);_.l=HZ.prototype;_.l.computeBlurredImageSize=function(E){return E?{height:E*2,width:E*2}:this.fallbackImageSize};
_.l.computeImageSize=function(E){return E?{height:E,width:E}:this.fallbackImageSize};
_.l.computeObjectFit=function(E){return E?"FILL":"CONTAIN"};
_.l.computePreserve=function(E){return E?!0:!1};
_.l.setBackground=function(){var E,B;_.d("web_modern_collections_v2")&&((E=this.data)==null?0:(B=E.thumbnail)==null?0:B.sampledThumbnailColor)&&(E=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+E.red+","+E.green+","+E.blue+",1)")};
HZ.prototype.setBackground=HZ.prototype.setBackground;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],HZ.prototype,"watchFeedThumbnail",void 0);_.k([_.X(),_.t("design:type",Object)],HZ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],HZ.prototype,"size",void 0);
_.k([_.X({computed:"computeBlurredImageSize(size)"}),_.t("design:type",Object)],HZ.prototype,"blurredImageSize",void 0);_.k([_.X({computed:"computeImageSize(size)"}),_.t("design:type",Object)],HZ.prototype,"imageSize",void 0);_.k([_.X({computed:"computePreserve(size)"}),_.t("design:type",String)],HZ.prototype,"preserve",void 0);_.k([_.X({computed:"computeObjectFit(size)"}),_.t("design:type",String)],HZ.prototype,"objectFit",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],HZ.prototype,"enableWebModernCollectionsV2",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],HZ.prototype,"webModernCollections",void 0);_.k([_.EM("data.thumbnail.sampledThumbnailColor"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HZ.prototype,"setBackground",null);HZ=_.k([_.b({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],HZ);
_.A(HZ,"ytd-playlist-custom-thumbnail-renderer",function(){if(oEz!==void 0)return oEz;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return oEz=E},{mode:1});var A7D;var Nr=function(){return _.r.apply(this,arguments)||this};
_.L(Nr,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Nr.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Number)],Nr.prototype,"width",void 0);Nr=_.k([_.b({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Nr);
_.A(Nr,"ytd-playlist-video-thumbnail-renderer",function(){if(A7D!==void 0)return A7D;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return A7D=E},{mode:1});var jcz;var gQ=function(){return _.r.apply(this,arguments)||this};
_.L(gQ,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],gQ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Number)],gQ.prototype,"width",void 0);gQ=_.k([_.b({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],gQ);
_.A(gQ,"ytd-show-custom-thumbnail-renderer",function(){if(jcz!==void 0)return jcz;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return jcz=E},{mode:1});var ULl;var Sm=function(){return _.r.apply(this,arguments)||this};
_.L(Sm,_.r);Sm.prototype.useFilledIcons=function(E){return E==="MUSIC"||E==="COURSE"};
Sm.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=sq(this.overlayColor,"0.8");else if(this.overlayColor){var E=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+E.red+","+E.green+","+E.blue+",0.8)"}};
_.Up.Object.defineProperties(Sm.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)}}});
Sm.prototype.overlayColorChanged=Sm.prototype.overlayColorChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Sm.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Sm.prototype,"overlayColor",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data.icon","data.text"),_.t("design:type",Object),_.t("design:paramtypes",[])],Sm.prototype,"overlayStyle",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data.icon","data.text"),_.t("design:type",Object),_.t("design:paramtypes",[])],Sm.prototype,"overlayTextStyle",null);_.k([_.EM("overlayColor"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Sm.prototype,"overlayColorChanged",null);Sm=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Sm);
_.A(Sm,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(ULl!==void 0)return ULl;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return ULl=E},{mode:1});var kor;var Jy=function(){var E=_.r.apply(this,arguments)||this;E.active=!1;return E};
_.L(Jy,_.r);Jy.prototype.computeIsSpinnerHidden=function(E){return(E==null?void 0:E.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Jy.prototype.computeOverlayIcon=function(E){return(E==null?void 0:E.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(E==null?void 0:E.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Jy.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Jy.prototype,"active",void 0);Jy=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Jy);
_.A(Jy,"ytd-thumbnail-overlay-downloading-renderer",function(){if(kor!==void 0)return kor;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return kor=E},{mode:1});var tBr;var WZ=function(){return _.r.apply(this,arguments)||this};
_.L(WZ,_.r);_.Up.Object.defineProperties(WZ.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],WZ.prototype,"data",void 0);_.k([_.S("data.text"),_.t("design:type",Object),_.t("design:paramtypes",[])],WZ.prototype,"text",null);WZ=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],WZ);
_.A(WZ,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(tBr!==void 0)return tBr;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return tBr=E},{mode:1});var feU,VBh=function(){if(feU!==void 0)return feU;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return feU=E};var XP=function(){return _.r.apply(this,arguments)||this};
_.L(XP,_.r);_.Up.Object.defineProperties(XP,{template:{configurable:!0,enumerable:!0,get:function(){return VBh()}}});
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],XP.prototype,"animateEqualizer",void 0);XP=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],XP);_.VE()(XP,"ytd-thumbnail-overlay-equalizer",function(){return VBh()},{allowedProps:["animateEqualizer"],
mode:1});var q$l;var rQ=function(){var E=_.r.apply(this,arguments)||this;E.nowPlayingBadge=_.d("web_now_playing_badge");E.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return E};
_.L(rQ,_.r);rQ.prototype.activeChanged=function(){var E=this;_.d("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.AJ(this,function(){_.$O(E.hostElement,"yt-playlist-lockup-now-playing-active",E)})};
rQ.prototype.onMiniplayerPlayStateChanged=function(E){var B,I=(B=_.h(_.vx().currentEndpoint,_.kh))==null?void 0:B.videoId;this.isVideoPlaying=E&&(_.d("web_limit_now_playing_animation_killswitch")||this.videoId===I)};
rQ.prototype.activeChanged=rQ.prototype.activeChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],rQ.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],rQ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],rQ.prototype,"isVideoPlaying",void 0);_.k([_.X(),_.t("design:type",String)],rQ.prototype,"videoId",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],rQ.prototype,"equalizerOnly",void 0);_.k([_.X(),_.t("design:type",Boolean)],rQ.prototype,"isActive",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],rQ.prototype,"nowPlayingBadge",void 0);_.k([_.EM("isActive"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],rQ.prototype,"activeChanged",null);
rQ=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],rQ);
_.A(rQ,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(q$l!==void 0)return q$l;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return q$l=E},{mode:1});var F5z;var b_=function(){return _.r.apply(this,arguments)||this};
_.L(b_,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],b_.prototype,"data",void 0);b_=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],b_);
_.A(b_,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(F5z!==void 0)return F5z;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return F5z=E},{mode:_.qi("kevlar_poly_si_batch_j025")?1:2});var DLU;var oZ=function(){return _.r.apply(this,arguments)||this};
_.L(oZ,_.r);oZ.prototype.onDurationChanged=function(){var E,B;_.n(this.hostElement).querySelector("#progress").style.width=((B=(E=this.data)==null?void 0:E.percentDurationWatched)!=null?B:0)+"%"};
oZ.prototype.onDurationChanged=oZ.prototype.onDurationChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],oZ.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],oZ.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],oZ.prototype,"isLive",void 0);_.k([_.EM("data.percentDurationWatched"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oZ.prototype,"onDurationChanged",null);
oZ=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],oZ);
_.A(oZ,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(DLU!==void 0)return DLU;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return DLU=E},{mode:1});var K5N;var Ay=function(){var E=_.r.apply(this,arguments)||this;E.bottomPanel=!1;E.richGridOverlay=!1;E.watchFeedOverlay=!1;E.isCompact=!1;return E};
_.L(Ay,_.r);Ay.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Up.Object.defineProperties(Ay.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?void 0:(B=E.icon)==null?void 0:B.iconType)==="PLAY_ALL"&&_.d("kevlar_system_icons")}}});
Ay.prototype.widthChanged=Ay.prototype.widthChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ay.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Number)],Ay.prototype,"width",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Ay.prototype,"bottomPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Ay.prototype,"richGridOverlay",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Ay.prototype,"watchFeedOverlay",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Ay.prototype,"isCompact",void 0);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Ay.prototype,"isIconFilled",null);_.k([_.EM("width","watchFeedOverlay"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ay.prototype,"widthChanged",null);
Ay=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Ay);
_.A(Ay,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(K5N!==void 0)return K5N;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return K5N=E},{mode:1});var R$$;var Eth=["CLIP","SHORTS"],jm=function(){var E=_.r.apply(this,arguments)||this;E.animated=_.d("animated_live_badge_icon");E.hasIcon=!1;E.updateTimerIntervalId=0;E.timeSinceLive=0;return E};
_.L(jm,_.r);_.l=jm.prototype;_.l.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.l.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.l.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.l.hasIconOrText=function(){var E,B;return!!(((E=this.data)==null?0:E.icon)||((B=this.data)==null?0:B.text))};
_.l.initializeLiveBadgeTimer=function(){var E=this,B,I=(B=this.liveBadgeData)==null?void 0:B.startTimestampSec;if(I&&this.canShowLiveBadgeTimer()){var T;B=Number((T=this.liveBadgeData)==null?void 0:T.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(I);this.updateTimerIntervalId=_.eg(function(){E.canShowLiveBadgeTimer()?E.timeSinceLive++:(E.timeSinceLive=0,window.clearInterval(E.updateTimerIntervalId))},B)}else this.timeSinceLive=0};
_.l.canShowLiveBadgeTimer=function(){var E=Date.now(),B,I;return E<(Number((B=this.liveBadgeData)==null?void 0:B.endTimestampSec)-1)*1E3&&E>Number((I=this.liveBadgeData)==null?void 0:I.startTimestampSec)*1E3};
_.Up.Object.defineProperties(jm.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var E=this.data;var B=this.timeSinceLive;var I,T,e,c;a:{var Y=E.style;if(Y===void 0)Y=16;else switch(Y){case "LIVE":Y=17;break a;default:Y=16}}B={type:Y,text:B?kTf({seconds:B}):_.U3(E.text),accessibilityText:(I=E.text)==null?void 0:(T=I.accessibility)==null?void 0:(e=T.accessibilityData)==null?void 0:e.label,icon:(c=E.icon)==null?void 0:c.iconType}}else B={};return B}},
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 E;return(E=this.data)==null?void 0:E.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 Eth.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
jm.prototype.initializeLiveBadgeTimer=jm.prototype.initializeLiveBadgeTimer;jm.prototype.dataChanged=jm.prototype.dataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],jm.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],jm.prototype,"data",void 0);_.k([_.X({computed:"computeIcon_(data.icon)"}),_.t("design:type",String)],jm.prototype,"icon",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],jm.prototype,"animated",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.t("design:type",Boolean)],jm.prototype,"hideTimeStatus",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],jm.prototype,"hasIcon",void 0);_.k([_.X(),_.t("design:type",Object)],jm.prototype,"timeSinceLive",void 0);_.k([_.S("data","timeSinceLive"),_.t("design:type",Object),_.t("design:paramtypes",[])],jm.prototype,"badgeShapeData",null);
_.k([_.S("data","overlayType"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],jm.prototype,"hideBadgeShape",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],jm.prototype,"dataChanged",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.style"),_.t("design:type",Object),_.t("design:paramtypes",[])],jm.prototype,"overlayStyle",null);
_.k([_.S("data.liveBadgeData"),_.t("design:type",Object),_.t("design:paramtypes",[])],jm.prototype,"liveBadgeData",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.type"),_.t("design:type",Object),_.t("design:paramtypes",[])],jm.prototype,"overlayType",null);_.k([_.S("overlayType","overlayStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],jm.prototype,"useFilledIcon",null);
_.k([_.i6("liveBadgeData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],jm.prototype,"initializeLiveBadgeTimer",null);jm=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],jm);
_.A(jm,"ytd-thumbnail-overlay-time-status-renderer",function(){if(R$$!==void 0)return R$$;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return R$$=E},{mode:_.qi("kevlar_poly_si_batch_j035")?1:2});var B3D;var Uv=function(){return _.r.apply(this,arguments)||this};
_.L(Uv,_.r);Uv.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"}}}}};
Uv.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(E){if(this.hasPlaybackProgressBar)return{percentDurationWatched:E.percentDurationWatched}};
Uv.prototype.computeHasPlaybackProgressBar=function(E){return!!E.percentDurationWatched&&E.percentDurationWatched>0};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Uv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Uv.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.t("design:type",Boolean)],Uv.prototype,"hasPlaybackProgressBar",void 0);
Uv=_.k([_.b({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Uv);
_.A(Uv,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(B3D!==void 0)return B3D;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return B3D=E},{mode:1});var $j6;_.qW(Lbc);var IzU=_.rp(function(E){var B=E.data;var I=E.children;var T=function(){return!!B().doubleStack};
return _.w("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!B().experimentEnabled}},_.w(_.wU,{cond:B,
then:function(){return _.w("div",null,_.w(_.wU,{cond:T,then:function(){var e={};return _.w("div",{class:_.RQ("collections-stack-wiz__collection-stack2",function(){return B().customClassName2ndStack},(e["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return B().enableResponsiveMode},e)),
style:_.c$({"background-color":function(){return sof(B())}})})}}),_.w("div",{class:_.RQ("collections-stack-wiz__collection-stack1",function(){return B().customClassName1stStack},function(){return uvt(B().thumbnailSize?B().thumbnailSize:"medium")}),
style:_.c$({"background-color":function(){return sof(B())}})}),I)}}))},"K");_.oQ(IzU,"yt-collections-stack",{props:{data:_.Jh}});var kJ=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};E.webModernCollections=!1;E.isSearch=!1;E.isDoubleStack=!1;E.thumbnailSize="medium";E.enableWebModernCollectionsV2=_.d("web_modern_collections_v2");return E};
_.L(kJ,_.r);_.l=kJ.prototype;
_.l.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]]"}}}}}};
_.l.getThumbnailDetails=function(E){if(E!=null&&E.thumbnailRenderer){var B=E.thumbnailRenderer,I;if((I=B.playlistVideoThumbnailRenderer)==null?0:I.thumbnail)return B.playlistVideoThumbnailRenderer.thumbnail;var T;if((T=B.playlistCustomThumbnailRenderer)==null?0:T.thumbnail)return B.playlistCustomThumbnailRenderer.thumbnail;E=E.thumbnailRenderer;var e;if((e=E.showCustomThumbnailRenderer)==null?0:e.thumbnail)return E.showCustomThumbnailRenderer.thumbnail}};
_.l.computeOverlayColor=function(E){var B,I;if((B=this.getThumbnailDetails(E))==null?0:(I=B.darkColorPalette)==null?0:I.section2Color)return this.getThumbnailDetails(E).darkColorPalette.section2Color;var T;return(T=this.getThumbnailDetails(E))==null?void 0:T.sampledThumbnailColor};
_.l.computeWebModernCollections=function(E){if(E==null||!E.thumbnailOverlays)return!1;E=_.p(E.thumbnailOverlays);for(var B=E.next();!B.done;B=E.next()){var I=void 0;if((I=B.value)==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.l.computeNavigationEndpoint=function(E){return qHi(E==null?void 0:E.navigationEndpoint)};
_.Up.Object.defineProperties(kJ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var E=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:E==null?void 0:E.sampledThumbnailColor,vibrantColorPalette:E==null?void 0:E.vibrantColorPalette,darkColorPalette:E==null?void 0:E.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],kJ.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(lpl),_.t("design:type",Object)],kJ.prototype,"ytdThumbnailBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],kJ.prototype,"componentBehavior",void 0);
_.k([_.X({value:!1}),_.t("design:type",Boolean)],kJ.prototype,"watchFeedThumbnail",void 0);_.k([_.X(),_.t("design:type",Number)],kJ.prototype,"customThumbnailSize",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],kJ.prototype,"hideAria",void 0);_.k([_.X(),_.t("design:type",Object)],kJ.prototype,"data",void 0);_.k([_.X({computed:"computeOverlayColor(data)"}),_.t("design:type",Object)],kJ.prototype,"overlayColor",void 0);
_.k([_.X({computed:"computeWebModernCollections(data)"}),_.t("design:type",Object)],kJ.prototype,"webModernCollections",void 0);_.k([_.X({computed:"computeNavigationEndpoint(data)"}),_.t("design:type",Object)],kJ.prototype,"computedNavigationEndpoint",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],kJ.prototype,"isSearch",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],kJ.prototype,"isDoubleStack",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],kJ.prototype,"thumbnailSize",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],kJ.prototype,"enableWebModernCollectionsV2",void 0);_.k([_.S("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.t("design:type",Object),_.t("design:paramtypes",[])],kJ.prototype,"collectionStack",null);kJ=_.k([_.b({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],kJ);
_.A(kJ,"ytd-playlist-thumbnail",function(){if($j6!==void 0)return $j6;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return $j6=E},{mode:_.qi("kevlar_poly_si_batch_j025")?1:2});var T3u;var ty=function(){var E=_.r.apply(this,arguments)||this;E.noEndpoints=!1;E.amsterdamPostMvp=_.d("web_amsterdam_post_mvp_playlists");E.badges=[];E.transferState="TRANSFER_STATE_UNKNOWN";return E};
_.L(ty,_.r);_.l=ty.prototype;_.l.getMetadata=function(E){if(!E)return[];var B=[],I=E.shortViewCountText||E.viewCountText;I&&B.push(_.U3(I));E.publishedTimeText&&B.push(_.U3(E.publishedTimeText));E.upcomingEventData&&E.upcomingEventData.upcomingEventText&&B.push(_.MH(_.U3(E.upcomingEventData.upcomingEventText),Number(E.upcomingEventData.startTime)));return B};
_.l.observeDataForBylineSeparator=function(){this.data&&_.VQ(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.l.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.dE(this.metadataColor)};
_.l.getSimpleString=function(E){return _.U3(E)};
_.l.isBylineHidden=function(E){return this.noByline||!((E==null?0:E.longBylineText)||(E==null?0:E.shortBylineText))};
_.l.isMetadataHidden=function(E){var B;return((B=this.getMetadata(E))==null?void 0:B.length)===0};
_.l.isBylineMetadataSeparatorHidden=function(E){return this.isMetadataHidden(E)||!this.shouldShowVideoInfo};
_.l.isLongByline=function(E,B){return B&&!(E==null||!E.longBylineText)};
_.Up.Object.defineProperties(ty.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var E;return this.amsterdamPostMvp&&!((E=this.data)==null||!E.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 _.d("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
ty.prototype.metadataColorChanged=ty.prototype.metadataColorChanged;ty.prototype.observeDataForBylineSeparator=ty.prototype.observeDataForBylineSeparator;_.k([_.g(_.Lz),_.t("design:type",Object)],ty.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ty.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],ty.prototype,"noEndpoints",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],ty.prototype,"isSlimShort",void 0);
_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],ty.prototype,"radioMeta",void 0);_.k([_.X({selector:_.HE}),_.t("design:type",Object)],ty.prototype,"isGridViewEnabled",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],ty.prototype,"richMeta",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ty.prototype,"amsterdamPostMvp",void 0);_.k([_.X(),_.t("design:type",Boolean)],ty.prototype,"noByline",void 0);
_.k([_.X({computed:"isLongByline(data, radioMeta)"}),_.t("design:type",Boolean)],ty.prototype,"longByline",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],ty.prototype,"truncateMetadataLine",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],ty.prototype,"miniMode",void 0);_.k([_.X(),_.t("design:type",Number)],ty.prototype,"metadataColor",void 0);_.k([_.X(),_.t("design:type",Array)],ty.prototype,"badges",void 0);
_.k([_.X({selector:_.Mg,selectorArgs:["data.videoId"]}),_.t("design:type",String)],ty.prototype,"transferState",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],ty.prototype,"isDownloading",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],ty.prototype,"typographyBump",void 0);_.k([_.$7("#metadata-line"),_.t("design:type",HTMLElement)],ty.prototype,"metadataLine",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ty.prototype,"observeDataForBylineSeparator",null);_.k([_.EM("metadataColor"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ty.prototype,"metadataColorChanged",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],ty.prototype,"shouldShowVideoInfo",null);
_.k([_.S("badges"),_.t("design:type",String),_.t("design:paramtypes",[])],ty.prototype,"inlineBadgeClass",null);_.k([_.S("longByline"),_.t("design:type",String),_.t("design:paramtypes",[])],ty.prototype,"longBylineClass",null);_.k([_.S("data","longByline"),_.t("design:type",Object),_.t("design:paramtypes",[])],ty.prototype,"bylineText",null);_.k([_.S("isGridViewEnabled","data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ty.prototype,"watchFeedBigThumbs",null);
ty=_.k([_.b({is:"ytd-video-meta-block",disableElementRegistration:!0})],ty);
_.A(ty,"ytd-video-meta-block",function(){if(T3u!==void 0)return T3u;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return T3u=E},{mode:_.qi("kevlar_poly_si_batch_j080")?1:2});_.QH("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var ft=function(){var E=_.r.apply(this,arguments)||this;E.displayItemCount=2;E.isBackstagePlaylist=!1;E.isPostCompactPlaylist=!1;E.shouldShowChannelThumbnail=!1;E.useModernCollectionsV2=_.d("web_modern_collections_v2");return E};
_.L(ft,_.r);_.l=ft.prototype;_.l.computeFirstVideos=function(E,B){return E===void 0||B===void 0?[]:E.slice(0,B)};
_.l.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var E=this.data.thumbnailRenderer;E.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",E.playlistVideoThumbnailRenderer.thumbnail);E.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",E.playlistCustomThumbnailRenderer.thumbnail)}};
_.l.computeThumbnailHeight=function(E,B,I,T,e){return T?e==="BIG"?280:e==="MASSIVE"?337:234:I?240:B?72:E?118:138};
_.l.computeThumbnailWidth=function(E,B,I,T,e){return T?e==="MEDIUM"?450:e==="BIG"?500:e==="MASSIVE"?600:420:I?360:B?128:E?210:246};
_.l.computeUseBiggerThumbs=function(E){return E&&_.d("enable_desktop_search_bigger_thumbs")};
_.l.computeShouldShowChannelThumbnail=function(E,B){return E&&!(B==null||!B.channelThumbnail)};
_.Up.Object.defineProperties(ft.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
ft.prototype.dataChanged=ft.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ft.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],ft.prototype,"ytdLockupBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],ft.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ft.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],ft.prototype,"displayItemCount",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ft.prototype,"isBackstagePlaylist",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ft.prototype,"isPostCompactPlaylist",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],ft.prototype,"isSearch",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.t("design:type",Boolean)],ft.prototype,"useBiggerThumbs",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.EF("desktop_search_bigger_thumbs_style")}}),
_.t("design:type",String)],ft.prototype,"biggerThumbsStyle",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],ft.prototype,"isDownloads",void 0);_.k([_.X({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.t("design:type",Object)],ft.prototype,"shouldShowChannelThumbnail",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ft.prototype,"useModernCollectionsV2",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ft.prototype,"dataChanged",null);_.k([_.S("isSearch"),_.t("design:type",String),_.t("design:paramtypes",[])],ft.prototype,"stackThumbnailSize",null);ft=_.k([_.b({is:"ytd-playlist-renderer",disableElementRegistration:!0})],ft);
_.A(ft,"ytd-playlist-renderer",function(){if(bIN===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);bIN=E}E=bIN;return E},{mode:1});var eWZ;var lzU;var Vw=function(){var E=_.r.apply(this,arguments)||this;E.collections=!!_.d("web_modern_collections_v2");E.startX=0;return E};
_.L(Vw,_.r);Vw.prototype.onEndpointMouseDown=function(E){this.startX=E.clientX};
Vw.prototype.onEndpointClick=function(E){this.startX!==E.clientX&&(E.preventDefault(),E.stopPropagation())};
Vw.prototype.computeObjectFit=function(E){return E==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||E==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||E==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
Vw.prototype.computeCardStyle=function(E){return E?E.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Up.Object.defineProperties(Vw.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var E,B;return this.collections&&((E=this.data)==null?void 0:(B=E.searchRefinementCardRendererStyle)==null?void 0:B.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}}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Vw.prototype,"data",void 0);_.k([_.X({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.t("design:type",Number)],Vw.prototype,"objectFit",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.t("design:type",String)],Vw.prototype,"cardStyle",void 0);
_.k([_.X({reflectToAttribute:!0,value:!0}),_.t("design:type",Boolean)],Vw.prototype,"roundContainer",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Vw.prototype,"collections",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Vw.prototype,"isAlbumCard",null);_.k([_.S("data","collections","isAlbumCard"),_.t("design:type",Object),_.t("design:paramtypes",[])],Vw.prototype,"collectionStack",null);
Vw=_.k([_.b({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],Vw);
_.A(Vw,"ytd-search-refinement-card-renderer",function(){if(lzU!==void 0)return lzU;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return lzU=E},{mode:1});var cYt;var qr=function(){var E=_.r.apply(this,arguments)||this;E.isRichGrid=!1;return E};
_.L(qr,_.r);_.k([_.X(),_.t("design:type",Object)],qr.prototype,"data",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],qr.prototype,"componentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],qr.prototype,"ytdReduxBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],qr.prototype,"isRichGrid",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Boolean)],qr.prototype,"miniMode",void 0);
qr=_.k([_.b({is:"ytd-game-details-renderer",disableElementRegistration:!0})],qr);
_.A(qr,"ytd-game-details-renderer",function(){if(cYt!==void 0)return cYt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return cYt=E},{mode:1});var iPR;var p0U;var FP=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return E};
_.L(FP,_.r);_.l=FP.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.currentStateData=function(E){var B=E||this.data;return B&&B.states&&B.currentStateId!=null?B.states.find(function(I){return I.stateId===B.currentStateId})||null:null};
_.l.currentStateRendererData=function(E){return(E=this.currentStateData(E))&&E.state&&E.state.buttonRenderer?E.state.buttonRenderer:null};
_.l.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())};
_.l.computeButtonIcon=function(E){E=this.currentStateRendererData(E);var B;return(E==null?0:(B=E.icon)==null?0:B.iconType)?E.icon.iconType.toLowerCase():null};
_.l.computeAccessibility=function(E){return(E=this.currentStateRendererData(E))&&E.accessibilityData?E.accessibilityData.accessibilityData||null:null};
_.l.computeButtonClass=function(E){var B=this.currentStateRendererData(E);if(!B)return"";E="";var I=B.style;I&&(E+=I.toLowerCase().replace(/_/g,"-")+" ");(B=B.size)&&(E+=B.toLowerCase().replace(/_/g,"-")+" ");return E.trim()};
_.l.computeServiceEndpoint=function(E){if(!E)return null;var B=E&&E.serviceEndpoint,I=this.get("command.commandMetadata.webCommandMetadata.sendPost",E);return B?B:I&&E.command?E.command:null};
_.l.computeBellMenuItemParams=function(E){var B;E=(B=_.h(E==null?void 0:E.command,_.pO))==null?void 0:B.commands;if(!E||E.length===0)return null;B=_.h(E[0],_.uU);var I,T;return(B==null?0:(I=B.popup)==null?0:(T=I.menuPopupRenderer)==null?0:T.items)?B.popup.menuPopupRenderer.items.map(function(e){return e.menuServiceItemRenderer.trackingParams}):null};
_.l.handleBellMenuOpenSelectedAction=function(E){var B=E.trackingParams,I=this.computeBellMenuItemParams(this.data);this.data&&B&&I&&I.includes(B)&&this.ytRenderButtonBehavior._setButtonIcon(E.icon.iconType.toLowerCase())};
_.l.onYtServiceRequestCompleted=function(E,B){(E=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",B))&&this.set("data",E)};
_.l.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.l.resetState=function(){this.set("data.currentStateId",3)};
_.l.onYtButtonTapHandler=function(){if(this.data){var E=this.currentStateRendererData(this.data);E&&this.ytRendererBehavior.logExplicitClick(E)}};
FP.prototype.onYtServiceRequestError=FP.prototype.onYtServiceRequestError;FP.prototype.onYtServiceRequestCompleted=FP.prototype.onYtServiceRequestCompleted;FP.prototype.stateChanged=FP.prototype.stateChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],FP.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(e1.YtRenderButtonBehavior),_.t("design:type",Object)],FP.prototype,"ytRenderButtonBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],FP.prototype,"data",void 0);_.k([_.i6("data","data.currentStateId"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],FP.prototype,"stateChanged",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],FP.prototype,"onYtServiceRequestCompleted",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],FP.prototype,"onYtServiceRequestError",null);FP=_.k([_.b({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],FP);
_.A(FP,"ytd-subscription-notification-toggle-button-renderer",function(){if(p0U!==void 0)return p0U;var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return p0U=E},{mode:1});var Ywt;var DT=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};E.tapHandler=function(){if(E.data){var B=E.currentStateRendererData();B&&E.ytRendererBehavior.logExplicitClick(B)}};
return E};
_.L(DT,_.r);_.l=DT.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.currentStateData=function(){var E=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(B){return B.stateId===E.data.currentStateId})||null:null};
_.l.currentStateRendererData=function(){var E=this.currentStateData();return E&&E.state&&E.state.buttonRenderer?E.state.buttonRenderer:null};
_.l.computeAccessibilityLabel=function(){var E,B,I;return(E=this.currentStateRendererData())==null?void 0:(B=E.accessibilityData)==null?void 0:(I=B.accessibilityData)==null?void 0:I.label};
_.l.computeBellMenuItemParams=function(){var E,B,I=(B=_.h((E=this.data)==null?void 0:E.command,_.pO))==null?void 0:B.commands;if(!I||I.length===0)return null;E=_.h(I[0],_.uU);var T,e;return(E==null?0:(T=E.popup)==null?0:(e=T.menuPopupRenderer)==null?0:e.items)?E.popup.menuPopupRenderer.items.map(function(c){return c.menuServiceItemRenderer.trackingParams}):null};
_.l.handleBellMenuOpenSelectedAction=function(E){var B=E.trackingParams,I=this.computeBellMenuItemParams();if(this.data&&B&&I&&I.includes(B)&&(E==null||!E.isDisabled)){var T;((T=_.h(E.serviceEndpoint,_.a2))==null?void 0:T.signal)!=="CLIENT_SIGNAL"&&(this.icon=E.icon.iconType)}};
_.l.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.l.onYtServiceRequestCompleted=function(E,B){if(E=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",B))this.icon=void 0,this.set("data",E)};
_.l.onYtServiceRequestError=function(){this.icon=void 0};
_.Up.Object.defineProperties(DT.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var E=this.data,B=this.textLabel,I=this.hostElement,T=this.computeAccessibilityLabel(),e=this.tapHandler,c=this.isOverlay?"overlay":"mono",Y=(E==null?0:E.disableButton)?"disabled":"active";B=B?_.zA(B):void 0;return{style:c,type:"tonal",state:Y,size:"M",focused:!1,formattedButtonText:B,iconPosition:"leading-trailing",onTap:OPi(E,e,I),accessibilityLabel:T}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var E=this.currentStateRendererData(),B,I,T=(I=this.icon)!=null?I:E==null?void 0:(B=E.icon)==null?void 0:B.iconType;if(T)return _.R3(T)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var E,B,I=(E=this.data)==null?void 0:(B=E.secondaryIcon)==null?void 0:B.iconType;if(I)return _.R3(I)}}});
DT.prototype.onYtServiceRequestError=DT.prototype.onYtServiceRequestError;DT.prototype.onYtServiceRequestCompleted=DT.prototype.onYtServiceRequestCompleted;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],DT.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],DT.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],DT.prototype,"textLabel",void 0);
_.k([_.X(),_.t("design:type",String)],DT.prototype,"icon",void 0);_.k([_.X(),_.t("design:type",Boolean)],DT.prototype,"isOverlay",void 0);_.k([_.S("data.*","textLabel"),_.t("design:type",Object),_.t("design:paramtypes",[])],DT.prototype,"computedButtonShape",null);_.k([_.S("data.*","icon"),_.t("design:type",Object),_.t("design:paramtypes",[])],DT.prototype,"computedIcon",null);_.k([_.S("data.*"),_.t("design:type",Object),_.t("design:paramtypes",[])],DT.prototype,"computedSecondaryIcon",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],DT.prototype,"onYtServiceRequestCompleted",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],DT.prototype,"onYtServiceRequestError",null);DT=_.k([_.b({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],DT);
_.A(DT,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Ywt!==void 0)return Ywt;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return Ywt=E},{mode:_.qi("kevlar_poly_si_batch_j081")?1:2});var az$;_.d("web_enable_sink_animated_actions")?_.oQ(leR,"yt-animated-action",{props:{backgroundLottieRef:_.Jh,foregroundLottieRef:_.Jh,wrapperClass:_.Jh,disableAnimation:_.Jh},unsafeExternallySettableAttributes:new Set(["key"])}):_.qE(c7J,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var Kt=function(){var E=_.r.apply(this,arguments)||this;E.animatedActionEnabled=_.d("web_animated_actions");E.foregroundLottieRef={};E.backgroundLottieRef={};E.forceIconOnly=!1;E.showTextWhileAnimating=!1;E.keyboardFocused=!1;E.isAnimating=!1;E.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return E};
_.L(Kt,_.r);_.l=Kt.prototype;_.l.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.l.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]]"}}}}}};
_.l.attached=function(){this.keyboardFocused=!1};
_.l.onYtServiceRequestSent=function(E,B){(this.get("endpoint.subscribeEndpoint",B)||this.get("endpoint.unsubscribeEndpoint",B))&&this.updateSubscriptionState(!this.subscribed)};
_.l.onYtServiceRequestCompleted=function(E,B){(E=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",B.data))&&this.bellButton&&(this.bellButton.data=E)};
_.l.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Dk(this.hostElement)};
_.l.onPlayerSubscribe=function(E){this.isCompactRed()||E!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.l.onPlayerUnsubscribe=function(E){this.isCompactRed()||E!==this.data.channelId||this.updateSubscriptionState(!1)};
_.l.handleUpdateSubscribeButtonAction=function(E){E=_.h(E,e$c);var B;E&&E.channelId===((B=this.data)==null?void 0:B.channelId)&&this.updateSubscriptionState(!!E.subscribed)};
_.l.computeButtonStyle=function(E){return this.get("style.styleType",E)||null};
_.l.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.l.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.l.updateSubscriptionState=function(E){if(E!==this.subscribed){this.set("data.subscribed",E);var B,I=(B=this.data)==null?void 0:B.subscribedEntityKey;I&&this.ytdReduxBehavior.dispatch(_.aL("subscriptionStateEntity",I,{key:I,subscribed:E}));this.isCompactRed()||_.$O(this.hostElement,"yt-subscription-changed",E);E||(_.I2(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!E),E&&this.hasBellButton&&this.startAnimation())}};
_.l.startAnimation=function(){var E=this;if(!this.isAnimating){var B=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var I;(I=this.backgroundLottieRef.lottieEl)==null||I.goToAndPlay(0);var T;(T=this.foregroundLottieRef.lottieEl)==null||T.goToAndPlay(0);_.Ll.addJob(function(){E.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Ll.addJob(function(){E.updateContainerToFitContent(!!E.subscribed,!0)},2,1500);
_.Ll.addJob(function(){E.isAnimating=!1},2,B)}};
_.l.maybeAnimateBellIcon=function(){var E=_.fq(this.hostElement).querySelector("yt-animated-icon");if(E){var B;(B=E.animationRef.lottieEl)==null||B.goToAndPlay(0)}};
_.l.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.l.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.l.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var E;this.unsubscribedWidth=(E=this.subscribeButtonShape)==null?void 0:E.getBoundingClientRect().width}var B;this.subscribedWidth=(B=this.bellButton)==null?void 0:B.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.l.updateContainerToFitContent=function(E,B){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(E?(E=this.subscribedWidth,B=this.isAnimating&&!B,this.subscribedIconOnlyWidth===void 0||B||(E=this.subscribedIconOnlyWidth),this.hostElement.style.width=E+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.l.clearContainerSize=function(){this.hostElement.style.width=""};
_.l.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.l.maybeSetSubscribedButtonIconOnlyWidth=function(){var E=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 B;E.subscribedIconOnlyWidth=(B=E.bellButton)==null?void 0:B.getBoundingClientRect().width;requestAnimationFrame(function(){if(E.bellButton){var I;E.bellButton.textLabel=
(I=E.data)==null?void 0:I.subscribedButtonText}})})))};
_.Up.Object.defineProperties(Kt.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 E;return(E=this.data)==null?void 0:E.subscribedButtonText}var B;return this.forceIconOnly?void 0:(B=this.data)==null?void 0:B.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var E,B,I=((E=this.data)==null?void 0:(B=E.timedAnimationData)==null?void 0:B.animationTiming)||[];return{uniqueId:"subscribe",timings:I,enabled:I.length>0&&!this.subscribed,experimentEnabled:I.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var E;return!this.subscribed&&((E=this.data)==null?void 0:E.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 E={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var B=E.renderer;var I=E.element;var T=E.subscribed;var e=E.commandController;var c=E.isOverlay;E=E.config;var Y=N3B(B,T);c&&(Y.style="overlay");c=Object;var v=c.assign,y;a:switch((y=B.style)==null?void 0:y.styleType){case "COMPACT_GRAY":case "COMPACT_RED":y={size:"S"};break a;default:y={size:"M"}}var Z=HPf(B,T);var P=
(P=T?B.subscribedButtonText:B.unsubscribedButtonText)?_.zA(P):void 0;return v.call(c,{},Y,y,{focused:!1,toggled:T,accessibilityLabel:Z,formattedButtonText:P,onTap:MQc(B,E,T,I,e)})}}}});
Kt.prototype.onMouseDown=Kt.prototype.onMouseDown;Kt.prototype.onDataChanged=Kt.prototype.onDataChanged;Kt.prototype.observedSubscribed=Kt.prototype.observedSubscribed;Kt.prototype.onYtServiceRequestCompleted=Kt.prototype.onYtServiceRequestCompleted;Kt.prototype.onYtServiceRequestSent=Kt.prototype.onYtServiceRequestSent;Kt.prototype.maybeUpdateBellButtonText=Kt.prototype.maybeUpdateBellButtonText;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Kt.prototype,"ytComponentBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Kt.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Kt.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Kt.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Kt.prototype,"data",void 0);
_.k([_.X({selectorArgs:["data.subscribedEntityKey"],selector:_.RS}),_.t("design:type",Object)],Kt.prototype,"subscriptionStateEntity",void 0);_.k([_.X({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Kt.prototype,"subscribed",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Kt.prototype,"branded",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Kt.prototype,"animatedActionEnabled",void 0);
_.k([_.X(),_.t("design:type",Object)],Kt.prototype,"foregroundLottieRef",void 0);_.k([_.X(),_.t("design:type",Object)],Kt.prototype,"backgroundLottieRef",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Kt.prototype,"overlayButton",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.t("design:type",Object)],Kt.prototype,"buttonStyle",void 0);_.k([_.X(),_.t("design:type",Object)],Kt.prototype,"forceIconOnly",void 0);
_.k([_.X(),_.t("design:type",Object)],Kt.prototype,"showTextWhileAnimating",void 0);_.k([_.X({value:function(){return!!_.Q().resolve(_.Fx(_.ZR))&&_.d("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.t("design:type",Boolean)],Kt.prototype,"useKeyboardFocused",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Kt.prototype,"keyboardFocused",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Kt.prototype,"isAnimating",void 0);_.k([_.S("data.notificationPreferenceButton.*"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kt.prototype,"hasBellButton",null);
_.k([_.EM("subscribedButtonText"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Kt.prototype,"maybeUpdateBellButtonText",null);_.k([_.S("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kt.prototype,"subscribedButtonText",null);_.k([_.S("data.timedAnimationData.animationTiming","subscribed"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kt.prototype,"smartimationSettings",null);
_.k([_.X({reflectToAttribute:!0}),_.S("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kt.prototype,"subscribeButtonHidden",null);_.k([_.X({reflectToAttribute:!0}),_.S("subscribed","hasBellButton"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kt.prototype,"subscribeButtonInvisible",null);
_.k([_.X({reflectToAttribute:!0}),_.S("subscribed"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kt.prototype,"unsubscribeButtonHidden",null);_.k([_.$7("ytd-subscription-notification-toggle-button-renderer-next"),_.t("design:type",Object)],Kt.prototype,"bellButton",void 0);_.k([_.$7("#subscribe-button-shape"),_.t("design:type",HTMLElement)],Kt.prototype,"subscribeButtonShape",void 0);
_.k([_.S("overlayButton","subscribed","data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kt.prototype,"buttonShape",null);_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],Kt.prototype,"onYtServiceRequestSent",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],Kt.prototype,"onYtServiceRequestCompleted",null);
_.k([_.EM("subscribed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Kt.prototype,"observedSubscribed",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Kt.prototype,"onDataChanged",null);_.k([_.RN("mousedown"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Kt.prototype,"onMouseDown",null);
Kt=_.k([_.b({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Kt);
_.A(Kt,"ytd-subscribe-button-renderer",function(){if(az$!==void 0)return az$;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return az$=E},{mode:1});var RZ=function(){var E=_.r.apply(this,arguments)||this;E.isRichGrid=!1;return E};
_.L(RZ,_.r);RZ.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"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],RZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],RZ.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RZ.prototype,"isRichGrid",void 0);RZ=_.k([_.b({is:"ytd-game-card-renderer",disableElementRegistration:!0})],RZ);
_.A(RZ,"ytd-game-card-renderer",function(){if(iPR!==void 0)return iPR;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return iPR=E},{mode:1});var EC={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.d("defer_menus")&&!K6u?0:void 0,waitForSignal:"eocs"};var vt$;var yYX;var B4=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return E};
_.L(B4,_.r);_.l=B4.prototype;_.l.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.l.onSeriesReminderStateEntityChange=function(){var E,B,I;((E=this.eventReminderStateEntity)==null?0:E.key)&&((B=this.seriesReminderStateEntity)==null?void 0:B.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((I=this.eventReminderStateEntity)==null?void 0:I.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.aL("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.l.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.l.onYtServiceRequestError=function(){var E;this.updateReminderStateEntitiesFromButtonState((E=this.data)==null?void 0:E.currentState)};
_.l.handleUpdateUpcomingEventReminderButtonStateCommand=function(E){if(E=_.h(E,Z_$)){var B,I=(B=this.data)==null?void 0:B.targetId;I&&E.targetId===I&&_.Gg(this.updateReminderStateEntitiesFromButtonState.bind(this,E.state))}};
_.l.getButtonStateFromReminderState=function(){var E;if(((E=this.seriesReminderStateEntity)==null?void 0:E.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var B;if(((B=this.eventReminderStateEntity)==null?void 0:B.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var I,T;if(((I=this.seriesReminderStateEntity)==null?void 0:I.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((T=this.eventReminderStateEntity)==
null?void 0:T.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var e;return(e=this.data)==null?void 0:e.currentState};
_.l.updateReminderStateEntitiesFromButtonState=function(E){if(E){switch(E){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":E="UPCOMING_EVENT_REMINDER_STATE_NONE";var B="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":E="UPCOMING_EVENT_REMINDER_STATE_SINGLE";B="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":E="UPCOMING_EVENT_REMINDER_STATE_NONE";B="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var I;
((I=this.eventReminderStateEntity)==null?0:I.key)&&this.ytdReduxBehavior.dispatch(_.aL("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:E})));var T;((T=this.seriesReminderStateEntity)==null?0:T.key)&&this.ytdReduxBehavior.dispatch(_.aL("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:B})))}};
_.Up.Object.defineProperties(B4.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var E=this.getButtonStateFromReminderState(),B,I;if(E&&((B=this.data)==null?0:(I=B.states)==null?0:I.length))for(B=_.p(this.data.states),I=B.next();!I.done;I=B.next()){I=I.value;var T=void 0;if(((T=_.h(I,Pfl))==null?void 0:T.state)===E)return _.h(I,Pfl)}}}});
B4.prototype.onYtServiceRequestError=B4.prototype.onYtServiceRequestError;B4.prototype.onYtServiceRequestCompleted=B4.prototype.onYtServiceRequestCompleted;B4.prototype.onSeriesReminderStateEntityChange=B4.prototype.onSeriesReminderStateEntityChange;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],B4.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],B4.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],B4.prototype,"data",void 0);_.k([_.X({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:W1D}),_.t("design:type",Object)],B4.prototype,"eventReminderStateEntity",void 0);
_.k([_.X({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(E,B){return _.cP(E.entities,"sportsSeriesReminderStateEntity",B)}}),
_.t("design:type",Object)],B4.prototype,"seriesReminderStateEntity",void 0);_.k([_.S("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],B4.prototype,"currentButtonStateRenderer",null);_.k([_.EM("seriesReminderStateEntity"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],B4.prototype,"onSeriesReminderStateEntityChange",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],B4.prototype,"onYtServiceRequestCompleted",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],B4.prototype,"onYtServiceRequestError",null);B4=_.k([_.b({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],B4);
_.A(B4,"ytd-upcoming-event-reminder-button-renderer",function(){if(yYX!==void 0)return yYX;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
return yYX=E},{mode:1});var C4Z;var $k=function(){return _.r.apply(this,arguments)||this};
_.L($k,_.r);$k.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Up.Object.defineProperties($k.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(_.d("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],$k.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],$k.prototype,"shelfDismissal",void 0);_.k([_.S("data.responseText"),_.t("design:type",Object),_.t("design:paramtypes",[])],$k.prototype,"text",null);
_.k([_.S("data.responseText"),_.t("design:type",Object),_.t("design:paramtypes",[])],$k.prototype,"textAriaLabel",null);$k=_.k([_.b({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],$k);
_.A($k,"ytd-notification-multi-action-renderer",function(){if(C4Z!==void 0)return C4Z;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return C4Z=E},{mode:1});var w0U;var IM=function(){return _.r.apply(this,arguments)||this};
_.L(IM,_.r);IM.prototype.ready=function(){var E=this;_.n(this.hostElement).querySelector("#undo").addEventListener("tap",function(){E.onUndoTap()})};
IM.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.Q().resolve(_.Dt).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],IM.prototype,"data",void 0);IM=_.k([_.b({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],IM);
_.A(IM,"ytd-notification-text-renderer",function(){if(w0U!==void 0)return w0U;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return w0U=E},{mode:1});var ZPh;var TK=function(){var E=_.r.apply(this,arguments)||this;E.mouseOverDelayJobId=0;E.fadeInImageDelayJobId=0;E.startTimeMs=-1;E.loadingStartTimeMs=-1;E.loadingEndTimeMs=-1;E.hasVideoPreview=!1;return E};
_.L(TK,_.r);_.l=TK.prototype;_.l.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.l.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.l.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.l.showThumbnail=function(){var E=this;this.csn=_.nC();_.Mf("fmth");_.Ll.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.ta(_.Ll,function(){E.loadingStartTimeMs=(0,_.VZ)();var B=_.n(E.hostElement).querySelector("#thumbnail");B.complete?E.displayMouseOverImage():B.addEventListener("load",_.Kq(E,E.displayMouseOverImage))},150):_.VQ(_.n(this.hostElement).querySelector("#play"),"show",!0)};
_.l.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.l.onTap=function(){this.removeVideoPreview()};
_.l.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var E=this.videoId,B=this.csn,I=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,T=this.startTimeMs,e=this.hasVideoPreview,c=_.Yg(this.trackingParams),Y={isMovingThumbnail:e};e&&T>0&&(I>0&&(Y.movingThumbnailLoadingDurationMs=Math.round(I)),Y.durationHoveredMs=Math.round((0,_.VZ)()-T));E&&(Y.videoId=E);_.jY(B,c,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:Y});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.l.removeVideoPreview=function(){_.Ll.cancelJob(this.mouseOverDelayJobId);_.Ll.cancelJob(this.fadeInImageDelayJobId);var E=_.n(this.hostElement).querySelector("#thumbnail");_.VQ(E,"fade-in",!1);E.removeEventListener("load",_.Kq(this,this.displayMouseOverImage));E=_.n(this.hostElement).querySelector("#play");_.VQ(E,"fade-in",!1);_.VQ(E,"show",!1)};
_.l.displayMouseOverImage=function(){var E=_.n(this.hostElement).querySelector("#thumbnail"),B=_.n(this.hostElement).querySelector("#play");this.isImageAvailable(E)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.VZ)(),this.startTimeMs=(0,_.VZ)(),this.fadeInImageDelayJobId=_.ta(_.Ll,function(){_.VQ(E,"fade-in",!0)},50)):_.VQ(B,"fade-in",!0)};
_.l.computeThumbnail=function(E,B){var I;E&&E.movingThumbnailDetails&&E.movingThumbnailDetails.thumbnails&&B?I=_.Aa(E.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):I=B?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(I)return _.pr(I)};
_.l.isImageAvailable=function(E){return!(!E.src||E.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||E.naturalWidth===120)};
TK.prototype.onTap=TK.prototype.onTap;TK.prototype.dataChanged=TK.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],TK.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],TK.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],TK.prototype,"csn",void 0);_.k([_.X(),_.t("design:type",Object)],TK.prototype,"trackingParams",void 0);
_.k([_.X(),_.t("design:type",String)],TK.prototype,"videoId",void 0);_.k([_.X(),_.t("design:type",Boolean)],TK.prototype,"isAttachedAndDataSet",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],TK.prototype,"dataChanged",null);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],TK.prototype,"onTap",null);TK=_.k([_.b({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],TK);
_.A(TK,"ytd-moving-thumbnail-renderer",function(){if(ZPh!==void 0)return ZPh;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return ZPh=E},{mode:1});var P4Z;_.aP=function(E){this.hostElement=E;this.eventSink=null;this.eventList=[]};
_.aP.prototype.shouldForward=function(){var E,B;return(B=(E=this.eventSink)==null?void 0:E.isConnected)!=null?B:document.body.contains(this.eventSink)};
_.aP.prototype.start=function(E,B){this.eventSink&&this.stop();for(var I=0;I<E.length;I++)this.hostElement.addEventListener(E[I],_.Kq(this,this.forwardEvent));var T;this.eventSink=(T=B.hostElement)!=null?T:B;this.eventList=E};
_.aP.prototype.stop=function(){for(var E=0;E<this.eventList.length;E++)this.hostElement.removeEventListener(this.eventList[E],_.Kq(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.aP.prototype.forwardEvent=function(E,B){this.shouldForward()&&(E.stopPropagation(),this.eventSink instanceof Element?_.$O(this.eventSink,E.type,B):_.OG(new _.P7("eventSink is not an element")))};_.eS={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.aP(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(E,B){this.forwarder_.start(E,B)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var lg=function(){return _.r.apply(this,arguments)||this};
_.L(lg,_.r);_.l=lg.prototype;_.l.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=_.HA("HTML_DIR")==="rtl"?"right":"left"};
_.l.dataChanged=function(){this.popupOpen=!1};
_.l.computeAriaLabel=function(E){return _.h(E,NVX).label};
_.l.onTap=function(E){E.stopPropagation();E.preventDefault();this.data.command&&_.Q().resolve(_.Dt).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.l.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.l.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
lg.prototype.onPopupClosed=lg.prototype.onPopupClosed;lg.prototype.onPopupOpened=lg.prototype.onPopupOpened;lg.prototype.onTap=lg.prototype.onTap;lg.prototype.dataChanged=lg.prototype.dataChanged;_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],lg.prototype,"eventForwardingBehavior",void 0);_.k([_.g(_.MC),_.t("design:type",Object)],lg.prototype,"ironButtonState",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],lg.prototype,"componentBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],lg.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,value:-1}),_.t("design:type",Number)],lg.prototype,"tabindex",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.t("design:type",Object)],lg.prototype,"ariaLabel",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],lg.prototype,"disableTooltips",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],lg.prototype,"popupOpen",void 0);
_.k([_.X(),_.t("design:type",Element)],lg.prototype,"eventSink",void 0);_.k([_.$7("#tooltip"),_.t("design:type",Object)],lg.prototype,"tooltip",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],lg.prototype,"dataChanged",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],lg.prototype,"onTap",null);
_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],lg.prototype,"onPopupOpened",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],lg.prototype,"onPopupClosed",null);lg=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],lg);
_.A(lg,"ytd-thumbnail-overlay-button-renderer",function(){if(P4Z!==void 0)return P4Z;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return P4Z=E},{mode:1});var zWX;var c4=function(){return _.r.apply(this,arguments)||this};
_.L(c4,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],c4.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],c4.prototype,"disableAnimation",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],c4.prototype,"rounded",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],c4.prototype,"transparentBackground",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],c4.prototype,"noPadding",void 0);c4=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],c4);
_.A(c4,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(zWX!==void 0)return zWX;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return zWX=E},{mode:1});var mjV;var ig=function(){return _.r.apply(this,arguments)||this};
_.L(ig,_.r);ig.prototype.computeIconPosition=function(E){return this.get("iconPosition",E)||null};
ig.prototype.computeIconStyle=function(E){return this.get("iconStyle",E)||null};
ig.prototype.computeIsIconStyleFilled=function(E){if(!E)return!1;var B;return E.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((B=E.icon)==null?void 0:B.iconType)==="ERROR_BLACK"};
_.k([_.X(),_.t("design:type",Object)],ig.prototype,"data",void 0);_.k([_.X({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.t("design:type",Object)],ig.prototype,"iconPosition",void 0);_.k([_.X({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.t("design:type",Object)],ig.prototype,"iconStyle",void 0);_.k([_.X({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],ig.prototype,"iconStyleFilled",void 0);
ig=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],ig);
_.A(ig,"ytd-thumbnail-overlay-icon-renderer",function(){if(mjV!==void 0)return mjV;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return mjV=E},{mode:1});var QoZ;var pG=function(){return _.r.apply(this,arguments)||this};
_.L(pG,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],pG.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],pG.prototype,"data",void 0);pG=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],pG);
_.A(pG,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(QoZ!==void 0)return QoZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return QoZ=E},{mode:1});var djr;var Yk=function(){var E=_.r.apply(this,arguments)||this;E.isPreviewLoading=!1;return E};
_.L(Yk,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Yk.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Yk.prototype,"isPreviewLoading",void 0);Yk=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Yk);
_.A(Yk,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(djr!==void 0)return djr;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return djr=E},{mode:1});var hWU;var aM=function(){return _.r.apply(this,arguments)||this};
_.L(aM,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],aM.prototype,"data",void 0);aM=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],aM);
_.A(aM,"ytd-thumbnail-overlay-pinking-renderer",function(){if(hWU!==void 0)return hWU;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return hWU=E},{mode:1});var soU;var v4=function(){var E=_.r.apply(this,arguments)||this;E.disableTooltips=!1;E.isLoading=!1;E.useExpandableTooltip=!1;E.toggled=!1;E.hovered=!1;E.mouseoverDelayJobId=0;E.toggleDelayJobId=0;E.expandAnimationDelayJobId=0;return E};
_.L(v4,_.r);_.l=v4.prototype;_.l.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");_.n(this.hostElement).querySelector("#tooltip").position=_.HA("HTML_DIR")==="rtl"?"right":"left"};
_.l.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Ll.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Ll.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Ll.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.l.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Ll.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Ll.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Ll.cancelJob(this.expandAnimationDelayJobId)};
_.l.computeIcon=function(E,B,I){return(E=I?B:E)&&E.iconType?_.R3(E.iconType):void 0};
_.l.computeAriaLabel=function(E,B,I){return _.h(I?B:E,NVX).label};
_.l.computeTooltip=function(E,B,I){return I?B:E};
_.l.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.l.computeIconOnHover=function(E,B){if((E==null?0:E.iconType)&&!B)return _.R3(E.iconType)};
_.l.onTap=function(E){var B=this;E.stopPropagation();E.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(E=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(E),this.useExpandableTooltip&&(this.toggleDelayJobId=_.ta(_.Ll,function(){B.hovered=!1;B.data&&!B.data.toggledServiceEndpoint&&(B.expandAnimationDelayJobId=_.ta(_.Ll,function(){B.set("data.isToggled",
!1)},200))},2E3))};
_.l.onMouseenter=function(){var E=this;this.mouseoverDelayJobId=_.ta(_.Ll,function(){E.hovered=!0},300)};
_.l.onMouseleave=function(){_.Ll.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.l.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.l.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.l.onServiceRequestCompleted=function(E,B){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(B)||this.set("data.isToggled",!this.data.isToggled)};
_.l.serviceRequestWasSuccessful=function(E){return _.h(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.nU)?E.data.status==="STATUS_SUCCEEDED":!0};
v4.prototype.onServiceRequestCompleted=v4.prototype.onServiceRequestCompleted;v4.prototype.onPopupClosed=v4.prototype.onPopupClosed;v4.prototype.onPopupOpened=v4.prototype.onPopupOpened;v4.prototype.onMouseleave=v4.prototype.onMouseleave;v4.prototype.dataChanged=v4.prototype.dataChanged;_.k([_.g(_.MC),_.t("design:type",Object)],v4.prototype,"ironButtonState",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],v4.prototype,"ytComponentBehavior",void 0);
_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],v4.prototype,"ytEventForwardingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],v4.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.t("design:type",Object)],v4.prototype,"ariaLabel",void 0);_.k([_.X(),_.t("design:type",Object)],v4.prototype,"disableTooltips",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],v4.prototype,"popupOpen",void 0);_.k([_.X(),_.t("design:type",Object)],v4.prototype,"isLoading",void 0);_.k([_.X(),_.t("design:type",Element)],v4.prototype,"eventSink",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],v4.prototype,"useExpandableTooltip",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.t("design:type",Object)],v4.prototype,"toggled",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],v4.prototype,"hovered",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.t("design:type",Object)],v4.prototype,"iconOnHover",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],v4.prototype,"dataChanged",null);
_.k([_.RN("mouseleave"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],v4.prototype,"onMouseleave",null);_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],v4.prototype,"onPopupOpened",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],v4.prototype,"onPopupClosed",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],v4.prototype,"onServiceRequestCompleted",null);v4=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],v4);
_.A(v4,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(soU!==void 0)return soU;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return soU=E},{mode:_.qi("kevlar_poly_si_batch_j053")?1:2});var uvZ;var LbZ=_.rp(function(E){var B=E.data;var I=function(){return B().enableSegmentView};
return _.w("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.w(_.wU,{cond:I,then:function(){return _.w("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.w("div",{class:_.B$("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+B().startPercent+"%"}}),_.w("div",{class:_.B$("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+B().segmentDurationPercent+"%"}},_.w("div",{class:_.B$("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.w("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.w("div",null," ",function(){return B().segmentLabel})),_.w("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.w("div",{class:_.B$("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.w(_.wU,{cond:function(){return!I()&&B().startPercent},
then:function(){var T={};return _.w("div",{class:_.B$("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(T.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.d("web_enable_modern_progress_bar_overlay"),T))},_.w("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+B().startPercent+"%"}}))}}))},"L");
LbZ.idomCompat=!0;var xjh=_.rp(function(E){var B=_.$4(),I=_.hk(function(e){var c,Y,v;a:{var y=(c=E.data())==null?void 0:c.animationActivationTargetId;c=((Y=E.data())==null?void 0:Y.animationActivationEntityKey)||"";Y=(v=E.data())==null?void 0:v.animationActivationEntitySelectorType;if(c&&y)switch(Y){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":e=_.cP(e.entities,"playerStateEntity",c);v=_.Q().resolve(_.Fx(_.W3));y=!!(e&&e.videoId===y&&(v==null?0:v.isMiniplayerActive()));y={activated:y,playAnimation:y&&
e.playerState==="PLAYER_STATE_PLAYING"};break a}y=void 0}return y});
_.m$(function(){var e;if((e=I())==null?0:e.activated){var c;if((c=I())==null?0:c.playAnimation){var Y;(Y=B.lottieEl)==null||Y.goToAndPlay(0)}else{var v;(v=B.lottieEl)==null||v.goToAndStop(0)}}});
var T=function(){var e,c=!((e=I())==null||!e.activated);if(E.data()){e=E.data();var Y=void 0;e.icon&&(Y=ukF(e.icon),Y=HRJ(Y));var v=void 0,y;if((y=e.backgroundColor)==null?0:y.lightTheme){var Z;v={backgroundColor:sq((Z=e.backgroundColor)==null?void 0:Z.lightTheme,"0.8")}}if(e.text||Y||c){if(c&&e.lottieData&&B){Z=e.lottieData;var P,z,m;y={animationConfig:{name:Z.url,path:Z.url,autoplay:(P=Z.settings)==null?void 0:P.autoplay,loop:(m=(z=Z.settings)==null?void 0:z.loop)!=null?m:!0},animationRef:B}}else y=
void 0;if(c)P=16;else b:switch(e.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":P=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":P=18;break b;default:P=16}c={type:P,text:c&&e.animatedText?e.animatedText:e.text,icon:Y,customColors:v,animation:y}}else c=void 0}else c=void 0;return c};
return _.w("yt-thumbnail-badge-view-model",{class:_.RQ("yt-thumbnail-badge-view-model-wiz",E.class)},_.w(_.wU,{cond:T,then:function(){return _.w(_.fe,{data:function(){return T()}})}}))},"M");var Gd6=_.rp(function(E){var B={};return _.w("yt-thumbnail-bottom-overlay-view-model",{class:_.RQ("ytThumbnailBottomOverlayViewModelHost",(B.ytThumbnailBottomOverlayViewModelHostBackground=function(){return E.data().enableGradientBackground},B))},_.w("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.w(_.hM,{data:function(){return E.data().progressBar}},{thumbnailOverlayProgressBarViewModel:LbZ}),_.w(_.hM,{data:function(){return E.data().badge}},{thumbnailBadgeViewModel:function(I){return _.w(xjh,
{data:I.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.w(_.hM,{data:function(){return E.data().badges}},{thumbnailBadgeViewModel:function(I){return _.w(xjh,{data:I.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"N");
Gd6.idomCompat=!0;_.oQ(Gd6,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.bu}});var joD={calledOnce:!1,state:"visible"},Ujc={calledOnce:!1,state:"hidden"};_.qW(fzB);var OPl=_.rp(function(E){var B=E.data;var I=E.className;E=E.alwaysShow;var T=_.oH();_.rT(T,function(){return B().rendererContext});
var e=_.SwF(),c={};return _.w("thumbnail-hover-overlay-view-model",{el:T,class:_.RQ("ytThumbnailHoverOverlayViewModelHost",I,(c.ytThumbnailHoverOverlayViewModelHostForceHover=E,c)),"aria-label":function(){var Y;return(Y=_.h(B().rendererContext,_.bO))==null?void 0:Y.label},
role:function(){return _.JM(B().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.JM(B().rendererContext)!==void 0?0:void 0},
"on:keypress":e},_.w("div",{class:_.RQ("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(B().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var Y="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:Y="ytThumbnailHoverOverlayViewModelStyleCover"}return Y})},_.w(_.wU,{cond:function(){return B().icon},
then:function(Y){return _.w(_.Ja,{data:Y,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.w(_.wU,{cond:function(){return B().text},
then:function(Y){return _.w(_.aS,{text:Y,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"O"),ntl=_.d("web_enable_sink_lockups_batch")?OPl:fzB,MQZ=_.d("web_enable_sink_lockups_batch")?OPl:_.$3(fzB);
OPl.idomCompat=!0;var AM=_.rp(function(E){var B=E.data;return _.w(_.hM,{data:function(){return B==null?void 0:B().overlays}},{thumbnailHoverOverlayViewModel:MQZ})},"P");
AM.idomCompat=!0;var HPU={};var oL=_.rp(function(E){var B=E.data;var I=E.image;var T=E.state;var e=E.iconType;var c=E.overlays;var Y=E.isOverlay;var v=_.AK();E=_.p(_.lQ(!0,void 0,"xOB8yb"));var y=E.next().value,Z=E.next().value,P=_.Wl(e,"LIVE");_.m$(function(){var m=B();requestAnimationFrame(function(){if(v.value===null)var u=!0;else{var x=v.value;u=m.badgeText;var M=VQG(m.size);u in HPU?x=HPU[u]:(x=x.clientWidth,HPU[u]=x);(u=x>M)?v.value.style.display="none":v.value.style.visibility="visible"}Z(u)})});
var z=function(){var m={};return m["yt-spec-avatar-shape__image"]=!0,m["yt-spec-avatar-shape__image--ads-app"]=B().type===1,m};
e=_.TI(function(m){var u,x;return void((x=(u=B()).onTap)==null?void 0:x.call(u,m))});
return _.w("yt-avatar-shape",null,_.w("div",{class:function(){var m={};m=(m["yt-spec-avatar-shape"]=!0,m["yt-spec-avatar-shape__button"]=!0,m[Fbf(B().size)]=!0,m["yt-spec-avatar-shape__button--tappable"]=!!B().onTap,m);var u=B().avatarButtonCustomClassName;u&&(m[u]=!0);return _.B$(m)},
"on:click":e,"on:keydown":_.gT(),"aria-label":function(){return B().onTap?B().accessibilityText:""},
role:function(){return B().onTap?"button":void 0},
tabindex:function(){return B().onTap?0:void 0}},_.w("div",{class:function(){var m,u=B(),x=T==null?void 0:T(),M=Y==null?void 0:Y(),N=!((m=u.decorations)==null||!m.includes(2)||u.size!=="medium"&&u.size!=="large"),W=u.size==="tiny"||u.size==="extra-small",U,q,f,ed,K={};
m=(K["yt-spec-avatar-shape--live-ring"]=!!(((U=u.decorations)==null?0:U.includes(0))&&Kbc(u.size)),K["yt-spec-avatar-shape--stories-watched"]=N&&!(x==null||!x.storiesWatched),K["yt-spec-avatar-shape--stories-unwatched"]=N&&!(x==null?0:x.storiesWatched),K["yt-spec-avatar-shape--background-border"]=RWJ(u.decorations)&&!W,K["yt-spec-avatar-shape--background-border-thin"]=RWJ(u.decorations)&&W,K["yt-spec-avatar-shape__on-select-border"]=!((q=u.decorations)==null||!q.includes(4)),K["yt-spec-avatar-shape__white-border"]=
!((f=u.decorations)==null||!f.includes(5)),K["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((ed=u.decorations)==null?0:ed.includes(5))&&W),K["yt-spec-avatar-shape--is-overlay"]=!!M,K);return _.B$(m)}},_.w("div",{class:function(){var m={};
m=(m[qw4(B().size)]=!0,m["yt-spec-avatar-shape--no-margin"]=RWJ(B().decorations),m);return _.B$(m)}},_.w(_.Ja,{data:I,
alt:function(){return!B().onTap&&B().accessibilityText?B().accessibilityText:""},
targetWidth:function(){return Dji(B().size)},
targetHeight:function(){return Dji(B().size)},
className:function(){return _.B$(z())}}),_.w(_.wU,{cond:function(){var m;
return((m=B().decorations)==null?void 0:m.includes(0))&&Kbc(B().size)},
then:function(){return _.w("div",{class:function(){var m={};m=(m["yt-spec-avatar-shape__live-badge"]=!0,m["yt-spec-avatar-shape__live-badge--badge-small"]=B().size==="small",m["yt-spec-avatar-shape__live-badge--badge-medium"]=B().size==="medium"||B().size==="48",m["yt-spec-avatar-shape__live-badge--badge-large"]=B().size==="large",m["yt-spec-avatar-shape__live-badge--badge-extra-large"]=B().size==="extra-large"||B().size==="extra-extra-large"||B().size==="giant",m);return _.B$(m)}},_.w(_.wU,{cond:function(){return B().badgeText},
then:function(m){return _.w("div",{class:"yt-spec-avatar-shape__badge-text",el:v},m)}}),_.w(_.wU,{cond:y,
then:function(){return _.w("div",{class:"yt-spec-avatar-shape__badge-icon"},_.w(_.i0,{icon:P,size:function(){a:switch(B().size){case "extra-large":var m=16;break a;default:m=13}return m}}))}}))}}),_.w(_.wU,{cond:function(){var m,u;
return((m=B().decorations)==null?void 0:m.includes(1))||((u=B().decorations)==null?void 0:u.includes(0))&&!Kbc(B().size)},
then:function(){return _.w("div",{class:function(){var m=B(),u,x,M={};var N=(M["yt-spec-avatar-shape__live-dot"]=!((u=m.decorations)==null||!u.includes(0)||Kbc(m.size)),M["yt-spec-avatar-shape__new-content"]=!((x=m.decorations)==null||!x.includes(1)),M);return _.B$(N)}})}}),_.AV(c,function(){return _.w("div",{class:function(){var m={};
m=Object.assign((m["yt-spec-avatar-shape__image-overlays"]=!0,m),z());return _.B$(m)}},c==null?void 0:c())})))))},"Q");
oL.idomCompat={callbacks:{overlays:!0}};var N3$=_.rp(function(E){function B(){I().endpoint&&_.xg(I().endpoint)}
var I=E.data;var T=E.decorations;var e=E.avatarButtonCustomClassName;var c=E.isOverlay;return _.w("avatar-view-model",null,_.w(_.wU,{cond:function(){return I().image},
then:function(Y){return _.w(oL,{data:function(){return B26({data:I(),onTap:I().endpoint?B:void 0,decorations:T==null?void 0:T(),badgeText:void 0,accessibilityText:I().accessibilityText,avatarButtonCustomClassName:e==null?void 0:e()})},
image:Y,iconType:"RADAR_LIVE",overlays:function(){return _.w(AM,{data:I})},
isOverlay:c})}}))},"R");
N3$.idomCompat=!0;_.sj=_.d("mweb_enable_sink_avatar_view_model")||_.d("web_enable_sink_avatars_batch")?N3$:$Y6;_.yf=_.d("mweb_enable_sink_avatar_view_model")||_.d("web_enable_sink_avatars_batch")?N3$:_.$3(_.sj);_.qW($Y6);_.qW(lyi);var gth,Swu;gth=_.rp(function(E){var B=E.data;E=E.className;var I=_.AK(),T=function(){return _.h(B().avatar,_.jf)},e=_.aJ(function(){var c,Y=B(),v=T(),y=_.JM(B().rendererContext),Z=(c=I.value)!=null?c:void 0;
return v?T2J({data:Y,avatar:v,onTap:y,element:Z}):{size:"medium"}},void 0,"v09a6");
return _.w("yt-decorated-avatar-view-model",{class:_.RQ("yt-decorated-avatar-view-model-wiz",E),el:I},_.w(_.wU,{cond:function(){var c;return(c=T())==null?void 0:c.image},
then:function(c){return _.w(oL,{data:e,image:c,iconType:"RADAR_LIVE",overlays:function(){return _.w(AM,{data:T})}})}}))},"S");
Swu=_.d("web_enable_sink_avatars_batch")?gth:lyi;_.CG=_.d("web_enable_sink_avatars_batch")?gth:_.$3(lyi);gth.idomCompat=!0;var YmB=_.z8({avatarViewModel:_.sj,decoratedAvatarViewModel:Swu});_.qW(ayG);var JYU;JYU=_.rp(function(E){var B=_.oH(),I=function(){return B&&_.WE(E.data().rendererContext)};
_.rT(B,function(){return E.data().rendererContext});
var T=function(){var c=E.data().avatars,Y,v;return(v=(Y=(c==null?0:c[0])?_.h(c[0],_.jf):void 0)==null?void 0:Y.avatarImageSize)!=null?v:"AVATAR_SIZE_UNKNOWN"},e={};
return _.w("yt-avatar-stack-view-model",{el:B,class:_.RQ("yt-avatar-stack-view-model-wiz",E.className,(e["yt-avatar-stack-view-model-wiz--tappable"]=I,e["yt-avatar-stack-view-model-wiz--is-overlay"]=E.isOverlay,e["yt-avatar-stack-view-model-wiz--medium-text"]=E.useMediumText,e)),tabindex:function(){return I()?0:void 0},
role:function(){return I()?"link":void 0},
"aria-label":function(){var c,Y;return(Y=(c=_.h(E.data().rendererContext,_.bO))==null?void 0:c.label)!=null?Y:""}},_.w(_.wU,{cond:function(){var c;
return E.data().avatars&&!((c=E.hideAvatar)==null?0:c.call(E))},
then:function(){return _.w("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.w(_.wU,{cond:function(){return E.data().decoratedText},
then:function(c){var Y={};return _.w("div",{class:_.RQ("yt-avatar-stack-view-model-wiz__text-container",(Y["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return T()==="AVATAR_SIZE_XXS"||T()==="AVATAR_SIZE_XS"},Y["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var v;
return((v=E.isOverlay)==null?void 0:v.call(E))&&(T()==="AVATAR_SIZE_XXS"||T()==="AVATAR_SIZE_XS")},Y)),
style:_.c$({width:function(){return vzc(T())+"px"},
height:function(){return vzc(T())+"px"}})},_.w(_.aS,{text:c,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.w(_.hM,{data:function(){return E.data().avatars.slice().reverse()}},{avatarViewModel:function(c){return _.w("div",{class:function(){return y94(T())}},_.w(_.yf,{data:c.data,
decorations:function(){var Y;if((Y=E.decorations)==null?0:Y.call(E))Y=E.decorations();else{Y=E.data();var v=0;Y.avatars&&(v+=Y.avatars.length);Y.decoratedText&&(v+=1);Y=v>1?[3]:[]}return Y},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:E.isOverlay}))},
decoratedAvatarViewModel:function(c){return _.w("div",{class:function(){return y94(T())}},_.w(_.CG,{data:c.data}))}}))}}),_.w(_.wU,{cond:function(){return E.data().text},
then:function(c){return _.w(_.aS,{text:c,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"T");
_.WbZ=_.d("web_enable_sink_avatars_batch")?JYU:ayG;_.wi=_.d("web_enable_sink_avatars_batch")?JYU:_.$3(ayG);JYU.idomCompat=!0;_.oQ(_.rp(function(E){var B=E.data;var I=E.thumbnailSize;return _.w("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.w("div",{class:_.RQ("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return Cd6(I==null?void 0:I())})},_.w(_.hM,{data:function(){return B().avatarStack}},{avatarStackViewModel:function(T){return _.w(_.wi,{data:T.data,
decorations:[5]})}})))},"U"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Jh,
thumbnailSize:_.Jh}});_.qW(wvF);var X0V=_.rp(function(E){E=_.XS(E,{hidden:!1});var B=E.data;return _.w("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:E.hidden},_.w(_.aS,{text:function(){return B().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.w(_.wU,{cond:function(){return B().subtitle},
then:function(){return _.w(_.aS,{text:function(){return B().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"V"),rYr=_.d("web_enable_sink_lockups_batch")?X0V:wvF,bPR=_.d("web_enable_sink_lockups_batch")?X0V:_.$3(wvF);
X0V.idomCompat=!0;_.d("web_enable_sink_lockups_batch")?_.oQ(bPR,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Jh,hidden:_.Jh}}):_.qE(rYr,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var otV=_.rp(function(E){E=_.XS(E,{isClip:!1});var B=E.data,I=E.thumbnailSize,T={};return _.w("yt-thumbnail-overlay-badge-view-model",{class:_.RQ("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(B().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var e="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:e="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return e},function(){return Zh4(I==null?void 0:I())},(T["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
E.isClip,T))},_.w(_.hM,{data:function(){return B().thumbnailBadges}},{thumbnailBadgeViewModel:function(e){return _.w(xjh,{data:e.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"W");
otV.idomCompat=!0;_.oQ(otV,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Jh,thumbnailSize:_.Jh,isClip:_.Jh}});_.qW(PdG);_.qE(PdG,"yt-page-indicator-view-model",{propNames:["data"]});var Zd=function(){var E=_.r.apply(this,arguments)||this;E.eventSink=function(){return E};
E.disableInteraction=!1;E.noRoundedCorners=!1;E.isPreviewLoading=!1;E.isOriginalAspectRatio=!1;E.computedObjectFit=!1;E.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return E};
_.L(Zd,_.r);_.l=Zd.prototype;
_.l.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:_.d("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"}}};
_.l.onImageLoaded=function(){this.loaded=!0};
_.l.onImageUnloaded=function(){this.loaded=!1};
_.l.computeRichThumbnail=function(E,B,I,T){if(E&&B&&!T&&!_.d("disable_moving_thumbs_handling")&&!I)return B};
_.l.computeImageWidth=function(E,B){return B||9999};
_.l.computeIsOriginalAspectRatio=function(E){return E};
_.l.computeIsLive=function(E){if(E==null?0:E.badges)for(var B=0;B<E.badges.length;B++){var I=E.badges[B];if(I.metadataBadgeRenderer&&I.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(E==null?0:E.thumbnailOverlays)for(B=0;B<E.thumbnailOverlays.length;B++)if(I=E.thumbnailOverlays[B],I.thumbnailOverlayTimeStatusRenderer&&I.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.l.computeObjectFit=function(E,B){return B||(E?"CONTAIN":"")};
_.l.computeNavigationEndpoint=function(E,B,I){return E?B:I};
_.l.computeHasClip=function(E){E=_.p(E||[]);for(var B=E.next();!B.done;B=E.next())if(B.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.l.computeOverlayColor=function(E){var B;return(E==null?0:(B=E.darkColorPalette)==null?0:B.section2Color)?E.darkColorPalette.section2Color:E==null?void 0:E.sampledThumbnailColor};
_.Up.Object.defineProperties(Zd.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return b0(this.width)}}});
Zd.prototype.onImageUnloaded=Zd.prototype.onImageUnloaded;Zd.prototype.onImageLoaded=Zd.prototype.onImageLoaded;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Zd.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Zd.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(lpl),_.t("design:type",Object)],Zd.prototype,"ytdThumbnailBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Zd.prototype,"componentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Zd.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Zd.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],Zd.prototype,"circular",void 0);
_.k([_.X({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.t("design:type",Object)],Zd.prototype,"richThumbnail",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.t("design:type",Boolean)],Zd.prototype,"hasClip",void 0);_.k([_.X(),_.t("design:type",Object)],Zd.prototype,"eventSink",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Zd.prototype,"queued",void 0);
_.k([_.X({value:!1}),_.t("design:type",Boolean)],Zd.prototype,"richGridThumbnail",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],Zd.prototype,"useExpandableTooltip",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],Zd.prototype,"useUntranslatedNavigationEndpoint",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Zd.prototype,"disableInteraction",void 0);
_.k([_.X({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.t("design:type",Object)],Zd.prototype,"computedNavigationEndpoint",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Zd.prototype,"nowPlayingEqualizerOnly",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],Zd.prototype,"hidePlaybackStatus",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],Zd.prototype,"objectFit",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Zd.prototype,"noRoundedCorners",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],Zd.prototype,"watchFeedThumbnail",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Zd.prototype,"isPreviewLoading",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.t("design:type",Object)],Zd.prototype,"isOriginalAspectRatio",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.t("design:type",Object)],Zd.prototype,"computedObjectFit",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.t("design:type",Boolean)],Zd.prototype,"isLiveVideo",void 0);
_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],Zd.prototype,"loaded",void 0);_.k([_.X({computed:"computeOverlayColor(data.thumbnail)"}),_.t("design:type",Object)],Zd.prototype,"overlayColor",void 0);_.k([_.X({selector:_.hki}),_.t("design:type",Boolean)],Zd.prototype,"inlinePreviewIsEnabled",void 0);_.k([_.X(),_.t("design:type",Number)],Zd.prototype,"width",void 0);
_.k([_.S("inlinePreviewIsEnabled"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Zd.prototype,"isPreviewDisabled",null);_.k([_.S("width"),_.t("design:type",String),_.t("design:paramtypes",[])],Zd.prototype,"thumbnailSize",null);_.k([_.RN("image-loaded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Zd.prototype,"onImageLoaded",null);
_.k([_.RN("image-unloaded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Zd.prototype,"onImageUnloaded",null);Zd=_.k([_.b({disableElementRegistration:!0,is:"ytd-thumbnail"})],Zd);
var AYD=_.VE()(Zd,"ytd-thumbnail",function(){if(uvZ===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);uvZ=E}E=uvZ;return E},{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 dYt=function(E){var B=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12667_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12667_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(I){joz(B,I)};
this.onLockupMouseLeaveFn=function(I){I=I.relatedTarget;var T,e;((T=document.getElementsByTagName("ytd-video-preview"))==null?0:(e=T.item(0))==null?0:e.contains(I))||(B.terminateVideoPreview(),P4(B))};
this.onThumbnailMouseDownFn=function(){B.terminateVideoPreview();P4(B)};
this.onTouchStart=function(){B.JSC$12667_touched=!0};
this.mediaRenderer=E.mediaRenderer;this.thumbnailElement=E.thumbnailElement;this.lockupElement=E.lockupElement;this.videoPreviewOptsInput=E.videoPreviewOpts;UjZ(this);zK(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)):
_.OG(Error("Ch")):_.OG(Error("Dh")):kdN(this)},BD=function(E){kdN(E);
var B;(B=E.lockupElement)==null||B.removeEventListener("mouseenter",E.onMouseMoveFn);var I;(I=E.lockupElement)==null||I.removeEventListener("mouseleave",E.onLockupMouseLeaveFn);var T;(T=E.lockupElement)==null||T.removeEventListener("touchstart",E.onTouchStart);var e;(e=E.thumbnailElement)==null||e.removeEventListener("mousedown",E.onThumbnailMouseDownFn);P4(E)},UjZ=function(E){E.inlinePreviewIsEnabledForUser=_.t2().getState().ui.inlinePreviewIsEnabled;
E.unsubscribeFromInlinePreviewIsEnabled=_.C_(_.t2(),_.hki,function(B){(E.inlinePreviewIsEnabledForUser=B)||P4(E)});
E.JSC$12667_unsubscribeFromInlinePreviewIsActive=_.C_(_.t2(),_.dTc,function(B){(E.inlinePreviewIsActive=B)||P4(E)})},kdN=function(E){E.unsubscribeFromInlinePreviewIsEnabled();
E.unsubscribeFromInlinePreviewIsEnabled=function(){};
E.JSC$12667_unsubscribeFromInlinePreviewIsActive();E.JSC$12667_unsubscribeFromInlinePreviewIsActive=function(){}},joz=function(E,B){B.buttons>0||(B=_.RI("kevlar_lockup_hover_delay",-1),E.JSC$12667_touched&&B>=0?(_.Ll.cancelJob(E.videoPreviewJobId),E.videoPreviewJobId=_.ta(_.Ll,function(){tQz(E)},B),E.JSC$12667_touched=!1):tQz(E))},fz$=function(E){E.videoPreviewJobId=_.ta(_.Ll,function(){var B,I,T,e;
return _.a(function(c){if(c.nextAddress==1){if(!zK(E))return c.return();B=E.getVideoPreviewOpts();if(!B)return c.return();B.isAutoplay=!0;return(T=(I=_.Ta(E.mediaRenderer.hostElement,"yt-open-video-preview-action",[B]))&&I[0])?_.C(c,I[0],3):c.jumpTo(2)}c.nextAddress!=2&&(T=c.yieldResult===1);T&&mYc((e=E.mediaRenderer)==null?void 0:e.data);_.ER(c)})})},tQz=function(E){!E.previewTriggered&&zK(E)&&(E.inlinePreviewIsActive&&E.terminateVideoPreview(),E.previewTriggered=!0,E.mediaRenderer.isInlinePreviewTriggered=
!0,_.Ll.cancelJob(E.videoPreviewJobId),E.videoPreviewJobId=_.ta(_.Ll,function(){var B,I,T,e;
return _.a(function(c){if(c.nextAddress==1){if(!zK(E))return c.return();B=E.getVideoPreviewOpts();return B?(T=(I=_.Ta(E.mediaRenderer.hostElement,"yt-open-video-preview-action",[B]))&&I[0])?_.C(c,I[0],3):c.jumpTo(2):c.return()}c.nextAddress!=2&&(T=c.yieldResult===1);T&&mYc((e=E.mediaRenderer)==null?void 0:e.data);_.ER(c)})}))};
dYt.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var E,B;if((B=(E=this.videoPreviewOptsInput)==null?void 0:E.videoPreviewData)!=null)E=B;else if(E=this.mediaRenderer.data)if(zwt(E))E={inlinePlaybackEndpoint:_.ha(E.inlinePlayerData.onVisible),navigationEndpoint:_.ha(E.onTap),thumbnail:"image"in E?E.image:E.thumbnail,thumbnailOverlays:void 0,accessibilityText:QVF(E)};else if("multipleInlinePlaybackEndpoint"in E){var I=_.h(_.h(E.multipleInlinePlaybackEndpoint,gT$),SkV);if(I!=
null&&I.playerDescriptors){B=[];I=_.p(I.playerDescriptors);for(var T=I.next();!T.done;T=I.next())T=T.value,B.push({inlinePlaybackEndpoint:T.inlinePlaybackEndpoint,navigationEndpoint:T.navigationEndpoint,thumbnail:T.thumbnail,thumbnailOverlays:T.thumbnailOverlays,accessibilityText:QVF(E)});E=B}else E=void 0}else E={inlinePlaybackEndpoint:E.inlinePlaybackEndpoint,navigationEndpoint:E.navigationEndpoint,thumbnail:E.thumbnail,thumbnailOverlays:E.thumbnailOverlays,accessibilityText:QVF(E)};else E=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:E,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var zK=function(E){var B;if(B=E.inlinePreviewIsEnabledForUser)B=(E=E.mediaRenderer.data)?"inlinePlaybackEndpoint"in E&&E.inlinePlaybackEndpoint||zwt(E)&&E.inlinePlayerData||"multipleInlinePlaybackEndpoint"in E&&E.multipleInlinePlaybackEndpoint?!0:!1:!1;return B};
dYt.prototype.terminateVideoPreview=function(){_.I2(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var P4=function(E){_.Ll.cancelJob(E.videoPreviewJobId);E.inlinePreviewIsActive=!1;E.previewTriggered=!1;E.mediaRenderer.isInlinePreviewTriggered=!1};var VQ6=_.km(["#"]),mj=function(){var E=_.r.apply(this,arguments)||this;E.isDisabled=!1;return E};
_.L(mj,_.r);_.l=mj.prototype;_.l.configureRendererStamper=function(){return{"data.menu":EC,"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"}}}};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.getMetadata=function(E){var B=[];if(E.metadataText&&Object.keys(E.metadataText).length>0){var I=this.ytRendererBehavior.getSimpleString(E.metadataText);E.upcomingEventData&&E.upcomingEventData.upcomingEventText&&(I=_.MH(I,Number(E.upcomingEventData.startTime)));B.push(I)}else E.shortViewCountText&&B.push(this.ytRendererBehavior.getSimpleString(E.shortViewCountText)),E.publishedTimeText&&B.push(this.ytRendererBehavior.getSimpleString(E.publishedTimeText)),E.upcomingEventData&&E.upcomingEventData.upcomingEventText&&
(I=this.ytRendererBehavior.getSimpleString(E.upcomingEventData.upcomingEventText),B.push(_.MH(I,Number(E.upcomingEventData.startTime))));return B};
_.l.calculateBylineText=function(E){return E.shortBylineText?E.shortBylineText:E.bylineText?E.bylineText:null};
_.l.calculateIsDisabled=function(E){return!!E.isDisabled};
_.l.computeHrefWithDefault=function(E){return this.ytComponentBehavior.computeHref_(E)||_.v1(VQ6)};
_.l.onDetailsTap=function(E){var B=this.data&&this.data.navigationEndpoint;B&&!_.XZ(_.W8(E)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.d("kevlar_grid_video_renderer_killswitch")?_.$O(this.hostElement,"yt-navigate",{endpoint:B}):this.ytComponentBehavior.resolveCommand(B))};
_.l.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12672_inlinePreviewHoverListener=UO({mediaRenderer:this,lockupElement:_.n(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.n(this.hostElement).querySelector("ytd-thumbnail")})};
_.l.clearInlinePreviewHoverListeners=function(){var E;(E=this.JSC$12672_inlinePreviewHoverListener)==null||BD(E)};
_.l.computeThumbnailWidth=function(E,B){return B&&B>0?B:E?360:210};
_.l.computeShowChannelThumbnail=function(E,B){var I;return B&&!!(E==null?0:(I=E.channelThumbnailSupportedRenderers)==null?0:I.channelThumbnailWithLinkRenderer)};
_.Up.Object.defineProperties(mj.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.JSC$12672_inlinePreviewHoverListener)==null?0:zK(E))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
mj.prototype.dataChanged=mj.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],mj.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],mj.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.g(_.S_),_.t("design:type",Object)],mj.prototype,"ytdLockupBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],mj.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],mj.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],mj.prototype,"noEndpoints",void 0);_.k([_.X({computed:"calculateBylineText(data)"}),_.t("design:type",Object)],mj.prototype,"bylineText",void 0);
_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],mj.prototype,"isSearch",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],mj.prototype,"isDownloading",void 0);_.k([_.X({reflectToAttribute:!0,value:0}),_.t("design:type",Number)],mj.prototype,"width",void 0);_.k([_.X({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.t("design:type",Object)],mj.prototype,"isDisabled",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],mj.prototype,"dataChanged",null);_.k([_.S("lockupIsHovered"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],mj.prototype,"isHovered",null);mj=_.k([_.b({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],mj);
_.A(mj,"ytd-grid-video-renderer",function(){if(vt$!==void 0)return vt$;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return vt$=E},{mode:_.qi("kevlar_poly_si_batch_j047")?1:2});var qwV;var Qf=function(){var E=_.r.apply(this,arguments)||this;E.roundedContainer=!0;E.skipRoundingTop=!1;E.disableTopPadding=!1;E.amsterdamEnabled=_.d("enable_desktop_amsterdam_info_panels");return E};
_.L(Qf,_.r);Qf.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Qf.prototype.onClick=function(E){var B,I=(B=this.data)==null?void 0:B.sourceEndpoint;!_.XZ(_.W8(E),this.hostElement,["A".toString()])&&I&&_.$O(this.hostElement,"yt-navigate",{endpoint:I})};
_.Up.Object.defineProperties(Qf.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 E;return!((E=this.data)==null||!E.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var E,B;return(B=(E=this.data)==null?void 0:E.paragraphMaxLines)!=null?B:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Qf.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Qf.prototype,"showVerticalDividers",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Qf.prototype,"roundedContainer",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Qf.prototype,"skipRoundingTop",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Qf.prototype,"disableTopPadding",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Qf.prototype,"amsterdamEnabled",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Qf.prototype,"showMetadataAtTop",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Qf.prototype,"showMetadataBelowTitle",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.menu"),_.t("design:type",Object),_.t("design:paramtypes",[])],Qf.prototype,"hasMenu",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.truncateParagraphs"),_.t("design:type",Object),_.t("design:paramtypes",[])],Qf.prototype,"truncateParagraphs",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data.paragraphMaxLines"),_.t("design:type",Number),_.t("design:paramtypes",[])],Qf.prototype,"paragraphMaxLines",null);_.k([_.X({type:_.d("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.background"),_.t("design:type",Object),_.t("design:paramtypes",[])],Qf.prototype,"background",null);Qf=_.k([_.b({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Qf);
_.A(Qf,"ytd-info-panel-content-renderer",function(){if(qwV!==void 0)return qwV;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return qwV=E},{mode:_.qi("kevlar_poly_si_batch_j076")?1:2});var FbU;var Djl;var KbZ;var RWr;var di=function(){return _.r.apply(this,arguments)||this};
_.L(di,_.r);di.prototype.computeStyle=function(E){return E};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],di.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.t("design:type",String)],di.prototype,"style_",void 0);di=_.k([_.QE({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],di);
_.A(di,"yt-channel-thumbnail-with-link-renderer",function(){if(RWr===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;KbZ===void 0&&(KbZ=document.createElement("template"));var T=KbZ;I.call(B,T.content.cloneNode(!0),E.content.firstChild);RWr=E}E=RWr;return E},{mode:2});var hF=function(){var E=_.r.apply(this,arguments)||this;E.modernTypography=_.d("web_modern_typography");return E};
_.L(hF,_.r);hF.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"}}}};
hF.prototype.computeTitleStyle=function(E){return E||null};
hF.prototype.computeAvatarStyle=function(E){return E||null};
hF.prototype.computeShowNavigationButton=function(E,B){return!(E==null||!E.navigationButton||B)};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],hF.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],hF.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.t("design:type",String)],hF.prototype,"titleStyle",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.t("design:type",String)],hF.prototype,"avatarStyle",void 0);_.k([_.X(),_.t("design:type",Boolean)],hF.prototype,"hideNavigationButton",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],hF.prototype,"isModernSd",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],hF.prototype,"modernTypography",void 0);
hF=_.k([_.b({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],hF);
_.A(hF,"ytd-rich-list-header-renderer",function(){if(Djl!==void 0)return Djl;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Djl=E},{mode:_.qi("kevlar_poly_si_batch_j058")?1:2});var sC=function(){return _.r.apply(this,arguments)||this};
_.L(sC,_.r);sC.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]]"}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],sC.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],sC.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],sC.prototype,"isSearch",void 0);sC=_.k([_.b({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],sC);
_.A(sC,"ytd-preview-card-renderer",function(){if(FbU!==void 0)return FbU;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return FbU=E},{mode:1});var Ezz;var ug=function(){return _.r.apply(this,arguments)||this};
_.L(ug,_.r);ug.prototype.configureRendererStamper=function(){return{"data.menu":EC}};
ug.prototype.dataChanged=function(){var E=this.get("colorExtractionPalette.section1Color",this.data);E=_.dE(E);_.Dk(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":E})};
ug.prototype.computeCardStyle=function(E){return this.get("style.value",E)||null};
ug.prototype.dataChanged=ug.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ug.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ug.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],ug.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ug.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.t("design:type",String)],ug.prototype,"cardStyle",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ug.prototype,"dataChanged",null);ug=_.k([_.b({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],ug);
_.A(ug,"ytd-compact-channel-recommendation-card-renderer",function(){if(Ezz!==void 0)return Ezz;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Ezz=E},{mode:1});var B2h;var $Yh;var LG=function(){var E=_.r.apply(this,arguments)||this;E.alignAuto=!1;E.collapsed=!0;E.isToggled=!1;E.alwaysCollapsed=!1;E.canToggle=!0;E.collapsedHeight=80;E.disableToggle=!1;E.alwaysToggleable=!1;E.reversed=!1;E.shouldUseNumberOfLines=!1;E.recomputeOnResize=!1;E.canToggleJobId=0;E.lastReversed=!1;return E};
_.L(LG,_.r);_.l=LG.prototype;_.l.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.l.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.l.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var E=_.n(this.hostElement),B=E.childNodes,I=document.createDocumentFragment(),T=E.childNodes.length-1;T>=0;T--)_.n(I).appendChild(B[T]);_.d("enable_shadydom_free_scoped_node_methods")?_.fq(this.hostElement).appendChild(I):E.appendChild(I)}};
_.l.ready=function(){var E=this;_.Gg(function(){E.initChildrenObserver()},1)};
_.l.detached=function(){this.detachObserver()};
_.l.toggle=function(E,B){this.canToggle&&(this.isToggled=B,_.$O(this.hostElement,"yt-refit"),E&&E.stopPropagation())};
_.l.reset=function(){this.childrenChanged()};
_.l.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.l.computeIsMoreVisible=function(E,B){return E&&!B};
_.l.computeShouldUseNumberOfLines=function(E){try{return!!E&&window.CSS.supports("-webkit-line-clamp","1")}catch(B){}return!1};
_.l.computeIsLessVisible=function(E,B){return E&&B};
_.l.observeCollapsedHeightAndMaxLines=function(){var E=this.collapsedHeight,B=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Dk(this.hostElement,{"--ytd-expander-max-lines":""+B,"--ytd-expander-collapsed-height":""}):_.Dk(this.hostElement,{"--ytd-expander-collapsed-height":E+"px","--ytd-expander-max-lines":""})};
_.l.handleMoreTap=function(E){this.disableToggle||(_.$O(this.hostElement,"yt-expander-more-tapped"),this.toggle(E,!0))};
_.l.handleLessTap=function(E){_.$O(this.hostElement,"yt-expander-less-tapped");this.toggle(E,!1)};
_.l.initChildrenObserver=function(){var E=this;this.observer=new MutationObserver(function(){E.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.l.childrenChanged=function(){var E=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){kg(function(){E.canToggleJobId=0;E.calculateCanCollapse()})}))};
_.l.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};
_.l.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.l.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("collapsed-changed",this.collapsed))};
_.l.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("is-toggled-changed",this.isToggled))};
_.l.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("can-toggle-changed",this.canToggle))};
_.Up.Object.defineProperties(LG.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
LG.prototype.canToggleChangedForBinding=LG.prototype.canToggleChangedForBinding;LG.prototype.isToggledChangedForBinding=LG.prototype.isToggledChangedForBinding;LG.prototype.collapsedChangedForBinding=LG.prototype.collapsedChangedForBinding;LG.prototype.observeCollapsedHeightAndMaxLines=LG.prototype.observeCollapsedHeightAndMaxLines;LG.prototype.onIronResize=LG.prototype.onIronResize;LG.prototype.reversedChanged=LG.prototype.reversedChanged;LG.prototype.toggledChanged=LG.prototype.toggledChanged;
LG.prototype.alwaysToggleableChanged=LG.prototype.alwaysToggleableChanged;_.k([_.g(_.OI),_.t("design:type",Object)],LG.prototype,"ironResizableBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LG.prototype,"alignAuto",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LG.prototype,"collapsed",void 0);_.k([_.X(),_.t("design:type",Object)],LG.prototype,"isToggled",void 0);_.k([_.X(),_.t("design:type",Object)],LG.prototype,"alwaysCollapsed",void 0);
_.k([_.X(),_.t("design:type",Object)],LG.prototype,"canToggle",void 0);_.k([_.X(),_.t("design:type",Object)],LG.prototype,"collapsedHeight",void 0);_.k([_.X(),_.t("design:type",Object)],LG.prototype,"disableToggle",void 0);_.k([_.X(),_.t("design:type",Object)],LG.prototype,"alwaysToggleable",void 0);_.k([_.X(),_.t("design:type",Object)],LG.prototype,"reversed",void 0);_.k([_.X(),_.t("design:type",Number)],LG.prototype,"maxNumberOfLines",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.t("design:type",Object)],LG.prototype,"shouldUseNumberOfLines",void 0);_.k([_.X(),_.t("design:type",Object)],LG.prototype,"recomputeOnResize",void 0);_.k([_.$7("#content"),_.t("design:type",HTMLDivElement)],LG.prototype,"content",void 0);_.k([_.i6("alwaysToggleable"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LG.prototype,"alwaysToggleableChanged",null);
_.k([_.i6("isToggled"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LG.prototype,"toggledChanged",null);_.k([_.S("canToggleJobId"),_.t("design:type",Object),_.t("design:paramtypes",[])],LG.prototype,"isResetting",null);_.k([_.EM("reversed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LG.prototype,"reversedChanged",null);
_.k([_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LG.prototype,"onIronResize",null);_.k([_.EM("maxNumberOfLines","collapsedHeight"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LG.prototype,"observeCollapsedHeightAndMaxLines",null);_.k([_.EM("collapsed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LG.prototype,"collapsedChangedForBinding",null);
_.k([_.EM("isToggled"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LG.prototype,"isToggledChangedForBinding",null);_.k([_.EM("canToggle"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LG.prototype,"canToggleChangedForBinding",null);LG=_.k([_.b({disableElementRegistration:!0,is:"ytd-expander"})],LG);
_.A(LG,"ytd-expander",function(){if($Yh!==void 0)return $Yh;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return $Yh=E},{mode:1});var xk=function(){return _.r.apply(this,arguments)||this};
_.L(xk,_.r);xk.prototype.computeIsCarousel=function(E){return!!E.isCarousel};
xk.prototype.observeLightsourcePalette=function(){var E,B=(E=this.data)==null?void 0:E.vibrantsourceColorPaletteData;B&&_.zI(this.hostElement,B)};
xk.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
xk.prototype.observeLightsourcePalette=xk.prototype.observeLightsourcePalette;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],xk.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],xk.prototype,"data",void 0);_.k([_.X({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],xk.prototype,"isCarousel",void 0);
_.k([_.EM("data.vibrantsourceColorPaletteData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],xk.prototype,"observeLightsourcePalette",null);xk=_.k([_.b({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],xk);
_.A(xk,"ytd-media-upsell-renderer",function(){if(B2h!==void 0)return B2h;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return B2h=E},{mode:2});var IyZ;var GK=function(){var E=_.r.apply(this,arguments)||this;E.JSC$12700_playerEvents=new Map;E.listeningToPlayer=!1;E.startX=0;E.active=!1;E.shouldShowButtons=_.d("web_buttons_hidden_killswitch");E.isHighlighted=!1;E.useHighlightStyling=_.d("web_enable_deeper_metadata_highlight_styling");E.modern=_.d("kevlar_modern_sd");E.enableProblemWalkthrough=_.d("problem_walkthrough_sd");return E};
_.L(GK,_.r);_.l=GK.prototype;
_.l.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}}}}}};
_.l.created=function(){this.JSC$12700_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.l.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Kq(this,this.onRepeatButtonToggle));_.d("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Kq(this,this.onActiveUpdate))};
_.l.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Kq(this,this.onRepeatButtonToggle));_.d("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Kq(this,this.onActiveUpdate))};
_.l.onDataChanged=function(){this.removePlayerListeners()};
_.l.onColorPaletteChange=function(){var E={},B;if(_.Oq()==="USER_INTERFACE_THEME_DARK"&&((B=this.data)==null?0:B.darkColorPalette)){var I=this.data.darkColorPalette;E["--ytd-macro-markers-list-item-background-color"]=_.hR(this.get("section2Color",I))}else{var T;_.Oq()==="USER_INTERFACE_THEME_LIGHT"&&((T=this.data)==null?0:T.lightColorPalette)&&(I=this.data.lightColorPalette,E["--ytd-macro-markers-list-item-background-color"]=_.hR(this.get("section3Color",I)))}I?(E["--ytd-macro-markers-list-item-title-color"]=
_.hR(this.get("primaryTitleColor",I)),E["--ytd-macro-markers-list-item-secondary-color"]=_.hR(this.get("secondaryTitleColor",I)),E["--ytd-macro-markers-list-item-timestamp-background-color"]=_.hR(this.get("section1Color",I)),this.customButtonProperties={customColors:{color:_.hR(this.get("primaryTitleColor",I))}},this.useColorSampling=!0):(E["--ytd-macro-markers-list-item-background-color"]="initial",E["--ytd-macro-markers-list-item-title-color"]="initial",E["--ytd-macro-markers-list-item-secondary-color"]=
"initial",E["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Dk(this.hostElement,E)};
_.l.onEndpointMouseDown=function(E){this.startX=E.clientX};
_.l.onEndpointClick=function(E){var B=this,I,T,e;return _.a(function(c){if(c.nextAddress==1){if(B.startX!==E.clientX)return E.preventDefault(),c.return();B.data&&B.ytRendererBehavior.logExplicitClick(B.data);if(!B.seekWithAnimationOnClick)return c.jumpTo(0);if(E.button!==0||E.shiftKey||E.altKey||E.metaKey||E.ctrlKey||_.XZ(_.W8(E),B.hostElement,["BUTTON".toString()]))return c.return();E.stopPropagation();E.preventDefault();return B.data?_.C(c,_.k3().getPlayerPromise(),3):c.return()}I=c.yieldResult;
e=(T=_.h(B.data.onTap,_.kh))==null?void 0:T.startTimeSeconds;e!==void 0&&I.seekToTimeWithAnimation(e*1E3,_.U3(B.data.title));_.ER(c)})};
_.l.computeLayout=function(E){return E};
_.l.computeIsHighlighted=function(E){return!!E};
_.l.computeCarouselType=function(E){return E};
_.l.hideModernCarousel=function(E){return this.modern&&this.hideThumbnail(E)};
_.l.hideThumbnail=function(E){return this.enableProblemWalkthrough&&E!==null&&E==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.l.onRepeatButtonToggle=function(E){var B=this;E.detail.toggled&&_.k3().getPlayerPromise().then(function(I){B.ytPlayerListenerBehavior.listenToPlayerEvents(I,B.JSC$12700_playerEvents);B.listeningToPlayer=!0})};
_.l.onLoopRangeChange=function(E){var B=_.n(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(B){var I=B.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",B.polymerController.data);if(I){var T=Number(I.endTimeMs);if(Number(I.startTimeMs)!==(E==null?void 0:E.startTimeMs)||T!==(E==null?void 0:E.endTimeMs))B.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.l.removePlayerListeners=function(){var E=this;this.listeningToPlayer&&_.k3().getPlayerPromise().then(function(B){E.ytPlayerListenerBehavior.unlistenFromPlayerEvents(B,E.JSC$12700_playerEvents);E.listeningToPlayer=!1})};
_.l.onActiveUpdate=function(E){this.active=E.detail.active};
GK.prototype.onColorPaletteChange=GK.prototype.onColorPaletteChange;GK.prototype.onDataChanged=GK.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",_.XK)],GK.prototype,"ytPlayerListenerBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],GK.prototype,"data",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],GK.prototype,"useCustomColors",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],GK.prototype,"active",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],GK.prototype,"shouldShowButtons",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.t("design:type",String)],GK.prototype,"layout",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.t("design:type",Object)],GK.prototype,"isHighlighted",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],GK.prototype,"useHighlightStyling",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],GK.prototype,"modern",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],GK.prototype,"enableProblemWalkthrough",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.t("design:type",String)],GK.prototype,"carouselType",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],GK.prototype,"useColorSampling",void 0);_.k([_.X(),_.t("design:type",Boolean)],GK.prototype,"seekWithAnimationOnClick",void 0);_.k([_.X(),_.t("design:type",Object)],GK.prototype,"customButtonProperties",void 0);
_.k([_.$7("#repeat-button"),_.t("design:type",HTMLElement)],GK.prototype,"repeatButton",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],GK.prototype,"onDataChanged",null);_.k([_.EM("data.lightColorPalette","data.darkColorPalette"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],GK.prototype,"onColorPaletteChange",null);
GK=_.k([_.b({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],GK);
_.A(GK,"ytd-macro-markers-list-item-renderer",function(){if(IyZ!==void 0)return IyZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return IyZ=E},{mode:1});var T2r;var ewV;var OC=function(){var E=_.r.apply(this,arguments)||this;E.modernTypography=_.d("web_modern_typography");return E};
_.L(OC,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],OC.prototype,"modernTypography",void 0);_.k([_.X(),_.t("design:type",Object)],OC.prototype,"data",void 0);OC=_.k([_.b({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],OC);
_.A(OC,"ytd-title-and-button-list-header-renderer",function(){if(ewV!==void 0)return ewV;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ewV=E},{mode:1});var lyl;var c9Z=new _.Dr("BUTTON_RENDERER_WIZ_TOKEN"),ih$=new _.Dr("BUTTON_RENDERER_TOKEN");_.nG=_.rp(function(E){var B=_.Q().resolve(_.Fx(c9Z));if(B)return _.w(B,Object.assign({},E));var I=_.Q().resolve(ih$);return I?_.w(Zp4,null,function(){return _.w(js,null,function(){var T,e,c,Y,v,y,Z,P,z,m,u,x;return void I(E.data(),{onButtonClickCallback:E.onButtonClickCallback,shouldShowIcons:(T=E.shouldShowIcons)==null?void 0:T.call(E),icon:(e=E.icon)==null?void 0:e.call(E),processAllEndpoints:(c=E.processAllEndpoints)==null?void 0:c.call(E),preventDefault:(Y=E.preventDefault)==null?void 0:Y.call(E),
stopPropagation:(v=E.stopPropagation)==null?void 0:v.call(E),disableButtonRendererClickHandling:(y=E.disableButtonRendererClickHandling)==null?void 0:y.call(E),className:(Z=E.className)==null?void 0:Z.call(E),buttonOverrides:(P=E.buttonOverrides)==null?void 0:P.call(E),forceModernIconButton:(z=E.forceModernIconButton)==null?void 0:z.call(E),isSubscribe:(m=E.isSubscribe)==null?void 0:m.call(E),alignByText:(u=E.alignByText)==null?void 0:u.call(E),forceDisabled:(x=E.forceDisabled)==null?void 0:x.call(E)})})}):
_.w(_.VS,null)},"X");
_.nG.idomCompat=!0;var pvt=_.rp(function(E){var B=E.notification,I=_.Wl(E.useSquareAspectRatio,!1);return _.w(_.wU,{cond:function(){var T,e;return(T=B().responseText)==null?void 0:(e=T.runs)==null?void 0:e.length},
then:function(){var T={};return _.w("div",{class:_.RQ("yt-mini-game-card-view-model__dismissed-card",(T["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!I()},T["yt-mini-game-card-view-model--dismissed-square-card"]=I,T))},_.w("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.w(_.wU,{cond:function(){return B().responseText.runs[0].text},
then:function(e){return _.w("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:e},e)}}),_.w(_.hM,{data:function(){return B().buttons}},{buttonRenderer:_.nG,
buttonViewModel:_.ne})))}})},"Y");var wvu=_.rp(function(E){E=_.XS(E,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var B=E.data,I=E.useFullWidth,T=E.isDesktopWeb,e=E.addSearchResultTopMargin,c=function(){return B().layout},Y=function(){return B().title},v=function(){return B().genre},y=function(){return B().channelName},Z=function(){return B().image},P=function(){return B().colorPalette},z=function(){return B().actionButton},m=function(){return B().overflowButton},u=function(){return B().avatar},
x=function(){var U={};
U=_.RQ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(U["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return T()},U));
return _.w("div",{class:U},_.w(Ym$,{imageData:Z,colorPalette:P}),_.w(ay6,{onTap:function(){return B().onTap},
imageData:Z,accessibilityText:function(){return B().accessibilityText},
overlayBadgeText:function(){return B().overlayBadgeText},
iconName:function(){return B().iconName},
unplayableInlinePlaybackIconName:function(){return B().unplayableInlinePlaybackIconName},
isDesktopWeb:T}),_.w(_.wU,{cond:function(){return!T()},
then:function(){return _.w(_.VS,null,_.w(vzD,{layout:c,colorPalette:P,isDesktopWeb:T,overflowButton:m,avatar:u,onTap:function(){return B().onTap},
genre:v,title:Y,channelName:y,entityRedesignExperiments:function(){return B().entityRedesignExperiments}}),_.w(Mc,{actionButton:z}))}}))},M=function(){var U={};
U=_.RQ((U["yt-mini-game-card-view-model--search-result-desktop"]=function(){return T()},U["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!T()},U["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return e()},U));
return _.w("div",{class:U},x(),_.w(y9V,{description:function(){return B().description},
isDesktopWeb:T,title:Y,genre:v,onTap:function(){return B().onTap},
actionButton:z,overflowButton:m,avatar:u,channelName:y}))},N=function(){var U=function(){var f;
return(f=B().entityRedesignExperiments)==null?void 0:f.changePlayablesLayoutWithCta},q={};
q=_.RQ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(q["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return U()},q["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return T()},q["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return T()&&B().width===135},q["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return T()},q["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!U()&&T()&&B().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},q["yt-mini-game-card-view-model--big-metadata-font"]=function(){return B().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},q["yt-mini-game-card-view-model--use-full-width"]=function(){return I()},q["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!z()},q));
return _.w("div",{class:q},_.w(_.wU,{cond:function(){return U()},
then:function(){return _.w(_.VS,null,_.w(Cdh,{entityRedesignExperiments:function(){return B().entityRedesignExperiments},
colorPalette:P,isDesktopWeb:T,onTap:function(){return B().onTap},
accessibilityText:function(){return B().accessibilityText},
overlayBadgeText:function(){return B().overlayBadgeText},
iconName:function(){return B().iconName},
unplayableInlinePlaybackIconName:function(){return B().unplayableInlinePlaybackIconName},
actionButton:z,imageData:Z}),_.w(vzD,{layout:c,colorPalette:P,isDesktopWeb:T,overflowButton:m,avatar:u,onTap:function(){return B().onTap},
genre:v,title:Y,channelName:y,entityRedesignExperiments:function(){return B().entityRedesignExperiments}}),_.w(_.wU,{cond:function(){return!!U()===!1&&z()},
then:function(){return _.w(Mc,{actionButton:z})}}))},
else:function(){return _.w(_.VS,null,_.w(Ym$,{imageData:Z,colorPalette:P}),_.w(ay6,{onTap:function(){return B().onTap},
imageData:Z,accessibilityText:function(){return B().accessibilityText},
overlayBadgeText:function(){return B().overlayBadgeText},
iconName:function(){return B().iconName},
unplayableInlinePlaybackIconName:function(){return B().unplayableInlinePlaybackIconName},
isDesktopWeb:T}),_.w(vzD,{layout:c,colorPalette:P,isDesktopWeb:T,overflowButton:m,avatar:u,onTap:function(){return B().onTap},
genre:v,title:Y,channelName:y,entityRedesignExperiments:function(){return B().entityRedesignExperiments}}),_.w(Mc,{actionButton:z}))}}))},W=function(){var U={};
U=_.RQ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(U["yt-mini-game-card-view-model--square-card-desktop"]=function(){return T()},U["yt-mini-game-card-view-model--use-full-width"]=function(){return I()},U));
return _.w("div",{class:U},_.w(ay6,{onTap:function(){return B().onTap},
imageData:Z,accessibilityText:function(){return B().accessibilityText},
overlayBadgeText:function(){return B().overlayBadgeText},
iconName:function(){return B().iconName},
unplayableInlinePlaybackIconName:function(){return B().unplayableInlinePlaybackIconName},
isDesktopWeb:T}),_.w(vzD,{layout:c,colorPalette:P,isDesktopWeb:T,overflowButton:m,avatar:u,onTap:function(){return B().onTap},
genre:v,title:Y,channelName:y,entityRedesignExperiments:function(){return B().entityRedesignExperiments}}))};
return _.w("mini-game-card-view-model",{class:E.className},_.w(_.m4,null,_.w(_.PA,{when:function(){return c()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return N()}),_.w(_.PA,{when:function(){return c()==="MINI_APP_LAYOUT_SQUARE"}},function(){return W()}),_.w(_.PA,{when:function(){return c()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return M()})))},"Z");
wvu.idomCompat=!0;var Mc=_.rp(function(E){var B=_.Wl(E.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.w(_.hM,{data:E.actionButton},{buttonViewModel:function(I){return _.w("div",{class:B},_.w(_.ne,{data:I.data}))}})},"$"),ay6=_.rp(function(E){var B=E.onTap;
var I=E.imageData;var T=E.accessibilityText;var e=E.overlayBadgeText;var c=E.iconName;var Y=E.unplayableInlinePlaybackIconName;E=E.isDesktopWeb;return _.w(_.Y3,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:B},_.w(_.Ja,{data:I,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(T==null?void 0:T())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.w(ZhV,{overlayBadgeText:e,iconName:c,unplayableInlinePlaybackIconName:Y,isDesktopWeb:E}))},"aa"),ZhV=_.rp(function(E){var B=E.overlayBadgeText;
var I=E.iconName;var T=E.unplayableInlinePlaybackIconName;var e=E.isDesktopWeb;return _.w("div",{class:"yt-mini-game-card-view-model__badge-container"},_.w(_.wU,{cond:I,then:function(c){return _.w("div",{class:"yt-mini-game-card-view-model__badge"},_.w("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.w(_.i0,{icon:c,className:"yt-mini-game-card-view-model__icon"}),_.w("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},B)))}}),_.w(_.wU,{cond:function(){return!I()&&
B()},
then:function(){return _.w("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},B)}}),_.w(_.wU,{cond:function(){return T()&&e()},
then:function(){return _.w("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.w(_.i0,{icon:T,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ba"),Ym$=_.rp(function(E){var B=E.colorPalette;
var I=E.imageData;var T=function(){return B().vibrantColorPalette?B().vibrantColorPalette.section2Color:B().sectionTwoColor};
return _.w(_.VS,null,_.w("div",{class:"yt-mini-game-card-view-model__background-base",style:_.c$({"background-color":function(){return sq(T(),"1")}})}),_.w("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.c$({"background-image":function(){return"url("+I().sources[0].url+")"}})}),_.w("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.c$({background:function(){return"linear-gradient(180deg,\n    "+sq(T(),".8")+" 0%,\n    "+sq(T(),".4")+" 25%,\n    "+sq(B().vibrantColorPalette?B().vibrantColorPalette.section4Color:B().sectionFourColor,".8")+" 100%)"}})}))},"ca"),vzD=_.rp(function(E){var B=E.layout;
var I=E.colorPalette;var T=E.overflowButton;var e=E.avatar;var c=E.onTap;var Y=E.title;var v=E.channelName;var y=E.entityRedesignExperiments;var Z=E.genre;var P=function(){var m;return B()!=="MINI_APP_LAYOUT_SQUARE"&&((m=I())==null?0:m.textPrimaryColor)?"color: "+sq(I().textPrimaryColor,".7"):""},z=function(){var m;
return y==null?void 0:(m=y())==null?void 0:m.changePlayablesLayoutWithCta};
return _.w("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.w(_.wU,{cond:e,then:function(){return _.w("div",{class:"yt-mini-game-card-view-model__avatar"},_.w(_.hM,{data:e},{avatarViewModel:_.yf}))}}),_.w(_.Y3,{command:c,
className:"yt-mini-game-card-view-model__metadata-details"},_.w("h3",{class:"yt-mini-game-card-view-model__title",title:Y},Y),_.w(_.wU,{cond:e,then:function(){return _.w("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.w("span",{class:"yt-mini-game-card-view-model__genre",title:v,style:P},v),_.w("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:P},Z))},
else:function(){return _.w(_.wU,{cond:z,then:function(){return _.w("span",{class:"yt-mini-game-card-view-model__genre",title:Z},Z)},
else:function(){return _.w("span",{class:"yt-mini-game-card-view-model__genre",title:Z,style:P},Z)}})}})),_.w("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.w(_.hM,{data:T},{buttonViewModel:function(m){var u=m.data;
return _.w(_.ne,{data:function(){return Object.assign({},u(),{customFontColor:z()?void 0:u().customFontColor})}})}})))},"da"),Cdh=_.rp(function(E){var B=E.entityRedesignExperiments;
var I=E.colorPalette;var T=E.isDesktopWeb;var e=E.onTap;var c=E.accessibilityText;var Y=E.overlayBadgeText;var v=E.iconName;var y=E.unplayableInlinePlaybackIconName;var Z=E.actionButton;E=E.imageData;var P=function(){var z;return B==null?void 0:(z=B())==null?void 0:z.changePlayablesLayoutWithCta};
return _.w("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.w(Ym$,{imageData:E,colorPalette:I}),_.w(ay6,{onTap:e,imageData:E,accessibilityText:c,overlayBadgeText:Y,iconName:v,unplayableInlinePlaybackIconName:y,isDesktopWeb:T}),_.w(_.wU,{cond:function(){return(P==null?void 0:P())&&(Z==null?void 0:Z())},
then:function(){return _.w(Mc,{actionButton:Z})}}))},"ea"),y9V=_.rp(function(E){var B=E.description;
var I=E.isDesktopWeb;var T=E.title;var e=E.genre;var c=E.onTap;var Y=E.actionButton;var v=E.overflowButton;var y=E.avatar;E=E.channelName;var Z={};Z=_.RQ("yt-mini-game-card-view-model--search-result-metadata-wrapper",(Z["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=I,Z["yt-mini-game-card-view-model--show-unplayable-on-hover"]=I,Z["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!I()},Z));
var P={};P=_.RQ("yt-mini-game-card-view-model__search-result-info-row",(P["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!I()},P));
return _.w("div",{class:Z},_.w("div",{class:P},_.w(_.Y3,{command:c,className:"yt-mini-game-card-view-model__metadata-details"},_.w("h3",{class:"yt-mini-game-card-view-model__title",title:T},T),_.w("span",{class:"yt-mini-game-card-view-model__genre",title:e},e)),_.w(Mc,{actionButton:Y,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.w("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.w(_.hM,{data:v},{buttonViewModel:_.ne}))),_.w("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.w("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.w("div",{class:"yt-mini-game-card-view-model__avatar"},_.w(_.hM,{data:y},{avatarViewModel:function(z){var m=z.data;return _.w(_.yf,{data:function(){return Object.assign({},m(),{avatarImageSize:I()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.w(_.Y3,{command:c,
className:"yt-mini-game-card-view-model__description"},_.w("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},E)),_.w(_.Y3,{command:c,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.w("div",null)))),_.w(_.wU,{cond:I,then:function(){return _.w(_.Y3,{command:c,className:"yt-mini-game-card-view-model__description"},B)}}))},"fa");var Pd6={isAdsVideo:!0},zwZ={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},mYZ={showPlayerControls:!1,videoPreviewDurationMs:15E3},PrD={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.d("web_shorts_imp_fullwidth_killswitch")},QVu={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var H4=function(){var E=_.r.apply(this,arguments)||this;E.isSearch=!1;E.isRichGrid=!1;return E};
_.L(H4,_.r);_.l=H4.prototype;_.l.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.l.dismissibleItemOnYtServiceRequestSent=function(E,B){B.actions&&this.dismissibleItemProcessActions(E,B.actions)};
_.l.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.l.dismissibleItemProcessActions=function(E,B){for(var I=0;I<B.length;I++){var T=B[I];_.h(T,_.mJ)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.h(T,_.mJ)),E.stopPropagation())}};
_.l.dismissibleItemHandleReplaceEnclosingAction=function(E){this.dismissedRenderer=E.item;this.isDismissed=!0};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12732_inlinePreviewHoverListener=UO({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:QVu}))};
_.l.clearInlinePreviewHoverListeners=function(){var E;(E=this.JSC$12732_inlinePreviewHoverListener)==null||BD(E)};
_.l.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.l.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var E=this.data.layout==="MINI_APP_LAYOUT_SQUARE";gX(pvt)({notification:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:E===void 0?!1:E})}else gX(wvu)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
H4.prototype.experimentalPropertiesChanged=H4.prototype.experimentalPropertiesChanged;H4.prototype.dataChanged=H4.prototype.dataChanged;H4.prototype.dismissibleItemOnRequestSent=H4.prototype.dismissibleItemOnRequestSent;H4.prototype.dismissibleItemOnYtServiceRequestSent=H4.prototype.dismissibleItemOnYtServiceRequestSent;_.k([_.g(jfZ),_.t("design:type",Object)],H4.prototype,"ytIdomTemplatingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],H4.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],H4.prototype,"isSearch",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],H4.prototype,"isDismissed",void 0);_.k([_.X(),_.t("design:type",Object)],H4.prototype,"dismissedRenderer",void 0);_.k([_.$7(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.t("design:type",HTMLElement)],H4.prototype,"thumbnailWrapper",void 0);
_.k([_.$7("mini-game-card-view-model"),_.t("design:type",HTMLElement)],H4.prototype,"miniGameCardViewModel",void 0);_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],H4.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.k([_.RN("yt-service-request-sent-button-renderer"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],H4.prototype,"dismissibleItemOnRequestSent",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],H4.prototype,"dataChanged",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],H4.prototype,"isRichGrid",void 0);_.k([_.EM("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],H4.prototype,"experimentalPropertiesChanged",null);
H4=_.k([_.QE({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],H4);
_.A(H4,"ytd-mini-game-card-view-model",function(){if(lyl!==void 0)return lyl;var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return lyl=E},{mode:_.qi("kevlar_poly_si_batch_j081")?1:2});var dYZ;var hwZ;var Nc=function(){return _.kq.apply(this,arguments)||this};
_.L(Nc,_.kq);Nc.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
Nc.prototype.getContinuationUrl=function(E){var B={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(B.itct=this.data.clickTrackingParams);return _.Ur(E,B)};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Nc.prototype,"data",void 0);Nc=_.k([_.QE({is:"yt-reload-continuation",noInjection:!0})],Nc);var sV6;var uwZ;var gi=function(){var E=_.r.apply(this,arguments)||this;E.notificationData={};return E};
_.L(gi,_.r);_.l=gi.prototype;_.l.isMenuExpanded=function(E){return E&&E.length<=1?"undefined":"false"};
_.l.dataChanged_=function(){this.selected=void 0;var E=this.computeSelectedIndex_(this.data);E>=0&&(this.selected=E);E=this.data&&this.data.length>1;_.VQ(this.hostElement,"has-items",E);_.n(this.hostElement).querySelector("#label").tabIndex=E?0:-1};
_.l.onDropdownOpen=function(){var E=_.nC();if(this.parentTrackingParams&&this.data){var B=_.Yg(this.parentTrackingParams);this.data.forEach(function(I){E&&B&&I.trackingParams&&(I=_.Yg(I.trackingParams),_.XD(E,B,I),_.b1(E,[I]))})}else this.parentTrackingParams||_.OG(new _.P7("No parent tracking params passed in for yt-dropdown-menu."))};
_.l.hasNotification=function(E){var B;if(E.targetId&&((B=this.notificationData)==null?0:B.targetId)){var I;return E.targetId===((I=this.notificationData)==null?void 0:I.targetId)}};
_.l.computeSelectedIndex_=function(E){if(E)for(var B=0,I=E.length;B<I;B++)if(E[B].selected)return B;return-1};
_.l.computeLabel_=function(E){return this.data&&E!=void 0?this.data[E].title:""};
_.l.computeShowIcon_=function(E,B){return!B&&!!E};
_.l.computeVerticalOffset_=function(E){return E?36:0};
_.l.computeEndpoint_=function(E){return E.endpoint||E.navigationEndpoint};
_.l.onLabelClick_=function(E){this.data&&this.data.length<=1?E.stopPropagation():this.menuExpanded="true"};
_.l.onIronActivate_=function(E){E=E.detail.item;var B=_.n(this.hostElement).querySelector("#repeat").itemForElement(E);if(B&&B.trackingParams){var I=_.nC(),T=_.Yg(B.trackingParams);I&&_.Al(I,T)}if(B&&B.serviceEndpoint)_.d("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(B.serviceEndpoint):_.l1(this.hostElement,[B.serviceEndpoint]),_.$O(this.hostElement,"yt-playlist-reloading");else a:{if((B=E.querySelector("yt-supported-renderers"))&&(B=
B.rendererElement)&&B.is=="yt-reload-continuation"){B.trigger();break a}(E=E.querySelector("yt-reload-continuation"))&&E.trigger()}};
_.l.onTap_=function(E){E.preventDefault()};
_.l.onItemTap_=function(E){this.ytEndpointBehavior.onEndpointTap_(E)};
_.l.onLinkFocus_=function(E){try{var B=E.target}catch(T){}if(B){var I=B.querySelector("tp-yt-paper-item");I&&_.OM(this,"focus",function(){I.focus()})}};
_.l.onMenuClose_=function(){this.menuExpanded="false"};
_.l.isLabelIconActive_=function(E){return E==="true"};
_.l.computeHasSubtitle_=function(E){return!!E};
_.l.computeHrefForItem_=function(E){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(E))};
_.l.updateSelectedFromBinding=function(E){this.selected=E.detail.value};
gi.prototype.onMenuClose_=gi.prototype.onMenuClose_;gi.prototype.onTap_=gi.prototype.onTap_;gi.prototype.onIronActivate_=gi.prototype.onIronActivate_;gi.prototype.onDropdownOpen=gi.prototype.onDropdownOpen;gi.prototype.dataChanged_=gi.prototype.dataChanged_;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],gi.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.BF.YtEndpointBehavior),_.t("design:type",Object)],gi.prototype,"ytEndpointBehavior",void 0);
_.k([_.X(),_.t("design:type",Array)],gi.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],gi.prototype,"parentTrackingParams",void 0);_.k([_.X(),_.t("design:type",Object)],gi.prototype,"selected",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],gi.prototype,"useLabel",void 0);_.k([_.X(),_.t("design:type",String)],gi.prototype,"icon",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],gi.prototype,"iconLabel",void 0);
_.k([_.X(),_.t("design:type",String)],gi.prototype,"ariaLabel",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],gi.prototype,"disabled",void 0);_.k([_.X({computed:"isMenuExpanded(data)"}),_.t("design:type",String)],gi.prototype,"menuExpanded",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],gi.prototype,"closeOnActivate",void 0);_.k([_.X({reflectToAttribute:!0,value:_.d("web_modern_buttons")}),_.t("design:type",Boolean)],gi.prototype,"modernButtons",void 0);
_.k([_.X(),_.t("design:type",Object)],gi.prototype,"notificationData",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gi.prototype,"dataChanged_",null);_.k([_.RN("paper-dropdown-open"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],gi.prototype,"onDropdownOpen",null);
_.k([_.RN("iron-activate"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],gi.prototype,"onIronActivate_",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],gi.prototype,"onTap_",null);_.k([_.RN("iron-overlay-closed"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],gi.prototype,"onMenuClose_",null);
gi=_.k([_.QE({is:"yt-dropdown-menu",disableElementRegistration:!0})],gi);
_.A(gi,"yt-dropdown-menu",function(){if(uwZ===void 0){var E=document.createElement("template");_.G(E,'\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$="[[ariaLabel]]" 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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;sV6===void 0&&(sV6=document.createElement("template"));var T=sV6;I.call(B,T.content.cloneNode(!0),E.content.firstChild);uwZ=E}E=uwZ;return E},{mode:2});var SS=function(){var E=_.r.apply(this,arguments)||this;E.hasNotification=!1;return E};
_.L(SS,_.r);SS.prototype.computeId=function(E){return E};
SS.prototype.computeHorizontalAlign=function(E){return E?"right":"left"};
SS.prototype.computeAccessibilityLabel=function(E){var B,I;return((B=E.accessibility)==null?void 0:(I=B.accessibilityData)==null?void 0:I.label)||null};
SS.prototype.notificationDataChanged=function(){var E;this.hasNotification=!!this.notificationData&&!((E=this.data)==null?0:E.icon)};
SS.prototype.notificationDataChanged=SS.prototype.notificationDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.xC.YtLiveChatTooltipTargetingBehavior),_.t("design:type",Object)],SS.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],SS.prototype,"data",void 0);_.k([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.t("design:type",String)],SS.prototype,"id",void 0);
_.k([_.X({value:!1}),_.t("design:type",Boolean)],SS.prototype,"isRightAligned",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],SS.prototype,"disabled",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],SS.prototype,"closeOnActivate",void 0);_.k([_.X(),_.t("design:type",Object)],SS.prototype,"notificationData",void 0);_.k([_.X(),_.t("design:type",Object)],SS.prototype,"hasNotification",void 0);
_.k([_.EM("notificationData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],SS.prototype,"notificationDataChanged",null);SS=_.k([_.QE({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],SS);
_.A(SS,"yt-sort-filter-sub-menu-renderer",function(){if(hwZ===void 0){var E=document.createElement("template");_.G(E,'\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-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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;dYZ===void 0&&(dYZ=document.createElement("template"));var T=dYZ;I.call(B,T.content.cloneNode(!0),E.content.firstChild);hwZ=E}E=hwZ;return E},{mode:2});_.qW(sVG);
var LoR=_.rp(function(E){var B=E.children;var I=E.className;var T=E.style;var e=E.role;var c=E.ariaSelected;var Y=E.ariaLabel;var v=E.ariaHidden;var y=E.ariaLabelledby;var Z=E.ariaDescribedby;var P=E.command;var z=E.elementsCommand;var m=E.forceNewState;var u=E.tabIdentifier;var x=E.target;var M=E.tabIndex;var N=E.stopPropagation;E=_.aJ(function(){var W=_.uu({innertubeCommand:P==null?void 0:P(),elementsCommand:z==null?void 0:z(),forceNewState:m==null?void 0:m(),stopPropagation:(N==null?void 0:N())!==
!1});W||(W={});W["aria-hidden$"]=v==null?void 0:v();var U;W.tabindex$=(U=M==null?void 0:M())!=null?U:W.tabindex$;var q;W["force-new-state$"]=(q=m==null?void 0:m())!=null?q:W["force-new-state$"];var f;W.role$=(f=e==null?void 0:e())!=null?f:W.role$;var ed;W["aria-hidden$"]=(ed=v==null?void 0:v())!=null?ed:W["aria-hidden$"];var K;W.target$=(K=x==null?void 0:x())!=null?K:W.target$;return W},void 0,"SU0Mnc");
return _.w(_.Y3,{aTagConfig:E,className:I,style:T,ariaLabel:Y,ariaLabelledby:y,ariaDescribedby:Z,ariaSelected:c,tabIdentifier:u},B)},"ga");var uwt=_.d("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",xYU=_.$3(LoQ);_.qW(LoQ);_.oQ(xYU,"place-data-view-model",{props:{data:_.Jh}});var G3$=new _.Dr("INLINE_PLAYBACK_HOOK_TOKEN");var bhi=function(E){this.setActiveSlideIndex=E;this.jobIds=[];this.isSlideshowPlaying=!1},A9Q=function(E){if(E.isSlideshowPlaying){E.isSlideshowPlaying=!1;
for(var B=E.jobIds,I=0,T=B.length;I<T;I++)_.Ll.cancelJob(B[I]);E.jobIds.length=0}},ozt=function(E,B){E.isSlideshowPlaying||(E.isSlideshowPlaying=!0,Ohr(E),nzU(E,B,0))},Ohr=function(E){_.ta(_.Ll,function(){E.setActiveSlideIndex(0)},1)},nzU=function(E,B,I){E.jobIds.push(_.ta(_.Ll,function(){var T=I<B-1?I+1:0;
E.setActiveSlideIndex(T);nzU(E,B,T)},1800))};var N2Q=new _.Dr("IMAGE_ON_LOAD_HANDLER_TOKEN");var M0X=_.rp(function(E){return _.w("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.w(_.wU,{cond:function(){var B;return(B=E.data())==null?void 0:B.thumbnail},
then:function(B){return _.w(_.Ja,{data:B,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ha");_.JF=_.rp(function(E){var B=E.data;var I=E.lockupExperiments;E={};return _.w("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.w("div",{class:_.RQ("ytThumbnailOverlayButtonViewModelButton",(E.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var T;return I&&((T=I())==null?void 0:T.useLegacySizedIconButton)},E))},_.w(_.hM,{data:function(){return B().overlayButton}},{buttonViewModel:function(T){return _.w(_.ne,{data:T.data,
buttonOverrides:function(){var e;return I&&((e=I())==null?0:e.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ia");
_.JF.idomCompat=!0;var HhZ=_.rp(function(E){var B=_.TI(function(I){I.preventDefault();return!1});
return _.w("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":B},_.w(_.hM,{data:function(){return E.data().buttons}},{toggleButtonViewModel:function(I){return _.w("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.w(_.Le,{data:I.data}))}}))},"ja");
HhZ.idomCompat=!0;var N2R=_.rp(function(E){var B=function(){var I;return((I=_.h(E.data().rendererContext,_.bO))==null?void 0:I.label)||""};
return _.w("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.w(_.wU,{cond:function(){return E.data().image},
then:function(){return _.w("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.w(_.Ja,{data:function(){return E.data().image},
alt:B}))}}),_.w(_.wU,{cond:function(){return E.data().text},
then:function(){return _.w("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return E.data().text})}}))},"ka");var Smt=_.z8({thumbnailOverlayTitleViewModel:rYr,thumbnailOverlayBadgeViewModel:otV,thumbnailBottomOverlayViewModel:Gd6,thumbnailOverlayFullViewModel:N2R,thumbnailOverlayButtonViewModel:_.JF}),J9f=_.z8({thumbnailHoverOverlayViewModel:ntl,thumbnailHoverOverlayToggleActionsViewModel:HhZ}),WoF=_.z8({animatedThumbnailOverlayViewModel:M0X});_.qW(Xvt);var gzZ,SmZ;gzZ=_.rp(function(E){var B=[],I=function(){var m,u;return b0((m=E.width)==null?void 0:m.call(E),(u=E.height)==null?void 0:u.call(E))},T=_.Q().resolve(_.Fx(N2Q)),e=_.oH(function(){B.push("elRef.value set");
var m;(m=E.playbackRef)==null||m.call(E,{thumbnailElRef:e,thumbnail:E.data().image,thumbnailOverlays:E.data().overlays,thumbnailSize:I()})});
_.uW(function(){B.push("onInit");_.dt(function(){B.push("onCleanup")})});
var c=_.hk(G3B),Y=function(){var m,u;return(u=(m=E.aspectRatio)==null?void 0:m.call(E))!=null?u:0},v=function(){return(E.data().image?_.stc(E.data().image):Y())<=1&&Y()===0},y=function(){return v()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},Z=function(){e.value||_.OG(new _.P7("Thumbnail elRef.value is null",B.join("\n")));
T&&e.value&&T(e.value)},P=function(){var m,u;
return((m=E.hovered)==null?void 0:m.call(E))&&I()!=="large"&&((u=E.data().overlays)==null?void 0:u.some(function(x){return _.h(x,gzt)}))},z={};
return _.w("yt-thumbnail-view-model",{class:_.RQ("yt-thumbnail-view-model",E.className,function(){return r9Q(Y())},function(){var m,u;
a:{var x=I(),M=(m=E.disableRounding)==null?void 0:m.call(E);m=(u=E.isClip)==null?void 0:u.call(E);if(!M&&!m)switch(x){case "large":u="yt-thumbnail-view-model--large";break a;case "small":u="yt-thumbnail-view-model--small";break a;default:u="yt-thumbnail-view-model--medium";break a}u=void 0}return u},(z["yt-thumbnail-view-model--cinematic"]=v,z)),
style:_.c$({"background-color":function(){var m,u=v()?(m=E.data().backgroundColor)==null?void 0:m.lightTheme:void 0;return u?sq(u,"1"):void 0}}),
el:e},_.w(_.wU,{cond:v,then:function(){return _.w("div",{class:"yt-thumbnail-view-model__blurred-image"},_.w(_.Ja,{data:function(){return E.data().image},
alt:"",contentMode:y,targetWidth:E.width,onload:Z}))}}),_.w("div",{class:"yt-thumbnail-view-model__image"},_.w(_.Ja,{data:function(){return E.data().image},
alt:"",contentMode:y,targetWidth:E.width,onload:Z}),null),_.w(_.hM,{data:function(){return P()?void 0:E.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:bPR,thumbnailOverlayBadgeViewModel:function(m){return _.w(otV,{data:m.data,thumbnailSize:I,isClip:E.isClip})},
thumbnailBottomOverlayViewModel:Gd6,thumbnailOverlayFullViewModel:N2R,thumbnailOverlayButtonViewModel:function(m){return _.w(_.JF,{data:m.data,lockupExperiments:E.lockupExperiments})}}),_.w(_.hM,{data:function(){var m;
return((m=E.hovered)==null?0:m.call(E))?E.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(m){return _.w(MQZ,{data:m.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:HhZ}),_.w(_.hM,{data:function(){var m;return((m=E.hovered)==null?0:m.call(E))&&c()?E.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:M0X}),_.w(_.wU,{cond:E.isClip,then:function(){return M0i()}}))},"la");
SmZ=_.d("web_enable_sink_lockups_batch")?gzZ:Xvt;_.W4=_.d("web_enable_sink_lockups_batch")?gzZ:_.$3(SmZ,{callbacks:{playbackRef:!0}});gzZ.idomCompat={callbacks:{playbackRef:!0}};var jVi=_.z8({thumbnailViewModel:SmZ});_.qW(UYF);var J9U=_.rp(function(E){var B=_.p(_.lQ(-1,void 0,"GEkecf")),I=B.next().value,T=B.next().value;_.uW(function(){var e=new bhi(T);ozt(e,E.data().thumbnails.length);_.dt(function(){A9Q(e)})});
return _.w("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.w(_.hM,{data:function(){return E.data().thumbnails}},{thumbnailViewModel:function(e,c){return _.w("div",{class:function(){var Y=!E.data().primaryThumbnail,v=c(),y=I(),Z=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
Y&&v===0&&Z.push("yt-collection-thumbnail-slideshow--first-slide");v<=y&&Z.push("yt-collection-thumbnail-slideshow--show-slide");return Z.join(" ")}},_.w(_.W4,{data:e.data,
disableRounding:E.disableRounding}))}}))},"ma"),qm6=_.d("web_enable_sink_lockups_batch")?J9U:UYF,Wou=_.d("web_enable_sink_lockups_batch")?J9U:_.$3(UYF);
J9U.idomCompat=!0;var k3J=new _.Dr("DWELL_DETECTOR_REGISTRY_TOKEN");var V0d=_.z8({thumbnailViewModel:SmZ});_.qW(Foc);var r9R=_.rp(function(E){var B=fyd(E.triggeringElement),I=function(){return!!E.data().primaryThumbnail};
return _.w("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.w(XvZ,{stackEnabled:I,thumbnailSize:function(){var T,e;return b0((T=E.width)==null?void 0:T.call(E),(e=E.height)==null?void 0:e.call(E))},
doubleStack:E.doubleStack,stackColor:function(){return E.data().stackColor}},_.w("div",null,_.w(_.hM,{data:function(){return E.data().primaryThumbnail}},{thumbnailViewModel:function(T){var e={};
return _.w(_.W4,{data:T.data,width:E.width,height:E.height,aspectRatio:E.aspectRatio,disableRounding:E.disableRounding,className:_.RQ((e["yt-collection-thumbnail-view-model--has-stacks"]=I,e)),hovered:E.hovered,playbackRef:E.playbackRef})}}),_.w(_.wU,{cond:function(){var T;
return B()&&((T=E.data().thumbnails)==null?void 0:T.length)},
then:function(){return _.w("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.w(Wou,{data:E.data,disableRounding:function(){return!I()}}))}}))))},"na"),bhX=_.d("web_enable_sink_lockups_batch")?r9R:_.$3(Foc,{callbacks:{playbackRef:!0}});
r9R.idomCompat={callbacks:{playbackRef:!0}};
var XvZ=_.rp(function(E){var B=E.children;var I=E.stackEnabled;var T=E.thumbnailSize;var e=E.doubleStack;var c=E.stackColor;var Y,v=(Y=_.Q().resolve(_.Fx(_.ME)))==null?void 0:Y();return _.w(_.wU,{cond:I,then:function(){return _.w(IzU,{data:function(){var y,Z;return{experimentEnabled:!0,thumbnailSize:T(),doubleStack:e==null?void 0:e(),color:v?c==null?void 0:(y=c())==null?void 0:y.darkTheme:c==null?void 0:(Z=c())==null?void 0:Z.lightTheme,enableResponsiveMode:!1}}},B)},
else:function(){return B}})},"oa");var ozZ=new _.Dr("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var ri;_.Xt={calledOnce:!0,state:"visible"};ri={calledOnce:!0,state:"hidden"};_.bg=_.rp(function(E){var B=E.data;var I=E.customCommandResolver;var T=E.className;var e=E.delayedClassName;E=E.animationEntityKey;var c=_.oH(),Y=_.Wl(E,""),v=_.iO(o_F,Y),y=function(){var K,p4;return(p4=(K=v())==null?void 0:K.value)!=null?p4:!1},Z=function(){_.Jd(_.aL("booleanEntity",Y(),{key:Y(),
value:!0}));W=void 0};
E=_.p(_.l0(y));var P=E.next().value,z=E.next().value;E=_.p(_.l0(y));var m=E.next().value,u=E.next().value;E=_.p(_.l0(function(){var K;return y()?(K=B().styleTransitionConfig)==null?void 0:K.destinationStyle:void 0}));
var x=E.next().value,M=E.next().value,N=function(){var K=Object.assign({},B(),x()&&{style:x()}),p4,sc,Gf=K.label,xi=(p4=K.interaction)==null?void 0:(sc=p4.accessibility)==null?void 0:sc.label;p4=K.iconImage?K.label&&K.label.content?K.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:Gf,accessibilityLabel:xi,style:ED6(K.style),type:Bni(K.style),state:"active",size:RwG(K.size),iconPosition:p4,disabled:!1,aTagConfig:Kod(K,I)}},W;
_.VU(c,{visibilityCallback:function(K){var p4,sc=(p4=B().interaction)==null?void 0:p4.onFirstVisible;K&&sc&&_.xg(sc)},
showOption:_.Xt});var U=function(){return pp(N(),!!B().iconImage)};
T=_.RQ(function(){return"ytwAdButtonViewModelHost"},function(){return B().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var K=!!B().delayedAppearanceConfig,p4=P();
return K?p4?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var K=!!B().delayedAppearanceConfig,p4=m();
return K?p4?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!B().delayedAppearanceConfig||P()?e==null?void 0:e():""},T!=null?T:"");
var q=function(){var K,p4=(K=B().delayedAppearanceConfig)==null?void 0:K.delayedInvisibleSeconds;p4&&(W=_.wT(_.Ll,function(){z(!0);f()},p4*1E3))},f=function(){var K,p4=(K=B().delayedAppearanceConfig)==null?void 0:K.delayedVisibleSeconds;
p4&&(W=_.wT(_.Ll,function(){u(!0);ed()},p4*1E3))},ed=function(){var K,p4=(K=B().styleTransitionConfig)==null?void 0:K.styleTransitionSeconds,sc,Gf=(sc=B().styleTransitionConfig)==null?void 0:sc.destinationStyle;
p4&&Gf?W=_.wT(_.Ll,function(){M(Gf);Z()},p4*1E3):Z()};
_.uW(function(){var K;((K=B().delayedAppearanceConfig)==null?0:K.transitionDurationSeconds)&&c.value.style.setProperty("transition-duration",B().delayedAppearanceConfig.transitionDurationSeconds+"s");q()});
_.dt(function(){W&&_.Ll.cancelJob(W)});
return _.w("ad-button-view-model",{class:T,el:c},_.w(_.wU,{cond:N,then:function(){return _.w(F3,{data:N,icon:function(){return _.w(_.wU,{cond:function(){return B().iconImage},
then:function(K){return _.w(_.Ja,{data:K,alt:"",targetWidth:U,targetHeight:U,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"pa");var A9R=_.rp(function(E){var B=E.data;E=_.oH();_.VU(E,{visibilityCallback:function(I){var T,e=(T=B().interaction)==null?void 0:T.onFirstVisible;I&&e&&_.xg(e)},
showOption:_.Xt});return _.w("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:E},_.w("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.w(_.hM,{data:function(){return B().secondaryAdButton}},{adButtonViewModel:function(I){return _.w(_.bg,{data:I.data})}})),_.w("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.w(_.hM,{data:function(){return B().primaryAdButton}},{adButtonViewModel:function(I){return _.w(_.bg,{data:I.data})}})))},"qa");var jVX=_.rp(function(E){var B=function(){var I;return((I=E.data())==null?void 0:I.answers)||[]};
return _.w("yt-survey-icons",{class:"ytSurveyIconsHost"},_.w("div",{class:"ytSurveyIconsHeader"},_.w("div",{class:"ytSurveyIconsTitle"},function(){var I;return(I=E.data())==null?void 0:I.text}),_.w("div",null,_.w(F3,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var I;(I=E.onDismiss)==null||I.call(E)}}},
iconName:"DISMISSAL"}))),_.w("div",null,_.w("div",{class:"ytSurveyIconsAnswers"},_.w(_.Zt,{each:function(){return B()},
keyBy:"INDEX"},function(I,T){return _.w("div",null,_.w(F3,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var e;(e=E.onSelect)==null||e.call(E,I(),T)}}},
icon:function(){return _.w(_.i0,{icon:function(){var e,c;return(e=I())==null?void 0:(c=e.icon)==null?void 0:c.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.w("div",{class:"ytSurveyIconsAnswersText"},_.w("div",null,function(){return B().length?B()[0].text:""}),_.w("div",null,function(){return B().length?B()[B().length-1].text:""}))))},"ra");var UYu=_.rp(function(E){var B=_.p(_.lQ(!1,void 0,"s8HkOb")),I=B.next().value,T=B.next().value,e=_.iO(YwG,function(){var v;return(v=E.data().keys)==null?void 0:v.surveyEntityKey}),c=_.iO(azB,function(){var v;
return(v=E.data().keys)==null?void 0:v.surveyStateEntityKey});
_.bE("ytd-slimline-survey-show-action",function(){T(!1)});
var Y=function(){var v,y;var Z=(v=c())==null?void 0:(y=v.questionStack)==null?void 0:y[0];if(Z!==void 0){var P,z;return(P=e())==null?void 0:(z=P.questions)==null?void 0:z[Z]}};
B={};return _.w("yt-slimline-survey-view-model",{class:_.RQ("ytSlimlineSurveyViewModelHost",(B.ytSlimlineSurveyViewModelCollapsed=function(){return I()},B))},_.w("div",{class:"ytSlimlineSurveyViewModelContainer"},_.w(_.wU,{cond:function(){var v;
return((v=Y())==null?void 0:v.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.w(jVX,{data:function(){return Y()},
onSelect:function(v,y){var Z,P;return _.a(function(z){T(!0);if(P=(Z=E.data())==null?void 0:Z.onSelectRating)_.xg(P),_.Jd(VmV(y));_.ER(z)})},
onDismiss:function(){T(!0)}})}})))},"sa");var k3r=_.rp(function(E){return _.w("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.w(_.hM,{data:function(){var B;return(B=E.data())==null?void 0:B.attachments}},{flexibleActionsViewModel:function(B){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(mf,{data:B.data,
layout:function(){var I;return((I=E.lockupStyle())==null?void 0:I.arrangement)===1?0:1},
justifyContentOverride:function(){var I;return((I=E.lockupStyle())==null?void 0:I.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(B){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(UYu,{data:B.data}))},
expandableMetadataViewModel:function(B){B=B.data;var I;return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},(I=_.Q().resolve(_.Fx(ozZ)))==null?void 0:I({data:B}))},
adButtonGroupViewModel:function(B){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(A9R,{data:B.data}))}}))},"ta");var cEJ=_.RI("rich_grid_min_item_width",310),enD=_.RI("rich_grid_max_item_width",500);var mad=_.rp(function(E){var B=E.data;return _.w("br-nz-badge-shape",{class:_.RQ(function(){return wK6(B().brNzRatingBadgeType)}),
role:function(){return B().accessibilityText?"img":void 0},
"aria-label":function(){return B().accessibilityText}},function(){var I;
return(I=B())==null?void 0:I.text})},"ua");_.qW(QDQ);var t0R,anG;t0R=_.rp(function(E){var B=function(){var I=E.data(),T,e;return I?zn4(I,!((T=E.workaroundShortsIsThumbnailBadge)==null||!T.call(E)),(e=E.modern)==null?void 0:e.call(E)):void 0};
return _.w("yt-badge-view-model",{class:_.RQ("yt-badge-view-model-wiz",E.class)},_.w(_.m4,null,_.w(_.PA,{when:function(){var I;return!((I=B())==null||!I.brNzRatingBadgeType)}},function(){return _.w(mad,{data:function(){return B()}})}),_.w(_.PA,{when:function(){return!!B()&&!B().brNzRatingBadgeType}},function(){return _.w(_.fe,{data:function(){return B()}})})))},"va");
anG=_.d("web_enable_sink_yt_badge_view_model")?t0R:QDQ;_.oM=_.d("web_enable_sink_yt_badge_view_model")?t0R:_.$3(QDQ);t0R.idomCompat=!0;var hnd,da4;hnd=16/9;da4=2/3;_.AF=_.rp(function(E){var B=E.data;var I=E.className;var T=E.imageSizeConfig;var e=E.notifyOnLoaded;E=_.oH();var c=function(){return B().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},Y=function(){var P;
return _.WE((P=B())==null?void 0:P.rendererContext)},v={};
v=(v["yt-content-preview-image-view-model-wiz"]=!0,v["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return c()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},v["yt-content-preview-image-view-model-wiz--tappable"]=function(){return Y()},v);
var y=function(){var P,z;return(z=(P=_.h(B().rendererContext,_.bO))==null?void 0:P.label)!=null?z:""},Z=function(){return ulB(B())};
_.rT(E,function(){var P;return(P=B())==null?void 0:P.rendererContext});
return _.w("yt-content-preview-image-view-model",{el:E,role:function(){return Y()?"link":void 0},
tabindex:function(){return Y()?0:void 0},
class:_.RQ(I,v,function(){var P=c();var z=T==null?void 0:T();P=P==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||P==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||P==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||P==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(z==null?void 0:z.size)!=null&&z.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(z==null?void 0:z.size)!=null&&z.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return P}),
style:function(){return sDD(c(),B().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",T==null?void 0:T(),LCc(Z()),B().layoutWidth,B().layoutHeight)}},_.w(_.wU,{cond:Z,
then:function(P){return _.w(_.Ja,{data:P,alt:y,"data-disabled$":function(){return!y()},
notifyOnLoaded:e})}}),_.w(_.hM,{data:function(){var P;
return(P=B())==null?void 0:P.overlays}},{thumbnailHoverOverlayViewModel:MQZ,
thumbnailOverlayButtonViewModel:_.JF}))},"wa");
_.AF.idomCompat=!0;var jS=_.rp(function(E){var B=E.data;var I=E.className;var T=E.useSmallLayout;var e=E.useMediumText;E=_.oH();var c={};e=(c["yt-attribution-view-model-wiz"]=!0,c["yt-attribution-view-model-wiz--medium-text"]=e,c);_.rT(E,function(){var Y;return(Y=B())==null?void 0:Y.rendererContext});
return _.w("yt-attribution-view-model",{el:E,class:_.RQ(I,e)},_.w(_.wU,{cond:function(){return _.WE(B().rendererContext)},
then:function(){return _.w("button",{class:"yt-attribution-view-model-wiz--tappable"},_.w(fyN,{data:B,useSmallLayout:T}))},
else:function(){return _.w(fyN,{data:B,useSmallLayout:T})}}))},"xa"),fyN=_.rp(function(E){var B=E.data;
var I=E.useSmallLayout;var T=function(){return{size:(I==null?0:I())?16:24}};
return _.w(_.VS,null,_.w(_.hM,{data:function(){return B().contentPreviewImage}},{contentPreviewImageViewModel:function(e){return _.w(_.AF,{data:e.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:T})}}),_.w(_.hM,{data:function(){return B().badge}},{badgeViewModel:function(e){return _.w(_.oM,{data:e.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.w(_.wU,{cond:function(){return B().text},
then:function(){return _.w(_.aS,{text:function(){return B().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.w(_.wU,{cond:function(){return B().suffix},
then:function(){return _.w(_.aS,{text:function(){return B().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"ya");
jS.idomCompat=!0;var NnD=_.z8({avatarStackViewModel:_.WbZ,badgeViewModel:anG});_.qW(JEf);var V0N,qmh,FoD,DYr,KoN,Rwt,EDh;V0N=_.rp(function(E){var B=E.delimiter;var I=E.max;var T=E.index;var e=E.isStandalone;return _.w(_.wU,{cond:function(){return I()-1>T()},
then:function(){var c={};return _.w("span",{class:_.RQ("yt-content-metadata-view-model-wiz__delimiter",(c["yt-content-metadata-view-model-wiz__delimiter--standalone"]=e,c)),"aria-hidden":!0},B)}})},"za");
qmh=_.rp(function(E){var B=E.metadataPart;var I=E.maxLines;return _.w(_.aS,{text:function(){return B().text},
linkInheritColor:!0,className:function(){return WCi(I())},
userInput:!0})},"Aa");
FoD=_.rp(function(E){var B=E.metadataPart;var I=E.maxLines;return _.w(_.VS,null,_.w(_.wU,{cond:function(){return B().tooltip},
then:function(T){return _.w("span",{title:T,role:"tooltip"},_.w(qmh,{metadataPart:B,maxLines:I}))},
else:function(){return _.w(qmh,{metadataPart:B,maxLines:I})}}))},"Ba");
DYr=_.rp(function(E){var B=E.metadataPart;var I=E.isOverlay;var T=E.useMediumText;var e=E.hideAvatar;var c=function(){return B().maxLines!==void 0?B().maxLines:1};
return _.w(_.VS,null,_.w(_.hM,{data:function(){return B().avatarStack}},{avatarStackViewModel:function(Y){return _.w(_.wi,{data:Y.data,
isOverlay:I,useMediumText:T,hideAvatar:e})},
badgeViewModel:_.oM}),_.w(_.wU,{cond:function(){return B().text},
then:function(){return _.w(FoD,{metadataPart:B,maxLines:c})}}))},"Ca");
KoN=_.rp(function(E){var B=E.metadataRow;var I=E.isInline;var T=E.delimiter;var e=E.isOverlay;var c=E.useMediumText;var Y=E.extensions;var v=function(){var y;return GYi(Y==null?void 0:(y=Y())==null?void 0:y.lockupMetadata,B())};
E={};return _.w("div",{class:_.RQ("yt-content-metadata-view-model-wiz__metadata-row",(E["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=I,E["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var y;return OW4(Y==null?void 0:(y=Y())==null?void 0:y.lockupMetadata,B())},E["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var y;
return!!(Y==null?0:(y=Y())==null?0:y.lockupMetadata)&&B().badges},E))},_.w(_.hM,{data:function(){return B().badges}},{badgeViewModel:function(y){return _.w("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.w(_.oM,{data:y.data}))}}),_.w(_.Zt,{each:function(){return B().metadataParts||[]}},function(y,Z){return _.w(_.VS,null,_.w(DYr,{metadataPart:y,
isOverlay:e,useMediumText:c,hideAvatar:v}),_.w(V0N,{delimiter:T,max:function(){return B().metadataParts.length},
index:Z,isStandalone:!1}))}),_.w(_.wU,{cond:function(){return B().isSpacerRow&&!I()},
then:function(){return _.w("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Da");
Rwt=_.rp(function(E){var B=_.XS(E,{layout:0,isOverlay:!1});E=B.className;var I=B.data,T=B.layout,e=B.isOverlay,c=B.useMediumText,Y=B.extensions;B=_.oH();var v=function(){return T()===0};
_.rT(B,function(){return I().rendererContext});
var y={};return _.w("yt-content-metadata-view-model",{class:_.RQ(E,"yt-content-metadata-view-model-wiz",(y["yt-content-metadata-view-model-wiz--inline"]=v,y["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.WE(I().rendererContext)},y["yt-content-metadata-view-model-wiz--medium-text"]=c,y)),
el:B},_.w(_.Zt,{each:function(){return I().metadataRows}},function(Z,P){return _.w(_.VS,null,_.w(KoN,{metadataRow:Z,
isInline:v,delimiter:function(){return I().delimiter},
isOverlay:e,useMediumText:c,extensions:Y}),_.w(_.wU,{cond:function(){return v()&&!Z.isSpacerRow},
then:function(){return _.w(V0N,{delimiter:function(){return I().delimiter},
max:function(){return I().metadataRows.length},
index:P,isStandalone:!0})}}))}))},"Ea");
EDh=_.d("web_enable_sink_yt_content_metadata_view_model")?Rwt:JEf;_.Bnl=_.d("web_enable_sink_yt_content_metadata_view_model")?Rwt:_.$3(JEf);Rwt.idomCompat=!0;var bWG=_.z8({avatarViewModel:_.sj,decoratedAvatarViewModel:Swu,contentMetadataViewModel:EDh,buttonViewModel:_.ne,attributionViewModel:jS});_.qW(oDf);var $ar=_.rp(function(E){var B={};return _.w("yt-lockup-metadata-view-model",{class:_.RQ("yt-lockup-metadata-view-model-wiz",function(){a:{var I=E.lockupStyle();if(I==null?0:I.isOverlay)I="yt-lockup-metadata-view-model-wiz--overlay";else switch(I==null?void 0:I.arrangement){case 1:I="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:I="yt-lockup-metadata-view-model-wiz--vertical"}}return I},function(){a:{var I=E.lockupStyle();
if(I==null?0:I.isTiny)I="yt-lockup-metadata-view-model-wiz--tiny";else switch(I==null?void 0:I.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":I="yt-lockup-metadata-view-model-wiz--compact";break a;default:I="yt-lockup-metadata-view-model-wiz--standard"}}return I},(B["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var I;
return(I=E.lockupStyle())==null?void 0:I.isOverlay},B["yt-lockup-metadata-view-model-wiz--card"]=function(){var I;
return(I=E.lockupStyle())==null?void 0:I.isCard},B["yt-lockup-metadata-view-model-wiz--centered"]=function(){var I;
return(I=E.lockupStyle())==null?void 0:I.isCentered},B["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var I;
return(I=E.lockupStyle())==null?void 0:I.typographyBump},B["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var I;
return(I=E.lockupStyle())==null?void 0:I.useLegacyTypography},B["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var I;
return(I=E.lockupStyle())==null?void 0:I.useRichGridLegacyTypography},B))},_.w(_.hM,{data:function(){return E.data().image}},{avatarViewModel:function(I){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.w(_.yf,{data:I.data}))},
decoratedAvatarViewModel:function(I){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.w(_.CG,{data:I.data}))}}),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.w("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var I;return(I=E.data().title)==null?void 0:I.content}},_.w(_.wU,{cond:function(){return E.data().title},
then:function(I){return _.w(_.Y3,{command:E.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:E.lockupAccessibilityLabel},_.w(_.aS,{text:I}))}})),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.w(_.hM,{data:function(){return E.data().metadata}},{contentMetadataViewModel:function(I){return _.w(_.Bnl,{data:I.data,
layout:1,useMediumText:function(){var T,e;return((T=E.lockupStyle())==null?void 0:T.typographyBump)||((e=E.lockupStyle())==null?void 0:e.useRichGridLegacyTypography)},
extensions:function(){var T,e;return{lockupMetadata:{byline:{hideAvatar:((T=E.lockupStyle())==null?void 0:T.arrangement)===0,addPadding:((e=E.lockupStyle())==null?void 0:e.arrangement)===1}}}}})}})),_.w(_.hM,{data:function(){return E.data().attribution}},{attributionViewModel:function(I){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.w(jS,{data:I.data,
useSmallLayout:!0}))}})),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.w(_.hM,{data:function(){return E.data().menuButton}},{buttonViewModel:function(I){return _.w(_.ne,{data:I.data,
buttonOverrides:function(){var T;return((T=E.lockupStyle())==null?0:T.isOverlay)?{style:"overlay"}:void 0}})}})))},"Fa"),IfN=_.d("web_enable_sink_lockups_batch")?$ar:_.$3(oDf);
$ar.idomCompat=!0;var Tnt=_.rp(function(E){var B=_.oH();_.hA(function(){requestAnimationFrame(function(){_.AI(B.value)})});
var I={},T={},e={};return _.w("notification-multi-action-renderer",{class:_.RQ("ytNotificationMultiActionRendererHost",(I.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var c;return(c=E.useLegacyShelfStyle)==null?void 0:c.call(E)},I)),
el:B},_.w("span",{"aria-live":"polite",class:_.RQ("ytNotificationMultiActionRendererTextContainer",(T.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var c;return(c=E.useLegacyShelfStyle)==null?void 0:c.call(E)},T))},_.w(_.aS,{text:function(){return E.data().responseText}})),_.w("div",{class:_.RQ("ytNotificationMultiActionRendererButtonContainer",(e.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var c;
return(c=E.useLegacyShelfStyle)==null?void 0:c.call(E)},e))},_.w(_.hM,{data:function(){var c;
return(c=E.data().buttons)==null?void 0:c.map(function(Y){if(Y=Y.buttonRenderer){var v,y=Object,Z=y.assign,P=(v=Y.icon)==null?void 0:v.iconType;v=(v=Y.command||Y.serviceEndpoint||Y.navigationEndpoint)?{innertubeCommand:v}:void 0;Y={buttonViewModel:Z.call(y,{},{iconName:P,onTap:v,trackingParams:Y.trackingParams,titleFormatted:Y.text?_.zA(Y.text):void 0},AEG(Y))}}else Y=void 0;return Y}).filter(function(Y){return!!Y})}},{buttonViewModel:function(c,Y){return _.w("div",null,_.w(_.ne,{data:c.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var v;return((v=E.useModernStyles)==null?0:v.call(E))?{type:Y()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ga");var enz=_.rp(function(E){var B=_.oH();_.hA(function(){requestAnimationFrame(function(){_.AI(B.value)})});
return _.w("notification-text-renderer",{el:B,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.w(_.aS,{text:function(){return E.data().successResponseText}}))},"Ha");_.lfl=_.rp(function(E){var B=_.iO(AZG,function(){var T;return jDi((T=E.contentId)==null?void 0:T.call(E))}),I=function(){var T;
return _.h((T=B())==null?void 0:T.command,_.mJ)};
return _.w(_.wU,{cond:function(){var T;if(!(T=I())){var e;T=_.h((e=B())==null?void 0:e.command,oUh)}return T},
then:function(){return _.w(_.wU,{cond:I,then:function(){var T={};return _.w("div",{class:_.RQ("ytDismissibleItemReplacedContent",function(){var e;return UaF((e=E.aspectRatio)==null?void 0:e.call(E))})},_.w("div",{class:_.RQ((T.ytDismissibleItemAspectRatioContainer=function(){var e;
return((e=E.aspectRatio)==null?void 0:e.call(E))!==void 0},T))},_.w(_.hM,{data:function(){var e;
return(e=I())==null?void 0:e.item}},{notificationMultiActionRenderer:function(e){return _.w(Tnt,{data:e.data,
useModernStyles:E.useModernStyle,useLegacyShelfStyle:E.useLegacyShelfStyle})},
notificationTextRenderer:enz})))}})},
else:E.children})},"Ia");_.cEr=_.rp(function(E){var B=E.data;var I=E.customCommandResolver;E=_.AK();var T=function(){var c;return((c=B().interaction)==null?0:c.onTap)?function(Y){var v;DYJ(Y,(v=B().interaction)==null?void 0:v.onTap,I)}:void 0},e=function(){var c,Y=B(),v=T(),y=(c=_.h(B().rendererContext,_.bO))==null?void 0:c.label;
a:switch(Y.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":c=1;break a;default:c=0}return{size:ffd(Y.size),type:c,onTap:v,accessibilityText:y}};
_.VU(E,{visibilityCallback:function(c){var Y,v=(Y=B().interaction)==null?void 0:Y.onFirstVisible;c&&v&&_.xg(v)},
showOption:_.Xt});return _.w("ad-avatar-view-model",{class:function(){var c;return((c=B().interaction)==null?0:c.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:E},_.w(_.wU,{cond:function(){return B().image},
then:function(c){return _.w(oL,{data:e,image:c})}}))},"Ja");_.UC=_.rp(function(E){E=_.XS(E,{hasDot:!1});var B=Object.assign({},E),I=E.data,T=E.hasDot;E=E.customCommandResolver;var e=(delete B.data,delete B.hasDot,delete B.customCommandResolver,B);B=function(){return I().style};
B!==void 0&&B!==null||_.Xx(Error("Eh"));B=_.oH();_.k4(B,function(){return I().interaction},E);
return _.w("ad-badge-view-model",{class:_.RQ(function(){var c;return((c=I().interaction)==null?0:c.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var c=e.adRenderingContextType();
I();return c==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:B},_.w(_.fe,{data:function(){var c;I();return{type:2,text:(c=I().label)==null?void 0:c.content,adsIncludeDot:T(),isOverlay:I().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ka");var iWR;_.kk=_.rp(function(E){var B=E.data;var I=E.customCommandResolver;var T=E.adRenderingContextType;E=_.oH();_.k4(E,function(){return B().interaction},I);
_.VU(E,{visibilityCallback:function(e){var c,Y=(c=B().interaction)==null?void 0:c.onFirstVisible;e&&Y&&_.xg(Y)},
showOption:_.Xt});return _.w("ad-details-line-view-model",{class:function(){var e;return((e=B().interaction)==null?0:e.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:E},_.w(_.wU,{cond:function(){return B().style},
then:function(e){return _.w(_.Zt,{each:function(){var c;return((c=B())==null?void 0:c.attributes)||[]},
keyBy:"INDEX"},function(c){return _.w(iWR,{attribute:c,style:e,adRenderingContextType:function(){return T()}})})}}))},"La");
iWR=_.rp(function(E){var B=E.attribute;var I=E.style;var T=E.adRenderingContextType;return _.w(_.wU,{cond:function(){return B().text},
then:function(e){return _.w(_.aS,{text:e,className:function(){var c=T();I();return c==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ma");var pKr=_.rp(function(E){var B=E.data;var I=E.typographyBump;var T=function(){return B().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
E={};return _.w(_.VS,null,_.w("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.w(_.aS,{text:function(){return B().headline},
className:_.RQ("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(E.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return T==null?void 0:T()},E.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(I==null?void 0:I())&&!(T==null?0:T())},E)),
linkInheritColor:!0}),_.w(_.wU,{cond:function(){return B().description},
then:function(e){var c={};return _.w(_.aS,{text:e,className:_.RQ("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(c.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return T==null?void 0:T()},c.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(I==null?void 0:I())&&!(T==null?0:T())},c)),
linkInheritColor:!0})}}),_.w("div",{class:function(){return T()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.w(_.hM,{data:function(){return B().adBadge}},{adBadgeViewModel:function(e){return _.w(_.UC,{data:e.data,
hasDot:function(){return!!B().adDetailsLine},
adRenderingContextType:function(){return B().adRenderingContextType}})}}),_.w(_.hM,{data:function(){return B().adDetailsLine}},{adDetailsLineViewModel:function(e){return _.w(_.kk,{data:e.data,
adRenderingContextType:function(){return B().adRenderingContextType}})}}))),_.w("div",{class:function(){return T()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.w(_.hM,{data:function(){return B().menu}},{buttonViewModel:function(e){return _.w(_.ne,{data:e.data,
buttonOverrides:function(){a:switch(B().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var c="S";break a;default:c="M"}return{size:c}}})}})))},"Na"),YnZ=_.rp(function(E){var B=E.data;
var I=E.noBottomMargin;var T=E.useVideoLockupTopPadding;var e=E.typographyBump;E={};E=_.RQ("ytwFeedAdMetadataViewModelHostMetadata",(E.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return I==null?void 0:I()},E.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return T==null?void 0:T()},E));
var c=function(){return B().adBadge};
c!==void 0&&c!==null||_.Xx(Error("Fh"));c={};var Y={};return _.w(_.VS,null,_.w(_.wU,{cond:function(){return B().adAvatar},
then:function(){return _.w("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.w(_.hM,{data:function(){return B().adAvatar}},{adAvatarViewModel:function(v){return _.w(_.cEr,{data:v.data})}}))}}),_.w("div",{class:E},_.w("div",{class:_.RQ("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(c.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return e==null?void 0:e()},c.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(e==
null?void 0:e())&&_.d("web_enable_typography_bump_v2")},c))},_.w(_.aS,{text:function(){return B().headline},
linkInheritColor:!0})),_.w(_.wU,{cond:function(){return B().description},
then:function(v){return _.w(_.aS,{text:v,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.w("div",{class:function(){return B().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.d("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.w(_.hM,{data:function(){return B().adBadge}},
{adBadgeViewModel:function(v){return _.w(_.UC,{data:v.data,
hasDot:function(){return!!B().adDetailsLine},
adRenderingContextType:function(){return B().adRenderingContextType}})}}),_.w(_.hM,{data:function(){return B().adDetailsLine}},{adDetailsLineViewModel:function(v){return _.w(_.kk,{data:v.data,
adRenderingContextType:function(){return B().adRenderingContextType}})}})),_.w(_.wU,{cond:function(){return B().secondaryDescription},
then:function(v){return _.w(_.aS,{text:v,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.w("div",{class:_.RQ("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(Y.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return T==null?void 0:T()},Y))},_.w(_.hM,{data:function(){return B().menu}},{buttonViewModel:_.ne})))},"Oa"),afV=_.rp(function(E){var B=E.data;
var I=E.noBottomMargin;var T=E.listenToTapEvent;var e=E.setTouchEndHandler;var c=E.useVideoLockupTopPadding;var Y=E.typographyBump;var v=_.oH();_.k4(v,function(){return B().interaction},void 0,function(){return T==null?void 0:T()});
E=_.p(_.lQ(!1,void 0,"v9Bv8e"));var y=E.next().value,Z=E.next().value;E=_.TI(function(){(e==null?0:e())&&!y()&&(v.value.click(),Z(!0),setTimeout(function(){Z(!1)},100));
return!1});
_.VU(v,{visibilityCallback:function(P){var z,m=(z=B().interaction)==null?void 0:z.onFirstVisible;P&&m&&_.xg(m)},
showOption:_.Xt});return _.w("feed-ad-metadata-view-model",{class:function(){var P;return((P=B().interaction)==null?0:P.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:v,"on:touchend":E},_.w(_.m4,null,_.w(_.PA,{when:function(){return B().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.w(pKr,{data:B,
typographyBump:Y})}),_.w(_.PA,{when:function(){return B().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.w(YnZ,{data:B,
noBottomMargin:I,useVideoLockupTopPadding:c,typographyBump:Y})})))},"Pa");var vDX;_.tF=_.rp(function(E){return _.w("yt-lockup-view-model",{class:_.RQ(E.className)},_.w(_.lfl,{contentId:function(){return E.data().contentId},
useModernStyle:!0,aspectRatio:function(){var B,I;return((B=E.containerType)==null?void 0:B.call(E))!==3?yEi(E.data().contentType,(I=E.force16By9ThumbnailAspectRatio)==null?void 0:I.call(E)):void 0}},function(){return _.w(vDX,Object.assign({},E))}))},"Qa");
vDX=_.rp(function(E){E=_.XS(E,{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 B=E.data,I=E.containerLayoutConfig,T=E.containerType,e=E.sizing,c=E.protectBackground,Y=E.typographyBump,v=E.force16By9ThumbnailAspectRatio,y=E.thumbnailFixedWidth,Z=E.thumbnailTargetWidth,P=E.lockupExperiments,z=E.elementsPerRow;
E=_.oH();_.rT(E,function(){var WG;return(WG=B())==null?void 0:WG.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var m=_.hk(OhJ),u=_.Q().resolve(_.Fx(G3$)),x=u?{}:void 0,M=function(){var WG,rJ,Uc;return(Uc=(rJ=_.h((WG=B())==null?void 0:WG.rendererContext,_.bO))==null?void 0:rJ.label)!=null?Uc:void 0},N=function(){var WG=I==null?void 0:I(),rJ;
if(WG==null?0:WG.containerType){var Uc=(rJ=B())==null?void 0:rJ.contentType;rJ=P();var CV=Y(),Bm=Z(),LV=c();WG=Object.assign({},Cwd(Ynt(WG),iWQ(WG.responsiveSize),CV,Uc,WG.force16By9ThumbnailAspectRatio,Bm,LV,rJ),{thumbnailFixedWidth:WG.contentPreviewWidth})}else WG=Cwd(T(),e(),Y(),(Uc=B())==null?void 0:Uc.contentType,v(),Z(),c(),P());return WG};
u&&x&&u({enabled:function(){return m()},
itemPlaybackModel:function(){return B().itemPlayback},
thumbnailElRef:function(){return x.thumbnailElRef},
containerElRef:E,options:function(){var WG,rJ=(WG=_.h(B().metadata,hER))==null?void 0:WG.endorsement;WG=x.thumbnailOverlays||[];rJ&&WG.push(rJ);var Uc,CV;return{thumbnail:x.thumbnail,thumbnailOverlays:WG,accessibilityText:M(),thumbnailSize:x.thumbnailSize,enableRounding:N().isCollection,containPlayerWithinThumbnail:N().isCollection,trackingParams:(Uc=_.h(B().rendererContext,_.Vkc))==null?void 0:(CV=Uc.loggingDirectives)==null?void 0:CV.trackingParams}}});
var W=0;u=_.p(_.lQ(!1,void 0,"HzAs3"));var U=u.next().value,q=u.next().value;u=_.p(_.lQ(!1,void 0,"ujOXud"));var f=u.next().value,ed=u.next().value;u=_.TI(function(){var WG=m()&&B().itemPlayback;f()?(_.Ll.cancelJob(W),W=_.Ll.addJob(function(){q(!WG)},8,32)):q(!WG);
return!0});
var K=_.TI(function(){W&&(_.Ll.cancelJob(W),W=0);q(!1)});
_.dt(function(){W&&(_.Ll.cancelJob(W),W=0)});
var p4=t8F(function(){ed(!0)}),sc=p4.touchFeedbackEvents,Gf=p4.touchFeedbackOnPointerUp,xi=p4.touchFeedbackOnPointerDown;
p4=p4.touchFeedbackOnPointerLeave;var ki={};return _.w("div",{el:E,class:_.RQ("yt-lockup-view-model-wiz",function(){a:{var WG=N();if(WG.isOverlay)WG="yt-lockup-view-model-wiz--overlay";else switch(WG.arrangement){case 1:WG="yt-lockup-view-model-wiz--horizontal";break a;default:WG="yt-lockup-view-model-wiz--vertical"}}return WG},function(){a:{var WG=N();
if(WG.isOverlay)WG="yt-lockup-view-model-wiz--overlay";else{switch(WG.collectionStackNumber){case 1:WG="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:WG="yt-lockup-view-model-wiz--collection-stack-2";break a}WG=void 0}}return WG},(ki["yt-lockup-view-model-wiz--card"]=function(){return N().isCard},ki["yt-lockup-view-model-wiz--compact"]=function(){return N().isTiny||N().sizing!=="STANDARD"},ki["yt-lockup-view-model-wiz--protect-background"]=c,ki["yt-lockup-view-model-wiz--add-margins"]=
function(){return N().addMarginForFullbleed},ki["yt-lockup-view-model-wiz--centered"]=function(){return N().isCentered},ki["yt-lockup-view-model-wiz--fullbleed"]=function(){return N().fullbleed},ki["yt-lockup-view-model-wiz--single-column-grid"]=function(){return z()===1&&T()===2},ki["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var WG;
return(WG=P())==null?void 0:WG.useRichGridLegacyMargin},ki)),
"on:mousedown":xi,"on:mouseleave":K,"on:mouseup":Gf,"on:mouseover":u,"on:touchstart":xi,"on:touchend":Gf,"on:pointerleave":p4},_.w(_.Y3,{command:function(){var WG;return _.JM((WG=B())==null?void 0:WG.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return y()&&N().arrangement===1?"width: "+y():""}},_.w(_.hM,{data:function(){var WG;
return(WG=B())==null?void 0:WG.contentImage}},{thumbnailViewModel:function(WG){return _.w(_.W4,{data:WG.data,
aspectRatio:function(){return N().aspectRatio},
disableRounding:function(){return N().disableRounding},
width:Z,hovered:U,isClip:function(){var rJ;return((rJ=B())==null?void 0:rJ.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:xYf(x),lockupExperiments:function(){return P()}})},
collectionThumbnailViewModel:function(WG){return _.w(bhX,{data:WG.data,aspectRatio:function(){return N().aspectRatio},
disableRounding:function(){return N().disableRounding},
width:Z,doubleStack:function(){return N().collectionStackNumber===2},
hovered:U,playbackRef:xYf(x)})},
decoratedAvatarViewModel:_.CG})),_.w("div",{class:"yt-lockup-view-model-wiz__metadata"},_.w(_.hM,{data:function(){var WG;return(WG=B())==null?void 0:WG.metadata}},{lockupMetadataViewModel:function(WG){return _.w(IfN,{data:WG.data,
lockupStyle:N,lockupCommand:function(){var rJ;return _.JM((rJ=B())==null?void 0:rJ.rendererContext)},
lockupAccessibilityLabel:function(){return M()}})},
feedAdMetadataViewModel:function(WG){return _.w(afV,{data:WG.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:Y})}}),_.w(_.hM,{data:function(){var WG;
return(WG=B())==null?void 0:WG.attachmentSlot}},{lockupAttachmentsViewModel:function(WG){return _.w(k3r,{data:WG.data,
lockupStyle:N})}})),_.w(_.v$,{model:function(){a:{switch(N().collectionStackNumber){case 1:var WG=8;
break a;case 2:WG=12;break a}WG=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:WG}},
pointerDownEvent:sc.pointerDownEvent,pointerUpEvent:sc.pointerUpEvent,pointerLeaveEvent:sc.pointerLeaveEvent}))},"Ra");
_.tF.idomCompat=!0;_.oQ(_.tF,"yt-lockup-view-model",{props:{data:_.Jh,containerLayoutConfig:_.Jh,containerType:_.Jh,sizing:_.Jh,protectBackground:_.Jh,typographyBump:_.Jh,thumbnailFixedWidth:_.Jh,thumbnailTargetWidth:_.Jh,force16By9ThumbnailAspectRatio:_.Jh,className:_.Jh,lockupExperiments:_.Jh,elementsPerRow:_.Jh}});_.qW(RnD);var eCd=_.z8({buttonViewModel:_.ne}),yEl=_.$3(IEt);_.qW(IEt);_.qW(Bv4);_.qW($4G);_.oQ(yEl,"yt-video-attribute-view-model",{props:{data:_.Jh,className:_.Jh}});var fG=function(){var E=_.r.apply(this,arguments)||this;E.useHighlightStyling=_.d("web_enable_deeper_metadata_highlight_styling");E.isSearch=!1;E.JSC$12921_lastScrollContainerWidth=NaN;E.pageLoadingFromNavigation=!1;E.currentIndex=0;E.supportComponentResize=!1;return E};
_.L(fG,_.r);_.l=fG.prototype;
_.l.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}}}}}};
_.l.attached=function(){document.addEventListener("yt-page-type-changed",_.Kq(this,this.onPageChange))};
_.l.detached=function(){document.removeEventListener("yt-page-type-changed",_.Kq(this,this.onPageChange))};
_.l.getItemsPath=function(){return"data.cards"};
_.l.onIronResize=function(){this.updateListStyles()};
_.l.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var E;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(E=this.data)==null?void 0:E.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.d("problem_walkthrough_sd")&&!!this.centerItems};
_.l.computeCardListStyle=function(E){return E||null};
_.l.computeEmpty=function(E){return!this.get("cards.length",E)};
_.l.computeThumbnailStyle=function(E){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",E)||null};
_.l.computeHasSubtitle=function(E){return!!this.get("header.richListHeaderRenderer.subtitle",E)};
_.l.computeInitialCountNumber=function(E){return this.hasSquareMiniApp&&E==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&E==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:E==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:E==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:E==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&E==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.l.computeUseFloorScrolling=function(E){return E==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.l.computeHasGameCard=function(E){return(E=this.get("cards",E))?E.some(function(B){return B.gameCardRenderer}):!1};
_.l.computeCenterHeaderTitle=function(E){return!(E==null||!E.centerHeaderTitle)};
_.l.computeHasPortraitMiniApp=function(E){return(E=E==null?void 0:E.cards)?E.some(function(B){return B.miniGameCardViewModel&&B.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.l.computeHasSquareMiniApp=function(E){return(E=E==null?void 0:E.cards)?E.some(function(B){return B.miniGameCardViewModel&&B.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.l.computeHasSkinnyWidthPortraitMiniApp=function(E){return(E=E==null?void 0:E.cards)?E.some(function(B){return B.miniGameCardViewModel&&B.miniGameCardViewModel.width===135}):!1};
_.l.computeCenterItems=function(E){return!!E};
_.l.computeHasInfoPanel=function(E){var B;return E==null?void 0:(B=E.cards)==null?void 0:B.some(function(I){return I.infoPanelContentRenderer})};
_.l.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.l.getItemByIndex=function(E){var B=this.items.children;return B&&B.length>E?B[E]:void 0};
_.l.onPageChange=function(){var E=this;this.pageLoadingFromNavigation=!0;_.Ll.addJob(function(){E.pageLoadingFromNavigation=!1;_.Ta(E.hostElement,"yt-terminate-video-preview-action")},8)};
_.l.updateListStyles=function(){if(_.d("problem_walkthrough_sd")&&this.JSC$12921_scrollContainer!==void 0){var E=this.JSC$12921_scrollContainer.clientWidth;E!==this.JSC$12921_lastScrollContainerWidth&&(this.JSC$12921_lastScrollContainerWidth=E,_.Dk(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(E*.8,415)+"px"}),_.$O(this.hostElement,"iron-resize"))}};
_.Up.Object.defineProperties(fG.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.d("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return _.d("kevlar_modern_sd")&&!!((E=this.data)==null?0:(B=E.cards)==null?0:(I=B[0])==null?0:I.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return!!((E=this.data)==null?0:(B=E.cards)==null?0:(I=B[0])==null?0:I.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return _.d("enable_desktop_amsterdam_info_panels")&&!!((E=this.data)==null?0:(B=E.cards)==null?0:(I=B[0])==null?0:I.infoPanelContentRenderer)}}});
fG.prototype.dataChanged=fG.prototype.dataChanged;fG.prototype.onIronResize=fG.prototype.onIronResize;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],fG.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],fG.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.fz.YtdHorizontalListBehavior),_.t("design:type",Object)],fG.prototype,"ytdHorizontalListBehavior",void 0);
_.k([_.g(_.GJ),_.t("design:type",Object)],fG.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],fG.prototype,"data",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],fG.prototype,"useCustomColors",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],fG.prototype,"useHighlightStyling",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.t("design:type",Object)],fG.prototype,"cardListStyle",void 0);_.k([_.X({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.t("design:type",Boolean)],fG.prototype,"empty",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.t("design:type",Boolean)],fG.prototype,"hasSubtitle",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.t("design:type",Boolean)],fG.prototype,"thumbnailStyle",void 0);_.k([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.t("design:type",Boolean)],fG.prototype,"hasGameCard",void 0);_.k([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.t("design:type",Boolean)],fG.prototype,"centerHeaderTitle",void 0);
_.k([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.t("design:type",Boolean)],fG.prototype,"hasPortraitMiniApp",void 0);_.k([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.t("design:type",Boolean)],fG.prototype,"hasSquareMiniApp",void 0);_.k([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.t("design:type",Boolean)],fG.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.k([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.t("design:type",Boolean)],fG.prototype,"hasInfoPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],fG.prototype,"isSearch",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],fG.prototype,"inlineStructuredDescription",void 0);_.k([_.$7("#scroll-container"),_.t("design:type",HTMLDivElement)],fG.prototype,"JSC$12921_scrollContainer",void 0);
_.k([_.X({computed:"computeInitialCountNumber(data.style.type)"}),_.t("design:type",Number)],fG.prototype,"initialCount",void 0);_.k([_.X({computed:"computeUseFloorScrolling(data.style.type)"}),_.t("design:type",Boolean)],fG.prototype,"useFloorScrolling",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.t("design:type",Boolean)],fG.prototype,"centerItems",void 0);_.k([_.X(),_.t("design:type",Object)],fG.prototype,"pageLoadingFromNavigation",void 0);
_.k([_.X(),_.t("design:type",Object)],fG.prototype,"currentIndex",void 0);_.k([_.X(),_.t("design:type",Number)],fG.prototype,"scrollCount",void 0);_.k([_.X(),_.t("design:type",Object)],fG.prototype,"supportComponentResize",void 0);_.k([_.$7("#items"),_.t("design:type",HTMLDivElement)],fG.prototype,"items",void 0);_.k([_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fG.prototype,"onIronResize",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fG.prototype,"dataChanged",null);_.k([_.X({reflectToAttribute:!0}),_.S("inlineStructuredDescription"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],fG.prototype,"hideNavigationButton",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],fG.prototype,"modernChapters",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],fG.prototype,"hasVideoAttributeViewModels",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],fG.prototype,"modernInfoPanels",null);fG=_.k([_.b({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],fG);
_.A(fG,"ytd-horizontal-card-list-renderer",function(){if(T2r!==void 0)return T2r;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return T2r=E},{mode:_.qi("kevlar_poly_si_batch_j072")?1:2});_.qW(cmf);var CwN=_.$3(cmf);_.qE(cmf,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var Vf=function(){var E=_.r.apply(this,arguments)||this;var B,I;E.isExpanded=(I=(B=E.data)==null?void 0:B.isExpanded)!=null?I:!1;E.disableExpand=!1;E.showProminentLabel=!1;E.showRightSideLabel=!0;E.toggleExpandableContent=function(T){E.disableExpand||(T.stopPropagation(),_.rA(_.W8(T),E.hostElement,["info","expanded-subtitle"])||(E.isExpanded=!E.isExpanded,E.ytRendererBehavior.logExplicitClick(E.data),E.JSC$12933_cardList&&!_.d("expandable_metadata_a11y_fix_ks")&&_.AJ(E,function(){_.ox(E.hostElement)})))};
E.useSquareThumbnail=!1;E.startX=0;return E};
_.L(Vf,_.r);_.l=Vf.prototype;_.l.computeUseSquareThumbnail=function(){var E;return(E=this.data)==null?void 0:E.useSquareThumbnail};
_.l.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"}}}}};
_.l.dataChanged=function(){if(this.data){var E,B;this.isExpanded=(B=(E=this.data)==null?void 0:E.isExpanded)!=null?B:!1;var I,T,e,c;if(E=this.isDarkTheme()?(I=this.data)==null?void 0:(T=I.colorData)==null?void 0:T.darkColorPalette:(e=this.data)==null?void 0:(c=e.colorData)==null?void 0:c.lightColorPalette){var Y,v;if((Y=this.data)==null?0:(v=Y.colorData)==null?0:v.vibrantColorPalette)E.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.zI(this.hostElement,E)}}};
_.l.isExpandedChanged=function(){this.isExpanded&&this.JSC$12933_cardList&&_.$O(this.JSC$12933_cardList,"iron-resize")};
_.l.computeIsExpanded=function(E){return!!E.isExpanded};
_.l.computeShowProminentLabel=function(E,B){var I;return!!(E==null?0:(I=E.header)==null?0:I.showLeadingCollapsedLabel)&&!B};
_.l.computeShowRightSideLabel=function(E,B){var I;return!(E==null?0:(I=E.header)==null?0:I.showLeadingCollapsedLabel)&&!B};
_.l.captureContentClick=function(E){if(!this.disableExpand)if(_.d("expandable_metadata_fix_killswitch")){var B=E.target;_.JHr(B,"ytd-macro-markers-list-item-renderer")||E.stopPropagation();(B==null?void 0:B.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.rA(_.W8(E),this.hostElement,["items"])||_.XZ(_.W8(E),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.l.timestampClick=function(E){E.stopPropagation();var B,I;(E=(B=this.data)==null?void 0:(I=B.header)==null?void 0:I.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(E)};
_.l.onDown=function(E){E.stopPropagation();this.startX=E.detail?E.detail.x:0};
_.l.onUp=function(E){this.skipKeyInteraction(E)&&E.stopPropagation()};
_.l.skipKeyInteraction=function(E){var B=E.target;if((B==null?void 0:B.id)==="scroll-container"||(B==null?void 0:B.id)==="items"||E.detail&&E.detail.x!==this.startX)return!0;E=_.W8(E);E=_.p(E);for(B=E.next();!B.done;B=E.next()){B=B.value;if(B===this.hostElement)break;if(B.hasAttribute&&B.hasAttribute("skip-key-interaction"))return!0}return!1};
_.l.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Up.Object.defineProperties(Vf.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var E;return!!_.h((E=this.data)==null?void 0:E.expandedContent,SHt)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var E;return!!_.h((E=this.data)==null?void 0:E.expandedContent,_.s5N)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var E,B;return!((E=this.data)==null||!E.useCustomColors)&&!((B=this.data)==null||!B.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var E,B;return!!((E=this.data)==null?0:(B=E.header)==null?0:B.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var E,B;return!!((E=this.data)==null?0:(B=E.header)==null?0:B.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var E,B;return!!((E=this.data)==null?0:(B=E.header)==null?0:B.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Vf.prototype.onUp=Vf.prototype.onUp;Vf.prototype.onDown=Vf.prototype.onDown;Vf.prototype.isExpandedChanged=Vf.prototype.isExpandedChanged;Vf.prototype.dataChanged=Vf.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Vf.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Vf.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Vf.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Vf.prototype,"isExpanded",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Vf.prototype,"disableExpand",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],Vf.prototype,"isSearch",void 0);
_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],Vf.prototype,"isWatch",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.t("design:type",Object)],Vf.prototype,"showProminentLabel",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.t("design:type",Object)],Vf.prototype,"showRightSideLabel",void 0);
_.k([_.X({value:!1,reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Vf.prototype,"hasVideoSummary",null);_.k([_.X({value:!1,reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Vf.prototype,"hasLockupViewModel",null);_.k([_.X({reflectToAttribute:!0}),_.S("data","isWatch"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Vf.prototype,"useCustomColors",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data","isExpanded"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Vf.prototype,"showInfoButton",null);_.k([_.S("data","isExpanded"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Vf.prototype,"showTimestamp",null);_.k([_.S("data","isExpanded"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Vf.prototype,"showExpandedSubtitle",null);
_.k([_.S("data","isExpanded"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Vf.prototype,"showThumbnail",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Vf.prototype,"useVppShoppingDestinationStyle",null);_.k([_.X(),_.t("design:type",Object)],Vf.prototype,"toggleExpandableContent",void 0);_.k([_.$7("ytd-horizontal-card-list-renderer"),_.t("design:type",Object)],Vf.prototype,"JSC$12933_cardList",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.t("design:type",Object)],Vf.prototype,"useSquareThumbnail",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Vf.prototype,"dataChanged",null);_.k([_.EM("isExpanded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Vf.prototype,"isExpandedChanged",null);
_.k([_.RN("down"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Vf.prototype,"onDown",null);_.k([_.RN("up"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Vf.prototype,"onUp",null);Vf=_.k([_.b({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Vf);
_.A(Vf,"ytd-expandable-metadata-renderer",function(){if(eWZ!==void 0)return eWZ;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return eWZ=E},{mode:1});var wKh,ZWR=function(){if(wKh!==void 0)return wKh;var E=document.createElement("template");_.G(E,'\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="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" 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      <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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return wKh=E};_.QH("itemSectionRenderer","videoRenderer","ytd-video-renderer");var qc=function(){var E=_.r.apply(this,arguments)||this;E.disableExpand=!1;E.shouldShowChannelInfo=!1;E.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return E};
_.L(qc,_.r);_.l=qc.prototype;_.l.computeUseSearchUi=function(){var E,B;return this.isSearch||((E=this.data)==null?void 0:(B=E.style)==null?void 0:B.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.l.computeUseThreeLineTitle=function(){var E;return((E=this.data)==null?void 0:E.maxTitleLines)===3};
_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.d("polymer_video_renderer_defer_menu")&&!K6u?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]]"}}}}}};
_.l.attached=function(){_.VQ(this.hostElement,"blue-links",_.d("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.qK(_.n(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var E=this.get("data.buttons.buttonRenderer.serviceEndpoint"),B;E&&((B=_.h(E.commandMetadata,_.LU))==null?0:B.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(E);this.updateInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12938_inlinePreviewHoverListener=UO({mediaRenderer:this,lockupElement:this.JSC$12938_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.l.clearInlinePreviewHoverListeners=function(){var E;(E=this.JSC$12938_inlinePreviewHoverListener)==null||BD(E)};
_.l.onTextWrapperClick=function(E){var B,I,T=this.hideTranslation?(B=this.data)==null?void 0:B.untranslatedNavigationEndpoint:(I=this.data)==null?void 0:I.navigationEndpoint;B=_.rA(_.W8(E),this.hostElement,["expandable-metadata"]);!T||B&&!_.d("expandable_metadata_fix_killswitch")||_.XZ(_.W8(E),this.hostElement,["A".toString(),"BUTTON".toString()])||_.$O(this.hostElement,"yt-navigate",{endpoint:T})};
_.l.computeThumbnailWidth=function(E,B,I,T,e){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:T?e==="MASSIVE"?600:e==="BIG"?500:e==="MEDIUM"?450:420:I?360:B?128:E?210:246};
_.l.computeUseBiggerThumbs=function(E){return E&&_.d("enable_desktop_search_bigger_thumbs")};
_.l.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.l.computeVideoStyle=function(){if(_.d("enable_video_style")){var E,B;return(E=this.data)==null?void 0:(B=E.style)==null?void 0:B.value}};
_.l.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.l.handleHideItemSectionVideosByIdCommand=function(E){var B;E=(B=_.h(E,Tdh))==null?void 0:B.videoId;this.data&&this.data.videoId===E&&(this.isHidden=!0)};
_.l.getMetadataSnippetContainerClass=function(E){return E?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.l.computeTitleText=function(E,B,I){return E?I:B};
_.l.computeDescriptionSnippet=function(E,B,I){return E?I:B};
_.l.computeSnippetText=function(E,B,I){return E?I:B};
_.l.computeNavigationEndpoint=function(E,B){return E?B==null?void 0:B.untranslatedNavigationEndpoint:B==null?void 0:B.navigationEndpoint};
_.l.hideInlineTitleIcon=function(E,B){return E||!B};
_.Up.Object.defineProperties(qc.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 E;return(E=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?E:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.JSC$12938_inlinePreviewHoverListener)==null?0:zK(E))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Up.Object.defineProperties(qc,{template:{configurable:!0,enumerable:!0,get:function(){return ZWR()}}});
qc.prototype.dataChanged=qc.prototype.dataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],qc.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],qc.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],qc.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.g(_.S_),_.t("design:type",Object)],qc.prototype,"ytdLockupBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],qc.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],qc.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],qc.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],qc.prototype,"isBackstageVideo",void 0);
_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],qc.prototype,"isPostCompactVideo",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],qc.prototype,"isHistory",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],qc.prototype,"isRichGridVideoPost",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],qc.prototype,"isHidden",void 0);
_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],qc.prototype,"isSearch",void 0);_.k([_.X({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.t("design:type",Boolean)],qc.prototype,"useSearchUi",void 0);_.k([_.X({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.t("design:type",Boolean)],qc.prototype,"useThreeLineTitle",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.t("design:type",Boolean)],qc.prototype,"useBiggerThumbs",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.t("design:type",Object)],qc.prototype,"videoStyle",void 0);_.k([_.X({computed:"computeDisableExpand(videoStyle)"}),_.t("design:type",Object)],qc.prototype,"disableExpand",void 0);
_.k([_.X({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.t("design:type",Object)],qc.prototype,"shouldShowChannelInfo",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.EF("desktop_search_bigger_thumbs_style")}}),
_.t("design:type",String)],qc.prototype,"biggerThumbsStyle",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.t("design:type",String)],qc.prototype,"inlineTitleIcon",void 0);_.k([_.X({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.t("design:type",Object)],qc.prototype,"computedNavigationEndpoint",void 0);_.k([_.X({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(E,B){return _.cP(E.entities,"searchVideoResultEntity",B)}}),
_.t("design:type",Object)],qc.prototype,"searchVideoResultEntity",void 0);_.k([_.$7("ytd-thumbnail"),_.t("design:type",HTMLElement)],qc.prototype,"thumbnail",void 0);_.k([_.$7("#dismissible"),_.t("design:type",HTMLElement)],qc.prototype,"JSC$12938_dismissibleMedia",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qc.prototype,"dataChanged",null);
_.k([_.S("searchVideoResultEntity"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],qc.prototype,"hideTranslation",null);_.k([_.S("searchVideoResultEntity"),_.t("design:type",Array),_.t("design:paramtypes",[])],qc.prototype,"hiddenBadgeGroups",null);_.k([_.S("lockupIsHovered"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],qc.prototype,"isHovered",null);qc=_.k([_.b({is:"ytd-video-renderer",disableElementRegistration:!0})],qc);
_.A(qc,"ytd-video-renderer",function(){return ZWR()},{mode:_.qi("kevlar_poly_si_batch_j047")?1:2});var Ft=function(){var E=_.r.apply(this,arguments)||this;E.editDialog=null;E.roundedContainer=!0;E.isLoading=!1;E.isRichGrid=!1;E.isRichGridRepost=!1;E.reduceSidePaddings=_.d("reduce_side_paddings_in_shelf");E.JSC$12944_spinnerEl=null;return E};
_.L(Ft,_.r);_.l=Ft.prototype;
_.l.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"}}}};
_.l.contentTextChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){var E=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var B=0,I=this.data.actions&&this.data.actions.length;B<I;B++)this.openEditDialog(_.h(this.data.actions[B],GVt));if((B=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(B=this.get("buttonRenderer.hint.hintRenderer.hintId",B))&&B.startsWith("share-post-hint")){var T=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(T){_.FA.getInstance();var e=D3(_.jj(_.yu("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Ll.addLowPriorityJob(function(){_.cN(E.hostElement,e,T)})}}}};
_.l.updatePoll=function(E){E>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.l.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12944_spinnerEl||(this.JSC$12944_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.n(this.hostElement).appendChild(this.JSC$12944_spinnerEl));this.JSC$12944_spinnerEl&&(this.JSC$12944_spinnerEl.active=this.isLoading)};
_.l.onYtNavigate=function(E){var B=this.get("updateCommentDialogEndpoint",E.detail.endpoint);B&&(this.openEditDialog(B),E.stopPropagation())};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.onYtCommentPollRevert=function(E,B){B&&this.updatePoll(B.selectedChoiceIndex)};
_.l.onYtServiceRequestSent=function(E,B){var I;B.endpoint&&(_.h(B.endpoint,Vp$)||_.h(B.endpoint,f_D)&&((I=_.h(B.endpoint,f_D))==null||!I.clientActions))&&(this.isLoading=!0);if(B.actions)for(E=0;E<B.actions.length;E++)I=B.actions[E],_.h(I,sS)&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I==void 0&&(I=-1),this.updatePoll(I))};
_.l.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.l.openEditDialog=function(E){E&&E.dialog&&(this.editDialog=E.dialog,E=this.editDialogEl.firstElementChild)&&(E.focus(),E.openDialog&&E.openDialog())};
_.l.computeIsPostHidden=function(E,B){return!!E||B};
_.l.computeSurfaceType=function(E){return E?E.toLowerCase().replace(/_/g,"-"):""};
_.l.computeUsesCompactLockup=function(E){return E==="BACKSTAGE_SURFACE_TYPE_HOME"||E==="BACKSTAGE_SURFACE_TYPE_SEARCH"||E==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||E==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||E==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||E==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.l.computeShowWithoutToolbar=function(E){return!E.actionButtons&&!E.actionMenu};
_.l.computePostAttachment=function(E){if(E.backstageAttachment){if(_.h(E.backstageAttachment,sAX))return"poll";if(_.h(E.backstageAttachment,cc6))return"quiz";if(_.h(E.backstageAttachment,_.H2r))return"video";if(_.h(E.backstageAttachment,i2u))return"uploaded-videos";if(_.h(E.backstageAttachment,$yR))return E.contentText?"image":"image-only";if(_.h(E.backstageAttachment,IMl))return"playlist"}return"none"};
_.l.computePostTabIndex=function(E){return E?0:-1};
_.l.computeButtonTooltipPosition=function(E){return this.computeUsesCompactLockup(E)?"top":"bottom"};
_.l.computeHasText=function(E){return!(E==null||!E.contentText)};
_.l.onTap=function(E){var B,I;if(((B=this.data)==null?0:B.navigationEndpoint)&&((I=this.data)==null?void 0:I.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var T;((T=this.data)==null?0:T.navigationEndpoint)&&!_.XZ(_.W8(E)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Up.Object.defineProperties(Ft.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.voteCount)||_.jj("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.h(this.data.backstageAttachment,sAX))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.h(this.data.backstageAttachment,i2u))}}});
Ft.prototype.onYtServiceRequestCompleted=Ft.prototype.onYtServiceRequestCompleted;Ft.prototype.onYtServiceRequestSent=Ft.prototype.onYtServiceRequestSent;Ft.prototype.onYtCommentPollRevert=Ft.prototype.onYtCommentPollRevert;Ft.prototype.onYtCommentboxDismiss=Ft.prototype.onYtCommentboxDismiss;Ft.prototype.onYtNavigate=Ft.prototype.onYtNavigate;Ft.prototype.isLoadingChanged=Ft.prototype.isLoadingChanged;Ft.prototype.dataChanged=Ft.prototype.dataChanged;Ft.prototype.contentTextChanged=Ft.prototype.contentTextChanged;
_.k([_.g(_.GJ),_.t("design:type",Object)],Ft.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Ft.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ft.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],Ft.prototype,"editDialog",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Ft.prototype,"roundedContainer",void 0);_.k([_.X(),_.t("design:type",Object)],Ft.prototype,"isLoading",void 0);_.k([_.X({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.t("design:type",String)],Ft.prototype,"surface",void 0);
_.k([_.X({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Ft.prototype,"usesCompactLockup",void 0);_.k([_.X({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Ft.prototype,"showWithoutToolbar",void 0);_.k([_.X({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.t("design:type",String)],Ft.prototype,"attachment",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Ft.prototype,"isRichGrid",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Ft.prototype,"isRichGridRepost",void 0);_.k([_.X({reflectToAttribute:!0,value:_.d("use_better_post_dismissals")}),_.t("design:type",Boolean)],Ft.prototype,"useBetterPostDismissals",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Ft.prototype,"reduceSidePaddings",void 0);
_.k([_.X({computed:"computeHasText(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Ft.prototype,"hasText",void 0);_.k([_.$7("#expander"),_.t("design:type",Object)],Ft.prototype,"expander",void 0);_.k([_.$7("#action-buttons"),_.t("design:type",Object)],Ft.prototype,"actionButtons",void 0);_.k([_.$7("#edit-dialog"),_.t("design:type",HTMLElement)],Ft.prototype,"editDialogEl",void 0);
_.k([_.EM("data.contentText"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ft.prototype,"contentTextChanged",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ft.prototype,"dataChanged",null);_.k([_.EM("isLoading"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ft.prototype,"isLoadingChanged",null);
_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Ft.prototype,"onYtNavigate",null);_.k([_.RN("yt-commentbox-dismiss"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ft.prototype,"onYtCommentboxDismiss",null);_.k([_.RN("yt-comment-poll-revert"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],Ft.prototype,"onYtCommentPollRevert",null);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],Ft.prototype,"onYtServiceRequestSent",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],Ft.prototype,"onYtServiceRequestCompleted",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Ft.prototype,"voteCount",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Ft.prototype,"commentCount",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Ft.prototype,"hasPoll",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Ft.prototype,"hasUploadedVideo",null);Ft=_.k([_.b({is:"ytd-post-renderer",disableElementRegistration:!0})],Ft);
_.A(Ft,"ytd-post-renderer",function(){if(GoZ!==void 0)return GoZ;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return GoZ=E},{mode:1});var PwD;var znV;var Dd=function(){return _.r.apply(this,arguments)||this};
_.L(Dd,_.r);Dd.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Dd.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.fz.YtdHorizontalListBehavior),_.t("design:type",Object)],Dd.prototype,"ytdHorizontalListBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Dd.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Dd.prototype,"data",void 0);
_.k([_.X({value:"$.items.children"}),_.t("design:type",String)],Dd.prototype,"itemsPath",void 0);_.k([_.X({value:1}),_.t("design:type",Number)],Dd.prototype,"initialCount",void 0);_.k([_.X(),_.t("design:type",String)],Dd.prototype,"surface",void 0);Dd=_.k([_.b({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],Dd);
_.A(Dd,"ytd-post-multi-image-renderer",function(){if(znV!==void 0)return znV;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return znV=E},{mode:_.qi("kevlar_poly_si_batch_j079")?1:2});var maN={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},KG=function(){var E=_.r.apply(this,arguments)||this;E.hasInlineCommentSection=!1;E.editDialog=null;E.isLoading=!1;E.shouldHideAuthor=!1;E.shouldShowVideoTime=!1;
E.isInEngagementPanel=!1;E.hideBorder=!1;E.usesFullLockup=!1;E.shouldShowMenuInCompactView=!1;E.JSC$12960_spinnerEl=null;E.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return E};
_.L(KG,_.r);_.l=KG.prototype;_.l.configureRendererStamper=function(){return maN};
_.l.computeIsPollHeaderEnabled=function(E){return(E==null?void 0:E.pollMetadataIcon)!=null};
_.l.getPublishTimeStampString=function(E,B){B=new Date((Number(B)-60*((new Date).getTimezoneOffset()-(new Date(Number(B)*1E3)).getTimezoneOffset()))*1E3);B=(new oY(10)).format(B);if(E&&E.runs&&E.runs.length)for(var I=0;I<E.runs.length;I++)E.runs[I].text&&(E.runs[I].text=E.runs[I].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",B));return E};
_.l.created=function(){this.JSC$12960_spinnerEl=null};
_.l.contentTextChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var E;if((E=this.data)==null?0:E.actions){E=_.p(this.data.actions);for(var B=E.next();!B.done;B=E.next())this.openEditDialog(_.h(B.value,GVt))}};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){_.n(this.hostElement).querySelector("#action-buttons").reply()};
_.l.updatePoll=function(E,B){B&&this.set("data.pollMetadataVoteCountText",B);this.hasInlineCommentSection&&(E=E>=0,B=_.n(this.hostElement).querySelector("#action-buttons"),E?B.reply():B.hideReplyDialog())};
_.l.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12960_spinnerEl||(this.JSC$12960_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.n(this.hostElement).appendChild(this.JSC$12960_spinnerEl));this.JSC$12960_spinnerEl&&(this.JSC$12960_spinnerEl.active=this.isLoading)};
_.l.onYtNavigate=function(E){var B=this.get("updateCommentDialogEndpoint",E.detail.endpoint);B&&(this.openEditDialog(B),E.stopPropagation())};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.onYtCommentPollRevert=function(E,B){B&&this.updatePoll(B.selectedChoiceIndex,B.totalVotes)};
_.l.onYtServiceRequestSent=function(E,B){E.stopPropagation();E=_.h(B.endpoint,f_D);if(_.h(B.endpoint,Vp$)||E&&!E.clientActions)this.isLoading=!0;if(B.actions)for(E=0;E<B.actions.length;E++){var I=B.actions[E],T=_.h(I,sS);T&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I===void 0&&(I=-1),this.updatePoll(I,T.totalVotes))}};
_.l.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.l.openEditDialog=function(E){E&&E.dialog&&(this.editDialog=E.dialog,E=this.editDialogElement.firstElementChild)&&(E.focus(),E.openDialog&&E.openDialog())};
_.l.computeIsBodyHidden=function(E,B){return!!E||B};
_.Up.Object.defineProperties(KG.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var E,B;if((E=this.data)==null?0:(B=E.pollMetadataIcon)==null?0:B.iconType)return _.R3(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.voteCount)||_.jj("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.h(this.data.backstageAttachment,sAX))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.h(this.data.backstageAttachment,cc6))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.h(this.data.backstageAttachment,i2u))}}});
KG.prototype.onYtServiceRequestCompleted=KG.prototype.onYtServiceRequestCompleted;KG.prototype.onYtServiceRequestSent=KG.prototype.onYtServiceRequestSent;KG.prototype.onYtCommentPollRevert=KG.prototype.onYtCommentPollRevert;KG.prototype.onYtCommentboxDismiss=KG.prototype.onYtCommentboxDismiss;KG.prototype.onYtNavigate=KG.prototype.onYtNavigate;KG.prototype.isLoadingChanged=KG.prototype.isLoadingChanged;KG.prototype.dataChanged=KG.prototype.dataChanged;KG.prototype.contentTextChanged=KG.prototype.contentTextChanged;
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],KG.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],KG.prototype,"rendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],KG.prototype,"rendererstamperBehavior",void 0);_.k([_.$7("#contentTextExpander"),_.t("design:type",Object)],KG.prototype,"expander",void 0);
_.k([_.$7("#edit-dialog"),_.t("design:type",Element)],KG.prototype,"editDialogElement",void 0);_.k([_.X(),_.t("design:type",Object)],KG.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],KG.prototype,"hasInlineCommentSection",void 0);_.k([_.X(),_.t("design:type",Object)],KG.prototype,"editDialog",void 0);_.k([_.X(),_.t("design:type",Object)],KG.prototype,"isLoading",void 0);
_.k([_.X({computed:"computeIsPollHeaderEnabled(data)"}),_.t("design:type",Boolean)],KG.prototype,"isPollHeaderEnabled",void 0);_.k([_.X(),_.t("design:type",Object)],KG.prototype,"shouldHideAuthor",void 0);_.k([_.X(),_.t("design:type",Object)],KG.prototype,"shouldShowVideoTime",void 0);_.k([_.X(),_.t("design:type",Object)],KG.prototype,"isInEngagementPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KG.prototype,"hideBorder",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KG.prototype,"usesFullLockup",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KG.prototype,"shouldShowMenuInCompactView",void 0);_.k([_.S("isInEngagementPanel"),_.t("design:type",Number),_.t("design:paramtypes",[])],KG.prototype,"postTextMaxLines",null);_.k([_.S("data.icon.iconType"),_.t("design:type",Object),_.t("design:paramtypes",[])],KG.prototype,"pollIcon",null);
_.k([_.EM("data.contentText"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KG.prototype,"contentTextChanged",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KG.prototype,"dataChanged",null);_.k([_.EM("isLoading"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KG.prototype,"isLoadingChanged",null);
_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],KG.prototype,"onYtNavigate",null);_.k([_.RN("yt-commentbox-dismiss"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KG.prototype,"onYtCommentboxDismiss",null);_.k([_.RN("yt-comment-poll-revert"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],KG.prototype,"onYtCommentPollRevert",null);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],KG.prototype,"onYtServiceRequestSent",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],KG.prototype,"onYtServiceRequestCompleted",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],KG.prototype,"voteCount",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],KG.prototype,"commentCount",null);_.k([_.S("data.backstageAttachment"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],KG.prototype,"hasPoll",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],KG.prototype,"hasQuiz",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],KG.prototype,"hasUploadedVideo",null);
KG=_.k([_.b({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],KG);
_.A(KG,"ytd-backstage-post-renderer",function(){if(PwD!==void 0)return PwD;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return PwD=E},{mode:1});var QDR;var RM=function(){var E=_.r.apply(this,arguments)||this;E.editDialog=null;E.showExpandButton=!1;E.isRichGrid=!1;E.usesFullLockup=!1;return E};
_.L(RM,_.r);_.l=RM.prototype;_.l.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"}}}};
_.l.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.l.computeShowExpandButton=function(E){return this.usesCompactLockup||E&&E.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.l.computeUsesCompactLockup=function(E){return!!E.condensedContent};
_.l.computeShowFullContentText=function(E){return!E};
_.l.onYtNavigate=function(E){E=this.get("updateCommentDialogEndpoint",E.detail.endpoint);this.openEditDialog(E)};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.openEditDialog=function(E){E&&E.dialog&&(this.editDialog=E.dialog,E=this.repostEditDialogEl.firstElementChild)&&(E.focus(),E.openDialog&&E.openDialog())};
_.l.onTap=function(E){if(this.data){var B=null;this.usesCompactLockup&&!_.XZ(_.W8(E)||[],this.hostElement,["YT-IMG-SHADOW"])?B=this.get("navigationEndpoint",this.data):E.target===this.moreButtonEl&&(B=this.get("navigationEndpoint",E.target.data));B&&_.$O(this.hostElement,"yt-navigate",{endpoint:B})}};
RM.prototype.onYtCommentboxDismiss=RM.prototype.onYtCommentboxDismiss;RM.prototype.onYtNavigate=RM.prototype.onYtNavigate;RM.prototype.dataChanged=RM.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],RM.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],RM.prototype,"editDialog",void 0);_.k([_.X({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],RM.prototype,"usesCompactLockup",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RM.prototype,"showExpandButton",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RM.prototype,"isRichGrid",void 0);
_.k([_.X({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.t("design:type",Boolean)],RM.prototype,"showFullContentText",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RM.prototype,"usesFullLockup",void 0);_.k([_.$7("#more"),_.t("design:type",Object)],RM.prototype,"moreButtonEl",void 0);_.k([_.$7("#repost-content-text"),_.t("design:type",HTMLElement)],RM.prototype,"repostContentTextEl",void 0);
_.k([_.$7("#repost-edit-dialog"),_.t("design:type",HTMLElement)],RM.prototype,"repostEditDialogEl",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],RM.prototype,"dataChanged",null);_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],RM.prototype,"onYtNavigate",null);
_.k([_.RN("yt-commentbox-dismiss"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],RM.prototype,"onYtCommentboxDismiss",null);RM=_.k([_.b({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],RM);
_.A(RM,"ytd-shared-post-renderer",function(){if(QDR!==void 0)return QDR;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return QDR=E},{mode:1});var daV;var hnN;var EU=function(){return _.r.apply(this,arguments)||this};
_.L(EU,_.r);EU.prototype.attached=function(){var E=this;this.networkStatusManager||(this.networkStatusManager=new _.Xg,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){E.onlineHandler()}))};
EU.prototype.detached=function(){var E=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){E.onlineHandler()}),delete this.networkStatusManager)};
EU.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],EU.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],EU.prototype,"data",void 0);EU=_.k([_.b({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],EU);
_.A(EU,"ytd-reload-page-button-renderer",function(){if(hnN!==void 0)return hnN;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
return hnN=E},{mode:1});var sDz={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"},BH=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return E};
_.L(BH,_.r);_.l=BH.prototype;_.l.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.l.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.l.computeHasBodyText=function(E){return!!E.bodyText};
_.l.computeButtons=function(E){var B=[];E.ctaButton&&B.push(E.ctaButton);E.secondaryButton&&B.push(E.secondaryButton);return B};
_.l.computeRendererStyle=function(E){return E.style?E.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():E.icon?"":"no-icon"};
_.l.getIconName=function(E,B){B=B===void 0?!1:B;if(E===void 0)return"";E=this.get("icon.iconType",E);var I;_.d("enable_hlp_client_icon_pick")?I=this.getThemedIcon(E,B):I=E;(B=sDz[I])||(B="yt-icons");return[B,I].join(":")};
_.l.getThemedIcon=function(E,B){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(E)?B?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(E)?B?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":E};
_.l.isThumbnail=function(E){return!!E.thumbnail};
_.l.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],BH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],BH.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],BH.prototype,"data",void 0);
_.k([_.X({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.t("design:type",String)],BH.prototype,"rendererStyle",void 0);_.k([_.X({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.t("design:type",String)],BH.prototype,"iconName",void 0);_.k([_.X({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],BH.prototype,"thumbnail",void 0);_.k([_.X({computed:"computeButtons(data)"}),_.t("design:type",Array)],BH.prototype,"buttons",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],BH.prototype,"isDarkTheme",void 0);_.k([_.X({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],BH.prototype,"hasBodyText",void 0);BH=_.k([_.b({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],BH);
_.A(BH,"ytd-background-promo-renderer",function(){if(daV!==void 0)return daV;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return daV=E},{mode:1});var ul$;var $o=function(){var E=_.r.apply(this,arguments)||this;E.collections=_.d("web_modern_collections_v2");return E};
_.L($o,_.r);_.Up.Object.defineProperties($o.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T,e,c;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(E=this.data)==null?void 0:(B=E.thumbnail)==null?void 0:B.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(T=I.thumbnail)==null?void 0:T.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(c=e.thumbnail)==null?void 0:c.darkColorPalette,experimentEnabled:this.collections}}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],$o.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],$o.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],$o.prototype,"collections",void 0);_.k([_.S("data","collections"),_.t("design:type",Object),_.t("design:paramtypes",[])],$o.prototype,"collectionStack",null);$o=_.k([_.b({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],$o);
_.A($o,"ytd-compact-station-renderer",function(){if(ul$!==void 0)return ul$;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return ul$=E},{mode:1});var LCZ;var IW=function(){var E=_.r.apply(this,arguments)||this;E.isRichGrid=!1;return E};
_.L(IW,_.r);IW.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]]"}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],IW.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],IW.prototype,"isRichGrid",void 0);IW=_.k([_.b({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],IW);
_.A(IW,"ytd-grid-channel-renderer",function(){if(LCZ!==void 0)return LCZ;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return LCZ=E},{mode:1});var xaz;var Tt=function(){return _.r.apply(this,arguments)||this};
_.L(Tt,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Tt.prototype,"data",void 0);Tt=_.k([_.b({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Tt);
_.A(Tt,"ytd-grid-movie-playlist-renderer",function(){if(xaz!==void 0)return xaz;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return xaz=E},{mode:1});var GYX;var er=function(){var E=_.r.apply(this,arguments)||this;E.downloadProgress=0;E.transferState="TRANSFER_STATE_UNKNOWN";E.modernButtons=_.d("web_modern_buttons");E.useModernCollectionsV2=_.d("web_modern_collections_v2");return E};
_.L(er,_.r);er.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
er.prototype.configureRendererStamper=function(){return{"data.menu":EC}};
er.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
er.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.d("woffle_playlist_renderer_killswitch")){var E,B=Z_B(this.entityInfo,this.transferState,this.downloadProgress,(E=this.data)==null?void 0:E.playlistId,this.isOnline);E=B.viewPlaylistText;var I=B.badges;B=B.thumbnailOverlays;this.isDownloads=!!E||!!I;this.set("data.viewPlaylistText",E);I&&I.length>0&&this.set("data.badges",I);B&&B.length>0&&this.set("data.thumbnailOverlays",
B)}};
_.Up.Object.defineProperties(er.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 E;return!((E=this.data)==null?0:E.menu)}}});
er.prototype.transferStateChanged=er.prototype.transferStateChanged;er.prototype.dataChanged=er.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],er.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],er.prototype,"ytdLockupBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],er.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],er.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X({selector:_.HUD,selectorArgs:["data.playlistId"]}),_.t("design:type",Object)],er.prototype,"downloadProgress",void 0);_.k([_.X({selector:_.HP,selectorArgs:["data.playlistId"]}),_.t("design:type",Object)],er.prototype,"transferState",void 0);_.k([_.X({selector:MpB,selectorArgs:["data.playlistId"]}),_.t("design:type",Object)],er.prototype,"entityInfo",void 0);_.k([_.X({selector:u2G}),_.t("design:type",Boolean)],er.prototype,"isOnline",void 0);
_.k([_.X(),_.t("design:type",Object)],er.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],er.prototype,"downloadRenderData",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],er.prototype,"modernButtons",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],er.prototype,"isDownloads",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],er.prototype,"useModernCollectionsV2",void 0);
_.k([_.S("transferState"),_.X({reflectToAttribute:!0}),_.t("design:type",String),_.t("design:paramtypes",[])],er.prototype,"downloadState",null);_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],er.prototype,"menuHidden",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],er.prototype,"dataChanged",null);
_.k([_.i6("transferState","downloadProgress","isOnline"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],er.prototype,"transferStateChanged",null);er=_.k([_.b({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],er);
_.A(er,"ytd-grid-playlist-renderer",function(){if(GYX!==void 0)return GYX;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return GYX=E},{mode:1});var OWV;var lY=function(){var E=_.r.apply(this,arguments)||this;E.collections=_.d("web_modern_collections_v2");return E};
_.L(lY,_.r);lY.prototype.configureRendererStamper=function(){return{"data.menu":EC,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Up.Object.defineProperties(lY.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T,e,c;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(E=this.data)==null?void 0:(B=E.thumbnail)==null?void 0:B.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(T=I.thumbnail)==null?void 0:T.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(c=e.thumbnail)==null?void 0:c.darkColorPalette,experimentEnabled:this.collections}}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],lY.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],lY.prototype,"ytdLockupBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],lY.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],lY.prototype,"collections",void 0);_.k([_.S("data","collections"),_.t("design:type",Object),_.t("design:paramtypes",[])],lY.prototype,"collectionStack",null);lY=_.k([_.b({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],lY);
_.A(lY,"ytd-grid-radio-renderer",function(){if(OWV!==void 0)return OWV;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return OWV=E},{mode:1});var nDh;var cH=function(){var E=_.r.apply(this,arguments)||this;E.useModernCollectionsV2=_.d("web_modern_collections_v2");return E};
_.L(cH,_.r);cH.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
cH.prototype.computeNavigationEndpoint=function(E){return qHi(E==null?void 0:E.navigationEndpoint)};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],cH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],cH.prototype,"ytdLockupBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],cH.prototype,"data",void 0);_.k([_.X({computed:"computeNavigationEndpoint(data)"}),_.t("design:type",Object)],cH.prototype,"computedNavigationEndpoint",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cH.prototype,"useModernCollectionsV2",void 0);cH=_.k([_.b({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],cH);
_.A(cH,"ytd-grid-show-renderer",function(){if(nDh!==void 0)return nDh;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return nDh=E},{mode:1});var M8Z;_.iY=function(E){this.playerClient=E};
_.HWV=function(E,B,I){I=I===void 0?{}:I;return E.playerClient.setOption("ad",B,I)};
_.iY.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.iY.prototype.executeCommand=function(E,B){this.getOptions().includes("executeCommand")?_.HWV(this,"executeCommand",{command:E,layoutId:B}):_.DR("Calling executeCommand when adModule is not loaded")};var pm=function(){return _.r.apply(this,arguments)||this};
_.L(pm,_.r);pm.prototype.getLayoutId=function(){var E=_.WA("yt.www.ads.eventcache.getLastCompanionData");return E?(E=E())&&E.layoutId:null};
pm.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var E=_.jx(),B=this.getLayoutId(),I=this.data.clickthroughEndpoint;E&&B&&_.d("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?E.getPlayerPromise().then(function(T){(new _.iY(T)).executeCommand(I,B)}):_.$O(this.hostElement,"yt-navigate",{endpoint:I})}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],pm.prototype,"data",void 0);pm=_.k([_.b({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],pm);
_.A(pm,"ytd-shopping-companion-item-renderer",function(){if(M8Z!==void 0)return M8Z;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return M8Z=E},{mode:1});var Nnz;var Yo=function(){var E=_.r.apply(this,arguments)||this;E.isExpandableContent=!1;return E};
_.L(Yo,_.r);_.Up.Object.defineProperties(Yo.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return((E=this.data)==null?void 0:E.price)||((B=this.data)==null?void 0:(I=B.dealsData)==null?void 0:I.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var E,B;if((E=this.data)!=null&&E.dealsData&&((B=this.data)==null||!B.priceReplacementText)){E=this.data.dealsData;var I,T,e;return((I=E.salesData)==null?void 0:I.originalPrice)||((T=E.priceDropData)==null?void 0:T.referencePrice)||((e=E.promotionData)==null?void 0:e.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var E,B;return(E=this.data)==null?void 0:(B=E.dealsData)==null?void 0:B.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Yo.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Yo.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Yo.prototype,"isExpandableContent",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yo.prototype,"showCta",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yo.prototype,"ctaText",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yo.prototype,"hasPriceTopPosition",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yo.prototype,"hasPriceBottomPosition",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yo.prototype,"useNewStyle",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yo.prototype,"showPriceReplacementText",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yo.prototype,"priceValue",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yo.prototype,"showDeal",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yo.prototype,"showAffiliateDisclaimer",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yo.prototype,"useSaleStyle",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yo.prototype,"useFromBrandCtaStyle",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yo.prototype,"useFromVendorCtaStyle",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Yo.prototype,"useShoppingCollectionCtaStyle",null);Yo=_.k([_.b({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],Yo);
_.A(Yo,"ytd-vertical-product-card-renderer",function(){if(Nnz!==void 0)return Nnz;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Nnz=E},{mode:1});var gDD;var aW=function(){return _.r.apply(this,arguments)||this};
_.L(aW,_.r);aW.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],aW.prototype,"ytdLockupBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],aW.prototype,"data",void 0);aW=_.k([_.b({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],aW);
_.A(aW,"ytd-grid-movie-renderer",function(){if(gDD!==void 0)return gDD;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return gDD=E},{mode:1});var Snh;var vH=function(){var E=_.r.apply(this,arguments)||this;E.rounded=!0;E.itemStyle="small-item";return E};
_.L(vH,_.r);vH.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var E,B,I,T,e=(B=_.h((E=this.data)==null?void 0:E.buttonCommand,_.baR))==null?void 0:(I=B.item)==null?void 0:(T=I.notificationTextRenderer)==null?void 0:T.successResponseText;e&&_.iuf(this.hostElement,e)}};
_.Up.Object.defineProperties(vH.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?void 0:E.isProductPlaceholder)!==void 0&&((B=this.data)==null?void 0:B.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.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}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],vH.prototype,"rounded",void 0);_.k([_.X(),_.t("design:type",Object)],vH.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],vH.prototype,"itemStyle",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],vH.prototype,"hasPrice",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],vH.prototype,"hasPriceReplacementText",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],vH.prototype,"hasAdditionalFeesText",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],vH.prototype,"hasAffiliateDisclaimer",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],vH.prototype,"isProductPlaceholder",null);
_.k([_.X(),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],vH.prototype,"hideOpenInNewIcon",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],vH.prototype,"ariaLabel",null);vH=_.k([_.b({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],vH);
_.A(vH,"ytd-merch-shelf-item-renderer",function(){if(Snh!==void 0)return Snh;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Snh=E},{mode:1});var JEU=_.rp(function(E){var B=_.oH();_.rT(B,function(){return E.data().rendererContext});
return _.w("button-card-view-model",{el:B,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return E.data().title},
role:"button"},_.w(_.v$,{model:{}}),_.w("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.w("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.w(_.wU,{cond:function(){return E.data().image},
then:function(I){return _.w(_.Ja,{data:I,alt:function(){var T;return(T=E.data().title)!=null?T:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.w("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return E.data().title})))},"Sa");_.d("web_button_view_model_wcw_registration_killswitch")||_.oQ(JEU,"button-card-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){E=_.XS(E,{className:void 0});var B=E.data;E=E.className;var I=_.aJ(function(){return B().onTapCommand},void 0,"NprDr");
return _.w("ytd-shopping-item-card",{class:_.RQ("ytdShoppingItemCardHost",E)},_.w(_.Y3,{command:I,className:"ytdShoppingItemCardHostLink"},_.w("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.w(_.hM,{data:function(){return B().thumbnailViewModel}},{thumbnailViewModel:function(T){return _.w(_.W4,{data:T.data,
aspectRatio:3})}})),_.w("div",null,_.w("p",{class:"ytdShoppingItemCardHostItemTitle"},_.w(_.aS,{text:function(){return B().itemTitle}})),_.w("p",{class:"ytdShoppingItemCardHostPrice"},_.w(_.aS,{text:function(){return B().priceOrStatus}})))))},"Ta"),"ytd-shopping-item-card",{props:{data:_.Jh,
className:_.Jh}});var Ke=null,pwB={};var vFt="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(" "),ye={},ymG=(ye.FEwhat_to_watch="home",ye.FEhashtag="hashtag",ye.FEtrending="trending",ye.FEhistory="history",ye.SPunlimited="premium",ye.FEmemberships_and_purchases="paid_memberships",ye.SPredeem_code="redeem",ye.SPverify_location="locate",ye.SPminor_moment="minor_moment",
ye.FEmini_app_container="mini_app",ye.FEnews_destination="news",ye.SPopen_in_app="open_in_app",ye.FEexplore="explore",ye.FEsubscriptions="subscriptions",ye.FEsfv_audio_pivot="sfv_audio_pivot",ye.FEplaylist_aggregation="playlist_aggregation",ye);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");_.i1("init");var WCX=function(){},oDU=_.rp(function(E){var B=E.data;
var I=E.inlineMetadata;var T=E.aspectRatio;var e=E.scrimStyle;var c=E.className;var Y=E.useDefaultStyle;var v=new WCX,y=_.d("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",Z=_.aJ(function(){return(Y==null?0:Y())?y==="SHORTS_LOCKUP_STYLE_SLIM":B().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),P=_.aJ(function(){return _.s_(I)||Z()||!1},void 0,"pcPnBf"),z=function(){return(e==null?void 0:e())!==void 0?e==null?void 0:e():1};
E=_.oH(function(q){v&&(v.hostElement=q,M())});
_.VU(E,{visibilityCallback:function(q){var f=B().onFirstVisible;q&&f&&_.xg(f)},
showOption:{calledOnce:!0,state:"visible"}});c=_.RQ("shortsLockupViewModelHost",c);var m=_.oH(),u={};u=_.RQ(function(){return Z(),"shortsLockupViewModelHostThumbnailContainer"},(u.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.s_(T)===1},u.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.s_(T)===2},u.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!Z()},u.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.d("web_shorts_2_by_3_lockups_study")&&!_.d("desktop_search_enable_two_by_three_shorts_aspect_ratio")},u));
var x,M=function(){if(v){var q;(q=x)==null||BD(q);var f;v.hostElement&&((f=v.data)==null?0:f.inlinePlayerData)&&(x=UO({mediaRenderer:v,lockupElement:v.hostElement,thumbnailElement:m.value,videoPreviewOpts:PrD}))}};
_.m$(function(){v&&(v.data=B(),M())});
var N=_.aJ(function(){return B().thumbnail},void 0,"FXJKOd"),W=_.aJ(function(){return B().badge},void 0,"RHSDwe"),U=_.aJ(function(){return B().onTap},void 0,"twXQme");
return _.w("ytm-shorts-lockup-view-model",{el:E,class:c},_.w(_.VS,null,_.w(_.Y3,{command:U,className:_.RQ("shortsLockupViewModelHostEndpoint","reel-item-endpoint",""),ariaHidden:function(){return!P()},
tabIndex:function(){return P()?0:-1}},_.w("div",{el:m,
class:u},_.w(_.wU,{cond:N,then:function(){return _.w(_.Ja,{data:function(){return N()},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.w(_.wU,{cond:P,
then:function(){return _.w(XKl,{data:B,scrimStyle:z,useDefaultStyle:Y})}}),_.w(_.hM,{data:W},{badgeViewModel:function(q){return _.w(_.oM,{data:q.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.w(_.wU,{cond:function(){return P()&&B().menuOnTap},
then:function(){return _.w(rER,{data:B,inlineMetadata:!0})}}),_.w(_.wU,{cond:function(){return!P()},
then:function(){return _.w(bW6,{data:B,useDefaultStyle:Y})}})))},"Ua"),XKl=_.rp(function(E){var B=E.data;
var I=E.scrimStyle;var T=E.useDefaultStyle;var e=_.d("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",c=T&&_.d("web_hide_primary_text_for_pivot_panel"),Y=_.aJ(function(){return(T==null?0:T())?e==="SHORTS_LOCKUP_STYLE_SLIM":B().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"qtqqA");
E={};E=_.RQ("shortsLockupViewModelHostInlineMetadata",(E.shortsLockupViewModelHostMetadataRounded=function(){return!Y()},E.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(I==null?void 0:I())===3&&!_.d("enable_shorts_lockup_new_scrim")},E.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(I==null?void 0:I())===3&&_.d("enable_shorts_lockup_new_scrim")},E.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(I==null?void 0:I())===2||(I==null?void 0:
I())===4},E.shortsLockupViewModelHostShowOverPlayer=function(){return!0},E),"image-overlay-text");
var v={};return _.w("div",{class:E},_.w("h3",{class:_.RQ("shortsLockupViewModelHostMetadataTitle",(v.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(I==null?void 0:I())===4},v)),
"aria-label":function(){return B().accessibilityText}},_.w(_.wU,{cond:function(){var y;
return!((y=B().overlayMetadata)==null||!y.primaryText)&&!c},
then:function(){return _.w(_.aS,{text:function(){var y;return(y=B().overlayMetadata)==null?void 0:y.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.w(_.wU,{cond:function(){var y;
return(y=B().overlayMetadata)==null?void 0:y.secondaryText},
then:function(){return _.w(AEt,{data:B,scrimStyle:I,className:void 0})}}))},"Va"),bW6=_.rp(function(E){var B=E.data;
var I=E.useDefaultStyle;var T=_.d("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",e=_.aJ(function(){return(I==null?0:I())?T==="SHORTS_LOCKUP_STYLE_SLIM":B().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"VQCGke");
E=_.RQ(function(){return e()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var c,Y=_.TI(function(){var y;(y=c)==null||y.click();return!1}),v={};
return _.w("div",{class:E,"on:click":Y},_.w("h3",{class:_.RQ("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(v.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var y,Z;return!((y=B().overlayMetadata)==null?0:(Z=y.primaryText)==null?0:Z.content)},v)),
"aria-label":function(){return B().accessibilityText}},_.w(_.Y3,{ref:function(y){return void(c=y)},
command:function(){return B().onTap},
className:_.RQ("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var y,Z;return(y=B().overlayMetadata)==null?void 0:(Z=y.primaryText)==null?void 0:Z.content}},_.w(_.wU,{cond:function(){return!!B().overlayMetadata},
then:function(){return _.w(_.aS,{text:function(){var y;return(y=B().overlayMetadata)==null?void 0:y.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.w(_.wU,{cond:function(){var y;
return(y=B().overlayMetadata)==null?void 0:y.secondaryText},
then:function(){return _.w(AEt,{data:B,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.w(_.wU,{cond:function(){return B().menuOnTap},
then:function(){return _.w(rER,{data:B,inlineMetadata:!1})}}))},"Wa"),AEt=_.rp(function(E){var B=E.data;
var I=E.scrimStyle;E=E.className;var T={};return _.w("div",{class:_.RQ((T.shortsLockupViewModelHostMetadataSubhead=function(){return(I==null?void 0:I())!==4},T.shortsLockupViewModelHostMetadataSubheadNew=_.d("enable_shorts_lockup_new_scrim"),T.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(I==null?void 0:I())===4},T),E),
"aria-hidden":"true"},_.w(_.aS,{text:function(){var e;return(e=B().overlayMetadata)==null?void 0:e.secondaryText},
noStyleRuns:!0}))},"Xa"),rER=_.rp(function(E){var B=E.data;
var I=E.inlineMetadata;E={};E=_.RQ((E.shortsLockupViewModelHostInlineMetadataMenu=function(){return I()},E.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!I()},E.shortsLockupViewModelHostShowOverPlayer=function(){return!0},E),"image-overlay-text");
return _.w("div",{class:E},_.w(F3,{data:function(){return{style:I()?"overlay":"mono",accessibilityLabel:B().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(T){T.preventDefault();T.stopPropagation();var e=_.uu({elementsCommand:B().menuOnTap,forceNewState:!0});if(e==null?0:e.onclick)e.onclick(T)}}},
iconName:"MORE_VERT"}))},"Ya");var m4G=_.z8({badgeViewModel:anG}),Zu4=function(){},jDl=_.$3(hCc),Uau=_.rp(function(E){var B=E.data;
var I=E.inlineMetadata;var T=E.aspectRatio;var e=E.scrimStyle;var c=E.className;var Y=E.useDefaultStyle;E=_.aJ(function(){var y=B().entityId;return y?y.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"FWALZc");
var v=_.d("web_shorts_lockup_view_model_sink")?oDU:jDl;return _.w("ytm-shorts-lockup-view-model-v2",{class:_.RQ("shortsLockupViewModelHost",c)},_.w(_.lfl,{contentId:E,aspectRatio:function(){return(T==null?void 0:T())===1?1:(T==null?void 0:T())===2?2:4}},function(){return _.w(v,{data:B,
inlineMetadata:I,aspectRatio:T,scrimStyle:e,className:c,useDefaultStyle:Y})}))},"Za");
_.qW(hCc);_.qW(zCc);_.qW(d4F);_.qW(smc);_.qW(Qmt);_.oQ(Uau,"ytm-shorts-lockup-view-model-v2",{props:{data:_.bu,inlineMetadata:_.bu,aspectRatio:_.bu,scrimStyle:_.bu,className:_.bu,useDefaultStyle:_.bu}});var kYh=16/9*210,Cm=function(){var E=_.r.apply(this,arguments)||this;E.isExpandableContent=!1;E.hideShelfHeader=!1;E.engagementPanel=!1;E.buttonClasses=["arrow"];E.isSearch=!1;E.disableScrollEventListener=!1;E.containsLockup=!1;E.overrideArrowPositionForProductCard=!1;E.overrideArrowPositionForShoppingItemCard=!1;E.overrideArrowPositionForReelItems=!1;E.overrideArrowPositionForGridMovie=!1;E.overrideArrowPositionToCenter=!1;E.isSearchPostShelf=!1;E.overrideArrowPositionForMixedShelf=!1;E.overrideArrowPositionForMixedShelfShortsOnly=
!1;E.hasBigThumbsReelItems=!1;E.shouldUseMixedListHeight=!1;E.shouldUseShortsListHeight=!1;E.gridVideoWidth=0;E.isSearchVodShelf=!1;E.disableWheelScroll=!1;E.sizing="COMPACT";E.shortsLockupAspectRatio=0;return E};
_.L(Cm,_.r);_.l=Cm.prototype;
_.l.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]]"}}}}};
_.l.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.d("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.l.computeInitialCountNumber=function(E){if(!E)return 6;var B=E.items.some(function(c){return!!c.topicRecommendationsChipRenderer}),I=E.items.some(function(c){return!!c.displayAdRenderer}),T=this.computeShouldListItemsHaveEqualHeight(E),e=E.items.some(function(c){return!!c.gridPlaylistRenderer});
E=E.items.some(function(c){return!!c.shoppingItemCardViewModel});
return B?9:I?8:e||T?10:E?7:6};
_.l.computeContainsPost=function(E){return!!E&&!!E.items&&E.items.some(function(B){return!!B.postRenderer})};
_.l.computeContainsLockup=function(){if(_.d("web_horizontal_list_lockup_arrow_killswitch"))return!1;var E,B;return(E=this.data)==null?void 0:(B=E.items)==null?void 0:B.some(function(I){return!!I.lockupViewModel})};
_.l.maybeUpdateLockupAspectRatio=function(){var E,B;if(this.computeContainsLockup()&&((E=this.data)==null?0:(B=E.items)==null?0:B.length)){var I;E=yEi((I=this.data.items[0].lockupViewModel)==null?void 0:I.contentType,this.data.force16By9ThumbnailAspectRatio);I=fSi(E);I=this.computeLockupWidth()/I;_.Dk(this.hostElement,{"--yt-horizontal-list-content-height":I+"px"})}};
_.l.computeOverrideArrowPositionForProductCard=function(E){if(this.isExpandableContent)return!1;var B;return!!(E==null?0:(B=E.items)==null?0:B.some(function(I){return!!I.verticalProductCardRenderer}))};
_.l.computeOverrideArrowPositionForShoppingItemCard=function(E){var B;return!!(E==null?0:(B=E.items)==null?0:B.some(function(I){return!!I.shoppingItemCardViewModel}))};
_.l.computeOverrideArrowPositionForReelItemRenderer=function(E){return this.containsReelItemRenderer(E)};
_.l.computeHasBigThumbsReelItems=function(E,B){return E&&this.containsReelItemRenderer(B)};
_.l.computeShouldListItemsHaveEqualHeight=function(E){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(E==null?void 0:E.itemSizeConstraint)};
_.l.computeShouldListItemsHaveShortsHeight=function(E){return this.computeShouldListItemsHaveEqualHeight(E)&&!this.containsGridVideoRenderer(E)};
_.l.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.l.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.l.containsReelItemRenderer=function(E){var B;return!!(E==null?0:(B=E.items)==null?0:B.some(function(I){return!(!I.reelItemRenderer&&!I.shortsLockupViewModel)}))};
_.l.containsGridVideoRenderer=function(E){var B;return!!(E==null?0:(B=E.items)==null?0:B.some(function(I){return!!I.gridVideoRenderer||!!I.lockupViewModel}))};
_.l.computeContainsGridMovieRenderer=function(E){var B;return!!(E==null?0:(B=E.items)==null?0:B.some(function(I){return!!I.gridMovieRenderer}))};
_.l.computeOverrideArrowPositionToCenter=function(E){return this.computeIsSearchPostShelf(E)};
_.l.computeIsSearchPostShelf=function(E){var B;return!!(E==null?0:(B=E.items)==null?0:B.some(function(I){var T,e;return((e=(T=I.postRenderer)==null?void 0:T.surface)!=null?e:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.l.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(E){var B;return!!(E==null?0:(B=E.items)==null?0:B.some(function(I){var T,e,c;return((c=(T=I.backgroundPromoRenderer)==null?void 0:(e=T.style)==null?void 0:e.value)!=null?c:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.l.computeIsSearchVodShelf=function(E,B){return E&&this.containsGridVideoRenderer(B)};
_.l.computeDisableWheelScroll=function(E,B){return this.computeIsSearchVodShelf(E,B)};
_.l.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.l.computeShortsLockupAspectRatio=function(E){return E&&_.d("web_shorts_2_by_3_lockups_no_search")&&!_.d("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.l.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Dk(this.hostElement,{"--ytd-reel-item-thumbnail-height":kYh+"px"})};
Cm.prototype.dataChanged=Cm.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.fz.YtdHorizontalListBehavior),_.t("design:type",Object)],Cm.prototype,"ytdHorizontalListBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Cm.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],Cm.prototype,"isExpandableContent",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"hideShelfHeader",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"engagementPanel",void 0);_.k([_.X(),_.t("design:type",Array)],Cm.prototype,"buttonClasses",void 0);_.k([_.X(),_.t("design:type",Object)],Cm.prototype,"isSearch",void 0);
_.k([_.X(),_.t("design:type",Object)],Cm.prototype,"disableScrollEventListener",void 0);_.k([_.X({computed:"computeInitialCountNumber(data)"}),_.t("design:type",Number)],Cm.prototype,"initialCount",void 0);_.k([_.X({computed:"computeContainsPost(data)"}),_.t("design:type",Boolean)],Cm.prototype,"supportComponentResize",void 0);_.k([_.X({computed:"computeContainsPost(data)"}),_.t("design:type",Boolean)],Cm.prototype,"containsPost",void 0);
_.k([_.X({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"containsLockup",void 0);_.k([_.X({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Cm.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.k([_.X({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"overrideArrowPositionForProductCard",void 0);_.k([_.X({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.k([_.X({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"overrideArrowPositionForReelItems",void 0);_.k([_.X({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"overrideArrowPositionForGridMovie",void 0);
_.k([_.X({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"overrideArrowPositionToCenter",void 0);_.k([_.X({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"isSearchPostShelf",void 0);_.k([_.X({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.k([_.X({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.k([_.X({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"hasBigThumbsReelItems",void 0);
_.k([_.X({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"shouldUseMixedListHeight",void 0);_.k([_.X({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"shouldUseShortsListHeight",void 0);_.k([_.X({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"gridVideoWidth",void 0);
_.k([_.X({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"isSearchVodShelf",void 0);_.k([_.X({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.t("design:type",Object)],Cm.prototype,"disableWheelScroll",void 0);_.k([_.X({computed:"computeSizing(isSearch)"}),_.t("design:type",Object)],Cm.prototype,"sizing",void 0);
_.k([_.X({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.t("design:type",Object)],Cm.prototype,"shortsLockupAspectRatio",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Cm.prototype,"dataChanged",null);
_.A(Cm,"yt-horizontal-list-renderer",function(){if(Sdr===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);Sdr=E}E=Sdr;return E},{mode:1});var t8u;var ffN=[10,12,14,16,18,20,24,28,32,36],V8R=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],wz=function(){var E=_.r.apply(this,arguments)||this;E.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";E.hideOverflow=!1;E.useRoboto=!1;E.fontClass="";E.overflown=!1;E.actionMap={"yt-window-resized":"resize"};return E};
_.L(wz,_.r);_.l=wz.prototype;
_.l.attached=function(){var E=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();_.AJ(this,function(){E.resize()});
if(!_.cf){var B,I,T;(B=document)==null||(I=B.fonts)==null||(T=I.ready)==null||T.then(function(){E.resize()})}};
_.l.dataChanged=function(){this.resize()};
_.l.guideIsExpandedChanged=function(){this.resize()};
_.l.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 E=this.getMaxNumLines(),B=this.getMinFont(),I=this.getMaxFont(),T=this.useRoboto?ffN:V8R;for(T=T.filter(function(c){return c<=I&&c>=B});T.length>1;){var e=Math.floor(T.length/2);
this.updateFontSize(T[e]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=E)T=T.slice(e,T.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>E)T=T.slice(0,e);else break}this.updateFontSize(T[T.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(E)}};
_.l.handleOverflow=function(E){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>E&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",E.toString()))};
_.l.updateFontSize=function(E){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+E;this.textNode.classList.add(this.fontClass)};
_.l.getMaxFont=function(){var E=this.useRoboto?ffN:V8R;E=E[E.length-1];return this.maxFontSize&&this.maxFontSize<=E?this.maxFontSize:E};
_.l.getMinFont=function(){var E=(this.useRoboto?ffN:V8R)[0];return this.minFontSize&&this.minFontSize>=E?this.minFontSize:E};
_.l.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.l.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.l.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.U3(this.text).split("\n").length-1:Infinity};
_.l.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("Gh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
wz.prototype.guideIsExpandedChanged=wz.prototype.guideIsExpandedChanged;wz.prototype.dataChanged=wz.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],wz.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],wz.prototype,"actionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],wz.prototype,"text",void 0);
_.k([_.X(),_.t("design:type",String)],wz.prototype,"fontFamily",void 0);_.k([_.X(),_.t("design:type",Number)],wz.prototype,"maxWidth",void 0);_.k([_.X(),_.t("design:type",Number)],wz.prototype,"maxHeight",void 0);_.k([_.X(),_.t("design:type",Number)],wz.prototype,"maxFontSize",void 0);_.k([_.X(),_.t("design:type",Number)],wz.prototype,"minFontSize",void 0);_.k([_.X(),_.t("design:type",Number)],wz.prototype,"maxLines",void 0);_.k([_.X(),_.t("design:type",Object)],wz.prototype,"hideOverflow",void 0);
_.k([_.X({selector:_.zkd}),_.t("design:type",Boolean)],wz.prototype,"guideIsExpanded",void 0);_.k([_.$7("#container"),_.t("design:type",HTMLElement)],wz.prototype,"containerNode",void 0);_.k([_.$7("#text"),_.t("design:type",HTMLElement)],wz.prototype,"textNode",void 0);_.k([_.i6("text"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wz.prototype,"dataChanged",null);
_.k([_.i6("guideIsExpanded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wz.prototype,"guideIsExpandedChanged",null);wz=_.k([_.b({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],wz);
_.A(wz,"yt-dynamic-sizing-formatted-string",function(){if(t8u!==void 0)return t8u;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return t8u=E},{mode:1});var qnz;_.FCt=function(E){_.Ec.call(this,E)};
_.L(_.FCt,_.Ec);var Dar=function(E){_.Ec.call(this,E)};
_.L(Dar,_.FCt);var Zb=function(){return _.r.apply(this,arguments)||this};
_.L(Zb,_.r);Zb.prototype.onTapSuspendedChannel=function(){var E;if((E=this.data)!=null&&E.serviceEndpoint){var B,I;(E=(I=_.h((B=this.data)==null?void 0:B.serviceEndpoint,_.JK))==null?void 0:I.url)?_.xG(E,void 0,void 0,window.top):(B=new Dar("Did not handle suspended account tap. No appealUrl."),_.xV(B))}else B=new Dar("Did not handle suspended account tap. No serviceEndpoint."),_.xV(B)};
Zb.prototype.onTap=function(){var E=this,B=_.lu(),I,T=(I=_.eO(B,{veType:7116}))!=null?I:void 0;_.np(B,{visualElement:T});_.uj();this.saveRoleText();var e;if((e=this.data)==null?0:e.youtubeSuspended)this.onTapSuspendedChannel();else{var c=!1,Y,v;(B=(v=_.h((Y=this.data)==null?void 0:Y.serviceEndpoint,_.E8U))==null?void 0:v.supportedTokens)&&B.forEach(function(y){if(y.accountSigninToken)if(c=!0,E.onAccountItemTap)E.onAccountItemTap(y.accountSigninToken.signinUrl);else _.xG(y.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!c){if(Y=this.get("serviceEndpoint",this.data))c=!0,this.ytComponentBehavior.resolveCommand(Y);c||_.GF(new Dar("Did not handle account switch tap. No token."))}}};
Zb.prototype.saveRoleText=function(){if(this.data){var E=this.data,B=E.channelDelegationRole;if(B){var I,T=(I=_.h(E==null?void 0:E.serviceEndpoint,_.E8U))==null?void 0:I.supportedTokens;if(!T){var e,c,Y,v;T=(e=_.h(E==null?void 0:E.serviceEndpoint,_.uU))==null?void 0:(c=e.popup)==null?void 0:(Y=c.confirmDialogRenderer)==null?void 0:(v=Y.confirmButton)==null?void 0:v.buttonRenderer;var y;T=(y=_.h(T==null?void 0:T.command,_.pO))==null?void 0:y.commands;if(!T)return;var Z;T=(Z=_.h(T[1],_.E8U))==null?
void 0:Z.supportedTokens}if(T){y=void 0;Z=_.p(T);for(T=Z.next();!T.done;T=Z.next())if(T=T.value,T.datasyncIdToken){y=T.datasyncIdToken.datasyncIdToken;break}if(y){var P;a:{if(_.IvF()&&(Z=_.Yi6(y+"::pom"))){Z=new pM(Z);break a}Z=void 0}(P=Z)==null||P.set("role_text",B);if((ZzG?ZzG:window.location).href.indexOf("studio")!==-1&&(P=ThD())){Z=P.src?(new URL(P.src)).origin:"*";var z;(z=P.contentWindow)==null||z.postMessage({action:"save_pom_role",datasyncId:y,roleText:B},Z)}}}}}};
_.Up.Object.defineProperties(Zb.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var E,B,I=(E=this.data)==null?void 0:(B=E.accountPhoto)==null?void 0:B.thumbnails;return I&&I.length>0&&(I[0].height===36||I[0].height===48)?I[0].height:40}}});
Zb.prototype.onTap=Zb.prototype.onTap;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Zb.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Zb.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!1}),_.t("design:type",Function)],Zb.prototype,"onAccountItemTap",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Zb.prototype,"enableRingForActiveAccount",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Number),_.t("design:paramtypes",[])],Zb.prototype,"thumbnailSize",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Zb.prototype,"onTap",null);Zb=_.k([_.b({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Zb);
_.A(Zb,"ytd-account-item-renderer",function(){if(qnz!==void 0)return qnz;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return qnz=E},{mode:1});var KCX;var PH=function(){return _.r.apply(this,arguments)||this};
_.L(PH,_.r);PH.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.Q().resolve(_.Dt).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],PH.prototype,"data",void 0);PH=_.k([_.b({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],PH);
_.A(PH,"ytd-identity-chip-renderer",function(){if(KCX!==void 0)return KCX;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return KCX=E},{mode:1});var Rnz;var EFU;var BvV;var $4t;var zt=function(){var E=_.r.apply(this,arguments)||this;E.richItemMinWidth=_.RI("wn_grid_min_item_width",310);E.isShorts=!1;E.isWatchNext=!1;E.isExploreHub=!1;return E};
_.L(zt,_.r);_.Up.Object.defineProperties(zt.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var E=[],B=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Dk(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var I;if(((I=this.data)==null?0:I.rows)&&B)for(B*=this.data.rows,I=0;I<B;I++)E.push({});return E}}});
_.k([_.g(_.Lz),_.t("design:type",Object)],zt.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],zt.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],zt.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.GP,value:3}),_.t("design:type",Number)],zt.prototype,"itemsPerRow",void 0);_.k([_.X({selector:_.PUD,value:6}),_.t("design:type",Number)],zt.prototype,"slimItemsPerRow",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Number)],zt.prototype,"richItemMinWidth",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Boolean)],zt.prototype,"miniMode",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zt.prototype,"isShorts",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zt.prototype,"isWatchNext",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zt.prototype,"isExploreHub",void 0);
_.k([_.S("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.t("design:type",Array),_.t("design:paramtypes",[])],zt.prototype,"cardItems",null);zt=_.k([_.b({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],zt);
_.IEZ=_.VE()(zt,"ytd-ghost-grid-renderer",function(){if($4t===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);$4t=E}E=$4t;return E},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.oQ(_.rp(function(E){var B=_.XS(E,{numberOfComments:3}).numberOfComments,I=_.XS(E,{isInitialLoad:!1}).isInitialLoad,T=_.hk(_.n9),e=function(){return Math.min(Number(B==null?void 0:B())||20,20)};
return _.w("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.w(_.wU,{cond:function(){return(T==null?void 0:T())&&(I==null?void 0:I())},
then:function(){return _.w("div",{class:"ytGhostCommentsComments"},_.w("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.w("div",{class:_.RQ("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.w("div",{class:_.RQ("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.w("div",{class:"ytGhostCommentsGhostCard"},_.w("div",{class:"ytGhostCommentsAvatar"},_.w("div",{class:"ytGhostCommentsCircle"})),_.w("div",{class:"ytGhostCommentsComments"},_.w("div",{class:"ytGhostCommentsMeta"},
_.w("div",{class:_.RQ("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.w("div",{class:_.RQ("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.w("div",{class:"ytGhostCommentsComments"},_.w(_.Zt,{each:function(){return Array((e==null?void 0:e())||3)}},function(){return _.w("div",{class:"ytGhostCommentsGhostCard"},_.w("div",{class:"ytGhostCommentsAvatar"},_.w("div",{class:"ytGhostCommentsCircle"})),_.w("div",{class:"ytGhostCommentsHost"},_.w("div",{class:"ytGhostCommentsMeta"},
_.w("div",{class:_.RQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.w("div",{class:_.RQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.w("div",{class:_.RQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.w("div",{class:"ytGhostCommentsGhostLikeDislike"},_.w("div",{class:_.RQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.w("div",{class:_.RQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"$a"),"yt-ghost-comments",{props:{numberOfComments:_.Jh,
isInitialLoad:_.Jh}});_.QH("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var m6=function(){var E=_.r.apply(this,arguments)||this;E.isOverridable=!1;E.spinnerActive=!1;E.showButton=!1;E.isCommentsSection=!1;E.isShortsGrid=!1;E.isShortsPage=!1;E.isWatchPage=!1;E.ghostCardExperimentEnabled=_.d("show_ghost_comments_shorts_watch")||_.d("show_ghost_comments_desktop_watch");E.originalShowButton=!1;E.endOfList=!1;return E};
_.L(m6,_.r);_.l=m6.prototype;_.l.resetIntersectionObserver=function(){var E;(E=this.observer)==null||E.disconnect();this.observer=void 0};
_.l.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var E,B;((E=this.data)==null?void 0:E.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((B=this.data)==null?0:B.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.l.initializeIntersectionObserver=function(){var E=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(B){B=_.p(B);for(var I=B.next();!I.done;I=B.next())I.value.isIntersecting&&(E.triggerContinuation(),E.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.l.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostEngagementPanelRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.l.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var E;((E=this.data)==null?0:E.continuationEndpoint)&&(E=_.h(this.data.continuationEndpoint,_.u0))&&this.ytdReduxBehavior.dispatch(_.BP({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:E}}))};
_.l.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.l.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.l.onServiceRequestCompleted=function(E,B){if(!_.d("kevlar_hide_spinner_on_empty_continuation_killswitch")){var I;(I=B.actions)!=null&&I.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.l.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.l.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.l.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.l.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var E=3;if(this.isShortsPage){var B,I,T;E=Math.floor(((((B=this.hostElement)==null?void 0:(I=B.parentElement)==null?void 0:(T=I.parentElement)==null?void 0:T.scrollHeight)||108)-108)/108);E=this.isInitialLoad?Math.max(E,3):3}B=[].concat(_.ad(this.hostElement.querySelectorAll("yt-ghost-comments")));B=_.p(B);for(I=B.next();!I.done;I=B.next())I=I.value,I.numberOfComments=E,I.isInitialLoad=this.isInitialLoad}};
_.l.detached=function(){this.resetIntersectionObserver()};
_.Up.Object.defineProperties(m6.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.d("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.d("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
m6.prototype.numberOfGhostCommentsChanged=m6.prototype.numberOfGhostCommentsChanged;m6.prototype.continuationTriggerOffsetChanged=m6.prototype.continuationTriggerOffsetChanged;m6.prototype.showButtonChanged=m6.prototype.showButtonChanged;m6.prototype.onYtServiceRequestCompletedForButtonRenderer=m6.prototype.onYtServiceRequestCompletedForButtonRenderer;m6.prototype.onServiceRequestCompleted=m6.prototype.onServiceRequestCompleted;m6.prototype.onYtServiceRequestSentForButtonRenderer=m6.prototype.onYtServiceRequestSentForButtonRenderer;
m6.prototype.observeData=m6.prototype.observeData;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],m6.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Ml.YtVisibilityBehavior),_.t("design:type",Object)],m6.prototype,"ytVisibilityBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],m6.prototype,"ytComponentBehavior",void 0);
_.k([_.g(_.Lz),_.t("design:type",Object)],m6.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],m6.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],m6.prototype,"isOverridable",void 0);_.k([_.X(),_.t("design:type",Object)],m6.prototype,"spinnerActive",void 0);_.k([_.X(),_.t("design:type",Object)],m6.prototype,"showButton",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],m6.prototype,"isCommentsSection",void 0);
_.k([_.X(),_.t("design:type",Object)],m6.prototype,"isShortsGrid",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.Qpd}),_.t("design:type",Object)],m6.prototype,"isShortsPage",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.n9}),_.t("design:type",Object)],m6.prototype,"isWatchPage",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],m6.prototype,"ghostCardExperimentEnabled",void 0);_.k([_.X(),_.t("design:type",Number)],m6.prototype,"continuationTriggerOffset",void 0);
_.k([_.X(),_.t("design:type",Object)],m6.prototype,"endOfList",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],m6.prototype,"isInitialLoad",void 0);_.k([_.$7("ytd-button-renderer"),_.t("design:type",_.bF)],m6.prototype,"buttonRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],m6.prototype,"buttonOverrides",void 0);
_.k([_.X(),_.S("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.t("design:type",Object),_.t("design:paramtypes",[])],m6.prototype,"isShortsCommentsSection",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],m6.prototype,"observeData",null);
_.k([_.RN("yt-service-request-sent-button-renderer"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],m6.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],m6.prototype,"onServiceRequestCompleted",null);
_.k([_.RN("yt-service-request-completed-button-renderer"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],m6.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.k([_.i6("showButton"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],m6.prototype,"showButtonChanged",null);
_.k([_.i6("continuationTriggerOffset"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],m6.prototype,"continuationTriggerOffsetChanged",null);_.k([_.EM("isInitialLoad","isShortsPage"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],m6.prototype,"numberOfGhostCommentsChanged",null);m6=_.k([_.b({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],m6);
_.A(m6,"ytd-continuation-item-renderer",function(){if(BvV!==void 0)return BvV;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return BvV=E},{mode:1});var TvD;var dz=function(){var E=_.r.apply(this,arguments)||this;E.downloadProgress=0;E.transferState="TRANSFER_STATE_UNKNOWN";E.downloadState="DOWNLOAD_STATE_UNKNOWN";E.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";E.offlineVideoPolicyExpirationTimestamp=0;E.downloadedVideoPlaybackPosition=0;return E};
_.L(dz,_.r);dz.prototype.dataChanged=function(){var E;this.videoData=_.h((E=this.data)==null?void 0:E.renderer,O2V);this.transferStateChanged()};
dz.prototype.downloadProgressChanged=function(){if(this.entityInfo){var E=Object.assign({},this.videoData),B=Pfi(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),I=B.publishedTimeText,T=B.badges;E.shortViewCountText=B.shortViewCountText;E.publishedTimeText=I;E.badges=T;this.set("videoData",E)}};
dz.prototype.transferStateChanged=function(){if(this.entityInfo){var E=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",B=_.Zm(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!wK(this.entityInfo.policyEntity),I=Object.assign({},this.videoData),T=Pfi(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),e=T.publishedTimeText,c=T.badges;I.shortViewCountText=
T.shortViewCountText;I.publishedTimeText=e;I.badges=c;I.isDisabled=B;I.isWatched=this.downloadedVideoPlaybackPosition>0;I.navigationEndpoint=B?void 0:fYF(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var Y;E&&((Y=this.videoData)==null?0:Y.videoId)&&!_.d("dl_resume_click_killswitch")&&(I.isDisabled=!1,I.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});I.thumbnailOverlays=wxG(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",I)}};
dz.prototype.transferStateChanged=dz.prototype.transferStateChanged;dz.prototype.downloadProgressChanged=dz.prototype.downloadProgressChanged;dz.prototype.dataChanged=dz.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],dz.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],dz.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],dz.prototype,"videoData",void 0);_.k([_.X({selector:gK,selectorArgs:["videoData.videoId"]}),_.t("design:type",Object)],dz.prototype,"downloadProgress",void 0);_.k([_.X(),_.t("design:type",Number)],dz.prototype,"relativeDateReference",void 0);_.k([_.X({selector:_.Mg,selectorArgs:["videoData.videoId"]}),_.t("design:type",Object)],dz.prototype,"transferState",void 0);
_.k([_.X({selector:oYt,selectorArgs:["videoData.videoId"]}),_.t("design:type",Object)],dz.prototype,"downloadState",void 0);_.k([_.X({selector:xTJ,selectorArgs:["videoData.videoId"]}),_.t("design:type",Object)],dz.prototype,"offlinePolicyAction",void 0);_.k([_.X({selector:GTQ,selectorArgs:["videoData.videoId"]}),_.t("design:type",Object)],dz.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.k([_.X({selector:Sj,selectorArgs:["videoData.videoId"]}),_.t("design:type",Object)],dz.prototype,"downloadedVideoPlaybackPosition",void 0);_.k([_.X({selector:nYB,selectorArgs:["videoData.videoId"]}),_.t("design:type",Object)],dz.prototype,"entityInfo",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],dz.prototype,"isDownloading",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dz.prototype,"dataChanged",null);
_.k([_.i6("downloadProgress"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dz.prototype,"downloadProgressChanged",null);_.k([_.i6("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dz.prototype,"transferStateChanged",null);
dz=_.k([_.b({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],dz);
_.A(dz,"ytd-downloaded-video-grid-video-renderer",function(){if(TvD!==void 0)return TvD;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return TvD=E},{mode:_.qi("kevlar_poly_si_batch_j025")?1:2});var eCN;var hN=function(){};
hN.prototype.resolve=function(E,B){var I=this;return _.a(function(T){return _.C(T,I.resolveCommand(E,B),0)})};var lEU,sU;lEU=sc6(function(E){return E.targetId},{shouldPersist:!1});
sU=lEU.updateData;_.cmU=lEU.useUpdatableData;var iuU,pw$;iuU=sc6(function(E){return E.targetId});
pw$=iuU.updateData;_.YEh=iuU.useUpdatableData;var aEZ=um4.bind(null,sU),vFZ=um4.bind(null,pw$);(function(E,B,I){var T=_.h(I==null?void 0:I.updatedRenderer,_.T4l);return T?E({targetId:B},function(){return T}):!1}).bind(null,sU);var uY=function(){};
_.L(uY,hN);uY.prototype.resolveCommand=function(E){var B;return _.a(function(I){B=_.h(E,_.XIG);if(!B)return I.return();aEZ(B.targetId,B);_.ER(I)})};var Lm=function(){var E=_.l6.apply(this,arguments)||this;E.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return E};
_.L(Lm,_.l6);_.l=Lm.prototype;_.l.configureContinuationPathMap=function(){return{}};
_.l.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.l.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.l.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.l.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.l.handleAppendContinuationItemsAction=function(E){var B=_.h(E,_.XTl);if(this.data&&this.data.targetId&&B&&this.continuationPathMap&&B.targetId===this.data.targetId){var I=NXF(E);if((E=I&&this.continuationPathMap[I])&&I){I=this.get(E,this.data);var T;a:{for(T=0;T<I.length;T++){var e=I[T],c=void 0,Y=!!_.h((c=_.h(e,Q8D))==null?void 0:c.content,_.uyt);if(_.h(e,_.IP)||Y)break a}T=I.length}E="data."+E;B.continuationItems?T===I.length-1?(this.pop(E),this.push.apply(this,[E].concat(_.ad(B.continuationItems)))):
T===I.length?this.push.apply(this,[E].concat(_.ad(B.continuationItems))):this.splice.apply(this,[E,T,1].concat(_.ad(B.continuationItems))):this.splice(E,T,1);(_.d("web_enable_voting_animation")||_.d("enable_music_web_cairo_voting_animation"))&&_.$O(this.hostElement,"yt-append-continuation-items-action-finished");_.$O(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.OG(new _.P7("append continuation path does not exist",I))}};
_.l.handleReloadContinuationItemsCommand=function(E){var B=_.h(E,_.XIG);if(this.data&&B){if(_.d("web_explore_hub")||_.d("web_client_explore_hub")||_.d("web_explore_hub_on_hover")||_.d("web_client_explore_hub_on_hover"))try{_.Q().resolve(uY).resolveCommand(E)}catch(c){}if(this.data.targetId&&this.continuationPathMap&&B.targetId===this.data.targetId&&(!_.d("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||B.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var I,T=(I=
B.slot)==null?void 0:I.replace("RELOAD_CONTINUATION_SLOT_","");I=(E=NXF(E)+"-"+(T==null?void 0:T.toLowerCase()))&&this.continuationPathMap[E];if(!I||!E||!T)_.OG(new _.P7("reload continuation path does not exist",E));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(B)){if(B.replaceWithFirstItem){var e;this.set("data."+I,((e=B.continuationItems)==null?0:e.length)?B.continuationItems[0]:{})}else this.set("data."+I,B.continuationItems?B.continuationItems:
[]);this.continuationIsReloading=!1;_.$O(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.l.handleShowReloadUiCommand=function(E){E=_.h(E,KYD);var B;((B=this.data)==null?0:B.targetId)&&(E==null?0:E.targetId)&&E.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Lm.prototype.observeData=Lm.prototype.observeData;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Lm.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Lm.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Lm.prototype,"data",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],Lm.prototype,"continuationIsReloading",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Lm.prototype,"observeData",null);Lm=_.k([_.cl()],Lm);_.xo=[_.G0.YtComponentBehavior,_.th.YtActionHandlerBehavior,Lm.prototype];_.Gt={};_.Gt.YtNextContinuationBehavior=[_.oy.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",_.Kq(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Kq(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(E,B){E.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,B,{}):(E={locationRetrieved:function(I){this.makeNextContinuationRequest_(I,B,{})}.bind(this)},_.$O(this.hostElement,"yt-retrieve-location",E))},
makeNextContinuationRequest_:function(E,B,I){_.Mf("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();E=B(E);var T;this.canUseContextualNetworkManager_()&&(T=this.getNetworkManager());T||(T=_.Q().resolve(_.Zk));B=_.MN.instance;if(_.HA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&B){T=_.f9([E.startsWith("/")?E.substr(1):E]);var e,c;I=_.Me(B,{},T,I==null?void 0:(e=I.context)==null?void 0:(c=e.clickTracking)==null?void 0:c.clickTrackingParams).then(function(Y){return{response:Y}})}else I=
this.nextContinuation.usePost?T.postData(E,I):T.fetchData(E);
I.then(this.updateNextContinuationData_.bind(this,E));this.pendingContinuationRequest_=I;this.startListeningForNavigate_()},
updateNextContinuationData_:function(E,B){var I=this;_.Mf("ncl");this.pendingContinuationRequest_=void 0;if(B){var T={};this.nextContinuation&&(T=this.nextContinuation);if(B.response&&B.response.continuationContents&&B.response.continuationContents[T.continuationType]){E=B.response.continuationContents[T.continuationType];var e=T.header||"data.header",c=E[T.responseHeaderKey||"header"];c&&this.set(e,c);e=T.contentsArray||"data.contents";c=this.getContents_(E,T.responseContentsKey||"contents")||[];
this.pathExists_(e)?(c.unshift(e),this.push.apply(this,c)):this.set(e,c);c&&(L7D(_.lu(),B.response,this.hostElement,function(Y){_.I2(I.hostElement,"yt-store-grafted-ve-action",[Y])}),_.$O(this.hostElement,"yt-next-continuation-data-updated",{continuationData:B,
page:this,contentsArray:e}));this.set(T.continuationsArray||"data.continuations",E[T.responseContinuationsKey||"continuations"]||[])}else B.reload?_.OG(new _.P7("Reloading from continuation is unsupported")):B.responseContext&&B.responseContext.errors||(delete B.xsrf_token,delete B.timing,delete B.endpoint,delete B.csn,B.responseContext&&delete B.responseContext.serviceTrackingParams,e={request:_.jI(E,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(B).sort()},B.response&&(e.responseContentKeys=
Object.keys(B.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(e.continuationType=this.nextContinuation.continuationType.substr(0,256)),B=new _.P7("Malformed continuation",e),E.indexOf("/comment_service_ajax")==0?_.OG(B):_.xV(B)),this.set(T.continuationsArray||"data.continuations",[])}else _.GF(new _.P7("Missing continuation response",E))},
getContents_:function(E,B){B=B.split(".");return _.a_.getValueByKeys(E,B)},
pathExists_:function(E){var B=this;E=E.toString().split(".");for(var I=0;I<E.length;I++)if(B=B[E[I]],B===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var ymt;var CrU;var OU=function(){var E=_.r.apply(this,arguments)||this;E.triggered_=!1;return E};
_.L(OU,_.r);_.l=OU.prototype;_.l.attached=function(){this.maybeTriggerAutoload()};
_.l.detached=function(){this.hasBeenTriggered_=!1};
_.l.onPrescanVisible=function(){this.onShow()};
_.l.onShow=function(){this.showButton||this.trigger()};
_.l.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.$O(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.l.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.l.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.l.computeLabel_=function(E,B){return E===void 0?null:E.label||!B?E.label:this.showMoreText_};
_.l.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.l.getContinuationUrl=function(E){var B={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(B.itct=this.data.clickTrackingParams);return _.Ur(E,B)};
_.l.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
OU.prototype.showButtonChanged_=OU.prototype.showButtonChanged_;OU.prototype.observeData_=OU.prototype.observeData_;_.k([_.g(_.Ml.YtVisibilityBehavior),_.t("design:type",Object)],OU.prototype,"ytVisibilityBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],OU.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],OU.prototype,"showButton",void 0);
_.k([_.X({value:!1}),_.t("design:type",Boolean)],OU.prototype,"showIcon",void 0);_.k([_.X({computed:"computeLabel_(data, showButton)"}),_.t("design:type",Object)],OU.prototype,"label",void 0);_.k([_.X({value:_.jj(_.yu("SHOW_MORE",void 0,"Show More"))}),_.t("design:type",Object)],OU.prototype,"showMoreText_",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],OU.prototype,"spinnerActive_",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],OU.prototype,"hasBeenTriggered_",void 0);
_.k([_.X({value:void 0}),_.t("design:type",String)],OU.prototype,"observeVisibleOption",void 0);_.k([_.X({value:void 0}),_.t("design:type",String)],OU.prototype,"observeHiddenOption",void 0);_.k([_.X({value:"observe_once"}),_.t("design:type",Object)],OU.prototype,"observePrescanOption",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],OU.prototype,"observeData_",null);
_.k([_.EM("showButton"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],OU.prototype,"showButtonChanged_",null);OU=_.k([_.QE({is:"yt-next-continuation",disableElementRegistration:!0})],OU);
_.A(OU,"yt-next-continuation",function(){if(CrU===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;ymt===void 0&&(ymt=document.createElement("template"));var T=ymt;I.call(B,T.content.cloneNode(!0),E.content.firstChild);CrU=E}E=CrU;return E},{mode:2});var wwR;var ZuV;var nm=function(){return _.r.apply(this,arguments)||this};
_.L(nm,_.r);nm.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],nm.prototype,"data",void 0);nm=_.k([_.QE({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],nm);
_.A(nm,"yt-music-pass-small-feature-info-renderer",function(){if(ZuV===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;wwR===void 0&&(wwR=document.createElement("template"));var T=wwR;I.call(B,T.content.cloneNode(!0),E.content.firstChild);ZuV=E}E=ZuV;return E},{mode:2});_.QH("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var MX=function(){var E=_.r.apply(this,arguments)||this;E.isCollapsible=!1;E.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return E};
_.L(MX,_.r);_.l=MX.prototype;_.l.computeIsCollapsible=function(E){return!!(((E==null?0:E.showMoreText)||(E==null?0:E.visibleRowCount))&&(E==null?0:E.isCollapsible))};
_.l.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"}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.l.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.l.onIronResize=function(){var E=this;_.OM(this,"updateGridInitItems",function(){E.maybeUpdateInitialItemsDisplayed()})};
_.l.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var E=this.getVisibleWidth();E!==0&&(E=Math.floor(E/214)*(this.data.visibleRowCount||2),E!==this.initialCount&&(this.initialCount=E,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.l.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.l.computeExpandVisible=function(E,B,I,T){return E&&B&&I&&!!T&&!!T.showMoreText};
_.l.computeShowMoreButton=function(E){return{text:E,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.l.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.l.initCollapsed=function(){var E=this;this.ytLazyListBehavior.canShowMore=!1;var B;(this.collapsed=!((B=this.data)==null||!B.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.AJ(this,function(){_.Ta(E.hostElement,"yt-refit-popups-action")})};
_.l.fillRestIfNotCollapsible=function(){var E=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!E||this.ytLazyListBehavior.fillRemainingListItems()};
_.l.computeViewAllHidden=function(E,B){return E||!B.viewAllEndpoint};
MX.prototype.fillRestIfNotCollapsible=MX.prototype.fillRestIfNotCollapsible;MX.prototype.initCollapsed=MX.prototype.initCollapsed;MX.prototype.onIronResize=MX.prototype.onIronResize;MX.prototype.persistentGuideChanged=MX.prototype.persistentGuideChanged;_.k([_.g(_.OI),_.t("design:type",Object)],MX.prototype,"ironResizableBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.t6.YtLazyListBehavior),_.t("design:type",Object)],MX.prototype,"ytLazyListBehavior",void 0);_.k([_.g(_.Gt.YtNextContinuationBehavior),_.t("design:type",Object)],MX.prototype,"ytNextContinuationBehavior",void 0);_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],MX.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.g(_.xo),_.t("design:type",Object)],MX.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],MX.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],MX.prototype,"collapsed",void 0);_.k([_.X(),_.t("design:type",Number)],MX.prototype,"initialCount",void 0);_.k([_.X({computed:"computeShowMoreButton(data.showMoreText)"}),_.t("design:type",Object)],MX.prototype,"showMoreButton",void 0);
_.k([_.X({computed:"computeIsCollapsible(data)"}),_.t("design:type",Object)],MX.prototype,"isCollapsible",void 0);_.k([_.$7("#items"),_.t("design:type",HTMLElement)],MX.prototype,"items",void 0);_.k([_.i6("guidePersistentAndVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],MX.prototype,"persistentGuideChanged",null);_.k([_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],MX.prototype,"onIronResize",null);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],MX.prototype,"initCollapsed",null);_.k([_.i6("canShowMore"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],MX.prototype,"fillRestIfNotCollapsible",null);MX=_.k([_.b({is:"ytd-grid-renderer",disableElementRegistration:!0})],MX);
_.A(MX,"ytd-grid-renderer",function(){if(eCN!==void 0)return eCN;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return eCN=E},{mode:_.qi("kevlar_poly_si_batch_j025")?1:2});var HH=function(){return _.r.apply(this,arguments)||this};
_.L(HH,_.r);
HH.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"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],HH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],HH.prototype,"data",void 0);HH=_.k([_.b({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],HH);
_.A(HH,"ytd-carousel-ad-renderer",function(){if(EFU!==void 0)return EFU;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return EFU=E},{mode:1});var Prz;var NX=function(){return _.r.apply(this,arguments)||this};
_.L(NX,_.r);_.l=NX.prototype;_.l.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"}}}};
_.l.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,NX.JSC$13136_CLICK_LOCATION_ID_MAP))};
_.l.onSitelinkTap=function(E){E.stopPropagation();var B,I,T=E==null?void 0:(B=E.model)==null?void 0:(I=B.item)==null?void 0:I.onTap;T&&this.ytSparklesClickLocationBehavior.handleClick(T,E,!1)};
_.l.onTap=function(E){var B=this.data&&this.data.content&&this.data.content.navigationEndpoint;B&&this.ytSparklesClickLocationBehavior.handleClick(B,E,!1)};
_.l.sendImpression=function(){if(this.data&&this.data.content)for(var E=_.p(this.data.content.impressionEndpoints||[]),B=E.next();!B.done;B=E.next()){B=_.p(B.value.loggingUrls||[]);for(var I=B.next();!I.done;I=B.next())I=I.value,I.baseUrl&&Wn(I.baseUrl,I.attributionSrcMode)}};
NX.prototype.onTap=NX.prototype.onTap;NX.prototype.dataChanged=NX.prototype.dataChanged;NX.JSC$13136_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"]]);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.k2.YtSparklesClickLocationBehavior),_.t("design:type",Object)],NX.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],NX.prototype,"data",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],NX.prototype,"dataChanged",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],NX.prototype,"onTap",null);NX=_.k([_.b({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],NX);
_.A(NX,"ytd-promoted-sparkles-text-search-renderer",function(){if(Prz!==void 0)return Prz;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Prz=E},{mode:1});var zCZ;var gz=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-mute-ad-action":"handleMuteAd"};return E};
_.L(gz,_.r);_.l=gz.prototype;
_.l.configureRendererStamper=function(){return{"data.menu":{id:_.d("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]]"}}}}}};
_.l.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.l.computeHasAdBadge=function(E){return!(E==null||!E.adBadge)};
_.l.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",gz.JSC$13145_DEFAULT_AD_BADGE_RENDERER),_.VQ(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,gz.JSC$13145_CLICK_LOCATION_ID_MAP))};
_.l.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var E;(((E=this.data)==null?void 0:E.impressionCommands)||[]).forEach(function(B){B=_.p(B.loggingUrls||[]);for(var I=B.next();!I.done;I=B.next())I=I.value,I.baseUrl&&Wn(I.baseUrl,I.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.l.onTap=function(E){var B,I=(B=this.data)==null?void 0:B.navigationEndpoint,T;(B=(T=this.data)==null?void 0:T.thumbnailNavigationEndpoint)&&_.rA(_.W8(E),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(B,E,!1):I&&this.ytSparklesClickLocationBehavior.handleClick(I,E,!1)};
_.l.handleMuteAd=function(){this.collapsed=!0};
_.l.attached=function(){var E=this;_.d("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&E.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.d("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Up.Object.defineProperties(gz.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var E;return!(((E=this.data)==null?void 0:E.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var E;return!(((E=this.data)==null?void 0:E.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.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}}});
gz.prototype.dataChanged=gz.prototype.dataChanged;
gz.JSC$13145_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"]]);
gz.JSC$13145_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.yu("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],gz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.k([_.g(su),_.t("design:type",Object)],gz.prototype,"ytdActiveViewBehavior",void 0);
_.k([_.g([_.th.YtActionHandlerBehavior]),_.t("design:type",Object)],gz.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.k2.YtSparklesClickLocationBehavior),_.t("design:type",Object)],gz.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],gz.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],gz.prototype,"collapsed",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("enable_desktop_search_bigger_thumbs")}}),
_.t("design:type",Boolean)],gz.prototype,"useBiggerThumbs",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.EF("desktop_search_bigger_thumbs_style")}}),
_.t("design:type",String)],gz.prototype,"biggerThumbsStyle",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.t("design:type",Boolean)],gz.prototype,"fixAlignmentSmallScreens",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("enable_desktop_search_bigger_thumbs_square")}}),
_.t("design:type",Boolean)],gz.prototype,"useBiggerThumbsSquare",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data.mediaHoverOverlay"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],gz.prototype,"hideHoverOverlay",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],gz.prototype,"webSearchLayout",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],gz.prototype,"webSearchLayoutLandscape",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],gz.prototype,"webSearchLayoutSquare",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],gz.prototype,"sparklesCtaNoBackground",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.actionButton"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],gz.prototype,"hideActionButton",null);_.k([_.X({computed:"computeButtonOverride(uiUpdate)"}),_.t("design:type",Object)],gz.prototype,"buttonOverride",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.t("design:type",Boolean)],gz.prototype,"hasNewAdBadge",void 0);_.k([_.S("data.promotedSparklesWebStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],gz.prototype,"useRoundedBadge",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gz.prototype,"dataChanged",null);gz=_.k([_.b({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],gz);
_.A(gz,"ytd-promoted-sparkles-web-renderer",function(){if(zCZ!==void 0)return zCZ;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return zCZ=E},{mode:1});var m46;var Sr=function(){return _.r.apply(this,arguments)||this};
_.L(Sr,_.r);_.l=Sr.prototype;_.l.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]]"}}}}}};
_.l.computeShowCta=function(E){return!(E==null||!E.ctaRenderer)};
_.l.onCtaClick=function(){var E,B,I,T=(E=this.data)==null?void 0:(B=E.ctaRenderer)==null?void 0:(I=B.buttonRenderer)==null?void 0:I.command;T&&this.ytComponentBehavior.resolveCommand(T)};
_.l.onWatchButtonClick=function(){var E,B,I,T=(E=this.data)==null?void 0:(B=E.watchButtonRenderer)==null?void 0:(I=B.buttonRenderer)==null?void 0:I.command;T&&this.ytComponentBehavior.resolveCommand(T)};
_.l.onTap=function(){};
_.l.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",Sr.JSC$13148_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Sr.JSC$13148_DEFAULT_CLICK_LOCATION_BEHAVIOR,Sr.JSC$13148_CLICK_LOCATION_ID_MAP),this.thumbnail)){var E=this.thumbnail.getElementsByTagName("a");E.length>0&&(E=E.namedItem("thumbnail"))&&E.removeAttribute("href")}};
_.l.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var E=_.p(this.data.impressionUrls),B=E.next();!B.done;B=E.next())B=B.value,w8B(B,Pjd(B));this.data.impressionsFired=!0}};
_.l.maybeComputeHref=function(){return null};
_.l.computeIsShortDR=function(E){return!(E==null||!E.watchButtonRenderer)&&!(E==null||!E.ctaRenderer)&&!!this.enableShortDR};
_.l.computeIsNewUiOrShortDr=function(E){return!!this.enableUiUpdate||this.computeIsShortDR(E)};
_.l.computeIsNewUiAndNotShortDr=function(E){return!!this.enableUiUpdate&&!this.computeIsShortDR(E)};
_.l.computeHideAvatar=function(E){return!((E==null?0:E.channelThumbnail)&&this.computeIsNewUiOrShortDr(E))};
_.l.onClick=function(E){var B,I=(B=this.data)==null?void 0:B.navigationEndpoint;if(this.enableShortDR&&I&&(_.h(I,_.kh)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(I,E,!!_.h(I,_.kh)),E.stopPropagation();else if(I&&_.h(I,_.kh))this.ytSparklesClickLocationBehavior.handleClick(I,E,!0),E.stopPropagation();else if(I){var T,e;((T=this.data)==null?0:T.navigationEndpoint)&&((e=this.data)==null?0:e.adPlaybackContextParams)&&arc(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(I)}};
_.l.computeButtonOverride=function(E){if(this.computeIsNewUiOrShortDr(E))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.l.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.l.onThumbnailContainerClick=function(E){this.onClick(E)};
_.l.computeThumbnailWidth=function(E,B){return E?B==="MASSIVE"?600:B==="BIG"?500:B==="MEDIUM"?450:420:360};
_.l.attached=function(){var E=this;_.d("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&E.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.d("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Sr.prototype.dataChanged=Sr.prototype.dataChanged;Sr.prototype.onTap=Sr.prototype.onTap;Sr.JSC$13148_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.yu("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};Sr.JSC$13148_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Sr.JSC$13148_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"}];_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Sr.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.k([_.g(su),_.t("design:type",Object)],Sr.prototype,"ytdActiveViewBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Sr.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.k2.YtSparklesClickLocationBehavior),_.t("design:type",Object)],Sr.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Sr.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("enable_desktop_search_bigger_thumbs")}}),
_.t("design:type",Boolean)],Sr.prototype,"useBiggerThumbs",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("enable_video_display_compact_button_group_for_desktop_search")}}),
_.t("design:type",Boolean)],Sr.prototype,"enableShortDR",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("enable_vac_ui_update_for_desktop_search")}}),
_.t("design:type",Boolean)],Sr.prototype,"enableUiUpdate",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.EF("desktop_search_bigger_thumbs_style")}}),
_.t("design:type",String)],Sr.prototype,"biggerThumbsStyle",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.t("design:type",Boolean)],Sr.prototype,"showCta",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.t("design:type",Boolean)],Sr.prototype,"isShortDr",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.t("design:type",Boolean)],Sr.prototype,"isShortDrOrNewUi",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.t("design:type",Boolean)],Sr.prototype,"isNewUiAndNotShortDr",void 0);_.k([_.X({computed:"computeButtonOverride(data)"}),_.t("design:type",Object)],Sr.prototype,"buttonOverride",void 0);_.k([_.X({computed:"computeSecondaryButtonOverride(data)"}),_.t("design:type",Object)],Sr.prototype,"secondaryButtonOverride",void 0);_.k([_.$7("ytd-thumbnail"),_.t("design:type",HTMLElement)],Sr.prototype,"thumbnail",void 0);
_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Sr.prototype,"onTap",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Sr.prototype,"dataChanged",null);Sr=_.k([_.b({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],Sr);
_.A(Sr,"ytd-promoted-video-renderer",function(){if(m46!==void 0)return m46;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return m46=E},{mode:1});var QmZ;var JN=function(){var E=_.r.apply(this,arguments)||this;E.useRoundedBadge=!0;E.sitelinkIds=[];return E};
_.L(JN,_.r);_.l=JN.prototype;
_.l.configureRendererStamper=function(){return{"data.menu":{id:_.d("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]]"}}}}}};
_.l.dataChanged=function(){var E;(E=this.data)!=null&&E.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,JN.JSC$13155_CLICK_LOCATION_ID_MAP)};
_.l.onTap=function(E){var B,I=(B=this.data)==null?void 0:B.navigationCommand;I&&!_.rA(_.W8(E),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(I,E,!1)};
_.l.onSitelinkTap=function(E){var B,I,T=E==null?void 0:(B=E.model)==null?void 0:(I=B.item)==null?void 0:I.onTap;T&&this.ytSparklesClickLocationBehavior.handleClick(T,E,!1)};
_.l.configureSitelinkClickTargets=function(){var E=this,B,I,T=(B=this.data)==null?void 0:(I=B.clickLocationTargets)==null?void 0:I.find(function(e){return e.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
T&&_.n(this.hostElement).querySelectorAll(".sitelink").forEach(function(e){_.VQ(e,"yt-simple-endpoint",!0);E.sitelinkIds.push(e.id);var c,Y;(c=E.ytSparklesClickLocationBehavior)==null||(Y=c.clickTargetMap)==null||Y.set(e.id,T)})};
_.l.sendImpression=function(){var E,B,I=((E=this.data)==null?void 0:(B=E.impressionCommand)==null?void 0:B.loggingUrls)||[];E=_.p(I);for(B=E.next();!B.done;B=E.next())B=B.value,B.baseUrl&&Wn(B.baseUrl,B.attributionSrcMode)};
_.l.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Up.Object.defineProperties(JN.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
JN.prototype.onTap=JN.prototype.onTap;JN.prototype.dataChanged=JN.prototype.dataChanged;JN.JSC$13155_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"]]);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.k2.YtSparklesClickLocationBehavior),_.t("design:type",Object)],JN.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],JN.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],JN.prototype,"showFavicon",null);_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("enable_desktop_search_bigger_thumbs")}}),
_.t("design:type",Boolean)],JN.prototype,"useBiggerThumbs",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.EF("desktop_search_bigger_thumbs_style")}}),
_.t("design:type",String)],JN.prototype,"biggerThumbsStyle",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.t("design:type",Boolean)],JN.prototype,"enableThumbnailScalingFix",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],JN.prototype,"dataChanged",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],JN.prototype,"onTap",null);JN=_.k([_.b({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],JN);
_.A(JN,"ytd-text-image-no-button-layout-renderer",function(){if(QmZ!==void 0)return QmZ;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return QmZ=E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var d4u;var WH=function(){var E=_.r.apply(this,arguments)||this;E.isInlinePlaybackState=!1;E.uiUpdate=_.d("web_modern_buttons");E.hideCta=_.d("hide_cta_for_home_web_video_ads");E.noBottomMargin=!1;E.animateInTimeStamp=_.RI("hide_cta_for_home_web_video_ads_animate_in_time");E.animateInCta=!1;E.isHovered=!1;E.player=null;E.JSC$13162_playerEvents=new Map;E.JSC$13162_preventProgressSaveTimer=null;E.delayedCtaJobId=null;return E};
_.L(WH,_.r);_.l=WH.prototype;_.l.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]]"}}}}}};
_.l.attached=function(){this.JSC$13162_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13162_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.d("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.l.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13162_playerEvents)};
_.l.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",WH.JSC$13161_DEFAULT_CLICK_LOCATION_BEHAVIOR,WH.JSC$13161_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.l.hoverChanged=function(){var E=this;this.delayedCtaJobId&&(_.Ll.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.d("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.wT(_.Ll,function(){E.buttonContainer.classList.add("show-delayed-buttons")},_.RI("delayed_cta_on_web_delay_milliseconds")))};
_.l.setPlayer=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return(B=_.Ta(E.hostElement,"yt-get-inline-preview-player-action"))&&B[0]?_.C(I,B[0].getPlayerPromise(),3):I.jumpTo(0);E.player=I.yieldResult;E.ytPlayerListenerBehavior.listenToPlayerEvents(E.player,E.JSC$13162_playerEvents);_.ER(I)})};
_.l.onPlaybackStart=function(){var E=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13162_preventProgressSaveTimer=_.ta(_.Ll,function(){E.JSC$13162_preventProgressSaveTimer=null},1E4))};
_.l.onVideoProgress=function(E){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&E>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.l.resetPreventProgressSaveTimer=function(){_.Ll.cancelJob(this.JSC$13162_preventProgressSaveTimer);this.JSC$13162_preventProgressSaveTimer=null};
_.l.getSimpleString=function(E){return _.U3(E)};
_.l.onClick=function(E){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var B,I=(B=this.data)==null?void 0:B.navigationEndpoint,T;B=(T=this.data)==null?void 0:T.channelEndpoint;var e,c;(T=(c=_.h((e=this.data)==null?void 0:e.adCtaButton,_.NT))==null?void 0:c.command)&&_.rA(_.W8(E),this.hostElement,["call-to-action"])?_.d("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(T,E,!1):B&&_.rA(_.W8(E),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(B,E,!1):!_.rA(_.W8(E),this.hostElement,["secondary-button"])&&I&&(_.d("enable_short_dr_for_desktop_launchable")?(e=!!_.h(I,_.kh),this.isInlinePlaybackState&&e&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,E,e)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,E,!0)))}};
_.l.updateWatchEndpointStartTime=function(){var E,B;this.player&&((E=this.data)==null?0:E.inlinePlaybackEndpoint)&&((B=this.data)==null?0:B.navigationEndpoint)&&!this.JSC$13162_preventProgressSaveTimer&&(E=Math.floor(this.player.getCurrentTime()),_.h(this.data.navigationEndpoint,_.kh).startTimeSeconds=E,_.h(this.data.inlinePlaybackEndpoint,_.kh).startTimeSeconds=E)};
_.l.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.l.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.Up.Object.defineProperties(WH.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.d("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var E,B;return!((E=this.data)==null||!E.watchButton)&&!((B=this.data)==null||!B.adCtaButton)}}});
WH.prototype.hoverChanged=WH.prototype.hoverChanged;WH.prototype.dataChanged=WH.prototype.dataChanged;
WH.JSC$13161_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"]]);
WH.JSC$13161_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"}];
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],WH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],WH.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.k2.YtSparklesClickLocationBehavior),_.t("design:type",Object)],WH.prototype,"ytSparklesClickLocationBehavior",void 0);
_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",_.XK)],WH.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],WH.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],WH.prototype,"isInlinePlaybackState",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],WH.prototype,"miniMode",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],WH.prototype,"uiUpdate",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],WH.prototype,"hideCta",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],WH.prototype,"noBottomMargin",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],WH.prototype,"animateInCta",void 0);_.k([_.X({computed:"computeButtonOverride(uiUpdate)"}),_.t("design:type",Object)],WH.prototype,"buttonOverride",void 0);
_.k([_.X({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.t("design:type",Object)],WH.prototype,"secondaryButtonOverride",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],WH.prototype,"isHovered",void 0);_.k([_.$7("#button-container"),_.t("design:type",HTMLElement)],WH.prototype,"buttonContainer",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],WH.prototype,"typographyBump",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("typographyBump"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],WH.prototype,"typographyBumpV2",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],WH.prototype,"dataChanged",null);_.k([_.EM("isHovered"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],WH.prototype,"hoverChanged",null);
_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],WH.prototype,"isButtonGroup",null);WH=_.k([_.b({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],WH);
_.A(WH,"ytd-ad-inline-playback-meta-block",function(){if(d4u!==void 0)return d4u;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return d4u=E},{mode:_.qi("kevlar_poly_si_batch_j065")?1:2});var hCD;var X9=function(){var E=_.r.apply(this,arguments)||this;E.noBottomMargin=!1;E.isInlinePreviewTriggered=!1;E.JSC$13167_activeViewMeasurementDataResolver=_.gA();return E};
_.L(X9,_.r);_.l=X9.prototype;_.l.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.attached=function(){var E=this;this.updateInlinePreviewHoverListeners();this.JSC$13167_activeViewMeasurementDataResolver.promise.then(function(B){E.ytdActiveViewBehavior.enableActiveViewMeasurement(B,15)});
_.d("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&E.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){this.clearInlinePreviewHoverListeners();_.d("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13167_inlinePreviewHoverListener=UO({mediaRenderer:this,lockupElement:this.JSC$13167_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Pd6})};
_.l.clearInlinePreviewHoverListeners=function(){var E;(E=this.JSC$13167_inlinePreviewHoverListener)==null||BD(E)};
_.l.onDataChanged=function(){var E;((E=this.data)==null?0:E.activeView)&&this.JSC$13167_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",X9.JSC$13166_DEFAULT_CLICK_LOCATION_BEHAVIOR,X9.JSC$13166_CLICK_LOCATION_ID_MAP);this.thumbnail&&(E=this.thumbnail.getElementsByTagName("a"),E.length>0&&(E=E.namedItem("thumbnail"))&&E.removeAttribute("href"));var B;if((B=this.data)==
null?0:B.hasAutoplay){var I;(I=this.JSC$13167_inlinePreviewHoverListener)==null||fz$(I)}};
_.l.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.l.onThumbnailContainerClick=function(E){if(this.data&&this.data.navigationEndpoint){var B,I=(B=this.data)==null?void 0:B.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,E,!!_.h(I,_.kh));E.stopPropagation()}};
_.l.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.l.impressionLog=function(){var E=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var B,I,T=(I=_.h((B=this.data)==null?void 0:B.onImpression,_.pO))==null?void 0:I.commands;T&&(T.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;E.ytComponentBehavior.resolveCommand(e)}),this.data.impressionsFired=!0)}};
_.Up.Object.defineProperties(X9.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.JSC$13167_inlinePreviewHoverListener)==null?0:zK(E))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
X9.prototype.onTypographyBumpChanged=X9.prototype.onTypographyBumpChanged;X9.prototype.onDataChanged=X9.prototype.onDataChanged;X9.JSC$13166_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);X9.JSC$13166_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"}];
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],X9.prototype,"ytComponentBehavior",void 0);_.k([_.g(su),_.t("design:type",Object)],X9.prototype,"ytdActiveViewBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],X9.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],X9.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.g(_.S_),_.t("design:type",Object)],X9.prototype,"ytdLockupBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],X9.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.k2.YtSparklesClickLocationBehavior),_.t("design:type",Object)],X9.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],X9.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],X9.prototype,"noBottomMargin",void 0);
_.k([_.X(),_.t("design:type",Object)],X9.prototype,"isInlinePreviewTriggered",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Boolean)],X9.prototype,"miniMode",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],X9.prototype,"typographyBump",void 0);_.k([_.$7("ytd-thumbnail"),_.t("design:type",HTMLElement)],X9.prototype,"thumbnail",void 0);_.k([_.$7("#dismissible"),_.t("design:type",HTMLElement)],X9.prototype,"JSC$13167_dismissibleMedia",void 0);
_.k([_.$7("ytd-ad-inline-playback-meta-block"),_.t("design:type",HTMLElement)],X9.prototype,"adInlinePlaybackMetaBlock",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],X9.prototype,"onDataChanged",null);_.k([_.i6("typographyBump"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],X9.prototype,"onTypographyBumpChanged",null);
_.k([_.S("lockupIsHovered"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],X9.prototype,"isHovered",null);X9=_.k([_.b({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],X9);
_.A(X9,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(hCD!==void 0)return hCD;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return hCD=E},{mode:1});var smD;var rz=function(){var E=_.r.apply(this,arguments)||this;E.isInlinePreviewTriggered=!1;E.JSC$13170_activeViewMeasurementDataResolver=_.gA();return E};
_.L(rz,_.r);_.l=rz.prototype;_.l.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.attached=function(){var E=this;this.updateInlinePreviewHoverListeners();this.JSC$13170_activeViewMeasurementDataResolver.promise.then(function(B){E.ytdActiveViewBehavior.enableActiveViewMeasurement(B,15)})};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13170_inlinePreviewHoverListener=UO({mediaRenderer:this,lockupElement:this.JSC$13170_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Pd6})};
_.l.clearInlinePreviewHoverListeners=function(){var E;(E=this.JSC$13170_inlinePreviewHoverListener)==null||BD(E)};
_.l.onDataChanged=function(){var E;((E=this.data)==null?0:E.activeView)&&this.JSC$13170_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",rz.JSC$13169_DEFAULT_CLICK_LOCATION_BEHAVIOR,rz.JSC$13169_CLICK_LOCATION_ID_MAP);this.thumbnail&&(E=this.thumbnail.getElementsByTagName("a"),E.length>0&&(E=E.namedItem("thumbnail"))&&E.removeAttribute("href"))};
_.l.onThumbnailContainerClick=function(E){if(this.data&&this.data.navigationEndpoint){var B,I=(B=this.data)==null?void 0:B.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,E,!0);E.stopPropagation()}};
_.l.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.l.impressionLog=function(){var E=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var B,I,T=(I=_.h((B=this.data)==null?void 0:B.onImpression,_.pO))==null?void 0:I.commands;T&&(T.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;_.Q().resolve(_.Dt).resolveCommand(e,{form:{element:E.hostElement}})}),this.data.impressionsFired=!0)}};
_.Up.Object.defineProperties(rz.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.JSC$13170_inlinePreviewHoverListener)==null?0:zK(E))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
rz.prototype.onDataChanged=rz.prototype.onDataChanged;rz.JSC$13169_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);rz.JSC$13169_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"}];_.k([_.g(su),_.t("design:type",Object)],rz.prototype,"ytdActiveViewBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],rz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],rz.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],rz.prototype,"ytdLockupBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],rz.prototype,"ytdReduxBehavior",void 0);
_.k([_.g(_.k2.YtSparklesClickLocationBehavior),_.t("design:type",Object)],rz.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],rz.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],rz.prototype,"isInlinePreviewTriggered",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Boolean)],rz.prototype,"miniMode",void 0);_.k([_.$7("ytd-thumbnail"),_.t("design:type",HTMLElement)],rz.prototype,"thumbnail",void 0);
_.k([_.$7("#dismissible"),_.t("design:type",HTMLElement)],rz.prototype,"JSC$13170_dismissibleMedia",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],rz.prototype,"onDataChanged",null);_.k([_.S("lockupIsHovered"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],rz.prototype,"isHovered",null);rz=_.k([_.b({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],rz);
_.A(rz,"ytd-video-display-full-buttoned-renderer",function(){if(smD!==void 0)return smD;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return smD=E},{mode:1});var lJ=function(E,B,I,T){T=T===void 0?!1:T;_.Ec.call(this,E);this.adsClientErrorMessage=I;this.aggressivelySample=T;this.args=[];B&&this.args.push(B)};
_.L(lJ,_.Ec);var TN=function(E,B,I,T){T=T===void 0?!1:T;_.Ec.call(this,E);this.adsClientErrorMessage=I;this.aggressivelySample=T;this.args=[];B&&this.args.push(B)};
_.L(TN,_.Ec);var umV=function(E){_.Cx.call(this);var B=this;this.initializationFunction=E;this.instance=null;this.addOnDisposeCallback(function(){_.bl(B.instance);B.instance=null})};
_.L(umV,_.Cx);umV.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.DR("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var gFi=function(){var E=new Map;[].forEach(function(B){E.set(B.JSC$26692_getType(),B)})};new Promise(function(){});var OuJ=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"]]),x46=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"}]]),L7z=function(E){this.experimentApiProvider=E;E=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=E<.1};var bY=function(E,B,I,T){_.Cx.call(this);this.adsControlFlowEventListeners=B;this.adEventLogger=I;this.experimentApiProvider=T;this.adsControlFlowManagerHelper=E(this,this,this,this,this);_.Bp(this,this.adsControlFlowManagerHelper);E=_.p(B);for(B=E.next();!B.done;B=E.next())_.Bp(this,B.value)};
_.L(bY,_.Cx);var x4h=function(E,B,I,T){oW(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",B,I,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,T);E=_.p(E.adsControlFlowEventListeners);for(T=E.next();!T.done;T=E.next())x4h(T.value,B,I)};
_.l=bY.prototype;_.l.onOpportunityProcessedExternallyManaged=function(E,B,I,T){oW(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",E,I,B,void 0,void 0,void 0,void 0,void 0,void 0,void 0,T)};
_.l.onSlotReceivedExternallyManaged=function(E,B){AN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",E,B)};
_.l.onSlotEntered=function(E){if(jr(this.adsControlFlowManagerHelper,E)!=null){AN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",E);this.adsControlFlowManagerHelper.onSlotEntered(E);for(var B=_.p(this.adsControlFlowEventListeners),I=B.next();!I.done;I=B.next())I.value.onSlotEntered(E);if(jr(this.adsControlFlowManagerHelper,E)!=null&&jr(this.adsControlFlowManagerHelper,E).isOccupyingSlotType()&&UU(this.adsControlFlowManagerHelper,E)&&!GDU(this.adsControlFlowManagerHelper,E)){var T;ko(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",E,(T=UU(this.adsControlFlowManagerHelper,E))!=null?T:void 0);E=jr(this.adsControlFlowManagerHelper,E);E.slotLifecycleStage!=="entered"&&tN(E.slot,E.slotLifecycleStage,"enterLayoutForSlot");E.slotLifecycleStage="rendering";E.registeredLayoutRenderingAdapter.startRendering(E.layout)}}};
_.l.onSlotExited=function(E){if(jr(this.adsControlFlowManagerHelper,E)!=null){AN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",E);this.adsControlFlowManagerHelper.onSlotExited(E);for(var B=_.p(this.adsControlFlowEventListeners),I=B.next();!I.done;I=B.next())I.value.onSlotExited(E);jr(this.adsControlFlowManagerHelper,E)!=null&&jr(this.adsControlFlowManagerHelper,E).markedForUnscheduleAfterOutboundAdapterRequests&&Our(this,E)}};
_.l.onLayoutReceivedExternallyManaged=function(E,B,I){E.managerLayer!=="core"&&ko(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",E,B,I)};
var nFR=function(E,B,I){if(jr(E.adsControlFlowManagerHelper,B)!=null){ko(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",B,I);E=_.p(E.adsControlFlowEventListeners);for(var T=E.next();!T.done;T=E.next())nFR(T.value,B,I)}};
bY.prototype.onLayoutExited=function(E,B,I){if(jr(this.adsControlFlowManagerHelper,E)!=null){ko(this.adEventLogger,GDf(I),E,B);this.adsControlFlowManagerHelper.onLayoutExited(E,B);for(var T=_.p(this.adsControlFlowEventListeners),e=T.next();!e.done;e=T.next())e.value.onLayoutExited(E,B,I);(I=UU(this.adsControlFlowManagerHelper,E))&&B.layoutId===I.layoutId&&MKh(this,E)}};
bY.prototype.disposeInternal=function(){var E=HuU(this.adsControlFlowManagerHelper);E=_.p(E);for(var B=E.next();!B.done;B=E.next())Our(this,B.value);_.Cx.prototype.disposeInternal.call(this)};
var Our=function(E,B){if(jr(E.adsControlFlowManagerHelper,B)!=null)if(jr(E.adsControlFlowManagerHelper,B).JSC$26723_isSlotExitRequested()||jr(E.adsControlFlowManagerHelper,B).JSC$26723_isLayoutExitRequested())jr(E.adsControlFlowManagerHelper,B).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(jr(E.adsControlFlowManagerHelper,B).isOccupyingSlotType())jr(E.adsControlFlowManagerHelper,B).markedForUnscheduleAfterOutboundAdapterRequests=!0,MKh(E,B);else if(jr(E.adsControlFlowManagerHelper,B).JSC$26723_isSlotFillRequested())jr(E.adsControlFlowManagerHelper,
B).markedForUnscheduleAfterOutboundAdapterRequests=!0,jr(E.adsControlFlowManagerHelper,B)!=null&&(AN(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",B),B=jr(E.adsControlFlowManagerHelper,B),B.fulfillmentLifecycleStage="fill_cancel_requested",B.registeredFulfillmentAdapter.cancelSlotFilling());else{var I=UU(E.adsControlFlowManagerHelper,B),T;E.experimentApiProvider.get();(T=_.d("h5_enable_layout_unscheduling_events"))&&(I?NvX(E,B,I):_.DR(Error("Ih"),B,I,void 0,!1));AN(E.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",B);var e=jr(E.adsControlFlowManagerHelper,B),c=B.slotEntryTrigger,Y=e.registeredSlotEntryTriggerAdapters.get(c.triggerId);Y&&(Y.unregisterTrigger(c),e.registeredSlotEntryTriggerAdapters.delete(c.triggerId));c=_.p(B.slotFulfillmentTriggers);for(Y=c.next();!Y.done;Y=c.next()){Y=Y.value;var v=e.registeredFulfillmentTriggerAdapters.get(Y.triggerId);v&&(v.unregisterTrigger(Y),e.registeredFulfillmentTriggerAdapters.delete(Y.triggerId))}c=_.p(B.slotExpirationTriggers);
for(Y=c.next();!Y.done;Y=c.next())if(Y=Y.value,v=e.registeredExpirationTriggerAdapters.get(Y.triggerId))v.unregisterTrigger(Y),e.registeredExpirationTriggerAdapters.delete(Y.triggerId);e.hasLayout()&&(c=e.layout,fm(e,c.layoutExitNormalTriggers),fm(e,c.layoutExitSkipTriggers),fm(e,c.layoutExitMuteTriggers),fm(e,c.layoutExitUserInputSubmittedTriggers),fm(e,c.layoutExitUserCancelledTriggers));e.registeredFulfillmentAdapter=void 0;e.registeredSlotAdapter!=null&&(e.registeredSlotAdapter.release(),e.registeredSlotAdapter=
void 0);e.registeredLayoutRenderingAdapter!=null&&(e.registeredLayoutRenderingAdapter.release(),e.registeredLayoutRenderingAdapter=void 0);e=E.adsControlFlowManagerHelper;jr(e,B)&&(e=gFX(e,B.slotType+"_"+B.slotPhysicalPosition))&&e.delete(B.slotId);AN(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",B);E=_.p(E.adsControlFlowEventListeners);for(e=E.next();!e.done;e=E.next())e=e.value,e.onSlotUnscheduled(B),I&&!T&&NvX(e,B,I)}},NvX=function(E,B,I){ko(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
B,I);
ko(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",B,I);E=_.p(E.adsControlFlowEventListeners);for(var T=E.next();!T.done;T=E.next())T=T.value,I&&NvX(T,B,I)},MKh=function(E,B){if(jr(E.adsControlFlowManagerHelper,B)!=null&&jr(E.adsControlFlowManagerHelper,B).isOccupyingSlotType()){var I=UU(E.adsControlFlowManagerHelper,B);
if(I&&GDU(E.adsControlFlowManagerHelper,B)){if(jr(E.adsControlFlowManagerHelper,B)!=null){var T=E.adEventLogger,e;var c=((e=x46.get("abandoned"))==null?void 0:e.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";ko(T,c,B,I);E=jr(E.adsControlFlowManagerHelper,B);E.slotLifecycleStage!=="rendering"&&tN(E.slot,E.slotLifecycleStage,"exitLayout");E.slotLifecycleStage="rendering_stop_requested";E.registeredLayoutRenderingAdapter.stopRendering(I,"abandoned")}}else{AN(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
B);try{T=jr(E.adsControlFlowManagerHelper,B);if(!T)throw new TN("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");T.slotLifecycleStage!=="enter_requested"&&T.slotLifecycleStage!=="entered"&&T.slotLifecycleStage!=="rendering"&&tN(T.slot,T.slotLifecycleStage,"exitSlot");T.slotLifecycleStage="exit_requested";if(T.registeredSlotAdapter===void 0)throw T.slotLifecycleStage="scheduled",new TN("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
T.registeredSlotAdapter.exit()}catch(Y){Y instanceof TN&&Y.adsClientErrorMessage?(SEZ(E.adEventLogger,Y.adsClientErrorMessage,B),_.DR(Y,B,void 0,void 0,Y.aggressivelySample)):(SEZ(E.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",B),_.DR(Y,B))}}}};var Ve=function(E,B,I,T,e,c){_.Cx.call(this);this.registry=E;this.experimentApiProvider=c;this.slotMap=new Map};
_.L(Ve,_.Cx);var gFX=function(E,B){return(E=E.slotMap.get(B))?E:new Map},jr=function(E,B){return gFX(E,B.slotType+"_"+B.slotPhysicalPosition).get(B.slotId)},HuU=function(E){var B=[];
E.slotMap.forEach(function(I){I=_.p(I.values());for(var T=I.next();!T.done;T=I.next())B.push(T.value.slot)});
return B};
Ve.prototype.onSlotEntered=function(E){E=jr(this,E);E.slotLifecycleStage!=="enter_requested"&&tN(E.slot,E.slotLifecycleStage,"onSlotEntered");E.slotLifecycleStage="entered"};
var GDU=function(E,B){E=jr(E,B);return E.hasLayout()&&E.isRendering()},UU=function(E,B){(E=jr(E,B))?E.hasLayout()&&!E.layout&&_.DR("Unexpected empty layout",B):_.DR("Unexpected undefined slotState",B);
return(E==null?void 0:E.layout)||null};
Ve.prototype.onSlotExited=function(E){E=jr(this,E);E.slotLifecycleStage!=="exit_requested"&&tN(E.slot,E.slotLifecycleStage,"onSlotExited");E.slotLifecycleStage="scheduled"};
Ve.prototype.onLayoutExited=function(E,B){E=jr(this,E);E.isPrimaryLayout(B)&&(E.slotLifecycleStage!=="rendering_stop_requested"&&tN(E.slot,E.slotLifecycleStage,"onLayoutExited"),E.slotLifecycleStage="entered")};
var fm=function(E,B){B=_.p(B);for(var I=B.next();!I.done;I=B.next()){I=I.value;var T=E.registeredLayoutExitTriggerAdapters.get(I.triggerId);T&&(T.unregisterTrigger(I),E.registeredLayoutExitTriggerAdapters.delete(I.triggerId))}},tN=function(E,B,I){_.DR("Slot stage was "+B+" when calling method "+I,E)};var W7N=function(E){_.Cx.call(this);this.deps=E;this.JSC$13219_adsControlFlowManager=JmD(this)};
_.L(W7N,_.Cx);var JmD=function(E){var B=new bY(function(I,T,e,c){return new Ve(E.deps.registry,I,T,e,c,E.deps.experimentApiProvider)},new Set(Nvi(E.deps.registry).concat(E.deps.listeners)),E.deps.adEventLogger,E.deps.experimentApiProvider);
_.Bp(E,B);return B};var XwN=function(E,B){_.Cx.call(this);this.experimentApiProvider=E;this.eventLoggingSettingsProvider=B;this.eventCount=0};
_.L(XwN,_.Cx);XwN.prototype.logEvent=function(E){oW(this,E)};
var AN=function(E,B,I,T){oW(E,B,void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,void 0,T)},ko=function(E,B,I,T,e){oW(E,B,void 0,void 0,void 0,I,T?T:void 0,void 0,void 0,I.adSlotLoggingData,T?T.adLayoutLoggingData:void 0,void 0,e)},SEZ=function(E,B,I){oW(E,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:B})},oW=function(E,B,I,T,e,c,Y,v,y,Z,P,z,m){m=m===void 0?0:m;
rmZ(E.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+B,"slot:",c,"layout:",Y,"ping:",v,"Opportunity:",{opportunityType:I,associatedSlotId:T,slotsFromOpportunity:e,triggerBundle:y,adSlotLoggingData:Z,adLayoutLoggingData:P});try{var u=function(){E.experimentApiProvider.get();if(B!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){B||_.DR("Empty PACF event type",c,Y);var x=E.eventLoggingSettingsProvider.get();var M;(M=x.alwaysIncludeDebugData)||(x.experimentApiProvider.get(),M=
!1);x=M;M={eventType:B,eventOrder:++E.eventCount};var N={};c&&(N.slotData=MK6(x,c));if(Y){var W={type:Y.layoutType,controlFlowManagerLayer:OuJ.get(Y.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};x&&(W.debugData={layoutId:Y.layoutId});N.layoutData=W}v&&(N.pingData={pingDispatchStatus:v.dispatchStatus,serializedAdPingMetadata:v.ping.serializedAdPingMetadata,pingIndex:v.index});y&&(N.triggerData=nFQ(y.trigger,y.category));I&&(N.opportunityData=Huf(x,I,T,e));M.adClientData=N;Z&&(M.serializedSlotAdServingData=
Z.serializedSlotAdServingDataEntry);P&&(M.serializedAdServingData=P.serializedAdServingDataEntry);z&&(M.errorInfo=z);_.hK("adsClientStateChange",{adsClientEvent:M})}};
m&&m>0?_.PC(_.xm(),function(){return u()},m):u()}catch(x){rmZ(E.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.PC(_.xm(),function(){_.DR(x instanceof Error?x:String(x),c,Y,{pacf_message:"exception during pacf logging"})})}};var buh=function(E,B){XwN.call(this,E,B)};
_.L(buh,XwN);var oF6=function(){},rmZ=function(E,B){return _.d(B)};var jmu=function(){var E=new AmV;this.JSC$13238_adsControlFlowManager=(new W7N(E)).JSC$13219_adsControlFlowManager},AmV=function(){_.Cx.call(this);
var E=this;this.experimentApiProvider=new umV(function(){return new oF6});
var B=new umV(function(){return new L7z(E.experimentApiProvider)});
this.adEventLogger=new buh(this.experimentApiProvider,B);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.L(AmV,_.Cx);var U4D=function(){},kDt,qX=function(){kDt||(kDt=new U4D);
return kDt},F9=function(E){if(!E.JSC$13249_externallyManagedSlotAdapterCallback){var B=(new jmu).JSC$13238_adsControlFlowManager;
E.JSC$13249_externallyManagedSlotAdapterCallback=B}return E.JSC$13249_externallyManagedSlotAdapterCallback},tKZ=function(E,B,I){var T=B.opportunityType,e=Error("Jh");
if(T!==void 0){var c=F9(E);x4h(c,T,void 0,I)}else _.DR(e,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});c=[];if(B.adSlotAndLayoutMetadata!==void 0){B=_.p(B.adSlotAndLayoutMetadata);for(var Y=B.next();!Y.done;Y=B.next()){var v=Y.value;if(Y=v.adSlotMetadata)if(c.push(Y),E.onSlotReceivedExternallyManaged(Y,I),v.adLayoutMetadata){v=_.p(v.adLayoutMetadata);for(var y=v.next();!y.done;y=v.next())E.onLayoutReceivedExternallyManaged(Y,y.value,I)}else I>0&&_.DR("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
T,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else I>0&&_.DR("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+T,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else I>0&&_.DR("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+T,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(T!==void 0)E.onOpportunityProcessedExternallyManaged(T,c,void 0,I);else _.DR(e,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
U4D.prototype.onSlotReceivedExternallyManaged=function(E,B){E=e9(E);if(E instanceof TN)_.DR(E,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else F9(this).onSlotReceivedExternallyManaged(E,B)};
U4D.prototype.onLayoutReceivedExternallyManaged=function(E,B,I){E=e9(E);B=SEc(B);if(E instanceof TN)_.DR(E,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(B instanceof lJ)_.DR(B,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else F9(this).onLayoutReceivedExternallyManaged(E,B,I)};
U4D.prototype.onOpportunityProcessedExternallyManaged=function(E,B,I,T){var e=[];B=_.p(B);for(var c=B.next();!c.done;c=B.next())c=e9(c.value),c instanceof TN?_.DR(c,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):e.push(c);F9(this).onOpportunityProcessedExternallyManaged(E,e,I,T)};
var fER=function(E,B){B=e9(B);if(B instanceof TN)_.DR(B,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var I=F9(E);AN(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",B);I=_.p(I.adsControlFlowEventListeners);for(var T=I.next();!T.done;T=I.next())T=jr(T.value,B),T.slotLifecycleStage!=="not_scheduled"&&tN(T.slot,T.slotLifecycleStage,"onSlotScheduled"),T.slotLifecycleStage="scheduled";E=F9(E);AN(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",B);E=_.p(E.adsControlFlowEventListeners);
for(I=E.next();!I.done;I=E.next())I.value.onSlotEntered(B)}},VKr=function(E,B){B=e9(B);
if(B instanceof TN)_.DR(B,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var I=F9(E);AN(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",B);I=_.p(I.adsControlFlowEventListeners);for(var T=I.next();!T.done;T=I.next())T.value.onSlotExited(B);E=F9(E);AN(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",B);E=_.p(E.adsControlFlowEventListeners);for(I=E.next();!I.done;I=E.next())I.value.onSlotUnscheduled(B)}},qED=function(E,B,I){B=e9(B);
I=SEc(I);if(B instanceof TN)_.DR(B,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(I instanceof lJ)_.DR(I,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var T=F9(E);ko(T.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",B,I);T=_.p(T.adsControlFlowEventListeners);for(var e=T.next();!e.done;e=T.next())e.value.onLayoutScheduled(B,I);E=F9(E);ko(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",B,I);E=_.p(E.adsControlFlowEventListeners);
for(T=E.next();!T.done;T=E.next())nFR(T.value,B,I)}},Db=function(E,B,I){B=e9(B);
I=SEc(I);if(B instanceof TN)_.DR(B,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(I instanceof lJ)_.DR(I,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var T=F9(E);ko(T.adEventLogger,GDf("normal"),B,I);T=_.p(T.adsControlFlowEventListeners);for(var e=T.next();!e.done;e=T.next())e.value.onLayoutExited(B,I,"normal");E=F9(E);E=_.p(E.adsControlFlowEventListeners);for(T=E.next();!T.done;T=E.next())NvX(T.value,B,I)}};_.Km=_.rp(function(E){var B=_.XS(E,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});E=Object.assign({},B);var I=B.data;B=B.customCommandResolver;var T=(delete E.data,delete E.customCommandResolver,E),e=_.oH();_.k4(e,function(){return I().interaction},B,function(){var v;
return(v=T.listenToTapEvent)==null?void 0:v.call(T)});
_.VU(e,{visibilityCallback:function(v){var y,Z=(y=I().interaction)==null?void 0:y.onFirstVisible;v&&(Z&&_.xg(Z),T.setOnErrorHandler()&&Jmc(e))},
showOption:_.Xt});E=_.p(_.lQ(!1,void 0,"eiYvIe"));var c=E.next().value,Y=E.next().value;E=_.TI(function(){var v;((v=T.setTouchEndHandler)==null?0:v.call(T))&&!c()&&(e.value.click(),Y(!0),setTimeout(function(){Y(!1)},100));
return!1});
return _.w("ad-image-view-model",{class:function(){var v,y=[((v=I().interaction)==null?0:v.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],Z;((Z=T.isGridViewEnabled)==null?0:Z.call(T))&&y.push("ytwAdImageViewModelHostInGridView");return y.join(" ")},
el:e,"on:touchend":E},_.w("div",{class:"ytwAdImageViewModelHostImageContainer"},_.w(_.Ja,{data:function(){var v;return{sources:I().imageSources,contentMode:(v=I().imageProperties)==null?void 0:v.contentMode}},
alt:function(){var v,y;return((v=I().interaction)==null?void 0:(y=v.accessibility)==null?void 0:y.label)||""},
targetHeight:T.targetHeight,targetWidth:T.targetWidth,preserveHeight:T.preserveHeight,preserveWidth:T.preserveWidth,useWidth:T.useWidth,style:function(){var v,y;return"vertical-align: bottom;"+(((v=I().background)==null?0:v.color)?"background-color:"+_.dE((y=I().background)==null?void 0:y.color)+";":"")},
className:function(){return T.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var v,y;return(y=(v=T.setDraggable)==null?void 0:v.call(T))!=null?y:void 0}})))},"ab");var F7t=_.rp(function(E){var B=E.data,I=E.listenToTapEvent,T=_.oH();_.d("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.k4(T,function(){return B().interaction},void 0,function(){return I==null?void 0:I()});
_.VU(T,{visibilityCallback:function(c){var Y,v=(Y=B().interaction)==null?void 0:Y.onFirstVisible;c&&v&&_.xg(v)},
showOption:_.Xt});E=_.TI(function(){if(_.d("enable_web_home_top_landscape_image_layout_legacy_click_command")){var c,Y=(c=B().interaction)==null?void 0:c.onTap;Y&&_.$O(T.value,"yt-navigate",{endpoint:_.ha(Y)})}});
var e=function(){};
return _.w("ad-button-hover-overlay-view-model",{"on:click":E,class:function(){var c;return((c=B().interaction)==null?0:c.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:T},function(){return _.d("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.w(_.hM,{data:function(){return B().button}},{adButtonViewModel:function(c){return _.w(_.bg,{data:c.data,
customCommandResolver:e})}}):_.w(_.hM,{data:function(){return B().button}},{adButtonViewModel:_.bg})}())},"bb");var cD;_.oQ(_.rp(function(E){var B=E.data;var I=_.oH();_.d("stop_av_measurement_on_detach")&&_.dt(function(){pf(I)});
_.k4(I,function(){return B().interaction},void 0,function(){return!0});
_.VU(I,{visibilityCallback:function(Y){if(Y){var v;(Y=(v=B().interaction)==null?void 0:v.onFirstVisible)&&_.xg(Y);var y;if(v=(y=B().adLayoutData)==null?void 0:y.activeViewData)iJ(I,v),_.d("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&pf(I)})}else _.d("stop_av_measurement_on_detach")&&pf(I)},
showOption:_.Xt,hideOption:ri});E=_.p(_.lQ(!1,void 0,"yzu6qe"));var T=E.next().value,e=E.next().value;E=_.TI(function(){e(!0)});
var c=_.TI(function(){e(!1)});
return _.w("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:I,"on:mouseenter":E,"on:mouseleave":c},_.w("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.c$({"max-width":function(){return _.d("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.w("div",{class:function(){var Y;
a:{var v;switch((Y=_.h(B().thumbnailImage,Qk))==null?void 0:(v=Y.imageProperties)==null?void 0:v.renderingAspect){case "RENDERING_ASPECT_SQUARE":Y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":Y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}Y=void 0}return Y}},_.w(_.hM,{data:function(){return B().thumbnailImage}},{adImageViewModel:function(Y){return _.w(_.Km,
{data:Y.data,
listenToTapEvent:!0,setTouchEndHandler:_.d("enable_top_landscape_image_experiment_dom_id_web")})}})),_.w("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.w(_.wU,{cond:function(){var Y,v,y;
return(Y=_.h(B().thumbnailImage,Qk))==null?void 0:(v=Y.imageProperties)==null?void 0:(y=v.overlayIcon)==null?void 0:y.iconImage},
then:function(Y){return _.w(_.Ja,{data:Y,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.w("div",{class:function(){return T()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.w(_.hM,{data:function(){return B().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(Y){return _.w(F7t,
{data:Y.data,
listenToTapEvent:!0})}}))),_.w("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.w(_.hM,{data:function(){return B().feedAdMetadata}},{feedAdMetadataViewModel:function(Y){return _.w(afV,{data:Y.data,
listenToTapEvent:!0,setTouchEndHandler:_.d("enable_top_landscape_image_experiment_dom_id_web")})}})))},"cb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;var I=_.oH();_.d("stop_av_measurement_on_detach")&&_.dt(function(){pf(I)});
var T=_.hk(_.HE);_.k4(I,function(){return B().interaction});
_.VU(I,{visibilityCallback:function(Z){if(Z){var P;(Z=(P=B().interaction)==null?void 0:P.onFirstVisible)&&_.xg(Z);var z;if(P=(z=B().adLayoutData)==null?void 0:z.activeViewData)iJ(I,P),_.d("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&pf(I)})}else _.d("stop_av_measurement_on_detach")&&pf(I)},
showOption:_.Xt,hideOption:ri});var e=_.TI(function(Z){var P,z,m=(P=_.h(B().adImage,Qk))==null?void 0:(z=P.interaction)==null?void 0:z.onTap;m&&(_.d("enable_square_image_components_ui_web_with_custom_event")?_.$O(I.value,"yt-navigate",{endpoint:_.ha(m)}):DYJ(Z,m))}),c=_.TI(function(){var Z,P,z=(Z=_.h(B().adButton,Kpz))==null?void 0:(P=Z.interaction)==null?void 0:P.onTap;
z&&_.$O(I.value,"yt-navigate",{endpoint:_.ha(z)})}),Y=function(){};
E={};var v={},y={};return _.w("square-image-layout-view-model",{class:_.RQ("ytwSquareImageLayoutViewModelHost",(E.ytwSquareImageLayoutViewModelHostColumn=T,E)),el:I},_.w("div",{class:_.RQ("ytwSquareImageLayoutViewModelHostImage",(v.ytwSquareImageLayoutViewModelHostColumnImage=T,v))},function(){return _.d("enable_square_image_components_ui_web_with_native_img")?_.w("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var Z,P,z;return((Z=_.h(B().adImage,Qk))==null?void 0:(P=Z.imageSources)==
null?void 0:(z=P[0])==null?void 0:z.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":e}):_.w(_.hM,{data:function(){return B().adImage}},{adImageViewModel:function(Z){return _.w(_.Km,{data:Z.data,
isGridViewEnabled:T,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.w("div",{class:_.RQ("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(y.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=T,y))},_.w(_.hM,{data:function(){return B().feedAdMetadata}},{feedAdMetadataViewModel:afV}),function(){return _.d("enable_square_image_components_ui_web_with_float_button")?_.w("div",{"on:click":c},_.w(_.hM,{data:function(){return B().adButton}},
{adButtonViewModel:function(Z){var P={};
return _.w(_.bg,{data:Z.data,customCommandResolver:Y,className:_.RQ((P.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,P.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=T,P))})}})):_.w(_.hM,{data:function(){return B().adButton}},{adButtonViewModel:function(Z){var P={};
return _.w(_.bg,{data:Z.data,className:_.RQ((P.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,P.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=T,P))})}})}()))},"db"),"square-image-layout-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;var I=E.noBottomMargin;var T=E.typographyBump;var e=_.oH();_.d("stop_av_measurement_on_detach")&&_.dt(function(){pf(e)});
_.d("enable_web_home_top_landscape_image_layout_level_click")&&_.k4(e,function(){return B().interaction},void 0,function(){return!0});
E=function(){return B().interaction};
E!==void 0&&E!==null||_.Xx(Error("Kh"));_.VU(e,{visibilityCallback:function(P){if(P){var z;(P=(z=B().interaction)==null?void 0:z.onFirstVisible)&&_.xg(P);var m;if(z=(m=B().adLayoutData)==null?void 0:m.activeViewData)iJ(e,z),_.d("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&pf(e)})}else _.d("stop_av_measurement_on_detach")&&pf(e)},
showOption:_.Xt,hideOption:ri});var c=function(){var P,z,m;return(P=_.h(B().thumbnailImage,Qk))==null?void 0:(z=P.background)==null?void 0:(m=z.backgroundImageSource)==null?void 0:m.imageSources};
E=_.p(_.lQ(!1,void 0,"GIwTMc"));var Y=E.next().value,v=E.next().value;E=_.TI(function(){v(!0)});
var y=_.TI(function(){v(!1)}),Z=function(){return Y()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.w("top-landscape-image-layout-view-model",{class:function(){var P;return((P=B().interaction)==null?0:P.onTap)&&_.d("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:e,"on:mouseenter":E,"on:mouseleave":y},_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.w(_.wU,{cond:function(){return c()&&c().length>0},
then:function(){return _.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.c$({top:"0","background-image":function(){return"url("+String(c()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.w(_.wU,{cond:function(){return!!B().adButtonHoverOverlay},
then:function(){return _.w("div",{class:Z},_.w(_.hM,{data:function(){return B().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:F7t}))}}),_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.w(_.hM,{data:function(){return B().thumbnailImage}},{adImageViewModel:function(P){return _.w(_.Km,{data:P.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.d("enable_web_home_top_landscape_image_layout_level_click")})}})),_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.w(_.Ja,{data:{sources:[{clientResource:{imageName:_.d("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.w(_.hM,{data:function(){return B().feedAdMetadata}},{feedAdMetadataViewModel:function(P){return _.w(afV,{data:P.data,
noBottomMargin:function(){return I==null?void 0:I()},
listenToTapEvent:function(){return _.d("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return T==null?void 0:T()}})}})))},"eb"),"top-landscape-image-layout-view-model",{props:{data:_.Jh,
noBottomMargin:_.Jh,typographyBump:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;var I=E.typographyBump;var T=_.oH();_.d("stop_av_measurement_on_detach")&&_.dt(function(){pf(T)});
_.VU(T,{visibilityCallback:function(e){if(e){var c;(e=(c=B().interaction)==null?void 0:c.onFirstVisible)&&_.xg(e);var Y;if(c=(Y=B().adLayoutData)==null?void 0:Y.activeViewData)iJ(T,c),_.d("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&pf(T)})}else _.d("stop_av_measurement_on_detach")&&pf(T)},
showOption:_.Xt,hideOption:ri});return _.w("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:T},_.w("div",null,_.w(_.hM,{data:function(){return B().videoLockup}},{lockupViewModel:function(e){return _.w(_.tF,{data:e.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:I})}})))},"fb"),"video-display-button-group-layout-view-model",{props:{data:_.Jh,
noBottomMargin:_.Jh,typographyBump:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;var I=E.typographyBump;var T=_.oH();_.d("stop_av_measurement_on_detach")&&_.dt(function(){pf(T)});
_.VU(T,{visibilityCallback:function(e){if(e){var c;(e=(c=B().interaction)==null?void 0:c.onFirstVisible)&&_.xg(e);var Y;if(c=(Y=B().adLayoutData)==null?void 0:Y.activeViewData)iJ(T,c),_.d("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&pf(T)})}else _.d("stop_av_measurement_on_detach")&&pf(T)},
showOption:_.Xt,hideOption:ri});return _.w("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:T},_.w("div",null,_.w(_.hM,{data:function(){return B().videoLockup}},{lockupViewModel:function(e){return _.w(_.tF,{data:e.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:I})}})))},"gb"),"video-display-full-layout-view-model",{props:{data:_.Jh,
noBottomMargin:_.Jh,typographyBump:_.Jh}});_.D4z=_.rp(function(E){var B=E.data;E=_.oH();return _.w("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:E},_.w(_.wU,{cond:function(){return B().imageBadge},
then:function(I){return _.w(_.Ja,{data:I,alt:""})}}))},"hb");var K7t=_.rp(function(E){var B=E.data;var I=E.customCommandResolver;E=_.oH();_.k4(E,function(){return B().interaction},I);
_.VU(E,{visibilityCallback:function(T){var e,c=(e=B().interaction)==null?void 0:e.onFirstVisible;T&&c&&_.xg(c)},
showOption:_.Xt});return _.w("carousel-ad-card-image-view-model",{class:function(){var T;return((T=B().interaction)==null?0:T.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:E,"aria-label":function(){var T,e;return(T=B().interaction)==null?void 0:(e=T.accessibility)==null?void 0:e.label}},_.w(_.hM,{data:function(){return B().adImage}},{adImageViewModel:function(T){return _.w(_.Km,{data:T.data,
customCommandResolver:I})}}),_.w("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.w(_.hM,{data:function(){return B().badge}},{adCardBadgeViewModel:_.D4z})),_.w(_.v$,{model:{color:4}}))},"ib");var RCN=_.rp(function(E){var B=_.p(_.lQ(0,void 0,"o9Bzd")),I=B.next().value;B.next();var T=B.next().value,e=_.p(_.lQ(!1,void 0,"KLdzYe"));B=e.next().value;var c=e.next().value,Y;_.dt(function(){clearTimeout(Y)});
e=_.TI(function(){var Z;((Z=E.animate)==null?0:Z.call(E))?(c(!0),Y=setTimeout(function(){c(!1);v()},200)):v();
return!1});
var v=function(){T(function(Z){return(Z+E.numShownItems())%E.data().length})},y={};
return _.w("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.w("div",{class:_.RQ("ytwHorizontalCarouselCarouselWrapper")},_.w("div",{class:_.RQ("ytwHorizontalCarouselCarouselInnerWrapper",(y.ytwHorizontalCarouselAnimating=B,y))},_.w(_.Zt,{each:E.data,keyBy:"INDEX"},function(Z,P){return _.w("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.c$({"flex-basis":function(){return"calc((100% - (8px * "+(E.numShownItems()-1)+")) / "+E.numShownItems()+")"},
order:function(){var z=P-I();z<0&&(z+=E.data().length);return z}})},E.children(Z,P))}))),_.w("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":e},E.nextButton()))},"jb");var EXu=_.rp(function(E){var B=E.data;var I=E.customCommandResolver;var T=E.expansive;E=_.oH();_.VU(E,{visibilityCallback:function(e){var c,Y=(c=B().interaction)==null?void 0:c.onFirstVisible;e&&Y&&_.xg(Y)},
showOption:_.Xt});return _.w("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:E},_.w(RCN,{data:function(){var e;return((e=B())==null?void 0:e.carouselAdCards)||[]},
nextButton:function(){return _.w(_.hM,{data:function(){return B().nextButton}},{buttonViewModel:function(e){var c=e.data;
return _.w(_.ne,{data:function(){return(T==null?0:T())?Object.assign({},c(),{style:"mono"}):c()},
className:_.d("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(e){return _.w(_.hM,{data:e},{carouselAdCardImageViewModel:function(c){return _.w(K7t,{data:c.data,customCommandResolver:I})}})}))},"kb");var Bat=_.rp(function(E){var B=E.data;var I=E.customCommandResolver;var T=E.className;var e=E.buttonClassName;var c=E.animationEntityKey;var Y=E.expansive;return _.w("carousel-button-view-model",{class:_.RQ("ytwCarouselButtonViewModelHost",T)},_.w(_.hM,{data:function(){return B().carousel}},{carouselAdCardCollectionViewModel:function(v){return _.w(EXu,{data:v.data,
customCommandResolver:I,expansive:Y})}}),_.w(_.hM,{data:function(){return B().button}},{adButtonViewModel:function(v){var y=v.data;
return _.w(_.bg,{data:function(){return(Y==null?0:Y())?Object.assign({},y(),{style:"AD_BUTTON_STYLE_TONAL"}):y()},
className:e,customCommandResolver:I,animationEntityKey:c})}}))},"lb");_.$5r=_.rp(function(E){var B=E.data;E=E.className;var I=_.oH();_.uW(function(){var T;((T=B())==null?0:T.backgroundColor)&&I.value.setAttribute("data-background-color",String(B().backgroundColor))});
return _.w("pivot-button-view-model",{el:I,class:_.RQ("ytwPivotButtonViewModelHost",E)},_.w(_.Y3,{command:function(){var T=B();T=T.onClickCommand?_.ha(T.onClickCommand):T.contentDescription?_.qg(T.contentDescription):void 0;return T},
ariaLabel:function(){return B().contentDescription}},_.w(_.wU,{cond:function(){return B().thumbnail},
then:function(T){return _.w(_.Ja,{data:T,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.w(_.wU,{cond:function(){return B().icon},
then:function(T){return _.w(_.i0,{icon:function(){return T().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"mb");_.I66=_.rp(function(E){var B=E.data;var I=E.buttonShapeOverrideables;return _.w("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.w(_.hM,{data:function(){return B().buttonViewModels}},{buttonViewModel:function(T){return _.w(_.ne,{data:T.data,
buttonOverrides:I})},
likeButtonViewModel:function(T){return _.w(_.dLz,{data:T.data,buttonShapeOverrideables:I})},
dislikeButtonViewModel:function(T){return _.w(_.mLl,{data:T.data,buttonShapeOverrideables:I})}}))},"nb");var TaD=_.rp(function(E){var B=E.avatar;var I=E.headline;var T=E.badge;var e=E.description;var c=E.expansive;E={};return _.w("yt-ad-metadata-shape",{class:_.RQ("ytAdMetadataShapeHost",(E.ytAdMetadataShapeHostLarge=c,E))},_.w("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.w(_.wU,{cond:B,then:function(Y){return _.w(_.cEr,{data:function(){return(c==null?0:c())?Object.assign({},Y(),{size:"AD_AVATAR_SIZE_MPLUS"}):Y()}})}}),_.w("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.w(_.aS,{text:I,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.w(_.wU,{cond:T,then:function(Y){return _.w(_.UC,{data:function(){return(c==null?0:c())?Object.assign({},Y(),{style:"AD_BADGE_STYLE_STARK"}):Y()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.w("h2",{class:"ytAdMetadataShapeHostDescription"},_.w(_.aS,{text:e,
linkInheritColor:!0})))},"ob");var ech=_.rp(function(E){var B=E.data;var I=E.onShow;var T=E.expansive;E=_.oH();_.k4(E,function(){return B().interaction});
_.uW(function(){var c,Y=(c=B().animatedRenderingConfig)==null?void 0:c.delayedSecondsToVisible;if(Y){var v=setTimeout(I,Y*1E3);_.dt(function(){clearTimeout(v)})}});
var e={};return _.w("reels-ad-card-buttoned-view-model",{class:_.RQ(function(){var c;return((c=B().interaction)==null?0:c.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(e.ytwReelsAdCardButtonedViewModelHostExpansive=T,e)),
el:E},_.w(TaD,{avatar:function(){return _.h(B().avatar,Fpu)},
headline:function(){return B().headline},
badge:function(){return _.h(B().adBadge,DdR)},
description:function(){return B().description},
expansive:T}),_.w(_.hM,{data:function(){return B().ctaButton}},{adButtonViewModel:function(c){var Y=c.data;
return _.w(_.bg,{data:function(){return(T==null?0:T())?Object.assign({},Y(),{style:"AD_BUTTON_STYLE_FILLED"}):Y()}})}}))},"pb");var l6$=_.rp(function(E){var B=E.data;E=E.expansive;var I=_.oH();_.d("web_ad_metadata_clickable")&&_.k4(I,function(){return B().interaction});
var T={};T=_.B$("ytwReelsAdMetadataViewModelHost",(T.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.d("web_ad_metadata_clickable"),T));return _.w("reels-ad-metadata-view-model",{class:T,el:I},_.w(TaD,{avatar:function(){return _.h(B().avatar,Fpu)},
headline:function(){return B().headline},
badge:function(){return _.h(B().adBadge,DdR)},
description:function(){return B().description},
expansive:E}))},"qb");var ct6={iconPosition:"icon-with-label",size:"L"},iAZ=_.rp(function(E){var B=E.data;E=E.overlayDensity;var I=_.oH(),T=_.Wl(E,0);_.m$(function(){I.value.setAttribute("overlay-density",String(T()))});
var e=function(){var z;return(z=B().reelsAdCardButtonedEntityKey)!=null?z:""},c=function(){return e()+"/ad_button"},Y=_.iO(o_F,e),v=function(){var z,m;
return(m=(z=Y())==null?void 0:z.value)!=null?m:!1},y=_.hk(Am4),Z=function(){return Object.assign({},ct6,(y()||T()===2)&&{style:"overlay-dark"})};
E={};var P={};return _.w("reels-player-overlay-layout-view-model",{class:_.RQ("ytwReelsPlayerOverlayLayoutViewModelHost",(E.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!B().extension},E.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},E)),
el:I},_.w("div",{class:_.RQ("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(P.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},P))},_.w("div",{"aria-hidden":function(){return v()},
class:_.RQ("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return v()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.c$({"transition-duration":function(){return kDG(B())}})},_.w(_.hM,{data:function(){return B().adMetadata}},{reelsAdMetadataViewModel:function(z){return _.w(l6$,{data:z.data,
expansive:function(){return T()===1}})}}),_.w(_.wU,{cond:function(){return B().extension},
then:function(z){return _.w("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.w(_.hM,{data:z},{adButtonViewModel:function(m){return _.w(_.bg,{data:m.data,animationEntityKey:c,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(m){return _.w(Bat,{data:m.data,animationEntityKey:c,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return T()===1}})}}))}})),_.w("div",{"aria-hidden":function(){return!v()},
class:_.RQ("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return v()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.c$({"transition-duration":function(){return kDG(B())}})},_.w(_.hM,{data:function(){return B().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(z){return _.w(ech,{data:z.data,
onShow:function(){_.Jd(_.aL("booleanEntity",e(),{key:e(),value:!0}))},
expansive:function(){return T()===1}})}}))),_.w("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.w(_.hM,{data:function(){return B().actions}},{reelActionBarViewModel:function(z){return _.w(_.I66,{data:z.data,
buttonShapeOverrideables:Z})}}),_.w(_.hM,{data:function(){return B().menu}},{buttonViewModel:function(z){return _.w(_.ne,{data:z.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},Z(),{type:"tonal"})}})}}),_.w(_.hM,{data:function(){return B().pivotButton}},{pivotButtonViewModel:function(z){return _.w(_.$5r,{data:z.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"rb");_.oQ(iAZ,"reels-player-overlay-layout-view-model",{props:{data:_.Jh,overlayDensity:_.Jh}});var RW=function(){var E=_.r.apply(this,arguments)||this;E.noBottomMargin=!1;E.overlayDensity=0;return E};
_.L(RW,_.r);_.l=RW.prototype;
_.l.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.d("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]]"}}}}}};
_.l.ready=function(){var E=this;yZF(function(){E.isAttached&&$6(E.JSC$13292_storedAdSlotMetadata,E.JSC$13292_storedAdLayoutMetadata,E.adSlotMetadata,E.adLayoutMetadata)&&Db(qX(),E.JSC$13292_storedAdSlotMetadata,E.JSC$13292_storedAdLayoutMetadata)})};
_.l.attached=function(){$6(this.JSC$13292_storedAdSlotMetadata,this.JSC$13292_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&qED(qX(),this.JSC$13292_storedAdSlotMetadata,this.JSC$13292_storedAdLayoutMetadata)};
_.l.detached=function(){$6(this.JSC$13292_storedAdSlotMetadata,this.JSC$13292_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Db(qX(),this.JSC$13292_storedAdSlotMetadata,this.JSC$13292_storedAdLayoutMetadata)};
_.l.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.l.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13292_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13292_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13292_storedAdLayoutMetadata!==void 0&&this.JSC$13292_storedAdSlotMetadata!==void 0&&Db(qX(),this.JSC$13292_storedAdSlotMetadata,this.JSC$13292_storedAdLayoutMetadata),qED(qX(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13292_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13292_storedAdSlotMetadata=this.adSlotMetadata)};
_.Up.Object.defineProperties(RW.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.adLayoutMetadata}}});
RW.prototype.onAdMetadataChanged=RW.prototype.onAdMetadataChanged;RW.prototype.onTypographyBumpChanged=RW.prototype.onTypographyBumpChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],RW.prototype,"rendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],RW.prototype,"ytComponentBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],RW.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],RW.prototype,"noBottomMargin",void 0);_.k([_.X(),_.t("design:type",Object)],RW.prototype,"overlayDensity",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],RW.prototype,"typographyBump",void 0);_.k([_.S("data.adLayoutMetadata"),_.t("design:type",Object),_.t("design:paramtypes",[])],RW.prototype,"adLayoutMetadata",null);_.k([_.X(),_.t("design:type",Object)],RW.prototype,"adSlotMetadata",void 0);
_.k([_.$7("ytd-video-display-full-buttoned-and-button-group-renderer"),_.t("design:type",HTMLElement)],RW.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.k([_.EM("typographyBump"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],RW.prototype,"onTypographyBumpChanged",null);_.k([_.EM("adLayoutMetadata","adSlotMetadata"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],RW.prototype,"onAdMetadataChanged",null);
RW=_.k([_.b({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],RW);
_.A(RW,"ytd-in-feed-ad-layout-renderer",function(){if(Rnz!==void 0)return Rnz;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Rnz=E},
{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var pXr;var Y2R;var E5=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return E};
_.L(E5,_.r);_.l=E5.prototype;_.l.computeHasLiveDescription=function(E){return!(E==null||!E.liveDescription)};
_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.l.onYtToggleButton=function(E){var B,I=(B=this.data)==null?void 0:B.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.aL("upcomingEventReminderStateEntity",I,{key:I,state:E.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.l.attached=function(){this.updateChannelBanner()};
_.l.dataChanged=function(){this.updateChannelBanner()};
_.l.videoReminderStateChanged=function(){var E;this.videoReminderState&&_.h((E=this.data)==null?void 0:E.cta,_.g8)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.l.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var E=_.Aa(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);E&&(E.startsWith("//")&&(E="https:"+E),this.hostElement.classList.add("channel-banner"),_.Dk(this.hostElement,{"--ytvmh-channel-banner":"url("+E+")"}))}else _.d("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.l.onPlayerReady=function(){this.onIronResize()};
_.l.maybeFlushDebouncer=function(){_.d("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(E){var B;E=(B=E.getElementsByTagName("yt-attributed-string"))==null?void 0:B[0];W64(E==null?void 0:E.polymerController)})};
_.l.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var E=_.n(this.hostElement).querySelector("#live-description"),B;E&&((B=this.data)==null?0:B.shortLiveDescription)&&E.clientWidth<E.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
E5.prototype.onIronResize=E5.prototype.onIronResize;E5.prototype.videoReminderStateChanged=E5.prototype.videoReminderStateChanged;E5.prototype.dataChanged=E5.prototype.dataChanged;E5.prototype.onYtToggleButton=E5.prototype.onYtToggleButton;_.k([_.g(_.OI),_.t("design:type",Object)],E5.prototype,"ironResizableBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],E5.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],E5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],E5.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],E5.prototype,"data",void 0);_.k([_.X({selectorArgs:["data.videoReminderEntityKey"],selector:W1D}),_.t("design:type",Object)],E5.prototype,"videoReminderState",void 0);
_.k([_.X({reflectToAttribute:!0,value:_.d("web_modern_buttons")}),_.t("design:type",Boolean)],E5.prototype,"rounded",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.t("design:type",Boolean)],E5.prototype,"hasLiveDescription",void 0);_.k([_.X({reflectToAttribute:!0,value:_.d("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.t("design:type",Boolean)],E5.prototype,"resizableAdBannerSafariFix",void 0);
_.k([_.X({reflectToAttribute:!0,value:_.d("align_three_dot_menu_with_title_description")}),_.t("design:type",Boolean)],E5.prototype,"menuFix",void 0);_.k([_.eV("yt-formatted-string"),_.t("design:type",Array)],E5.prototype,"formattedStrings",void 0);_.k([_.$7("#cta-button"),_.t("design:type",HTMLElement)],E5.prototype,"ctaButton",void 0);_.k([_.RN("yt-toggle-button"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],E5.prototype,"onYtToggleButton",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],E5.prototype,"dataChanged",null);_.k([_.EM("videoReminderState"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],E5.prototype,"videoReminderStateChanged",null);_.k([_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],E5.prototype,"onIronResize",null);
E5=_.k([_.b({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],E5);
_.A(E5,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(Y2R!==void 0)return Y2R;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Y2R=E},{mode:1});var a6Z;var Bb=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};E.isLocked=!1;return E};
_.L(Bb,_.r);_.l=Bb.prototype;_.l.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.l.onExpandedChanged=function(){this.expanded&&_.Ta(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.l.onMouseOver=function(){this.maybeExpand()};
_.l.onTap=function(){this.maybeExpand()};
_.l.onExpandableTileExpanding=function(E){E!==this&&(this.expanded=!1)};
_.l.onExpandableTileLockAndCollapse=function(E){this.isLocked=!0;E!==this&&(this.expanded=!1)};
_.l.onExpandableTileUnlock=function(){this.isLocked=!1};
Bb.prototype.onTap=Bb.prototype.onTap;Bb.prototype.onMouseOver=Bb.prototype.onMouseOver;Bb.prototype.onExpandedChanged=Bb.prototype.onExpandedChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Bb.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Bb.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Bb.prototype,"expanded",void 0);_.k([_.i6("expanded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Bb.prototype,"onExpandedChanged",null);_.k([_.RN("mouseover"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Bb.prototype,"onMouseOver",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Bb.prototype,"onTap",null);
Bb=_.k([_.b({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Bb);
_.A(Bb,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(a6Z!==void 0)return a6Z;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return a6Z=E},{mode:1});var vXh;var $w=function(){var E=_.r.apply(this,arguments)||this;E.buttonOverrides={style:"overlay"};E.useYtdPlayer=_.d("use_ytd_player_for_desktop_masthead");E.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};E.playbackFinished=!1;E.JSC$13304_playerManager=null;E.JSC$13304_mastheadCounter=new KKV;return E};
_.L($w,_.r);_.l=$w.prototype;_.l.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"}}}};
_.l.created=function(){this.JSC$13304_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13304_playerManager=new YC)};
_.l.ready=function(){var E=this;this.JSC$13304_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var B=_.n(this.hostElement).querySelector("#player");this.useYtdPlayer?B.style.display="none":(this.ytdPlayer.style.display="none",yuz(this.JSC$13304_playerManager,B,function(){E.onPlaybackEnded()}),_.n(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var I;
((I=E.data)==null?0:I.navigationEndpoint)&&_.$O(E.hostElement,"yt-navigate",{endpoint:E.data.navigationEndpoint})}))};
_.l.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13304_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.l.attached=function(){var E=this;_.Gg(function(){E.maybePlayVideo()})};
_.l.maybePlayVideo=function(){var E=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$13304_playerManager.playVideo(),this.getPlayerPromise().then(function(){E.JSC$13304_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.l.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13304_playerManager.stopVideo()};
_.l.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var E,B={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((E=this.data.playbackStartMs)!=null?E:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(B);this.setupYtdPlayer()}else wbR(this.JSC$13304_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(CND(this.JSC$13304_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.l.getPlayerPromise=function(){return this.JSC$13304_playerManager.getPlayerPromise()};
_.l.onYtToggleButton=function(E){this.useYtdPlayer?this.toggleMute(E.detail.toggled):E.detail.toggled?this.JSC$13304_playerManager.mute():this.JSC$13304_playerManager.unMute()};
_.l.onYtNavigate=function(E){var B=zHD(E.detail.endpoint),I=m9c(this.data.clickthroughReportingData);B&&I&&(E.detail.endpoint.watchEndpoint?E.detail.tempData=I:_.qU(B,I,30))};
_.l.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.l.onExpandedChanged=function(){this.expanded?(_.Ta(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.l.onMouseOver=function(){this.maybeExpand()};
_.l.onTap=function(){this.maybeExpand()};
_.l.onExpandableTileExpanding=function(E){E!==this&&(this.stopVideo(),this.expanded=!1)};
_.l.onExpandableTileLockAndCollapse=function(E){E!==this&&(this.isLocked=!0,this.expanded=!1)};
_.l.onExpandableTileUnlock=function(){this.isLocked=!1};
_.l.lockAndCollapseExpandableTiles=function(){_.I2(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.l.unlockExpandableTiles=function(){_.I2(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.l.setupYtdPlayer=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,E.ytdPlayer.getPlayerPromise(),2);B=I.yieldResult;B.addEventListener("onStateChange",function(T){E.onPlayerStateChange(T)});
B.addEventListener("onCueRangeExit",function(T){E.onCueRangeExit(T)});
_.ER(I)})};
_.l.onPlayerStateChange=function(E){if(E===1&&(E=this.ytdPlayer.getPlayer())){var B=E.getCurrentTime(),I,T,e=B+((T=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?T:0)/1E3;E.addCueRange("playback",B,e);this.JSC$13304_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.l.onCueRangeExit=function(E){E==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.l.toggleMute=function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,B.ytdPlayer.getPlayerPromise(),2);I=T.yieldResult;E?I.mute():I.unMute();_.ER(T)})};
$w.prototype.onTap=$w.prototype.onTap;$w.prototype.onMouseOver=$w.prototype.onMouseOver;$w.prototype.onExpandedChanged=$w.prototype.onExpandedChanged;$w.prototype.onYtNavigate=$w.prototype.onYtNavigate;$w.prototype.onYtToggleButton=$w.prototype.onYtToggleButton;$w.prototype.dataChanged=$w.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],$w.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],$w.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],$w.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],$w.prototype,"expanded",void 0);_.k([_.X(),_.t("design:type",Object)],$w.prototype,"buttonOverrides",void 0);
_.k([_.X(),_.t("design:type",Object)],$w.prototype,"useYtdPlayer",void 0);_.k([_.$7("#ytd-player"),_.t("design:type",Object)],$w.prototype,"ytdPlayer",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$w.prototype,"dataChanged",null);_.k([_.RN("yt-toggle-button"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],$w.prototype,"onYtToggleButton",null);
_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],$w.prototype,"onYtNavigate",null);_.k([_.i6("expanded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$w.prototype,"onExpandedChanged",null);_.k([_.RN("mouseover"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$w.prototype,"onMouseOver",null);
_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$w.prototype,"onTap",null);$w=_.k([_.b({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],$w);
_.A($w,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(vXh!==void 0)return vXh;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return vXh=E},{mode:1});var ytu;var IF=function(){return _.r.apply(this,arguments)||this};
_.L(IF,_.r);IF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
IF.prototype.onShow=function(){var E=_.n(this.hostElement).querySelector("#live-description"),B;E&&((B=this.data)==null?0:B.shortLiveDescription)&&E.clientWidth<E.scrollWidth&&this.hostElement.classList.add("short-live-description")};
IF.prototype.onYtToggleButton=function(E){var B,I=(B=this.data)==null?void 0:B.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.aL("upcomingEventReminderStateEntity",I,{key:I,state:E.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
IF.prototype.videoReminderStateChanged=function(){var E;this.videoReminderState&&_.h((E=this.data)==null?void 0:E.cta,_.g8)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
IF.prototype.videoReminderStateChanged=IF.prototype.videoReminderStateChanged;IF.prototype.onYtToggleButton=IF.prototype.onYtToggleButton;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],IF.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],IF.prototype,"data",void 0);
_.k([_.X({selectorArgs:["data.videoReminderEntityKey"],selector:W1D}),_.t("design:type",Object)],IF.prototype,"videoReminderState",void 0);_.k([_.RN("yt-toggle-button"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],IF.prototype,"onYtToggleButton",null);_.k([_.EM("videoReminderState"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],IF.prototype,"videoReminderStateChanged",null);
IF=_.k([_.b({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],IF);
_.A(IF,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(ytu!==void 0)return ytu;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ytu=E},{mode:_.qi("kevlar_poly_si_batch_j065")?1:2});var C$Z;var T6=function(){var E=_.r.apply(this,arguments)||this;E.useYtdPlayer=_.d("use_ytd_player_for_desktop_masthead");E.buttonOverrides={style:"overlay"};E.JSC$13312_playerManager=null;E.JSC$13312_mastheadCounter=new KKV;E.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return E};
_.L(T6,_.r);_.l=T6.prototype;_.l.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"}}}};
_.l.created=function(){this.JSC$13312_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13312_playerManager=new YC)};
_.l.ready=function(){var E=this;this.JSC$13312_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var B;(B=this.embeddedPlayer)==null||B.remove()}else{var I;(I=this.ytdPlayer)==null||I.remove();yuz(this.JSC$13312_playerManager,this.embeddedPlayer,function(){E.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){E.data&&E.data.navigationEndpoint&&_.$O(E.hostElement,"yt-navigate",{endpoint:E.data.navigationEndpoint})})}};
_.l.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13312_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.l.dataChanged=function(){var E=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var B=!this.data.disableAutoPlayback,I,T={autoplay:B,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((I=this.data.playbackStartMs)!=null?I:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(B?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(T);this.setupYtdPlayer()}else wbR(this.JSC$13312_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(CND(this.JSC$13312_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13312_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.I2(E.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");E.JSC$13312_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.l.getPlayerPromise=function(){return this.JSC$13312_playerManager.getPlayerPromise()};
_.l.onYtToggleButton=function(E){this.useYtdPlayer?this.toggleMute(E.detail.toggled):E.detail.toggled?this.JSC$13312_playerManager.mute():this.JSC$13312_playerManager.unMute()};
_.l.onYtNavigate=function(E){var B=zHD(E.detail.endpoint),I=m9c(this.data.clickthroughReportingData);B&&I&&(E.detail.endpoint.watchEndpoint?E.detail.tempData=I:_.qU(B,I,30))};
_.l.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13312_playerManager.stopVideo()};
_.l.setupYtdPlayer=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,E.ytdPlayer.getPlayerPromise(),2);B=I.yieldResult;B.addEventListener("onStateChange",function(T){E.onPlayerStateChange(T)});
B.addEventListener("onCueRangeExit",function(T){E.onCueRangeExit(T)});
_.ER(I)})};
_.l.onPlayerStateChange=function(E){if(E===1&&(E=this.ytdPlayer.getPlayer())){var B=E.getCurrentTime(),I,T,e=B+((T=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?T:0)/1E3;E.addCueRange("playback",B,e);_.I2(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13312_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.l.onCueRangeExit=function(E){E==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.l.toggleMute=function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,B.ytdPlayer.getPlayerPromise(),2);I=T.yieldResult;E?I.mute():I.unMute();_.ER(T)})};
_.Up.Object.defineProperties(T6.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var E,B;if(!((E=this.data)==null?0:(B=E.accessibilityData)==null?0:B.label))return"Ad primary link";var I,T;return _.yu("AD_TITLE",{title:(I=this.data)==null?void 0:(T=I.accessibilityData)==null?void 0:T.label})}}});
T6.prototype.onYtMastheadHidden=T6.prototype.onYtMastheadHidden;T6.prototype.onYtNavigate=T6.prototype.onYtNavigate;T6.prototype.onYtToggleButton=T6.prototype.onYtToggleButton;T6.prototype.dataChanged=T6.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],T6.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],T6.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],T6.prototype,"useYtdPlayer",void 0);_.k([_.$7("ytd-toggle-button-renderer"),_.t("design:type",Object)],T6.prototype,"muteButton",void 0);_.k([_.X(),_.t("design:type",Object)],T6.prototype,"buttonOverrides",void 0);
_.k([_.S("data.accessibilityData.label"),_.t("design:type",String),_.t("design:paramtypes",[])],T6.prototype,"titleAriaLabel",null);_.k([_.$7("#replay-button"),_.t("design:type",Object)],T6.prototype,"replayButton",void 0);_.k([_.$7("#player-container"),_.t("design:type",Object)],T6.prototype,"playerContainer",void 0);_.k([_.$7("#player"),_.t("design:type",Object)],T6.prototype,"embeddedPlayer",void 0);_.k([_.$7("#ytd-player"),_.t("design:type",Object)],T6.prototype,"ytdPlayer",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],T6.prototype,"dataChanged",null);_.k([_.RN("yt-toggle-button"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],T6.prototype,"onYtToggleButton",null);_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],T6.prototype,"onYtNavigate",null);
_.k([_.RN("yt-masthead-hidden"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],T6.prototype,"onYtMastheadHidden",null);T6=_.k([_.b({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],T6);
_.A(T6,"ytd-video-masthead-ad-primary-video-renderer",function(){if(C$Z!==void 0)return C$Z;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return C$Z=E},{mode:2});var wXZ;var eU=function(){var E=_.r.apply(this,arguments)||this;E.collapsed=!1;E.impressionResolver=_.gA();E.JSC$13316_activeViewMeasurementDataResolver=_.gA();E.actionMap={"yt-mute-ad-action":"handleMuteAd"};return E};
_.L(eU,_.r);_.l=eU.prototype;_.l.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"}}}};
_.l.ready=function(){var E=this;_.n(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){E.expandAd()});
this.hostElement.addEventListener("yt-action",function(B){if(B.detail.actionName==="yt-service-request"){var I=B.detail.args[1];I.videoMastheadAdMuteCommand&&(E.collapseAd(I.videoMastheadAdMuteCommand.encryptedMastheadId),B.stopPropagation())}})};
_.l.attached=function(){var E=this;_.Gg(function(){E.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(B){if(!E.collapsed){B=_.p(B);for(var I=B.next();!I.done;I=B.next())I=I.value,Wn(I.baseUrl,I.attributionSrcMode);E.data.impressionCommand=void 0}});
this.JSC$13316_activeViewMeasurementDataResolver.promise.then(function(B){E.ytdActiveViewBehavior.enableActiveViewMeasurement(B,15)});
_.d("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&E.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.dataChanged=function(){var E;((E=this.data.impressionCommand)==null?0:E.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var B;((B=this.data)==null?0:B.activeView)&&this.JSC$13316_activeViewMeasurementDataResolver.resolve(this.data.activeView);(E=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(E.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.l.computeWidescreen=function(E){var B;return!!(E&&((B=_.h(E,kOt))==null?0:B.isWidescreen))};
_.l.computeExpandable=function(E){return!!(E&&E.length>0)};
_.l.onIronResize=function(){if(this.expandable){var E=_.n(this.hostElement).querySelector("#expandable-tile-container :first-child");E&&!E.expanded&&(E.expanded=!0)}};
_.l.handleMuteAd=function(){this.collapseAd(null)};
_.l.restoreCollapsedState=function(E){this.collapsed=_.ZB().get("HIDDEN_MASTHEAD_ID")===E};
_.l.collapseAd=function(E){if(E){var B=_.ZB();B.set("HIDDEN_MASTHEAD_ID",E);B.save()}(E=_.n(this.hostElement).querySelector("#video"))&&_.$O(E,"yt-masthead-hidden");this.collapsed=!0};
_.l.expandAd=function(){var E=_.ZB();E.set("HIDDEN_MASTHEAD_ID",!1);E.save();location.reload()};
_.l.detached=function(){_.d("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
eU.prototype.onIronResize=eU.prototype.onIronResize;eU.prototype.dataChanged=eU.prototype.dataChanged;_.k([_.g(_.OI),_.t("design:type",Object)],eU.prototype,"ironResizableBehavior",void 0);_.k([_.g(su),_.t("design:type",Object)],eU.prototype,"ytdActiveViewBehavior",void 0);_.k([_.g(_.nz),_.t("design:type",Object)],eU.prototype,"ytdGridStateAwareBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],eU.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],eU.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],eU.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.t("design:type",Boolean)],eU.prototype,"widescreen",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.t("design:type",Boolean)],eU.prototype,"expandable",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],eU.prototype,"collapsed",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],eU.prototype,"dataChanged",null);
_.k([_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],eU.prototype,"onIronResize",null);eU=_.k([_.b({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],eU);
_.A(eU,"ytd-video-masthead-ad-v3-renderer",function(){if(wXZ!==void 0)return wXZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return wXZ=E},{mode:2});var lN=function(){return _.r.apply(this,arguments)||this};
_.L(lN,_.r);_.l=lN.prototype;_.l.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.l.ready=function(){var E=this;yZF(function(){E.isAttached&&$6(E.JSC$13321_storedAdSlotMetadata,E.JSC$13321_storedAdLayoutMetadata,E.adSlotMetadata,E.adLayoutMetadata)&&Db(qX(),E.JSC$13321_storedAdSlotMetadata,E.JSC$13321_storedAdLayoutMetadata)})};
_.l.attached=function(){$6(this.JSC$13321_storedAdSlotMetadata,this.JSC$13321_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&qED(qX(),this.JSC$13321_storedAdSlotMetadata,this.JSC$13321_storedAdLayoutMetadata)};
_.l.detached=function(){$6(this.JSC$13321_storedAdSlotMetadata,this.JSC$13321_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Db(qX(),this.JSC$13321_storedAdSlotMetadata,this.JSC$13321_storedAdLayoutMetadata)};
_.l.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13321_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13321_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13321_storedAdLayoutMetadata!==void 0&&this.JSC$13321_storedAdSlotMetadata!==void 0&&Db(qX(),this.JSC$13321_storedAdSlotMetadata,this.JSC$13321_storedAdLayoutMetadata),qED(qX(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13321_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13321_storedAdSlotMetadata=this.adSlotMetadata)};
_.Up.Object.defineProperties(lN.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.adLayoutMetadata}}});
lN.prototype.onAdMetadataChanged=lN.prototype.onAdMetadataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],lN.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],lN.prototype,"data",void 0);_.k([_.S("data.adLayoutMetadata"),_.t("design:type",Object),_.t("design:paramtypes",[])],lN.prototype,"adLayoutMetadata",null);
_.k([_.X(),_.t("design:type",Object)],lN.prototype,"adSlotMetadata",void 0);_.k([_.EM("adLayoutMetadata","adSlotMetadata"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],lN.prototype,"onAdMetadataChanged",null);lN=_.k([_.b({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],lN);
_.A(lN,"ytd-page-top-ad-layout-renderer",function(){if(pXr!==void 0)return pXr;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return pXr=
E},{mode:_.qi("kevlar_poly_si_batch_j070")?1:2});var ZAu;var cb=function(){var E=_.r.apply(this,arguments)||this;E.noBottomMargin=!1;E.overlayDensity=0;E.typographyBump=!1;return E};
_.L(cb,_.r);_.l=cb.prototype;
_.l.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.l.ready=function(){var E=this;yZF(function(){E.isAttached&&E.adSlotMetadata&&VKr(qX(),E.adSlotMetadata)})};
_.l.attached=function(){if(this.adSlotMetadata){var E;if(this.adSlotMetadata===((E=this.data)==null?void 0:E.adSlotMetadata))fER(qX(),this.adSlotMetadata);else{var B;_.OG(Error("Lh`"+this.adSlotMetadata+"`"+((B=this.data)==null?void 0:B.adSlotMetadata)))}}};
_.l.detached=function(){this.adSlotMetadata&&VKr(qX(),this.adSlotMetadata)};
_.l.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.l.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&VKr(qX(),this.adSlotMetadata),fER(qX(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Up.Object.defineProperties(cb.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var E,B,I=_.h((E=this.data)==null?void 0:(B=E.fulfillmentContent)==null?void 0:B.fulfilledLayout,_.fcV),T;return(E=(T=_.h(I==null?void 0:I.renderingContent,tiR))==null?void 0:T.layout)?E.toLowerCase().replace(/_/g,"-"):""}}});
cb.prototype.onAdSlotMetadataChanged=cb.prototype.onAdSlotMetadataChanged;cb.prototype.onTypographyBumpChanged=cb.prototype.onTypographyBumpChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],cb.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],cb.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],cb.prototype,"rendererBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],cb.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],cb.prototype,"noBottomMargin",void 0);_.k([_.X(),_.t("design:type",Object)],cb.prototype,"overlayDensity",void 0);_.k([_.X(),_.t("design:type",Object)],cb.prototype,"typographyBump",void 0);_.k([_.$7("ytd-in-feed-ad-layout-renderer"),_.t("design:type",HTMLElement)],cb.prototype,"inFeedAdLayoutRenderer",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",String),_.t("design:paramtypes",[])],cb.prototype,"layout",null);_.k([_.EM("typographyBump"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cb.prototype,"onTypographyBumpChanged",null);_.k([_.EM("data.adSlotMetadata"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cb.prototype,"onAdSlotMetadataChanged",null);
cb=_.k([_.b({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],cb);
_.A(cb,"ytd-ad-slot-renderer",function(){if(ZAu!==void 0)return ZAu;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return ZAu=E},{mode:_.qi("kevlar_poly_si_batch_j077")?
1:2});var P$$;var iN=function(){return _.r.apply(this,arguments)||this};
_.L(iN,_.r);_.l=iN.prototype;_.l.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"}}}};
_.l.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&arc(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.l.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var E=_.p(this.data.impressionUrls),B=E.next();!B.done;B=E.next())B=B.value,w8B(B,Pjd(B));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.l.attached=function(){var E=this;_.d("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&E.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.d("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Up.Object.defineProperties(iN.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.d("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.d("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
iN.prototype.dataChanged=iN.prototype.dataChanged;iN.prototype.onTap=iN.prototype.onTap;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],iN.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.k([_.g(su),_.t("design:type",Object)],iN.prototype,"ytdActiveViewBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],iN.prototype,"ytdReduxBehavior",void 0);
_.k([_.X({selector:_.HE}),_.t("design:type",Object)],iN.prototype,"isGridViewEnabled",void 0);_.k([_.S("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],iN.prototype,"watchFeedBigThumbs",null);_.k([_.S("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.t("design:type",String),_.t("design:paramtypes",[])],iN.prototype,"thumbnailWidth",null);_.k([_.X(),_.t("design:type",Object)],iN.prototype,"data",void 0);
_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],iN.prototype,"onTap",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],iN.prototype,"dataChanged",null);iN=_.k([_.b({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],iN);
_.A(iN,"ytd-compact-promoted-video-renderer",function(){if(P$$!==void 0)return P$$;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return P$$=E},{mode:1});var zcZ;_.QH("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var pD=function(){return _.r.apply(this,arguments)||this};
_.L(pD,_.r);pD.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],pD.prototype,"data",void 0);pD=_.k([_.b({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],pD);
_.A(pD,"ytd-search-pyv-renderer",function(){if(zcZ!==void 0)return zcZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return zcZ=E},{mode:1});var m5h;_.QH("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Yw=function(){var E=_.r.apply(this,arguments)||this;E.roundedContainer=!0;E.JSC$13337_handleOpenPostCommentDialogActionAfterStamp=!1;E.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return E};
_.L(Yw,_.r);_.l=Yw.prototype;
_.l.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}}};
_.l.onStampFinished=function(){this.JSC$13337_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){var E=_.n(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");E?E.openDialog():this.JSC$13337_handleOpenPostCommentDialogActionAfterStamp=!0};
_.l.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.l.computeHideBorder=function(){return this.isInEngagementPanel};
_.l.computeIsCompact=function(){return this.isInEngagementPanel};
_.l.computeUsesCompactLockup=function(E){return E==="BACKSTAGE_SURFACE_TYPE_HOME"||E==="BACKSTAGE_SURFACE_TYPE_SEARCH"||E==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||E==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||E==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||E==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.l.computeUsesFullLockup=function(){var E,B=(E=this.data)==null?void 0:E.post,I;E=(I=_.h(B,IUZ))==null?void 0:I.surface;var T;I=(T=_.h(B,emR))==null?void 0:T.originalPost;var e;if(T=E||((e=_.h(I,IUZ))==null?void 0:e.surface))return!this.computeUsesCompactLockup(T)&&this.useUpdatedRepostUi;var c;return((c=_.h(B,emR))==null?void 0:c.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Up.Object.defineProperties(Yw.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var E,B;return((B=_.h((E=this.data)==null?void 0:E.post,IUZ))==null?void 0:B.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.useUpdatedRepostUi}}});
Yw.prototype.onYtCommentModerationPanelEmpty=Yw.prototype.onYtCommentModerationPanelEmpty;Yw.prototype.onStampFinished=Yw.prototype.onStampFinished;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Yw.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],Yw.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Yw.prototype,"roundedContainer",void 0);_.k([_.X({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Yw.prototype,"hideBorder",void 0);_.k([_.X({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Yw.prototype,"isCompact",void 0);
_.k([_.X({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Yw.prototype,"usesFullLockup",void 0);_.k([_.RN("yt-rendererstamper-finished"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Yw.prototype,"onStampFinished",null);
_.k([_.RN("ytd-comment-moderation-panel-empty"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Yw.prototype,"onYtCommentModerationPanelEmpty",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Yw.prototype,"isInEngagementPanel",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Yw.prototype,"useUpdatedRepostUi",null);
Yw=_.k([_.b({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Yw);
_.A(Yw,"ytd-backstage-post-thread-renderer",function(){if(m5h!==void 0)return m5h;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return m5h=E},{mode:1});var QXR;var aF=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return E};
_.L(aF,_.r);aF.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
aF.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var E=this.data.thumbnail.thumbnails;this.isDarkTheme&&(E=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(E=_.Aa(E,24,void 0,"height"))?E:void 0}};
aF.prototype.onDarkModeToggledAction=function(E){this.isDarkTheme=E};
aF.prototype.computeHasText=function(){var E;return!((E=this.data)==null||!E.text)};
_.Up.Object.defineProperties(aF.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.pr(this.bannerImageUrl))+'");'}}});
aF.prototype.computeHasText=aF.prototype.computeHasText;aF.prototype.computeBannerImageUrl=aF.prototype.computeBannerImageUrl;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],aF.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],aF.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],aF.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],aF.prototype,"isDarkTheme",void 0);_.k([_.X(),_.t("design:type",String)],aF.prototype,"bannerImageUrl",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.t("design:type",Boolean)],aF.prototype,"hasText",void 0);_.k([_.EM("data","isDarkTheme"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aF.prototype,"computeBannerImageUrl",null);
_.k([_.EM("data.text"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aF.prototype,"computeHasText",null);_.k([_.S("bannerImageUrl"),_.t("design:type",Object),_.t("design:paramtypes",[])],aF.prototype,"bannerStyle",null);aF=_.k([_.b({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],aF);
_.A(aF,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(QXR!==void 0)return QXR;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return QXR=E},{mode:1});var d5Z;var vb=function(){return _.r.apply(this,arguments)||this};
_.L(vb,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],vb.prototype,"data",void 0);vb=_.k([_.b({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],vb);
_.A(vb,"ytd-backstage-zero-state-renderer",function(){if(d5Z!==void 0)return d5Z;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return d5Z=E},{mode:1});var hcU;var yV=function(){return _.r.apply(this,arguments)||this};
_.L(yV,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],yV.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],yV.prototype,"data",void 0);_.k([_.X({computed:"computeIcon_(data.icon)"}),_.t("design:type",String)],yV.prototype,"icon",void 0);yV=_.k([_.b({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],yV);
_.A(yV,"ytd-post-filter-zero-state-renderer",function(){if(hcU!==void 0)return hcU;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return hcU=E},{mode:1});var sXZ;var uaN={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},CD=function(){return _.r.apply(this,arguments)||this};
_.L(CD,_.r);CD.prototype.configureRendererStamper=function(){return uaN};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],CD.prototype,"rendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],CD.prototype,"data",void 0);_.k([_.X({computed:"computeIcon_(data.icon)"}),_.t("design:type",String)],CD.prototype,"icon",void 0);CD=_.k([_.b({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],CD);
_.A(CD,"ytd-post-scheduling-zero-state-renderer",function(){if(sXZ!==void 0)return sXZ;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return sXZ=E},{mode:1});var LLl;var wP=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return E};
_.L(wP,_.r);wP.prototype.onTabsActivate=function(E){this.data&&this.data.tabs&&_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[E.detail.selected].navigationEndpoint})};
wP.prototype.shouldShowTotalCount=function(E){return E&&E.totalCount!==void 0};
wP.prototype.handleUpdatePostsTotalCountAction=function(E){var B=this.get(["data.tabs",1,"totalCount"]),I=this.get("updatePostsTotalCountAction.updateType",E);E=this.get("updatePostsTotalCountAction.number",E);B!==void 0&&I!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&E&&(I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(B)+E):I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(B)-E))};
_.Up.Object.defineProperties(wP.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var E=0,B=this.data.tabs.length;E<B;E++)if(this.data.tabs[E].selected)return E;return 0}}});
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],wP.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wP.prototype,"rendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],wP.prototype,"data",void 0);_.k([_.S("data.tabs"),_.t("design:type",Number),_.t("design:paramtypes",[])],wP.prototype,"selected",null);wP=_.k([_.b({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],wP);
_.A(wP,"ytd-post-stream-filter-renderer",function(){if(LLl!==void 0)return LLl;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return LLl=E},{mode:1});var x5r;var ZP=function(){return _.r.apply(this,arguments)||this};
_.L(ZP,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ZP.prototype,"kevlarBehaviors",void 0);_.k([_.X(),_.t("design:type",Object)],ZP.prototype,"data",void 0);ZP=_.k([_.b({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],ZP);
_.A(ZP,"ytd-channel-age-gate-renderer",function(){if(x5r!==void 0)return x5r;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return x5r=E},{mode:1});var G$h;_.QH("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Pb=function(){var E=_.r.apply(this,arguments)||this;E.data=null;return E};
_.L(Pb,_.r);Pb.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Up.Object.defineProperties(Pb.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return((E=this.data)==null?0:(B=E.title)==null?0:(I=B.runs)==null?0:I.length)?147:160}}});
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Pb.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Pb.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Number),_.t("design:paramtypes",[])],Pb.prototype,"imageSizePx",null);Pb=_.k([_.b({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Pb);
_.A(Pb,"ytd-channel-owner-empty-state-renderer",function(){if(G$h!==void 0)return G$h;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return G$h=E},{mode:1});var OAh;var nX$;var z6=function(){var E=_.r.apply(this,arguments)||this;E.boundSubmitSearch=function(){E.submitSearch()};
E.boundClearSearch=function(){E.clearSearch()};
return E};
_.L(z6,_.r);_.l=z6.prototype;_.l.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]]"}}}}}};
_.l.toggleClearButton=function(){this.hideClearButton=E0F||!this.input.value};
_.l.submitOnEnterKeyUp=function(E){E.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.l.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.l.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.l.submit=function(){_.$O(this.hostElement,"search-query-changed",this.input.value)};
z6.prototype.toggleClearButton=z6.prototype.toggleClearButton;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],z6.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],z6.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],z6.prototype,"hideClearButton",void 0);_.k([_.X(),_.t("design:type",Object)],z6.prototype,"boundSubmitSearch",void 0);_.k([_.X(),_.t("design:type",Object)],z6.prototype,"boundClearSearch",void 0);_.k([_.$7("#input"),_.t("design:type",Object)],z6.prototype,"input",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],z6.prototype,"toggleClearButton",null);
z6=_.k([_.b({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],z6);
_.A(z6,"ytd-channel-switcher-search-box-renderer",function(){if(nX$!==void 0)return nX$;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return nX$=E},{mode:1});var MLU;var mt=function(){var E=_.r.apply(this,arguments)||this;E.boundSubmit=function(){E.submit()};
return E};
_.L(mt,_.r);_.l=mt.prototype;_.l.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"}}}}};
_.l.ready=function(){var E=this;this.form.addEventListener("submit",function(B){return E.onSubmit(B)})};
_.l.onSubmit=function(E){E.preventDefault();return!1};
_.l.toggleClearButton=function(){this.hideClearButton=E0F||!this.input.value};
_.l.submitOnEnterKeyUp=function(E){E.keyCode===13&&this.submit()};
_.l.submit=function(){var E=this.data.endpoint,B=(0,_.a_.unsafeClone)(E);_.h(B,_.pq)?_.h(B,_.pq).query=this.input.value:_.h(B,_.YG)&&(_.h(B,_.YG).query=this.input.value);var I=_.h(B.commandMetadata,_.D$);(I==null?0:I.url)?(I.url=_.HC(I.url,"query",this.input.value),_.$O(this.hostElement,"yt-navigate",{endpoint:B})):_.h(B,rsZ)?(_.h(B,rsZ).channelSwitcherQuery=this.input.value,_.Q().resolve(_.Dt).resolveCommand(B,{form:{element:this.hostElement}})):(E=Error("Mh`"+JSON.stringify(E)),_.xV(E))};
_.l.getUrl=function(E){return this.get("commandMetadata.webCommandMetadata.url",E)};
mt.prototype.toggleClearButton=mt.prototype.toggleClearButton;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],mt.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],mt.prototype,"hideClearButton",void 0);
_.k([_.X(),_.t("design:type",Object)],mt.prototype,"boundSubmit",void 0);_.k([_.$7("#form"),_.t("design:type",HTMLFormElement)],mt.prototype,"form",void 0);_.k([_.$7("#input"),_.t("design:type",Object)],mt.prototype,"input",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],mt.prototype,"toggleClearButton",null);mt=_.k([_.b({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],mt);
_.A(mt,"ytd-search-box-renderer",function(){if(MLU!==void 0)return MLU;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return MLU=E},{mode:2});var QV=function(){var E=_.r.apply(this,arguments)||this;E.showSearchBox=!0;return E};
_.L(QV,_.r);QV.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],QV.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],QV.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],QV.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],QV.prototype,"showSearchBox",void 0);QV=_.k([_.b({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],QV);
_.A(QV,"ytd-channel-switcher-header-renderer",function(){if(OAh!==void 0)return OAh;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return OAh=E},{mode:1});var HAV;var NaU;var dP=function(){var E=_.r.apply(this,arguments)||this;E.isDisplayed=!0;return E};
_.L(dP,_.r);_.l=dP.prototype;_.l.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.dataChanged=function(){this.isDisplayed=!0};
_.l.computeType=function(E){return E||"UNKNOWN"};
_.l.onYtServiceRequestCompleted=function(E){E.stopPropagation();this.isDisplayed=!1};
_.l.onClose=function(){this.isDisplayed=!1};
dP.prototype.onYtServiceRequestCompleted=dP.prototype.onYtServiceRequestCompleted;dP.prototype.dataChanged=dP.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],dP.prototype,"data",void 0);
_.k([_.X({computed:"computeType(data.type)",reflectToAttribute:!0}),_.t("design:type",String)],dP.prototype,"type",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],dP.prototype,"isDisplayed",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dP.prototype,"dataChanged",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],dP.prototype,"onYtServiceRequestCompleted",null);dP=_.k([_.b({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],dP);
_.A(dP,"ytd-alert-with-button-renderer",function(){if(NaU!==void 0)return NaU;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return NaU=E},{mode:1});var hu=function(){var E=_.r.apply(this,arguments)||this;E.noResult=!1;E.enableAlertBanner=!1;E.dismissedAlertBanner=!1;E.hideCreateChannelButton=!1;E.boundDismissAlertBanner=function(){E.dismissAlertBanner()};
E.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return E};
_.L(hu,_.r);_.l=hu.prototype;_.l.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.l.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.l.updateChannelSwitcherAction=function(E){var B;E=(B=_.h(E,m0Z))==null?void 0:B.page;_.h(E,zKU)!==void 0&&(this.data=_.h(E,zKU))};
_.l.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]]"}}}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.l.searchQueryChanged=function(E,B){if(this.data&&this.data.contents&&this.data.contents.length){E=[];var I=[];this.hideCreateChannelButton=this.noResult=!1;for(var T=document.querySelectorAll("ytd-account-item-renderer"),e=_.p(T),c=e.next();!c.done;c=e.next())c=c.value,I.push(c),c.style.display="block";this.resetRightBorder(I);if(B){this.hideCreateChannelButton=!0;for(I=1;I<this.data.contents.length;I++)if(c=this.data.contents[I],_.h(c,Jsh)){var Y=void 0,v=void 0;e=(Y=_.h(c,Jsh))==null?void 0:(v=
Y.accountName)==null?void 0:v.simpleText;v=Y=void 0;c=(Y=_.h(c,Jsh))==null?void 0:(v=Y.channelHandle)==null?void 0:v.simpleText;(Y=T[I-1])&&e&&_.y6(e,B)?E.push(Y):_.d("enable_handle_search_on_channel_switcher")&&Y&&c&&_.y6(c.toString(),B.toString())?E.push(Y):Y.style.display="none"}E.length===0&&(this.noResult=!0);this.resetRightBorder(E)}}};
_.l.resetRightBorder=function(E){for(var B=0;B<E.length;B++)E[B].style.borderRight=!this.hideCreateChannelButton&&(B+2)%3===0||this.hideCreateChannelButton&&(B+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.l.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.l.setShowSearchBox=function(E){if(E&&E.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var B=0;B<E.contents.length;B++)_.h(E.contents[B],_.IP)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.l.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Up.Object.defineProperties(hu.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null?0:E.contents)}}});
hu.prototype.onContinuationItemsUpdated=hu.prototype.onContinuationItemsUpdated;hu.prototype.searchQueryChanged=hu.prototype.searchQueryChanged;hu.prototype.onDataChanged=hu.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],hu.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],hu.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.xo),_.t("design:type",Object)],hu.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],hu.prototype,"data",void 0);_.k([_.$7("ytd-channel-switcher-header-renderer"),_.t("design:type",Object)],hu.prototype,"channelSwitcherHeaderRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],hu.prototype,"noResult",void 0);
_.k([_.X(),_.t("design:type",Object)],hu.prototype,"enableAlertBanner",void 0);_.k([_.X(),_.t("design:type",Object)],hu.prototype,"dismissedAlertBanner",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],hu.prototype,"hideCreateChannelButton",void 0);_.k([_.S("data.contents"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],hu.prototype,"isLoading",null);_.k([_.X(),_.t("design:type",Object)],hu.prototype,"boundDismissAlertBanner",void 0);
_.k([_.X({computed:"computeButtonOverride()"}),_.t("design:type",Object)],hu.prototype,"buttonOverride",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],hu.prototype,"onDataChanged",null);_.k([_.RN("search-query-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,String]),_.t("design:returntype")],hu.prototype,"searchQueryChanged",null);
_.k([_.RN("yt-next-continuation-data-updated"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],hu.prototype,"onContinuationItemsUpdated",null);hu=_.k([_.b({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],hu);
_.A(hu,"ytd-channel-switcher-page-renderer",function(){if(HAV!==void 0)return HAV;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return HAV=E},{mode:1});var gXN;var S2U;var s5=function(){var E=_.r.apply(this,arguments)||this;E.images=[];E.selectedImageIndex=0;return E};
_.L(s5,_.r);_.l=s5.prototype;
_.l.ready=function(){_.vV(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.vV(this.JSC$13382_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.vV(this.JSC$13382_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.vV(this.JSC$13382_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.l.onThumbnailClick=function(E){if(E=E.event_.detail)this.selectedImageIndex=this.images.indexOf(E)};
_.l.updateImageThumbnails=function(E){E=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:E.event_.detail});this.images.splice(this.selectedImageIndex,1,E);this.images=[].concat(_.ad(this.images))};
_.l.cancelImageRepositions=function(){this.selectedImageIndex=0;_.$O(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.l.saveImageRepositions=function(){this.selectedImageIndex=0;_.$O(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Up.Object.defineProperties(s5.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var E=this;return(this.images||[]).map(function(B,I){return{image:B,selected:I===E.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],s5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.$7("ytd-backstage-image-preview-renderer"),_.t("design:type",Object)],s5.prototype,"JSC$13382_imagePreviewContainer",void 0);_.k([_.$7(".thumbnail-images-container"),_.t("design:type",HTMLElement)],s5.prototype,"thumbnailImagesContainer",void 0);_.k([_.X(),_.t("design:type",Array)],s5.prototype,"images",void 0);
_.k([_.X(),_.t("design:type",Object)],s5.prototype,"repositionInstructions",void 0);_.k([_.X(),_.t("design:type",Object)],s5.prototype,"selectedImageIndex",void 0);_.k([_.S("images","selectedImageIndex"),_.t("design:type",Array),_.t("design:paramtypes",[])],s5.prototype,"thumbnailRendererDatas",null);_.k([_.S("images","selectedImageIndex"),_.t("design:type",Object),_.t("design:paramtypes",[])],s5.prototype,"selectedImageData",null);
s5=_.k([_.b({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],s5);
_.A(s5,"ytd-backstage-multi-image-reposition-renderer",function(){if(S2U!==void 0)return S2U;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return S2U=E},{mode:1});var uN=function(E,B){_.ms.call(this);this.uploadUrl=E;this.channelId=B;this.imagesUploadData=[]};
_.L(uN,_.ms);uN.prototype.getAllUploadStatuses=function(){var E=this,B,I,T;return _.a(function(e){if(e.nextAddress==1)return _.C(e,Jth(E),2);B=e.yieldResult;I=B.get("succeed");T=B.get("failed");return e.return(I.concat(T))})};
var XXu=function(E){var B,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,Jth(E),2);B=T.yieldResult;I=B.get("failed");I.length>0&&WLr(E,I);return T.return(E.getAllUploadStatuses())})},Jth=function(E){var B,I,T,e,c,Y,v;
return _.a(function(y){if(y.nextAddress==1)return B=new Map,_.C(y,Promise.allSettled(E.imagesUploadData.map(function(Z){return Z.uploadPromise})),2);
I=y.yieldResult;T=[];e=_.p(I);for(c=e.next();!c.done;c=e.next())Y=c.value,Y.status==="fulfilled"&&T.push(Y.value);v=E.imagesUploadData.map(function(Z){return Z.image}).filter(function(Z){return T.every(function(P){return P.id!==Z.id})});
B.set("succeed",T);B.set("failed",v);return y.return(B)})},WLr=function(E,B){B=_.p(B);
for(var I=B.next();!I.done;I=B.next()){var T=E;I=I.value;rtN(T,I.id)>=0&&T.cancel(I.id);var e=new bA$(I),c=_.srl(T.uploadUrl,{"X-YouTube-ChannelId":T.channelId},I.imageBlob);e.transfer=c;e.uploadPromise=oXu(c,I);T.imagesUploadData.push(e);c.run()}};
uN.prototype.cancel=function(E){var B=rtN(this,E);B!==-1&&((B=this.imagesUploadData[B].transfer)&&B.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(I){return I.image.id!==E}))};
var rtN=function(E,B){return E.imagesUploadData.findIndex(function(I){return I.image.id===B})},oXu=function(E,B){return new Promise(function(I,T){E.listen("l",function(){var e=E.getResponseText();
e?(e=JSON.parse(e).encryptedBlobId,B.encryptedBlobId=e,I(B)):T("upload failed")});
E.listen("n",function(){T("upload failed")})})},bA$=function(E){this.image=E};var tKt=function(E,B,I,T,e){this.id=E;this.imageBlob=B;this.localImageSrc=I;this.naturalWidth=T;this.naturalHeight=e;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 AtZ=[".jpeg",".jpg",".png"],LD=function(){var E=_.r.apply(this,arguments)||this;E.showImagesPreview=!1;E.pollOptions=[];E.errorMessage="";E.optionPlaceholderText="";E.optionDefaultText="";E.JSC$13393_imageId=0;E.maxFileSizeMb=0;E.maxAspectRatio=0;E.invalidFileSizeError="";E.invalidAspectRatioError="";E.invalidFileTypeError="";E.imageSelector=new ap(null,"single_file",AtZ);return E};
_.L(LD,_.r);_.l=LD.prototype;_.l.ready=function(){_.vV(this.imageSelector,"j",this.onImageSelect,!1,this);_.vV(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.vV(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.l.dataChanged=function(){var E,B,I=_.h((E=this.data)==null?void 0:(B=E.cellTemplate)==null?void 0:B.onEmptyCellTap,PMh);if(I&&I.uploadUrl&&I.channelId){var T;this.maxFileSizeMb=((T=I.imageValidationInfo)==null?void 0:T.maxFileSizeMb)||0;var e;this.maxAspectRatio=((e=I.imageValidationInfo)==null?void 0:e.allowedMaxAspectRatio)||0;var c;this.invalidFileSizeError=this.getSimpleString((c=this.data)==null?void 0:c.invalidFileSizeError);var Y;this.invalidAspectRatioError=this.getSimpleString((Y=this.data)==
null?void 0:Y.invalidAspectRatioError);var v;this.invalidFileTypeError=this.getSimpleString((v=this.data)==null?void 0:v.invalidFileTypeError);this.uploadManager=new uN(I.uploadUrl,I.channelId)}};
_.l.onEditorInfoChange=function(){this.optionPlaceholderText=_.U3(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.U3(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.l.observeAddImageError=function(){this.errorMessage!==""&&_.$O(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.l.onPollOptionsChange=function(){for(var E=!1,B=[],I=0;I<this.pollOptions.length;I++){var T=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(I+1);this.pollOptions[I].placeholderText!==T?(E=!0,B.push(Object.assign({},this.pollOptions[I],{placeholderText:T}))):B.push(this.pollOptions[I])}E&&(this.pollOptions=B);this.isValid()?_.$O(this.hostElement,"yt-commentbox-post-enable"):_.$O(this.hostElement,"yt-commentbox-post-disable")};
_.l.createPollOptions=function(E){var B=[],I;E=(I=E==null?void 0:E.minPollOptions)!=null?I:0;for(I=0;I<E;I++)B.push(this.createPollOption());return B};
_.l.onImageSelect=function(E){var B=this,I,T,e,c,Y,v;return _.a(function(y){if(y.nextAddress==1){if(B.selectedImageIndex===void 0)return y.jumpTo(0);I=E.files[0];B.errorMessage="";T=B.validateImage(I);if(T!=="")return B.errorMessage=T,y.return();e=new AB(B.maxAspectRatio,!1,!0);return _.C(y,e.transform(I),3)}if(y.nextAddress!=4)return c=y.yieldResult,c.transformedData?c.invalidAspectRatio?(B.errorMessage=B.invalidAspectRatioError,y.return()):_.C(y,fEQ(B.JSC$13393_imageId,E.files[0],c.transformedData),
4):(B.errorMessage=B.invalidFileTypeError,y.return());Y=y.yieldResult;B.JSC$13393_imageId++;WLr(B.uploadManager,[Y]);v=Object.assign({},B.pollOptions[B.selectedImageIndex],{image:Y});B.pollOptions.splice(B.selectedImageIndex,1,v);B.refreshPollOptions();_.$O(B.hostElement,"yt-backstage-poll-image-select");_.ER(y)})};
_.l.validateImage=function(E){return E.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.l.refreshPollOptions=function(){this.pollOptions=[].concat(_.ad(this.pollOptions))};
_.l.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.ad(this.pollOptions),[this.createPollOption()]))};
_.l.onRemovePollOption=function(E){var B=this.pollOptions[E.model.index];B&&B.image&&this.uploadManager.cancel(B.image.id);this.pollOptions.splice(E.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.$O(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.l.onTextInput=function(){this.refreshPollOptions()};
_.l.onImageButtonClick=function(E){this.selectedImageIndex=E.model.index;this.imageSelector.click()};
_.l.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.l.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.l.saveImageRepositions=function(E){E=E.event_.detail;for(var B=0,I=[],T=_.p(this.pollOptions),e=T.next();!e.done;e=T.next())e=e.value,e.image!==void 0?(e=Object.assign({},e,{image:E[B]}),I.push(e),B++):I.push(e);this.showImagesPreview=!1;this.pollOptions=[].concat(_.ad(I))};
_.l.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 E=0,B=_.p(this.pollOptions),I=B.next();!I.done;I=B.next())if(I=I.value,I.optionText.trim()!==""||I.image!==void 0){if(!I.image||this.hasCustomOptionText&&I.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;E++}return E>=Number(this.editorInfo.minPollOptions)};
_.l.getAllUploadStatuses=function(){var E=this,B,I,T,e;return _.a(function(c){if(c.nextAddress==1)return _.C(c,E.uploadManager.getAllUploadStatuses(),2);B=c.yieldResult;I=_.p(B);for(T=I.next();!T.done;T=I.next())if(e=T.value,e.encryptedBlobId===void 0)return c.return(XXu(E.uploadManager));return c.return(B)})};
_.l.getPostCreateOptions=function(){for(var E=[],B=_.p(this.pollOptions),I=B.next();!I.done;I=B.next())I=I.value,I.image!==void 0&&E.push({text:this.hasCustomOptionText?I.optionText:I.placeholderText,image:I.image});return E};
_.l.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.l.createButtonRenderer=function(E,B){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:E,accessibilityData:{accessibilityData:{label:this.getSimpleString(E)}},isDisabled:B}};
_.l.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.l.computeThumbnailRendererData=function(E){return E?{image:E,selected:!1}:void 0};
_.l.getSimpleString=function(E){return _.U3(E)};
_.l.updateOptionTextFromBinding=function(E){if(E.target){var B=Array.from(_.n(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(E.target);if(B>=0){var I;this.pollOptions[B].optionText=(I=E.detail.value)!=null?I:""}}};
_.Up.Object.defineProperties(LD.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var E,B;return this.pollOptions.length<((B=(E=this.editorInfo)==null?void 0:E.maxPollOptions)!=null?B:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(E){return E.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(E){return E.image}).map(function(E){return E.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(E){return E.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var E,B=(E=this.data)==null?void 0:E.addOptionButtonText;return B?this.createButtonRenderer(B,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var E,B=(E=this.data)==null?void 0:E.repositionImagesButtonLabel;return B?this.createButtonRenderer(B,!this.hasImages):void 0}}});
LD.prototype.onPollOptionsChange=LD.prototype.onPollOptionsChange;LD.prototype.observeAddImageError=LD.prototype.observeAddImageError;LD.prototype.onEditorInfoChange=LD.prototype.onEditorInfoChange;LD.prototype.dataChanged=LD.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],LD.prototype,"ytRendererstamperBehavior",void 0);_.k([_.$7("ytd-backstage-multi-image-reposition-renderer"),_.t("design:type",Object)],LD.prototype,"imageRepositionContainer",void 0);
_.k([_.X(),_.t("design:type",Object)],LD.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],LD.prototype,"editorInfo",void 0);_.k([_.X(),_.t("design:type",uN)],LD.prototype,"uploadManager",void 0);_.k([_.X(),_.t("design:type",Object)],LD.prototype,"showImagesPreview",void 0);_.k([_.X(),_.t("design:type",Array)],LD.prototype,"pollOptions",void 0);_.k([_.X(),_.t("design:type",Object)],LD.prototype,"errorMessage",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LD.prototype,"dataChanged",null);_.k([_.i6("editorInfo"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LD.prototype,"onEditorInfoChange",null);_.k([_.EM("errorMessage"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LD.prototype,"observeAddImageError",null);
_.k([_.i6("pollOptions"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LD.prototype,"onPollOptionsChange",null);_.k([_.S("pollOptions","editorInfo"),_.t("design:type",Object),_.t("design:paramtypes",[])],LD.prototype,"isAllowedToAddOption",null);_.k([_.S("pollOptions"),_.t("design:type",Object),_.t("design:paramtypes",[])],LD.prototype,"hasImages",null);
_.k([_.S("pollOptions"),_.t("design:type",Object),_.t("design:paramtypes",[])],LD.prototype,"imagesToReposition",null);_.k([_.S("pollOptions"),_.t("design:type",Object),_.t("design:paramtypes",[])],LD.prototype,"hasCustomOptionText",null);_.k([_.S("data","isAllowedToAddOption"),_.t("design:type",Object),_.t("design:paramtypes",[])],LD.prototype,"addOptionButton",null);_.k([_.S("data","hasImages"),_.t("design:type",Object),_.t("design:paramtypes",[])],LD.prototype,"repositionImagesButton",null);
LD=_.k([_.b({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],LD);
_.A(LD,"ytd-backstage-image-poll-editor-renderer",function(){if(gXN!==void 0)return gXN;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return gXN=E},{mode:2});var jX$={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 U56;var xw=function(){var E=_.r.apply(this,arguments)||this;E.a11yConfig=jX$;E.imageDisplayOffsetTop=0;E.imageDisplayOffsetLeft=0;E.pickerDisplayOffsetTop=0;E.pickerDisplayOffsetLeft=0;E.showPreviewContainer=!0;E.startPicker=!1;E.repositionOptional=!1;E.editOnlyMode=!1;E.savedImageDisplayOffsetTop=0;E.savedImageDisplayOffsetLeft=0;return E};
_.L(xw,_.r);_.l=xw.prototype;_.l.created=function(){_.r4.requestAvailability()};
_.l.ready=function(){};
_.l.onArrowKeysDown=function(E){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){E.detail.keyboardEvent.preventDefault();var B=0,I=0,T="";switch(E.detail.keyboardEvent.key){case "ArrowUp":VKJ(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?T=this.a11yConfig.reachBottomOfImage:B=this.imageHeight*.05*-1;break;case "ArrowDown":VKJ(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?T=this.a11yConfig.reachTopOfImage:
B=this.imageHeight*.05;break;case "ArrowLeft":VKJ(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?T=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":VKJ(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?T=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}T&&_.yu(T)&&_.$O(this.hostElement,"iron-announce",{text:_.yu(T)});if(I||B)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+B)),E=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),E=_.yu(this.a11yConfig.imageVerticalPosition,{x_percent:""+E,y_percent:""+(100-E)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+I)),E=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),E=_.yu(this.a11yConfig.imageHorizontalPosition,{x_percent:""+E,y_percent:""+(100-E)})),E&&_.$O(this.hostElement,"iron-announce",{text:E})}};
_.l.getPreviewPosition=function(E,B,I,T){return Math.round(100*(E+B*.5-I)/T)};
_.l.calculateDisplayPosition=function(){var E=this.imageData.naturalWidth,B=this.imageData.naturalHeight;this.displayScale=Math.max(200/E,200/B);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var I=E*this.displayScale*this.imageData.previewCoordinates.left,T=B*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=B>E?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-I;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=E>B?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-T;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=E*this.displayScale;this.imageHeight=B*this.displayScale};
_.l.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.l.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.l.getSignedPosition=function(E,B,I){return B==="X"&&_.HA("HTML_DIR")==="rtl"?I==="-"?E+"px":E*-1+"px":I==="-"?E*-1+"px":E+"px"};
_.l.pickerMove=function(E){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var B=this.pickerOffsetX-E.clientX,I=this.pickerOffsetY-E.clientY;this.pickerOffsetX=E.clientX;this.pickerOffsetY=E.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
I)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-B))}};
_.l.pickerMoveStart=function(E){this.startPicker=!0;this.pickerOffsetX=E.clientX;this.pickerOffsetY=E.clientY};
_.l.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var E=this.generateCropPreview();E&&_.$O(this.hostElement,"ytd-backstage-image-preview-coordinates-update",E)};
_.l.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.$O(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.l.deleteImage=function(){_.$O(this.hostElement,"ytd-backstage-image-preview-delete")};
_.l.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.l.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var E=this.generateCropPreview();E&&_.$O(this.hostElement,"ytd-backstage-image-preview-coordinates-save",E)};
_.l.getPreviewOffset=function(E,B,I){return B&&E?(I==="X"&&_.HA("HTML_DIR")==="rtl"?300/B*E:300/B*E*-1)+"px":"0px"};
_.l.getSimpleText=function(E){return E?_.U3(E):""};
_.l.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}};
_.Up.Object.defineProperties(xw.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var E=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.yu(this.a11yConfig.imageVerticalPosition,{x_percent:""+E,y_percent:""+(100-E)})+"\n"+_.yu(this.a11yConfig.verticalRepositionInstruction)}E=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.yu(this.a11yConfig.imageHorizontalPosition,{x_percent:""+E,y_percent:""+(100-E)})+"\n"+_.yu(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 E,B,I=(E=this.instruction)==null?void 0:(B=E.previewInstruction)==null?void 0:B.editButtonLabel;return I?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T,e=this.editOnlyMode?(E=this.instruction)==null?void 0:(B=E.editInstruction)==null?void 0:B.saveImagesButtonLabel:(I=this.instruction)==null?void 0:(T=I.editInstruction)==null?void 0:T.saveButtonLabel;return e?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:e,accessibilityData:{accessibilityData:{label:this.getSimpleText(e)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var E,B,I=(E=this.instruction)==null?void 0:(B=E.previewInstruction)==null?void 0:B.deleteButtonLabel;return I?{size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var E,B,I=(E=this.instruction)==null?void 0:(B=E.editInstruction)==null?void 0:B.cancelButtonLabel;E=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return I?{style:E,size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}: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"}}});
xw.prototype.onEditOnlyModeUpdate=xw.prototype.onEditOnlyModeUpdate;xw.prototype.onImageChange=xw.prototype.onImageChange;_.k([_.X(),_.t("design:type",tKt)],xw.prototype,"imageData",void 0);_.k([_.X(),_.t("design:type",Object)],xw.prototype,"instruction",void 0);_.k([_.X(),_.t("design:type",Object)],xw.prototype,"a11yConfig",void 0);_.k([_.X(),_.t("design:type",Number)],xw.prototype,"imageWidth",void 0);_.k([_.X(),_.t("design:type",Number)],xw.prototype,"imageHeight",void 0);
_.k([_.X(),_.t("design:type",Number)],xw.prototype,"displayScale",void 0);_.k([_.X(),_.t("design:type",Object)],xw.prototype,"imageDisplayOffsetTop",void 0);_.k([_.X(),_.t("design:type",Object)],xw.prototype,"imageDisplayOffsetLeft",void 0);_.k([_.X(),_.t("design:type",Object)],xw.prototype,"pickerDisplayOffsetTop",void 0);_.k([_.X(),_.t("design:type",Object)],xw.prototype,"pickerDisplayOffsetLeft",void 0);_.k([_.X(),_.t("design:type",Object)],xw.prototype,"showPreviewContainer",void 0);
_.k([_.X(),_.t("design:type",Object)],xw.prototype,"startPicker",void 0);_.k([_.X(),_.t("design:type",Number)],xw.prototype,"pickerOffsetX",void 0);_.k([_.X(),_.t("design:type",Number)],xw.prototype,"pickerOffsetY",void 0);_.k([_.X(),_.t("design:type",Object)],xw.prototype,"repositionOptional",void 0);_.k([_.X(),_.t("design:type",Object)],xw.prototype,"editOnlyMode",void 0);_.k([_.$7("#picker-container"),_.t("design:type",HTMLElement)],xw.prototype,"JSC$13406_pickerContainer",void 0);
_.k([_.$7("#picker"),_.t("design:type",HTMLElement)],xw.prototype,"picker",void 0);_.k([_.$7("#preview-clipper"),_.t("design:type",HTMLElement)],xw.prototype,"previewClipper",void 0);_.k([_.$7("#image-in-picker-background"),_.t("design:type",HTMLImageElement)],xw.prototype,"JSC$13406_imageInBackground",void 0);_.k([_.$7("#image-in-picker"),_.t("design:type",HTMLImageElement)],xw.prototype,"JSC$13406_imageInPicker",void 0);
_.k([_.$7("#image-in-preview-clipper"),_.t("design:type",HTMLImageElement)],xw.prototype,"JSC$13406_imageInPreviewClipper",void 0);_.k([_.S("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.t("design:type",String),_.t("design:paramtypes",[])],xw.prototype,"altLabelForImage",null);_.k([_.S("imageHeight","imageWidth"),_.t("design:type",Number),_.t("design:paramtypes",[])],xw.prototype,"pickerSize",null);
_.k([_.S("imageHeight","imageWidth"),_.t("design:type",Object),_.t("design:paramtypes",[])],xw.prototype,"imageOrientationStyle",null);_.k([_.S("instruction"),_.t("design:type",Object),_.t("design:paramtypes",[])],xw.prototype,"editButton",null);_.k([_.S("instruction","editOnlyMode"),_.t("design:type",Object),_.t("design:paramtypes",[])],xw.prototype,"saveButton",null);_.k([_.S("instruction"),_.t("design:type",Object),_.t("design:paramtypes",[])],xw.prototype,"deleteButton",null);
_.k([_.S("instruction","editOnlyMode"),_.t("design:type",Object),_.t("design:paramtypes",[])],xw.prototype,"cancelButton",null);_.k([_.S("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.t("design:type",Number),_.t("design:paramtypes",[])],xw.prototype,"cropOffsetTop",null);_.k([_.S("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.t("design:type",Number),_.t("design:paramtypes",[])],xw.prototype,"cropOffsetLeft",null);
_.k([_.S("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.t("design:type",String),_.t("design:paramtypes",[])],xw.prototype,"pickerBackgroundStyle",null);_.k([_.S("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.t("design:type",String),_.t("design:paramtypes",[])],xw.prototype,"pickerDisplayStyle",null);_.k([_.S("cropOffsetLeft","cropOffsetTop"),_.t("design:type",String),_.t("design:paramtypes",[])],xw.prototype,"imageInPickerStyle",null);
_.k([_.S("cropOffsetLeft","cropOffsetTop","pickerSize"),_.t("design:type",String),_.t("design:paramtypes",[])],xw.prototype,"previewClipperStyle",null);_.k([_.i6("imageData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],xw.prototype,"onImageChange",null);_.k([_.i6("editOnlyMode"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],xw.prototype,"onEditOnlyModeUpdate",null);
_.k([_.S("showPreviewContainer"),_.t("design:type",String),_.t("design:paramtypes",[])],xw.prototype,"pickerModeStyle",null);xw=_.k([_.b({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],xw);
_.A(xw,"ytd-backstage-image-preview-renderer",function(){if(U56!==void 0)return U56;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return U56=E},{mode:1});var k$U;var tLD={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 f6u;var VLZ;var G6=function(){var E=_.r.apply(this,arguments)||this;E.a11yConfig=tLD;E.imageDisplayOffsetTop=0;E.imageDisplayOffsetLeft=0;E.pickerDisplayOffsetTop=0;E.pickerDisplayOffsetLeft=0;E.cropCoordinatesSaved=!1;E.previewSize=0;E.startPicker=!1;E.repositionOptional=!1;return E};
_.L(G6,_.r);_.l=G6.prototype;_.l.created=function(){_.r4.requestAvailability()};
_.l.ready=function(){};
_.l.onArrowKeysDown=function(E){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){E.detail.keyboardEvent.preventDefault();var B=0,I=0,T="";switch(E.detail.keyboardEvent.key){case "ArrowUp":qEc(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?T=this.a11yConfig.reachBottomOfImage:B=this.imageHeight*.05*-1;break;case "ArrowDown":qEc(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?T=this.a11yConfig.reachTopOfImage:
B=this.imageHeight*.05;break;case "ArrowLeft":qEc(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?T=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":qEc(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?T=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}T&&_.yu(T)&&_.$O(this.hostElement,"iron-announce",{text:_.yu(T)});if(I||B)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+B)),E=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),E=_.yu(this.a11yConfig.imageVerticalPosition,{x_percent:""+E,y_percent:""+(100-E)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+I)),E=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),E=_.yu(this.a11yConfig.imageHorizontalPosition,{x_percent:""+E,y_percent:""+(100-E)})),E&&_.$O(this.hostElement,"iron-announce",{text:E})}};
_.l.getPreviewPosition=function(E,B,I,T){return Math.round(100*(E+B*.5-I)/T)};
_.l.displayImage=function(){var E=this.JSC$13417_pickerContainer.getBoundingClientRect().width,B=this.JSC$13417_pickerContainer.getBoundingClientRect().height,I=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),T=this.JSC$13417_imageInBackground.naturalWidth,e=this.JSC$13417_imageInBackground.naturalHeight;this.displayScale=Math.max(I/T,I/e);this.imageWidth=T*this.displayScale;this.imageHeight=e*this.displayScale;this.pickerDisplayOffsetLeft=(E-I)/2;this.pickerDisplayOffsetTop=
(B-I)/2;this.imageDisplayOffsetLeft=e>T?this.pickerDisplayOffsetLeft:(E-this.imageWidth)/2;this.imageDisplayOffsetTop=T>e?this.pickerDisplayOffsetTop:(B-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.l.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13417_imageInBackground.src=this.imageData.toString(),this.JSC$13417_imageInPicker.src=this.imageData.toString(),this.JSC$13417_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.l.getSignedPosition=function(E,B,I){return B==="X"&&_.HA("HTML_DIR")==="rtl"?I==="-"?E+"px":E*-1+"px":I==="-"?E*-1+"px":E+"px"};
_.l.pickerMove=function(E){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var B=this.pickerOffsetX-E.clientX,I=this.pickerOffsetY-E.clientY;this.pickerOffsetX=E.clientX;this.pickerOffsetY=E.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
I)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-B))}};
_.l.pickerMoveStart=function(E){this.startPicker=!0;this.pickerOffsetX=E.clientX;this.pickerOffsetY=E.clientY};
_.l.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.l.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.$O(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.l.getPreviewOffset=function(E,B,I,T){return B&&E&&I?(T==="X"&&_.HA("HTML_DIR")==="rtl"?I/B*E:I/B*E*-1)+"px":"0px"};
_.l.getSimpleText=function(E){return E?_.U3(E):""};
_.l.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var E=this.cropOffsetTop/this.imageHeight,B=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,I=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,T=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.n(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.$O(this.hostElement,"yt-img-crop-coordinates-update",{top:E,right:B,bottom:I,left:T})}};
_.Up.Object.defineProperties(G6.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var E=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.yu(this.a11yConfig.imageVerticalPosition,{x_percent:""+E,y_percent:""+(100-E)})+"\n"+_.yu(this.a11yConfig.verticalRepositionInstruction)}E=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.yu(this.a11yConfig.imageHorizontalPosition,{x_percent:""+E,y_percent:""+(100-E)})+"\n"+_.yu(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 E,B=(E=this.learnMore.runs[0])==null?void 0:E.navigationEndpoint,I;return((I=_.h(B,_.JK))==null?void 0:I.url)||void 0}}}});
G6.prototype.onImageDataChange=G6.prototype.onImageDataChange;_.k([_.X(),_.t("design:type",Object)],G6.prototype,"imageData",void 0);_.k([_.X(),_.t("design:type",Object)],G6.prototype,"instruction",void 0);_.k([_.X(),_.t("design:type",Object)],G6.prototype,"a11yConfig",void 0);_.k([_.X(),_.t("design:type",Number)],G6.prototype,"imageWidth",void 0);_.k([_.X(),_.t("design:type",Number)],G6.prototype,"imageHeight",void 0);_.k([_.X(),_.t("design:type",Number)],G6.prototype,"displayScale",void 0);
_.k([_.X(),_.t("design:type",Object)],G6.prototype,"imageDisplayOffsetTop",void 0);_.k([_.X(),_.t("design:type",Object)],G6.prototype,"imageDisplayOffsetLeft",void 0);_.k([_.X(),_.t("design:type",Object)],G6.prototype,"pickerDisplayOffsetTop",void 0);_.k([_.X(),_.t("design:type",Object)],G6.prototype,"pickerDisplayOffsetLeft",void 0);_.k([_.X(),_.t("design:type",Object)],G6.prototype,"cropCoordinatesSaved",void 0);_.k([_.X(),_.t("design:type",Object)],G6.prototype,"previewSize",void 0);
_.k([_.X(),_.t("design:type",Object)],G6.prototype,"startPicker",void 0);_.k([_.X(),_.t("design:type",Number)],G6.prototype,"pickerOffsetX",void 0);_.k([_.X(),_.t("design:type",Number)],G6.prototype,"pickerOffsetY",void 0);_.k([_.X(),_.t("design:type",Object)],G6.prototype,"repositionOptional",void 0);_.k([_.$7("#picker-container"),_.t("design:type",HTMLElement)],G6.prototype,"JSC$13417_pickerContainer",void 0);_.k([_.$7("#picker"),_.t("design:type",HTMLElement)],G6.prototype,"picker",void 0);
_.k([_.$7("#image-in-picker-background"),_.t("design:type",HTMLImageElement)],G6.prototype,"JSC$13417_imageInBackground",void 0);_.k([_.$7("#image-in-picker"),_.t("design:type",HTMLImageElement)],G6.prototype,"JSC$13417_imageInPicker",void 0);_.k([_.$7("#image-in-preview-clipper"),_.t("design:type",HTMLImageElement)],G6.prototype,"JSC$13417_imageInPreviewClipper",void 0);_.k([_.$7("#full-image-as-preview"),_.t("design:type",HTMLImageElement)],G6.prototype,"imageAsPreview",void 0);
_.k([_.S("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.t("design:type",String),_.t("design:paramtypes",[])],G6.prototype,"altLabelForImage",null);_.k([_.S("imageHeight","imageWidth"),_.t("design:type",Number),_.t("design:paramtypes",[])],G6.prototype,"pickerSize",null);_.k([_.S("imageHeight","imageWidth"),_.t("design:type",Object),_.t("design:paramtypes",[])],G6.prototype,"imageOrientationStyle",null);
_.k([_.S("instruction.previewInstruction.editButtonLabel"),_.t("design:type",Object),_.t("design:paramtypes",[])],G6.prototype,"editButton",null);_.k([_.S("instruction.editInstruction.saveButtonLabel"),_.t("design:type",Object),_.t("design:paramtypes",[])],G6.prototype,"saveButton",null);_.k([_.S("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.t("design:type",Number),_.t("design:paramtypes",[])],G6.prototype,"cropOffsetTop",null);
_.k([_.S("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.t("design:type",Number),_.t("design:paramtypes",[])],G6.prototype,"cropOffsetLeft",null);_.k([_.S("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.t("design:type",String),_.t("design:paramtypes",[])],G6.prototype,"pickerBackgroundStyle",null);_.k([_.S("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.t("design:type",String),_.t("design:paramtypes",[])],G6.prototype,"pickerDisplayStyle",null);
_.k([_.S("cropOffsetLeft","cropOffsetTop"),_.t("design:type",String),_.t("design:paramtypes",[])],G6.prototype,"imageInPickerStyle",null);_.k([_.S("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.t("design:type",String),_.t("design:paramtypes",[])],G6.prototype,"previewClipperStyle",null);_.k([_.EM("imageData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],G6.prototype,"onImageDataChange",null);
_.k([_.S("cropCoordinatesSaved"),_.t("design:type",String),_.t("design:paramtypes",[])],G6.prototype,"pickerModeStyle",null);_.k([_.S("instruction.editInstruction.learnMore"),_.t("design:type",Object),_.t("design:paramtypes",[])],G6.prototype,"learnMore",null);_.k([_.S("learnMore"),_.t("design:type",Object),_.t("design:paramtypes",[])],G6.prototype,"learnMoreUrl",null);G6=_.k([_.QE({is:"yt-img-crop-picker",disableElementRegistration:!0})],G6);
_.A(G6,"yt-img-crop-picker",function(){if(VLZ===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;f6u===void 0&&(f6u=document.createElement("template"));var T=f6u;I.call(B,T.content.cloneNode(!0),E.content.firstChild);VLZ=E}E=VLZ;return E},{mode:2});var O5=function(){var E=_.r.apply(this,arguments)||this;E.errorMessage="";E.hasPreview=!1;E.isBackstagePost=!1;E.dismissButtonOverrides={size:"XS"};return E};
_.L(O5,_.r);_.l=O5.prototype;_.l.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"}}}};
_.l.detached=function(){this.removeOverlay()};
_.l.setPreview=function(E){_.n(this.hostElement).querySelector("#preview-picker").imageData=E;this.hasPreview=!0;_.$O(this.hostElement,"yt-backstage-image-select-preview")};
_.l.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var E=_.n(this.hostElement).querySelector("#dropzone");E.classList.remove("dragover");E.classList.remove("error");_.$O(this.hostElement,"yt-backstage-image-select-cancel")};
_.l.setupOverlay=function(){var E=this.imageUploadEndpoint;this.removeOverlay();if(E&&E.imageValidationInfo){var B=_.n(this.hostElement).querySelector("#dropzone"),I=_.n(this.hostElement).querySelector("#select");this.overlay=new US(E.uploadUrl,E.channelId,E.imageValidationInfo.maxFileSizeMb,E.imageValidationInfo.allowedMaxAspectRatio,B,I,!0);_.vV(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.vV(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.vV(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.vV(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.vV(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.l.removeOverlay=function(){this.overlay&&(_.zw(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.zw(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.zw(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.zw(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.zw(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.l.onDragOver=function(E){var B=_.n(this.hostElement).querySelector("#dropzone");_.VQ(B,"dragover",E.value)};
_.l.onPreview=function(E){this.setPreview(E.value)};
_.l.onImageError=function(E){if(E.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var B;E=(B=this.data)==null?void 0:B.fileSizeError}else if(E.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var I;E=(I=this.data)==null?void 0:I.invalidError}else if(E.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var T;E=(T=this.data)==null?void 0:T.invalidAspectRatioError}else return;this.errorMessage=_.U3(E);_.n(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.l.onImageAlert=function(E){this.onImageError(E)};
_.l.uploadPromise=function(){var E=this,B=this.overlay&&this.overlay.uploadPromise();if(B)return B.catch(function(){throw Error(E.data?_.U3(E.data.uploadFailureError):"");})};
_.Up.Object.defineProperties(O5.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var E,B;if((E=this.data)==null?0:(B=E.icon)==null?0:B.iconType)return _.R3(this.data.icon.iconType)}}});
O5.prototype.setupOverlay=O5.prototype.setupOverlay;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],O5.prototype,"rendererStamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],O5.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],O5.prototype,"imageUploadEndpoint",void 0);_.k([_.X(),_.t("design:type",Object)],O5.prototype,"errorMessage",void 0);
_.k([_.X(),_.t("design:type",US)],O5.prototype,"overlay",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],O5.prototype,"hasPreview",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],O5.prototype,"isBackstagePost",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],O5.prototype,"selectionCancel",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],O5.prototype,"previewCancel",null);
_.k([_.S("data.icon.iconType"),_.t("design:type",Object),_.t("design:paramtypes",[])],O5.prototype,"icon",null);_.k([_.X(),_.t("design:type",Object)],O5.prototype,"dismissButtonOverrides",void 0);_.k([_.EM("imageUploadEndpoint"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],O5.prototype,"setupOverlay",null);O5=_.k([_.b({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],O5);
_.A(O5,"ytd-backstage-image-select-renderer",function(){if(k$U!==void 0)return k$U;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return k$U=E},{mode:1});var q2$;var FLN;var nD=function(){var E=_.r.apply(this,arguments)||this;E.selected=!1;return E};
_.L(nD,_.r);_.l=nD.prototype;_.l.computeSelected=function(E){return E==null?void 0:E.selected};
_.l.computeTransform=function(E,B,I){var T,e,c=(e=(T=this.imageContainer)==null?void 0:T.getBoundingClientRect())!=null?e:{width:0,height:0};T=Math.max(c.width/B,c.height/I);I=I*T*E.top;return"translateX("+this.getSignedPosition(B*T*E.left,"X","-")+") translateY("+this.getSignedPosition(I,"Y","-")+")"};
_.l.getSignedPosition=function(E,B,I){return B==="X"&&_.HA("HTML_DIR")==="rtl"?I==="-"?E+"px":E*-1+"px":I==="-"?E*-1+"px":E+"px"};
_.l.onClick=function(){var E;_.$O(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(E=this.data)==null?void 0:E.image)};
_.l.onKeyPress=function(E){if(E.keyCode===13)this.onClick()};
_.Up.Object.defineProperties(nD.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?void 0:(B=E.image)==null?void 0:B.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)!=null&&E.image){var B;E=(B=this.data)==null?void 0:B.image;return E.previewCoordinates.top!==0||E.previewCoordinates.left!==0?(B=this.computeTransform(E.previewCoordinates,E.naturalWidth,E.naturalHeight),E.naturalHeight>=E.naturalWidth?"width:inherit;transform:"+B+";":"height:inherit;transform:"+B+";"):E.naturalHeight>=E.naturalWidth?"width:inherit;":"height:inherit;"}}}});
nD.prototype.onKeyPress=nD.prototype.onKeyPress;_.k([_.$7(".image-container"),_.t("design:type",HTMLElement)],nD.prototype,"imageContainer",void 0);_.k([_.X(),_.t("design:type",Object)],nD.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.t("design:type",Object)],nD.prototype,"selected",void 0);_.k([_.S("data.image"),_.t("design:type",Object),_.t("design:paramtypes",[])],nD.prototype,"thumbnailUrl",null);
_.k([_.S("data.image","data.image.previewCoordinates"),_.t("design:type",Object),_.t("design:paramtypes",[])],nD.prototype,"thumbnailStyle",null);_.k([_.RN("keypress"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],nD.prototype,"onKeyPress",null);nD=_.k([_.b({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],nD);
_.A(nD,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(FLN!==void 0)return FLN;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return FLN=E},{mode:2});var MA=function(E,B,I){I=I===void 0?!1:I;_.ms.call(this);var T=this;this.dropZoneOverlay=new YY(E);this.selectOverlay=I?new ap(B,"multiple_file",["image/*"]):new ap(B,"single_file",["image/*"]);this.handler=new _.DA(this);_.Bp(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(B,"click",function(){T.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.L(MA,_.ms);MA.prototype.onChange=function(E){var B;(B=E.files)!=null&&B.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:E.files}))};var Hb=function(){var E=_.r.apply(this,arguments)||this;E.addImageErrorMessage="";E.errorMessage="";E.images=[];E.selectedImageIndex=0;E.modern=_.d("web_modern_buttons");E.maxNumImagesPerPost=_.RI("max_num_images_per_post_web_ui");E.JSC$13432_imageId=0;return E};
_.L(Hb,_.r);_.l=Hb.prototype;_.l.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.$O(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.l.observeDragToReorder=function(){var E=this;if(this.showImagesPreview){var B,I=pHr(_.FA.getInstance(),(B=this.data)==null?void 0:B.dragToReorderTooltip);_.Ll.addLowPriorityJob(function(){_.cN(E.hostElement,I,E.thumbnailDragDropArea)})}};
_.l.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}}};
_.l.computeThumbnail=function(E){return(E==null?void 0:E.localImageSrc)||void 0};
_.l.onRendererstamperFinished=function(){_.rZu(this.ytReorderableBehavior,_.n(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.n(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.l.handleDrop=function(E){var B=E.currDragItem;if(B!=null&&B.data){E=this.images[this.selectedImageIndex];var I=B.data.image,T=this.images.indexOf(I)||0;B=_.XF(B.parentNode.children,B);this.images.splice(T,1);this.images.splice(B,0,I);this.images=[].concat(_.ad(this.images));this.selectedImageIndex=this.images.indexOf(E)}};
_.l.setUpImagePicker=function(){var E=this.imageUploadEndpoint;E&&E.imageValidationInfo&&(this.uploadManager=new uN(E.uploadUrl,E.channelId),this.initialPicker||(this.initialPicker=new MA(this.dropzone,this.selectLink,!0),_.vV(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new MA(this.addImageButtonContainer,this.addImageSelectButton),_.vV(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.vV(this.JSC$13432_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.vV(this.JSC$13432_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.vV(_.n(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.l.detached=function(){this.initialPicker&&(_.zw(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.zw(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.l.onInitialSelectImages=function(E){var B=this;return _.a(function(I){return _.C(I,B.onSelectImages(E,!1),0)})};
_.l.onAddImage=function(E){var B=this;return _.a(function(I){return _.C(I,B.onSelectImages(E,!0),0)})};
_.l.onSelectImages=function(E,B){var I=this,T,e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q,f,ed,K;return _.a(function(p4){switch(p4.nextAddress){case 1:B?I.addImageErrorMessage="":(I.images=[],I.errorMessage="");T=E.detail;e=I.validateImages([].concat(_.ad(T)));if(e!=="")return B?I.addImageErrorMessage=e:I.errorMessage=e,p4.return();c=[].concat(_.ad(T)).map(function(sc){return(new AB(I.maxAspectRatio,!1,!0)).transform(sc)});
return _.C(p4,Promise.allSettled(c),2);case 2:Y=p4.yieldResult,v=_.p(Y.entries()),y=v.next();case 3:if(y.done){p4.jumpTo(5);break}Z=y.value;P=_.p(Z);z=P.next().value;m=P.next().value;u=z;x=m;if(x.status!=="fulfilled"){W=N=M=void 0;B?I.addImageErrorMessage=_.U3((M=I.data)==null?void 0:M.invalidError):I.errorMessage=I.errorMessage===""?_.U3((N=I.data)==null?void 0:N.invalidError):_.U3((W=I.data)==null?void 0:W.multiFileError);p4.jumpTo(4);break}U=x.value;U.cropped&&_.$O(I.hostElement,"yt-backstage-multi-image-cropped");
if(U.invalidAspectRatio){ed=f=q=void 0;B?I.addImageErrorMessage=_.U3((q=I.data)==null?void 0:q.invalidAspectRatioError):I.errorMessage=I.errorMessage===""?_.U3((f=I.data)==null?void 0:f.invalidAspectRatioError):_.U3((ed=I.data)==null?void 0:ed.multiFileError);p4.jumpTo(4);break}return _.C(p4,fEQ(I.JSC$13432_imageId,E.detail[u],U.transformedData),8);case 8:K=p4.yieldResult,I.images.push(K),I.JSC$13432_imageId++;case 4:y=v.next();p4.jumpTo(3);break;case 5:if(I.errorMessage!==""||I.addImageErrorMessage!==
"")return p4.return();B?WLr(I.uploadManager,[I.images[I.images.length-1]]):WLr(I.uploadManager,I.images);I.images=[].concat(_.ad(I.images));I.selectedImageIndex=B?Math.max(I.images.length-1,0):0;_.$O(I.hostElement,"yt-backstage-multi-image-select");_.ER(p4)}})};
_.l.onThumbnailClick=function(E){if(E=E.event_.detail)this.selectedImageIndex=this.images.indexOf(E)};
_.l.validateImages=function(E){if(E.length>this.maxNumImagesPerPost){var B;return _.U3((B=this.data)==null?void 0:B.multiImageExceedMaxImageCountError)}var I=1048576*this.maxFileSizeMb;E=E.filter(function(c){return c.size>I}).length;
if(E===0)return"";var T,e;E=E>1?(T=this.data)==null?void 0:T.multiFileError:(e=this.data)==null?void 0:e.fileSizeError;return _.U3(E)};
_.l.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.ad(this.images));this.selectedImageIndex=0};
_.l.repositionImage=function(E){this.images[this.selectedImageIndex].previewCoordinates=E.event_.detail;this.images=[].concat(_.ad(this.images))};
_.l.getAllUploadStatuses=function(){var E=this,B,I,T,e;return _.a(function(c){if(c.nextAddress==1)return _.C(c,E.uploadManager.getAllUploadStatuses(),2);B=c.yieldResult;I=_.p(B);for(T=I.next();!T.done;T=I.next())if(e=T.value,e.encryptedBlobId===void 0)return c.return(XXu(E.uploadManager));return c.return(B)})};
_.l.hasImages=function(){return this.images.length>0};
_.l.cancel=function(){for(var E=this.uploadManager,B=_.p(E.imagesUploadData),I=B.next();!I.done;I=B.next())E.cancel(I.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.$O(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Up.Object.defineProperties(Hb.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.imageUploadEndpoint)==null?void 0:(B=E.imageValidationInfo)==null?void 0:B.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.imageUploadEndpoint)==null?void 0:(B=E.imageValidationInfo)==null?void 0:B.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var E,B;if((E=this.data)==null?0:(B=E.icon)==null?0:B.iconType)return _.R3(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.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 E=this;return(this.images||[]).map(function(B,I){return{renderer:{image:B,selected:I===E.selectedImageIndex}}})}}});
Hb.prototype.setUpImagePicker=Hb.prototype.setUpImagePicker;Hb.prototype.onRendererstamperFinished=Hb.prototype.onRendererstamperFinished;Hb.prototype.observeDragToReorder=Hb.prototype.observeDragToReorder;Hb.prototype.observeAddImageError=Hb.prototype.observeAddImageError;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Hb.prototype,"rendererStamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.bHz),_.t("design:type",Object)],Hb.prototype,"ytReorderableBehavior",void 0);_.k([_.$7("#dropzone"),_.t("design:type",HTMLElement)],Hb.prototype,"dropzone",void 0);_.k([_.$7("#select-link"),_.t("design:type",HTMLElement)],Hb.prototype,"selectLink",void 0);_.k([_.$7("#thumbnail-drag-drop-area"),_.t("design:type",HTMLElement)],Hb.prototype,"thumbnailDragDropArea",void 0);_.k([_.$7("#add-image-button-container"),_.t("design:type",HTMLElement)],Hb.prototype,"addImageButtonContainer",void 0);
_.k([_.$7("#add-image-button"),_.t("design:type",HTMLElement)],Hb.prototype,"addImageSelectButton",void 0);_.k([_.$7("#image-preview-container"),_.t("design:type",Object)],Hb.prototype,"JSC$13432_imagePreviewContainer",void 0);_.k([_.X(),_.t("design:type",Object)],Hb.prototype,"addImageErrorMessage",void 0);_.k([_.X(),_.t("design:type",Object)],Hb.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Hb.prototype,"errorMessage",void 0);
_.k([_.X(),_.t("design:type",Object)],Hb.prototype,"imageUploadEndpoint",void 0);_.k([_.X(),_.t("design:type",Array)],Hb.prototype,"images",void 0);_.k([_.X(),_.t("design:type",MA)],Hb.prototype,"initialPicker",void 0);_.k([_.X(),_.t("design:type",MA)],Hb.prototype,"addImagePicker",void 0);_.k([_.X(),_.t("design:type",uN)],Hb.prototype,"uploadManager",void 0);_.k([_.X(),_.t("design:type",Object)],Hb.prototype,"selectedImageIndex",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Hb.prototype,"modern",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Hb.prototype,"maxNumImagesPerPost",void 0);_.k([_.S("imageUploadEndpoint"),_.t("design:type",Number),_.t("design:paramtypes",[])],Hb.prototype,"maxAspectRatio",null);_.k([_.S("imageUploadEndpoint"),_.t("design:type",Number),_.t("design:paramtypes",[])],Hb.prototype,"maxFileSizeMb",null);
_.k([_.S("data.icon.iconType"),_.t("design:type",Object),_.t("design:paramtypes",[])],Hb.prototype,"dropIcon",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Hb.prototype,"selectionCancel",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Hb.prototype,"previewCancel",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Hb.prototype,"dataForAddImageButton",null);
_.k([_.S("errorMessage"),_.t("design:type",String),_.t("design:paramtypes",[])],Hb.prototype,"dropzoneClass",null);_.k([_.S("images"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Hb.prototype,"showImagesPreview",null);_.k([_.S("images"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Hb.prototype,"containMaxImages",null);_.k([_.EM("addImageErrorMessage"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Hb.prototype,"observeAddImageError",null);
_.k([_.EM("showImagesPreview"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Hb.prototype,"observeDragToReorder",null);_.k([_.S("images","selectedImageIndex"),_.t("design:type",Object),_.t("design:paramtypes",[])],Hb.prototype,"selectedImageData",null);_.k([_.S("images","selectedImageIndex"),_.t("design:type",Array),_.t("design:paramtypes",[])],Hb.prototype,"thumbnailRenderers",null);
_.k([_.RN("yt-rendererstamper-finished"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Hb.prototype,"onRendererstamperFinished",null);_.k([_.EM("imageUploadEndpoint"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Hb.prototype,"setUpImagePicker",null);Hb=_.k([_.b({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Hb);
_.A(Hb,"ytd-backstage-multi-image-select-renderer",function(){if(q2$!==void 0)return q2$;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return q2$=E},{mode:1});var D5N;var KL6;var Rcz;var NA=function(){var E=_.r.apply(this,arguments)||this;E.boundCaptureFocus=function(B){E.onCaptureFocus(B)};
return E};
_.L(NA,_.r);_.l=NA.prototype;_.l.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.l.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.l.onCaptureFocus=function(E){_.W8(E).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.l.getIconType=function(E){return E?"yt-icons:"+E.toLowerCase():null};
_.l.onSelect=function(){var E;if((E=this.data)==null?0:E.onSelectCommand)if(_.d("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var B;((B=_.h(this.data.onSelectCommand.commandMetadata,_.D$))==null?0:B.url)?_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.Q().resolve(_.Dt).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Up.Object.defineProperties(NA.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.U3(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}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],NA.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],NA.prototype,"data",void 0);_.k([_.$7("#item"),_.t("design:type",HTMLElement)],NA.prototype,"item",void 0);_.k([_.S("data.label"),_.t("design:type",String),_.t("design:paramtypes",[])],NA.prototype,"label",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],NA.prototype,"value",null);NA=_.k([_.b({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],NA);
_.A(NA,"ytd-privacy-dropdown-item-renderer",function(){if(Rcz!==void 0)return Rcz;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Rcz=E},{mode:1});var gP=function(){var E=_.r.apply(this,arguments)||this;E.value="";E.label="";E.disabled=!1;return E};
_.L(gP,_.r);_.l=gP.prototype;_.l.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"}}}};
_.l.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.l.dataChanged=function(){this.reset()};
_.l.valueChanged=function(){var E;if(this.value&&(E=this.data)!=null&&E.entries){E=_.p(this.data.entries);for(var B=E.next();!B.done;B=E.next())if((B=this.getRendererForEntry(B.value))&&this.getItemRendererValue(B)===this.value){this.label=this.ytComponentBehavior.getSimpleString(B.label);break}}};
_.l.setInitialLabel=function(){if(this.data&&this.data.entries)for(var E=_.p(this.data.entries),B=E.next();!B.done;B=E.next())if(B=this.getRendererForEntry(B.value)){if(B.isSelected){this.label=this.ytComponentBehavior.getSimpleString(B.label);break}this.data.label&&(this.label=this.data.label)}};
_.l.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var E=_.p(this.data.entries),B=E.next();!B.done;B=E.next()){B=this.getRendererForEntry(B.value);var I=void 0;if((I=B)==null?0:I.isSelected)return this.getItemRendererValue(B)||-1}return-1};
_.l.getItemRendererValue=function(E){return"stringValue"in E||"int32Value"in E?E.stringValue||E.int32Value||null:null};
_.l.getRendererForEntry=function(E){return E.dropdownItemRenderer||E.privacyDropdownItemRenderer||E.navigationDropdownItemRenderer||null};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("value-changed",this.value))};
_.l.updateValueFromBinding=function(E){this.value=E.detail.value};
gP.prototype.valueChangedForBinding=gP.prototype.valueChangedForBinding;gP.prototype.valueChanged=gP.prototype.valueChanged;gP.prototype.dataChanged=gP.prototype.dataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],gP.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],gP.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],gP.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],gP.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],gP.prototype,"value",void 0);_.k([_.X(),_.t("design:type",Object)],gP.prototype,"label",void 0);_.k([_.$7("#entries"),_.t("design:type",Object)],gP.prototype,"entries",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],gP.prototype,"disabled",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gP.prototype,"dataChanged",null);
_.k([_.i6("value"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gP.prototype,"valueChanged",null);_.k([_.EM("value"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gP.prototype,"valueChangedForBinding",null);gP=_.k([_.b({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],gP);
_.A(gP,"ytd-flat-dropdown-renderer",function(){if(KL6!==void 0)return KL6;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return KL6=E},{mode:1});var E1h;var SU=function(){var E=_.r.apply(this,arguments)||this;E.quizOptions=[];E.explanationPlaceholderText="";E.optionPlaceholderText="";E.correctAnswerIndex=-1;E.isMarkAnswerTooltipShown=!1;E.timer=0;return E};
_.L(SU,_.r);_.l=SU.prototype;_.l.dataChanged=function(){this.optionPlaceholderText=_.U3(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.U3(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.l.onMarkCorrectAnswer=function(E){var B,I=((B=this.quizOptions[this.correctAnswerIndex])==null?void 0:B.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[E.model.index]=Object.assign({},this.quizOptions[E.model.index],{explanationText:I,isCorrect:!0});this.correctAnswerIndex=E.model.index;this.quizOptions=[].concat(_.ad(this.quizOptions))};
_.l.updatePlaceholderTexts=function(){for(var E=!1,B=[],I=0;I<this.quizOptions.length;I++){var T=this.optionPlaceholderText+" "+(I+1),e=void 0;((e=this.quizOptions[I])==null?void 0:e.placeholderText)!==T?(E=!0,B.push(Object.assign({},this.quizOptions[I],{placeholderText:T}))):B.push(this.quizOptions[I])}E&&(this.quizOptions=B);this.isValid()?_.$O(this.hostElement,"yt-commentbox-post-enable"):_.$O(this.hostElement,"yt-commentbox-post-disable")};
_.l.getSimpleString=function(E){return _.U3(E)};
_.l.createQuizOptions=function(E){var B=[],I;E=(I=E==null?void 0:E.minQuizOptions)!=null?I:0;for(I=0;I<E;I++)B.push(this.createQuizOption());return B};
_.l.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.ad(this.quizOptions),[this.createQuizOption()]))};
_.l.onInput=function(){this.quizOptions=[].concat(_.ad(this.quizOptions))};
_.l.onExplanationInput=function(){_.$O(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.l.onRemoveQuizOption=function(E){this.quizOptions.splice(E.model.index,1);E.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:E.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.ad(this.quizOptions));this.quizOptions.length===0&&_.$O(this.hostElement,"yt-quiz-attachment-dismiss")};
_.l.updateHintRenderer=function(){var E=this;clearTimeout(this.timer);this.timer=setTimeout(function(){E.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.l.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var E=0,B=0,I=_.p(this.quizOptions),T=I.next();!T.done;T=I.next()){T=T.value;var e=void 0;if(((e=T.optionText)==null?void 0:e.trim())!==""||T.isCorrect){T.isCorrect&&B++;e=void 0;if(this.hasCustomOptionText&&((e=T.optionText)==null?void 0:e.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;E++}}return E>=
Number(this.editorInfo.minQuizOptions)&&B===1};
_.l.getPostCreateOptions=function(){for(var E=[],B=_.p(this.quizOptions),I=B.next();!I.done;I=B.next()){I=I.value;var T=void 0;((T=I.optionText)==null?void 0:T.trim())!==""&&E.push({pollOption:{text:I.optionText,explanation:I.explanationText},isCorrect:I.isCorrect})}return E};
_.l.getExplanationText=function(){var E;return((E=this.quizOptions[this.correctAnswerIndex])==null?void 0:E.explanationText)||""};
_.l.maybeDisplayMarkAnswerEduToolTip=function(){var E,B,I,T,e,c,Y;this.shouldShowMarkAnswerTooltip()&&((E=this.editorInfo)==null?0:(B=E.markAnswerButton)==null?0:(I=B.buttonRenderer)==null?0:(T=I.hint)==null?0:(e=T.hintRenderer)==null?0:(c=e.content)==null?0:(Y=c.bubbleHintRenderer)==null?0:Y.text)&&(_.FA.getInstance(),E=D3(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,(E==null?void 0:E.length)>0&&this.optionSelectors&&_.$g(E[0],this.optionSelectors[0]))};
_.l.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var E=0,B=_.p(this.quizOptions),I=B.next();!I.done;I=B.next()){I=I.value;var T=void 0;((T=I.optionText)==null?void 0:T.trim())!==""&&E++;if(I.isCorrect)return!1}return E<2?!1:!0};
_.l.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.l.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.l.updateOptionTextFromBinding=function(E){if(E.target){var B=Array.from(_.n(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(E.target);if(B>=0){var I;this.quizOptions[B].optionText=(I=E.detail.value)!=null?I:""}}};
_.Up.Object.defineProperties(SU.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var E,B,I=(E=this.editorInfo)==null?void 0:(B=E.addOptionButton)==null?void 0:B.buttonRenderer;I&&(I.style="STYLE_SUGGESTIVE",I.size="SIZE_SMALL",I.isDisabled=!this.isAllowedToAddOption);return(I==null?0:I.text)?I:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var E,B;return this.quizOptions.length<((B=(E=this.editorInfo)==null?void 0:E.maxQuizOptions)!=null?B:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(E){var B;return(B=E.optionText)==null?void 0:B.trim()})}}});
SU.prototype.updatePlaceholderTexts=SU.prototype.updatePlaceholderTexts;SU.prototype.dataChanged=SU.prototype.dataChanged;_.k([_.X(),_.t("design:type",Object)],SU.prototype,"editorInfo",void 0);_.k([_.X(),_.t("design:type",Array)],SU.prototype,"quizOptions",void 0);_.k([_.X(),_.t("design:type",Object)],SU.prototype,"explanationPlaceholderText",void 0);_.k([_.eV(".option-selector-button"),_.t("design:type",Array)],SU.prototype,"optionSelectors",void 0);
_.k([_.i6("editorInfo"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],SU.prototype,"dataChanged",null);_.k([_.S("editorInfo","isAllowedToAddOption","quizOptions"),_.t("design:type",Object),_.t("design:paramtypes",[])],SU.prototype,"addAnswerButton",null);_.k([_.S("editorInfo","quizOptions"),_.t("design:type",Object),_.t("design:paramtypes",[])],SU.prototype,"isAllowedToAddOption",null);
_.k([_.i6("quizOptions"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],SU.prototype,"updatePlaceholderTexts",null);_.k([_.S("quizOptions"),_.t("design:type",Object),_.t("design:paramtypes",[])],SU.prototype,"hasCustomOptionText",null);SU=_.k([_.b({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],SU);
_.A(SU,"ytd-backstage-quiz-editor-renderer",function(){if(E1h!==void 0)return E1h;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return E1h=E},{mode:2});var BL6;var $Fl=(QL.FIRSTDAYOFWEEK+1)%7;var In$;var TLZ=[],evV=0,lnV=0;evV=0;lnV=24;if(.25*(lnV-evV)<0)In$=[];else{for(var cjD=evV;cjD<lnV;cjD+=.25)TLZ.push(cjD);In$=TLZ}var iQl=In$.map(function(E){E=E*60*60;return{secondsSinceMidnight:E,text:(new oY(7)).format(new Date(0,0,0,0,0,E))}});var paZ;var oF=function(){var E=_.r.apply(this,arguments)||this;E.skipNextOpenDialog=!1;E.errorMessage="";return E};
_.L(oF,_.r);_.l=oF.prototype;_.l.attached=function(){var E=this,B=new MutationObserver(function(){E.JSC$13475_calendarMain.scrollHeight>0&&(B.disconnect(),E.calendarConfig&&E.calendarConfig.selectedDate&&E.scrollToDate())});
B.observe(this.JSC$13475_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){B.disconnect()},1E3)};
_.l.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.l.onDateTextChange=function(){if(this.calendarConfig){var E=this.validateDateText();E.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(E.details)):this.textbox.setAttribute("invalid","")}};
_.l.handleDayClick=function(E){E.model.day.date&&(this.commitDate(E.model.day.date),this.dialog.close())};
_.l.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var E=Tac(this.calendarConfig.selectedDate,this.renderData);E!==void 0&&this.JSC$13475_calendarMain.scrollToIndex(E)}};
_.l.scrollToNextMonth=function(){this.JSC$13475_calendarMain.scrollToIndex(this.JSC$13475_calendarMain.firstVisibleIndex+1)};
_.l.scrollToPrevMonth=function(){this.JSC$13475_calendarMain.firstVisibleIndex===0&&this.JSC$13475_calendarMain.scrollTo(0,0);this.JSC$13475_calendarMain.scrollToIndex(this.JSC$13475_calendarMain.firstVisibleIndex-1)};
_.l.onFormSubmit=function(E){E.preventDefault();this.calendarConfig&&(E=this.validateDateText(),E.isValid&&(this.commitDate(E.details),this.dialog.close()))};
_.l.onEscOrClickingOutside=function(E){E=E.detail.path&&!!E.detail.path.length&&E.detail.path[0];if(E.classList.contains("ytd-calendar-date-picker")){E===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var B=0;B<this.dropdownButton.children.length;B++)this.dropdownButton.children[B]===E&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}E=this.textbox.value!==this.dateText;B=this.validateDateText();E&&B.isValid&&this.commitDate(B.details);this.dialog.close();this.textbox.value=
this.dateText};
_.l.commitDate=function(E){this.calendarConfig&&(this.set("calendarConfig.selectedDate",E),_.$O(this.hostElement,"ytd-calendar-date-selected",E))};
_.l.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var E=this.textbox.value;var B=new Date;E=(new sXc(2)).parse(E,B,{validate:!0})===E.length?$5J(B):void 0;if(!E)return this.errorMessage=_.yu("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};B=this.calendarConfig.start;var I=this.calendarConfig.end;if(D4D(E,B))return this.errorMessage=_.yu("ENTER_DATE_OR_LATER",{allowed_date:BaG(B)}),{isValid:!1,details:void 0};if(D4D(I,E))return this.errorMessage=
_.yu("ENTER_DATE_OR_EARLIER",{allowed_date:BaG(I)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:E}};
_.Up.Object.defineProperties(oF.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?BaG(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var E=this.calendarConfig,B=[],I=0;I<7;I++)B.push(QL.NARROWWEEKDAYS[(I+$Fl)%7]);I=[];for(var T=new Date(E.start.year,E.start.month);T.getFullYear()<E.end.year||T.getFullYear()===E.end.year&&T.getMonth()<=E.end.month;){var e=I,c=e.push,Y=T.getFullYear(),v=T.getMonth(),y=E,Z=void 0,P=[],z=Object.freeze({extraCssClass:"invisible",debugClass:""}),m=new Date(Y,v),u=$5J(m);m=m.getDay();for(var x=$5J(new Date);u.month===
v;){m!==$Fl&&Z||(Z=Array.from({length:7}).fill(z),P.push(Z));var M={date:{year:Y,month:v,day:u.day},extraCssClass:"",debugClass:""};y.selectedDate&&M.date&&F7G(M.date,y.selectedDate)&&(M.extraCssClass+=" selected");if(D4D(u,y.start)||D4D(y.end,u))M.extraCssClass+=" disabled";F7G(u,x)&&(M.extraCssClass+=" today");M.extraCssClass=M.extraCssClass.trim();Z[(m-$Fl+7)%7]=M;u=RCd(u);m=(m+1)%7}c.call(e,{weeks:P,monthLabel:QL.SHORTMONTHS[v]+" "+Y,year:Y,month:v,monthLabelExtraCssClass:P[0][2]===z?"shift-down-label":
""});T.setMonth(T.getMonth()+1)}return{months:I,daysOfWeekLabel:B}}}}});
oF.prototype.onEscOrClickingOutside=oF.prototype.onEscOrClickingOutside;oF.prototype.scrollToDate=oF.prototype.scrollToDate;_.k([_.X(),_.t("design:type",Object)],oF.prototype,"calendarConfig",void 0);_.k([_.X(),_.t("design:type",Object)],oF.prototype,"skipNextOpenDialog",void 0);_.k([_.X(),_.t("design:type",Object)],oF.prototype,"errorMessage",void 0);_.k([_.$7("#textbox"),_.t("design:type",HTMLInputElement)],oF.prototype,"textbox",void 0);
_.k([_.$7("#calendar-dialog"),_.t("design:type",Object)],oF.prototype,"dialog",void 0);_.k([_.$7("#calendar-main"),_.t("design:type",Object)],oF.prototype,"JSC$13475_calendarMain",void 0);_.k([_.$7("#date-picker"),_.t("design:type",HTMLElement)],oF.prototype,"dropdownButton",void 0);_.k([_.S("calendarConfig.selectedDate"),_.t("design:type",String),_.t("design:paramtypes",[])],oF.prototype,"dateText",null);
_.k([_.S("calendarConfig","calendarConfig.selectedDate"),_.t("design:type",Object),_.t("design:paramtypes",[])],oF.prototype,"renderData",null);_.k([_.EM("renderData","calendarConfig.selectedDate"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oF.prototype,"scrollToDate",null);_.k([_.RN("iron-overlay-canceled"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],oF.prototype,"onEscOrClickingOutside",null);
oF=_.k([_.QE({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],oF);
_.A(oF,"ytd-calendar-date-picker",function(){if(paZ!==void 0)return paZ;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return paZ=E},{mode:2});var YBt=_.yu("UTC_OFFSET_FORMAT",{utc_offset:(new oY("Z")).format(new Date)}),ant=(new Date).getTimezoneOffset()*-60,v1R=new Date,yjh,CRz=bm(v1R.getTimezoneOffset());yjh=OqD(MPZ(CRz,v1R));var waR=_.yu("LOCAL_TIME_GMT_LABEL",{gmt_text:yjh.replace("+0","+").replace("-0","-").replace(":00","")}),Au=function(){var E=_.r.apply(this,arguments)||this;E.selectedTimeIndex=0;E.selectedTimezoneIndex=0;E.timeOfDayOptions=iQl;return E};
_.L(Au,_.r);_.l=Au.prototype;_.l.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var E=EXF();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=E,this.selectedTimeIndex=0;else{var B=I6G(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},E,{selectedDate:B.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(I){return I.secondsSinceMidnight===B.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.l.onDatePicked=function(E){this.selectedDate=E.detail};
_.l.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.$O(this.hostElement,"ytd-date-time-selection-cancelled")};
_.l.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var E=this.selectedDate;E=new Date(E.year,E.month,E.day);_.$O(this.hostElement,"ytd-date-time-selection-update",Math.floor(E.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+E.getTimezoneOffset()*60))}};
_.l.getTimezoneFormat=function(E){return E.localizedDisplayText?E.localizedDisplayText:_.yu("TIMEZONE_FORMAT",{utc_offset_text:""+E.localizedUtcOffset,city_name:""+E.localizedName})};
_.l.updateSelectedTimeIndexFromBinding=function(E){this.selectedTimeIndex=E.detail.value};
_.l.updateSelectedTimezoneIndexFromBinding=function(E){this.selectedTimezoneIndex=E.detail.value};
_.Up.Object.defineProperties(Au.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var E=this.data.timezoneOptions;var B={name:"Etc/Unknown",localizedName:_.yu("LOCAL_TIME_LABEL"),localizedUtcOffset:YBt,utcOffsetSec:""+ant,localizedDisplayText:waR};E?E.length&&E[0].name!==B.name&&(E[0].localizedDisplayText||(B.localizedDisplayText=""),E.unshift(B)):E=[B];return E}}},
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]}}});
Au.prototype.onDateTimeTimezoneChange=Au.prototype.onDateTimeTimezoneChange;Au.prototype.onDatePicked=Au.prototype.onDatePicked;Au.prototype.updateDefaultSelectedValue=Au.prototype.updateDefaultSelectedValue;_.k([_.X(),_.t("design:type",Object)],Au.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Au.prototype,"calendarConfig",void 0);_.k([_.X(),_.t("design:type",Object)],Au.prototype,"selectedDate",void 0);_.k([_.X(),_.t("design:type",Object)],Au.prototype,"selectedTimeIndex",void 0);
_.k([_.X(),_.t("design:type",Object)],Au.prototype,"selectedTimezoneIndex",void 0);_.k([_.$7("#time-listbox"),_.t("design:type",Object)],Au.prototype,"timeListBox",void 0);_.k([_.$7("#timezone-listbox"),_.t("design:type",Object)],Au.prototype,"timezoneListBox",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Au.prototype,"rendererStamperBehavior",void 0);_.k([_.S("data.timezoneOptions"),_.t("design:type",Object),_.t("design:paramtypes",[])],Au.prototype,"timeZones",null);
_.k([_.i6("data","timeZones"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Au.prototype,"updateDefaultSelectedValue",null);_.k([_.S("selectedTimezoneIndex","timeZones"),_.t("design:type",Object),_.t("design:paramtypes",[])],Au.prototype,"selectedTimezone",null);_.k([_.S("selectedTimeIndex"),_.t("design:type",Object),_.t("design:paramtypes",[])],Au.prototype,"selectedTime",null);
_.k([_.RN("ytd-calendar-date-selected"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Au.prototype,"onDatePicked",null);_.k([_.EM("selectedTimezone","selectedTime","selectedDate"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Au.prototype,"onDateTimeTimezoneChange",null);Au=_.k([_.b({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Au);
_.A(Au,"ytd-date-time-picker-renderer",function(){if(BL6!==void 0)return BL6;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return BL6=E},{mode:1});var ZQV;var jU=function(){var E=_.r.apply(this,arguments)||this;E.boundOnTapDismissButton=function(){E.dismissTapHandler()};
E.dismissButtonOverrides={size:"XS"};return E};
_.L(jU,_.r);jU.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}}}}}};
jU.prototype.dismissTapHandler=function(){_.$O(this.hostElement,"yt-backstage-attachment-dismissed")};
jU.prototype.computeAttachmentType=function(E){return E?E.backstageImageRenderer?"image":E.videoRenderer?"video":"none":"none"};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],jU.prototype,"attachmentPreview",void 0);_.k([_.X(),_.t("design:type",Object)],jU.prototype,"dismissButton",void 0);_.k([_.X(),_.t("design:type",Object)],jU.prototype,"boundOnTapDismissButton",void 0);
_.k([_.X(),_.t("design:type",Object)],jU.prototype,"dismissButtonOverrides",void 0);_.k([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.t("design:type",String)],jU.prototype,"attachmentType",void 0);jU=_.k([_.b({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],jU);
_.A(jU,"ytd-backstage-dismissable-attachment",function(){if(ZQV!==void 0)return ZQV;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ZQV=E},{mode:1});var PRU;var U5=function(){var E=_.r.apply(this,arguments)||this;E.selectedVideoId=void 0;E.picker=void 0;E.dismissButtonOverrides={size:"XS"};E.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return E};
_.L(U5,_.r);_.l=U5.prototype;_.l.onServiceRequestCompleted=function(E){E.stopPropagation()};
_.l.handleAddVideoPreviewAction=function(E){E=this.get("addVideoPreviewAction",E);this.onGetVideoPreviewSuccess(E)};
_.l.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}}}}}};
_.l.onLaunchVideoPicker=function(E){var B=this,I=_.U3(this.get("addVideoLinkAction.title",E)),T=this.get("addVideoLinkAction.onePickHostId",E);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",E);T&&(this.picker||(I=_.Gbz(_.hac(T).setTitle(I).addView(sIZ()).addView(hpR()),function(e){B.onPickVideo(e)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",E)||I.addView("youtube"),this.picker=I.build()),this.picker.setVisible(!0))};
_.l.onPickVideo=function(E){if(E)if(E.action==="cancel")_.$O(this.hostElement,"yt-video-link-button-cancel");else if(E.action==="picked"){E=E.docs;if(!E||E.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(E=(E==null?0:E.length)?E[0]:void 0)?E.id:void 0;this.setVideoPreview()}};
_.l.setVideoPreview=function(){var E=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){E.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.l.onGetVideoPreviewSuccess=function(E){if(E&&E.videoPreview&&E.cancelButton)this.videoPreview=E.videoPreview,this.cancelButton=E.cancelButton,_.$O(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.l.onGetVideoPreviewError=function(){this.cancel()};
_.l.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.$O(this.hostElement,"yt-video-link-cancel")};
_.l.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
U5.prototype.onServiceRequestCompleted=U5.prototype.onServiceRequestCompleted;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],U5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],U5.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],U5.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],U5.prototype,"videoPreview",void 0);_.k([_.X(),_.t("design:type",Object)],U5.prototype,"cancelButton",void 0);_.k([_.X(),_.t("design:type",Object)],U5.prototype,"getVideoPreviewCommand",void 0);_.k([_.X(),_.t("design:type",Object)],U5.prototype,"dismissButtonOverrides",void 0);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],U5.prototype,"onServiceRequestCompleted",null);U5=_.k([_.b({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],U5);
_.A(U5,"ytd-backstage-video-link-attachment",function(){if(PRU!==void 0)return PRU;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return PRU=E},{mode:1});var zvl;var mFr;var QsR;var kw=function(){return _.r.apply(this,arguments)||this};
_.L(kw,_.r);kw.prototype.dataChanged=function(){this.active=!1};
kw.prototype.onTap=function(){_.$O(this.hostElement,"yt-select-emoji-suggestion",this.data)};
kw.prototype.identity=function(E){return E};
_.Up.Object.defineProperties(kw.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T;if((E=this.data)==null?0:(B=E.image)==null?0:(I=B.thumbnails)==null?0:(T=I[0])==null?0:T.url)return E=this.data.image.thumbnails[0].url,E.startsWith("data:image/svg+xml")?IG(E):_.pr(E)}}});
kw.prototype.dataChanged=kw.prototype.dataChanged;_.k([_.X(),_.t("design:type",Object)],kw.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],kw.prototype,"active",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],kw.prototype,"dataChanged",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],kw.prototype,"imageSrc",null);
kw=_.k([_.b({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],kw);
_.A(kw,"ytd-emoji-suggestion",function(){if(QsR!==void 0)return QsR;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return QsR=E},{mode:1});var dFh=/.*([:@#].*?)$/,tu=function(){var E=_.r.apply(this,arguments)||this;E.suggestions=[];E.suggestionIndex=-1;E.JSC$13503_lastSuggestionRange=null;return E};
_.L(tu,_.r);_.l=tu.prototype;_.l.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.l.getSuggestions=function(E){var B=[],I=Uuu(this.emojiManager,E.substr(0,3));if(I)for(var T in I)if(T.toLocaleLowerCase().indexOf(E)===0){var e=I[T];if(e&&e.emojiId){e=xx(this.emojiManager,e.emojiId);var c=void 0,Y=void 0,v=void 0,y=void 0,Z=((c=e)==null?0:c.isCustomEmoji)?(Y=e)==null?void 0:(v=Y.shortcuts)==null?void 0:v[0]:(y=e)==null?void 0:y.emojiId;c=void 0;B.push({suggestion:{image:(c=e)==null?void 0:c.image,alt:Z,text:T}});if(B.length>=64)break}}return B?B.sort(function(P,z){return z.suggestion.text<
P.suggestion.text?-1:z.suggestion.text===P.suggestion.text?0:1}):null};
_.l.insertSuggestion=function(E){_.$O(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13503_lastSuggestionRange,text:E.alt});this.dropdown.opened=!1};
_.l.updateSuggestionsAtCaret=function(E){this.updateSuggestions(E,this.retrieveTextBeforeRange(E))};
_.l.offsetStartOfRangeBy=function(E,B){E.startOffset>=B&&E.setStart(E.startContainer,E.startOffset-B)};
_.l.updateSuggestions=function(E,B){var I=this;this.JSC$13503_lastSuggestionRange&&(this.JSC$13503_lastSuggestionRange.detach(),this.JSC$13503_lastSuggestionRange=null);if((B=dFh.exec(B))&&B.length&&(B=B[B.length-1].toLocaleLowerCase(),B.length>2||B===":_")&&(this.offsetStartOfRangeBy(E,B.length),this.JSC$13503_lastSuggestionRange=E,(E=this.getSuggestions(B))&&E.length)){this.suggestions=E;_.AJ(this,function(){I.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(E.length-1);return}this.dropdown.opened=!1};
_.l.onKeyDown=function(E){if(this.dropdown.opened)switch(E.key){case "Escape":this.dropdown.opened=!1;E.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);E.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);E.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),E.preventDefault()}};
_.l.onKeyUp=function(E,B){switch(E.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(B);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(B)}};
_.l.onKeyPress=function(E){E.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),E.preventDefault())};
_.l.changeSuggestionIndex=function(E){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(E+this.suggestions.length)%this.suggestions.length,E=this.dropdownContent.children[this.suggestionIndex],E.active=!0,this.dropdownContent.scrollTop=E.offsetTop)};
_.l.retrieveTextBeforeRange=function(E){var B=E.startContainer;return B&&B.nodeType===Node.TEXT_NODE?B.textContent.substr(0,E.startOffset):""};
tu.prototype.onKeyPress=tu.prototype.onKeyPress;tu.prototype.onKeyUp=tu.prototype.onKeyUp;tu.prototype.onKeyDown=tu.prototype.onKeyDown;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],tu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Array)],tu.prototype,"suggestions",void 0);_.k([_.X(),_.t("design:type",_.uF)],tu.prototype,"emojiManager",void 0);_.k([_.X(),_.t("design:type",Number)],tu.prototype,"verticalSuggestionsOffset",void 0);
_.k([_.$7("#dropdown"),_.t("design:type",Object)],tu.prototype,"dropdown",void 0);_.k([_.$7("#dropdown-content"),_.t("design:type",HTMLDivElement)],tu.prototype,"dropdownContent",void 0);_.k([_.RN("keydown"),_.t("design:type",Function),_.t("design:paramtypes",[KeyboardEvent]),_.t("design:returntype")],tu.prototype,"onKeyDown",null);_.k([_.RN("keyup"),_.t("design:type",Function),_.t("design:paramtypes",[KeyboardEvent,Range]),_.t("design:returntype")],tu.prototype,"onKeyUp",null);
_.k([_.RN("keypress"),_.t("design:type",Function),_.t("design:paramtypes",[KeyboardEvent]),_.t("design:returntype")],tu.prototype,"onKeyPress",null);tu=_.k([_.b({disableElementRegistration:!0,is:"ytd-emoji-input"})],tu);
_.A(tu,"ytd-emoji-input",function(){if(mFr!==void 0)return mFr;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return mFr=E},{mode:2});var hvr;var fD=function(){var E=_.r.apply(this,arguments)||this;E.hasMaxOptions=!1;return E};
_.L(fD,_.r);_.l=fD.prototype;_.l.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.l.setPrefilledChoices=function(E){var B=this;this.set("pollOptions",[]);var I;for(I=0;I<Math.min(E.length,this.data.maxPollOptions);I++)this.push("pollOptions",E[I].substring(0,this.data.maxPollOptionChars));for(;I<this.data.minPollOptions;I++)this.push("pollOptions","");this.hasMaxOptions=I>=this.data.maxPollOptions;_.AJ(this,function(){for(var T=B.pollOptions,e=_.n(B.hostElement).querySelectorAll(".poll-option-input"),c=0;c<e.length;c++)e[c].value=T[c]})};
_.l.focusChanged=function(){_.Dk(this.hostElement)};
_.l.onInput=function(){var E=this;_.OM(this,"onInput",function(){E.isValid()?_.$O(E.hostElement,"yt-commentbox-post-enable"):_.$O(E.hostElement,"yt-commentbox-post-disable")},300)};
_.l.setPollOptions=function(){var E=[],B,I=((B=this.data)==null?0:B.minPollOptions)?this.data.minPollOptions:0;for(B=0;B<I;B++)E.push("");return E};
_.l.addPollOption=function(){var E=this;_.$O(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Ll.addLowPriorityJob(function(){var B;(B=_.n(E.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||B.focus()})};
_.l.onRemovePollOption=function(E){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.$O(this.hostElement,"yt-poll-attachment-dismiss")):(E=this.repeat.indexForElement(E.target.parentNode),E!==null&&(this.splice("pollOptions",E,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.$O(this.hostElement,"yt-commentbox-post-enable"))))};
_.l.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.l.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var E=0,B=this.pollOptions.length;E<B;E++)if(this.pollOptions[E].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.l.getPollOptions=function(){return this.pollOptions};
_.l.setPollOptionsFromInputs=function(){for(var E=_.n(this.hostElement).querySelectorAll(".poll-option-input"),B=0;B<E.length;B++)this.pollOptions[B]=E[B].value.trim()};
_.l.clearPollOptions=function(){var E=_.n(this.hostElement).querySelectorAll(".poll-option-input");E=_.p(E);for(var B=E.next();!B.done;B=E.next())B.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.l.getSimpleString=function(E){return _.U3(E)};
_.l.updateValueFromBinding=function(E){if(E.target&&this.pollOptions){var B=Array.from(_.n(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(E.target);if(B>=0){var I;this.pollOptions[B]=(I=E.detail.value)!=null?I:"";this.notifyPath("pollOptions."+B)}}};
fD.prototype.dataChanged=fD.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],fD.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],fD.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Array)],fD.prototype,"pollOptions",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],fD.prototype,"hasMaxOptions",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],fD.prototype,"enableCreationBox",void 0);
_.k([_.$7("#repeat"),_.t("design:type",ZN)],fD.prototype,"repeat",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fD.prototype,"dataChanged",null);fD=_.k([_.b({disableElementRegistration:!0,is:"ytd-poll-attachment"})],fD);
_.A(fD,"ytd-poll-attachment",function(){if(hvr!==void 0)return hvr;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return hvr=E},{mode:2});var ss$;var uo6;var LZU;var xFD;var VV=function(){return _.r.apply(this,arguments)||this};
_.L(VV,_.r);_.Up.Object.defineProperties(VV.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],VV.prototype,"rendererBehaviors",void 0);_.k([_.X(),_.t("design:type",Object)],VV.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],VV.prototype,"focused",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("focused"),_.t("design:type",Object),_.t("design:paramtypes",[])],VV.prototype,"ariaSelected",null);VV=_.k([_.QE({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],VV);
_.A(VV,"yt-user-mention-suggestion-renderer",function(){if(xFD===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;LZU===void 0&&(LZU=document.createElement("template"));var T=LZU;I.call(B,T.content.cloneNode(!0),E.content.firstChild);xFD=E}E=xFD;return E},{mode:2});var GZD;var OQ$;var qA=function(){var E=_.r.apply(this,arguments)||this;E.focusedSuggestionIndex=-1;return E};
_.L(qA,_.r);_.l=qA.prototype;_.l.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.l.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.l.setFocusedSuggestionIndex=function(E){!this.data||!this.data.suggestions||E<0||E>=this.data.suggestions.length||(this.focusedSuggestionIndex=E,E=this.getSuggestionId(E),this._setFocusedSuggestionId(E))};
_.l.advanceSuggestion=function(E){this.focusedSuggestionIndex===-1||E!==-1&&E!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+E),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.l.ensureSuggestionVisible=function(E){E=this.getSuggestionId(E);E=_.n(this.hostElement).querySelector("[id="+E+"]");E!=null&&(E.offsetTop<this.hostElement.scrollTop?E.scrollIntoView(!0):E.offsetTop+E.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&E.scrollIntoView(!1))};
_.l.getSuggestionId=function(E){return"user-mention-suggestion-"+E};
_.l.onSuggestionTap=function(E){var B=_.h(E.model.item,v86);this.ytRendererBehavior.logExplicitClick(B);_.$O(this.hostElement,"yt-user-mention-suggestion-selected",{data:B,index:E.model.index})};
_.l.onSuggestionMouseMove=function(E){E.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(E.model.index)};
_.l.isSuggestionFocused=function(E,B){return E===B};
_.l.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.l.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("focused-suggestion-id-changed",this.focusedSuggestionId))};
qA.prototype.focusedSuggestionIdChangedForBinding=qA.prototype.focusedSuggestionIdChangedForBinding;qA.prototype.onDomChange=qA.prototype.onDomChange;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],qA.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],qA.prototype,"focusedSuggestionIndex",void 0);_.k([_.X({readOnly:!0}),_.t("design:type",String)],qA.prototype,"focusedSuggestionId",void 0);
_.k([_.RN("dom-change"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],qA.prototype,"onDomChange",null);_.k([_.EM("focusedSuggestionId"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qA.prototype,"focusedSuggestionIdChangedForBinding",null);qA=_.k([_.QE({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],qA);
_.A(qA,"yt-user-mention-suggestions-dropdown",function(){if(OQ$===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;GZD===void 0&&(GZD=document.createElement("template"));var T=GZD;I.call(B,T.content.cloneNode(!0),E.content.firstChild);OQ$=E}E=OQ$;return E},{mode:2});var FM=function(){var E=_.r.apply(this,arguments)||this;E.suggestionsResponse=null;E.activeMention=null;E.selectionChangeListener=E.onSelectionChange.bind(E);E.handlesEnabled=_.d("enable_handles_in_mention_suggest_posts");E.handlesInMentionSuggestionsEnabled=_.d("handles_in_mention_suggest_posts");E.zeroPrefixMentionSuggestionEnabled=_.d("enable_zero_prefix_mention_suggestion_web");E.pendingQuery=null;E.flowNonce=null;return E};
_.L(FM,_.r);_.l=FM.prototype;_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.l.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.l.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.l.hasSuggestions=function(E){return!!(E&&E.suggestions&&E.suggestions.length>0)};
_.l.onInput=function(){var E=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var B=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),I=this.activeMention.JSC$9140_getText().slice(-1)===" ",T=this.activeMention.JSC$9140_getText().slice(-2,-1)===" ",e="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9140_getText().slice(-2,-1))>=
0;e=this.zeroPrefixMentionSuggestionEnabled&&e;if(this.activeMention.isCollapsed()||(B||T||e)&&I)this.cancelActiveMention();else{var c=this.activeMention.JSC$9140_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.OM(this,"requestSuggestions",function(){E.requestSuggestions(c)},100)}}}};
_.l.onServiceRequestSent=function(E){E.stopPropagation()};
_.l.onServiceRequestCompleted=function(E){E.stopPropagation();E=E.detail.data;E.query&&(!this.pendingQuery||this.pendingQuery!==E.query)||!this.zeroPrefixMentionSuggestionEnabled&&E.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=E,this.hasSuggestions(E)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.l.onServiceRequestError=function(E){E.stopPropagation()};
_.l.onUserMentionSuggestionSelected=function(E){this.selectSuggestion(E.detail.data,E.detail.index)};
_.l.onSelectionChange=function(){if(this.activeMention){var E=_.wZ(),B=this.activeMention.JSC$9140_containsRange(E);E=E&&this.containsHelper(this.dropdown,E.getContainer());B||E||this.cancelActiveMention()}};
_.l.containsHelper=function(E,B){var I;if(((I=window.ShadyDOM)==null?void 0:I.noPatch)===!0)return E.contains(B);for(;B;){if(B===E)return!0;B=B instanceof ShadowRoot?B.host:B.parentNode}return!1};
_.l.maybeStartSuggest=function(){var E=_.wZ();if(E&&E.isCollapsed()){var B=E.JSC$9140_getStartNode(),I=E.JSC$9140_getStartOffset();if(B instanceof Text&&!(I<1)){var T=B.textContent;!(T=T&&T.charAt(I-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(T)<0||(this.activeMention=_.So(B,I-1,E.JSC$9140_getEndNode(),E.JSC$9140_getEndOffset()),this.flowNonce=xh(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.l.updateActiveMention=function(){if(this.activeMention){var E=_.wZ();E&&E.isCollapsed()&&(this.activeMention=_.So(this.activeMention.JSC$9140_getStartNode(),this.activeMention.JSC$9140_getStartOffset(),E.JSC$9140_getEndNode(),E.JSC$9140_getEndOffset()))}};
_.l.requestSuggestions=function(E){if(this.activeMention){var B={suggestions_query:E};this.pendingQuery=E;_.l1(this.hostElement,[this.suggestionsEndpoint,B])}};
_.l.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()};
_.l.focusPreviousSuggestion=function(E){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),E.preventDefault())};
_.l.focusNextSuggestion=function(E){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),E.preventDefault())};
_.l.selectFocusedSuggestion=function(E){if(this.hasSuggestions(this.suggestionsResponse)){var B=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.h(B,v86)&&(this.selectSuggestion(_.h(B,v86),this.dropdown.focusedSuggestionIndex),E.preventDefault())}};
_.l.selectSuggestion=function(E,B){if(E){var I=this.activeMention;if(I){var T=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&E.handle?_.HT(T,"\u00a0\u2068@"+E.handle+"\u2069\u00a0"):this.handlesEnabled?_.HT(T,"\u00a0"+E.displayName+"\u00a0"):_.HT(T,"\u00a0@"+E.displayName+"\u00a0");Cr(T,"/channel/"+E.channelId);T.classList.add("yt-formatted-string","yt-simple-endpoint");T.setAttribute("spellcheck","false");I.isCollapsed()||I.JSC$9140_removeContents();I.insertNode(T,!0);E=document.createTextNode(" ");
T.parentNode.insertBefore(E,T.nextSibling);window.getSelection().collapse(E,1);B={suggestionSelected:{suggestionIndex:B}};if(this.zeroPrefixMentionSuggestionEnabled){var e;B.suggestionSelected.isZeroPrefix=((e=this.suggestionsResponse)==null?void 0:e.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",B);this.cancelActiveMention();_.$O(this.hostElement,"yt-mention-inserted")}}};
_.l.getPositionTarget=function(E){return E&&E.getBrowserRangeObject()};
_.l.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.l.onFocusedSuggestionIdChanged=function(E){var B=_.Htd(this.hostElement)[0];B&&(E.detail.value?B.setAttribute("aria-activedescendant",E.detail.value):B.removeAttribute("aria-activedescendant"))};
_.l.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.l.logGELEvent=function(E,B){E={eventType:E,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};B&&(E=Object.assign(E,B));_.hK("userMentionAutoCompleteBoxEvent",E)};
FM.prototype.onDomChange=FM.prototype.onDomChange;FM.prototype.onUserMentionSuggestionSelected=FM.prototype.onUserMentionSuggestionSelected;FM.prototype.onServiceRequestError=FM.prototype.onServiceRequestError;FM.prototype.onServiceRequestCompleted=FM.prototype.onServiceRequestCompleted;FM.prototype.onServiceRequestSent=FM.prototype.onServiceRequestSent;FM.prototype.onInput=FM.prototype.onInput;_.k([_.g(_.mG),_.t("design:type",Object)],FM.prototype,"ironA11yKeysBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],FM.prototype,"suggestionsEndpoint",void 0);_.k([_.X(),_.t("design:type",Object)],FM.prototype,"suggestionsResponse",void 0);_.k([_.X(),_.t("design:type",Object)],FM.prototype,"activeMention",void 0);_.k([_.$7("#dropdown"),_.t("design:type",Object)],FM.prototype,"dropdown",void 0);_.k([_.$7("#iron-dropdown"),_.t("design:type",Object)],FM.prototype,"ironDropdown",void 0);
_.k([_.RN("input"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],FM.prototype,"onInput",null);_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],FM.prototype,"onServiceRequestSent",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],FM.prototype,"onServiceRequestCompleted",null);
_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],FM.prototype,"onServiceRequestError",null);_.k([_.RN("yt-user-mention-suggestion-selected"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],FM.prototype,"onUserMentionSuggestionSelected",null);
_.k([_.RN("dom-change"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],FM.prototype,"onDomChange",null);FM=_.k([_.QE({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],FM);
_.A(FM,"yt-user-mention-autosuggest-input",function(){if(uo6===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;ss$===void 0&&(ss$=document.createElement("template"));var T=ss$;I.call(B,T.content.cloneNode(!0),E.content.firstChild);uo6=E}E=uo6;return E},{mode:2});var DP=null;
_.wp({is:"ytd-commentbox",_template:function(){if(zvl!==void 0)return zvl;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return zvl=E},
behaviors:[_.Cg4.YtHostElementBehavior,_.mG,_.th.YtActionHandlerBehavior,_.G0.YtComponentBehavior,_.kC.YtRendererstamperBehavior,_.e5$.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(E,B){return _.cP(E.entities,"aadcGuidelinesStateEntityPayload",B)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(E,B){return _.cP(E.entities,"commentboxStateEntity",B)},
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 _.Gm}},
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:_.d("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.d("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",_.Kq(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(E){this.fire(E?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(E){this.set("submitButtonDisabled",void 0);this.clear();E&&this.computeIsEmojiButtonDisplayed_(E)&&(E=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&E.updateEmojiCategories()},
observePrefilledImage_:function(E,B,I){this.isValidPrefilledImage_(E,B,I)&&(this.prefilledAttachment_="image",this.prefilledImageData_=B,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(E,B){this.isValidPrefilledVideo_(E,B)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(E){E&&E.pollData&&E.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(E.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.po();this.focus()},
detached:function(){document.removeEventListener("tap",_.Kq(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(E){E=E.detail;E=E.isCustomEmoji?E.shortcuts[0]:E.emojiId;var B=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(B,E);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var E=_.wZ();if(E){E=E.getBrowserRangeObject();for(var B=E.commonAncestorContainer;B;){if(B===this.getEditableTextArea_())return E;B=B.parentNode}}E=this.getEditableTextArea_();E=_.go(E,E.childNodes.length);E.select();return E.getBrowserRangeObject()},
insertTextWithEmojis_:function(E,B,I){(B=this.emojiManager.createDocumentFragment(B,!0,!1,I===void 0?!0:I))&&B.childNodes.length!==0&&(E.collapsed||E.deleteContents(),I=B.lastChild,E.insertNode(B),_.F_N(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var E=_.wZ();if(E){var B=E.JSC$9140_getStartNode(),I=E.JSC$9140_getEndNode();if(ec6(B)&&ec6(I)){var T=E.JSC$9140_getStartOffset(),e;if(_.YU&&B.nodeType===Node.ELEMENT_NODE&&(e=_.vIU(B)))_.go(e,0).select();else{e=vD(B)?B:_.Ql(B,vD);var c=vD(I)?I:_.Ql(I,vD);if(e||c)if(E.isCollapsed()){if(B.nodeType===Node.TEXT_NODE){E=!0;T===B.length&&(E=!1);if(DP==="end"||DP==="right")E=!1;B=B.parentNode;E=[].concat(_.ad(B.parentNode.childNodes)).indexOf(B)+(E?0:1);_.go(B.parentNode,E).select()}}else e?
e.previousSibling&&e.previousSibling.length>0?_.So(I,E.JSC$9140_getEndOffset(),e.previousSibling,e.previousSibling.length-1).select():(B=document.createTextNode("\u200b"),e.parentNode.insertBefore(B,e),_.So(I,E.JSC$9140_getEndOffset(),B,0).select()):c&&(c.nextSibling&&c.nextSibling.length>0?_.So(B,E.JSC$9140_getStartOffset(),c.nextSibling,1).select():(I=document.createTextNode("\u200b"),c.parentNode.insertBefore(I,c.nextSibling),_.So(B,E.JSC$9140_getStartOffset(),I,I.length).select()));DP=null}}else DP=
null}else DP=null},
leftKeyPressed_:function(){DP="left"},
rightKeyPressed_:function(){DP="right"},
endKeyPressed_:function(){DP="end"},
maybeDeleteChip_:function(){var E=a6c(!0);if(E){var B=_.wZ(),I=B.JSC$9140_getStartNode();B=B.JSC$9140_getStartOffset();_.Oo(I,B,E,E.childNodes.length).select()}},
maybeBackspaceChip_:function(){var E=a6c(!1);if(E){var B=_.wZ(),I=B.JSC$9140_getStartNode();B=B.JSC$9140_getStartOffset();_.Oo(I,B,E,0).select()}},
maybeBackspaceChipWordMode_:function(E){var B=_.wZ();if(B.isCollapsed()){var I=B.JSC$9140_getStartNode();B=B.JSC$9140_getStartOffset();var T=vX6(I,B,!0);T&&(_.Oo(I,B,T,0).select(),document.execCommand("delete"),E.preventDefault(),E.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(E){var B=_.wZ();if(B.isCollapsed()){var I=B.JSC$9140_getStartNode();B=B.JSC$9140_getStartOffset();var T=vX6(I,B,!1);T&&(_.Oo(I,B,T,T.childNodes.length).select(),document.execCommand("delete"),E.preventDefault(),E.stopImmediatePropagation())}},
onTap_:function(E){if(!E.defaultPrevented&&(E.currentTarget.tagName==="YTD-COMMENTBOX"&&vD(E.target)&&E.preventDefault(),this.isEmojiPickerDisplayed)){var B=this.$$("#emojis"),I=this.$$("#emoji-button"),T=this.getEditableTextArea_();if((E=E.path?E.path:E.composedPath&&E.composedPath())&&!E.includes(B)&&!E.includes(T)&&!E.includes(I))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(E,B,I){return E==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&B!==void 0&&B.encryptedBlobId!==null&&B.sourceExternalVideoId!==null&&I!==void 0&&I.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(E,B){return E==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!B&&!!B.videoRenderer&&!!B.videoRenderer.videoId},
isValidPrefilledAttachment_:function(E,B,I){return this.isValidPrefilledImage_(E,B,I)||this.isValidPrefilledVideo_(E,I)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.d("enable_multi_image_post_creation")){var E=this.$$("ytd-backstage-multi-image-select-renderer");E&&E.hasImages()&&E.cancel()}else(E=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&E.cancel();(E=this.$["poll-attachment"])&&this.hasPoll_&&E.clearPollOptions();(E=this.$["image-poll-attachment"])&&this.hasImagePoll_&&E.resetPollOptions();(E=this.$["quiz-attachment"])&&this.hasQuiz_&&E.resetQuizOptions();
(E=this.$["video-link-attachment"])&&this.hasVideo_&&E.cancel();(E=this.$["access-restrictions-selector"].firstElementChild)&&E.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 _.n(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.n(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(E,B){E=ctG(E,this.emojiManager,B).cloneNode(!0);for(B=E.firstChild;B;)if(B.nodeType!==1)B=B.nextSibling;else switch(B.tagName){case "BR":var I=_.L7();_.Qgt(I,B);B=I.nextSibling;break;case "DIV":(I=B.lastChild)&&B.nextSibling&&_.n7(_.L7(),I);B.previousSibling&&(B.previousSibling.nodeType===1||B.previousSibling.nodeType===3&&!B.previousSibling.textContent.endsWith("\n"))&&_.Os(_.L7(),B);I&&I.nodeName==="BR"&&_.ii(I);I=B;B.hasChildNodes()?(B=B.firstChild,
_.dID(I)):(B=B.nextSibling,_.ii(I));break;default:B=B.nextSibling}return ytF(E)},
onAddImageError_:function(E){E.stopPropagation();this.errorMessage_=_.jj(E.detail)},
setTextAreaValue_:function(E){E||(E="");var B=this.getEditableFormattedString_();B.text="";this.getEditableTextArea_().innerText="";typeof E==="string"&&(E={runs:[{text:E}]});B.text=E},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();DP=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var E=this.getEditableTextArea_();E&&(_.go(E,E.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.HA("HTML_DIR")==="rtl"){var E=this.getEditableTextArea_(),B=this.getTextAreaValue()!==""?"auto":"rtl";E.setAttribute("dir",B)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var E;return lF6((E=this.$["quiz-attachment"])==null?void 0:E.getExplanationText())||lF6(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var E=null;if(this.isEmojiButtonDisplayed){var B=this.getInputRange_();B&&(E=this.emojiInput.retrieveTextBeforeRange(B))}this.insertText_(E,!0);this.updateCharCount_();this.setSubmitButton_();E=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=E.scrollHeight>E.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var E=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:E})},
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(E){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(E)},
onPasteEmoji_:function(E){E.preventDefault();E.stopImmediatePropagation();E=E.clipboardData.getData("text/plain");this.insertText_(E,!1,!1)},
insertText_:function(E,B,I){B=B===void 0?!1:B;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&E){var T=this.getInputRange_().cloneRange();this.emojiManager&&T&&(B&&this.emojiInput.offsetStartOfRangeBy(T,E.length),this.insertTextWithEmojis_(T,E,I),l6B(this.getEditableTextArea_().lastChild)||(T=this.getInputRange_().cloneRange()),T&&(this.emojiInput.updateSuggestions(T,E),this.updateSuggestionOffset_(T)))}},
setSubmitButton_:function(){if(this.data){var E=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",B=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(E||B){var I=this.getTextAreaValue().trim();B=I===this.previousText_;I=!I||this.aboveCharLimit_;E&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(I=this.aboveCharLimit_);this.submitButtonDisabled=
B||I||!this.getTextLength();E&&_.d("enable_post_scheduling")&&(this.submitButtonDisabled=B&&!this.scheduledPublishTimeSec_||I)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.U3,computeCreationBoxClass_:function(E){return E?"focused":"not-focused"},
computeFooterMessageClass_:function(E,B){return B?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(E,B){return B?B:E},
computeFooterMessageHidden_:function(E,B){return!B&&!E},
computePlaceholderText_:function(E,B,I){return(I==="video"||I==="image")&&(E==null?0:E.prefilledPlaceholderText)?E==null?void 0:E.prefilledPlaceholderText:B==="poll"||B==="image-poll"?E==null?void 0:E.pollPostPlaceholderText:B==="quiz"?E==null?void 0:E.quizPostPlaceholderText:B==="image"?E==null?void 0:E.imagePostPlaceholderText:E==null?void 0:E.placeholderText},
computeHideAttachmentButtons_:function(E,B,I,T){return E===void 0?!1:T&&this.getSimpleString(T)===this.getSimpleString(E.rateLimitErrorMessage)?!0:B!=="none"||I!=="none"||!E.videoLinkButton&&!E.pollButton&&!E.imagePollButton&&!E.quizButton&&!E.imageButton},
computeHideDismissableAttachment_:function(E){return E!=="image"&&E!=="video"},
computeHasVideo_:function(E){return E==="video"},
computeHasImage_:function(E){return E==="image"},
computeHasPoll_:function(E){return E==="poll"},
computeHasImagePoll_:function(E){return E==="image-poll"},
computeHasQuiz_:function(E){return E==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(E){return E&&E.backstageAttachment?E.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!E.backstageAttachment.quizRenderer&&!E.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(E){if(this.isValidPrefilledAttachment_(E.purpose,E.prefilledImageData,E.backstageAttachment))return E.backstageAttachment},
computeEditAttachment_:function(E){if(this.computePrefilledContent_(E)===void 0)return E.backstageAttachment},
computeAuthorThumbnailDimension_:function(E,B){return E&&!B?24:40},
computeImageUploadEndpoint_:function(E){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",E)},
computeRateLimitErrorCommands_:function(E){var B,I;return E==null?void 0:(B=E.advancedTierFeatures)==null?void 0:(I=B.rateLimit)==null?void 0:I.rateLimitCommands},
computeIsBackstageComment_:function(E){return!(!E||E!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(E){return this.get("submitButton.buttonRenderer.serviceEndpoint",E)||this.get("replyButton.buttonRenderer.serviceEndpoint",E)||this.get("postButton.buttonRenderer.serviceEndpoint",E)},
computeSubmitButtonOverride:function(){if(_.d("web_modern_buttons")){var E,B;return{segmentedPosition:this.dropdownSchedulePanel_||!((E=this.data)==null?0:(B=E.postOptionsMenu)==null?0:B.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.d("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(E,B){E=this.get("submitButton.buttonRenderer",E)||this.get("replyButton.buttonRenderer",E)||this.get("postButton.buttonRenderer",E);B&&(E=B);E&&(E=Object.assign({},E),E.serviceEndpoint=void 0,E.isDisabled=this.submitButtonDisabled);return E},
computeHasExternalLinksAccess_:function(E){if(_.d("enable_rfa_external_links")){var B,I,T;return(T=E==null?void 0:(B=E.advancedTierFeatures)==null?void 0:(I=B.externalLinks)==null?void 0:I.allowExternalLinks)!=null?T:!0}return!0},
computeIsEmojiButtonDisplayed_:function(E){return E.emojiButton&&E.emojiPicker&&E.emojiPicker.emojiPickerRenderer&&E.emojiPicker.emojiPickerRenderer.categories?E.emojiPicker.emojiPickerRenderer.categories.find(function(B){return B.emojiPickerCategoryRenderer?B.emojiPickerCategoryRenderer.emojiIds&&B.emojiPickerCategoryRenderer.emojiIds.length>0:B.emojiPickerUpsellCategoryRenderer?B.emojiPickerUpsellCategoryRenderer.emojis&&B.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(E){return E.charLimit?E.charLimit:null},
computeDropdownSchedulingPanel_:function(E,B){if(E==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&B)return B},
computeInlineSchedulingPanel_:function(E,B){if(E==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&B)return B},
computeHideAuthorThumbnail_:function(E,B){return E||this.computeUseIdentityChip_(B)},
computeHideIdentityChipRenderer_:function(E,B){return E||!this.computeUseIdentityChip_(B)},
computeUseIdentityChip_:function(E){return!!E&&!!E.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(E){var B,I,T,e;(E==null?0:(B=E.detail)==null?0:(I=B.endpoint)==null?0:I.ypcGetOffersEndpoint)||(E==null?0:(T=E.detail)==null?0:(e=T.endpoint)==null?0:e.ypcOffersEndpoint)?(E.stopPropagation(),_.l1(this,[E.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",E)&&(E.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(E){this.addedAttachment="video";this.selectedVideoId_=E.detail.videoId},
commentboxStateEntityChanged_:function(E){var B=this;(E==null?void 0:E.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(E==null?void 0:E.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){B.focus()})},
onYtServiceRequestSent_:function(E,B){if(B.actions)for(E=_.p(B.actions),B=E.next();!B.done;B=E.next())B.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(E){this.isLoading=!1;var B=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",E),I,T,e,c=E==null?void 0:(I=E.detail)==null?void 0:(T=I.data)==null?void 0:(e=T.actionResult)==null?void 0:e.commentboxStateEntityKey;if(B)this.errorMessage_=B;else if(c){var Y;this.dismissData_=E==null?void 0:(Y=E.detail)==null?void 0:Y.data;this.commentboxStateKey_=c}else{this.clear();var v;this.fire("yt-commentbox-dismiss",E==null?void 0:(v=E.detail)==
null?void 0:v.data)}},
onYtServiceRequestError_:function(E){E.stopPropagation();this.isLoading=!1;var B,I;if(((B=this.data)==null?void 0:B.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((I=this.data)==null?void 0:I.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(B=this.get("detail.error.args",E)||[],B.length>1&&B[1].message){this.handlePostsServiceRequestError_(B[1].message);return}(E=this.get("detail.error.message",E))?this.errorMessage_=this.data.errorMessage||_.jj(E):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(E){if(_.d("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var B=_.p(this.rateLimitErrorCommands),I=B.next();!I.done;I=B.next())if(I=I.value,I.errorLabel===E){_.$g(I.command,this.hostElement);return}this.errorMessage_=_.jj(E)},
submitIfNotBackstagePost_:function(E){if(!this.isBackstagePost)this.onSubmit_(E)},
onSubmit_:function(E){var B=this,I,T,e,c,Y,v,y,Z,P,z,m,u,x,M,N;return _.a(function(W){switch(W.nextAddress){case 1:E.stopPropagation();if(!B.serviceEndpoint||!B.isValidInput_())return W.return();if(B.shouldShowPostAadcNotice_())return B.showPostAadcNotice_(),W.return();if(B.shouldShowCommentAadcNotice_())return B.showCommentAadcNotice_(),W.return();if(!(B.$$("ytd-backstage-multi-image-select-renderer")&&B.hasImage_&&_.d("enable_multi_image_post_creation"))){W.jumpTo(2);break}I=B.$$("ytd-backstage-multi-image-select-renderer");
return _.C(W,I.getAllUploadStatuses(),3);case 3:T=W.yieldResult;if(!T)return W.return();e=_.p(T);for(c=e.next();!c.done;c=e.next())if(Y=c.value,Y.encryptedBlobId===void 0)return B.isLoading=!1,y=v=void 0,B.errorMessage_=(y=(v=B.imageUploadEndpoint_)==null?void 0:v.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?y:null,W.return();return W.return(B.submitForm_(void 0,void 0,void 0,void 0,I.images,B.taggedVideoId_));case 2:if(!B.hasImagePoll_||!B.$["image-poll-attachment"]){W.jumpTo(4);
break}return _.C(W,B.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:Z=W.yieldResult;if(!Z)return W.return();P=_.p(Z);for(z=P.next();!z.done;z=P.next())if(m=z.value,!m.encryptedBlobId)return B.isLoading=!1,u=void 0,B.errorMessage_=(u=B.data.errorMessage)!=null?u:null,W.return();case 4:M=(x=B.$$("ytd-backstage-image-select-renderer"))&&x.uploadPromise(),N=B.getSharedPostId_(),M?M.then(function(){B.submitForm_.apply(B,_.ad(_.aG.apply(0,arguments)))}).catch(function(U){B.isLoading=!1;
B.errorMessage_=_.jj(U.message)}):B.selectedVideoId_?B.submitForm_(void 0,B.selectedVideoId_):B.prefilledAttachment_==="image"?B.submitForm_(B.prefilledImageData_.encryptedBlobId,void 0,void 0,B.prefilledImageData_.sourceExternalVideoId,void 0,B.taggedVideoId_):B.prefilledAttachment_==="video"?B.submitForm_(void 0,B.data.backstageAttachment.videoRenderer.videoId):N?B.submitForm_(void 0,void 0,N):B.taggedVideoId_!==void 0?B.submitForm_(void 0,void 0,void 0,void 0,void 0,B.taggedVideoId_):B.submitForm_(),
_.ER(W)}})},
openSchedulingPanel:function(E){E&&E.scheduleButton&&E.scheduleButton.buttonRenderer&&(this.scheduleButton_=E.scheduleButton.buttonRenderer);E&&E.dateTimePicker&&this.set("data.schedulingDateTimePicker",E.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(E){E.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(E){E.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(E){E.stopPropagation();E.detail.alertMessage&&(this.alertMessage_=E.detail.alertMessage)},
onImageSelected_:function(E){E.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(E){E.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(E){E.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(E.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(E){E.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(E){var B=this.$["video-link-attachment"];B&&B.onLaunchVideoPicker(E)},
onAttachmentDismiss_:function(E){E.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"&&_.d("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.d("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 E;if(this.addedAttachment==="image-poll"&&((E=this.$["image-poll-attachment"])==null||!E.isValid()))return!1;var B;if(this.addedAttachment==="quiz"&&((B=this.$["quiz-attachment"])==null||!B.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;E=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(E=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")E=!0;return E||!!this.getTextAreaValue().trim()},
submitForm_:function(E,B,I,T,e,c){var Y=this.getTextAreaValue().trim(),v={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Y===this.previousText_&&(Y=void 0);Y!==void 0&&(v.comment_text=Y);this.isLoading=!0;c!=void 0&&(v.tagged_video_id=c);E?(v.image_blob_id=E,this.imagePreviewCoordinates_&&(v.image_preview_coordinates=this.imagePreviewCoordinates_)):B?v.attached_video_id=B:I?v.shared_post_id=I:e&&e.length>0&&(v.images_data=e.map(function(y){return{encryptedBlobId:y.encryptedBlobId,
previewCoordinates:y.previewCoordinates}}));
T&&(v.source_video_id=T);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(v.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(v.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(v.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.d("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(v.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.d("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(v.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.l1(this,[this.serviceEndpoint,v])},
onIsInputFocusChanged_:function(E,B){E?this.fire("yt-autonav-pause-focus"):B!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(E){var B=this.getEditableTextArea_();[].concat(_.ad(E.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(T){B.appendChild(document.createTextNode(T))})});
E.preventDefault()},
preventDefault_:function(E){E.preventDefault()},
onSuggestionInsert_:function(E){this.insertTextWithEmojis_(E.detail.range,E.detail.text)},
onEmojiSuggestionClick_:function(E){this.emojiInput.insertSuggestion(E.detail)},
computeSubmitButtonClass_:function(E,B){return!B||E?"":"with-options"},
updateSuggestionOffset_:function(E){if(this.emojiInput&&_.n(this.emojiInput).querySelector("#dropdown")){var B=this.getEditableTextArea_().getBoundingClientRect().bottom,I=E.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(B-I)+5;B=this.getEditableTextArea_().getBoundingClientRect().left;E=E.getBoundingClientRect().left-B;_.n(this.emojiInput).querySelector("#dropdown").style.marginLeft=E+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(E){if(_.d("enable_post_scheduling")&&this.data&&this.data.purpose){E=E.detail;if(Math.floor(Date.now()/1E3)>=E)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var B=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(B)||B!==E?this.scheduledPublishTimeSec_=E:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=E;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var E=["image-button","image-poll-button","poll-button"];_.d("enable_quiz_creation")&&E.push("quiz-button");_.d("auto_convert_posts_video_tag")||E.push("video-link-button");return E},
getButtonRenderer:function(E,B){if(E)switch(B){case "video-link-button":var I;return((I=E.videoLinkButton)==null?void 0:I.buttonRenderer)||void 0;case "image-button":var T;return((T=E.imageButton)==null?void 0:T.buttonRenderer)||void 0;case "poll-button":var e;return((e=E.pollButton)==null?void 0:e.buttonRenderer)||void 0;case "image-poll-button":var c;return((c=E.imagePollButton)==null?void 0:c.buttonRenderer)||void 0;case "quiz-button":var Y;return((Y=E.quizButton)==null?void 0:Y.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var E;return(E=this.data)==null||!E.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var E,B;return!((E=this.data)==null||!E.openAadcDialog)&&!((B=this.aadcGuidelinesState_)==null||!B.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.HA("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var E;((E=this.data)==null?0:E.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.M3("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(E){E.clickTrackingParams&&_.lu().clickCommand(E);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.I2(this,"yt-close-popup-action")},
onHideIdentityChip:function(E){var B;this.set("data.placeholderText",(B=E.hideIdentityChipAction)==null?void 0:B.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var KD=function(){var E=_.r.apply(this,arguments)||this;E.isOpen=!1;E.modern=_.d("web_modern_buttons");E.roundedContainer=!0;E.dropdownButtonOverride=_.d("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;E.inPopupContainer=!1;E.isCommentboxLoading=!1;var B=["image-button","image-poll-button","poll-button"];_.d("enable_quiz_creation")&&B.push("quiz-button");_.d("auto_convert_posts_video_tag")||B.push("video-link-button");E.attachmentButtonIds=B;E.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 E};
_.L(KD,_.r);_.l=KD.prototype;_.l.computeButtonOverride=function(){var E;return((E=this.data)==null?0:E.postOptionsMenu)&&_.d("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.l.configureRendererStamper=function(){var E={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.d("auto_convert_posts_video_tag")||(E["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return E};
_.l.ready=function(){var E=this,B=_.n(this.hostElement).querySelector("#placeholder-area"),I=function(T){E.onOpen(T)};
B.addEventListener("tap",I);B.addEventListener("keypress",I)};
_.l.showButtonEduTooltip=function(){var E,B,I,T,e,c,Y;if(_.d("enable_quiz_creation")&&((E=this.data)==null?0:(B=E.quizButton)==null?0:(I=B.buttonRenderer)==null?0:(T=I.hint)==null?0:(e=T.hintRenderer)==null?0:(c=e.content)==null?0:(Y=c.bubbleHintRenderer)==null?0:Y.text)&&(_.FA.getInstance(),E=D3(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(E==null?void 0:
E.length)>0)){this.ytComponentBehavior.resolveCommand(E[0],{form:{element:this.quizButton}});return}var v;if((v=this.data)==null?0:v.imagePollButtonTooltip)if(_.FA.getInstance(),v=D3(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(v==null?void 0:v.length)>0){this.ytComponentBehavior.resolveCommand(v[0],{form:{element:this.imagePollButton}});return}var y;_.d("enable_multi_image_post_creation")&&
((y=this.data)==null?0:y.multiImageButtonTooltip)&&(_.FA.getInstance(),y=D3(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(y==null?void 0:y.length)>0&&this.ytComponentBehavior.resolveCommand(y[0],{form:{element:this.imageButton}}))};
_.l.onCreatePollAction=function(E){_.h(E,LYl)&&(this.JSC$13558_commentbox.addedAttachment="poll",this.openDialog())};
_.l.onAddVideoLinkAction=function(E){if(_.h(E,uTz))this.JSC$13558_commentbox.onAddVideoLink(E)};
_.l.onShowSchedulingPanelCommand=function(E){(E=_.h(E,ELu))&&this.openSchedulingPanel(E)};
_.l.onCreateImagePollCommand=function(E){_.h(E,eht)&&(this.JSC$13558_commentbox.openImagePollComponent(),this.openDialog())};
_.l.onCreateQuizCommand=function(E){_.h(E,lMN)&&(this.JSC$13558_commentbox.openQuizComponent(),this.openDialog())};
_.l.openSchedulingPanel=function(E){_.d("enable_post_scheduling")&&(this.openDialog(),this.JSC$13558_commentbox.openSchedulingPanel(E))};
_.l.onCreateCommentAction=function(E){this.get("createCommentAction.contents",E)&&(this.JSC$13558_commentbox.clear(),this.closeDialog())};
_.l.onOpen=function(E){E instanceof KeyboardEvent&&E.type==="keypress"&&E.keyCode!==13&&E.keyCode!==32||(this.data.prepareAccountEndpoint?_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.l.onYtCommentboxDismiss=function(){this.closeDialog()};
_.l.onYtCommentboxLoadingStart=function(E){E.stopPropagation();this.isCommentboxLoading=!0};
_.l.onYtCommentboxLoadingEnd=function(E){E.stopPropagation();this.isCommentboxLoading=!1};
_.l.onYtVideoLinkButtonCancel=function(E){E.stopPropagation();this.onOpen(E)};
_.l.onYtVideoLinkSelected=function(E){E.stopPropagation();this.onOpen(E)};
_.l.onIronSelect=function(E){E.stopPropagation();E.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=E.detail.item.value&&(this.accessRestriction?(this.accessRestriction=E.detail.item.value,this.onOpen(E)):this.accessRestriction=E.detail.item.value)};
_.l.onYtNavigate=function(E){this.get("detail.endpoint.backstageImageUploadEndpoint",E)&&(this.JSC$13558_commentbox.addedAttachment="image",this.JSC$13558_commentbox.submitButtonDisabled=!0,this.onOpen(E))};
_.l.onRequestSent=function(E){if(_.d("web_button_rework"))for(var B=_.p(E.detail),I=B.next();!I.done;I=B.next())_.h(I.value,PMh)&&(this.JSC$13558_commentbox.addedAttachment="image",this.JSC$13558_commentbox.submitButtonDisabled=!0,this.onOpen(E))};
_.l.openDialog=function(){this.JSC$13558_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13558_commentbox.focus()};
_.l.onPopupClosed=function(){_.FA.getInstance()};
_.l.computeCreationDisabled=function(E){return!!E};
_.l.computeIsCreationDialog=function(E){return!!E&&E==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.l.computeDisabledPostButton=function(E){if(!E)return null;E.isDisabled=!0;return E};
_.l.computeIsCreationDialogWithHeader=function(E){return!this.inPopupContainer&&!!E&&!!E.authorText&&E.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.l.computeIsHeaderHidden=function(E,B){return!E||B};
_.l.computeDropdownRendererClasses=function(E){return E?["text-secondary-style"]:[]};
_.l.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var E=_.n(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;E&&E.reset()};
KD.prototype.onPopupClosed=KD.prototype.onPopupClosed;KD.prototype.onRequestSent=KD.prototype.onRequestSent;KD.prototype.onYtNavigate=KD.prototype.onYtNavigate;KD.prototype.onIronSelect=KD.prototype.onIronSelect;KD.prototype.onYtVideoLinkSelected=KD.prototype.onYtVideoLinkSelected;KD.prototype.onYtVideoLinkButtonCancel=KD.prototype.onYtVideoLinkButtonCancel;KD.prototype.onYtCommentboxLoadingEnd=KD.prototype.onYtCommentboxLoadingEnd;KD.prototype.onYtCommentboxLoadingStart=KD.prototype.onYtCommentboxLoadingStart;
KD.prototype.onYtCommentboxDismiss=KD.prototype.onYtCommentboxDismiss;KD.prototype.showButtonEduTooltip=KD.prototype.showButtonEduTooltip;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],KD.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],KD.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],KD.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],KD.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KD.prototype,"isOpen",void 0);_.k([_.X({computed:"computeButtonOverride(data)"}),_.t("design:type",Object)],KD.prototype,"buttonOverride",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KD.prototype,"modern",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KD.prototype,"roundedContainer",void 0);_.k([_.X(),_.t("design:type",Object)],KD.prototype,"dropdownButtonOverride",void 0);_.k([_.X({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.t("design:type",Boolean)],KD.prototype,"creationDisabled",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],KD.prototype,"enableCreationBox",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.t("design:type",Boolean)],KD.prototype,"isCreationDialog",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KD.prototype,"inPopupContainer",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.t("design:type",Boolean)],KD.prototype,"isCreationDialogWithHeader",void 0);_.k([_.X(),_.t("design:type",Object)],KD.prototype,"accessRestriction",void 0);
_.k([_.X({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.t("design:type",Array)],KD.prototype,"dropdownRendererClasses",void 0);_.k([_.X(),_.t("design:type",Object)],KD.prototype,"isCommentboxLoading",void 0);_.k([_.X(),_.t("design:type",Array)],KD.prototype,"attachmentButtonIds",void 0);_.k([_.$7("#image-button"),_.t("design:type",HTMLElement)],KD.prototype,"imageButton",void 0);
_.k([_.$7("#image-poll-button"),_.t("design:type",HTMLElement)],KD.prototype,"imagePollButton",void 0);_.k([_.$7("#quiz-button"),_.t("design:type",HTMLElement)],KD.prototype,"quizButton",void 0);_.k([_.$7("#commentbox"),_.t("design:type",Object)],KD.prototype,"JSC$13558_commentbox",void 0);_.k([_.EM("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KD.prototype,"showButtonEduTooltip",null);
_.k([_.RN("yt-commentbox-dismiss"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],KD.prototype,"onYtCommentboxDismiss",null);_.k([_.RN("yt-commentbox-loading-start"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],KD.prototype,"onYtCommentboxLoadingStart",null);
_.k([_.RN("yt-commentbox-loading-end"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],KD.prototype,"onYtCommentboxLoadingEnd",null);_.k([_.RN("yt-video-link-button-cancel"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],KD.prototype,"onYtVideoLinkButtonCancel",null);
_.k([_.RN("yt-video-link-selected"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],KD.prototype,"onYtVideoLinkSelected",null);_.k([_.RN("iron-select"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],KD.prototype,"onIronSelect",null);_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],KD.prototype,"onYtNavigate",null);
_.k([_.RN("yt-service-request-sent-button-renderer"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],KD.prototype,"onRequestSent",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KD.prototype,"onPopupClosed",null);KD=_.k([_.b({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],KD);
_.A(KD,"ytd-backstage-post-dialog-renderer",function(){if(D5N!==void 0)return D5N;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return D5N=E},{mode:1});var n16;var MbN;var RF=function(){return _.r.apply(this,arguments)||this};
_.L(RF,_.r);_.l=RF.prototype;_.l.computeHeartButtonStyle=function(E){return(E==null?0:E.styleType)?E.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.l.onYtButtonTap=function(){if(this.data.isEnabled){var E=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(E=this.getEndpoint(E))&&(_.d("web_ytd_creator_heart_renderer_command_resolver_ks")?_.l1(this.hostElement,[E]):_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}}))}else(E=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(E)};
_.l.toggle=function(E){this.set("data.isHearted",E!==void 0?E:!this.data.isHearted)};
_.l.getEndpoint=function(E){var B,I=(B=this.data)==null?void 0:B.heartEndpoint,T;B=(T=this.data)==null?void 0:T.unheartEndpoint;if(I&&B)return E?B:I};
_.l.computeButtonAccessibility=function(E,B){var I,T,e=E==null?void 0:(I=E.heartedAccessibility)==null?void 0:(T=I.accessibilityData)==null?void 0:T.label,c,Y;E=E==null?void 0:(c=E.unheartedAccessibility)==null?void 0:(Y=c.accessibilityData)==null?void 0:Y.label;return B?e:E};
_.Up.Object.defineProperties(RF.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 E;return _.d("kevlar_system_icons")&&!((E=this.data)==null||!E.isHearted)}}});
RF.prototype.onYtButtonTap=RF.prototype.onYtButtonTap;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.X_),_.t("design:type",Object)],RF.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],RF.prototype,"data",void 0);_.k([_.S("data.isHearted"),_.t("design:type",Object),_.t("design:paramtypes",[])],RF.prototype,"heartTooltip",null);
_.k([_.S("data.isHearted"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],RF.prototype,"iconFilled",null);_.k([_.X({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.t("design:type",String)],RF.prototype,"buttonAccessibility",void 0);_.k([_.X({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.t("design:type",String)],RF.prototype,"heartButtonStyle",void 0);
_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],RF.prototype,"onYtButtonTap",null);RF=_.k([_.b({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],RF);
_.A(RF,"ytd-creator-heart-renderer",function(){if(MbN!==void 0)return MbN;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return MbN=E},{mode:1});var EN=function(){var E=_.r.apply(this,arguments)||this;E.hasCreatorReply=!1;E.buttonOverrides={size:"S",iconPosition:"icon-only"};E.replyButtonOverrides={size:"S",type:"text"};E.forceIconButton=!_.d("web_modern_buttons");E.modern=_.d("web_modern_buttons");E.buttonTooltipPosition="bottom";E.systemIcons=_.d("kevlar_system_icons");E.replyDialog=null;return E};
_.L(EN,_.r);_.l=EN.prototype;
_.l.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]]"}}}}}};
_.l.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.l.dataChange=function(){this.replyDialog&&_.n(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var E,B,I;this.isLiked=this.systemIcons&&!!((E=this.data)==null?0:(B=E.likeButton)==null?0:(I=B.toggleButtonRenderer)==null?0:I.isToggled)};
_.l.computeShowVoteCountBeginning=function(E,B){return E===void 0||B===void 0?!0:E.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!B&&this.ytRendererBehavior.getSimpleString(B)!=="0"};
_.l.computeShowVoteCountEnd=function(E,B){return E===void 0||B===void 0?!0:E.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!B&&this.ytRendererBehavior.getSimpleString(B)!=="0"};
_.l.computeShowCommentCount=function(E,B){return E===void 0||B===void 0?!0:E.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!B&&this.ytRendererBehavior.getSimpleString(B)!=="0"};
_.l.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.l.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.l.showReplyDialog=function(E){E&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.n(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=E,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.l.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.l.onRequestSent=function(E){if(_.d("web_button_rework")){E=_.p(E.detail);for(var B=E.next();!B.done;B=E.next())(B=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",B.value))&&this.showReplyDialog(B)}};
_.l.onYtNavigate=function(E){var B,I;(E=(B=_.h(E.detail.endpoint,_.m$R))==null?void 0:(I=B.dialog)==null?void 0:I.commentReplyDialogRenderer)&&this.showReplyDialog(E)};
_.l.onYtServiceRequestSent=function(E,B){E.stopPropagation();if(B.actions)for(E=0;E<B.actions.length;E++){var I=_.h(B.actions[E],O7X);I&&this.handleUpdateCommentVoteAction(I)}};
_.l.handleUpdateCommentVoteAction=function(E){this.voteCount=E.voteCount||_.jj("0");E.voteStatus==="LIKE"?this.JSC$13569_ytdDislikeToggleButtonRenderer.toggle(!1):E.voteStatus==="DISLIKE"?this.JSC$13569_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13569_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13569_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.l.computeReplyButtonHidden=function(E){return E};
_.l.computeReplyButtonBeginning=function(E){return(E==null?0:E.replyButton)&&E.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?E.replyButton:void 0};
_.l.computeReplyButtonEnd=function(E){return(E==null?0:E.replyButton)&&E.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?E.replyButton:void 0};
_.l.computeActionButtonStyle=function(E){return(E==null?0:E.style)?E.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.l.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.l.onYtToggleButton=function(E){var B,I;this.isLiked=this.systemIcons&&!!((B=E.detail)==null?0:(I=B.actions)==null?0:I.like)};
EN.prototype.onYtToggleButton=EN.prototype.onYtToggleButton;EN.prototype.onButtonTooltipPositionChanged=EN.prototype.onButtonTooltipPositionChanged;EN.prototype.onYtServiceRequestSent=EN.prototype.onYtServiceRequestSent;EN.prototype.onYtNavigate=EN.prototype.onYtNavigate;EN.prototype.onRequestSent=EN.prototype.onRequestSent;EN.prototype.onYtCommentboxDismiss=EN.prototype.onYtCommentboxDismiss;EN.prototype.dataChange=EN.prototype.dataChange;
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],EN.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],EN.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],EN.prototype,"voteCount",void 0);_.k([_.X(),_.t("design:type",Object)],EN.prototype,"commentCount",void 0);_.k([_.X(),_.t("design:type",Object)],EN.prototype,"replyThumbnail",void 0);
_.k([_.X(),_.t("design:type",Object)],EN.prototype,"hasCreatorReply",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],EN.prototype,"enableCreationBox",void 0);_.k([_.X({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.t("design:type",String)],EN.prototype,"actionButtonsStyle",void 0);_.k([_.X({computed:"computeReplyButtonBeginning(data)"}),_.t("design:type",Object)],EN.prototype,"replyButtonBeginning",void 0);
_.k([_.X({computed:"computeReplyButtonEnd(data)"}),_.t("design:type",Object)],EN.prototype,"replyButtonEnd",void 0);_.k([_.X(),_.t("design:type",Object)],EN.prototype,"buttonOverrides",void 0);_.k([_.X(),_.t("design:type",Object)],EN.prototype,"replyButtonOverrides",void 0);_.k([_.X(),_.t("design:type",Object)],EN.prototype,"forceIconButton",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],EN.prototype,"useCommentIcon",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],EN.prototype,"modern",void 0);_.k([_.X(),_.t("design:type",Object)],EN.prototype,"buttonTooltipPosition",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],EN.prototype,"systemIcons",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],EN.prototype,"isLiked",void 0);_.k([_.$7("ytd-button-renderer"),_.t("design:type",Object)],EN.prototype,"ytdReplyButtonRenderer",void 0);
_.k([_.$7("#like-button"),_.t("design:type",Object)],EN.prototype,"JSC$13569_ytdLikeToggleButtonRenderer",void 0);_.k([_.$7("#dislike-button"),_.t("design:type",Object)],EN.prototype,"JSC$13569_ytdDislikeToggleButtonRenderer",void 0);_.k([_.$7("#reply-dialog"),_.t("design:type",HTMLElement)],EN.prototype,"replyDialogElement",void 0);_.k([_.$7("#reply-button"),_.t("design:type",HTMLElement)],EN.prototype,"replyButtonElement",void 0);
_.k([_.$7("#reply-button-end"),_.t("design:type",HTMLElement)],EN.prototype,"replyButtonEndElement",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],EN.prototype,"dataChange",null);_.k([_.RN("yt-commentbox-dismiss"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],EN.prototype,"onYtCommentboxDismiss",null);
_.k([_.RN("yt-service-request-sent-button-renderer"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],EN.prototype,"onRequestSent",null);_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],EN.prototype,"onYtNavigate",null);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],EN.prototype,"onYtServiceRequestSent",null);_.k([_.EM("buttonTooltipPosition"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],EN.prototype,"onButtonTooltipPositionChanged",null);
_.k([_.RN("yt-toggle-button"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],EN.prototype,"onYtToggleButton",null);EN=_.k([_.b({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],EN);
_.A(EN,"ytd-comment-action-buttons-renderer",function(){if(n16!==void 0)return n16;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return n16=E},{mode:1});var HQZ;var B5=function(){return _.r.apply(this,arguments)||this};
_.L(B5,_.r);B5.prototype.focus=function(){_.n(this.hostElement).querySelector("#commentbox").focus()};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],B5.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],B5.prototype,"zeroStepChannelCreationRenderer",void 0);B5=_.k([_.b({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],B5);
_.A(B5,"ytd-comment-dialog-renderer",function(){if(HQZ!==void 0)return HQZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return HQZ=E},{mode:1});var NLV;var $s=function(){var E=_.r.apply(this,arguments)||this;E.buttonOverrides={size:"S",iconPosition:"icon-only"};E.replyButtonOverrides={size:"S",type:"text"};return E};
_.L($s,_.r);_.l=$s.prototype;_.l.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.l.detached=function(){this.replyBox&&this.replyBox.remove()};
_.l.showReplyDialog=function(E){if(E){var B=this.replyBox;B||(B=document.createElement("ytd-comment-reply-dialog-renderer"),B.id="replybox",_.n(this.replyDialogDiv).appendChild(B));B.data=E;this.replyDialogDiv.hidden=!1;B.openDialog()}};
_.l.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.l.onYtServiceRequestSent=function(E,B){E.stopPropagation();if(B.actions)for(var I=0;I<B.actions.length;I++){var T=_.h(B.actions[I],O7X);T?this.handleUpdateCommentVoteAction(T):E.target===this.heartButton&&this.toggleHeartState()}};
_.l.handleUpdateCommentVoteAction=function(E){var B;(B=this.toolbarState)!=null&&B.key&&this.ytdReduxBehavior.dispatch(_.x4("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:E.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":E.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.l.toggleHeartState=function(){var E;(E=this.toolbarState)!=null&&E.key&&this.ytdReduxBehavior.dispatch(_.x4("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Up.Object.defineProperties($s.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return(((E=this.toolbarState)==null?void 0:E.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(B=this.toolbarData)==null?void 0:B.likeCountLiked:(I=this.toolbarData)==null?void 0:I.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.toolbarSurface)==null?void 0:E.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.toolbarSurface)==null?void 0:E.prepareAccountCommand)!==void 0&&!_.d("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var E,B=_.h((E=this.toolbarSurface)==null?void 0:E.prepareAccountCommand,_.dX),I,T,e,c,Y,v,y,Z,P;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((T=this.toolbarState)==null?void 0:T.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:B!=null?B:_.h((e=this.toolbarSurface)==null?void 0:e.likeCommand,_.dX),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:B!=null?B:_.h((c=this.toolbarSurface)==null?void 0:c.unlikeCommand,_.dX),defaultCommand:this.isVisiblyDisabled?_.h((Y=this.toolbarSurface)==null?void 0:Y.commentDisabledActionCommand,_.dX):void 0,defaultTooltip:(v=this.toolbarData)==null?void 0:v.likeInactiveTooltip,toggledTooltip:(y=this.toolbarData)==null?void 0:y.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(Z=this.toolbarData)==null?void 0:Z.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(P=this.toolbarSharedData)==null?void 0:P.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var E,B=_.h((E=this.toolbarSurface)==null?void 0:E.prepareAccountCommand,_.dX),I,T,e,c,Y,v,y,Z,P,z;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((T=this.toolbarState)==null?void 0:T.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:B!=null?B:_.h((e=this.toolbarSurface)==null?void 0:e.dislikeCommand,_.dX),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:B!=null?B:_.h((c=this.toolbarSurface)==null?void 0:c.undislikeCommand,_.dX),defaultCommand:this.isVisiblyDisabled?_.h((Y=this.toolbarSurface)==null?void 0:Y.commentDisabledActionCommand,_.dX):void 0,defaultTooltip:(v=this.toolbarData)==null?void 0:v.dislikeInactiveTooltip,toggledTooltip:(y=this.toolbarData)==null?void 0:
y.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(Z=this.toolbarSharedData)==null?void 0:Z.dislikeReplyButtonA11y:(P=this.toolbarSharedData)==null?void 0:P.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(z=this.toolbarSharedData)==null?void 0:z.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var E,B,I;if(((E=this.toolbarState)==null?void 0:E.heartState)!==void 0&&((B=this.toolbarState)==null?void 0:B.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((I=this.toolbarState)==null?void 0:I.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var T,e,c,Y,v,y,Z,P,z,m,u,x,M,N;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(T=this.toolbarData)==null?void 0:T.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((e=this.toolbarState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((c=this.toolbarState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((Y=this.toolbarState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((v=this.toolbarState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.h((y=this.toolbarSurface)==null?void 0:y.heartCommand,
_.dX),unheartEndpoint:this.isVisiblyDisabled?void 0:_.h((Z=this.toolbarSurface)==null?void 0:Z.unheartCommand,_.dX),disabledEndpoint:this.isVisiblyDisabled?_.h((P=this.toolbarSurface)==null?void 0:P.commentDisabledActionCommand,_.dX):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(z=this.toolbarData)==null?void 0:z.heartActiveTooltip,unheartedTooltip:(m=this.toolbarData)==null?void 0:m.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((u=
this.toolbarState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(x=this.toolbarSharedData)==null?void 0:x.unheartButtonA11y:(M=this.toolbarSharedData)==null?void 0:M.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(N=this.toolbarSharedData)==null?void 0:N.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.toolbarSurface)==null||!E.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(E=this.commentStrings)==null?void 0:E.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.h((B=this.toolbarSurface)==null?void 0:B.replyCommand,_.dX),command:this.isVisiblyDisabled?_.h((I=this.toolbarSurface)==null?void 0:I.commentDisabledActionCommand,_.dX):void 0}}}});
$s.prototype.onYtServiceRequestSent=$s.prototype.onYtServiceRequestSent;$s.prototype.hideReplyDialogDiv=$s.prototype.hideReplyDialogDiv;_.k([_.X(),_.t("design:type",Object)],$s.prototype,"commentStrings",void 0);_.k([_.X(),_.t("design:type",Boolean)],$s.prototype,"isReply",void 0);_.k([_.X(),_.t("design:type",Object)],$s.prototype,"toolbarData",void 0);_.k([_.X(),_.t("design:type",Object)],$s.prototype,"toolbarSharedData",void 0);
_.k([_.X(),_.t("design:type",String)],$s.prototype,"toolbarStateKey",void 0);_.k([_.X(),_.t("design:type",String)],$s.prototype,"toolbarSurfaceKey",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],$s.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],$s.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],$s.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.$7("#reply-dialog"),_.t("design:type",HTMLElement)],$s.prototype,"replyDialogDiv",void 0);_.k([_.$7("#replybox"),_.t("design:type",Object)],$s.prototype,"replyBox",void 0);_.k([_.$7("ytd-creator-heart-renderer"),_.t("design:type",Object)],$s.prototype,"heartButton",void 0);_.k([_.X({selector:function(E,B){return _.cP(E.entities,"engagementToolbarStateEntityPayload",B)},
selectorArgs:["toolbarStateKey"]}),_.t("design:type",Object)],$s.prototype,"toolbarState",void 0);_.k([_.X({selector:X_Q,selectorArgs:["toolbarSurfaceKey"]}),_.t("design:type",Object)],$s.prototype,"toolbarSurface",void 0);_.k([_.X(),_.t("design:type",Object)],$s.prototype,"buttonOverrides",void 0);_.k([_.RN("yt-commentbox-dismiss"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$s.prototype,"hideReplyDialogDiv",null);
_.k([_.S("toolbarData","toolbarState"),_.t("design:type",String),_.t("design:paramtypes",[])],$s.prototype,"likeCount",null);_.k([_.S("likeCount"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],$s.prototype,"showLikeCount",null);_.k([_.S("toolbarSurface"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],$s.prototype,"isVisiblyDisabled",null);_.k([_.S("toolbarSurface"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],$s.prototype,"hasPrepareAccountCommand",null);
_.k([_.S("toolbarData","toolbarState","toolbarSurface"),_.t("design:type",Object),_.t("design:paramtypes",[])],$s.prototype,"likeToggleButtonRenderer",null);_.k([_.S("isReply","toolbarData","toolbarState","toolbarSurface"),_.t("design:type",Object),_.t("design:paramtypes",[])],$s.prototype,"dislikeToggleButtonRenderer",null);_.k([_.S("toolbarData","toolbarState","toolbarSurface"),_.t("design:type",Object),_.t("design:paramtypes",[])],$s.prototype,"creatorHeartSupportedRenderer",null);
_.k([_.S("toolbarSurface"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],$s.prototype,"hasReplyCommand",null);_.k([_.S("toolbarSurface","commentStrings","isVisiblyDisabled"),_.t("design:type",Object),_.t("design:paramtypes",[])],$s.prototype,"replyButtonRenderer",null);_.k([_.X(),_.t("design:type",Object)],$s.prototype,"replyButtonOverrides",void 0);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],$s.prototype,"onYtServiceRequestSent",null);$s=_.k([_.b({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],$s);
_.A($s,"ytd-comment-engagement-bar",function(){if(NLV!==void 0)return NLV;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return NLV=E},{mode:1});var g1X;var If=function(){return _.r.apply(this,arguments)||this};
_.L(If,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],If.prototype,"data",void 0);If=_.k([_.b({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],If);
_.A(If,"ytd-comment-inline-thumbnail-renderer",function(){if(g1X!==void 0)return g1X;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return g1X=E},{mode:1});var SBl;var T9=function(){return _.r.apply(this,arguments)||this};
_.L(T9,_.r);_.k([_.X(),_.t("design:type",Object)],T9.prototype,"data",void 0);T9=_.k([_.b({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],T9);
_.A(T9,"ytd-comment-pause-composer-renderer",function(){if(SBl!==void 0)return SBl;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return SBl=E},{mode:1});var Jjl;var WZZ;var ek=function(){var E=_.r.apply(this,arguments)||this;E.isOpen=!1;return E};
_.L(ek,_.r);_.l=ek.prototype;_.l.dataChanged=function(){this.isOpen=!1};
_.l.onTap=function(){this.data&&(this.data.navigationEndpoint?_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.l.focus=function(){this.JSC$13595_commentbox.focus()};
_.l.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.l.openDialog=function(){this.isOpen=!0;this.JSC$13595_commentbox.focus();this.JSC$13595_commentbox.maybeHeightChanged()};
ek.prototype.onYtCommentboxDismiss=ek.prototype.onYtCommentboxDismiss;ek.prototype.dataChanged=ek.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ek.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],ek.prototype,"isOpen",void 0);_.k([_.$7("#commentbox"),_.t("design:type",Object)],ek.prototype,"JSC$13595_commentbox",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ek.prototype,"dataChanged",null);_.k([_.RN("yt-commentbox-dismiss"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],ek.prototype,"onYtCommentboxDismiss",null);ek=_.k([_.b({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],ek);
_.A(ek,"ytd-comment-reply-dialog-renderer",function(){if(WZZ!==void 0)return WZZ;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return WZZ=E},{mode:1});var XaR;var lP=function(){return _.r.apply(this,arguments)||this};
_.L(lP,_.r);_.Up.Object.defineProperties(lP.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var E,B,I=(E=this.data)==null?void 0:(B=E.icon)==null?void 0:B.iconType;return I?"yt-icons:"+I.toLowerCase():null}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],lP.prototype,"data",void 0);_.k([_.X(),_.S("data.icon"),_.t("design:type",Object),_.t("design:paramtypes",[])],lP.prototype,"icon",null);lP=_.k([_.b({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],lP);
_.A(lP,"ytd-pinned-comment-badge-renderer",function(){if(XaR!==void 0)return XaR;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return XaR=E},{mode:1});var rjh;var bQt={},o1h={input:!0,meta:!0,br:!0,link:!0,img:!0},c5=null;bQt.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(){c5==null&&(c5=document.createElement("tp-yt-paper-tooltip"),c5.offset=8,c5.fitToVisibleBounds=!0)},
onMouseOver_:function(E){if(E=_.Ql(E.target,function(e){return e==this||e.getAttribute&&e.getAttribute("shared-tooltip-text")}.bind(this),!0)){var B=E.getAttribute("shared-tooltip-text");
if(B){var I=this,T=null;E!=this&&(E.tagName.toLowerCase()in o1h?I=E.parentElement:I=E,E.id&&(T=E.id));this.polymerController.createTooltipIfRequired_();if(c5.parentElement!=I||c5.for!=T)(0,_.FN)(c5).textContent=B,_.n(I).appendChild(c5),c5.for=T,c5.animationDelay=this.polymerController.sharedTooltipAnimationDelay,c5.position=this.polymerController.sharedTooltipPosition}}}};var iP=function(){return _.r.apply(this,arguments)||this};
_.L(iP,_.r);iP.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]]"}}}}}};
iP.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
iP.prototype.colorChanged=function(){var E,B,I,T=(E=this.data)==null?void 0:(B=E.color)==null?void 0:(I=B.basicColorPaletteData)==null?void 0:I.foregroundBodyColor;T&&(this.rgbBadgeColor=_.dE(T));_.n(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
iP.prototype.tooltipChanged=function(){var E;((E=this.data)==null?0:E.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
iP.prototype.tooltipChanged=iP.prototype.tooltipChanged;iP.prototype.colorChanged=iP.prototype.colorChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(bQt.YtSharedTooltipBehavior),_.t("design:type",Object)],iP.prototype,"ytSharedTooltipBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],iP.prototype,"data",void 0);
_.k([_.X({value:"#4285F4"}),_.t("design:type",String)],iP.prototype,"rgbBadgeColor",void 0);_.k([_.EM("data.color"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],iP.prototype,"colorChanged",null);_.k([_.EM("data.tooltip"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],iP.prototype,"tooltipChanged",null);iP=_.k([_.b({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],iP);
_.A(iP,"ytd-sponsor-comment-badge-renderer",function(){if(rjh!==void 0)return rjh;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return rjh=E},{mode:1});var AjZ;var js6;var pE=function(){return _.r.apply(this,arguments)||this};
_.L(pE,_.r);pE.prototype.computeState=function(E){switch(E==null?void 0:E.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"}};
pE.prototype.updateStateIdentifier=function(E){if(this.viewModel.triStateKey){var B=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.x4("triStateButtonStateEntityPayload",B,{key:B,stateIdentifier:E}))}};
pE.prototype.onClick=function(){var E=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(){E.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){E.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Up.Object.defineProperties(pE.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 E;return((E=this.data)==null?void 0:E.buttonText)||""}}});
_.k([_.X(),_.t("design:type",Object)],pE.prototype,"viewModel",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],pE.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],pE.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.k([_.X({selector:rZF,selectorArgs:["viewModel.triStateKey"]}),_.t("design:type",Object)],pE.prototype,"triStateButtonStateEntity",void 0);
_.k([_.X({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.t("design:type",String)],pE.prototype,"state",void 0);_.k([_.S("viewModel","state"),_.t("design:type",Object),_.t("design:paramtypes",[])],pE.prototype,"data",null);_.k([_.S("data"),_.t("design:type",String),_.t("design:paramtypes",[])],pE.prototype,"buttonText",null);pE=_.k([_.b({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],pE);
_.A(pE,"ytd-tri-state-button-view-model",function(){if(js6!==void 0)return js6;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return js6=E},{mode:1});var UFu;var kZh;var Ys=function(){var E=_.r.apply(this,arguments)||this;E.defaultIconToFilled=!_.d("kevlar_fill_comment_chip_icon_killswitch");return E};
_.L(Ys,_.r);Ys.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Ys.prototype.dataChanged=function(){if(this.data){var E,B;((E=this.data.chipColorPalette)==null?0:E.backgroundColor)&&((B=this.data.chipColorPalette)==null?0:B.foregroundTitleColor)&&_.Dk(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.hR(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.hR(this.data.chipColorPalette.foregroundTitleColor)});var I;((I=this.data)==null?0:I.command)?(_.Dk(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Dk(this.hostElement,{"--yt-pdg-comment-chip-cursor":"initial"}),this.hostElement.removeAttribute("role"),this.hostElement.removeAttribute("tabindex"));this.basePriceText=this.data.chipText;this.chipIcon=this.data.chipIcon}};
Ys.prototype.onTap=function(){var E;if(this.data&&(E=this.data)!=null&&E.command){var B;this.ytComponentBehavior.resolveCommand((B=this.data)==null?void 0:B.command)}};
Ys.prototype.getIconSize=function(){return _.d("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Ys.prototype.onTap=Ys.prototype.onTap;Ys.prototype.dataChanged=Ys.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Ys.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.mG),_.t("design:type",Object)],Ys.prototype,"ironA11yKeysBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ys.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],Ys.prototype,"basePriceText",void 0);_.k([_.X(),_.t("design:type",Object)],Ys.prototype,"chipIcon",void 0);_.k([_.X(),_.t("design:type",Object)],Ys.prototype,"defaultIconToFilled",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ys.prototype,"dataChanged",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ys.prototype,"onTap",null);
Ys=_.k([_.QE({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Ys);
_.A(Ys,"yt-pdg-comment-chip-renderer",function(){if(kZh===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;UFu===void 0&&(UFu=document.createElement("template"));var T=UFu;I.call(B,T.content.cloneNode(!0),E.content.firstChild);kZh=E}E=kZh;return E},{mode:2});var af=function(){var E=_.r.apply(this,arguments)||this;E.useSmallAvatars=_.d("small_avatars_for_comments");E.webWatchCompactComments=_.d("web_watch_compact_comments");E.editDialog=null;return E};
_.L(af,_.r);_.l=af.prototype;_.l.onShow=function(){_.Mf("cmv",void 0,"wn_comments")};
_.l.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"}}}};
_.l.detached=function(){this.editDialog=null;this.expander.reset()};
_.l.updateBackgroundColor=function(){if(this.backgroundColor){var E={"--ytd-comment-paid-background-color":_.hR(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Dk(this.hostElement,E)}else _.Dk(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.l.resetExpander=function(){var E;(E=this.expander)==null||E.reset()};
_.l.openEditDialog=function(E){E.dialog&&(this.editDialog=E.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.l.onYtNavigate=function(E){var B=E.detail.endpoint;if(B=_.h(B,_.Qnu)||_.h(B,_.d$R))E.stopPropagation(),this.openEditDialog(B)};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null;_.Dk(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.l.onAuthorThumbnailClicked=function(){var E=this;_.d("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(B,I){E.onAuthorThumbnailEndpointSuccess(I)},
onServerError:function(B,I){_.OG(new _.P7("Failed to resolve the command",I))}}})};
_.l.onAuthorThumbnailEndpointSuccess=function(E){if((E=E==null?void 0:E.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(E,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();E=E==null?void 0:E.clickTrackingParams;var B=_.Oi();E&&B&&_.lu().graftServerVe(E,B)}};
_.l.logScreenVe=function(){_.I5(_.lu(),66557)};
_.l.onYtCommentboxResize=function(E){var B;(E==null?0:(B=E.detail)==null?0:B.height)&&_.Dk(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":E.detail.height+"px"})};
_.Up.Object.defineProperties(af.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 E,B=(E=this.commentEntity)==null?void 0:E.author;return B&&(B.isCreator||B.isVerified||B.isArtist)?{renderer:{authorEndpoint:B.channelPageEndpoint?_.h(B.channelPageEndpoint,_.dX):_.h(B.channelCommand,_.dX),authorText:{runs:[{text:B.displayName}]},color:B.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:B.isArtist?{iconType:"AUDIO_BADGE"}:
B.isVerified?{iconType:B.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:B.isArtist||B.isVerified?B.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var E,B=(E=this.commentEntity)==null?void 0:E.author;return B!=null&&B.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:B.sponsorBadgeUrl}]},tooltip:B.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var E;return _.h((E=this.commentSurfaceEntity)==null?void 0:E.pdgCommentChip,_.FAZ)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var E;return this.voiceReplyContainerViewModel&&((E=this.voiceReplyContainerViewModel)==null?void 0:E.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var E;return _.h((E=this.commentSurfaceEntity)==null?void 0:E.voiceReplyContainerViewModel,Jwt)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var E;return this.voiceReplyContainerViewModel&&(E=this.voiceReplyContainerViewModel)!=null&&E.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var E,B;return(B=(E=this.commentSurfaceEntity)==null?void 0:E.commentBackgroundColor)!=null?B:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.d("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var E,B;return(((E=this.commentEntity)==null?void 0:(B=E.properties)==null?void 0:B.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var E,B;if(_.d("enable_profile_cards_on_comments")&&((E=this.commentEntity)==null?0:(B=E.author)==null?0:B.profileCardEndpoint)&&this.viewModel.allowProfileCard){var I,T;return _.h((I=this.commentEntity)==null?void 0:(T=I.author)==null?void 0:T.profileCardEndpoint,_.dX)}var e,c;return _.h((e=this.commentEntity)==null?void 0:(c=e.avatar)==null?void 0:c.endpoint,_.dX)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var E,B;if(_.d("enable_profile_cards_on_comments")&&((E=this.commentEntity)==null?0:(B=E.author)==null?0:B.channelPageEndpoint)){var I,T;return _.h((I=this.commentEntity)==null?void 0:(T=I.author)==null?void 0:T.channelPageEndpoint,_.dX)}var e,c;return _.h((e=this.commentEntity)==null?void 0:(c=e.avatar)==null?void 0:c.endpoint,_.dX)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T,e=(E=this.commentEntity)==null?void 0:(B=E.avatar)==null?void 0:(I=B.image)==null?void 0:(T=I.sources)==null?void 0:T[0];return e?{thumbnails:[{url:e.url,width:e.width,height:e.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.commentEntity)==null?0:(B=E.author)==null?0:B.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.commentEntity)==null?void 0:(B=E.author)==null?void 0:B.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.commentEntity)==null?void 0:(B=E.properties)==null?void 0:B.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var E;return _.h((E=this.commentSurfaceEntity)==null?void 0:E.publishedTimeCommand,_.dX)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var E,B;if(((E=this.commentEntity)==null?0:E.translatedContent)&&((B=this.translateButtonState)==null?void 0:B.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var I;if((I=this.voiceReplyContainerViewModel)==null?0:I.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var T,e;return((T=this.commentEntity)==null?void 0:(e=T.properties)==null?void 0:e.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.commentSharedEntity)==null?void 0:(B=E.strings)==null?void 0:B.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.commentSharedEntity)==null?void 0:(B=E.strings)==null?void 0:B.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.commentEntity)==null||!E.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var E,B,I=(B=_.h((E=this.viewModel)==null?void 0:E.translateButton,Ss6))!=null?B:{},T,e,c,Y,v,y,Z,P,z,m,u;return Object.assign({},I,{untoggledStateData:Object.assign({},I.untoggledStateData,{buttonText:(T=this.commentEntity)==null?void 0:(e=T.translateData)==null?void 0:e.text}),togglingStateData:Object.assign({},I.togglingStateData,{buttonText:(c=this.commentSharedEntity)==null?
void 0:(Y=c.strings)==null?void 0:Y.translatingText}),toggledStateData:Object.assign({},I.toggledStateData,{buttonText:(v=this.commentSharedEntity)==null?void 0:(y=v.strings)==null?void 0:y.seeOriginalText}),transitionCommand:((Z=this.commentEntity)==null?0:Z.translatedContent)?void 0:_.h((P=this.commentEntity)==null?void 0:(z=P.translateData)==null?void 0:z.translateComment,_.dX),triStateKey:(m=this.commentEntity)==null?void 0:(u=m.properties)==null?void 0:u.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return((B=_.h(_.h((E=this.toolbarSurface)==null?void 0:E.menuCommand,_.dX),hTR))==null?void 0:(I=B.menu)==null?void 0:I.menuRenderer)||null}}});
af.prototype.onYtCommentboxResize=af.prototype.onYtCommentboxResize;af.prototype.onYtCommentboxDismiss=af.prototype.onYtCommentboxDismiss;af.prototype.onYtNavigate=af.prototype.onYtNavigate;af.prototype.resetExpander=af.prototype.resetExpander;af.prototype.updateBackgroundColor=af.prototype.updateBackgroundColor;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],af.prototype,"ytdReduxBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],af.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],af.prototype,"ytRendererstamperBehavior",void 0);_.k([_.$7("#author-thumbnail > button"),_.t("design:type",HTMLElement)],af.prototype,"authorThumbnailAnchor",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("viewModel"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],af.prototype,"linked",null);
_.k([_.S("viewModel","linked"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"linkedCommentBadge",null);_.k([_.X({reflectToAttribute:!0}),_.S("viewModel"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],af.prototype,"pinned",null);_.k([_.S("viewModel","pinned"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"pinnedCommentBadge",null);
_.k([_.S("commentEntity","commentSharedEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"authorCommentBadge",null);_.k([_.X({reflectToAttribute:!0}),_.S("authorCommentBadge"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"hasAuthorBadge",null);_.k([_.S("commentEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"sponsorCommentBadge",null);
_.k([_.X({reflectToAttribute:!0}),_.S("sponsorCommentBadge"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"hasSponsorBadge",null);_.k([_.S("commentSurfaceEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"pdgCommentChipRenderer",null);_.k([_.X({reflectToAttribute:!0}),_.S("voiceReplyContainerViewModel"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"hasVoiceReply",null);
_.k([_.S("commentSurfaceEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"voiceReplyContainerViewModel",null);_.k([_.S("voiceReplyContainerViewModel"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"voiceReplyUnavailableText",null);_.k([_.X(),_.t("design:type",Object)],af.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"viewModel",null);
_.k([_.X({selector:function(E,B){return _.cP(E.entities,"commentSharedEntityPayload",B)},
selectorArgs:["viewModel.sharedKey"]}),_.t("design:type",Object)],af.prototype,"commentSharedEntity",void 0);_.k([_.X({selector:function(E,B){return _.cP(E.entities,"commentEntityPayload",B)},
selectorArgs:["viewModel.commentKey"]}),_.t("design:type",Object)],af.prototype,"commentEntity",void 0);_.k([_.X({selector:function(E,B){return _.cP(E.entities,"commentSurfaceEntityPayload",B)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.t("design:type",Object)],af.prototype,"commentSurfaceEntity",void 0);_.k([_.X({selector:X_Q,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.t("design:type",Object)],af.prototype,"toolbarSurface",void 0);_.k([_.X({selector:rZF,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.t("design:type",Object)],af.prototype,"translateButtonState",void 0);
_.k([_.S("commentSurfaceEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"backgroundColor",null);_.k([_.X({reflectToAttribute:!0}),_.S("viewModel"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],af.prototype,"optimalReadingWidthComments",null);_.k([_.$7("ytd-expander"),_.t("design:type",Object)],af.prototype,"expander",void 0);
_.k([_.EM("backgroundColor"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],af.prototype,"updateBackgroundColor",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],af.prototype,"useSmallAvatars",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],af.prototype,"webWatchCompactComments",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("commentEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"isReply",null);
_.k([_.S("commentEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"authorThumbnailEndpoint",null);_.k([_.S("commentEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"authorNameEndpoint",null);_.k([_.S("commentEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"authorThumbnail",null);_.k([_.S("commentEntity"),_.t("design:type",String),_.t("design:paramtypes",[])],af.prototype,"authorTextClass",null);
_.k([_.S("commentEntity"),_.t("design:type",String),_.t("design:paramtypes",[])],af.prototype,"authorChannelName",null);_.k([_.S("commentEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"publishedTime",null);_.k([_.S("commentSurfaceEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"publishedTimeCommand",null);
_.k([_.S("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"contentText",null);_.k([_.EM("contentText"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],af.prototype,"resetExpander",null);_.k([_.S("commentEntity"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],af.prototype,"shouldShowReadMoreInitially",null);
_.k([_.S("commentSharedEntity"),_.t("design:type",String),_.t("design:paramtypes",[])],af.prototype,"expandText",null);_.k([_.S("commentSharedEntity"),_.t("design:type",String),_.t("design:paramtypes",[])],af.prototype,"collapseText",null);_.k([_.S("commentEntity"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],af.prototype,"shouldShowTranslateButton",null);
_.k([_.S("commentEntity","commentSharedEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"translateButton",null);_.k([_.S("toolbarSurface"),_.t("design:type",Object),_.t("design:paramtypes",[])],af.prototype,"overflowMenuRenderer",null);_.k([_.X(),_.t("design:type",Object)],af.prototype,"editDialog",void 0);_.k([_.$7("ytd-comment-dialog-renderer"),_.t("design:type",Object)],af.prototype,"editCommentDialogContainer",void 0);
_.k([_.$7("ytd-comment-reply-dialog-renderer"),_.t("design:type",Object)],af.prototype,"editReplyDialogContainer",void 0);_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],af.prototype,"onYtNavigate",null);_.k([_.RN("yt-commentbox-dismiss"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],af.prototype,"onYtCommentboxDismiss",null);
_.k([_.RN("yt-commentbox-resize"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],af.prototype,"onYtCommentboxResize",null);af=_.k([_.b({disableElementRegistration:!0,is:"ytd-comment-view-model"})],af);
_.A(af,"ytd-comment-view-model",function(){if(AjZ!==void 0)return AjZ;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return AjZ=E},{mode:_.qi("kevlar_poly_si_batch_j025")?1:2});var v5=function(){var E=_.r.apply(this,arguments)||this;E.modern=_.d("web_modern_buttons");E.isWatchGrid=_.d("kevlar_watch_grid");E.buttonOverrides={style:"call-to-action"};E.JSC$13641_spinnerEl=null;return E};
_.L(v5,_.r);_.l=v5.prototype;_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.l.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]]"}}}}}};
_.l.attached=function(){this.isShowRepliesVisible=!0};
_.l.dataChanged=function(){var E=this.expanderContents;E&&(E.hidden=!0);this.isLoading=!1};
_.l.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.l.isLoadingChanged=function(){this.isLoading&&!this.JSC$13641_spinnerEl&&(this.JSC$13641_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.n(this.expanderContents).appendChild(this.JSC$13641_spinnerEl));this.JSC$13641_spinnerEl&&(this.JSC$13641_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var E;(E=this.contents)==null||E.classList.remove("reloading")}};
_.l.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var E=_.h(this.data.viewReplies,_.NT);E&&this.ytRendererBehavior.logExplicitClick(E)};
_.l.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var E=_.h(this.data.hideReplies,_.NT);E&&this.ytRendererBehavior.logExplicitClick(E)};
_.l.isShowMoreChanged=function(){var E=_.n(this.hostElement).querySelector("#expander-contents");E&&(E.hidden=this.isShowRepliesVisible)};
_.l.computeAlign=function(){if(this.modern){var E;return!((E=this.data)==null?0:E.viewRepliesCreatorThumbnail)}};
_.Up.Object.defineProperties(v5.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var E,B=(E=this.data)==null?void 0:E.contents;return!!B&&B.length>0&&!!B[B.length-1].continuationItemRenderer}}});
v5.prototype.isShowMoreChanged=v5.prototype.isShowMoreChanged;v5.prototype.isLoadingChanged=v5.prototype.isLoadingChanged;v5.prototype.triggerFirstContinuation=v5.prototype.triggerFirstContinuation;v5.prototype.dataChanged=v5.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.xo),_.t("design:type",Object)],v5.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],v5.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],v5.prototype,"modern",void 0);_.k([_.X(),_.t("design:type",Boolean)],v5.prototype,"isLoading",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],v5.prototype,"isShowRepliesVisible",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],v5.prototype,"useNewFormatting",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],v5.prototype,"isWatchGrid",void 0);_.k([_.X(),_.t("design:type",Object)],v5.prototype,"buttonOverrides",void 0);_.k([_.$7("#expander-contents"),_.t("design:type",HTMLElement)],v5.prototype,"expanderContents",void 0);_.k([_.$7("ytd-continuation-item-renderer"),_.t("design:type",Object)],v5.prototype,"continuationItemRenderer",void 0);_.k([_.$7("#contents"),_.t("design:type",HTMLElement)],v5.prototype,"contents",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],v5.prototype,"dataChanged",null);_.k([_.S("data.contents"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],v5.prototype,"hasContinuation",null);_.k([_.RN("yt-expander-more-tapped"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],v5.prototype,"triggerFirstContinuation",null);
_.k([_.EM("isLoading"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],v5.prototype,"isLoadingChanged",null);_.k([_.EM("isShowRepliesVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],v5.prototype,"isShowMoreChanged",null);v5=_.k([_.b({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],v5);
_.A(v5,"ytd-comment-replies-renderer",function(){if(Jjl!==void 0)return Jjl;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Jjl=E},{mode:1});var tb6;var y0=function(){var E=_.r.apply(this,arguments)||this;E.isOpen=!1;E.commentDialog=null;E.useSmallAvatars=_.d("small_avatars_for_comments");E.useSmallAvatarsEngagementPanelOnly=_.d("small_avatars_for_comments_ep");E.placeholderFocusListener=null;E.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return E};
_.L(y0,_.r);_.l=y0.prototype;_.l.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]]"}}}}}};
_.l.ready=function(){var E=this,B=_.n(this.hostElement).querySelector("#placeholder-area"),I=_.n(this.hostElement).querySelector("#simplebox-placeholder"),T=function(e){e.stopPropagation();e instanceof KeyboardEvent&&e.type==="keypress"&&e.keyCode!==13&&e.keyCode!==32||E.openDialog()};
this.placeholderFocusListener=T;I.addEventListener("focus",this.placeholderFocusListener);B.addEventListener("tap",T);B.addEventListener("keypress",T)};
_.l.maybeRemoveFocusEventListener=function(){var E;(E=this.data)!=null&&E.prepareAccountEndpoint&&!_.d("web_comments_simplebox_modal_focus_on_tap_ks")&&(E=_.n(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(E.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.l.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.l.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.d("web_comment_simplebox_resolve_polymer_command_ks")?_.BV.instance.resolveCommand(this.data.prepareAccountEndpoint):_.$g(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.n(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.l.onYtCommentboxDismiss=function(E){E.stopPropagation();this.isOpen=!1};
_.l.onCreateCommentAction=function(E){this.get("createCommentAction.contents",E)&&(this.isOpen=!1)};
_.l.computeCommentDialog=function(E){return{placeholderText:E.placeholderText,authorThumbnail:E.authorThumbnail,submitButton:E.submitButton,imageButton:E.imageButton,cancelButton:E.cancelButton,emojiButton:E.emojiButton,emojis:E.emojis,emojiPicker:E.emojiPicker,aadcGuidelinesStateEntityKey:E.aadcGuidelinesStateEntityKey,openAadcDialog:E.openAadcDialog,unicodeEmojisUrl:E.unicodeEmojisUrl}};
_.l.onHideIdentityChip=function(E){_.h(E,xy$)&&this.set("data.placeholderText",_.h(E,xy$).placeholderText)};
y0.prototype.onYtCommentboxDismiss=y0.prototype.onYtCommentboxDismiss;y0.prototype.dataChanged=y0.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],y0.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],y0.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],y0.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],y0.prototype,"isOpen",void 0);_.k([_.X(),_.t("design:type",Object)],y0.prototype,"commentDialog",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],y0.prototype,"engagementPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],y0.prototype,"useSmallAvatars",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],y0.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],y0.prototype,"enableCreationBox",void 0);_.k([_.X(),_.t("design:type",Boolean)],y0.prototype,"showCreateDialog",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],y0.prototype,"dataChanged",null);
_.k([_.RN("yt-commentbox-dismiss"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],y0.prototype,"onYtCommentboxDismiss",null);y0=_.k([_.b({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],y0);
_.A(y0,"ytd-comment-simplebox-renderer",function(){if(tb6!==void 0)return tb6;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return tb6=E},{mode:1});var fnh;_.QH("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var CE=function(){var E=_.r.apply(this,arguments)||this;E.addHoverEffect=_.d("swatcheroo_comments_hover_effect");return E};
_.L(CE,_.r);CE.prototype.onTap=function(E){if(this.addHoverEffect&&!this.engagementPanel&&!_.XZ(_.W8(E)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var B;((B=window.getSelection())==null?0:B.toString().length)||_.$g({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
CE.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.Up.Object.defineProperties(CE.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)!=null&&E.commentViewModel)return _.h(this.data.commentViewModel,gL6)}}});
CE.prototype.onTap=CE.prototype.onTap;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],CE.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],CE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],CE.prototype,"addHoverEffect",void 0);_.k([_.X(),_.t("design:type",Object)],CE.prototype,"data",void 0);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],CE.prototype,"commentViewModel",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],CE.prototype,"engagementPanel",void 0);_.k([_.RN("tap"),_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],CE.prototype,"onTap",null);CE=_.k([_.b({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],CE);
_.A(CE,"ytd-comment-thread-renderer",function(){if(fnh!==void 0)return fnh;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return fnh=E},{mode:_.qi("kevlar_poly_si_batch_j025")?1:2});var Vbu;var wy=function(){var E=_.r.apply(this,arguments)||this;E.modernTypography=_.d("web_modern_typography");E.compactHeader=_.d("web_watch_compact_comments_header");E.hidePanelButton=!1;E.isPostSchedulingEnabled=_.d("enable_post_scheduling");E.hasFinishedStamping=!1;E.JSC$13659_handleOpenPostCommentDialogActionAfterStamp=!1;E.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return E};
_.L(wy,_.r);_.l=wy.prototype;
_.l.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"}}}};
_.l.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.l.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13659_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.l.onYtServiceRequestSent=function(E,B){if(!_.d("kevlar_command_handler")&&B.actions)for(E=0;E<B.actions.length;E++){var I=B.actions[E];_.h(I,ELu)&&_.n(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.h(I,ELu))}};
_.l.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var E;if(this.getPrefilledBackstagePostDialog((E=this.data)==null?void 0:E.actions)){_.n(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var B=_.n(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;B&&_.AJ(this,function(){B.focus();B.openDialog&&B.openDialog()})}}else this.hasActionsChange=!0};
_.l.computeIsBackstage=function(E){return E};
_.l.onYtCommentboxDismiss=function(){_.n(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.l.removePrefilledDialog=function(E){if(E==null?0:E.actions){for(var B=E.actions.length-1;B>=0;B--){var I=void 0;((I=_.h(E.actions[B],zTh))==null?0:I.dialog)&&delete E.actions[B]}this.set("data",void 0);this.set("data",E)}};
_.l.getPrefilledBackstagePostDialog=function(E){if(E)for(var B=0;B<E.length;B++){var I=E[B],T=void 0;if((T=_.h(I,zTh))==null?0:T.dialog)return _.h(I,zTh).dialog}return null};
_.l.computeBackstagePostDialog=function(E){return E&&(this.getPrefilledBackstagePostDialog(E.actions)||E.createRenderer)};
_.l.dataChanged=function(){if(this.data){var E=this.data.customEmojis,B=this.data.unicodeEmojisUrl;_.Gm.clear();B&&_.rUD(_.Gm,B);E&&_.Gm.load(E)}};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){var E=_.n(this.hostElement).querySelector("ytd-comment-simplebox-renderer");E?E.openDialog():this.JSC$13659_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Up.Object.defineProperties(wy.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.d("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T,e,c,Y;return!this.hidePanelButton&&_.d("kevlar_watch_comments_panel_button")&&((Y=_.h((E=this.data)==null?void 0:(B=E.sortMenu)==null?void 0:(I=B.sortFilterSubMenuRenderer)==null?void 0:(T=I.subMenuItems)==null?void 0:(e=T[0])==null?void 0:(c=e.serviceEndpoint)==null?void 0:c.commandMetadata,_.D$))==null?void 0:Y.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.yu("MINIPLAYER_EXPAND_LABEL"),text:_.jj(_.yu("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
wy.prototype.dataChanged=wy.prototype.dataChanged;wy.prototype.onYtCommentboxDismiss=wy.prototype.onYtCommentboxDismiss;wy.prototype.observePrefilledBackstagePostDialog=wy.prototype.observePrefilledBackstagePostDialog;wy.prototype.onYtServiceRequestSent=wy.prototype.onYtServiceRequestSent;wy.prototype.onStampFinished=wy.prototype.onStampFinished;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],wy.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],wy.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],wy.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wy.prototype,"modernTypography",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wy.prototype,"compactHeader",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],wy.prototype,"engagementPanel",void 0);_.k([_.X(),_.t("design:type",Object)],wy.prototype,"hidePanelButton",void 0);_.k([_.X({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.t("design:type",Boolean)],wy.prototype,"isBackstage",void 0);_.k([_.X({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.t("design:type",Object)],wy.prototype,"backstagePostDialog",void 0);
_.k([_.X(),_.t("design:type",Object)],wy.prototype,"isPostSchedulingEnabled",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data","showCommentsPanelButton"),_.t("design:type",Object),_.t("design:paramtypes",[])],wy.prototype,"useSpaceBetween",null);_.k([_.X({reflectToAttribute:!0}),_.S("data","hidePanelButton"),_.t("design:type",Object),_.t("design:paramtypes",[])],wy.prototype,"showCommentsPanelButton",null);
_.k([_.S("data","showCommentsPanelButton"),_.t("design:type",Object),_.t("design:paramtypes",[])],wy.prototype,"commentsPanelButtonData",null);_.k([_.RN("yt-rendererstamper-finished"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wy.prototype,"onStampFinished",null);_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],wy.prototype,"onYtServiceRequestSent",null);
_.k([_.EM("data.actions"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wy.prototype,"observePrefilledBackstagePostDialog",null);_.k([_.RN("yt-commentbox-dismiss"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],wy.prototype,"onYtCommentboxDismiss",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wy.prototype,"dataChanged",null);
wy=_.k([_.b({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],wy);
_.A(wy,"ytd-comments-header-renderer",function(){if(Vbu!==void 0)return Vbu;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Vbu=E},{mode:1});var qBz;var Z5=function(){return _.r.apply(this,arguments)||this};
_.L(Z5,_.r);_.k([_.X(),_.t("design:type",Object)],Z5.prototype,"data",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);Z5=_.k([_.b({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Z5);
_.A(Z5,"ytd-destination-button-renderer",function(){if(qBz!==void 0)return qBz;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return qBz=E},{mode:1});var FZX;var P5=function(){var E=_.r.apply(this,arguments)||this;E.isRichGrid=!1;E.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};E.modernTypography=_.d("web_modern_typography");return E};
_.L(P5,_.r);_.l=P5.prototype;_.l.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.l.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.l.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.l.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var E;if((E=this.data)==null||!E.isExpanded){E=this.hostElement.clientWidth;var B;if(E&&(B=this.data)!=null&&B.destinationButtons){B=Math.floor((E+4)/214);E=this.data.destinationButtons.length;var I=Math.ceil(E/B);this.fullyVisibleRows=E%B===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}}}};
_.l.updateRichGridDestinationButtonsVisibility=function(){var E,B;if(this.isRichGrid&&((E=this.data)==null||!E.isExpanded)&&(B=this.data)!=null&&B.destinationButtons){E=this.richGridItemsPerRow+1;B=this.data.destinationButtons.length;var I=Math.ceil(B/E);this.fullyVisibleRows=B%E===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
_.l.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
P5.prototype.updateRichGridDestinationButtonsVisibility=P5.prototype.updateRichGridDestinationButtonsVisibility;_.k([_.X(),_.t("design:type",Object)],P5.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Number)],P5.prototype,"fullyVisibleRows",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],P5.prototype,"isShowMoreVisible",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],P5.prototype,"isRichGrid",void 0);
_.k([_.X({selector:_.GP,value:0}),_.t("design:type",Number)],P5.prototype,"richGridItemsPerRow",void 0);_.k([_.X(),_.t("design:type",Object)],P5.prototype,"gridStateActionMap",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],P5.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],P5.prototype,"ytdReduxBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],P5.prototype,"modernTypography",void 0);_.k([_.EM("data","richGridItemsPerRow"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],P5.prototype,"updateRichGridDestinationButtonsVisibility",null);
P5=_.k([_.b({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],P5);
_.A(P5,"ytd-destination-shelf-renderer",function(){if(FZX!==void 0)return FZX;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return FZX=E},{mode:1});var DFD;var z9=function(){return _.r.apply(this,arguments)||this};
_.L(z9,_.r);z9.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"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],z9.prototype,"data",void 0);z9=_.k([_.b({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],z9);
_.A(z9,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(DFD!==void 0)return DFD;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return DFD=E},{mode:1});var KZZ;var mT=function(){var E=_.r.apply(this,arguments)||this;E.disableAnimation=!1;E.isSlimlineSurvey=!1;E.isSlimlineSurveyFollowUp=!1;E.isShortsStyle=!1;return E};
_.L(mT,_.r);mT.prototype.onTap=function(E){E.preventDefault();this.data&&_.$O(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Up.Object.defineProperties(mT.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 E,B,I,T,e;return((E=this.data)==null?0:E.checked)?(B=this.data)==null?void 0:(I=B.onStateIcon)==null?void 0:I.iconType:(T=this.data)==null?void 0:(e=T.defaultStateIcon)==null?void 0:e.iconType}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],mT.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],mT.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],mT.prototype,"disableAnimation",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],mT.prototype,"isSlimlineSurvey",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],mT.prototype,"isSlimlineSurveyFollowUp",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],mT.prototype,"isShortsStyle",void 0);_.k([_.S("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],mT.prototype,"isAnimatedIcon",null);
_.k([_.S("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.t("design:type",Number),_.t("design:paramtypes",[])],mT.prototype,"iconSize",null);_.k([_.S("isShortsStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],mT.prototype,"isDarkTheme",null);_.k([_.S("data.checked"),_.t("design:type",Object),_.t("design:paramtypes",[])],mT.prototype,"icon",null);mT=_.k([_.b({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],mT);
_.A(mT,"ytd-rating-survey-option-renderer",function(){if(KZZ!==void 0)return KZZ;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return KZZ=E},{mode:2});var Rv6;var Q0=function(){var E=_.r.apply(this,arguments)||this;E.firstResponseText=null;E.lastResponseText=null;E.selectedNonStarOption=null;E.hideOptions=!1;E.hideUndoButton=!0;E.disableAnimation=!1;E.showResponseRangeText=!1;E.selectedRatingIndex=-1;E.isSlimlineSurvey=!1;E.isSlimlineSurveyFollowUp=!1;E.isShortsStyle=!1;E.slimlineSurveyRatingSelectedIndex=-1;return E};
_.L(Q0,_.r);_.l=Q0.prototype;_.l.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.l.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.l.onOptionChange=function(E,B){var I=this;E=B.onStateIcon&&B.defaultStateIcon&&B.onStateIcon.iconType===B.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(Y,v){Y.responseText===B.responseText?I.isSlimlineSurvey?(I.selectedRatingIndex=v,I.ytdReduxBehavior.dispatch(VmV(v))):(I.setSurveyOptionValue(v,!0,"checked"),I.setSurveyOptionValue(v,!0,"selected")):(I.setSurveyOptionValue(v,!1,"checked"),I.setSurveyOptionValue(v,
!1,"selected"))});
else if(E)this.selectedNonStarOption=B,this.hideOptions=!0;else{var T=this.ytRendererBehavior.getSimpleString(B.responseText),e=!0;this.getOptionRenderers().forEach(function(Y,v){I.setSurveyOptionValue(v,e,"checked");I.setSurveyOptionValue(v,!1,"selected");I.ytRendererBehavior.getSimpleString(Y.responseText)===T&&(e=!1,I.setSurveyOptionValue(v,!0,"selected"))})}E=B.responseEndpoint;
var c;B.followUpCommand&&(c=_.h(B.followUpCommand,fFt));this.isSlimlineSurvey?(this.resetComponent(),_.I2(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.I2(this.hostElement,"ytd-inline-survey-rating-select-action",[E,c])};
_.l.showSelectedOption=function(){var E=this;_.Ll.addJob(function(){var B=E.getOptionRenderers()[E.slimlineSurveyRatingSelectedIndex];E.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),B)},8,100)};
_.l.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(E){var B;return(B=_.h(E,qkr))!=null?B:{}}):[]};
_.l.onUndoClick=function(){this.resetComponent();_.I2(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.l.setSurveyOptionValue=function(E,B,I){this.notifyPath("data.ratings."+E+".ratingSurveyOptionRenderer."+I);this.set("data.ratings."+E+".ratingSurveyOptionRenderer."+I,B)};
_.l.resetComponent=function(){var E=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var B=this.getOptionRenderers(),I,T;this.firstResponseText=(T=(I=B[0])==null?void 0:I.responseText)!=null?T:null;var e,c;this.lastResponseText=(c=(e=B[B.length-1])==null?void 0:e.responseText)!=null?c:null;B.forEach(function(Y,v){E.setSurveyOptionValue(v,!1,"checked");E.setSurveyOptionValue(v,!1,"selected")})};
_.Up.Object.defineProperties(Q0.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Q0.prototype.onOptionChange=Q0.prototype.onOptionChange;Q0.prototype.dataChanged=Q0.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Q0.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Q0.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Q0.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Q0.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],Q0.prototype,"firstResponseText",void 0);_.k([_.X(),_.t("design:type",Object)],Q0.prototype,"lastResponseText",void 0);_.k([_.X(),_.t("design:type",Object)],Q0.prototype,"selectedNonStarOption",void 0);_.k([_.X(),_.t("design:type",Object)],Q0.prototype,"hideOptions",void 0);_.k([_.X(),_.t("design:type",Object)],Q0.prototype,"hideUndoButton",void 0);_.k([_.X(),_.t("design:type",Object)],Q0.prototype,"disableAnimation",void 0);
_.k([_.X(),_.t("design:type",Object)],Q0.prototype,"showResponseRangeText",void 0);_.k([_.X(),_.t("design:type",Object)],Q0.prototype,"selectedRatingIndex",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Q0.prototype,"isSlimlineSurvey",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Q0.prototype,"isSlimlineSurveyFollowUp",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Q0.prototype,"isShortsStyle",void 0);_.k([_.X({selector:function(E){return E.ui.slimlineSurveyRatingSelectedIndex}}),
_.t("design:type",Object)],Q0.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.k([_.S("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Q0.prototype,"isSingleSelect",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Q0.prototype,"dataChanged",null);
_.k([_.RN("ytd-rating-survey-option-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],Q0.prototype,"onOptionChange",null);Q0=_.k([_.b({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Q0);
_.A(Q0,"ytd-rating-survey-renderer",function(){if(Rv6!==void 0)return Rv6;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Rv6=E},{mode:1});var EK$;var Bqr;var $wh;var QXQ=(QL.FIRSTDAYOFWEEK+1)%7,IhR=function(E,B,I,T){var e="";if(T.selection&&ZAF(T.selection))PD(E,T.selection)&&(e+=" selected");else if(T.selection&&P$B(T.selection)){var c=T.selection.selectionState||"START_DATE";PD(E,T.selection.start)&&(e+=" period-start ",c==="START_DATE"&&(e+="selected"));PD(E,T.selection.end)&&(e+=" period-end ",c==="END_DATE"&&(e+="selected"));zN(E,T.selection.start)||zN(T.selection.end,E)||(e+=" highlighted")}if(zN(B,T.start)||zN(T.end,B))e+=" disabled";T.circleToday&&
PD(B,I)&&(e+=" today");return e};var dy=function(){return _.r.apply(this,arguments)||this};
_.L(dy,_.r);_.l=dy.prototype;_.l.attached=function(){var E=this;_.AJ(this,function(){E.JSC$13693_calendarMain.scrollHeight>0&&(E.calendarConfig.selection?E.scrollToDate(zct(E.calendarConfig.selection)):E.scrollToDate(E.calendarConfig.end))})};
_.l.updateSelection=function(E){E=d5c(Object.assign({},this.calendarConfig,{selection:E}),IhR);this.splice.apply(this,["renderData.months",0,E.length].concat(_.ad(E)))};
_.l.scrollToDate=function(E){this.renderData&&(E=hcf(E,this.renderData),E!==void 0&&this.JSC$13693_calendarMain.scrollToIndex(E))};
_.l.scrollToNextMonth=function(){this.JSC$13693_calendarMain.scrollToIndex(this.JSC$13693_calendarMain.firstVisibleIndex+1)};
_.l.scrollToPrevMonth=function(){this.JSC$13693_calendarMain.firstVisibleIndex===0&&this.JSC$13693_calendarMain.scrollTo(0,0);this.JSC$13693_calendarMain.scrollToIndex(this.JSC$13693_calendarMain.firstVisibleIndex-1)};
_.l.handleDayClick=function(E){_.I2(this.hostElement,"ytd-calendar-date-clicked",[E.model.day.date])};
_.l.handleDayMouseDown=function(E){E.preventDefault();_.I2(this.hostElement,"ytd-calendar-date-mousedown",[E.model.day.date])};
_.l.handleDayMouseUp=function(E){_.I2(this.hostElement,"ytd-calendar-date-mouseup",[E.model.day.date])};
_.l.handleDayMouseEnter=function(E){E.preventDefault();_.I2(this.hostElement,"ytd-calendar-date-mouseenter",[E.model.day.date])};
_.l.handleDayMouseLeave=function(E){_.I2(this.hostElement,"ytd-calendar-date-mouseleave",[E.model.day.date])};
_.Up.Object.defineProperties(dy.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var E=this.calendarConfig,B=IhR;B=B===void 0?IhR:B;for(var I=[],T=0;T<7;T++)I.push(QL.NARROWWEEKDAYS[(T+QXQ)%7]);return{months:d5c(E,B),daysOfWeekLabel:I}}}});
_.k([_.X(),_.t("design:type",Object)],dy.prototype,"calendarConfig",void 0);_.k([_.$7("#calendar-main"),_.t("design:type",Object)],dy.prototype,"JSC$13693_calendarMain",void 0);_.k([_.S("calendarConfig"),_.t("design:type",Object),_.t("design:paramtypes",[])],dy.prototype,"renderData",null);dy=_.k([_.b({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],dy);
_.A(dy,"ytd-scrollable-calendar",function(){if($wh!==void 0)return $wh;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return $wh=E},{mode:2});var Tq6;var eqX;var hr=function(){var E=_.r.apply(this,arguments)||this;E.hideCharCounter=!1;E.hideLabel=!1;E.noLabelFloat=!1;E.autoValidate=!0;E.invalid=!1;E.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return E};
_.L(hr,_.r);_.l=hr.prototype;_.l.reset=function(E){this.value=E&&this.data?this.data.value=E:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.l.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.l.focusTextInput=function(){this.input.focus()};
_.l.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()};
_.l.valueChanged=function(){var E,B;if(((E=this.data)==null?0:E.value)||((B=this.data)==null?void 0:B.value)==="")this.value=this.data.value;else{var I;((I=this.data)==null?void 0:I.value)!==void 0||this.value||(this.value="")}};
_.l.computeLabel=function(E,B){return B?"":_.U3(E)};
_.l.computeAriaLabel=function(E,B){return B?_.U3(E):""};
_.l.computeErrorMessage=function(E,B,I,T){!E&&B?E=I||this.strings.REQUIRED_LABEL:(E=_.U3(T),E=_.vG(E,"&")?"document"in _.$i?TrZ(E):eZV(E):E);return E};
_.l.computeType=function(E){return E==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.l.onTextValueChanged=function(E){this.value=E.detail.value;var B;(B=this.onValueChanged)==null||B.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.l.handleUpdateTextInputFormFieldRendererCommand=function(E){(E=_.h(E,CGU))&&this.data&&this.data.id===E.id&&(E.invalid!==void 0&&(this.invalid=E.invalid),E.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",E.invalidValueErrorMessage))};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("value-changed",this.value))};
_.l.updateInvalidFromBinding=function(E){this.invalid=E.detail.value};
_.Up.Object.defineProperties(hr.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var E;return!((E=this.data)==null||!E.isMultiline)}}});
hr.prototype.valueChangedForBinding=hr.prototype.valueChangedForBinding;hr.prototype.valueChanged=hr.prototype.valueChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],hr.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],hr.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],hr.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],hr.prototype,"value",void 0);_.k([_.X(),_.t("design:type",String)],hr.prototype,"pattern",void 0);_.k([_.X(),_.t("design:type",String)],hr.prototype,"errorMessage",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],hr.prototype,"componentStyle",void 0);_.k([_.X(),_.t("design:type",Object)],hr.prototype,"hideCharCounter",void 0);
_.k([_.X(),_.t("design:type",Object)],hr.prototype,"hideLabel",void 0);_.k([_.X(),_.t("design:type",Object)],hr.prototype,"noLabelFloat",void 0);_.k([_.X(),_.t("design:type",Function)],hr.prototype,"onValueChanged",void 0);_.k([_.X(),_.t("design:type",Boolean)],hr.prototype,"isMultilineOverride",void 0);_.k([_.X(),_.t("design:type",Object)],hr.prototype,"autoValidate",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],hr.prototype,"invalid",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],hr.prototype,"enableOverlayTheme",void 0);_.k([_.X({value:{REQUIRED_LABEL:_.yu("REQUIRED_LABEL",void 0,"Required")}}),_.t("design:type",Object)],hr.prototype,"strings",void 0);_.k([_.$7("#input"),_.t("design:type",Object)],hr.prototype,"input",void 0);_.k([_.S("data","isMultilineOverride"),_.t("design:type",Object),_.t("design:paramtypes",[])],hr.prototype,"isMultiline",null);
_.k([_.i6("data.value"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],hr.prototype,"valueChanged",null);_.k([_.EM("value"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],hr.prototype,"valueChangedForBinding",null);hr=_.k([_.QE({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],hr);
_.A(hr,"yt-text-input-form-field-renderer",function(){if(eqX===void 0){var E=document.createElement("template");_.G(E,'\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="" 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]]" 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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Tq6===void 0&&(Tq6=document.createElement("template"));var T=Tq6;I.call(B,T.content.cloneNode(!0),E.content.firstChild);eqX=E}E=eqX;return E},{mode:2});var sN=function(){var E=_.r.apply(this,arguments)||this;E.data=void 0;E.selectionState="START_DATE";E.isStartDateInvalid=!1;E.isEndDateInvalid=!1;E.autoapply=!1;E.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 E};
_.L(sN,_.r);_.l=sN.prototype;_.l.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"}}}}};
_.l.focus=function(){this.startDateInput.focus()};
_.l.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:mx(this.data.selection.start),end:mx(this.data.selection.end)})};
_.l.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.l.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.E9(this.selectionState)}};
_.l.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.l.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.l.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.l.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var E=this.calendar.calendarConfig,B=E.end;E=uad({start:E.start,end:this.endDate||B},this.startDateInput.value||"");this.isStartDateInvalid=!E.isValid;E.isValid&&(E=E.value,this.selection=this.endDate?{start:E,end:this.endDate}:E,this.calendar.scrollToDate(E));this.updateInvalidState()}};
_.l.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var E=this.calendar.calendarConfig,B=E.start;E=uad({start:this.startDate||B,end:E.end},this.endDateInput.value||"");this.isEndDateInvalid=!E.isValid;E.isValid&&(E=E.value,this.selection={start:this.startDate,end:E},this.calendar.scrollToDate(E));this.updateInvalidState()}};
_.l.handleCalendarDateClicked=function(E){var B=this.selection&&zct(this.selection),I=this.selection&&m56(this.selection);B&&!zN(E,B)&&this.selectionState==="END_DATE"?(this.selection={start:B,end:E},this.selectionState="START_DATE"):(I&&!zN(I,E)?this.selection={start:E,end:I}:this.selection=E,this.selectionState="END_DATE")};
_.l.handleCalendarDateMouseDown=function(E){this.selection&&!ZAF(this.selection)&&(this.dragPivot=PD(E,this.selection.start)?this.selection.end:PD(E,this.selection.end)?this.selection.start:E)};
_.l.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.l.handleCalendarDateMouseEnter=function(E){this.dragPivot&&(this.selection={start:function(B,I){return zN(B,I)?B:I}(this.dragPivot,E),
end:function(B,I){return zN(B,I)?I:B}(this.dragPivot,E)},this.dragPivot||(this.selectionState="START_DATE"))};
_.l.handleCalendarDateMouseLeave=function(){};
_.l.handleCalendarSubmitDateRange=function(){this.selection&&!ZAF(this.selection)&&_.I2(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.l.updateInvalidState=function(){var E=function(B,I){I?B.setAttribute("invalid",""):B.removeAttribute("invalid")};
E(this.startDateInput,this.isStartDateInvalid);E(this.endDateInput,this.isEndDateInvalid)};
_.l.updateDateStrings=function(){this.selection&&(ZAF(this.selection)?wXt(this.selection):(wXt(this.selection.start),wXt(this.selection.end)))};
_.l.updateCalendarSelection=function(E){this.calendar.updateSelection(Object.assign({},E,{selectionState:this.selectionState}))};
_.l.updateIsStartDateInvalidFromBinding=function(E){this.isStartDateInvalid=E.detail.value};
_.l.updateIsEndDateInvalidFromBinding=function(E){this.isEndDateInvalid=E.detail.value};
_.l.updateStartDateStringFromBinding=function(){};
_.l.updateEndDateStringFromBinding=function(){};
_.Up.Object.defineProperties(sN.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:mx(this.data.dateRangeStart),end:mx(this.data.dateRangeEnd),selection:{start:mx(this.data.selection.start),end:mx(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&zct(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&m56(this.selection)}}});
sN.prototype.resetTextboxes=sN.prototype.resetTextboxes;sN.prototype.observeSelection=sN.prototype.observeSelection;sN.prototype.dataChanged=sN.prototype.dataChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],sN.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);_.k([_.$7("#calendar"),_.t("design:type",Object)],sN.prototype,"calendar",void 0);
_.k([_.$7("#start-date"),_.t("design:type",Object)],sN.prototype,"startDateInput",void 0);_.k([_.$7("#end-date"),_.t("design:type",Object)],sN.prototype,"endDateInput",void 0);_.k([_.X(),_.t("design:type",Object)],sN.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],sN.prototype,"selection",void 0);_.k([_.X(),_.t("design:type",String)],sN.prototype,"selectionState",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],sN.prototype,"calendarConfig",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],sN.prototype,"errorMessage",null);_.k([_.S("selection"),_.t("design:type",Object),_.t("design:paramtypes",[])],sN.prototype,"startDate",null);_.k([_.S("selection"),_.t("design:type",Object),_.t("design:paramtypes",[])],sN.prototype,"endDate",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sN.prototype,"dataChanged",null);
_.k([_.EM("selection","selectionState"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sN.prototype,"observeSelection",null);_.k([_.EM("selectionState"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sN.prototype,"resetTextboxes",null);sN=_.k([_.b({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],sN);
_.A(sN,"ytd-date-period-picker-renderer",function(){if(Bqr!==void 0)return Bqr;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Bqr=E},{mode:1});var uP=function(){var E=_.r.apply(this,arguments)||this;var B={};E.actionMap=(B["ytd-date-period-picker-apply"]="handleDateRangeUpdated",B);return E};
_.L(uP,_.r);uP.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
uP.prototype.handleDateRangeUpdated=function(){};
_.k([_.X(),_.t("design:type",Object)],uP.prototype,"data",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],uP.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],uP.prototype,"rendererstamperBehavior",void 0);uP=_.k([_.b({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],uP);
_.A(uP,"ytd-report-history-section-header-renderer",function(){if(EK$!==void 0)return EK$;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return EK$=E},{mode:1});var lhr;var c3u;var iwR;var LE=function(){return _.r.apply(this,arguments)||this};
_.L(LE,_.r);_.Up.Object.defineProperties(LE.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?0:(B=E.icon)==null?0:B.iconType)?_.R3(this.data.icon.iconType):""}}});
_.k([_.X(),_.t("design:type",Object)],LE.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",String),_.t("design:paramtypes",[])],LE.prototype,"icon",null);LE=_.k([_.b({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],LE);
_.A(LE,"ytd-report-history-table-text-cell-renderer",function(){if(iwR!==void 0)return iwR;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return iwR=E},{mode:1});var xs=function(){return _.r.apply(this,arguments)||this};
_.L(xs,_.r);xs.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],xs.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],xs.prototype,"data",void 0);xs=_.k([_.b({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],xs);
_.A(xs,"ytd-report-history-table-reason-cell-renderer",function(){if(c3u!==void 0)return c3u;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return c3u=E},{mode:1});var G9=function(){return _.r.apply(this,arguments)||this};
_.L(G9,_.r);G9.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"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],G9.prototype,"rendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],G9.prototype,"data",void 0);G9=_.k([_.b({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],G9);
_.A(G9,"ytd-report-history-table-cell-renderer",function(){if(lhr!==void 0)return lhr;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
return lhr=E},{mode:1});var pQh;var ON=function(){var E=_.r.apply(this,arguments)||this;E.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 E};
_.L(ON,_.r);ON.prototype.onDataChanged=function(){var E;if((E=this.data)==null?0:E.style)this.componentStyle=this.getStyleName(this.data.style)};
ON.prototype.getCellForColumn=function(E){return this.cells.find(function(B){var I;return((I=_.h(B==null?void 0:B.cell,KsU)||_.h(B==null?void 0:B.cell,D0r))==null?void 0:I.columnId)===E.type})};
ON.prototype.getClassForColumn=function(E){switch(E){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
ON.prototype.getStyleName=function(E){switch(E){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Up.Object.defineProperties(ON.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var E;return(((E=this.data)==null?void 0:E.cells)||[]).map(function(B){return _.h(B,Fsu)})}}});
ON.prototype.onDataChanged=ON.prototype.onDataChanged;_.k([_.X(),_.t("design:type",Object)],ON.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Array)],ON.prototype,"columnRenderData",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],ON.prototype,"componentStyle",void 0);_.k([_.S("data"),_.t("design:type",Array),_.t("design:paramtypes",[])],ON.prototype,"cells",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ON.prototype,"onDataChanged",null);ON=_.k([_.b({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],ON);
_.A(ON,"ytd-report-history-table-row-renderer",function(){if(pQh!==void 0)return pQh;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return pQh=E},{mode:1});var YPZ;var ahl;var LLi={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},x5J={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var nE=function(){return _.r.apply(this,arguments)||this};
_.L(nE,_.r);nE.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"}}}}}};
nE.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Up.Object.defineProperties(nE.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?0:E.columns)?HA4(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return nXB(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var E=this.tableSpec,B=LLi;B=B===void 0?x5J:B;B=MLf(E.columnDimensions,E.columnsToShow||[],B);E=0;B=_.p(B);for(var I=B.next();!I.done;I=B.next())I=I.value,E+=I.minWidth+I.paddingLeft+I.paddingRight;return E}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.k([_.g(_.xo),_.t("design:type",Object)],nE.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],nE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],nE.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],nE.prototype,"tableSpec",null);_.k([_.S("tableSpec"),_.t("design:type",Array),_.t("design:paramtypes",[])],nE.prototype,"columnRenderData",null);
_.k([_.S("tableSpec"),_.t("design:type",Number),_.t("design:paramtypes",[])],nE.prototype,"totalMinWidth",null);_.k([_.S("totalMinWidth"),_.t("design:type",String),_.t("design:paramtypes",[])],nE.prototype,"tableWidthStyle",null);nE=_.k([_.b({is:"ytd-table-renderer",disableElementRegistration:!0})],nE);
_.A(nE,"ytd-table-renderer",function(){if(ahl!==void 0)return ahl;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ahl=E},{mode:1});var MJ=function(){return _.r.apply(this,arguments)||this};
_.L(MJ,_.r);MJ.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}}}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],MJ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],MJ.prototype,"data",void 0);MJ=_.k([_.b({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],MJ);
_.A(MJ,"ytd-report-reason-history-modal-renderer",function(){if(YPZ!==void 0)return YPZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return YPZ=E},{mode:1});var vKU;var y3r;var C2X;var H5=function(){return _.r.apply(this,arguments)||this};
_.L(H5,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],H5.prototype,"data",void 0);H5=_.k([_.b({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],H5);
_.A(H5,"ytd-profile-column-stats-entry-renderer",function(){if(C2X!==void 0)return C2X;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return C2X=E},{mode:1});var wQr;var NJ=function(){return _.r.apply(this,arguments)||this};
_.L(NJ,_.r);NJ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],NJ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],NJ.prototype,"data",void 0);NJ=_.k([_.b({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],NJ);
_.A(NJ,"ytd-profile-column-stats-renderer",function(){if(wQr!==void 0)return wQr;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return wQr=E},{mode:1});var ZwU;var gy=function(){return _.r.apply(this,arguments)||this};
_.L(gy,_.r);_.Up.Object.defineProperties(gy.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)==null||!E.useThumbnailSize)return 80;var B,I;E=(B=this.data)==null?void 0:(I=B.thumbnail)==null?void 0:I.thumbnails;var T;return E&&((T=E[0])==null?void 0:T.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)==null||!E.useThumbnailSize)return 80;var B,I;E=(B=this.data)==null?void 0:(I=B.thumbnail)==null?void 0:I.thumbnails;var T;return E&&((T=E[0])==null?void 0:T.height)||80}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],gy.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],gy.prototype,"componentStyle",void 0);_.k([_.S("data.useThumbnailSize"),_.t("design:type",Object),_.t("design:paramtypes",[])],gy.prototype,"thumbnailWidth",null);
_.k([_.S("data.useThumbnailSize"),_.t("design:type",Object),_.t("design:paramtypes",[])],gy.prototype,"thumbnailHeight",null);gy=_.k([_.b({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],gy);
_.A(gy,"ytd-profile-column-user-info-renderer",function(){if(ZwU!==void 0)return ZwU;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ZwU=E},{mode:1});var Sk=function(){return _.r.apply(this,arguments)||this};
_.L(Sk,_.r);Sk.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]]"}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Sk.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],Sk.prototype,"componentStyle",void 0);Sk=_.k([_.b({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Sk);
_.A(Sk,"ytd-profile-column-renderer",function(){if(y3r!==void 0)return y3r;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return y3r=E},{mode:1});var Jr=function(){var E=_.r.apply(this,arguments)||this;E.componentStyle="NON_CENTERED_PROFILE";return E};
_.L(Jr,_.r);Jr.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Jr.prototype.getIcon=function(E){return E?"settings:"+E.toLowerCase():null};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Jr.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Jr.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Jr.prototype,"data",void 0);Jr=_.k([_.b({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Jr);
_.A(Jr,"ytd-page-introduction-renderer",function(){if(vKU!==void 0)return vKU;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return vKU=E},{mode:1});var P2V;var W5=function(){return _.r.apply(this,arguments)||this};
_.L(W5,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],W5.prototype,"data",void 0);W5=_.k([_.b({is:"ytd-report-description-renderer",disableElementRegistration:!0})],W5);
_.A(W5,"ytd-report-description-renderer",function(){if(P2V!==void 0)return P2V;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return P2V=E},{mode:1});var zqZ;var mwr;var Xp=function(){return _.r.apply(this,arguments)||this};
_.L(Xp,_.r);Xp.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Xp.prototype,"data",void 0);Xp=_.k([_.b({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Xp);
_.A(Xp,"ytd-video-report-renderer",function(){if(mwr!==void 0)return mwr;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return mwr=E},{mode:1});var QEZ;_.QH("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.QH("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var ry=function(){return _.r.apply(this,arguments)||this};
_.L(ry,_.r);ry.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]]"}}}}}};
ry.prototype.computeMessageStyle=function(E){return E};
ry.prototype.computeButtonOverride=function(E){var B;if((E==null?0:(B=E.style)==null?0:B.value)&&E.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ry.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ry.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],ry.prototype,"shelf",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],ry.prototype,"panel",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.t("design:type",Boolean)],ry.prototype,"componentStyle",void 0);_.k([_.X({computed:"computeButtonOverride(data)"}),_.t("design:type",Object)],ry.prototype,"buttonOverride",void 0);ry=_.k([_.b({is:"ytd-message-renderer",disableElementRegistration:!0})],ry);
_.A(ry,"ytd-message-renderer",function(){if(QEZ!==void 0)return QEZ;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return QEZ=E},{mode:1});var bP=function(){return _.r.apply(this,arguments)||this};
_.L(bP,_.r);bP.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"}}}};
bP.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
bP.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Up.Object.defineProperties(bP.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var E,B;return!!(((E=this.data)==null?0:E.header)&&((B=this.data)==null?0:B.table))}}});
bP.prototype.onRequestError=bP.prototype.onRequestError;_.k([_.g(_.xo),_.t("design:type",Object)],bP.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],bP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],bP.prototype,"data",void 0);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],bP.prototype,"isUnifiedReportHistory",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],bP.prototype,"onRequestError",null);bP=_.k([_.b({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],bP);
_.A(bP,"ytd-report-history-section-renderer",function(){if(zqZ!==void 0)return zqZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return zqZ=E},{mode:1});var dwV;var of=function(){var E=_.r.apply(this,arguments)||this;E.answerExpanded=!1;return E};
_.L(of,_.r);of.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],of.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],of.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],of.prototype,"answerExpanded",void 0);of=_.k([_.b({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],of);
_.A(of,"ytd-handles-claiming-faq-renderer",function(){if(dwV!==void 0)return dwV;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return dwV=E},{mode:1});var hqu;var Ar=function(){return _.r.apply(this,arguments)||this};
_.L(Ar,_.r);_.k([_.X(),_.t("design:type",Object)],Ar.prototype,"data",void 0);Ar=_.k([_.b({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],Ar);
_.A(Ar,"ytd-handles-claiming-faq-section-renderer",function(){if(hqu!==void 0)return hqu;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return hqu=E},{mode:1});var sE6;var jk=function(){var E=_.r.apply(this,arguments)||this;E.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";E.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";E.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";E.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";E.leftSquiggly=E.leftSquigglyLight;E.rightSquiggly=E.rightSquigglyLight;
E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};E.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return E};
_.L(jk,_.r);_.l=jk.prototype;_.l.updateLeftSquigglyStyle=function(){_.Dk(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.l.updateRightSquigglyStyle=function(){_.Dk(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.l.ready=function(){var E=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(E)};
_.l.onDarkModeToggledAction=function(E){E!==this.isDarkTheme&&(this.set("isDarkTheme",E),E?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
jk.prototype.updateRightSquigglyStyle=jk.prototype.updateRightSquigglyStyle;jk.prototype.updateLeftSquigglyStyle=jk.prototype.updateLeftSquigglyStyle;_.k([_.X(),_.t("design:type",Object)],jk.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],jk.prototype,"isDarkTheme",void 0);_.k([_.X(),_.t("design:type",String)],jk.prototype,"leftSquiggly",void 0);_.k([_.X(),_.t("design:type",String)],jk.prototype,"rightSquiggly",void 0);
_.k([_.EM("leftSquiggly"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],jk.prototype,"updateLeftSquigglyStyle",null);_.k([_.EM("rightSquiggly"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],jk.prototype,"updateRightSquigglyStyle",null);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],jk.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],jk.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],jk.prototype,"actionButtonOverride",void 0);jk=_.k([_.b({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],jk);
_.A(jk,"ytd-handles-claiming-header-renderer",function(){if(sE6!==void 0)return sE6;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return sE6=E},{mode:1});var uHZ;var UN=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};E.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";E.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";E.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";E.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
E.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";E.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";E.image0SquigglyBackground=E.image0LightSquigglyBackground;E.image1SquigglyBackground=E.image1LightSquigglyBackground;E.image3SquigglyBackground=E.image3LightSquigglyBackground;return E};
_.L(UN,_.r);_.l=UN.prototype;_.l.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.l.onDataChanged=function(){this.updateTitleAndImages()};
_.l.onThemeChanged=function(){this.updateTitleAndImages()};
_.l.onDarkModeToggledAction=function(E){E!==this.isDarkTheme&&(this.isDarkTheme=E)};
_.l.updateImage0SquigglyBackground=function(){_.Dk(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.l.updateImage1SquigglyBackground=function(){_.Dk(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.l.updateImage3SquigglyBackground=function(){_.Dk(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.l.updateTitleAndImages=function(){var E,B;((E=this.data)==null?void 0:(B=E.titleImages)==null?void 0:B.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))};
UN.prototype.updateImage3SquigglyBackground=UN.prototype.updateImage3SquigglyBackground;UN.prototype.updateImage1SquigglyBackground=UN.prototype.updateImage1SquigglyBackground;UN.prototype.updateImage0SquigglyBackground=UN.prototype.updateImage0SquigglyBackground;UN.prototype.onThemeChanged=UN.prototype.onThemeChanged;UN.prototype.onDataChanged=UN.prototype.onDataChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],UN.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],UN.prototype,"isDarkTheme",void 0);_.k([_.X(),_.t("design:type",Object)],UN.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],UN.prototype,"title0",void 0);_.k([_.X(),_.t("design:type",Object)],UN.prototype,"title1",void 0);_.k([_.X(),_.t("design:type",Object)],UN.prototype,"title2",void 0);_.k([_.X(),_.t("design:type",Object)],UN.prototype,"title3",void 0);
_.k([_.X(),_.t("design:type",Object)],UN.prototype,"title4",void 0);_.k([_.X(),_.t("design:type",Object)],UN.prototype,"image0",void 0);_.k([_.X(),_.t("design:type",Object)],UN.prototype,"image1",void 0);_.k([_.X(),_.t("design:type",Object)],UN.prototype,"image2",void 0);_.k([_.X(),_.t("design:type",Object)],UN.prototype,"image3",void 0);_.k([_.X(),_.t("design:type",Object)],UN.prototype,"image4",void 0);_.k([_.X(),_.t("design:type",String)],UN.prototype,"image0SquigglyBackground",void 0);
_.k([_.X(),_.t("design:type",String)],UN.prototype,"image1SquigglyBackground",void 0);_.k([_.X(),_.t("design:type",String)],UN.prototype,"image3SquigglyBackground",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],UN.prototype,"onDataChanged",null);_.k([_.EM("isDarkTheme"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],UN.prototype,"onThemeChanged",null);
_.k([_.EM("image0SquigglyBackground"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],UN.prototype,"updateImage0SquigglyBackground",null);_.k([_.EM("image1SquigglyBackground"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],UN.prototype,"updateImage1SquigglyBackground",null);
_.k([_.EM("image3SquigglyBackground"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],UN.prototype,"updateImage3SquigglyBackground",null);UN=_.k([_.b({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],UN);
_.A(UN,"ytd-handles-claiming-title-images-section-renderer",function(){if(uHZ!==void 0)return uHZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return uHZ=E},{mode:1});var LD6;var ks=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return E};
_.L(ks,_.r);ks.prototype.ready=function(){var E=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(E)};
ks.prototype.onDarkModeToggledAction=function(E){E!==this.isDarkTheme&&this.set("isDarkTheme",E)};
ks.prototype.onCopyButtonClick=function(){var E=this,B,I,T;return _.a(function(e){return(B=E.data)!=null&&B.primaryChannelUrl?_.C(e,navigator.clipboard.writeText(((I=E.data)==null?0:I.encodedChannelUrl)?E.data.encodedChannelUrl:"https://"+_.U3((T=E.data)==null?void 0:T.primaryChannelUrl)),0):e.jumpTo(0)})};
_.k([_.X(),_.t("design:type",Object)],ks.prototype,"data",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],ks.prototype,"ytComponentBehavior",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],ks.prototype,"isDarkTheme",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],ks.prototype,"ytActionHandlerBehavior",void 0);ks=_.k([_.b({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],ks);
_.A(ks,"ytd-handles-claiming-update-social-renderer",function(){if(LD6!==void 0)return LD6;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return LD6=E},{mode:1});var xwl;var tr=function(){var E=_.r.apply(this,arguments)||this;E.JSC$13788_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";E.JSC$13788_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};E.squigglyBackground=E.JSC$13788_squigglyBackgroundLight;return E};
_.L(tr,_.r);tr.prototype.updateSquigglyBackgroundStyle=function(){_.Dk(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
tr.prototype.ready=function(){var E=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",E);this.squigglyBackground=E?this.JSC$13788_squigglyBackgroundDark:this.JSC$13788_squigglyBackgroundLight};
tr.prototype.onDarkModeToggledAction=function(E){E!==this.isDarkTheme&&(this.set("isDarkTheme",E),this.squigglyBackground=E?this.JSC$13788_squigglyBackgroundDark:this.JSC$13788_squigglyBackgroundLight)};
tr.prototype.updateSquigglyBackgroundStyle=tr.prototype.updateSquigglyBackgroundStyle;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],tr.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],tr.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],tr.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],tr.prototype,"isDarkTheme",void 0);_.k([_.X(),_.t("design:type",String)],tr.prototype,"squigglyBackground",void 0);_.k([_.EM("squigglyBackground"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],tr.prototype,"updateSquigglyBackgroundStyle",null);tr=_.k([_.b({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],tr);
_.A(tr,"ytd-handles-claiming-vanity-info-renderer",function(){if(xwl!==void 0)return xwl;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return xwl=E},{mode:1});var GrX;var fE=function(){var E=_.r.apply(this,arguments)||this;E.JSC$13791_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";E.JSC$13791_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";E.squigglyBackground=E.JSC$13791_squigglyBackgroundLight;E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return E};
_.L(fE,_.r);_.l=fE.prototype;_.l.ready=function(){var E=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(E)};
_.l.onDarkModeToggledAction=function(E){E!==this.isDarkTheme&&(this.set("isDarkTheme",E),this.squigglyBackground=E?this.JSC$13791_squigglyBackgroundDark:this.JSC$13791_squigglyBackgroundLight)};
_.l.updateSquigglyBackgroundStyle=function(){_.Dk(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.l.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.l.detached=function(){this.stop()};
_.l.stop=function(){this.playerElement.stop()};
_.l.setupVideoPlayer=function(){var E=this,B,I;return _.a(function(T){B=E.data.videoId;I="http://i1.ytimg.com/vi/"+B+"/maxresdefault.jpg";E.playerElement.loadVideoWithPlayerVars({video_id:B,iurlhq:I});_.ER(T)})};
fE.prototype.onDataChanged=fE.prototype.onDataChanged;fE.prototype.updateSquigglyBackgroundStyle=fE.prototype.updateSquigglyBackgroundStyle;_.k([_.X({value:!1}),_.t("design:type",Boolean)],fE.prototype,"isDarkTheme",void 0);_.k([_.X(),_.t("design:type",String)],fE.prototype,"squigglyBackground",void 0);_.k([_.$7("#player"),_.t("design:type",Object)],fE.prototype,"playerElement",void 0);_.k([_.X(),_.t("design:type",Object)],fE.prototype,"data",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],fE.prototype,"ytActionHandlerBehavior",void 0);_.k([_.EM("squigglyBackground"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fE.prototype,"updateSquigglyBackgroundStyle",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fE.prototype,"onDataChanged",null);
fE=_.k([_.b({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],fE);
_.A(fE,"ytd-handles-claiming-video-item-renderer",function(){if(GrX!==void 0)return GrX;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return GrX=E},{mode:1});var Owr;var qJ=function(){var E=_.l6.apply(this,arguments)||this;E.dragging=!1;E.dragMouseStart=0;E.dragOffsetStart=0;E.containerWidthDiff=0;E.boundPrevClick=function(){E.set("offset",V0(E,E.offset-(E.scrollDistance||320)))};
E.boundNextClick=function(){E.set("offset",V0(E,E.offset+(E.scrollDistance||320)))};
E.boundScrollContainerMouseDown=function(B){E.dragMouseStart=B.clientX;E.dragOffsetStart=E.offset;E.dragging=!0};
E.boundScrollContainerDrag=function(B){E.dragging&&E.set("offset",V0(E,E.dragOffsetStart-(B.clientX-E.dragMouseStart)))};
E.boundMouseUp=function(){E.onMouseUp()};
E.boundWheelScroll=function(B){var I=0;Math.abs(B.deltaX)>=Math.abs(B.deltaY)?I=B.deltaX:B.shiftKey&&(I=B.deltaY);I!==0&&(E.offset+=I,B.stopPropagation(),B.preventDefault())};
E.boundChipCloudChipScrollIntoView=function(B){(B=B.detail)&&E.scrollChipIntoView(B)};
return E};
_.L(qJ,_.l6);qJ.prototype.attached=function(){var E=_.n(this.hostElement).querySelector("#scroll-container");E.addEventListener("wheel",this.boundWheelScroll);E.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);E.style.touchAction="pan-y";E.addEventListener("pointerdown",this.boundScrollContainerMouseDown);E.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
qJ.prototype.detached=function(){var E=_.n(this.hostElement).querySelector("#scroll-container");E.removeEventListener("wheel",this.boundWheelScroll);E.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);E.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);E.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
qJ.prototype.reset=function(){this.set("offset",0);_.AJ(this,this.setContainerWidthDiff);Fp(this)};
var V0=function(E,B){return Math.min(Math.max(B,0),E.containerWidthDiff)};
qJ.prototype.onMouseUp=function(){this.dragging=!1};
qJ.prototype.transformContainer=function(){this.offset=V0(this,this.offset);var E=_.HA("HTML_DIR")==="rtl"?"":"-";_.n(this.hostElement).querySelector("#chips").style.transform="translateX("+E+this.offset+"px)";Fp(this)};
var Fp=function(E){_.AJ(E,E.setButtonsState)};
qJ.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=V0(this,this.offset));this.atStart=this.offset<=0};
qJ.prototype.setContainerWidthDiff=function(){var E=_.n(this.hostElement).querySelector("#scroll-container"),B=_.n(this.hostElement).querySelector("#chips");E&&B&&(this.containerWidthDiff=B.clientWidth-E.clientWidth)};
qJ.prototype.scrollChipIntoView=function(E){var B=_.n(this.hostElement).querySelector("#scroll-container");if(B){var I=this.atStart?0:106,T=this.atEnd?0:106;E.offsetLeft<this.offset+I?this.offset=V0(this,E.offsetLeft-I):E.offsetLeft+E.clientWidth>this.offset+B.clientWidth-T&&(this.offset=V0(this,E.offsetLeft+E.clientWidth+T-B.clientWidth))}};
qJ.prototype.transformContainer=qJ.prototype.transformContainer;_.k([_.X({value:0}),_.t("design:type",Number)],qJ.prototype,"offset",void 0);_.k([_.X({value:!0,reflectToAttribute:!0}),_.t("design:type",Boolean)],qJ.prototype,"atStart",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],qJ.prototype,"atEnd",void 0);_.k([_.X(),_.t("design:type",Number)],qJ.prototype,"scrollDistance",void 0);
_.k([_.EM("offset"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qJ.prototype,"transformContainer",null);qJ=_.k([_.cl()],qJ);var nKt;var MGR;var gKV=_.rp(function(E){var B=E.data;E=_.p(_.lQ(!1,void 0,"icHmSe"));var I=E.next().value,T=E.next().value;E={};E=_.RQ("ytChipShapeChip",function(){a:switch(B==null?void 0:B().state){case 0:var v="ytChipShapeActive";break a;case 1:v="ytChipShapeDisabled";break a;default:v="ytChipShapeInactive"}return v},function(){var v=B().type===1||B().type===2,y=B();
return v||y!=null&&y.startIcon?y==null||!y.startIcon||y!=null&&y.text?v?"ytChipShapeEndIconPadding":(y==null?0:y.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(E.ytChipShapeFocused=function(){var v;
return I()&&((v=B())==null?void 0:v.state)!==1},E));
var e=function(v){if((B==null?void 0:B().state)!==1){var y,Z;(Z=(y=B()).onTap)==null||Z.call(y,v)}},c=_.TI(function(){var v=_.Q().resolve(_.Fx(_.ZR));
if(v){T(v.isKeyBoardInUse());var y,Z;(Z=(y=B()).onFocusIn)==null||Z.call(y)}return!1}),Y=_.TI(function(){T(!1);
return!1});
return _.w("chip-shape",{class:"ytChipShapeHost","on:focusin":c,"on:focusout":Y},_.w(HwU,{shouldWrapInButton:function(){return B().type!==2},
selected:function(){return B().state===0},
onClick:e,isDropdown:function(){return B().type===1},
accessibilityLabel:function(){return B().accessibilityLabel}},_.w("div",{class:E},_.w(_.wU,{cond:function(){return B().startIcon},
then:function(){return _.w(_.i0,{icon:function(){var v;return(v=B())==null?void 0:v.startIcon},
className:function(){return B().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return B().text},_.w(Nq$,{shape:B,
onClick:e}))))},"sb");
gKV.idomCompat=!0;var HwU=_.rp(function(E){var B=_.TI(function(I){E.onClick(I);return!1});
return _.w(_.wU,{cond:E.shouldWrapInButton,then:function(){return _.w("button",{class:"ytChipShapeButtonReset","on:click":B,role:function(){return E.isDropdown()?"combobox":"tab"},
"aria-label":E.accessibilityLabel,"aria-selected":E.selected},E.children)},
else:function(){return E.children}})},"tb"),Nq$=_.rp(function(E){var B=E.shape;
var I=E.onClick;var T=_.TI(function(e){I(e);return!1});
return _.w(_.m4,null,_.w(_.PA,{when:function(){return B().type===1}},function(){return _.w(_.i0,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.w(_.PA,{when:function(){return B().type===2}},function(){return _.w("button",{class:"ytChipShapeButtonReset",
"on:click":T},_.w(_.i0,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.w(_.PA,{when:function(){return B().type===0}},function(){return _.w(_.VS,null)}))},"ub");_.oQ(gKV,"chip-shape",{props:{data:_.Jh}});var D5=function(){var E=_.r.apply(this,arguments)||this;E.disableDeselectEvent=!1;E.modern=_.d("web_modern_typography");E.useChipShape=_.d("web_chip_shape_defrag");E.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return E};
_.L(D5,_.r);_.l=D5.prototype;_.l.beforeRegister=function(){_.d("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.l.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.l.onSelectChipCommand=function(E){if(!this.selected&&this.data&&(E=_.h(E,eKZ),E.targetId&&E.targetId===this.data.targetId))this.onTap()};
_.l.onFilterChipTransformCommand=function(E){if(!this.selected&&this.data){var B;(E=(B=_.h(E,pTu))==null?void 0:B.chipUniqueId)&&E===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.l.dataChanged=function(){var E=this;_.AJ(this,function(){E.data&&E.data.isSelected&&!E.selected&&(E.scrollChipIntoView(),E.onTap())})};
_.l.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.l.computeChipStyle=function(E){return E!=null?E:"STYLE_DEFAULT"};
_.l.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.I2(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.I2(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.l.onFocus=function(){var E=_.Q().resolve(_.Fx(_.ZR));E&&E.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.l.scrollChipIntoView=function(){_.$O(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Up.Object.defineProperties(D5.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return XXF({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
D5.prototype.onFocus=D5.prototype.onFocus;D5.prototype.onTap=D5.prototype.onTap;D5.prototype.selectionChanged=D5.prototype.selectionChanged;D5.prototype.dataChanged=D5.prototype.dataChanged;_.k([_.g(_.hc),_.t("design:type",Object)],D5.prototype,"ironButtonState",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],D5.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],D5.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.mG),_.t("design:type",Object)],D5.prototype,"ironA11yKeysBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],D5.prototype,"disableDeselectEvent",void 0);_.k([_.X(),_.t("design:type",Object)],D5.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data.icon"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],D5.prototype,"hasIcon",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data.uniqueId"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],D5.prototype,"isGnomeChip",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],D5.prototype,"modern",void 0);_.k([_.X({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.t("design:type",String)],D5.prototype,"chipStyle",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],D5.prototype,"selected",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],D5.prototype,"useChipShape",void 0);_.k([_.S("data","selected"),_.t("design:type",Object),_.t("design:paramtypes",[])],D5.prototype,"chipShapeData",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],D5.prototype,"dataChanged",null);_.k([_.EM("selected"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],D5.prototype,"selectionChanged",null);
_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],D5.prototype,"onTap",null);_.k([_.RN("focus"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],D5.prototype,"onFocus",null);D5=_.k([_.QE({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],D5);
_.A(D5,"yt-chip-cloud-chip-renderer",function(){if(MGR===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;nKt===void 0&&(nKt=document.createElement("template"));var T=nKt;I.call(B,T.content.cloneNode(!0),E.content.firstChild);MGR=E}E=MGR;return E},{mode:2});var KE=function(){var E=_.r.apply(this,arguments)||this;E.isDarkTheme=!1;E.notSticky=!1;E.transparentBackground=!1;E.shouldHide=!1;E.disableSticky=!1;E.fluidWidth=!1;E.isClipList=!1;E.defaultChipIndex=0;E.isPlaylist=!1;E.playlistVotingAnimationEnabled=_.d("web_enable_voting_animation");E.toolbarHeight=0;E.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return E};
_.L(KE,_.r);_.l=KE.prototype;
_.l.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}}}}}};
_.l.attached=function(){var E=this;document.addEventListener("scroll",_.Kq(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var B;this.toolbarHeight=((B=document.querySelector("ytd-masthead"))==null?void 0:B.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(I){E.handleIntersect(I)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){E.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.l.detached=function(){var E;(E=this.intersectionObserver)==null||E.disconnect();var B;(B=this.resizeObserver)==null||B.disconnect();document.removeEventListener("scroll",_.Kq(this,this.updateChipBarWidthAndTop))};
_.l.dataChanged=function(){var E=this,B,I,T;((T=_.h((B=this.data)==null?void 0:(I=B.contents)==null?void 0:I[0],xCD))==null?void 0:T.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var e=this.findSelectedChipIndex();this.selectedIndex!==e&&(this.selectedIndex=-1);_.AJ(this,function(){E.selectedIndex=e;E.updating=!1;E.ytScrollableChipCloudBehavior.reset()})};
_.l.findSelectedChipIndex=function(){var E;if((E=this.data)==null||!E.contents)return 0;E=this.data.contents;for(var B=0;B<E.length;B++){var I=void 0;if((I=_.h(E[B],xCD))==null?0:I.isSelected)return B}return 0};
_.l.computeStyle=function(E){return E};
_.l.handleChipCloudChipSelectAction=function(E){E=this.JSC$13810_chipsSelector.indexOf(E);E>-1&&this.JSC$13810_chipsSelector.selectIndex(E)};
_.l.handleChipCloudChipDeselectAction=function(){if(_.d("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var E,B,I,T=(I=_.h((E=this.data)==null?void 0:(B=E.contents)==null?void 0:B[0],xCD))==null?void 0:I.navigationEndpoint;T&&_.I2(this.hostElement,"yt-browse-section-list-reload-endpoint",[T]);this.JSC$13810_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.l.onGuideIsExpandedChanged=function(){var E=this.ytScrollableChipCloudBehavior;_.AJ(E,E.setContainerWidthDiff);Fp(this.ytScrollableChipCloudBehavior)};
_.l.onResize=function(){var E=this.ytScrollableChipCloudBehavior;_.AJ(E,E.setContainerWidthDiff);Fp(this.ytScrollableChipCloudBehavior)};
_.l.onDarkModeToggledAction=function(E){this.isDarkTheme=E};
_.l.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.l.handleIntersect=function(E){_.d("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||E[0].intersectionRatio===1)};
_.l.updateDimensions=function(){var E=this.ytRendererBehavior.parentComponent;if(E){var B,I=(B=E.headerElement)!=null?B:E;_.Dk(this.hostElement,{"--ytd-rich-grid-chips-bar-width":I.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.l.updateSelectedIndexFromBinding=function(E){this.selectedIndex=E.detail.value};
_.l.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var E;(E=this.sortFilterHeaderRendererElement)==null||E.setAttribute("is-playlist-page-with-filters","")}};
_.l.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.BP({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.Up.Object.defineProperties(KE.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 E,B,I=(E=this.data)==null?void 0:(B=E.contents)==null?void 0:B.find(function(T){return _.h(T,MyD)});
return{sortFilterHeaderRenderer:_.h(I,MyD)}}}});
KE.prototype.dispatchChipBarIsSticky=KE.prototype.dispatchChipBarIsSticky;KE.prototype.isPlaylistPageChanged=KE.prototype.isPlaylistPageChanged;KE.prototype.updateChipBarWidthAndTop=KE.prototype.updateChipBarWidthAndTop;KE.prototype.onResize=KE.prototype.onResize;KE.prototype.onGuideIsExpandedChanged=KE.prototype.onGuideIsExpandedChanged;KE.prototype.dataChanged=KE.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],KE.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],KE.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.OI),_.t("design:type",Object)],KE.prototype,"ironResizableBehavior",void 0);_.k([_.g(),_.t("design:type",qJ)],KE.prototype,"ytScrollableChipCloudBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],KE.prototype,"ytdReduxBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],KE.prototype,"data",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],KE.prototype,"selectedIndex",void 0);_.k([_.X({value:320}),_.t("design:type",Number)],KE.prototype,"scrollDistance",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KE.prototype,"isDarkTheme",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KE.prototype,"notSticky",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KE.prototype,"transparentBackground",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.t("design:type",String)],KE.prototype,"componentStyle",void 0);_.k([_.X({selector:_.zkd}),_.t("design:type",Boolean)],KE.prototype,"guideIsExpanded",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KE.prototype,"shouldHide",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KE.prototype,"disableSticky",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KE.prototype,"fluidWidth",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KE.prototype,"isClipList",void 0);_.k([_.X(),_.t("design:type",Object)],KE.prototype,"defaultChipIndex",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KE.prototype,"isPlaylist",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],KE.prototype,"playlistVotingAnimationEnabled",void 0);_.k([_.$7("#chips"),_.t("design:type",Object)],KE.prototype,"JSC$13810_chipsSelector",void 0);_.k([_.$7("ytd-sort-filter-header-renderer"),_.t("design:type",HTMLElement)],KE.prototype,"sortFilterHeaderRendererElement",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],KE.prototype,"updating",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KE.prototype,"dataChanged",null);_.k([_.EM("guideIsExpanded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KE.prototype,"onGuideIsExpandedChanged",null);_.k([_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KE.prototype,"onResize",null);
_.k([_.i6("isChannelPageGrid","disableSticky","data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KE.prototype,"updateChipBarWidthAndTop",null);_.k([_.S("componentStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],KE.prototype,"isChannelPageGrid",null);_.k([_.S("componentStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],KE.prototype,"isHashtagLandingPage",null);
_.k([_.EM("isPlaylistPage"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KE.prototype,"isPlaylistPageChanged",null);_.k([_.S("componentStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],KE.prototype,"isPlaylistPage",null);_.k([_.S("componentStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],KE.prototype,"isDisableDeselectEvent",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],KE.prototype,"sortFilterHeaderRendererData",null);_.k([_.X({reflectToAttribute:!0,selector:_.LJt}),_.t("design:type",String)],KE.prototype,"frostedGlassMode",void 0);_.k([_.EM("notSticky"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KE.prototype,"dispatchChipBarIsSticky",null);KE=_.k([_.b({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],KE);
_.A(KE,"ytd-feed-filter-chip-bar-renderer",function(){if(Owr!==void 0)return Owr;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Owr=E},{mode:1});var SPZ;var J3z=_.rp(function(E){var B=E.data;var I=E.buttonIndex;var T=E.selectedIndex;var e=E.onSelect;var c=function(){return I()===T()},Y=function(){var y,Z;
return(Z=(y=B().text)==null?void 0:y.content)!=null?Z:""};
_.TI(function(){});
E=_.gT();var v=_.TI(function(){e(B().onSubmitCommand);return!1});
return _.w("yt-toggleable-image-button-view-model",{class:function(){var y={};y=(y["toggleable-image-button-view-model-wiz"]=!0,y[""]=!0,y["toggleable-image-button-view-model-wiz__semi-transparent"]=T()!==-1&&!c(),y);return _.B$(y)},
tabindex:0,"aria-label":Y,"aria-pressed":c,role:"button","on:keydown":E,"on:click":v},_.w(_.wU,{cond:function(){return B().logo},
then:function(y){return _.w(_.Ja,{data:y,className:function(){var Z={};Z=(Z["toggleable-image-button-view-model-wiz__image"]=!0,Z["toggleable-image-button-view-model-wiz__circular-radius"]=!(!B().backgroundColor||!B().backgroundColorDarkMode),Z["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(c()&&B().backgroundColor&&B().backgroundColorDarkMode),Z);return _.B$(Z)},
alt:Y,useWidth:!1,style:function(){if(c()&&B().backgroundColor&&B().backgroundColorDarkMode){var Z=sq(Number(B().backgroundColorDarkMode),"1");var P=sq(Number(B().backgroundColor),"1");Z="background: linear-gradient(180deg,"+Z+","+P+") border-box;"}else Z="";return Z}})}}),_.w(_.v$,{model:{borderRadius:"16px"}}),_.w("p",{class:function(){var y={};
y=(y["toggleable-image-button-view-model-wiz__label"]=!0,y["toggleable-image-button-view-model-wiz__bold-text"]=c(),y);return _.B$(y)}},_.w(_.aS,{text:function(){return B().text}})))},"vb");
J3z.idomCompat=!0;var XQD=_.rp(function(E){var B=E.data;E=_.p(_.lQ({index:-1,command:{}},void 0,"Zcqtsb"));var I=E.next().value,T=E.next().value;return _.w("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.w("div",{class:"nudge-form-view-model-wiz__form-options"},_.w(_.hM,{data:function(){return B().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(e,c){return _.w(J3z,{data:e.data,buttonIndex:c,selectedIndex:function(){return I().index},
onSelect:function(Y){T({index:c(),command:Y})}})}})),_.w(_.aS,{text:function(){return B().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.w("div",{class:"nudge-form-view-model-wiz__submit"},_.w(_.hM,{data:function(){return B().submitButton}},{buttonViewModel:function(e){return _.w(WD$,{data:e.data,
isDisabled:function(){return I().index===-1},
onClick:function(){_.xg(I().command)}})}})))},"wb");
XQD.idomCompat=!0;var WD$=_.rp(function(E){var B=_.aJ(function(){return Object.assign({},E.data(),{state:E.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.w(_.ne,{data:B,onClick:E.onClick})},"xb");_.oQ(XQD,"yt-nudge-form-view-model",{props:{data:_.Jh}});var Rf=function(){var E=_.r.apply(this,arguments)||this;E.roundedContainer=!0;E.buttonUpdate=_.d("web_modern_buttons");E.isDarkMode=!1;E.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return E};
_.L(Rf,_.r);_.l=Rf.prototype;_.l.computeNudgeStyle=function(E){return E?"modernized-nudge":""};
_.l.handleDarkModeToggledAction=function(E){this.isDarkMode=E};
_.l.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.l.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"}}}};
_.l.computeIsHorizontalButtons=function(E){return E?!!E.applyModernizedStyle&&!!E.enableHorizontalButtons&&!!E.secondaryButton:!1};
_.Up.Object.defineProperties(Rf.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var E,B;return(B=(E=this.data)==null?void 0:E.backgroundStyle)!=null?B:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var E,B;return(B=(E=this.data)==null?void 0:E.contentsLocation)!=null?B:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null?0:E.lightIconImage)}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],Rf.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Rf.prototype,"actionHandlerBehavior",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("isHideEnclosingAction"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Rf.prototype,"isHidden",null);_.k([_.X(),_.t("design:type",Object)],Rf.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Rf.prototype,"roundedContainer",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Rf.prototype,"buttonUpdate",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.t("design:type",String)],Rf.prototype,"nudgeStyle",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data.trimStyle"),_.t("design:type",String),_.t("design:paramtypes",[])],Rf.prototype,"trimStyle",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.backgroundStyle"),_.t("design:type",String),_.t("design:paramtypes",[])],Rf.prototype,"backgroundStyle",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data.contentsLocation"),_.t("design:type",String),_.t("design:paramtypes",[])],Rf.prototype,"contentsLocation",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.disableDropShadow"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Rf.prototype,"noShadow",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.lightIconImage"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Rf.prototype,"noIcon",null);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.t("design:type",Boolean)],Rf.prototype,"isHorizontalButtons",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Object)],Rf.prototype,"isDarkMode",void 0);Rf=_.k([_.b({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Rf);
_.A(Rf,"ytd-feed-nudge-renderer",function(){if(SPZ!==void 0)return SPZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return SPZ=E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var r36;var bw$;var EL=function(){var E=_.r.apply(this,arguments)||this;E.collapsed=!1;E.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return E};
_.L(EL,_.r);EL.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"}}}};
EL.prototype.handleRatingSelect=function(){var E;((E=this.data)==null?0:E.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
EL.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],EL.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],EL.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.GJ),_.t("design:type",Object)],EL.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],EL.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],EL.prototype,"collapsed",void 0);EL=_.k([_.b({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],EL);
_.A(EL,"ytd-slimline-survey-renderer",function(){if(bw$!==void 0)return bw$;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return bw$=E},{mode:1});var oKt;var Bj=function(){return _.r.apply(this,arguments)||this};
_.L(Bj,_.r);Bj.prototype.maybeGetBackgroundColor=function(E){return this.isDarkMode?E.section2Color:E.section3Color};
Bj.prototype.colorPaletteChanged=function(){var E=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;E&&(E==null?0:E.secondaryTitleColor)&&this.maybeGetBackgroundColor(E)?(this.hostElement.style.backgroundColor=_.dE(this.maybeGetBackgroundColor(E)),this.hostElement.style.color=_.dE(E.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Bj.prototype.colorPaletteChanged=Bj.prototype.colorPaletteChanged;_.k([_.g(_.Lz),_.t("design:type",Object)],Bj.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Bj.prototype,"data",void 0);_.k([_.X({selector:function(E){return E.ui.darkModeIsEnabled}}),
_.t("design:type",Boolean)],Bj.prototype,"isDarkMode",void 0);_.k([_.X(),_.t("design:type",Object)],Bj.prototype,"lightColorPalette",void 0);_.k([_.X(),_.t("design:type",Object)],Bj.prototype,"darkColorPalette",void 0);_.k([_.EM("darkColorPalette","lightColorPalette","data","isDarkMode"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Bj.prototype,"colorPaletteChanged",null);Bj=_.k([_.b({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Bj);
_.A(Bj,"ytd-endorsement-header-renderer",function(){if(oKt!==void 0)return oKt;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return oKt=E},{mode:1});_.oQ(_.CG,"yt-decorated-avatar-view-model",{props:{data:_.Jh,className:_.Jh}});var $W=function(){var E=_.r.apply(this,arguments)||this;E.fullHeight=_.d("web_rich_grid_media_full_height");E.showChannelAvatar=!0;E.hasPlaylistThumbnail=!1;E.prepareThumbnailForPageTransition=function(){_.d("web_thumbnail_to_watch_transition")&&(E.thumbnail.style.viewTransitionName="thumbnail-to-watch",E.cleanupThumbnailAfterPageTransition(E.thumbnail))};
return E};
_.L($W,_.r);_.l=$W.prototype;
_.l.configureRendererStamper=function(){return{lazyLoadMenu:EC,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:"decorated-avatar",mapping:{decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.shouldLazyLoadMenu=function(){var E=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.d("kevlar_modern_downloads_page")||!E};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13836_inlinePreviewHoverListener=UO({mediaRenderer:this,lockupElement:this.JSC$13836_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.l.getVideoPreviewOpts=function(){var E={},B;if((B=this.data)==null?0:B.multipleInlinePlaybackEndpoint)E=mYZ;this.isRadio&&(E=zwZ);return _.d("web_thumbnail_to_watch_transition")?Object.assign({},E,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):E};
_.l.clearInlinePreviewHoverListeners=function(){var E;(E=this.JSC$13836_inlinePreviewHoverListener)==null||BD(E)};
_.l.getOwner=function(){var E,B,I;return((E=this.data)==null?void 0:(B=E.channelThumbnailSupportedRenderers)==null?void 0:B.channelThumbnailWithLinkRenderer)||_.h((I=this.data)==null?void 0:I.showProviderChannelThumbnail,QzX)};
_.l.updateLockupSize=function(){var E;((E=this.getOwner())==null?0:E.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.l.getFeedbackEndpoint=function(E){if(_.h(E,_.Ms))return E;var B,I;E=(I=(B=_.h(E,_.pO))==null?void 0:B.commands)!=null?I:[];B=_.p(E);for(I=B.next();!I.done;I=B.next())if(I=this.getFeedbackEndpoint(I.value))return I;return null};
_.l.computeNavigationEndpoint=function(E){return qHi(E==null?void 0:E.navigationEndpoint)};
_.l.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var E=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(E)!==JSON.stringify(this.data)&&this.set("data",E)}};
_.l.onDataChanged=function(){var E=this,B=this.getOwner();if(B){this.set("data.owner",B);var I,T,e,c,Y,v=((I=this.data)==null?void 0:(T=I.shortBylineText)==null?void 0:(e=T.runs)==null?void 0:(c=e[0])==null?void 0:c.text)||((Y=B.name)==null?void 0:Y.simpleText);this.set("data.owner.title",v)}var y,Z,P,z,m,u;B=((y=this.data)==null?void 0:(Z=y.thumbnailRenderer)==null?void 0:Z.playlistVideoThumbnailRenderer)||((P=this.data)==null?void 0:(z=P.thumbnailRenderer)==null?void 0:z.playlistCustomThumbnailRenderer)||
((m=this.data)==null?void 0:(u=m.thumbnailRenderer)==null?void 0:u.showCustomThumbnailRenderer);var x;((x=this.data)==null?0:x.thumbnail)||!B||this.set("data.thumbnail",B.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){E.updateLockupSize()});
var M;if(y=((M=this.data)==null?void 0:M.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(y);var N;((N=this.dismissActionToReplayEntity)==null?0:N.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.l.onHiddenChanged=function(){this.updateLockupSize()};
_.l.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.I2(this.hostElement,"yt-terminate-video-preview-action");else{var E;(E=this.videoTitleLink)==null||E.focus()}};
_.l.metadataColorChanged=function(){var E;if(this.metadataColor&&((E=this.videoTitle)==null?0:E.style))this.videoTitle.style.color=_.dE(this.metadataColor);else{var B,I;!this.metadataColor&&((B=this.videoTitle)==null?0:(I=B.style)==null?0:I.color)&&(this.videoTitle.style.color="")}};
_.l.onDetailsClick=function(E){var B=this.computedNavigationEndpoint;B&&(_.XZ(_.W8(E),this.hostElement,["A","BUTTON"])||_.$O(this.hostElement,"yt-navigate",{endpoint:B}))};
_.l.cleanupThumbnailAfterPageTransition=function(E){_.oGc(document,"yt-page-type-changed",function(){E.style.viewTransitionName=""})};
_.l.onRendererTap=function(){this.prepareThumbnailForPageTransition();var E,B,I=((E=this.data)==null?void 0:E.serviceEndpoint)||this.getFeedbackEndpoint((B=this.data)==null?void 0:B.navigationEndpoint);I&&_.h(I,_.Ms)&&this.ytComponentBehavior.resolveCommand(I)};
_.l.onMouseDown=function(E){var B=E.target,I=this.computedNavigationEndpoint,T;E=B.href||((T=_.h(I==null?void 0:I.commandMetadata,_.D$))==null?void 0:T.url);T=B.data||I;E&&T&&ISi(E,T)};
_.l.computeVideoTitleText=function(){var E;if((E=this.data)==null?0:E.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.l.computeHasPlaylistThumbnail=function(E){var B,I,T,e,c;if((((B=E.thumbnailRenderer)==null?0:B.playlistVideoThumbnailRenderer)||((I=E.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer)||((T=E.thumbnailRenderer)==null?0:T.showCustomThumbnailRenderer)||((e=E.thumbnailRenderer)==null?0:e.playlistVideoThumbnailRenderer)||((c=E.thumbnailRenderer)==null?0:c.playlistCustomThumbnailRenderer))&&E.thumbnailOverlays)for(B=0;B<E.thumbnailOverlays.length;B++)if(I=void 0,(I=E.thumbnailOverlays[B])==
null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Up.Object.defineProperties($W.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.d("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var E;return(E=this.data)==null?void 0:E.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var E;return(E=this.data)==null?void 0:E.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.JSC$13836_inlinePreviewHoverListener)==null?0:zK(E))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Y6i(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?void 0:E.videoId)||((B=this.data)==null?void 0:B.playlistId)||""}}});
$W.prototype.onMouseDown=$W.prototype.onMouseDown;$W.prototype.metadataColorChanged=$W.prototype.metadataColorChanged;$W.prototype.onIsDismissedChanged=$W.prototype.onIsDismissedChanged;$W.prototype.onHiddenChanged=$W.prototype.onHiddenChanged;$W.prototype.onDataChanged=$W.prototype.onDataChanged;$W.prototype.handleReloadDownloadsInfo=$W.prototype.handleReloadDownloadsInfo;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],$W.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],$W.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],$W.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],$W.prototype,"ytdLockupBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],$W.prototype,"ytdReduxBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],$W.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],$W.prototype,"entitySelectorType",void 0);_.k([_.X(),_.t("design:type",Boolean)],$W.prototype,"noEndpoints",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],$W.prototype,"isRadio",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Boolean)],$W.prototype,"miniMode",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],$W.prototype,"fullHeight",void 0);
_.k([_.X(),_.t("design:type",Boolean)],$W.prototype,"showDarkVideoMetadata",void 0);_.k([_.X(),_.t("design:type",Boolean)],$W.prototype,"showLightVideoMetadata",void 0);_.k([_.X(),_.t("design:type",Number)],$W.prototype,"metadataColor",void 0);_.k([_.X(),_.t("design:type",Object)],$W.prototype,"showChannelAvatar",void 0);_.k([_.X(),_.t("design:type",Boolean)],$W.prototype,"hidden",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],$W.prototype,"showYtInteraction",void 0);
_.k([_.X(),_.t("design:type",String)],$W.prototype,"dismissedContentId",void 0);_.k([_.X({selectorArgs:["dismissedContentId"],selector:AZG}),_.t("design:type",Object)],$W.prototype,"dismissActionToReplayEntity",void 0);
_.k([_.X({selectorArgs:["entitySelectorType","mediaId"],selector:function(E,B,I){if(_.d("kevlar_modern_downloads_page")&&I&&B&&B!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(B){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var T=nYB(E,I);if(T){B=_.Mg(E,I);var e=gK(E,I),c=oYt(E,I);E=Sj(E,I);var Y=Pfi(T,B,e,c);e=Y.shortViewCountText;var v=Y.publishedTimeText;Y=Y.badges;var y=E>0;c=wxG(T,B,c,E);T=_.Zm(B)||B==="TRANSFER_STATE_FAILED"||B==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!wK(T.policyEntity)?
void 0:fYF(I,E,T.videoEntity.lengthSeconds);B==="TRANSFER_STATE_PAUSED_BY_USER"&&I&&!_.d("dl_resume_click_killswitch")&&(T={offlineVideoEndpoint:{videoId:I,action:"ACTION_RESUME"}});I={shortViewCountText:e,publishedTimeText:v,badges:Y,isWatched:y,navigationEndpoint:T,thumbnailOverlays:c}}else I=void 0;return I;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(B=MpB(E,I))if(T=_.HP(E,I),c=_.HUD(E,I),T!=="TRANSFER_STATE_UNKNOWN"){I=Z_B(B,T,c,I,u2G(E));break a}I=void 0}return I;default:_.OG(new _.P7("Error: entitySelectorType defined but not matched in selector.",
E,B))}}}),
_.t("design:type",Object)],$W.prototype,"entityDrivenState",void 0);_.k([_.X({computed:"computeVideoTitleText(data)"}),_.t("design:type",Object)],$W.prototype,"videoTitleText",void 0);_.k([_.X({computed:"computeHasPlaylistThumbnail(data)"}),_.t("design:type",Object)],$W.prototype,"hasPlaylistThumbnail",void 0);_.k([_.X({computed:"computeNavigationEndpoint(data)"}),_.t("design:type",Object)],$W.prototype,"computedNavigationEndpoint",void 0);
_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],$W.prototype,"typographyBump",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("typographyBump"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],$W.prototype,"typographyBumpV2",null);_.k([_.$7("#video-title"),_.t("design:type",HTMLElement)],$W.prototype,"videoTitle",void 0);_.k([_.$7("#video-title-link"),_.t("design:type",HTMLElement)],$W.prototype,"videoTitleLink",void 0);
_.k([_.$7("#thumbnail"),_.t("design:type",HTMLElement)],$W.prototype,"thumbnail",void 0);_.k([_.$7("#dismissible"),_.t("design:type",HTMLElement)],$W.prototype,"JSC$13836_dismissibleMedia",void 0);_.k([_.S("data.menu"),_.t("design:type",Object),_.t("design:paramtypes",[])],$W.prototype,"lazyLoadMenu",null);_.k([_.S("data.menu"),_.t("design:type",Object),_.t("design:paramtypes",[])],$W.prototype,"immediateLoadMenu",null);
_.k([_.i6("entityDrivenState"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$W.prototype,"handleReloadDownloadsInfo",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$W.prototype,"onDataChanged",null);_.k([_.i6("hidden"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$W.prototype,"onHiddenChanged",null);
_.k([_.EM("isDismissed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$W.prototype,"onIsDismissedChanged",null);_.k([_.EM("metadataColor"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$W.prototype,"metadataColorChanged",null);_.k([_.RN("mousedown"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],$W.prototype,"onMouseDown",null);
_.k([_.S("lockupIsHovered"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],$W.prototype,"isHovered",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],$W.prototype,"useAvatar",null);_.k([_.S("data","entitySelectorType"),_.t("design:type",String),_.t("design:paramtypes",[])],$W.prototype,"mediaId",null);$W=_.k([_.b({is:"ytd-rich-grid-media",disableElementRegistration:!0})],$W);
var A3h=_.VE()($W,"ytd-rich-grid-media",function(){if(r36!==void 0)return r36;var E=document.createElement("template");_.G(E,'\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" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="decorated-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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return r36=E},{mode:_.qi("kevlar_poly_si_batch_j072")?1:2});var jEV;var I7=function(){var E=_.r.apply(this,arguments)||this;E.removeMaxWidth=!0;E.insetMetadata=!1;return E};
_.L(I7,_.r);_.l=I7.prototype;_.l.configureRendererStamper=function(){return{innerMenu:EC,outerMenu:Object.assign({},EC,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.onDataChanged=function(){var E,B=((E=this.data)==null?void 0:E.trackingParams)||"";B&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(B));var I;((I=this.dismissActionToReplayEntity)==null?0:I.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13842_inlinePreviewHoverListener=UO({mediaRenderer:this,lockupElement:this.JSC$13842_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:PrD})};
_.l.clearInlinePreviewHoverListeners=function(){var E;(E=this.JSC$13842_inlinePreviewHoverListener)==null||BD(E)};
_.l.onRendererTap=function(){var E,B,I=(E=this.data)==null?void 0:(B=E.serviceEndpoints)==null?void 0:B[0];_.h(I,_.Ms)&&this.componentBehavior.resolveCommand(I)};
_.l.onDetailsClick=function(E){var B,I=(B=this.data)==null?void 0:B.navigationEndpoint;I&&(_.XZ(_.W8(E),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(I))};
_.l.onShow=function(){var E=this.data;E.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(E.onFirstVisibleCommand),delete E.onFirstVisibleCommand)};
_.Up.Object.defineProperties(I7.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var E;return this.insetMetadata?void 0:(E=this.data)==null?void 0:E.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var E;return this.insetMetadata?(E=this.data)==null?void 0:E.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var E=this.data;if(E!=null&&E.badge&&(E=_.h(E.badge,mCt))){var B,I,T;return[{metadataBadgeRenderer:{label:((B=E.label)==null?void 0:(I=B.runs)==null?void 0:I[0].text)||((T=E.label)==null?void 0:T.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var E=this.data;return Object.assign({},E.headline,{accessibility:E.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return this.isSlimShort?(E=this.computedTitle)==null?void 0:(B=E.accessibility)==null?void 0:(I=B.accessibilityData)==null?void 0:I.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.JSC$13842_inlinePreviewHoverListener)==null?0:zK(E))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
I7.prototype.onDataChanged=I7.prototype.onDataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],I7.prototype,"componentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],I7.prototype,"ytdLockupBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],I7.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.GJ),_.t("design:type",Object)],I7.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],I7.prototype,"ytdReduxBehavior",void 0);_.k([_.$7("ytd-thumbnail"),_.t("design:type",HTMLElement)],I7.prototype,"thumbnail",void 0);_.k([_.$7("#dismissible"),_.t("design:type",HTMLElement)],I7.prototype,"JSC$13842_dismissibleMedia",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],I7.prototype,"removeMaxWidth",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],I7.prototype,"insetMetadata",void 0);_.k([_.X(),_.t("design:type",String)],I7.prototype,"dismissedContentId",void 0);_.k([_.X({selectorArgs:["dismissedContentId"],selector:AZG}),_.t("design:type",Object)],I7.prototype,"dismissActionToReplayEntity",void 0);_.k([_.S("insetMetadata"),_.t("design:type",Object),_.t("design:paramtypes",[])],I7.prototype,"thumbnailObjectFit",null);
_.k([_.S("data","insetMetadata"),_.t("design:type",Object),_.t("design:paramtypes",[])],I7.prototype,"innerMenu",null);_.k([_.S("data","insetMetadata"),_.t("design:type",Object),_.t("design:paramtypes",[])],I7.prototype,"outerMenu",null);_.k([_.X(),_.t("design:type",Object)],I7.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Boolean)],I7.prototype,"miniMode",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],I7.prototype,"onDataChanged",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],I7.prototype,"shortsBadges",null);_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],I7.prototype,"isShort",null);
_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],I7.prototype,"isSlimShort",null);_.k([_.S("data","isShort"),_.t("design:type",Object),_.t("design:paramtypes",[])],I7.prototype,"computedTitle",null);_.k([_.S("isSlimShort","computedTitle"),_.t("design:type",Object),_.t("design:paramtypes",[])],I7.prototype,"computedAccessibilityLabel",null);
_.k([_.S("lockupIsHovered"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],I7.prototype,"isHovered",null);I7=_.k([_.b({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],I7);
_.A(I7,"ytd-rich-grid-slim-media",function(){if(jEV!==void 0)return jEV;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return jEV=E},{mode:_.qi("kevlar_poly_si_batch_j063")?1:2});var UwU;var kr6;var Tn=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(Tn,_.r);Tn.prototype.computeIcon=function(E){return E&&E.iconType?"yt-sys-icons:"+E.iconType.toLowerCase():""};
Tn.prototype.onMouseEnter=function(){this.isHovered=!0};
Tn.prototype.onMouseLeave=function(){this.isHovered=!1};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Tn.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Tn.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],Tn.prototype,"isHovered",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Tn.prototype,"darkerDarkTheme",void 0);Tn=_.k([_.b({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Tn);
_.A(Tn,"ytd-expand-on-hover-card-renderer",function(){if(kr6!==void 0)return kr6;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return kr6=E},{mode:1});var tGV,fh6=function(){if(tGV!==void 0)return tGV;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return tGV=E};_.QH("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var e4=function(){var E=_.r.apply(this,arguments)||this;E.compactStyle=!1;E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return E};
_.L(e4,_.r);_.l=e4.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.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"}}}};
_.l.computeHideDot=function(E){return!(E&&E.subscriberCountText&&E.videoCountText)||this.compactStyle};
_.l.hasDualButtons=function(E){return E&&E.purchaseButton&&E.subscribeButton};
_.l.backgroundColorChanged=function(){if(this.data!==void 0){var E=this.data.backgroundColor;this.isDarkTheme&&(E=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=E!=null?_.dE(E):"transparent"}};
_.l.onDarkModeToggledAction=function(E){this.isDarkTheme=E};
_.l.onTap=function(E){var B,I,T=((B=this.data)==null?void 0:B.navigationEndpoint)||((I=this.data)==null?void 0:I.serviceEndpoint);_.h(T,_.Ej)&&(T&&_.Q().resolve(_.Dt).resolveCommand(T,{form:{element:this.hostElement}}),E.preventDefault())};
_.l.computeChannelEndpoint=function(E){return _.h(E,_.Ej)?null:E};
_.l.computeHrefEndpoint=function(E){return _.h(E,_.Ej)?null:this.componentBehavior.computeHref_(E)};
_.l.computeChannelRendererStyle=function(E){return E};
_.l.computeIconSize=function(E){return E?108:136};
_.Up.Object.defineProperties(e4,{template:{configurable:!0,enumerable:!0,get:function(){return fh6()}}});
e4.prototype.backgroundColorChanged=e4.prototype.backgroundColorChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.X_),_.t("design:type",Object)],e4.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],e4.prototype,"componentBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],e4.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],e4.prototype,"isDarkTheme",void 0);_.k([_.X({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.t("design:type",String)],e4.prototype,"channelRendererStyle",void 0);_.k([_.X({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],e4.prototype,"dualButtons",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("enable_desktop_search_bigger_thumbs")}}),
_.t("design:type",Boolean)],e4.prototype,"useBiggerThumbs",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.EF("desktop_search_bigger_thumbs_style")}}),
_.t("design:type",String)],e4.prototype,"biggerThumbStyle",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],e4.prototype,"compactStyle",void 0);_.k([_.EM("data","isDarkTheme"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],e4.prototype,"backgroundColorChanged",null);e4=_.k([_.b({is:"ytd-channel-renderer",disableElementRegistration:!0})],e4);_.A(e4,"ytd-channel-renderer",function(){return fh6()},{mode:1});var VGu;var qPt;_.QH("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var lC=function(){var E=_.r.apply(this,arguments)||this;E.displayItemCount=2;E.collections=_.d("web_modern_collections_v2");E.hasPlaylistThumbnail=!1;E.stackThumbnailSize="large";return E};
_.L(lC,_.r);_.l=lC.prototype;_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.l.computeFirstVideos=function(E,B){return E&&B?E.slice(0,B):[]};
_.l.computeThumbnailWidth=function(E,B){return E?B==="BIG"?500:B==="MASSIVE"?600:B==="MEDIUM"?450:420:360};
_.l.computeThumbnailHeight=function(E,B){return E?B==="BIG"?280:B==="MASSIVE"?337:234:202};
_.l.clearInlinePreviewHoverListeners=function(){var E;(E=this.JSC$13855_inlinePreviewHoverListener)==null||BD(E)};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13855_inlinePreviewHoverListener=UO({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:mYZ,thumbnailElement:this.thumbnail})};
_.l.computeHasPlaylistThumbnail=function(E){var B,I;if((((B=E.thumbnailRenderer)==null?0:B.playlistVideoThumbnailRenderer)||((I=E.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer))&&E.thumbnailOverlays)for(B=0;B<E.thumbnailOverlays.length;B++)if(I=void 0,(I=E.thumbnailOverlays[B])==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Up.Object.defineProperties(lC.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.JSC$13855_inlinePreviewHoverListener)==null?0:zK(E))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
lC.prototype.dataChanged=lC.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],lC.prototype,"ytdLockupBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],lC.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],lC.prototype,"displayItemCount",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("enable_desktop_search_bigger_thumbs")}}),
_.t("design:type",Boolean)],lC.prototype,"useBiggerThumbs",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.EF("desktop_search_bigger_thumbs_style")}}),
_.t("design:type",String)],lC.prototype,"biggerThumbsStyle",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],lC.prototype,"collections",void 0);_.k([_.X({computed:"computeHasPlaylistThumbnail(data)"}),_.t("design:type",Object)],lC.prototype,"hasPlaylistThumbnail",void 0);_.k([_.X(),_.t("design:type",String)],lC.prototype,"stackThumbnailSize",void 0);_.k([_.$7("ytd-thumbnail"),_.t("design:type",HTMLElement)],lC.prototype,"thumbnail",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],lC.prototype,"dataChanged",null);_.k([_.S("lockupIsHovered"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],lC.prototype,"isHovered",null);lC=_.k([_.b({is:"ytd-radio-renderer",disableElementRegistration:!0})],lC);
_.A(lC,"ytd-radio-renderer",function(){if(qPt!==void 0)return qPt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return qPt=E},{mode:_.qi("kevlar_poly_si_batch_j058")?1:2});var FDU;_.QH("itemSectionRenderer","showRenderer","ytd-show-renderer");var cj=function(){return _.r.apply(this,arguments)||this};
_.L(cj,_.r);cj.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
cj.prototype.computeThumbnailWidth=function(E){return E?360:246};
cj.prototype.computeUseProminentThumbs=function(E){return E};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],cj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],cj.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],cj.prototype,"isSearch",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.t("design:type",Boolean)],cj.prototype,"useProminentThumbs",void 0);cj=_.k([_.b({is:"ytd-show-renderer",disableElementRegistration:!0})],cj);
_.A(cj,"ytd-show-renderer",function(){if(FDU!==void 0)return FDU;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return FDU=E},{mode:1});_.QH("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var iC=function(){var E=_.r.apply(this,arguments)||this;E.isRichGrid=!1;return E};
_.L(iC,_.r);iC.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"}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],iC.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],iC.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],iC.prototype,"isRichGrid",void 0);iC=_.k([_.b({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],iC);
_.A(iC,"ytd-feed-entry-renderer",function(){if(VGu!==void 0)return VGu;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return VGu=E},{mode:1});var DwN;var p1=function(){return _.r.apply(this,arguments)||this};
_.L(p1,_.r);p1.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.k([_.g(_.Lz),_.t("design:type",Object)],p1.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],p1.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],p1.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.GP,value:3}),_.t("design:type",Number)],p1.prototype,"itemsPerRow",void 0);
p1=_.k([_.b({is:"ytd-link-card-renderer",disableElementRegistration:!0})],p1);
_.A(p1,"ytd-link-card-renderer",function(){if(DwN!==void 0)return DwN;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return DwN=E},{mode:1});var KDX;var YW=function(){return _.r.apply(this,arguments)||this};
_.L(YW,_.r);_.l=YW.prototype;_.l.configureRendererStamper=function(){return{"data.menu":EC,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.onRendererTap=function(E){if(!this.ytdDismissibleItemBehavior.isDismissed){var B,I=(B=this.data)==null?void 0:B.navigationEndpoint;I&&!_.XZ(_.W8(E),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(I)?_.XZ(_.W8(E),this.hostElement,["A"])||_.$O(this.hostElement,"yt-navigate",{endpoint:I}):this.ytComponentBehavior.resolveCommand(I,{}))}};
_.l.maybeComputeHref=function(E){return this.ytComponentBehavior.computeHref_(E,!0)};
_.l.getNavigationCommand=function(E){return this.isNavigationCommand(E)?E:null};
_.l.isNavigationCommand=function(E){return E?_.h(E,_.pq)||_.h(E,_.kh)||_.h(E,_.JK)?!0:!1:!1};
YW.prototype.onRendererTap=YW.prototype.onRendererTap;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],YW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],YW.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],YW.prototype,"ytComponentBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],YW.prototype,"data",void 0);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],YW.prototype,"onRendererTap",null);YW=_.k([_.b({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],YW);
_.A(YW,"ytd-lumiere-promo-item-image-renderer",function(){if(KDX!==void 0)return KDX;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return KDX=E},{mode:1});var Rql;var a7=function(){return _.r.apply(this,arguments)||this};
_.L(a7,_.r);a7.prototype.computeLandscapeThumbnail=function(){var E;return((E=this.data)==null?void 0:E.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],a7.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],a7.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Boolean)],a7.prototype,"miniMode",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.GP}),_.t("design:type",Number)],a7.prototype,"itemsPerRow",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.t("design:type",Boolean)],a7.prototype,"landscapeThumbnail",void 0);a7=_.k([_.b({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],a7);
_.A(a7,"ytd-lumiere-shelf-details-renderer",function(){if(Rql!==void 0)return Rql;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Rql=E},{mode:_.qi("kevlar_poly_si_batch_j076")?1:2});var EuV;var vj=function(){return _.r.apply(this,arguments)||this};
_.L(vj,_.r);vj.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],vj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],vj.prototype,"data",void 0);vj=_.k([_.b({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],vj);
_.A(vj,"ytd-primetime-promo-details-renderer",function(){if(EuV!==void 0)return EuV;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return EuV=E},{mode:1});var B_$;var yN=function(){return _.r.apply(this,arguments)||this};
_.L(yN,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],yN.prototype,"data",void 0);yN=_.k([_.b({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],yN);
_.A(yN,"ytd-panel-show-style-metadata-renderer",function(){if(B_$!==void 0)return B_$;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return B_$=E},{mode:1});var $pD;var C1=function(){return _.r.apply(this,arguments)||this};
_.L(C1,_.r);_.l=C1.prototype;_.l.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.l.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.l.computeThumbnail=function(E){if(E)return E.smallFormFactorBackgroundThumbnail||E.largeFormFactorBackgroundThumbnail};
_.l.maybeComputeHref=function(E){return this.ytComponentBehavior.computeHref_(E,!0)};
_.l.isNavigationCommand=function(E){return E?_.h(E,_.pq)||_.h(E,_.kh)||_.h(E,_.JK)?!0:!1:!1};
_.l.getNavigationCommand=function(E){return this.isNavigationCommand(E)?E:null};
C1.prototype.onPanelTap=C1.prototype.onPanelTap;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],C1.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],C1.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0,value:!0}),_.t("design:type",Boolean)],C1.prototype,"roundedContainer",void 0);_.k([_.X({reflectToAttribute:!0,value:_.d("web_modern_buttons")}),_.t("design:type",Boolean)],C1.prototype,"modernButtons",void 0);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],C1.prototype,"onPanelTap",null);C1=_.k([_.b({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],C1);
_.A(C1,"ytd-primetime-promo-panel-renderer",function(){if($pD!==void 0)return $pD;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return $pD=E},{mode:1});_.oQ(_.rp(function(E){E=_.XS(E,{data:{},useFullWidth:!1});var B=E.data,I=E.useFullWidth,T=function(){return B().caption},e=function(){return B().image},c=function(){return _.ha(B().onTap)};
E={};E=_.RQ("ytTeaserCardViewModelHost",(E.ytTeaserCardViewModelUseFullWidth=function(){return I()},E));
return _.w("teaser-card-view-model",{class:E},_.w(_.wU,{cond:function(){return c()},
then:function(){return _.w(LoR,{className:"ytTeaserCardViewModelLink",command:c,forceNewState:!0,useATagConfig:!0},_.w("div",{class:"ytTeaserCardViewModelImageContainer"},_.w(_.wU,{cond:e,then:function(Y){return _.w(_.Ja,{data:Y,className:"ytTeaserCardViewModelImage",alt:""})}})),_.w("p",{class:"ytTeaserCardViewModelCaption"},T))}}))},"yb"),"teaser-card-view-model",{props:{data:_.Jh,
useFullWidth:_.Jh}});var IoU=new _.Dr("RICH_GRID_VIDEO_RENDERER_TOKEN");_.oQ(_.rp(function(E){var B=E.data;var I=E.showYtInteractionInContent;var T=function(){return!!B().selectableFeedback};
E=_.p(_.lQ(!1,void 0,"nblDw"));var e=E.next().value,c=E.next().value;_.uW(function(){var m=_.h(B().primaryButton,_.uO);(m==null?0:m.isToggled)&&c(m.isToggled)});
E=_.TI(function(m){if(!T())return!1;if(e()){var u;var x=(u=B().selectableFeedback)==null?void 0:u.onDeselect}else{var M;x=(M=B().selectableFeedback)==null?void 0:M.onSelect}x&&_.xg(x,{form:{element:m.target}});c(!e());if(m=_.h(B().primaryButton,_.uO))m.isToggled=e();return!1});
var Y=function(){if(!T()){var m,u=(m=B().loggingDirectives)==null?void 0:m.trackingParams;u&&_.cx(_.Q().resolve(_.pj),u)}},v=_.SwF(),y=function(){var m;
return T()?(m=B().selectableFeedback)==null?void 0:m.a11yLabel:void 0},Z=function(){return T()?{toggled:e()}:{}},P=_.Q().resolve(_.Fx(IoU)),z={};
return _.w("yt-feedback-item-renderer",{class:_.RQ("ytFeedbackItemRendererHost",(z.ytFeedbackItemRendererSelectableFeedback=T,z)),"on:click":E,"on:keydown":v,title:y,"aria-label":y,"aria-pressed":function(){return T()?e():void 0},
tabindex:function(){return T()?0:void 0},
role:function(){return T()?"button":void 0}},_.w("div",{class:"ytFeedbackItemRendererContentContainer"},_.w(_.hM,{data:function(){return B().content}},{videoRenderer:function(m){return _.w(P,{data:m.data,
showYtInteraction:I})},
lockupViewModel:function(m){return _.w(_.tF,{data:m.data,containerType:2})}})),_.w("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.w(_.hM,{data:function(){return B().primaryButton}},{toggleButtonViewModel:function(m){return _.w(_.Le,{data:m.data,
buttonShapeOverrides:Z,disableExplicitClickLogging:!0,onToggle:Y})}})))},"zb"),"yt-feedback-item-renderer",{props:{data:_.Jh,
showYtInteractionInContent:_.Jh}});var wu=function(){var E=_.r.apply(this,arguments)||this;E.isShortsGrid=!1;E.isCompactGrid=!1;E.isShortsPanelGrid=!1;E.renderedFromRichGrid=!1;E.isInFirstColumn=!1;E.noGutterMargins=!1;E.isInlineGroupItem=!1;E.insetMetadata=!1;E.noBottomMarginInAds=_.d("web_no_bottom_margin_for_home_ad_buttons");E.force16By9ThumbnailAspectRatio=!1;E.useCompactList=!1;E.containerType=2;E.thumbnailTargetWidth=9999;E.isResponsiveGrid=!1;E.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};E.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};E.hoverListener=E.hover.bind(E);E.leaveListener=E.leave.bind(E);E.highlighted=!1;E.JSC$13890_unsubscribeFromInlinePreviewIsActive=function(){};
return E};
_.L(wu,_.r);_.l=wu.prototype;_.l.computeContainerType=function(){return this.useCompactList?3:2};
_.l.computeThumbnailTargetWidth=function(){var E;return(E=this.itemWidth)!=null?E:9999};
_.l.updateIsInFirstColumn=function(){var E;this.isInFirstColumn=((E=this.data)==null?void 0:E.colIndex)===0};
_.l.observerContainerType=function(){if(this.lockup){var E=this.lockup;E.containerType=this.containerType;E.sizing=this.sizing;E.typographyBump=this.typographyBump;E.itemWidth=this.itemWidth}this.richGridMedia&&_.d("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.d("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.l.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.l.leave=function(E){E=E.relatedTarget;var B=document.querySelector("ytd-video-preview");E&&B&&_.fq(B).contains(E)||this.removeAndCleanupHighlight()};
_.l.hover=function(){var E;if(!this.highlighted&&(!_.d("web_enable_rich_item_on_focus_effect")||(E=this.data)!=null&&E.onFocusEffect)){var B,I;((B=this.data)==null?void 0:(I=B.onFocusEffect)==null?void 0:I.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(E=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:E,boxShadow:"0 0 0 10px "+E}));var T,e;((T=this.data)==null?void 0:(e=T.onFocusEffect)==null?void 0:
e.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.l.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};
_.l.registerHoverHighlightListeners=function(){var E=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13890_unsubscribeFromInlinePreviewIsActive=_.C_(_.t2(),_.dTc,function(B){E.highlighted&&!B&&E.removeAndCleanupHighlight()})};
_.l.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13890_unsubscribeFromInlinePreviewIsActive()};
_.l.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.l.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.l.getBackgroundColor=function(){var E,B,I=(E=this.data)==null?void 0:(B=E.onFocusEffect)==null?void 0:B.onFocusColor;if(I){if(document.documentElement.hasAttribute("dark")&&(I==null?0:I.darkTheme))return _.dE(I==null?void 0:I.darkTheme);if(I==null?0:I.lightTheme)return _.dE(I==null?void 0:I.lightTheme)}};
_.l.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var E=_.nC(),B,I,T;E&&((B=this.data)==null?0:B.trackingParams)&&((I=this.data)==null?void 0:I.colIndex)!=null&&((T=this.data)==null?void 0:T.rowIndex)!=null&&_.UK(E,_.Yg(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.l.isSlimMediaRenderer=function(E){return!!_.h(E==null?void 0:E.content,_.Fn6)||!!_.h(E==null?void 0:E.content,qHX)||!!_.h(E==null?void 0:E.content,_.HW)||!!_.h(E==null?void 0:E.content,Z2Z)};
_.l.isPostRenderer=function(){var E,B;return!!_.h((E=this.data)==null?void 0:E.content,Twt)||!!_.h((B=this.data)==null?void 0:B.content,emR)};
_.l.computeIsGameCardShelf=function(){var E;return!!_.h((E=this.data)==null?void 0:E.content,TCr)};
_.l.computeIsMiniGameCardShelf=function(){var E,B;return!!_.h((E=this.data)==null?void 0:E.content,Qwt)||!!_.h((B=this.data)==null?void 0:B.content,d6r)};
_.l.computeIsTeaserCard=function(){var E;return!!_.h((E=this.data)==null?void 0:E.content,d6r)};
_.l.computeIsSelectableFeedbackItem=function(){var E,B;return!((B=_.h((E=this.data)==null?void 0:E.content,_.swt))==null||!B.selectableFeedback)};
_.l.computeContainsLumierePosters=function(){var E,B;return((B=_.h((E=this.data)==null?void 0:E.content,wTD))==null?void 0:B.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.l.computeIsExpandOnHoverCardShelf=function(){var E;return!!_.h((E=this.data)==null?void 0:E.content,Cth)};
_.l.computeIsLinkCardShelf=function(){var E;return!!_.h((E=this.data)==null?void 0:E.content,yhz)};
_.l.computeIsReelItemStyleAvatarCircle=function(E){var B;return((B=_.h(E==null?void 0:E.content,_.HW))==null?void 0:B.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.l.computeIsLinkCardFullWidth=function(E,B){var I;return((I=_.h(E==null?void 0:E.content,yhz))==null?void 0:I.useFullWidth)||B<=2};
_.Up.Object.defineProperties(wu.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.d("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.d("web_enable_rich_item_on_focus_effect")||_.d("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.d("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.d("web_shorts_2_by_3_lockups_study")||_.d("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
wu.prototype.richGridHoverHighlightChanged=wu.prototype.richGridHoverHighlightChanged;wu.prototype.observerContainerType=wu.prototype.observerContainerType;wu.prototype.updateIsInFirstColumn=wu.prototype.updateIsInFirstColumn;_.k([_.g(_.Lz),_.t("design:type",Object)],wu.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],wu.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],wu.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],wu.prototype,"ytdLockupBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],wu.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.t("design:type",Boolean)],wu.prototype,"isPost",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.t("design:type",Boolean)],wu.prototype,"containsLumierePosters",void 0);_.k([_.X({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.t("design:type",Boolean)],wu.prototype,"isSlimMedia",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.t("design:type",Boolean)],wu.prototype,"isGameCardShelf",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.t("design:type",Boolean)],wu.prototype,"isMiniGameCardShelf",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.t("design:type",Boolean)],wu.prototype,"isTeaserCard",void 0);_.k([_.X({computed:"computeIsSelectableFeedbackItem(data)"}),_.t("design:type",Boolean)],wu.prototype,"isSelectableFeedbackItem",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wu.prototype,"isShortsGrid",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],wu.prototype,"isSlimGrid",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wu.prototype,"isCompactGrid",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wu.prototype,"isShortsPanelGrid",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.t("design:type",Boolean)],wu.prototype,"isExpandOnHoverCardShelf",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.t("design:type",Boolean)],wu.prototype,"isLinkCardShelf",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.GP,value:3}),_.t("design:type",Number)],wu.prototype,"itemsPerRow",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wu.prototype,"renderedFromRichGrid",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wu.prototype,"isInFirstColumn",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wu.prototype,"noGutterMargins",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wu.prototype,"isInlineGroupItem",void 0);_.k([_.X(),_.t("design:type",Object)],wu.prototype,"insetMetadata",void 0);
_.k([_.X(),_.t("design:type",Object)],wu.prototype,"noBottomMarginInAds",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],wu.prototype,"isShelfItem",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.t("design:type",Boolean)],wu.prototype,"isReelItemStyleAvatarCircle",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.t("design:type",Boolean)],wu.prototype,"isLinkCardFullWidth",void 0);
_.k([_.X(),_.t("design:type",Object)],wu.prototype,"force16By9ThumbnailAspectRatio",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wu.prototype,"useCompactList",void 0);_.k([_.X(),_.t("design:type",String)],wu.prototype,"sizing",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],wu.prototype,"typographyBump",void 0);_.k([_.X(),_.t("design:type",Number)],wu.prototype,"itemWidth",void 0);_.k([_.X(),_.t("design:type",Boolean)],wu.prototype,"isHomeShelf",void 0);
_.k([_.$7("yt-lockup-view-model"),_.t("design:type",HTMLElement)],wu.prototype,"lockup",void 0);_.k([_.$7("ytd-rich-grid-media"),_.t("design:type",HTMLElement)],wu.prototype,"richGridMedia",void 0);_.k([_.$7("ytd-ad-slot-renderer"),_.t("design:type",HTMLElement)],wu.prototype,"adSlotRenderer",void 0);_.k([_.X({computed:"computeContainerType(useCompactList)"}),_.t("design:type",Object)],wu.prototype,"containerType",void 0);
_.k([_.X({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.t("design:type",Object)],wu.prototype,"thumbnailTargetWidth",void 0);_.k([_.S("showYtInteractionOnRichItem"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wu.prototype,"showYtInteractionOnRichGridMedia",null);_.k([_.S("isSelectableFeedbackItem","richGridHoverHighlight"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wu.prototype,"showYtInteractionOnRichItem",null);
_.k([_.S("typographyBump"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wu.prototype,"richTypographyBump",null);_.k([_.X({reflectToAttribute:!0}),_.S("isShortsGrid","isCompactGrid"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wu.prototype,"richGridHoverHighlight",null);_.k([_.S("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.t("design:type",Number),_.t("design:paramtypes",[])],wu.prototype,"shortsLockupViewModelAspectRatio",null);
_.k([_.S("isInlineGroupItem"),_.t("design:type",Number),_.t("design:paramtypes",[])],wu.prototype,"shortsLockupViewModelScrimStyle",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wu.prototype,"updateIsInFirstColumn",null);_.k([_.EM("containerType","sizing","typographyBump"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wu.prototype,"observerContainerType",null);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wu.prototype,"isResponsiveGrid",void 0);_.k([_.X(),_.t("design:type",Object)],wu.prototype,"lockupExperiments",void 0);_.k([_.EM("richGridHoverHighlight"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wu.prototype,"richGridHoverHighlightChanged",null);wu=_.k([_.b({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],wu);
_.T_$=_.VE()(wu,"ytd-rich-item-renderer",function(){if(UwU===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);UwU=E}E=UwU;return E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var f6F={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var BLG=_.jj(_.yu("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var eNV;var ZL=function(){var E=_.r.apply(this,arguments)||this;E.useResponsiveGrid=!1;E.hidden=!1;E.standardShelfMargins=_.d("web_rich_grid_standard_shelf_margins");E.isShowMoreHidden=!1;E.isExpanded=!1;E.isInnerShelf=!1;E.allVideosCount=0;E.allPlaylistCount=0;E.haveSmartDownloadsCompleted=!1;E.isShowLessHidden=!0;E.restrictContentsOverflow=!1;E.firstShownIndex=0;E.horizontalOffset=0;E.atEnd=!0;E.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};E.nextClick=function(){var B;(B=E.data)!=null&&B.contents&&(E.firstShownIndex+=E.currentElementsPerRow,E.updateHorizontalOffset(),E.updateHorizontalItemVisibility())};
E.previousClick=function(){var B;(B=E.data)!=null&&B.contents&&(E.firstShownIndex-=E.currentElementsPerRow,E.updateHorizontalOffset(),E.updateHorizontalItemVisibility())};
return E};
_.L(ZL,_.r);_.l=ZL.prototype;
_.l.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.HA("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.l.attached=function(){this.requestElementsPerRow()};
_.l.refreshGridLayoutNew=function(){var E;if((E=this.data)!=null&&E.contents&&this.containerWidth){var B;((B=this.data.responsiveContainerConfiguration)==null?0:B.responsiveSize)?(E=_.TLc(this.data.responsiveContainerConfiguration,this.containerWidth),E=_.tM(Object.assign({},E,{standardUnitMinWidth:this.standardUnitMinWidth}))):E=_.tM({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=E.typographyBump;if(this.elementsPerRow!==
E.numItems||this.gutter!==E.gutter)this.elementsPerRow=E.numItems,this.gutter=E.gutter,this.itemWidth=E.itemWidth,_.Dk(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":E.gutter+"px"})}};
_.l.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.d("web_use_layout_library_for_rich_grid_disable_shorts"))){var E=_.pKJ(this.data);if(E)return E;if(_.d("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.l.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.d("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.l.computeButton=function(E){var B=_.h(E,_.NT);E=Object.assign({},_.h(E,_.NT));return B?(E.text||(E.text={simpleText:E.tooltip}),E.style="STYLE_MONO_OUTLINE",E.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",E):B};
_.l.onRowIndexChange=function(){var E=_.nC(),B,I;((B=this.data)==null?0:B.trackingParams)&&((I=this.data)==null?void 0:I.rowIndex)!=null&&E&&_.UK(E,_.Yg(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.l.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var E,B=((E=this.getRichItemRenderers()[0])==null?void 0:E.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*B;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.l.requestElementsPerRow=function(){_.$O(this.hostElement,"yt-request-elements-per-row")};
_.l.onUpdateElementsPerRowAction=function(E,B,I,T,e,c){if(this.containerWidth!==c&&(this.containerWidth=c,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&E&&B&&I&&T&&e&&(this.elementsPerRow!==E||this.postsPerRow!==B||this.slimItemsPerRow!==I||this.gameCardsPerRow!==T||this.miniGameCardsPerRow!==e)&&(this.elementsPerRow=E,this.postsPerRow=B,this.slimItemsPerRow=I,this.gameCardsPerRow=T,this.miniGameCardsPerRow=e,this.updateItemVisibility())};
_.l.getRichItemRenderers=function(){return _.n(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.l.updateItemVisibility=function(){var E=this;if(this.data&&this.data.contents){var B=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(T,e){var c;((c=E.data)==null?0:c.isExpanded)?(T.hidden=e>B-1,T.ytRendererBehavior.markDirty()):T.hidden=e>E.currentElementsPerRow-1||e>B-1});
var I=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||I||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||I||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.l.setHeightToSingleRow=function(){var E=this.getRichItemRenderers(),B=Number.parseInt(getComputedStyle(E[0]).marginBottom,10)||0;E=E.slice(0,this.currentElementsPerRow).reduce(function(I,T){return Math.max(I,T.getBoundingClientRect().height+B)},0);
this.contents.style.height=E+"px"};
_.l.focusNextExpandedItem=function(){var E;((E=this.data)==null?0:E.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.l.focusItem=function(E,B){var I=this.getRichItemRenderers();if(I[E]&&(E=I[E].querySelector(".focus-on-expand"))){if(B){var T;(T=I[this.currentElementsPerRow])==null||T.scrollIntoView({behavior:"smooth",block:"center"})}E.focus({preventScroll:!0})}};
_.l.onDataChange=function(){var E=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.AJ(this,function(){E.updateItemVisibility()});
var B;if((B=this.data)==null?0:B.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Dk(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),B=0;B<this.data.contents.length;B++){var I=_.h(this.data.contents[B],_.xY)||{};I.colIndex=B;I.rowIndex=this.data.rowIndex}};
_.l.handleRerenderDownloadsData=function(){_.d("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())};
_.l.blockInlinePreview=function(E){var B=this,I;return _.a(function(T){(I=B.inlinePreviewIsEnabled)&&B.ytdReduxBehavior.dispatch(_.Ff$(!1));return T.return(new Promise(function(e){E(function(){I&&B.ytdReduxBehavior.dispatch(_.Ff$(!0));e()})}))})};
_.l.expandShelf=function(){var E=this;if(this.data){var B,I=(B=_.h(this.data.showMoreButton,_.NT))==null?void 0:B.trackingParams;I&&_.cx(_.lu(),I);this.data.isExpanded=!0;this.blockInlinePreview(function(T){E.setHeightToSingleRow();E.updateItemVisibility();E.contents.style.height=E.contents.scrollHeight+"px";_.Ll.addJob(function(){E.contents.style.height="auto";E.focusNextExpandedItem();T()},2,200)})}};
_.l.collapseShelf=function(){var E=this;return _.a(function(B){if(B.nextAddress==1){if(!E.data)return B.return();E.data.isExpanded=!1;return _.C(B,E.blockInlinePreview(function(I){E.contents.style.height=E.contents.scrollHeight+"px";E.setHeightToSingleRow();_.Ll.addJob(function(){E.updateItemVisibility();E.contents.style.height="auto";I()},2,200)}),2)}_.$O(E.hostElement,"yt-rich-shelf-renderer-collapse",E.data.trackingParams);
E.focusItem(0,!1);_.ER(B)})};
_.l.updateArrowButtonStatus=function(){var E=this.getRichItemRenderers().length;if(!_.d("web_rich_shelf_renderer_use_data_contents_killswitch")){var B,I;E=((B=this.data)==null?void 0:(I=B.contents)==null?void 0:I.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=E};
_.l.onChildElementFocus=function(E){this.hasChevronButtons&&(E=E.target.closest("#contents > *"),this.contents.contains(E)&&(E.offsetLeft<this.horizontalOffset?this.previousClick():E.offsetLeft+E.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.l.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.HA("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.l.updateHorizontalOffset=function(){var E=this.getRichItemRenderers(),B=E.length;if(!_.d("web_rich_shelf_renderer_use_data_contents_killswitch")){var I,T;B=((I=this.data)==null?void 0:(T=I.contents)==null?void 0:T.length)||0}var e;E=((e=E[0])==null?void 0:e.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>B?this.firstShownIndex=B-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*E};
_.l.isSlimMediaShelfRenderer=function(){var E,B,I,T=(I=_.h((E=this.data)==null?void 0:(B=E.contents)==null?void 0:B[0],_.xY))==null?void 0:I.content;return!!(_.h(T,_.Fn6)||_.h(T,qHX)||_.h(T,_.HW)||_.h(T,Z2Z))};
_.l.isGameCardShelf=function(){var E,B,I,T=(I=_.h((E=this.data)==null?void 0:(B=E.contents)==null?void 0:B[0],_.xY))==null?void 0:I.content;return!!_.h(T,TCr)};
_.l.isGnomeShelf=function(){var E,B,I,T=(I=_.h((E=this.data)==null?void 0:(B=E.contents)==null?void 0:B[0],_.xY))==null?void 0:I.content;return!!_.h(T,_.swt)};
_.l.isMiniGameCardShelf=function(){var E,B,I,T=(I=_.h((E=this.data)==null?void 0:(B=E.contents)==null?void 0:B[0],_.xY))==null?void 0:I.content;return!!_.h(T,Qwt)||!!_.h(T,d6r)};
_.l.hasGameBoxArtAvatarStyle=function(){var E;return((E=this.data)==null?void 0:E.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.l.hasRoundedGameBoxArtAvatarStyle=function(){var E;return((E=this.data)==null?void 0:E.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.l.isShortsShelf=function(){var E,B,I,T=(I=_.h((E=this.data)==null?void 0:(B=E.contents)==null?void 0:B[0],_.xY))==null?void 0:I.content;return!!_.h(T,_.HW)||!!_.h(T,Z2Z)};
_.l.isPostShelfRenderer=function(){var E,B,I,T=(I=_.h((E=this.data)==null?void 0:(B=E.contents)==null?void 0:B[0],_.xY))==null?void 0:I.content;return!(!_.h(T,Twt)&&!_.h(T,emR))};
_.l.isLumiereShelf=function(){var E,B,I=_.h((E=this.data)==null?void 0:(B=E.contents)==null?void 0:B[0],_.xY);return!!_.h(I==null?void 0:I.content,wTD)};
_.l.isLumiereShelfWithPosters=function(){var E,B,I=_.h((E=this.data)==null?void 0:(B=E.contents)==null?void 0:B[0],_.xY),T;return((T=_.h(I==null?void 0:I.content,wTD))==null?void 0:T.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.l.isExpandOnHoverCardShelf=function(){var E,B,I,T=(I=_.h((E=this.data)==null?void 0:(B=E.contents)==null?void 0:B[0],_.xY))==null?void 0:I.content;return!!_.h(T,Cth)};
_.l.computeHasFeaturedBadge=function(){var E,B,I=_.h((E=this.data)==null?void 0:(B=E.badges)==null?void 0:B[0],_.hKr);return I?I.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.l.computeHasPaygatedFeaturedBadge=function(){var E,B,I=_.h((E=this.data)==null?void 0:(B=E.badges)==null?void 0:B[0],_.hKr);return I?(I==null?void 0:I.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.l.computeHeaderHidden=function(){var E,B,I,T,e,c;return!((E=this.data)==null?0:E.icon)&&!((B=this.data)==null?0:B.title)&&!((I=this.data)==null?0:I.subtitle)&&!((T=this.data)==null?0:T.thumbnail)&&!((e=this.data)==null?0:e.badges)&&!((c=this.data)==null?0:c.menu)};
_.l.showCtaButton=function(){var E;return!((E=this.data)==null||!E.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.l.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.l.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.l.computeForce16By9ThumbnailAspectRatio=function(){var E,B;return((E=this.data)==null?void 0:(B=E.responsiveContainerConfiguration)==null?void 0:B.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.l.onSectionReactiveDismissal=function(E,B,I){var T,e;var c=(T=this.data)==null?void 0:(e=T.targetingContext)==null?void 0:e.targetGroupId;this&&c&&B.targetGroupId&&c.includes(B.targetGroupId)?(T=this.rowIndex,E=T===void 0?!1:!(B.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&T<=E)):E=!1;E&&(this.hidden=I)};
_.Up.Object.defineProperties(ZL.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var E=this.elementsPerRow;this.isPostShelfRenderer()?E=this.postsPerRow:this.isSlimMediaShelfRenderer()?E=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?E=this.slimItemsPerRow-1:this.isGameCardShelf()?E=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(E=this.miniGameCardsPerRow);return E}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.d("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var E,B;return!((E=this.data)==null||!E.previousButton)&&!((B=this.data)==null||!B.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 E;return((E=_.Q().resolve(_.oS).getCurrentPage())==null?void 0:E.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T;return!((E=this.data)==null?0:(B=E.thumbnail)==null?0:(I=B.accessibility)==null?0:(T=I.accessibilityData)==null?0:T.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
ZL.prototype.onChildElementFocus=ZL.prototype.onChildElementFocus;ZL.prototype.handleRerenderDownloadsData=ZL.prototype.handleRerenderDownloadsData;ZL.prototype.onDataChange=ZL.prototype.onDataChange;ZL.prototype.onRowIndexChange=ZL.prototype.onRowIndexChange;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ZL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.GJ),_.t("design:type",Object)],ZL.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],ZL.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],ZL.prototype,"ytdReduxBehavior",void 0);_.k([_.X({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.t("design:type",Object)],ZL.prototype,"useResponsiveGrid",void 0);_.k([_.X(),_.t("design:type",Object)],ZL.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Number)],ZL.prototype,"standardUnitMinWidth",void 0);_.k([_.X({reflectToAttribute:!0,value:3}),_.t("design:type",Number)],ZL.prototype,"elementsPerRow",void 0);_.k([_.X({value:3}),_.t("design:type",Number)],ZL.prototype,"postsPerRow",void 0);_.k([_.X({value:6}),_.t("design:type",Number)],ZL.prototype,"slimItemsPerRow",void 0);_.k([_.X({value:6}),_.t("design:type",Number)],ZL.prototype,"gameCardsPerRow",void 0);
_.k([_.X({value:6}),_.t("design:type",Number)],ZL.prototype,"miniGameCardsPerRow",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ZL.prototype,"hidden",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ZL.prototype,"standardShelfMargins",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ZL.prototype,"isShowMoreHidden",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ZL.prototype,"isExpanded",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ZL.prototype,"isInnerShelf",void 0);_.k([_.X({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.t("design:type",Boolean)],ZL.prototype,"isShorts",void 0);_.k([_.X({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.t("design:type",Boolean)],ZL.prototype,"isLumiere",void 0);_.k([_.X({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.t("design:type",Boolean)],ZL.prototype,"hasBoxArtThumbnailStyle",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.t("design:type",Boolean)],ZL.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.t("design:type",Boolean)],ZL.prototype,"hasFeaturedBadge",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.t("design:type",Boolean)],ZL.prototype,"hasPaygatedFeaturedBadge",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.t("design:type",Boolean)],ZL.prototype,"isHeaderHidden",void 0);_.k([_.X({selector:_.OUF}),_.t("design:type",Object)],ZL.prototype,"allVideosCount",void 0);_.k([_.X({selector:InB}),_.t("design:type",Object)],ZL.prototype,"allPlaylistCount",void 0);_.k([_.X({selector:rBJ}),_.t("design:type",Object)],ZL.prototype,"haveSmartDownloadsCompleted",void 0);
_.k([_.X({selectorArgs:["entitySelectorType"],selector:function(E,B){if(_.d("kevlar_modern_downloads_page")&&B&&B!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var I=E.entities;switch(B){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":B=_.s3(I);E=hC(B);var T=_.PP(B);I=_.L9(I);I=_.KO(q2B(T,I,B.length));return{contents:E,subtitle:I};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return I=_.s3(I),{contents:hC(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return I=
_.um(I),{contents:hC(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return I=_.l_G(I),{contents:hC(I)};default:_.OG(new _.P7("Error: entitySelectorType defined but not matched in selector.",E,B))}}}}),
_.t("design:type",Object)],ZL.prototype,"entityDrivenRichShelfData",void 0);_.k([_.X({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.t("design:type",Boolean)],ZL.prototype,"hasTopCtaButton",void 0);_.k([_.X({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.t("design:type",Boolean)],ZL.prototype,"hasBottomCtaButton",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.t("design:type",Boolean)],ZL.prototype,"force16By9ThumbnailAspectRatio",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ZL.prototype,"isShowLessHidden",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ZL.prototype,"restrictContentsOverflow",void 0);_.k([_.X({selector:_.hki}),_.t("design:type",Boolean)],ZL.prototype,"inlinePreviewIsEnabled",void 0);
_.k([_.X({computed:"computeSizing(data)"}),_.t("design:type",String)],ZL.prototype,"sizing",void 0);_.k([_.X(),_.t("design:type",Boolean)],ZL.prototype,"typographyBump",void 0);_.k([_.X(),_.t("design:type",Number)],ZL.prototype,"itemWidth",void 0);_.k([_.X(),_.t("design:type",Object)],ZL.prototype,"firstShownIndex",void 0);_.k([_.X(),_.t("design:type",Object)],ZL.prototype,"horizontalOffset",void 0);_.k([_.X(),_.t("design:type",Object)],ZL.prototype,"atEnd",void 0);
_.k([_.$7("#contents"),_.t("design:type",HTMLElement)],ZL.prototype,"contents",void 0);_.k([_.EM("data.rowIndex"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ZL.prototype,"onRowIndexChange",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ZL.prototype,"onDataChange",null);
_.k([_.EM("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ZL.prototype,"handleRerenderDownloadsData",null);_.k([_.RN("focusin"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],ZL.prototype,"onChildElementFocus",null);_.k([_.X({reflectToAttribute:!0}),_.S("data","isHomePage"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ZL.prototype,"isTruncated",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ZL.prototype,"hideBottomDivider",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],ZL.prototype,"hasChevronButtons",null);_.k([_.S("firstShownIndex"),_.t("design:type",Object),_.t("design:paramtypes",[])],ZL.prototype,"previousButtonOverride",null);
_.k([_.S("atEnd"),_.t("design:type",Object),_.t("design:paramtypes",[])],ZL.prototype,"nextButtonOverride",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ZL.prototype,"isHomePage",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ZL.prototype,"thumbnailAriaHidden",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ZL.prototype,"initiallyIsExpanded",null);
_.k([_.S("data"),_.t("design:type",String),_.t("design:paramtypes",[])],ZL.prototype,"entitySelectorType",null);ZL=_.k([_.b({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],ZL);
_.loh=_.VE()(ZL,"ytd-rich-shelf-renderer",function(){if(eNV===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);eNV=E}E=eNV;return E},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var c8R;_.oQ(UYu,"yt-slimline-survey-view-model",{props:{data:_.Jh}});var Pj=function(){var E=_.r.apply(this,arguments)||this;E.tileLottieAnimationRef={};E.backgroundLottieAnimationRef={};E.isOnHoverBehaviorForLottieEnabled=!0;E.useBiggerShowcaseImage=_.d("enable_desktop_search_bigger_thumbs");E.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return E};
_.L(Pj,_.r);_.l=Pj.prototype;_.l.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.l.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.l.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var E=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);E!==this.hasTile&&this.set("hasTile",E);E=this.hasLogo(this.data)||!!this.data.badgeText;E!==this.hasMetadata&&this.set("hasMetadata",E);E=this.data.overflowButton?!1:E;E!==this.showLogoImage&&this.set("showLogoImage",E);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.l.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.l.currentColorChanged=function(){this.updateButtonPalette()};
_.l.computeBackgroundStyle=function(E){if(E&&this.data){var B=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.jO((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&B.push('background-image: url("'+I+'");')}var T;((T=E.basicColorData)==null?void 0:T.backgroundColor)!==void 0&&B.push("background-color: "+_.hR(E.basicColorData.backgroundColor)+";");return B.join("")}};
_.l.onDarkModeToggledAction=function(E){E!==this.isDarkTheme&&this.set("isDarkTheme",E)};
_.l.getCurrentLogo=function(E,B){if(E)return B?E.darkLogoImage:E.lightLogoImage};
_.l.getCurrentStaticTileImage=function(E,B){if(this.hasStaticTile(E))return E.darkTileImage?B?E.darkTileImage:E.tileImage:E.tileImage};
_.l.computeTitleStyle=function(E){if(this.data&&this.data.title&&E&&E.basicColorData&&E.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.dE(E.basicColorData.foregroundTitleColor)+";"};
_.l.computeSubtitleStyle=function(E){if(this.data&&this.data.subtitle&&E&&E.basicColorData&&E.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.dE(E.basicColorData.foregroundBodyColor)+";"};
_.l.computeSupplementalStyle=function(E){if(this.data&&this.data.supplementalText&&E&&E.supplementalTextColor!==void 0)return E=_.dE(E.supplementalTextColor),"color:"+E+";--yt-endpoint-color:"+E+";--yt-endpoint-hover-color:"+E+";--yt-endpoint-visited-color:"+E+";--yt-formatted-string-bold-font-weight:700;"};
_.l.computeBadgeStyle=function(E){if(this.data&&this.data.badgeText&&E&&E.basicColorData&&E.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.dE(E.basicColorData.foregroundActivatedColor)+";"};
_.l.computeDismissIconStyle=function(E){var B,I;if((E==null?0:(B=E.dismissButtonColorData)==null?0:B.foregroundTitleColor)&&(E==null?0:(I=E.dismissButtonColorData)==null?0:I.backgroundColor))return"--yt-button-color:"+_.hR(E.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.hR(E.dismissButtonColorData.backgroundColor)+";"};
_.l.computeOverflowIconStyle=function(E){var B,I;if((E==null?0:(B=E.dismissButtonColorData)==null?0:B.foregroundTitleColor)&&(E==null?0:(I=E.dismissButtonColorData)==null?0:I.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.hR(E.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.hR(E.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.hR(E.dismissButtonColorData.foregroundTitleColor)+";"};
_.l.computeBannerStyle=function(E){return E?E.toLowerCase().replace(/_/g,"-"):""};
_.l.computeLocation=function(E){switch(E==null?void 0:E.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.l.shouldShowTileSection=function(E,B,I){return!this.shouldExpandLogo(E,B,I)&&B};
_.l.shouldShowExpandedLogoSection=function(E,B,I){return this.shouldExpandLogo(E,B,I)&&E!==void 0&&this.hasLogo(E)};
_.l.shouldExpandLogo=function(E,B,I){return E&&B?!1:I>=2};
_.l.hasStaticTile=function(E){return!(E==null||!E.tileImage)};
_.l.hasTileLottie=function(E){var B;return!!(E==null?0:(B=E.tileLottie)==null?0:B.url)};
_.l.hasLogo=function(E){return this.getCurrentLogo(E,this.isDarkTheme)!==void 0};
_.l.getLogoHeight=function(E){return this.logoWithPadding(E)?"26":"20"};
_.l.getExpandedLogoHeight=function(E){return this.logoWithPadding(E)?"31":"24"};
_.l.getLogoImageId=function(E){return this.logoWithPadding(E)?"logo-image-with-padding":"logo-image"};
_.l.hasBackgroundLottie=function(E){var B;return!!(E==null?0:(B=E.backgroundLottie)==null?0:B.url)};
_.l.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var E,B;(E=this.tileLottieAnimationRef)==null||(B=E.lottieEl)==null||B.play();var I,T;(I=this.backgroundLottieAnimationRef)==null||(T=I.lottieEl)==null||T.play()}};
_.l.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var E,B;(E=this.tileLottieAnimationRef)==null||(B=E.lottieEl)==null||B.pause();var I,T;(I=this.backgroundLottieAnimationRef)==null||(T=I.lottieEl)==null||T.pause()}};
_.l.pauseLottie=function(){var E,B;(E=this.tileLottieAnimationRef)==null||(B=E.lottieEl)==null||B.pause();var I,T;(I=this.backgroundLottieAnimationRef)==null||(T=I.lottieEl)==null||T.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.l.performPrimaryButtonAction=function(){var E,B,I;((E=this.data)==null?0:(B=E.primaryButton)==null?0:(I=B.buttonRenderer)==null?0:I.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.l.requestElementsPerRow=function(){_.$O(this.hostElement,"yt-request-elements-per-row")};
_.l.updateButtonPalette=function(){if(this.data&&this.currentColorData){var E;((E=this.data.dismissButton)==null?0:E.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 B;if((B=this.data.primaryButton)==null?0:B.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 I;if((I=this.data.secondaryButton)==
null?0:I.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 T;((T=this.data.primaryButton)==null?0:T.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var e;((e=this.data.secondaryButton)==null?0:e.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.l.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var E=this.getTileLottieDataBasedOnTheme(),B,I;if(E.url!==((B=this.tileLottiePlayerProps)==null?void 0:(I=B.animationConfig)==null?void 0:I.path)){var T,e;(T=this.tileLottieAnimationRef)==null||(e=T.lottieEl)==null||e.destroy();var c;this.isOnHoverBehaviorForLottieEnabled=!((c=E.settings)==null?0:c.autoplay);var Y,v;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(v=(Y=E.settings)==null?void 0:Y.autoplay)!=null?v:!1,loop:this.getLottieLoopValue(E.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof E.url==="string"?this.tileLottiePlayerProps.animationConfig.path=E.url:this.tileLottiePlayerProps.animationConfig.animationData=E.url}}};
_.l.getOverflowButton=function(E){return _.h(E.overflowButton,dC$)};
_.l.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var E=this.getBackgroundLottieDataBasedOnTheme(),B,I;if(E.url!==((B=this.backgroundLottiePlayerProps)==null?void 0:(I=B.animationConfig)==null?void 0:I.path)){var T,e;(T=this.backgroundLottieAnimationRef)==null||(e=T.lottieEl)==null||e.destroy();var c;this.isOnHoverBehaviorForLottieEnabled=!((c=E.settings)==null?0:c.autoplay);var Y,v;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(v=(Y=E.settings)==null?void 0:Y.autoplay)!=null?v:!1,loop:this.getLottieLoopValue(E.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof E.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=E.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
E.url}}};
_.l.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var E;((E=this.tileLottieAnimationRef)==null?void 0:E.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var B;((B=this.backgroundLottieAnimationRef)==null?void 0:B.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.l.getTileLottieDataBasedOnTheme=function(){var E;if(this.isDarkTheme&&((E=this.data)==null?0:E.darkThemeTileLottie))return this.data.darkThemeTileLottie;var B;return((B=this.data)==null?0:B.tileLottie)?this.data.tileLottie:{}};
_.l.getBackgroundLottieDataBasedOnTheme=function(){var E;if(this.isDarkTheme&&((E=this.data)==null?0:E.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var B;return((B=this.data)==null?0:B.backgroundLottie)?this.data.backgroundLottie:{}};
_.l.onUpdateElementsPerRowAction=function(E){E&&this.elementsPerRow!==E&&(this.elementsPerRow=E)};
_.l.getLottieLoopValue=function(E){return E?E.loop!==void 0?E.loop:E.loopCount?E.loopCount-1:!0:!0};
_.l.logoWithPadding=function(E){var B,I,T;return(E=(B=this.getCurrentLogo(E,this.isDarkTheme))==null?void 0:(I=B.thumbnails)==null?void 0:(T=I[0])==null?void 0:T.height)&&E%31===0?!0:!1};
Pj.prototype.currentColorChanged=Pj.prototype.currentColorChanged;Pj.prototype.themeChanged=Pj.prototype.themeChanged;Pj.prototype.dataChanged=Pj.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],Pj.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Pj.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Pj.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Pj.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Pj.prototype,"primaryButton",void 0);_.k([_.X(),_.t("design:type",Object)],Pj.prototype,"secondaryButton",void 0);
_.k([_.X({reflectToAttribute:!0,value:3}),_.t("design:type",Number)],Pj.prototype,"elementsPerRow",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],Pj.prototype,"isDarkTheme",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],Pj.prototype,"hasTile",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],Pj.prototype,"hasMetadata",void 0);
_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],Pj.prototype,"showLogoImage",void 0);_.k([_.X(),_.t("design:type",Object)],Pj.prototype,"currentColorData",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.t("design:type",String)],Pj.prototype,"bannerStyle",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.t("design:type",String)],Pj.prototype,"location",void 0);
_.k([_.X(),_.t("design:type",Object)],Pj.prototype,"tileLottiePlayerProps",void 0);_.k([_.X(),_.t("design:type",Object)],Pj.prototype,"tileLottieAnimationRef",void 0);_.k([_.X(),_.t("design:type",Object)],Pj.prototype,"backgroundLottiePlayerProps",void 0);_.k([_.X(),_.t("design:type",Object)],Pj.prototype,"backgroundLottieAnimationRef",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Pj.prototype,"useBiggerShowcaseImage",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Pj.prototype,"isHideEnclosingAction",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Pj.prototype,"dataChanged",null);_.k([_.i6("isDarkTheme"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Pj.prototype,"themeChanged",null);
_.k([_.i6("currentColorData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Pj.prototype,"currentColorChanged",null);Pj=_.k([_.b({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Pj);
_.A(Pj,"ytd-statement-banner-renderer",function(){if(c8R!==void 0)return c8R;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return c8R=E},{mode:1});var is6;var zn=function(){var E=_.r.apply(this,arguments)||this;E.isSearch=!1;E.hideShelfHeader=!1;E.engagementPanel=!1;E.disableMouseScroll=!0;E.useFloorScrolling=!0;E.modernTypography=_.d("web_modern_typography");return E};
_.L(zn,_.r);zn.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.yu("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.yu("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
zn.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zn.prototype.onDataChanged=zn.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],zn.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],zn.prototype,"isSearch",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zn.prototype,"hideShelfHeader",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zn.prototype,"engagementPanel",void 0);_.k([_.X(),_.t("design:type",Object)],zn.prototype,"disableMouseScroll",void 0);_.k([_.X(),_.t("design:type",Object)],zn.prototype,"useFloorScrolling",void 0);_.k([_.X(),_.t("design:type",Object)],zn.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zn.prototype,"modernTypography",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],zn.prototype,"onDataChanged",null);zn=_.k([_.b({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],zn);
_.A(zn,"ytd-reel-shelf-renderer",function(){if(is6!==void 0)return is6;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return is6=E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var pY6;var Yht=_.rp(function(E){var B=E.data;E=E.useSmallFont;var I={},T={};return _.w("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.w(_.wU,{cond:function(){return B().favicon},
then:function(e){return _.w(_.Ja,{data:e,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.w("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.w(_.aS,{text:function(){return B().title},
className:_.RQ("yt-channel-external-link-view-model-wiz__title",(I["yt-channel-external-link-view-model-wiz__title--title-small-font"]=E,I)),ellipsisTruncate:!0,userInput:!0}),_.w(_.aS,{text:function(){return B().link},
className:_.RQ("yt-channel-external-link-view-model-wiz__link",(T["yt-channel-external-link-view-model-wiz__link--link-small-font"]=E,T)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Ab");
Yht.idomCompat=!0;_.oQ(Yht,"yt-channel-external-link-view-model",{props:{data:_.Jh,useSmallFont:_.Jh}});_.QH("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var mO=function(){var E=_.r.apply(this,arguments)||this;E.revealButtonClass="button";E.businessEmailDisplayState="HIDE_SECTION";return E};
_.L(mO,_.r);_.l=mO.prototype;_.l.refit=function(){var E=this;_.Gg(function(){_.Ta(E.hostElement,"yt-refit-popups-action")});
_.AJ(this,function(){_.Ta(E.hostElement,"yt-refit-popups-action")})};
_.l.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Sc("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.l.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"};
_.l.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.l.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"}}}};
_.l.computeEmailHref=function(E){return"mailto:"+E};
_.l.computeSafeUrl=function(E){if(E)return _.pr(E)};
_.l.linkEndpoint=function(E){return _.h(E.onTap,_.dX)};
_.l.linkEndpointToHref=function(E){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(E))};
_.l.onYtServiceRequestCompleted=function(E){var B;if((B=E.detail.data)==null?0:B.businessEmail)this.businessEmail=E.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var I;if((I=E.detail.data)==null?0:I.errorMessage)this.businessEmailErrorMessage=E.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.l.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var E=this.JSC$13993_captchaTextarea.value;if(E){E={recaptcha_response_token:E,channel_id:this.metadata.channelId};var B=_.h(this.metadata.onBusinessEmailRevealClickCommand,_.dX);B&&this.ytComponentBehavior.resolveCommand(B,{form:E})}}};
_.l.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Up.Object.defineProperties(mO.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var E;return _.h((E=this.data)==null?void 0:E.metadata,myZ)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.h(this.metadata.businessEmailRevealButton,_.sO)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var E=new URL(this.metadata.canonicalChannelUrl);return E.host+E.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 _.h(this.metadata.learnMoreOnTap,_.dX)}}});
mO.prototype.onYtServiceRequestCompleted=mO.prototype.onYtServiceRequestCompleted;mO.prototype.businessEmailMetadataChanged=mO.prototype.businessEmailMetadataChanged;mO.prototype.refit=mO.prototype.refit;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],mO.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],mO.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],mO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.$7("#g-recaptcha-response"),_.t("design:type",HTMLTextAreaElement)],mO.prototype,"JSC$13993_captchaTextarea",void 0);_.k([_.X(),_.t("design:type",Object)],mO.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],mO.prototype,"revealButtonClass",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],mO.prototype,"metadata",null);
_.k([_.S("metadata"),_.t("design:type",Object),_.t("design:paramtypes",[])],mO.prototype,"revealButton",null);_.k([_.S("metadata"),_.t("design:type",Object),_.t("design:paramtypes",[])],mO.prototype,"channelDisplayUrl",null);_.k([_.i6("metadata"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],mO.prototype,"refit",null);_.k([_.S("metadata"),_.t("design:type",Object),_.t("design:paramtypes",[])],mO.prototype,"formattedDescription",null);
_.k([_.S("metadata","learnMoreCommand"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],mO.prototype,"shouldRendereVerifiedPhoneStatus",null);_.k([_.S("metadata"),_.t("design:type",Object),_.t("design:paramtypes",[])],mO.prototype,"learnMoreCommand",null);_.k([_.X(),_.t("design:type",String)],mO.prototype,"businessEmailDisplayState",void 0);_.k([_.X(),_.t("design:type",String)],mO.prototype,"businessEmail",void 0);
_.k([_.X(),_.t("design:type",String)],mO.prototype,"businessEmailErrorMessage",void 0);_.k([_.i6("metadata"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],mO.prototype,"businessEmailMetadataChanged",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],mO.prototype,"onYtServiceRequestCompleted",null);
mO=_.k([_.b({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],mO);
_.A(mO,"ytd-about-channel-renderer",function(){if(pY6!==void 0)return pY6;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return pY6=E},{mode:1});var aoN;var QN=function(){return _.r.apply(this,arguments)||this};
_.L(QN,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],QN.prototype,"data",void 0);QN=_.k([_.b({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],QN);
_.A(QN,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(aoN!==void 0)return aoN;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return aoN=E},{mode:1});var vuZ;var du=function(){return _.r.apply(this,arguments)||this};
_.L(du,_.r);du.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],du.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],du.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],du.prototype,"aligment",void 0);du=_.k([_.b({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],du);
_.A(du,"ytd-channel-list-sub-menu-renderer",function(){if(vuZ!==void 0)return vuZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return vuZ=
E},{mode:1});var y8Z;var hX=function(){return _.r.apply(this,arguments)||this};
_.L(hX,_.r);hX.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}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],hX.prototype,"data",void 0);hX=_.k([_.b({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],hX);
_.A(hX,"ytd-channel-sub-menu-renderer",function(){if(y8Z!==void 0)return y8Z;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return y8Z=E},{mode:1});var CV6;var wY6;var sL=function(){var E=_.r.apply(this,arguments)||this;E.isCompact=!1;return E};
_.L(sL,_.r);_.Up.Object.defineProperties(sL.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var E,B;return((B=_.h((E=this.data)==null?void 0:E.endpoint,_.JK))==null?void 0:B.target)==="TARGET_NEW_WINDOW"}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],sL.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],sL.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],sL.prototype,"isCompact",void 0);_.k([_.S("isCompact"),_.t("design:type",Number),_.t("design:paramtypes",[])],sL.prototype,"thumbnailWidth",null);
_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sL.prototype,"openNewWindow",null);sL=_.k([_.b({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],sL);
_.A(sL,"ytd-media-lockup-renderer",function(){if(wY6!==void 0)return wY6;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return wY6=E},{mode:1});var Zsr;var uC=function(){return _.r.apply(this,arguments)||this};
_.L(uC,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],uC.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],uC.prototype,"data",void 0);uC=_.k([_.b({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],uC);
_.A(uC,"ytd-structured-description-channel-lockup-renderer",function(){if(Zsr!==void 0)return Zsr;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Zsr=E},{mode:1});var PVZ;var L1=function(){var E=_.r.apply(this,arguments)||this;E.isCompact=!1;E.collections=_.d("web_modern_collections_v2");E.collectionsStackColor=_.d("modernize_structured_description_playlist_lockups_v2");return E};
_.L(L1,_.r);L1.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:_.d("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Up.Object.defineProperties(L1.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T,e,c;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(E=this.data)==null?void 0:(B=E.thumbnail)==null?void 0:B.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(I=this.data)==null?void 0:(T=I.thumbnail)==null?void 0:T.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(e=this.data)==null?void 0:(c=e.thumbnail)==
null?void 0:c.vibrantColorPalette:void 0}}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],L1.prototype,"componentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],L1.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],L1.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],L1.prototype,"showSidePanelThumbnailOverlay",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],L1.prototype,"isCompact",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],L1.prototype,"collections",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],L1.prototype,"collectionsStackColor",void 0);_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],L1.prototype,"twoLineTitle",null);
_.k([_.S("data","collections","collectionsStackColor"),_.t("design:type",Object),_.t("design:paramtypes",[])],L1.prototype,"collectionStack",null);L1=_.k([_.b({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],L1);
_.A(L1,"ytd-structured-description-playlist-lockup-renderer",function(){if(PVZ!==void 0)return PVZ;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return PVZ=E},{mode:1});var zNU;var xW=function(){return _.r.apply(this,arguments)||this};
_.L(xW,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],xW.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],xW.prototype,"data",void 0);xW=_.k([_.b({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],xW);
_.A(xW,"ytd-structured-description-video-lockup-renderer",function(){if(zNU!==void 0)return zNU;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return zNU=E},{mode:2});var Gn=function(){return _.r.apply(this,arguments)||this};
_.L(Gn,_.r);
Gn.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}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Gn.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Gn.prototype,"data",void 0);Gn=_.k([_.b({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Gn);
_.A(Gn,"ytd-compact-infocard-renderer",function(){if(CV6!==void 0)return CV6;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return CV6=E},{mode:1});var mph;var OL=function(){var E=_.r.apply(this,arguments)||this;E.useModernCollectionsV2=_.d("web_modern_collections_v2");return E};
_.L(OL,_.r);OL.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Up.Object.defineProperties(OL.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.d("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.d("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.d("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],OL.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],OL.prototype,"ytdReduxBehavior",void 0);_.k([_.X({selector:_.HE}),_.t("design:type",Object)],OL.prototype,"isGridViewEnabled",void 0);
_.k([_.S("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],OL.prototype,"watchFeedBigThumbs",null);_.k([_.S("isGridViewEnabled","data"),_.X({reflectToAttribute:!0,value:"168"}),_.t("design:type",String),_.t("design:paramtypes",[])],OL.prototype,"thumbnailWidth",null);_.k([_.S("isGridViewEnabled","data"),_.X({reflectToAttribute:!0,value:"94"}),_.t("design:type",String),_.t("design:paramtypes",[])],OL.prototype,"customThumbnailSize",null);
_.k([_.X(),_.t("design:type",Object)],OL.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],OL.prototype,"useModernCollectionsV2",void 0);OL=_.k([_.b({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],OL);
_.A(OL,"ytd-compact-playlist-renderer",function(){if(mph!==void 0)return mph;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return mph=E},{mode:1});var QRZ;var n1=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");E.roundedContainer=!0;E.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return E};
_.L(n1,_.r);_.l=n1.prototype;_.l.attached=function(){this.requestElementsPerRow()};
_.l.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"}}}};
_.l.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.l.computeViewStyle=function(E){return E.style?E.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.l.onUpdateElementsPerRowAction=function(E){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&E===1};
_.l.requestElementsPerRow=function(){_.$O(this.hostElement,"yt-request-elements-per-row")};
n1.prototype.dataChanged=n1.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],n1.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],n1.prototype,"actionHandlerBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],n1.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],n1.prototype,"hideThumbnail",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.t("design:type",String)],n1.prototype,"viewStyle",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],n1.prototype,"darkerDarkTheme",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],n1.prototype,"roundedContainer",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],n1.prototype,"dataChanged",null);n1=_.k([_.b({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],n1);
_.A(n1,"ytd-compact-promoted-item-renderer",function(){if(QRZ!==void 0)return QRZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return QRZ=E},{mode:1});var dph;var Mz=function(){var E=_.r.apply(this,arguments)||this;E.collections=_.d("web_modern_collections_v2");return E};
_.L(Mz,_.r);Mz.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Mz.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Mz.prototype.onYtNavigate=function(E,B){var I=this;if(B.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",B)){var T=this.get("watchEndpoint.videoId",B.endpoint),e=_.Ta(this.hostElement,"yt-get-current-video-id-action")[0];_.d("kevlar_mix_handle_first_endpoint_different")&&T&&e&&T!==e||(E.stopPropagation(),_.k3().getPlayerPromise().then(function(c){if(c.getPlayerState()===0&&I.data.secondaryNavigationEndpoint)var Y=I.data.secondaryNavigationEndpoint;else{Y=
Object.assign({},B.endpoint);var v=_.h(Y.commandMetadata,_.D$);v&&(c=Math.floor(c.getCurrentTime()),v.url=_.Ur(v.url,{t:c}),!_.d("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(v=_.h(Y,_.kh)))&&(v.startTimeSeconds=c)}_.$O(I.hostElement,"yt-navigate",{endpoint:Y})}))}};
_.Up.Object.defineProperties(Mz.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.d("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.d("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T,e,c;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(E=this.data)==null?void 0:(B=E.thumbnail)==null?void 0:B.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(T=I.thumbnail)==null?void 0:T.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(c=e.thumbnail)==null?void 0:c.darkColorPalette,experimentEnabled:this.collections}}}});
Mz.prototype.onYtNavigate=Mz.prototype.onYtNavigate;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Mz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.BF.YtEndpointBehavior),_.t("design:type",Object)],Mz.prototype,"ytEndpointBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Mz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],Mz.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.g(_.S_),_.t("design:type",Object)],Mz.prototype,"ytdLockupBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Mz.prototype,"ytdReduxBehavior",void 0);_.k([_.X({selector:_.HE}),_.t("design:type",Object)],Mz.prototype,"isGridViewEnabled",void 0);_.k([_.S("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Mz.prototype,"watchFeedBigThumbs",null);
_.k([_.S("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.t("design:type",String),_.t("design:paramtypes",[])],Mz.prototype,"thumbnailWidth",null);_.k([_.X(),_.t("design:type",Object)],Mz.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Mz.prototype,"collections",void 0);_.k([_.S("data","collections"),_.t("design:type",Object),_.t("design:paramtypes",[])],Mz.prototype,"collectionStack",null);
_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],Mz.prototype,"onYtNavigate",null);Mz=_.k([_.b({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Mz);
_.A(Mz,"ytd-compact-radio-renderer",function(){if(dph!==void 0)return dph;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return dph=E},{mode:1});var hNV;var Hj=function(){return _.r.apply(this,arguments)||this};
_.L(Hj,_.r);Hj.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Hj.prototype.computeRendererStyle=function(E){return E.style?E.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.k([_.X(),_.t("design:type",Object)],Hj.prototype,"data",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Hj.prototype,"rendererBehavior",void 0);_.k([_.X({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.t("design:type",String)],Hj.prototype,"rendererStyle",void 0);
Hj=_.k([_.b({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Hj);
_.A(Hj,"ytd-compact-text-promo-renderer",function(){if(hNV!==void 0)return hNV;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return hNV=E},{mode:1});var sRN;var Nz=function(){var E=_.r.apply(this,arguments)||this;E.isShortsStyle=!1;return E};
_.L(Nz,_.r);_.l=Nz.prototype;_.l.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"}}}};
_.l.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.$O(this.hostElement,"yt-disable-lockup-interaction"):_.$O(this.hostElement,"yt-enable-lockup-interaction"))};
_.l.isMetaBlockEmpty=function(E){return!E||!E.longBylineText&&!E.shortBylineText&&!E.shortViewCountText&&!E.viewCountText};
_.l.computeHasOneLineTitle=function(E){return this.forceOneLineTitle||!(E==null||!E.buttons)};
_.l.computeDisableInteraction=function(){var E;return!((E=this.data)==null?0:E.navigationEndpoint)};
_.l.hasSingularTopStandaloneBadge=function(){var E;return!((E=this.data)==null||!E.topStandaloneBadge)};
_.Up.Object.defineProperties(Nz.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.d("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.d("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 E;return this.hasSingularTopStandaloneBadge()?[(E=this.data)==null?void 0:E.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var E;return this.shouldShowTopBadges?((E=this.data)==null?void 0:E.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Nz.prototype.disableInteractionChanged=Nz.prototype.disableInteractionChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Nz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],Nz.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],Nz.prototype,"ytdLockupBehavior",void 0);
_.k([_.g(_.Lz),_.t("design:type",Object)],Nz.prototype,"ytdReduxBehavior",void 0);_.k([_.X({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.t("design:type",Boolean)],Nz.prototype,"metaBlockEmpty",void 0);_.k([_.X({selector:_.HE}),_.t("design:type",Object)],Nz.prototype,"isGridViewEnabled",void 0);_.k([_.S("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Nz.prototype,"watchFeedBigThumbs",null);
_.k([_.S("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.t("design:type",String),_.t("design:paramtypes",[])],Nz.prototype,"thumbnailWidth",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Nz.prototype,"isShortsStyle",void 0);_.k([_.X(),_.t("design:type",Object)],Nz.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.t("design:type",Boolean)],Nz.prototype,"hasOneLineTitle",void 0);
_.k([_.X(),_.t("design:type",Boolean)],Nz.prototype,"hideThumbnail",void 0);_.k([_.X(),_.t("design:type",Boolean)],Nz.prototype,"forceOneLineTitle",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.t("design:type",Boolean)],Nz.prototype,"disableInteraction",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Nz.prototype,"musicMetadataVideoLockup",void 0);
_.k([_.EM("disableInteraction"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Nz.prototype,"disableInteractionChanged",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Nz.prototype,"shouldShowTopBadges",null);_.k([_.S("data"),_.t("design:type",Array),_.t("design:paramtypes",[])],Nz.prototype,"topBadges",null);
_.k([_.S("shouldShowTopBadges","data"),_.t("design:type",Array),_.t("design:paramtypes",[])],Nz.prototype,"inlineMetadataBadges",null);_.k([_.S("shouldShowTopBadges"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Nz.prototype,"shouldShowBadgesBelowMetadata",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Nz.prototype,"compactTitleClass",null);Nz=_.k([_.b({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Nz);
_.A(Nz,"ytd-compact-video-renderer",function(){if(sRN!==void 0)return sRN;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return sRN=E},{mode:_.qi("kevlar_poly_si_batch_j067")?1:2});var urh;_.QH("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var gu=function(){return _.r.apply(this,arguments)||this};
_.L(gu,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],gu.prototype,"data",void 0);gu=_.k([_.b({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],gu);
_.A(gu,"ytd-counterfactual-renderer",function(){if(urh!==void 0)return urh;var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return urh=E},{mode:1});var Lyz;var S4=function(){var E=_.r.apply(this,arguments)||this;E.hidden=!1;return E};
_.L(S4,_.r);S4.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.Q().resolve(_.Dt).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
S4.prototype.computeHidden=function(E){return!!E};
_.Up.Object.defineProperties(S4.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}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],S4.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.t("design:type",Object)],S4.prototype,"hidden",void 0);_.k([_.S("data.label"),_.t("design:type",String),_.t("design:paramtypes",[])],S4.prototype,"label",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],S4.prototype,"value",null);
S4=_.k([_.b({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],S4);
_.A(S4,"ytd-dropdown-item-renderer",function(){if(Lyz!==void 0)return Lyz;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Lyz=E},{mode:1});var xpZ;var GEl;var JX=function(){return _.r.apply(this,arguments)||this};
_.L(JX,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],JX.prototype,"data",void 0);_.k([_.X({computed:"getSimpleString(data.label)"}),_.t("design:type",String)],JX.prototype,"label",void 0);JX=_.k([_.b({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],JX);
_.A(JX,"ytd-navigation-dropdown-item-renderer",function(){if(GEl!==void 0)return GEl;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return GEl=E},{mode:1});var Wj=function(){var E=_.r.apply(this,arguments)||this;E.disabled=!1;E.value="";E.noLabelFloat=!1;E.noUnderline=!1;E.usePrimaryColor=!1;E.hasBackground=!1;E.verticalAlign="top";E.autosize=!1;E.minAutosizeWidth=100;E.autosizeFont="14px Roboto";return E};
_.L(Wj,_.r);_.l=Wj.prototype;_.l.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"}}}};
_.l.open=function(){this.inputEl.open()};
_.l.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.l.dataChanged=function(){this.reset()};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("value-changed",this.value))};
_.l.stopPropagation=function(E){E.stopPropagation()};
_.l.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var E=this.canvas.getContext("2d");E&&(E.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(E.measureText(this.inputEl.value).width)+24)+"px")}};
_.l.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var E=0,B=this.data.entries.length;E<B;E++){var I=this.data.entries[E],T;for(T in I)if(I.hasOwnProperty(T)){var e=I[T];if("isSelected"in e&&e.isSelected)return"stringValue"in e?e.stringValue||"":"int32Value"in e?e.int32Value||0:0}}return null};
_.l.updateValueFromBinding=function(E){this.value=E.detail.value};
_.Up.Object.defineProperties(Wj.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var E=0,B=this.data.entries.length;E<B;E++){var I=this.data.entries[E],T;for(T in I)if(I.hasOwnProperty(T)){var e=I[T];if("isSelected"in e&&e.isSelected&&"label"in e)return this.ytRendererBehavior.getSimpleString(e.label)}}return null}}});
Wj.prototype.autoSizeLabel=Wj.prototype.autoSizeLabel;Wj.prototype.stopPropagation=Wj.prototype.stopPropagation;Wj.prototype.valueChangedForBinding=Wj.prototype.valueChangedForBinding;Wj.prototype.dataChanged=Wj.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Wj.prototype,"ytRendererStamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],Wj.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wj.prototype,"disabled",void 0);_.k([_.X(),_.t("design:type",Object)],Wj.prototype,"value",void 0);_.k([_.X(),_.t("design:type",Object)],Wj.prototype,"noLabelFloat",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wj.prototype,"noUnderline",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],Wj.prototype,"theme",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wj.prototype,"usePrimaryColor",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wj.prototype,"hasBackground",void 0);_.k([_.X(),_.t("design:type",Object)],Wj.prototype,"verticalAlign",void 0);_.k([_.X(),_.t("design:type",Object)],Wj.prototype,"autosize",void 0);_.k([_.X(),_.t("design:type",Object)],Wj.prototype,"minAutosizeWidth",void 0);_.k([_.X(),_.t("design:type",Object)],Wj.prototype,"autosizeFont",void 0);
_.k([_.$7("#entries"),_.t("design:type",Object)],Wj.prototype,"entries",void 0);_.k([_.$7("#input"),_.t("design:type",Object)],Wj.prototype,"inputEl",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wj.prototype,"dataChanged",null);_.k([_.i6("value"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wj.prototype,"valueChangedForBinding",null);
_.k([_.RN("iron-overlay-opened"),_.RN("iron-overlay-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Wj.prototype,"stopPropagation",null);_.k([_.RN("iron-select"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wj.prototype,"autoSizeLabel",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Wj.prototype,"label",null);
Wj=_.k([_.b({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Wj);
_.A(Wj,"ytd-dropdown-renderer",function(){if(xpZ!==void 0)return xpZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return xpZ=E},{mode:1});var Osz;var XI=function(){var E=_.r.apply(this,arguments)||this;E.isConstrainedList=!1;return E};
_.L(XI,_.r);XI.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"}}}};
XI.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
XI.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
XI.prototype.computeViewAllHidden=function(E,B){return E||!B.viewAllEndpoint};
XI.prototype.fillRestIfNoShowMore=XI.prototype.fillRestIfNoShowMore;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],XI.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.t6.YtLazyListBehavior),_.t("design:type",Object)],XI.prototype,"ytLazyListBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],XI.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],XI.prototype,"isConstrainedList",void 0);_.k([_.i6("data","canShowMore"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],XI.prototype,"fillRestIfNoShowMore",null);XI=_.k([_.b({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],XI);
_.A(XI,"ytd-expanded-shelf-contents-renderer",function(){if(Osz!==void 0)return Osz;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Osz=E},{mode:_.qi("kevlar_poly_si_batch_j025")?1:2});var nuX;var ru=function(){return _.r.apply(this,arguments)||this};
_.L(ru,_.r);ru.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}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ru.prototype,"data",void 0);ru=_.k([_.b({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],ru);
_.A(ru,"ytd-feed-channel-filter-header-renderer",function(){if(nuX!==void 0)return nuX;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return nuX=E},{mode:1});var MAZ;var Hsu;var N_u;var bC=function(){return _.r.apply(this,arguments)||this};
_.L(bC,_.r);_.l=bC.prototype;_.l.onClick=function(E){var B,I=(B=this.data)==null?void 0:B.sectionEndpoint;!_.XZ(_.W8(E),this.hostElement,["A".toString()])&&I&&_.$O(this.hostElement,"yt-navigate",{endpoint:I})};
_.l.computeHasSectionEndpoint=function(E){return(E==null?void 0:E.sectionEndpoint)!==void 0};
_.l.computeShowHeaderAsLink=function(E){return(E==null?void 0:E.header)!==void 0&&(E==null?void 0:E.sectionEndpoint)!==void 0};
_.l.computeShowSubheaderAsLink=function(E){return(E==null?void 0:E.subheader)!==void 0&&(E==null?void 0:E.sectionEndpoint)!==void 0&&(E==null?void 0:E.header)===void 0};
_.l.getHeaderAsLinkClass=function(E){var B=[],I;(E==null?0:(I=E.headerIcon)==null?0:I.iconType)&&B.push("header-link-active");return B.join(" ")};
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],bC.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],bC.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],bC.prototype,"data",void 0);
_.k([_.X({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],bC.prototype,"hasSectionEndpoint",void 0);_.k([_.X({computed:"computeShowHeaderAsLink(data)"}),_.t("design:type",Boolean)],bC.prototype,"showHeaderAsLink",void 0);_.k([_.X({computed:"computeShowSubheaderAsLink(data)"}),_.t("design:type",Boolean)],bC.prototype,"showSubheaderAsLink",void 0);bC=_.k([_.b({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],bC);
_.A(bC,"ytd-medical-panel-section-renderer",function(){if(N_u!==void 0)return N_u;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return N_u=E},{mode:1});var o7=function(){var E=_.r.apply(this,arguments)||this;E.isExpanded=!1;E.roundedContainer=!0;E.skipRoundingTop=!1;E.toggleExpandableSection=function(){E.isExpanded=!E.isExpanded};
return E};
_.L(o7,_.r);
o7.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]]"}}}}}};
o7.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
o7.prototype.dataChanged=o7.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],o7.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],o7.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],o7.prototype,"isExpanded",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],o7.prototype,"roundedContainer",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],o7.prototype,"skipRoundingTop",void 0);_.k([_.X(),_.t("design:type",Object)],o7.prototype,"toggleExpandableSection",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],o7.prototype,"dataChanged",null);o7=_.k([_.b({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],o7);
_.A(o7,"ytd-medical-panel-content-renderer",function(){if(Hsu!==void 0)return Hsu;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Hsu=E},{mode:1});_.QH("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var AX=function(){var E=_.r.apply(this,arguments)||this;E.roundedContainer=!0;E.amsterdamEnabled=_.d("enable_desktop_amsterdam_info_panels");E.hasTitle=!1;E.linkIcon="OPEN_IN_NEW";E.isDismissed=!1;return E};
_.L(AX,_.r);
AX.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
AX.prototype.computeHasTitle=function(E){return!(E==null||!E.title)};
AX.prototype.onClick=function(E){var B,I=(B=this.data)==null?void 0:B.headerEndpoint;!_.XZ(_.W8(E),this.hostElement,["BUTTON".toString()])&&I&&this.ytComponentBehavior.resolveCommand(I)};
_.Up.Object.defineProperties(AX.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 E;return((E=this.data)==null?void 0:E.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?void 0:E.disableBottomDivider)||!((B=this.data)==null?0:B.title)}}});
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],AX.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],AX.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],AX.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],AX.prototype,"roundedContainer",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],AX.prototype,"amsterdamEnabled",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.t("design:type",Object)],AX.prototype,"hasTitle",void 0);
_.k([_.X({type:_.d("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.background"),_.t("design:type",Object),_.t("design:paramtypes",[])],AX.prototype,"background",null);_.k([_.X({type:_.d("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.titleStyle"),_.t("design:type",Object),_.t("design:paramtypes",[])],AX.prototype,"titleStyle",null);
_.k([_.X({type:_.d("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.S("data.titleStyle"),_.t("design:type",Object),_.t("design:paramtypes",[])],AX.prototype,"showLinkIcon",null);_.k([_.X(),_.t("design:type",String)],AX.prototype,"linkIcon",void 0);_.k([_.X({type:_.d("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],AX.prototype,"hideDivider",null);
_.k([_.X({selectorArgs:["data.dismissStateEntityKey"],selector:function(E,B){E=_.cP(E.entities,"dismissState",B);return(E==null?void 0:E.isDismissed)||(E==null?void 0:E.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(E==null?void 0:E.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.t("design:type",Object)],AX.prototype,"isDismissed",void 0);AX=_.k([_.b({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],AX);
_.A(AX,"ytd-info-panel-container-renderer",function(){if(MAZ!==void 0)return MAZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return MAZ=E},{mode:1});var gu$;_.QH("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var j4=function(){var E=_.r.apply(this,arguments)||this;E.modernTypography=_.d("web_modern_typography");return E};
_.L(j4,_.r);j4.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
j4.prototype.computeStyle=function(E){return E?E:""};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],j4.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.t("design:type",String)],j4.prototype,"titleStyle",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],j4.prototype,"modernTypography",void 0);j4=_.k([_.b({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],j4);
_.A(j4,"ytd-item-section-header-renderer",function(){if(gu$!==void 0)return gu$;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return gu$=E},{mode:1});var ShN;var J8h,Wyh=function(){return J8h!==void 0?J8h:J8h=document.createElement("template")};
document.head.appendChild(Wyh().content);var XYu;_.UL=new _.Dr("VOTING_ANIMATION_CONTROLLER_TOKEN");var bsV=_.rp(function(E){var B=E.data;var I=_.oH(),T=_.oH();E=_.p(_.lQ("VOTE_STATUS_NONE",void 0,"FVF7mc"));var e=E.next().value,c=E.next().value,Y=_.iO(ev4,function(){var m;return(m=B())==null?void 0:m.entityKey}),v=_.d("web_enable_voting_animation")||_.d("enable_music_web_cairo_voting_animation");
_.uW(function(){var m;((m=B().initialState)==null?0:m.status)&&c(B().initialState.status)});
var y=function(){var m,u,x=(u=(m=B().initialState)==null?void 0:m.votes)!=null?u:0,M;m=(M=B().initialState)==null?void 0:M.status;return m==="VOTE_STATUS_UPVOTED"?x-1:m==="VOTE_STATUS_DOWNVOTED"?x+1:x},Z=function(){return e()==="VOTE_STATUS_UPVOTED"?y()+1:e()==="VOTE_STATUS_DOWNVOTED"?y()-1:y()},P=function(m){var u=m?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
c(u);var x=Z(),M=_.Q().resolve(_.Fx(_.UL)),N=Y();N&&(m&&(N==null?0:N.upvoteDefaultButtonOnTap)?_.xg(N.upvoteDefaultButtonOnTap,{form:{element:I.value},disableClickTracking:!0}):(N==null?0:N.upvoteToggledButtonOnTap)&&_.xg(N.upvoteToggledButtonOnTap,{form:{element:I.value},disableClickTracking:!0}));var W;m=(W=N==null?void 0:N.enableOptimisticReordering)!=null?W:B().enableOptimisticReordering;v&&M&&B().itemId&&m&&r8V(M,B().itemId,x,u)},z=function(m){var u=m?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
c(u);var x=Z(),M=_.Q().resolve(_.Fx(_.UL)),N=Y();N&&(m&&(N==null?0:N.downvoteDefaultButtonOnTap)?_.xg(N.downvoteDefaultButtonOnTap,{form:{element:T.value},disableClickTracking:!0}):(N==null?0:N.downvoteToggledButtonOnTap)&&_.xg(N.downvoteToggledButtonOnTap,{form:{element:T.value},disableClickTracking:!0}));var W;m=(W=N==null?void 0:N.enableOptimisticReordering)!=null?W:B().enableOptimisticReordering;v&&M&&B().itemId&&m&&r8V(M,B().itemId,x,u)};
E={};E=_.RQ("ytVotingViewModelVoteCount",(E.ytVotingViewModelVoteCountDisabled=function(){return B().isDisabled},E));
return _.w("voting-view-model",{class:"ytVotingViewModelHost"},_.w("div",{el:I},_.w(_.hM,{data:function(){var m=_.h(B().upvoteButton,_.uO);return{toggleButtonViewModel:Object.assign({},m,{isToggled:e()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(m){return _.w(_.Le,{data:m.data,
onToggle:P})}})),_.w("div",{class:E},function(){var m,u,x;
return e()==="VOTE_STATUS_UPVOTED"?(m=B().initialState)==null?void 0:m.compactVotesUpvoted:e()==="VOTE_STATUS_DOWNVOTED"?(u=B().initialState)==null?void 0:u.compactVotesDownvoted:(x=B().initialState)==null?void 0:x.compactVotes}),_.w("div",{el:T},_.w(_.hM,{data:function(){var m=_.h(B().downvoteButton,_.uO);
return{toggleButtonViewModel:Object.assign({},m,{isToggled:e()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(m){return _.w(_.Le,{data:m.data,
onToggle:z})}})))},"Bb");_.oQ(_.rp(function(E){var B=E.data;return _.w("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.w("div",{class:_.RQ("ytEngagementBarViewModelEngagementBarWrapper",E.className)},_.w(_.hM,{data:function(){return B().actions}},{votingViewModel:bsV})))},"Cb"),"engagement-bar-view-model",{props:{data:_.Jh,
className:_.Jh}});var kW=function(){var E=_.r.apply(this,arguments)||this;E.amsterdamPostMvp=_.d("web_amsterdam_post_mvp_playlists");E.cairoCollabPlaylistPostMvp=_.d("web_collab_playlist_thumbnail_size");E.playlistVotingAnimationEnabled=_.d("web_enable_voting_animation");E.downloadProgress=0;E.transferState="TRANSFER_STATE_UNKNOWN";E.downloadState="DOWNLOAD_STATE_UNKNOWN";E.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";E.offlineVideoPolicyExpirationTimestamp=0;return E};
_.L(kW,_.r);_.l=kW.prototype;_.l.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"}}}};
_.l.canReorderChanged=function(){this.persistentDragHandle=_.d("kevlar_playlist_drag_handles")&&this.canReorder};
_.l.onDrag=function(){if(this.thumbnail){var E=_.n(this.thumbnail).querySelector("yt-image");E&&(E.shouldRenderLazy=!1)}};
_.l.onMenuOverlayChanged=function(E,B){this.menuOpened=B};
_.l.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.l.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.l.onContentsTap=function(E){var B,I=(B=this.data)==null?void 0:B.serviceEndpoints;if(I&&I.length===1&&_.h(I[0],Crf)&&!_.XZ(_.W8(E),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(I[0]);else{var T;(B=(T=this.data)==null?void 0:T.navigationEndpoint)&&_.d("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?oul(_.Q().resolve(_.W3),B):(_.vx().playlistSuggestionsShelfActivation=
!0,_.A8N(_.Q().resolve(_.W3),B)):B&&!_.XZ(_.W8(E),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.d("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.$O(this.hostElement,"yt-navigate",{endpoint:B}):this.ytComponentBehavior.resolveCommand(B))}};
_.l.computeStyle=function(E){return E?E.toLowerCase().replace(/_/g,"-"):""};
_.l.computeThumbnailWidth=function(E){return E==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.l.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=Pfi(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))}};
_.l.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.l.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.l.dataChanged=function(){if(this.data){var E,B,I,T=((E=this.downloadRenderData)==null?void 0:E.badges)&&((B=this.downloadRenderData)==null?void 0:B.badges)!==((I=this.data)==null?void 0:I.badges),e,c,Y;E=((e=this.downloadRenderData)==null?void 0:e.thumbnailOverlays)&&((c=this.downloadRenderData)==null?void 0:c.thumbnailOverlays)!==((Y=this.data)==null?void 0:Y.thumbnailOverlays);(!this.downloadRenderData||T||E)&&this.downloadStateChanged()}};
_.l.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var E,B,I=(E=this.data.menu)==null?void 0:(B=E.menuRenderer)==null?void 0:B.items;if(I)for(E=_.p(I),B=E.next();!B.done;B=E.next())if(B=B.value,I=void 0,_.h((I=B.menuServiceItemRenderer)==null?void 0:I.serviceEndpoint,_.nU)){var T=I=void 0,e=void 0;B=(I=B)==null?void 0:(T=I.menuServiceItemRenderer)==null?void 0:(e=T.serviceEndpoint)==null?void 0:e.playlistEditEndpoint;e=T=void 0;if(I=(T=B)==null?void 0:(e=T.actions)==null?void 0:
e[0])T=void 0,I.setVideoId=(T=this.data)==null?void 0:T.setVideoId;e=T=I=void 0;if(B=(I=B)==null?void 0:(T=I.clientActions)==null?void 0:(e=T[0])==null?void 0:e.playlistRemoveVideosAction)I=void 0,B.setVideoIds=[(I=this.data)==null?void 0:I.setVideoId]}}};
_.Up.Object.defineProperties(kW.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
kW.prototype.setVideoIdChanged=kW.prototype.setVideoIdChanged;kW.prototype.dataChanged=kW.prototype.dataChanged;kW.prototype.downloadStateChanged=kW.prototype.downloadStateChanged;kW.prototype.onMenuOverlayChanged=kW.prototype.onMenuOverlayChanged;kW.prototype.canReorderChanged=kW.prototype.canReorderChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],kW.prototype,"ytdReduxBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],kW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],kW.prototype,"ytdLockupBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],kW.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],kW.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],kW.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],kW.prototype,"amsterdamPostMvp",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],kW.prototype,"canReorder",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],kW.prototype,"menuOpened",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],kW.prototype,"handleIsHovered",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],kW.prototype,"persistentDragHandle",void 0);
_.k([_.X(),_.t("design:type",Object)],kW.prototype,"downloadRenderData",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.t("design:type",String)],kW.prototype,"styleType",void 0);_.k([_.X({computed:"computeThumbnailWidth(data.style)"}),_.t("design:type",Number)],kW.prototype,"thumbnailWidth",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],kW.prototype,"isDownloads",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],kW.prototype,"cairoCollabPlaylistPostMvp",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],kW.prototype,"playlistVotingAnimationEnabled",void 0);_.k([_.X({selector:gK,selectorArgs:["data.videoId"]}),_.t("design:type",Object)],kW.prototype,"downloadProgress",void 0);_.k([_.X(),_.t("design:type",Number)],kW.prototype,"relativeDateReference",void 0);
_.k([_.X({selector:_.Mg,selectorArgs:["data.videoId"]}),_.t("design:type",Object)],kW.prototype,"transferState",void 0);_.k([_.X({selector:oYt,selectorArgs:["data.videoId"]}),_.t("design:type",Object)],kW.prototype,"downloadState",void 0);_.k([_.X({selector:xTJ,selectorArgs:["data.videoId"]}),_.t("design:type",Object)],kW.prototype,"offlinePolicyAction",void 0);_.k([_.X({selector:GTQ,selectorArgs:["data.videoId"]}),_.t("design:type",Object)],kW.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.k([_.X({selector:nYB,selectorArgs:["data.videoId"]}),_.t("design:type",Object)],kW.prototype,"entityInfo",void 0);_.k([_.X({selector:_.O3}),_.t("design:type",Boolean)],kW.prototype,"miniplayerIsActive",void 0);_.k([_.S("data"),_.t("design:type",String),_.t("design:paramtypes",[])],kW.prototype,"playlistVideoId",null);_.k([_.$7("#thumbnail"),_.t("design:type",Object)],kW.prototype,"thumbnail",void 0);
_.k([_.i6("canReorder"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],kW.prototype,"canReorderChanged",null);_.k([_.RN("yt-menu-overlay-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Boolean]),_.t("design:returntype")],kW.prototype,"onMenuOverlayChanged",null);
_.k([_.i6("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],kW.prototype,"downloadStateChanged",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],kW.prototype,"dataChanged",null);
_.k([_.i6("data.setVideoId"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],kW.prototype,"setVideoIdChanged",null);kW=_.k([_.b({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],kW);
_.A(kW,"ytd-playlist-video-renderer",function(){if(XYu!==void 0)return XYu;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);E.content.insertBefore(Wyh().content.cloneNode(!0),E.content.firstChild);return XYu=E},{mode:1});var jR6;var tX=function(){return _.r.apply(this,arguments)||this};
_.L(tX,_.r);_.k([_.X(),_.t("design:type",Object)],tX.prototype,"data",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],tX.prototype,"rendererBehavior",void 0);tX=_.k([_.b({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],tX);
_.A(tX,"ytd-premium-browse-footer-renderer",function(){if(jR6!==void 0)return jR6;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return jR6=E},{mode:1});var Up6;var f1=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return E};
_.L(f1,_.r);_.l=f1.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.handleDarkModeToggledAction=function(E){this.isDarkTheme=E};
_.l.computeHeaderLogoThumbnail=function(E,B){if(E)return B?E.darkLogo:E.lightLogo};
_.l.computeHeaderLogoHeight=function(E,B){var I,T,e;return(E=(I=this.computeHeaderLogoThumbnail(E,B))==null?void 0:(T=I.thumbnails)==null?void 0:(e=T[0])==null?void 0:e.height)&&E%31===0?"31":"24"};
_.l.computeHeaderLogoMarginBottom=function(E,B){return this.computeHeaderLogoHeight(E,B)==="24"?"0":"-7"};
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],f1.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],f1.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],f1.prototype,"isDarkTheme",void 0);_.k([_.X({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.t("design:type",Object)],f1.prototype,"themeLogo",void 0);
_.k([_.X({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.t("design:type",String)],f1.prototype,"logoHeight",void 0);_.k([_.X({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.t("design:type",String)],f1.prototype,"logoMarginBottom",void 0);f1=_.k([_.b({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],f1);
_.A(f1,"ytd-primetime-promo-header-renderer",function(){if(Up6!==void 0)return Up6;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Up6=E},{mode:1});var kEz;_.qW(iQi);var CRD;CRD=_.z8({flexibleActionsViewModel:Pk$});_.VN=_.$3(waQ);_.qW(waQ);_.oQ(_.VN,"yt-section-header-view-model",{props:{data:_.Jh,className:_.Jh,disableHorizontalPadding:_.Jh,disableVerticalPadding:_.Jh,forceSmallLayout:_.Jh,useResponsiveLayout:_.Jh,isOverlay:_.Jh}});_.QH("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var qz=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return E};
_.L(qz,_.r);_.l=qz.prototype;_.l.attached=function(){this.requestElementsPerRow()};
_.l.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"}}}};
_.l.onDataChange=function(){var E=this;_.AJ(this,function(){E.updateItemVisibility()})};
_.l.onUpdateElementsPerRowAction=function(E){E&&this.elementsPerRow!==E&&(this.elementsPerRow=E,this.updateItemVisibility())};
_.l.updateItemVisibility=function(){var E=this;this.data&&this.data.panels&&_.n(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(B,I){B.hidden=I>E.elementsPerRow-1})};
_.l.requestElementsPerRow=function(){_.$O(this.hostElement,"yt-request-elements-per-row")};
qz.prototype.onDataChange=qz.prototype.onDataChange;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],qz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],qz.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],qz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],qz.prototype,"actionHandlerBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],qz.prototype,"data",void 0);_.k([_.X({value:3}),_.t("design:type",Number)],qz.prototype,"elementsPerRow",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qz.prototype,"onDataChange",null);qz=_.k([_.b({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],qz);
_.A(qz,"ytd-primetime-promo-renderer",function(){if(kEz!==void 0)return kEz;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return kEz=E},{mode:1});var tA$;var FI=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return E};
_.L(FI,_.r);FI.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
FI.prototype.handleButtonRefreshAction=function(E){if(E=_.h(E,_.AsN))this.set("data.button",E.membershipButton),this.notifyPath("data.button")};
_.Up.Object.defineProperties(FI.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?void 0:(B=E.avatars)==null?void 0:B.slice(0,8))||[]}}});
_.k([_.X(),_.t("design:type",Object)],FI.prototype,"data",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],FI.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],FI.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],FI.prototype,"rendererBehavior",void 0);_.k([_.S("data"),_.t("design:type",Array),_.t("design:paramtypes",[])],FI.prototype,"avatars",null);
FI=_.k([_.b({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],FI);
_.A(FI,"ytd-recognition-shelf-renderer",function(){if(tA$!==void 0)return tA$;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return tA$=E},{mode:1});var foz;var VAR;var DL=function(){var E=_.r.apply(this,arguments)||this;E.modernButtons=_.d("web_modern_buttons");return E};
_.L(DL,_.r);_.l=DL.prototype;
_.l.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",
videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.l.dataChanged=function(){this.collapsed=!0};
_.l.computeVisibleItems=function(E,B){return E!==void 0&&E.items?B?E.items.slice(0,this.data.collapsedItemCount):E.items:[]};
_.l.computeHideShowMore=function(E,B,I){return E>=B||!I};
_.l.computeHideShowAll=function(E,B,I){return!(E&&B)||I};
_.l.onMoreClick=function(){this.collapsed=!1};
_.Up.Object.defineProperties(DL.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.d("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
DL.prototype.dataChanged=DL.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],DL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],DL.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],DL.prototype,"isSearch",void 0);
_.k([_.X({computed:"computeVisibleItems(data,collapsed)"}),_.t("design:type",Array)],DL.prototype,"visibleItems",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],DL.prototype,"collapsed",void 0);_.k([_.X({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.t("design:type",Boolean)],DL.prototype,"hideShowMore",void 0);
_.k([_.X({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.t("design:type",Boolean)],DL.prototype,"hideShowAll",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],DL.prototype,"modernButtons",void 0);_.k([_.S("isSearch"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],DL.prototype,"typographyBump",null);
_.k([_.S("isSearch"),_.t("design:type",String),_.t("design:paramtypes",[])],DL.prototype,"thumbnailWidth",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],DL.prototype,"dataChanged",null);DL=_.k([_.b({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],DL);
_.A(DL,"ytd-vertical-list-renderer",function(){if(VAR!==void 0)return VAR;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return VAR=E},{mode:1});var qhR=_.km(["#"]);_.QH("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var K1=function(){var E=_.r.apply(this,arguments)||this;E.isConstrainedList=!1;E.modernTypography=_.d("web_modern_typography");return E};
_.L(K1,_.r);_.l=K1.prototype;
_.l.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"}}}};
_.l.computeThumbnailStyle=function(E){return E||""};
_.l.computePlaceAnnotationUnderTitle=function(){var E;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((E=this.data)==null?void 0:E.thumbnailStyle)||"")};
_.l.computeHrefWithDefault=function(E){return this.ytComponentBehavior.computeHref_(E)||_.v1(qhR)};
_.l.computeIsPromoShelf=function(E){var B;return(E=E==null?void 0:(B=E[0])==null?void 0:B.metadataBadgeRenderer)?E.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.l.computePlaceBadgeBesideTitle=function(E){var B;return(E==null?0:(B=E[0])==null?0:B.metadataBadgeRenderer)?!this.computeIsPromoShelf(E):!1};
_.l.computeMenuIcon=function(E){return this.computeIsPromoShelf(E)?"yt-icons:more_vert":"yt-icons:more"};
_.l.onDataChange=function(){var E,B;((E=this.data)==null?0:(B=E.content)==null?0:B.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.l.onLockupRequested=function(E){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&E.detail&&E.detail.videoIds){for(var B=this.data.content.gridRenderer.items,I=new Set,T=_.p(E.detail.videoIds),e=T.next();!e.done;e=T.next())I.add(e.value);E.detail.returnValue=B.filter(function(c){return c.gridVideoRenderer&&c.gridVideoRenderer.videoId&&I.has(c.gridVideoRenderer.videoId)}).map(function(c){return c.gridVideoRenderer})}};
_.l.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
K1.prototype.onLockupRequested=K1.prototype.onLockupRequested;K1.prototype.onDataChange=K1.prototype.onDataChange;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],K1.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],K1.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],K1.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.OI),_.t("design:type",Object)],K1.prototype,"ironResizableBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],K1.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],K1.prototype,"isSearch",void 0);_.k([_.X(),_.t("design:type",Object)],K1.prototype,"isConstrainedList",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("kevlar_fluid_dismiss")}}),
_.t("design:type",Boolean)],K1.prototype,"enableFluidDismiss",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.t("design:type",String)],K1.prototype,"thumbnailStyle",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],K1.prototype,"modernTypography",void 0);_.k([_.X({computed:"computeMenuIcon(data.badges)"}),_.t("design:type",String)],K1.prototype,"menuIcon",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],K1.prototype,"onDataChange",null);_.k([_.RN("yt-lockup-requested"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],K1.prototype,"onLockupRequested",null);K1=_.k([_.b({is:"ytd-shelf-renderer",disableElementRegistration:!0})],K1);
_.A(K1,"ytd-shelf-renderer",function(){if(foz!==void 0)return foz;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return foz=E},{mode:1});var Fyu;var R7=function(){return _.r.apply(this,arguments)||this};
_.L(R7,_.r);R7.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Up.Object.defineProperties(R7.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],R7.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],R7.prototype,"data",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],R7.prototype,"isPlaylist",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],R7.prototype,"isClipList",void 0);
_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],R7.prototype,"isPlaylistPageWithFilters",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],R7.prototype,"hasTitle",null);_.k([_.X(),_.S("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.t("design:type",Object),_.t("design:paramtypes",[])],R7.prototype,"isRightAligned",null);
R7=_.k([_.b({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],R7);
_.A(R7,"ytd-sort-filter-header-renderer",function(){if(Fyu!==void 0)return Fyu;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Fyu=E},{mode:1});var DpU;var El=function(){return _.r.apply(this,arguments)||this};
_.L(El,_.r);
El.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]]"}}}}}};
El.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Up.Object.defineProperties(El.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.d("enable_creator_details_shelf_m2")){var E=[],B;((B=this.data)==null?0:B.creatorVideosButton)&&E.push(this.data.creatorVideosButton);var I;((I=this.data)==null?0:I.creatorAboutButton)&&E.push(this.data.creatorAboutButton);B=_.p(this.data.creatorCustomUrlButtons||[]);for(I=B.next();!I.done;I=B.next())E.push(I.value);return E}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.d("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],El.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.fz.YtdHorizontalListBehavior),_.t("design:type",Object)],El.prototype,"ytdHorizontalListBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],El.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],El.prototype,"engagementPanel",void 0);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],El.prototype,"creatorCustomUrlButtons",null);_.k([_.X({reflectToAttribute:!0}),_.S("data","creatorCustomUrlButtons"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],El.prototype,"showCreatorCustomUrlButtons",null);_.k([_.S("showCreatorCustomUrlButtons"),_.t("design:type",Number),_.t("design:paramtypes",[])],El.prototype,"channelAvatarSize",null);
El=_.k([_.b({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],El);
_.A(El,"ytd-video-description-infocards-section-renderer",function(){if(DpU!==void 0)return DpU;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return DpU=E},{mode:_.qi("kevlar_poly_si_batch_j067")?1:2});var Kyr;var Bz=function(){return _.r.apply(this,arguments)||this};
_.L(Bz,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Bz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Bz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Bz.prototype,"data",void 0);_.k([_.X({computed:"computeIcon_(data.infoIcon)"}),_.t("design:type",Object)],Bz.prototype,"infoIcon",void 0);Bz=_.k([_.b({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Bz);
_.A(Bz,"ytd-eom-settings-disclaimer-renderer",function(){if(Kyr!==void 0)return Kyr;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Kyr=E},{mode:1});var RNU;var It=function(){return _.r.apply(this,arguments)||this};
_.L(It,_.r);_.Up.Object.defineProperties(It.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.suppressPaddingDisclaimer)}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],It.prototype,"componentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],It.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],It.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],It.prototype,"suppressPaddingDisclaimer",null);It=_.k([_.b({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],It);
_.A(It,"ytd-product-list-header-renderer",function(){if(RNU!==void 0)return RNU;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return RNU=E},{mode:1});var E$Z;var Tu=function(){return _.r.apply(this,arguments)||this};
_.L(Tu,_.r);Tu.prototype.computeThumbnailStyle=function(E){if(E&&(E=_.dE(E)))return"background-color:"+E+";"};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Tu.prototype,"rendererBehaviors",void 0);_.k([_.X(),_.t("design:type",Object)],Tu.prototype,"data",void 0);Tu=_.k([_.b({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Tu);
_.A(Tu,"ytd-hashtag-tile-renderer",function(){if(E$Z!==void 0)return E$Z;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return E$Z=E},{mode:1});var BNU;var e3=function(){return _.r.apply(this,arguments)||this};
_.L(e3,_.r);e3.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}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],e3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],e3.prototype,"data",void 0);e3=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],e3);
_.A(e3,"ytd-sponsorships-alert-renderer",function(){if(BNU!==void 0)return BNU;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return BNU=E},{mode:1});var $ZZ;var lB=function(){return _.r.apply(this,arguments)||this};
_.L(lB,_.r);lB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Up.Object.defineProperties(lB.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.d("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.d("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.k([_.g(_.GJ),_.t("design:type",Object)],lB.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],lB.prototype,"ytdLockupBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],lB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);_.k([_.X({selector:_.HE}),_.t("design:type",Object)],lB.prototype,"isGridViewEnabled",void 0);
_.k([_.S("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],lB.prototype,"watchFeedBigThumbs",null);_.k([_.S("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.t("design:type",String),_.t("design:paramtypes",[])],lB.prototype,"thumbnailWidth",null);_.k([_.X(),_.t("design:type",Object)],lB.prototype,"data",void 0);lB=_.k([_.b({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],lB);
_.A(lB,"ytd-compact-movie-renderer",function(){if($ZZ!==void 0)return $ZZ;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return $ZZ=E},{mode:1});var IwD;var TN$;var eYt=_.HA("HTML_DIR")==="rtl",cz=function(){var E=_.r.apply(this,arguments)||this;E.engagementPanel=!1;E.maxLines=2;E.expandButtonOffset=0;E.showExpandButton=!1;E.isTruncated=!1;E.isExpanded=!1;E.currentSnippetType=2;E.alwaysShowExpandButton=!1;E.JSC$14141_lastWidth=NaN;E.observer=null;E.left=0;E.right=0;E.mid=0;E.longestSnippetLength=0;E.isFinalSnippet=!1;E.isFirstMutation=!1;E.isResetMutation=!1;E.OVERFLOW_THRESHOLD=5;return E};
_.L(cz,_.r);_.l=cz.prototype;_.l.onClick=function(E){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.XZ(_.W8(E)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var B;if((B=window.getSelection())==null||!B.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.l.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.l.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.l.updateTextOnSnippetTypeChange=function(){_.d("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.l.setUpBinarySearch=function(E){E=E*this.maxLines/8;this.left=0;var B,I;this.right=Math.min(E*2,(I=(B=this.simpleText)==null?void 0:B.length)!=null?I:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.l.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.l.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.OG(new _.P7("AttributedSnippet is empty when the description is not empty",this.text))};
_.l.mutationCallback=function(){if(this.observer!=null){var E=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var B=Math.floor(E*this.maxLines/8);this.setSnippetText(this.text,B);B!==0||this.attributedTextIsEmpty()||_.OG(new _.P7("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;E=E*this.maxLines/8;this.left=0;var I;this.right=Math.min(E*2,(I=(B=this.simpleText)==null?void 0:B.length)!=null?I: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)}}};
_.l.mutationObserve=function(E){var B=this;this.observer||(this.observer=new MutationObserver(function(){B.mutationCallback()}));
this.observer.observe(E,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.l.attached=function(){var E=this;_.AJ(this,function(){E.resize()})};
_.l.isExpandedChanged=function(){_.$O(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.l.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)};
_.l.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var E="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((eYt?"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",E);this.snippetContainer.style.setProperty("mask-image",
E)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(eYt?"right":"left",this.expandButtonOffset+"px")};
_.l.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.l.setSnippetText=function(E,B){E||(E={});if(_.HV(E)){var I=EjG(E,B);I.attachmentRuns||I.commandRuns||I.decorationRuns||I.styleRuns||I.alignment||I.lineBreakMode?this.attributedSnippetTextEl?(_.d("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=EjG(E,B),this.attributedSnippetTextEl.headerRuns=Rgd(B,this.headerRuns)):this.attributedSnippetText={data:EjG(E,B),headerRuns:Rgd(B,this.headerRuns)},this.currentSnippetType=0):_.OG(new _.P7("Tried to set snippet text when HTML element was null",
E)):(this.plainSnippetText.textContent=Oe(E.content||"",B),this.currentSnippetType=2)}else{a:{I=ZQ4(E,B);if(I.runs){I=_.p(I.runs);for(var T=I.next();!T.done;T=I.next())if(T=T.value,T.bold||T.deemphasize||T.italics||T.strikethrough||T.textColor||T.navigationEndpoint||_.h(T,m0)){I=!0;break a}}I=!1}I?this.formattedSnippetText?(this.formattedSnippetText.text=ZQ4(E,B),this.currentSnippetType=1):_.OG(new _.P7("Tried to set snippet text when HTML element was null",E)):(this.plainSnippetText.textContent=
Oe(_.U3(E),B),this.currentSnippetType=2)}};
_.l.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.l.attributedTextIsEmpty=function(){var E=this.text;if(!_.HV(E))return!0;var B;return((B=E.content)==null?void 0:B.length)===0?!0:!1};
_.l.resize=function(E){if(this.snippetText){if(E===void 0?0:E)this.JSC$14141_lastWidth=NaN;var B=this.hostElement.offsetWidth;if(B!==this.JSC$14141_lastWidth&&!this.isExpanded)if(this.JSC$14141_lastWidth=B,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;E=0;var I,T;B=Math.min(B*this.maxLines/8*2,(T=(I=this.simpleText)==null?void 0:I.length)!=null?T:0)-1;for(I=0;E<=B;)T=Math.floor(E+(B-E)/2),this.setSnippetText(this.text,T),this.isOverflowing()?B=T-1:(E=T+1,I=T);this.setSnippetText(this.text,I);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.l.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.l.onExpandClick=function(){var E=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.d("inline_expander_reset_focus_killswitch")||_.AJ(this,function(){var B;((B=_.Q().resolve(_.Fx(_.ZR)))==null?0:B.isKeyBoardInUse())&&_.ox(E.hostElement)});
_.$O(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.l.onCollapseClick=function(){this.collapse();_.$O(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.l.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.l.computeExpandButtonOffset=function(){var E=this.expandSizer;return E?eYt?E.offsetParent?E.offsetParent.offsetWidth-E.offsetWidth-E.offsetLeft:0:E.offsetLeft:0};
_.Up.Object.defineProperties(cz.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.HV(this.text)?this.text.content||"":_.U3(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 _.HV(this.text)?!0:this.text&&_.d("web_replace_formatted_with_attributed_string")&&dzD(this.text)?(this.text=_.zA(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}}});
cz.prototype.onTextChanged=cz.prototype.onTextChanged;cz.prototype.updateMaskAndExpandButtonOffset=cz.prototype.updateMaskAndExpandButtonOffset;cz.prototype.updateSnippetContainerMaxHeight=cz.prototype.updateSnippetContainerMaxHeight;cz.prototype.isExpandedChanged=cz.prototype.isExpandedChanged;cz.prototype.updateTextOnSnippetTypeChange=cz.prototype.updateTextOnSnippetTypeChange;cz.prototype.updateIsFormattedExpanded=cz.prototype.updateIsFormattedExpanded;cz.prototype.updateIsAttributedExpanded=cz.prototype.updateIsAttributedExpanded;
cz.prototype.onClick=cz.prototype.onClick;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],cz.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],cz.prototype,"text",void 0);_.k([_.X(),_.t("design:type",Array)],cz.prototype,"headerRuns",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cz.prototype,"engagementPanel",void 0);_.k([_.X(),_.t("design:type",Object)],cz.prototype,"maxLines",void 0);
_.k([_.X(),_.t("design:type",String)],cz.prototype,"expandLabel",void 0);_.k([_.X(),_.t("design:type",String)],cz.prototype,"collapseLabel",void 0);_.k([_.X(),_.t("design:type",Object)],cz.prototype,"expandCommand",void 0);_.k([_.X(),_.t("design:type",Object)],cz.prototype,"expandButtonOffset",void 0);_.k([_.S("text"),_.t("design:type",String),_.t("design:paramtypes",[])],cz.prototype,"simpleText",null);
_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],cz.prototype,"onClick",null);_.k([_.S("text","isExpanded"),_.t("design:type",Object),_.t("design:paramtypes",[])],cz.prototype,"expandedText",null);_.k([_.S("headerRuns","isExpanded"),_.t("design:type",Object),_.t("design:paramtypes",[])],cz.prototype,"expandedHeaderRuns",null);
_.k([_.S("text"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],cz.prototype,"hasAttributedStringText",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cz.prototype,"showExpandButton",void 0);_.k([_.S("collapseLabel","isExpanded"),_.t("design:type",Object),_.t("design:paramtypes",[])],cz.prototype,"showCollapseButton",null);_.k([_.X(),_.t("design:type",Object)],cz.prototype,"isTruncated",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cz.prototype,"isExpanded",void 0);_.k([_.X(),_.t("design:type",Boolean)],cz.prototype,"isAttributedExpanded",void 0);_.k([_.EM("isExpanded","hasAttributedStringText"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cz.prototype,"updateIsAttributedExpanded",null);_.k([_.X(),_.t("design:type",Boolean)],cz.prototype,"isFormattedExpanded",void 0);
_.k([_.EM("isExpanded","hasAttributedStringText"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cz.prototype,"updateIsFormattedExpanded",null);_.k([_.X(),_.t("design:type",Number)],cz.prototype,"currentSnippetType",void 0);_.k([_.S("currentSnippetType"),_.t("design:type",Object),_.t("design:paramtypes",[])],cz.prototype,"useAttributedSnippet",null);
_.k([_.S("currentSnippetType"),_.t("design:type",Object),_.t("design:paramtypes",[])],cz.prototype,"useFormattedSnippet",null);_.k([_.S("currentSnippetType"),_.t("design:type",Object),_.t("design:paramtypes",[])],cz.prototype,"usePlainSnippet",null);_.k([_.X(),_.t("design:type",Object)],cz.prototype,"alwaysShowExpandButton",void 0);_.k([_.EM("currentSnippetType"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cz.prototype,"updateTextOnSnippetTypeChange",null);
_.k([_.X(),_.t("design:type",Object)],cz.prototype,"attributedSnippetText",void 0);_.k([_.$7("#snippet"),_.t("design:type",HTMLElement)],cz.prototype,"snippetContainer",void 0);_.k([_.$7("#snippet-text"),_.t("design:type",HTMLElement)],cz.prototype,"snippetText",void 0);_.k([_.$7("#plain-snippet-text"),_.t("design:type",HTMLElement)],cz.prototype,"plainSnippetText",void 0);_.k([_.$7("#formatted-snippet-text"),_.t("design:type",Object)],cz.prototype,"formattedSnippetText",void 0);
_.k([_.$7("#attributed-snippet-text"),_.t("design:type",Object)],cz.prototype,"attributedSnippetTextEl",void 0);_.k([_.$7("#expand"),_.t("design:type",HTMLElement)],cz.prototype,"expandButton",void 0);_.k([_.$7("#expand-sizer"),_.t("design:type",HTMLElement)],cz.prototype,"expandSizer",void 0);_.k([_.i6("isExpanded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cz.prototype,"isExpandedChanged",null);
_.k([_.EM("isExpanded","maxLines"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cz.prototype,"updateSnippetContainerMaxHeight",null);_.k([_.EM("isTruncated","showExpandButton","expandButtonOffset"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cz.prototype,"updateMaskAndExpandButtonOffset",null);
_.k([_.i6("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cz.prototype,"onTextChanged",null);cz=_.k([_.b({is:"ytd-text-inline-expander",disableElementRegistration:!0})],cz);
_.A(cz,"ytd-text-inline-expander",function(){if(TN$===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);TN$=E}E=TN$;return E},{mode:2});var iB=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return E};
_.L(iB,_.r);iB.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
iB.prototype.handleUpdateDescriptionAction=function(E){if(E=_.h(E,_.ror))if(E.attributedDescription)this.set("data.attributedDescriptionBodyText",E.attributedDescription);else if(E.description){var B;((B=this.data)==null?0:B.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.zA(E.description)):this.set("data.descriptionBodyText",E.description)}};
_.Up.Object.defineProperties(iB.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var E,B;return!((E=this.data)==null||!E.attributedDescriptionBodyText)||!((B=this.data)==null||!B.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)==null?0:E.collapsedLineCount){var B;return(B=this.data)==null?void 0:B.collapsedLineCount}E=_.RI("web_watch_description_collapsed_default_lines",12);if(_.d("ww_desc_line_page_size_ks"))return E;B=Math.round(_.v8().height*_.RI("web_watch_description_screen_height_percentage",.5)/20);return Math.max(B,E)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return(I=(E=this.data)==null?void 0:E.descriptionBodyText)!=null?I:(B=this.data)==null?void 0:B.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.sourceAttributions}}});
iB.prototype.panelContentVisibleChanged=iB.prototype.panelContentVisibleChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],iB.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],iB.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],iB.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Boolean)],iB.prototype,"panelContentVisible",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],iB.prototype,"engagementPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],iB.prototype,"shortsPanel",void 0);_.k([_.$7("#inline-expander"),_.t("design:type",Object)],iB.prototype,"inlineExpander",void 0);
_.k([_.EM("panelContentVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],iB.prototype,"panelContentVisibleChanged",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],iB.prototype,"hasDescriptionText",null);_.k([_.S("data"),_.t("design:type",Number),_.t("design:paramtypes",[])],iB.prototype,"collapsedLines",null);
_.k([_.S("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.t("design:type",Object),_.t("design:paramtypes",[])],iB.prototype,"descriptionText",null);_.k([_.S("data","data.headerRuns"),_.t("design:type",Object),_.t("design:paramtypes",[])],iB.prototype,"headerRuns",null);_.k([_.S("data","data.sourceAttributions"),_.t("design:type",Object),_.t("design:paramtypes",[])],iB.prototype,"sourceAttributions",null);
iB=_.k([_.b({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],iB);
_.A(iB,"ytd-expandable-video-description-body-renderer",function(){if(IwD!==void 0)return IwD;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return IwD=E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var lw6;var c0U=_.rp(function(E){var B=E.data;return _.w("factoid-renderer",{class:"ytwFactoidRendererHost"},_.w("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return B().accessibilityText}},_.w("span",{class:"ytwFactoidRendererValue"},_.w(_.aS,{text:function(){return B().value}})),_.w("span",{class:"ytwFactoidRendererLabel"},_.w(_.aS,{text:function(){return B().label}}))))},"Db");_.oQ(c0U,"factoid-renderer",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;return _.w("upload-time-factoid-renderer",null,_.w(_.hM,{data:function(){return B().factoid}},{factoidRenderer:c0U}))},"Eb"),"upload-time-factoid-renderer",{props:{data:_.bu}});_.oQ(_.rp(function(E){var B=E.data;return _.w("view-count-factoid-renderer",null,_.w(_.hM,{data:function(){return B().factoid}},{factoidRenderer:c0U}))},"Fb"),"view-count-factoid-renderer",{props:{data:_.bu}});var pR=function(){var E=_.r.apply(this,arguments)||this;E.shortsPanel=!1;E.engagementPanel=!1;E.watchWhileSdp=_.d("shorts_desktop_watch_while_sdp");return E};
_.L(pR,_.r);pR.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"}}}}};
_.Up.Object.defineProperties(pR.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var E;return(E=this.data)==null?void 0:E.channel}}});
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],pR.prototype,"componentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],pR.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],pR.prototype,"shortsPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],pR.prototype,"engagementPanel",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],pR.prototype,"watchWhileSdp",void 0);_.k([_.S("shortsPanel","engagementPanel","data.channel"),_.t("design:type",Object),_.t("design:paramtypes",[])],pR.prototype,"showChannelInfo",null);pR=_.k([_.b({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],pR);
_.A(pR,"ytd-video-description-header-renderer",function(){if(lw6!==void 0)return lw6;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return lw6=E},{mode:1});var i5u;var Yj=function(){return _.r.apply(this,arguments)||this};
_.L(Yj,_.r);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Yj.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Yj.prototype,"noPadding",void 0);_.k([_.X(),_.t("design:type",Object)],Yj.prototype,"data",void 0);Yj=_.k([_.b({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Yj);
_.A(Yj,"ytd-list-item-view-model",function(){if(i5u!==void 0)return i5u;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return i5u=E},{mode:1});var pot;var YVR;var awR;var v$u;var at=function(){var E=_.r.apply(this,arguments)||this;E.adaptiveFullWidth=!1;E.modernButtons=_.d("web_modern_buttons");E.buttonOverrides={style:"call-to-action",type:"filled"};E.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return E};
_.L(at,_.r);at.prototype.handleSetTimestamp_=function(E){this.data&&this.data.shortUrl&&(_.n(this.hostElement).querySelector("#share-url").value=E.isSet?_.bt(this.data.shortUrl,"t",E.timestamp):this.data.shortUrl)};
at.prototype.handleSignalActionCopyShareUrl_=function(E,B){(_.d("killswitch_copy_link_target_check")||_.n(this.hostElement).querySelector("#copy-button")===B)&&this.copyUrlToClipboard()};
at.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.n(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
at.prototype.computeStyle_=function(E){return E?E.toLowerCase().replace(/_/g,"-"):""};
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],at.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],at.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.t("design:type",String)],at.prototype,"rendererStyle",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],at.prototype,"adaptiveFullWidth",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],at.prototype,"modernButtons",void 0);_.k([_.X(),_.t("design:type",Object)],at.prototype,"buttonOverrides",void 0);at=_.k([_.QE({is:"yt-copy-link-renderer",disableElementRegistration:!0})],at);
_.A(at,"yt-copy-link-renderer",function(){if(v$u===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;awR===void 0&&(awR=document.createElement("template"));var T=awR;I.call(B,T.content.cloneNode(!0),E.content.firstChild);v$u=E}E=v$u;return E},{mode:2});_.QH("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var vz=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return E};
_.L(vz,_.r);_.l=vz.prototype;_.l.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.l.attached=function(){this.keyboardFocused=!1};
_.l.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var E=_.Q().resolve(_.Fx(_.ZR));E&&(this.keyboardFocused=E.isKeyBoardInUse())}};
_.l.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.l.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}};
_.l.onChange_=function(){if(this.data){var E=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;E&&this.ytComponentBehavior.resolveCommand(E);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.l.handleUpdateToggleAction_=function(E){(E=_.h(E,BIh))&&this.data&&E.targetId==this.data.targetId&&this.set("data.toggled",E.toggled)};
_.l.toBoolean_=function(E){return!!E};
_.l.reset=function(){};
_.l.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("data-changed",this.data))};
_.l.updateDataToggledFromBinding=function(E){this.set("data.toggled",E.detail.value)};
vz.prototype.dataChangedForBinding=vz.prototype.dataChangedForBinding;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],vz.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],vz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],vz.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],vz.prototype,"data",void 0);_.k([_.X({computed:"computeDescription_(data.*)"}),_.t("design:type",Object)],vz.prototype,"description_",void 0);_.k([_.X({value:function(){return!!_.Q().resolve(_.Fx(_.ZR))&&_.d("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.t("design:type",Boolean)],vz.prototype,"useKeyboardFocused",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],vz.prototype,"keyboardFocused",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vz.prototype,"dataChangedForBinding",null);vz=_.k([_.QE({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],vz);
_.A(vz,"yt-toggle-form-field-renderer",function(){if(YVR===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;pot===void 0&&(pot=document.createElement("template"));var T=pot;I.call(B,T.content.cloneNode(!0),E.content.firstChild);YVR=E}E=YVR;return E},{mode:2});var y0u;var C5r;var yv=function(){var E=_.r.apply(this,arguments)||this;E.isDarkTheme=!1;E.isSearch=!1;E.darkerDarkTheme=_.d("web_darker_dark_theme");E.noTopMargin=_.d("kevlar_watch_no_top_margin");E.maskFade=_.d("web_watch_chips_mask_fade");E.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 E};
_.L(yv,_.r);_.l=yv.prototype;_.l.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}}}}}};
_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.l.dataChanged=function(){var E=this.getSelectedIndex();if(E>0)this.selected=E;else{this.selected=0;var B,I;(B=this.ytScrollableChipCloudBehavior)==null||(I=B.reset)==null||I.call(B)}};
_.l.getSelectedIndex=function(){var E;if((E=this.data)==null||!E.chips)return-1;E=-1;for(var B,I=0;I<((B=this.data)==null?void 0:B.chips.length);I++){var T=void 0,e=void 0;if((T=this.data)==null?0:(e=T.chips[I].chipCloudChipRenderer)==null?0:e.isSelected){E=I;break}}return E};
_.l.onResize=function(){var E=this.ytScrollableChipCloudBehavior;_.AJ(E,E.setContainerWidthDiff);Fp(this.ytScrollableChipCloudBehavior)};
_.l.onDarkModeToggledAction=function(E){this.isDarkTheme=E};
_.l.handleRelatedChipCommand=function(E,B){E=this.JSC$14168_chipsSelector.indexOf(B);E!==-1&&this.JSC$14168_chipsSelector.selectIndex(E)};
_.l.handleChipCloudChipSelectAction=function(E){E=this.JSC$14168_chipsSelector.indexOf(E);E>-1&&this.JSC$14168_chipsSelector.selectIndex(E)};
_.l.handleChipCloudChipDeselectAction=function(){var E=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14168_chipsSelector&&((E==null?0:E.continuationCommand)?_.l1(this.hostElement,[E]):(E==null?0:E.searchEndpoint)?this.ytComponentBehavior.resolveCommand(E):E&&_.cN(this.hostElement,[E],this.hostElement),this.JSC$14168_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.l.updateSelectedFromBinding=function(E){this.selected=E.detail.value};
yv.prototype.onResize=yv.prototype.onResize;yv.prototype.dataChanged=yv.prototype.dataChanged;yv.prototype.isSearchChanged=yv.prototype.isSearchChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],yv.prototype,"actionHandlerBehavior",void 0);
_.k([_.g(_.OI),_.t("design:type",Object)],yv.prototype,"ironResizableBehavior",void 0);_.k([_.g(),_.t("design:type",qJ)],yv.prototype,"ytScrollableChipCloudBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],yv.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],yv.prototype,"data",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],yv.prototype,"selected",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],yv.prototype,"isDarkTheme",void 0);_.k([_.X({value:160}),_.t("design:type",Number)],yv.prototype,"scrollDistance",void 0);_.k([_.X(),_.t("design:type",Object)],yv.prototype,"isSearch",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],yv.prototype,"darkerDarkTheme",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],yv.prototype,"noTopMargin",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],yv.prototype,"maskFade",void 0);_.k([_.$7("#chips"),_.t("design:type",Object)],yv.prototype,"JSC$14168_chipsSelector",void 0);_.k([_.EM("isSearch"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],yv.prototype,"isSearchChanged",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],yv.prototype,"dataChanged",null);
_.k([_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],yv.prototype,"onResize",null);yv=_.k([_.QE({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],yv);
_.A(yv,"yt-chip-cloud-renderer",function(){if(C5r===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;y0u===void 0&&(y0u=document.createElement("template"));var T=y0u;I.call(B,T.content.cloneNode(!0),E.content.firstChild);C5r=E}E=C5r;return E},{mode:2});var wor,Z5$=function(){return wor!==void 0?wor:wor=document.createElement("template")};
document.head.appendChild(Z5$().content);var P5D;var zYz=document.head,mZU=zYz.appendChild,Q1Z;if(P5D===void 0){var dZX=document.createElement("template");_.G(dZX,"");dZX.content.insertBefore(Z5$().content.cloneNode(!0),dZX.content.firstChild);P5D=dZX}Q1Z=P5D;mZU.call(zYz,Q1Z.content);var hY6=_.rp(function(E){var B=E.data;return _.w("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.w("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.w("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.w(_.wU,{cond:function(){return _.VW(B().image)},
then:function(I){return _.w("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.w(_.Ja,{data:I,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.w("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.w(_.aS,{text:function(){return B().title}})),_.w("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.w(_.aS,{text:function(){return B().subtitle}})))),_.w(_.wU,{cond:function(){var I;
return(I=B())==null?void 0:I.hasBottomDivider},
then:function(){return _.w("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Gb");var s1r=_.rp(function(E){var B=E.data;return _.w("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.w("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.w(_.hM,{data:function(){var I;return(I=B().offerPlanDetailsItem)!=null?I:[]}},{offerPlanDetailsItemViewModel:function(I){return _.w("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.w(hY6,{data:I.data}))}})),_.w("div",null,_.w(_.wU,{cond:function(){return B().hasBottomDivider},
then:function(){return _.w("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.w("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.w("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.w("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.w("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Hb");var ujD=_.rp(function(E){var B=E.data;E=_.p(_.lQ(!1,void 0,"SpEGQd"));var I=E.next().value,T=E.next().value,e=_.TI(function(){T(!I());return!1}),c=function(){var Y;
return(Y=B().offerPlanDetailsContainer)!=null?Y:[]};
return _.w("lp-complex-offer-card-details-view-model",null,_.w("div",null,_.w(_.wU,{cond:function(){return I()},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.w("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":e,"aria-expanded":I},_.w(_.aS,{text:function(){return B().expandedTitle}})),_.w("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.w(_.hM,{data:c},{offerPlanDetailsContainerViewModel:function(Y){return _.w("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.w(s1r,{data:Y.data}))}})),_.w("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.w(_.aS,{text:function(){return B().legalText}})))},
else:function(){return _.w("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":e,"aria-expanded":I},_.w(_.aS,{text:function(){return B().collapsedTitle}}),_.w("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.w(_.i0,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Ib");var Lk$=_.rp(function(E){var B=E.data;return _.w("lp-complex-offer-card-option-view-model",null,_.w("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.w(_.wU,{cond:function(){return B().topDividerText},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.w("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.w("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.w("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.w(_.aS,{text:function(){return B().topDividerText}}))))}}),_.w(_.wU,{cond:function(){return B().planPricingPrimary},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.w(_.aS,{text:function(){return B().planPricingPrimary}}))}}),_.w(_.wU,{cond:function(){return B().planPricingSecondary},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.w(_.aS,{text:function(){return B().planPricingSecondary}}))}}),_.w(_.wU,{cond:function(){return B().primaryButton},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.w(_.hM,{data:function(){return B().primaryButton}},{buttonViewModel:function(I){return _.w(_.ne,{data:I.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Jb");var xZh=_.rp(function(E){var B=E.data;var I=function(){var c;return((c=B())==null?void 0:c.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
E={};var T={},e={};return _.w("ytm-lp-complex-offer-card-view-model",null,_.w("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.w("div",{class:_.RQ((E.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=I,E),"ytmLpComplexOfferCardViewModelCardContainer")},_.w(_.wU,{cond:function(){var c;return(c=B())==null?void 0:c.bannerText},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.w("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.w(_.aS,{text:function(){return B().bannerText}})))}}),_.w(_.wU,{cond:function(){return _.VW(B().logo)},
then:function(c){var Y={};return _.w("div",{class:_.RQ((Y.ytmLpComplexOfferCardViewModelLogoAlignLeft=I,Y),"ytmLpComplexOfferCardViewModelLogo")},_.w(_.Ja,{data:c,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.w("div",{class:_.RQ((T.ytmLpComplexOfferCardViewModelTitleAlignLeft=I,T),"ytmLpComplexOfferCardViewModelTitle")},_.w(_.aS,{text:function(){return B().title}})),_.w(_.wU,{cond:function(){var c;
return(c=B())==null?void 0:c.subtitle},
then:function(){var c={};return _.w("div",{class:_.RQ((c.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=I,c),"ytmLpComplexOfferCardViewModelSubtitle")},_.w(_.aS,{text:function(){return B().subtitle}}))}}),_.w(_.wU,{cond:function(){return B().planPricingPrimary},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.w(_.aS,{text:function(){return B().planPricingPrimary}}))}}),_.w(_.wU,{cond:function(){return B().planPricingSecondary},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.w(_.aS,{text:function(){return B().planPricingSecondary}}))}}),_.w(_.wU,{cond:function(){return B().purchaseButton},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.w(_.hM,{data:function(){return B().purchaseButton}},{buttonViewModel:function(c){return _.w(_.ne,{data:c.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.w(_.wU,{cond:function(){var c;
return(c=B())==null?void 0:c.offerOptions},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.w(_.hM,{data:function(){return B().offerOptions}},{lpComplexOfferCardOptionViewModel:Lk$}))}}),_.w("div",{class:_.RQ((e.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=I,e),"ytmLpComplexOfferCardViewModelLegalText")},_.w(_.aS,{text:function(){return B().legalText}})),_.w(_.wU,{cond:function(){var c;
return(c=B())==null?void 0:c.offerCardDetails},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.w(_.hM,{data:function(){return B().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:ujD}))}}))))},"Kb");var GWU=_.rp(function(E){var B=E.data;var I=function(){var Y;return((Y=B())==null?void 0:Y.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
E={};var T={},e={},c={};return _.w("ytm-lp-complex-offer-card-section-view-model",null,_.w("div",{class:_.RQ("ytmLpComplexOfferCardSectionViewModelHost")},_.w("div",{class:_.RQ((E.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=I,E),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.w("div",{class:_.RQ((T.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=I,T),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.w("h2",{class:_.RQ((e.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
I,e),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.w(_.aS,{text:function(){return B().title}}))),_.w(_.wU,{cond:function(){var Y;
return(Y=B())==null?void 0:Y.subtitle},
then:function(){var Y={},v={};return _.w("div",{class:_.RQ((Y.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=I,Y),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.w("div",{class:_.RQ((v.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=I,v),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.w(_.aS,{text:function(){return B().subtitle}})))}}),_.w("div",{class:_.RQ((c.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=I,c),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.w(_.hM,{data:function(){var Y;
return(Y=B().offerPlans)!=null?Y:[]}},{lpComplexOfferCardViewModel:function(Y){return _.w("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.w(xZh,{data:Y.data}))}})))))},"Lb");_.Oj=w7r.getInstance();var O5V=_.rp(function(E){return _.w("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":E.shouldAriaHideContent},_.w("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:E.questionId},_.w(_.aS,{text:E.question})))},"Mb"),n$Z=_.rp(function(E){var B=E.data;
var I=E.themeOverride;E=_.p(_.lQ(!1,void 0,"ljTVPd"));var T=E.next().value,e=E.next().value;E=_.TI(function(){e(!T());return!1});
var c=function(){return T()?"EXPAND_LESS":"EXPAND_MORE"},Y=("faq-container"+_.GN(_.Oj)).toString(),v="faq-question-and-answers-section-question"+_.GN(_.Oj),y={},Z={};
return _.w("faq-entry-view-model-c3",null,_.w("div",{class:_.RQ("yt-lp-faq-entry-view-model",(y["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return I==null?void 0:I().useDarkTheme},y))},_.w("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":E,role:"button","aria-expanded":T,"aria-labelledby":v.toString(),"tab-index":"0"},_.w(O5V,{question:function(){return B().question},
questionId:v,shouldAriaHideContent:!0}),_.w(_.wU,{cond:function(){return T()!==void 0},
then:function(){return _.w("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.w(_.i0,{icon:c,ariaHidden:!0}),_.w("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.w("div",{class:_.RQ("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(Z["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!T()},Z))},_.w("div",{id:Y},_.w(_.Zt,{each:function(){return B().answers||[]}},function(P){return _.w("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.w(_.aS,{text:P}))})))))},"Nb");
n$Z.idomCompat=!0;var Mh$=_.rp(function(E){var B=E.data;var I=E.themeOverride;E={};return _.w("lp-faq-section-view-model-c3",null,_.w("div",{class:_.RQ("yt-lp-faq-section-view-model",(E["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return B().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},E["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},E))},_.w("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.w(_.wU,{cond:function(){return B().header},
then:function(T){return _.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.w(_.aS,{text:T}))}}),_.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.w(_.hM,{data:function(){return B().faqs}},{faqEntryViewModel:function(T){return _.w(n$Z,{data:T.data,
themeOverride:I})}})),_.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.w(_.Zt,{each:function(){return B().footers||[]}},function(T){return _.w(_.aS,{text:T})})),_.w(_.wU,{cond:function(){return B().legal},
then:function(T){return _.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.w(_.aS,{text:T}))}}))))},"Ob");
Mh$.idomCompat=!0;var H5D=_.rp(function(E){var B=E.data;var I=E.themeOverride;_.uW(function(){var Y=B().gtmId;Y&&_.y5(Y,_.HA("GL",""))});
var T={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Y,v,y;return(y=(Y=B().logo)==null?void 0:(v=Y.accessibilityData)==null?void 0:v.label)!=null?y:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},e=_.Q().resolve(_.Fx(_.ME)),c=function(){return e&&e()||(I==null?void 0:I().useDarkTheme)};
return _.w("lp-header-section-view-model",null,_.w("div",{class:function(){var Y=B().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",v=B().marginType==="LP_SECTION_MARGIN_TYPE_TOP",y=I==null?void 0:I().useDarkTheme,Z=["lp-header-section-view-model"];Y&&Z.push("lp-header-section-view-model--ptc-layout-type");v&&Z.push("lp-header-section-view-model__lp-header-section-margin");y&&Z.push("lp-header-section-view-model--premium-force-dark-mode");return Z.join(" ")}},_.w(_.wU,{cond:function(){return B().logo},
then:function(){return _.w("div",null,_.w(_.wU,{cond:c,then:function(){return _.w(_.wU,{cond:function(){var Y;return(Y=B().logo)==null?void 0:Y.imageDark},
then:function(Y){return _.w(_.Ja,Object.assign({},{data:Y},T))}})},
else:function(){return _.w(_.wU,{cond:function(){var Y;return(Y=B().logo)==null?void 0:Y.imageLight},
then:function(Y){return _.w(_.Ja,Object.assign({},{data:Y},T))}})}}))}}),_.w(_.wU,{cond:function(){return B().title},
then:function(Y){return _.w("div",{class:"lp-header-section-view-model__lp-header-title"},_.w(_.aS,{text:Y}))}}),_.w("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.w(_.wU,{cond:function(){return B().subtitles},
then:function(Y){return _.w(_.Zt,{each:Y},function(v){return _.w("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.w(_.aS,{text:v}))})}})),_.w(_.wU,{cond:function(){return B().additionalInfo},
then:function(Y){return _.w("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.w(_.aS,{text:Y}))}}),_.w("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.w(_.wU,{cond:function(){return B().primaryButton},
then:function(Y){return _.w("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.w(_.hM,{data:Y},{buttonViewModel:_.ne}))}}),_.w(_.wU,{cond:function(){return B().secondaryButton},
then:function(Y){return _.w("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.w(_.hM,{data:Y},{buttonViewModel:_.ne}))}})),_.w(_.wU,{cond:function(){return B().otherOffersInfo},
then:function(Y){return _.w("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.w(_.aS,{text:Y}))}}),_.w("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.w(_.wU,{cond:function(){return B().billingInfo},
then:function(Y){return _.w(_.Zt,{each:Y},function(v){return _.w("div",null,_.w(_.aS,{text:v}))})}}))))},"Pb");
H5D.idomCompat=!0;var NNZ=_.rp(function(E){var B=E.data;var I=_.Wl(E.themeOverride,{useDarkTheme:!1});E={};E=_.RQ("ytm-lp-headline-section-view-model",(E["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return I().useDarkTheme},E));
return _.w("lp-headline-section-view-model",null,_.w("div",{class:E},_.w("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.w(_.aS,{text:function(){return B().title}})),_.w(_.wU,{cond:function(){return B().subtitle},
then:function(T){return _.w("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.w(_.aS,{text:T}))}})))},"Qb");var g$R=_.rp(function(E){var B=E.data;var I=E.themeOverride;var T=_.Q().resolve(_.Fx(_.ME)),e=function(){return T&&T()||(I==null?void 0:I().useDarkTheme)},c=function(){var Z,P;
var z=e()?(Z=B().textBackgroundImage)==null?void 0:Z.imageDark:(P=B().textBackgroundImage)==null?void 0:P.imageLight;return hF6((z==null?void 0:z.sources)||[])},Y=function(){var Z,P;
return e()?(Z=B().featureImage)==null?void 0:Z.imageDark:(P=B().featureImage)==null?void 0:P.imageLight},v=function(){return B().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},y=function(){var Z,P;
return e()?(Z=B().logo)==null?void 0:Z.imageDark:(P=B().logo)==null?void 0:P.imageLight};
return _.w("ytm-lp-large-feature-section-view-model",null,_.w("div",{class:function(){var Z=B().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",P=B().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",z=(B().index||0)%2===1,m=I==null?void 0:I().useDarkTheme,u=["yt-lp-large-feature-section-view-model"];Z?u.push("yt-lp-large-feature-section-view-model--music-feature-type"):P?u.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):z||u.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
m&&u.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return u.join(" ")}},_.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.w(_.wU,{cond:Y,
then:function(){return _.w(_.Ja,{data:function(){return Y()},
alt:function(){var Z,P,z;return(z=(Z=B().featureImage)==null?void 0:(P=Z.accessibilityData)==null?void 0:P.label)!=null?z:""},
contentMode:v})}})),_.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var Z;return((Z=c())==null?0:Z.url)?"background-image: url("+_.pr(c().url)+");":""}},_.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.w(_.wU,{cond:y,
then:function(){return _.w(_.Ja,{data:function(){return y()},
alt:function(){var Z,P,z;return(z=(Z=B().logo)==null?void 0:(P=Z.accessibilityData)==null?void 0:P.label)!=null?z:""},
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"})}}),_.w(_.wU,{cond:function(){return B().eyebrowText},
then:function(){return _.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.w(_.aS,{text:function(){return B().eyebrowText}}))}}),_.w(_.wU,{cond:function(){return B().title},
then:function(){return _.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.w(_.aS,{text:function(){return B().title}}))}}),_.w(_.wU,{cond:function(){return B().subtitles},
then:function(){return _.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.w(_.Zt,{each:function(){return B().subtitles||[]}},function(Z){return _.w(_.aS,{text:Z})}))}})))))},"Rb");
g$R.idomCompat=!0;var SVX=_.rp(function(E){return _.w("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.w("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.w(_.i0,{icon:function(){var B;return(B=E.data())==null?void 0:B.iconType},
className:function(){var B;return((B=E.data())==null?void 0:B.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.w("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.w(_.aS,{text:function(){var B;
return(B=E.data())==null?void 0:B.text}}))))},"Sb");var J0$=_.rp(function(E){E=_.XS(E,{config:void 0,themeOverride:void 0});var B=E.data,I=E.config,T=E.themeOverride;E={};E=_.RQ("ytm-lp-offer-card-option-view-model",(E["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var y;return(y=T())==null?void 0:y.useDarkTheme},E));
var e=_.TI(function(){var y,Z;(y=I())==null||(Z=y.handleRadioButtonClick)==null||Z.call(y,B());return!1}),c=function(){var y;
return(y=I())==null?void 0:y.shouldDisplayRadioButton},Y=_.TI(function(){if(c()){var y,Z;
(y=I())==null||(Z=y.handleRadioButtonClick)==null||Z.call(y,B())}return!1}),v=function(){var y;
return(y=B().featureListItems)!=null?y:[]};
return _.w("ytm-lp-offer-card-option-view-model",null,_.w("div",{class:E,"on:click":Y},_.w(_.wU,{cond:c,then:function(){return _.w("div",null,_.w("input",{type:"radio","on:click":e,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var y;return!((y=I())==null||!y.isOptionSelected)}}))}}),_.w("div",null,_.w("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.w(_.aS,{text:function(){return B().eyebrowText}})),_.w("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.w(_.aS,{text:function(){return B().title}})),_.w("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.w(_.aS,{text:function(){return B().subtitle}})),_.w(_.wU,{cond:function(){return v().length>0},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.w(_.hM,{data:v},{lpFeatureListItemViewModel:SVX}))}}),_.w("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.w(_.aS,{text:function(){return B().description}})))))},"Tb");
J0$.idomCompat=!0;var WkV=_.rp(function(E){var B=E.data;var I=E.themeOverride;E=_.p(_.l0(function(){var c,Y=(c=B().offerOptions)==null?void 0:c[0];return _.h(Y,YIX)||{}}));
var T=E.next().value,e=E.next().value;E={};return _.w("ytm-lp-offer-card-view-model",null,_.w("div",{class:_.RQ("ytm-lp-offer-card-view-model",(E["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},E))},_.w("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.w(_.wU,{cond:function(){return B().titleIconType},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.w(_.i0,{icon:function(){var c;return((c=B().titleIconType)==null?void 0:c.toString())||""}}))}}),_.w("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.w(_.aS,{text:function(){return B().title}})),_.w(_.hM,{data:function(){return B().titleBadge}},{badgeViewModel:function(c){return _.w("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.w(_.oM,{data:c.data}))}})),_.w("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.w(_.hM,{data:function(){return B().offerOptions}},{lpOfferCardOptionViewModel:function(c){var Y=c.data;
return _.w(_.VS,null,_.w("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.w(J0$,{data:Y,config:function(){var v;return{shouldDisplayRadioButton:(B().offerOptions||[]).length>1,isOptionSelected:Y().id===((v=T())==null?void 0:v.id),handleRadioButtonClick:function(y){return void e(y)}}},
themeOverride:I}))}})),_.w("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.w(_.hM,{data:function(){var c;
return(c=T())==null?void 0:c.purchaseButtonOverride}},{buttonViewModel:_.ne}))))},"Ub");
WkV.idomCompat=!0;var XoU=_.rp(function(E){var B=E.data;var I=E.themeOverride;E={};E=_.RQ("ytm-lp-offer-card-section-view-model",(E["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var T;return I==null?void 0:(T=I())==null?void 0:T.useDarkTheme},E));
return _.w("ytm-lp-offer-card-section-view-model",null,_.w("div",{class:E},_.w(_.wU,{cond:function(){return B().title!==void 0},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.w("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.w(_.aS,{text:function(){return B().title}})),_.w(_.wU,{cond:function(){return B().subtitle},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.w(_.aS,{text:function(){return B().subtitle}}))}}))}}),_.w("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.w(_.hM,{data:function(){return B().offerCards}},{lpOfferCardViewModel:function(T){return _.w("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.w(WkV,{data:T.data,
themeOverride:I}))}})),_.w(_.wU,{cond:function(){return B().footer},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.w(_.aS,{text:function(){return B().footer}}))}})))},"Vb");var r0l=_.rp(function(E){var B=E.data;return _.w("lp-offer-table-cell-content-view-model",null,_.w("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.w(_.m4,null,_.w(_.PA,{when:function(){return B().title}},function(){return _.w(_.aS,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return B().title}})}),_.w(_.PA,{when:function(){return B().subTitle}},function(){return _.w(_.aS,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return B().subTitle}})}),_.w(_.PA,{when:function(){return B().featureDescription}},function(){return _.w(_.aS,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return B().featureDescription}})}),_.w(_.PA,{when:function(){return B().description}},function(){return _.w(_.aS,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return B().description}})}),_.w(_.PA,{when:function(){return B().iconType}},function(){return _.w("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.w(_.i0,{icon:function(){return B().iconType.toString()}}))}),_.w(_.PA,{when:function(){return B().purchaseButton}},function(){return _.w(_.hM,{data:function(){return B().purchaseButton}},{buttonViewModel:function(I){return _.w("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.w(_.ne,{data:I.data}))}})}),_.w(_.PA,{when:function(){return B().note}},function(){return _.w(_.aS,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return B().note}})}),_.w(_.PA,{when:function(){return B().featureDetail}},function(){return _.w(_.aS,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return B().featureDetail}})}),_.w(_.PA,{when:function(){return B().badge}},function(){return _.w(_.hM,{data:function(){return B().badge}},{badgeViewModel:_.oM})}))))},"Wb");
r0l.idomCompat=!0;var b5V=_.rp(function(E){var B=E.data;return _.w("lp-offer-table-cell-view-model",null,_.w("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(B().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;"}}},_.w(_.hM,{data:function(){return B().contents}},{lpOfferTableCellContentViewModel:r0l})))},
"Xb");
b5V.idomCompat=!0;var o$N=_.rp(function(E){var B=E.data;var I=E.lpTableIsFirstRow;var T=E.lpTableIsLastRow;var e=function(){return(I==null?0:I())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},c=function(){return(I==null?0:I())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(T==null?0:T())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.w("ytm-lp-offer-table-row-view-model",null,_.w("div",{class:"yt-lp-offer-table-row-view-model"},_.w(_.hM,{data:function(){return B().rowHeaderCell}},{lpOfferTableCellViewModel:function(Y){return _.w("div",{class:e},_.w(b5V,{data:Y.data}))}}),_.w(_.hM,{data:function(){return B().contentCells}},{lpOfferTableCellViewModel:function(Y){return _.w("div",{class:c},_.w(b5V,{data:Y.data}))}})))},"Yb");
o$N.idomCompat=!0;var A0h=_.rp(function(E){var B=E.data;var I=E.themeOverride;var T=_.Q().resolve(_.Fx(_.ME)),e=function(){return _.h(B().logo,wc$)||{}};
E={};return _.w("ytm-lp-offer-table-section-view-model",null,_.w("div",{class:"yt-lp-offer-table-view-model"},_.w(_.wU,{cond:function(){var c,Y;return T&&T()||(I==null?0:I().useDarkTheme)?(c=e())==null?void 0:c.imageDark:(Y=e())==null?void 0:Y.imageLight},
then:function(c){return _.w(_.Ja,{data:c,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Y,v,y;return(y=(Y=e())==null?void 0:(v=Y.accessibilityData)==null?void 0:v.label)!=null?y:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.w(_.aS,{text:function(){return B().title}})),_.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.w(_.aS,{text:function(){return B().subtitle}})),_.w(_.wU,{cond:function(){return B().disclaimers},
then:function(c){return _.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.w(_.Zt,{each:c},function(Y){return _.w("div",null,_.w(_.aS,{text:Y}))}))}}),_.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.w(_.hM,{data:function(){return B().rows}},{lpOfferTableRowViewModel:function(c,Y){return _.w(o$N,{data:c.data,
lpTableIsFirstRow:function(){return Y()===0},
lpTableIsLastRow:function(){return Y()===B().rows.length-1}})}})),_.w("div",{class:_.RQ((E["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return B().hasFooterBackground},E))},_.w(_.wU,{cond:function(){return B().footer},
then:function(){return _.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.w(_.aS,{text:function(){return B().footer}}))}}),_.w(_.wU,{cond:function(){return B().footerTitle},
then:function(){return _.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.w(_.aS,{text:function(){return B().footerTitle}}))}}),_.w(_.wU,{cond:function(){return B().footerDescription},
then:function(){return _.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.w(_.aS,{text:function(){return B().footerDescription}}))}}))))},"Zb");
A0h.idomCompat=!0;var j1z=_.rp(function(E){var B=E.data;var I=E.themeOverride;var T=_.Q().resolve(_.Fx(_.ME)),e=function(){var v;return I==null?void 0:(v=I())==null?void 0:v.useDarkTheme},c=function(){var v,y;
return T&&T()||e()?(v=B().image)==null?void 0:v.imageDark:(y=B().image)==null?void 0:y.imageLight};
E={};E=_.RQ("ytm-lp-small-feature-section-view-model",(E["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=e,E));var Y=function(){var v,y,Z;return(Z=(v=B().image)==null?void 0:(y=v.accessibilityData)==null?void 0:y.label)!=null?Z:""};
return _.w("ytm-lp-small-feature-section-view-model",{class:E},_.w(_.wU,{cond:function(){return c()&&!rtd},
then:function(){return _.w("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.w(_.Ja,{data:function(){return c()},
alt:Y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.w("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.w("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.w(_.wU,{cond:function(){return B().title},
then:function(v){return _.w(_.aS,{text:v})}})),_.w("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.w(_.aS,{text:function(){return B().description}}))))},"$b");
j1z.idomCompat=!0;var UZ$=_.rp(function(E){var B=E.data;var I=E.themeOverride;E={};return _.w("ytm-lp-small-feature-section-group-view-model",null,_.w("div",{class:_.RQ("ytm-lp-small-feature-section-group-view-model",(E["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},E))},_.w("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.w(_.hM,{data:function(){return B().smallFeatures}},{lpSmallFeatureSectionViewModel:function(T){return _.w("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.w(j1z,{data:T.data,
themeOverride:I}))}}))))},"ac");
UZ$.idomCompat=!0;_.oQ(_.rp(function(E){var B=E.data;var I=function(){return B().forcedTheme==="USER_INTERFACE_THEME_DARK"},T=function(){return B().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},e=function(){var Y="",v,y;
var Z=_.Q().resolve(_.Fx(_.ME));Z=I()||(Z==null?0:Z())?(v=B().themedImageViewModel)==null?void 0:v.imageDark:(y=B().themedImageViewModel)==null?void 0:y.imageLight;(v=hF6((Z==null?void 0:Z.sources)||[]))&&v.url&&(Y=T()?"background-image: linear-gradient(to bottom, transparent, "+(B().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.pr(v.url)+");":"background-image: url("+_.pr(v.url)+");");return Y},c=function(){return{useDarkTheme:I()}};
E={};return _.w("yt-section-group-view-model",null,_.w("div",{class:_.RQ("yt-lp-section-group-view-model",(E["yt-lp-section-group-view-model--premium-force-dark-mode"]=I,E["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return B().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},E))},_.w(_.wU,{cond:function(){return e().length},
then:function(){var Y={};return _.w("div",{class:_.RQ("yt-lp-section-group-view-model__bg-image",(Y["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=T,Y)),style:e})}}),_.w("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.w(_.hM,{data:function(){return B().sections}},{lpFaqSectionViewModel:function(Y){return _.w(Mh$,{data:Y.data,
themeOverride:c})},
lpHeaderSectionViewModel:function(Y){return _.w(H5D,{data:Y.data,themeOverride:c})},
lpHeadlineSectionViewModel:function(Y){return _.w(NNZ,{data:Y.data,themeOverride:c})},
lpLargeFeatureSectionViewModel:function(Y){return _.w(g$R,{data:Y.data,themeOverride:c})},
lpOfferCardSectionViewModel:function(Y){return _.w(XoU,{data:Y.data,themeOverride:c})},
lpComplexOfferCardSectionViewModel:function(Y){return _.w(GWU,{data:Y.data})},
lpOfferTableSectionViewModel:function(Y){return _.w(A0h,{data:Y.data,themeOverride:c})},
lpSmallFeatureSectionGroupViewModel:function(Y){return _.w(UZ$,{data:Y.data,themeOverride:c})}}))))},"bc"),"yt-section-group-view-model",{props:{data:_.Jh}});var mFJ=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.kWX=_.rp(function(E){function B(){if(mFJ.has(E.data().displayType)){var Z=!T(),P;if((P=E.disableDeselection)==null||!P.call(E)||Z){E.data().selected=Z;P=Object.assign({},Y(),{selected:Z});v(P);var z;(z=E.callback)==null||z.call(E,P,Z)}}}
var I=_.oH(),T=function(){var Z,P;return!!(((Z=E.selected)==null?void 0:Z.call(E))!==void 0?(P=E.selected)==null?0:P.call(E):Y().selected)},e=_.p(_.l0(E.data)),c=e.next().value;
e=e.next().value;var Y=c,v=e,y=_.iO(zvi,function(){return E.data().chipEntityKey||""});
return _.w("chip-view-model",{class:"ytChipViewModelHost",el:I},_.w(gKV,{data:function(){var Z,P=Object.assign({},Y(),{selected:T()}),z=y(),m=(Z=E.disableDeselection)==null?void 0:Z.call(E);a:switch(P.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":Z=1;break a;default:Z=0}return{text:(z==null?void 0:z.text)||P.text,state:P.disabled?1:P.selected?0:2,type:Z,onTap:QsQ(P,I,B,m),accessibilityLabel:P.accessibilityLabel||P.text}}}))},"cc");
_.kWX.idomCompat={callbacks:{callback:!0}};_.oQ(_.rp(function(E){var B=_.iO(PRf,function(){var Y;return(Y=E.data())==null?void 0:Y.chipBarStateEntityKey}),I=function(){return E.data().disableDeselection},T=_.p(_.l0(function(){var Y;
if(((Y=B())==null?void 0:Y.selectedIndex)!=void 0)return B().selectedIndex;var v,y;Y=_.p(((v=E.data())==null?void 0:(y=v.chips)==null?void 0:y.entries())||[]);for(v=Y.next();!v.done;v=Y.next()){v=_.p(v.value);y=v.next().value;v=v.next().value;var Z=void 0;if((Z=_.h(v,_.JB))==null?0:Z.selected)return y}return-1})),e=T.next().value,c=T.next().value;
return _.w("chip-bar-view-model",{class:_.RQ("ytChipBarViewModelHost",E.className),role:"tablist"},_.w(_.hM,{data:function(){return E.data().chips}},{chipViewModel:function(Y,v){return _.w("div",{class:"ytChipBarViewModelChipWrapper"},_.w(_.kWX,{data:Y.data,
selected:function(){return v()===e()},
callback:function(y,Z){y=!!Z;Z=v();c(y?Z:-1);var P,z=(P=E.data())==null?void 0:P.chipBarStateEntityKey;z&&y&&_.Jd(_.aL("chipBarStateEntity",z,{key:z,selectedIndex:Z}))},
disableDeselection:E.disableDeselection||I}))}}))},"dc"),"chip-bar-view-model",{props:{data:_.bu,
className:_.bu,disableDeselection:_.bu}});_.thZ=_.rp(function(E){var B=E.data;E={};return _.w("divider-view-model",{class:_.RQ("divider-view-model-wiz",(E["divider-view-model-wiz__inset-thin-padding"]=function(){return B().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},E))},_.w("div",{class:_.RQ("divider-view-model-wiz__base-divider",function(){return dF6(B().dividerStyle)}),
style:_.c$({"background-color":function(){return B().backgroundColor?_.dE(B().backgroundColor):void 0}})}))},"ec");
_.thZ.idomCompat=!0;_.oQ(_.thZ,"divider-view-model",{props:{data:_.Jh}});var Lf=new Map,uJ=new Map,uoG=0,x6;var HQc=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],SBi={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var fwh,VhN;fwh=function(E){return function(B){return function(){return String(B())+E}}};
_.CR=fwh("px");VhN=fwh("s");var Fkh=_.rp(function(E){function B(f){return function(){var ed=u().numItemsPerGridRow,K=f()*ed;ed=K+ed;var p4,sc;return(sc=(p4=T().contents)==null?void 0:p4.slice(K,ed))!=null?sc:[]}}
var I=_.XS(E,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),T=I.data,e=I.layoutContainerWidth,c=I.shouldUseOwnContainerSize,Y=I.marginSettings;I=_.p(_.lQ(!0,void 0,"qgr2Je"));var v=I.next().value,y=I.next().value,Z=function(){var f,ed=(f=_.h(T().showMoreButton,_.sO))==null?void 0:f.trackingParams;ed&&_.cx(_.lu(),ed);y(!1)},P=function(){var f,ed=(f=_.h(T().showLessButton,_.sO))==null?void 0:f.trackingParams;
ed&&_.cx(_.lu(),ed);y(!0)};
I=_.oH();var z=_.WZt(I,{canHaveZeroSize:!1}),m=function(){var f;return(f=T().contentAspectRatio)!=null?f:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},u=_.aJ(function(){var f=_.tM({containerWidth:c()&&z.width()>0?z.width()||e():e(),
sizing:"EXTRA_COMPACT",marginSettings:Y(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:f.maxContainerWidth,numItemsPerGridRow:f.numItems,contentPadding:c()?f.margin:f.contentMargin,itemWidth:f.itemWidth,itemMargin:f.gutter/2}},void 0,"pqVdjc"),x=function(){if(T().enableVerticalExpansion){if(v())return 1;
var f,ed,K=(ed=(f=T().contents)==null?void 0:f.length)!=null?ed:0;return Math.ceil(K/u().numItemsPerGridRow)}return u().numItemsPerGridRow<=2?2:1},M=function(){return T().enableVerticalExpansion&&T().showLessButton&&!v()&&x()>1},N=function(){var f,ed;
return T().enableVerticalExpansion&&T().showMoreButton&&v()&&((ed=(f=T().contents)==null?void 0:f.length)!=null?ed:0)>u().numItemsPerGridRow},W=function(){return!M()},U=function(){return!N()},q={};
return _.w("grid-shelf-view-model",{class:_.RQ("ytGridShelfViewModelHost",E.className,(q.ytGridShelfViewModelHostHasBottomButton=function(){return M()||N()},q)),
el:I,style:_.c$({"margin-left":(0,_.CR)(function(){return u().contentPadding}),
"margin-right":(0,_.CR)(function(){return u().contentPadding})})},_.w(_.wU,{cond:function(){return _.h(T().header,GsN)},
then:function(f){return _.w(_.VN,{data:f,disableHorizontalPadding:!0})}}),_.w("div",null,_.w(_.Zt,{each:function(){return Array(x())}},function(f,ed){return _.w(qV6,{className:E.className,
items:B(ed),responsiveGridShelfLayout:u,contentAspectRatio:m})})),_.w("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.w(_.hM,{data:function(){return T().showMoreButton}},{buttonViewModel:function(f){return _.w("div",{hidden:U},_.w(_.ne,{data:f.data,
onClick:Z}))}}),_.w(_.hM,{data:function(){return T().showLessButton}},{buttonViewModel:function(f){return _.w("div",{hidden:W},_.w(_.ne,{data:f.data,
onClick:P}))}})))},"fc");
Fkh.idomCompat=!0;var qV6=_.rp(function(E){var B=E.items;var I=E.responsiveGridShelfLayout;var T=E.contentAspectRatio;E=E.className;var e=_.oH();ssB(e,function(){a:{var Y=e.value;for(var v=B(),y=[],Z=0;Z<v.length;Z++){var P=_.h(v[Z],Z2Z);if(!P||P==null||!P.inlinePlayerData){Y=null;break a}var z=Y.children.item(Z);if(!z){Y=null;break a}y.push({thumbnailElement:z,videoData:P})}Y={gridVideoPreviewData:{gridItems:y}}}return Y});
var c=(0,_.CR)(function(){return-I().itemMargin});
return _.w("div",{el:e,class:_.RQ("ytGridShelfViewModelGridShelfRow",E),style:_.c$({"margin-left":c,"margin-right":c})},_.w(_.hM,{data:B,replacementWrapper:function(Y){return _.w(DZ$,{responsiveGridShelfLayout:I},Y)}},{shortsLockupViewModel:function(Y){return _.w(DZ$,{responsiveGridShelfLayout:I},_.w(Uau,{data:Y.data,
aspectRatio:function(){return T()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"gc"),DZ$=_.rp(function(E){return _.w("div",{style:_.c$({width:(0,_.CR)(function(){return E.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+E.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},E.children)},"hc");
Fkh.idomCompat=!0;_.oQ(Fkh,"grid-shelf-view-model",{props:{data:_.Jh,layoutContainerWidth:_.Jh,shouldUseOwnContainerSize:_.Jh,marginSettings:_.Jh,className:_.Jh}});var Kkz=_.rp(function(E){var B=_.p(_.lQ(!1,void 0,"YYtxR")),I=B.next().value,T=B.next().value;B={};return _.w("yt-alert-banner-view-model",{class:_.RQ("ytAlertBannerViewModelHost",function(){var e;a:switch((e=E.data())==null?void 0:e.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":e="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":e="ytAlertBannerViewModelWarning";break a;default:e="ytAlertBannerViewModelInformational"}return e},(B.ytAlertBannerViewModelDismissed=I,B.ytAlertBannerViewModelFullbleed=
E.fullbleed,B.ytAlertBannerViewModelNarrow=E.narrow,B.ytAlertBannerViewModelIsInRichGrid=E.isInRichGrid,B))},_.w(_.wU,{cond:function(){var e;
return!((e=E.data())==null?0:e.hideIcon)},
then:function(){return _.w("div",{class:"ytAlertBannerViewModelIcon"},_.w(_.i0,{icon:function(){return"info_circle"}}))}}),_.w("div",{class:"ytAlertBannerViewModelOuterContainer"},_.w("div",{class:"ytAlertBannerViewModelContainer"},_.w("div",{class:"ytAlertBannerViewModelContent"},_.w("div",{class:"ytAlertBannerViewModelHeading"},_.w(_.aS,{text:function(){var e;
return(e=E.data())==null?void 0:e.heading}})),_.w("div",{class:"ytAlertBannerViewModelBody"},_.w(_.aS,{text:function(){var e;
return(e=E.data())==null?void 0:e.body}})))),_.w(_.hM,{data:function(){var e;
return(e=E.data())==null?void 0:e.actionButton}},{buttonViewModel:function(e){return _.w(_.ne,{data:e.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.w(_.hM,{data:function(){var e;
return(e=E.data())==null?void 0:e.dismissButton}},{buttonViewModel:function(e){return _.w(_.ne,{data:e.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var c;((c=E.data())==null?0:c.disableLocalDismissBehavior)||T(!0)}})}}))},"ic");_.oQ(Kkz,"yt-alert-banner-view-model",{props:{data:_.Jh,fullbleed:_.Jh,narrow:_.Jh,isInRichGrid:_.Jh}});var XaQ;XaQ=_.z8({chipViewModel:_.kWX,buttonViewModel:_.ne});_.RYZ=_.$3(rj6,{callbacks:{callback:!0}});_.qW(rj6);_.oQ(_.RYZ,"chips-shelf-view-model",{props:{data:_.Jh,callback:_.bu,enableSingleChipSelection:_.Jh,disableChipsScrollAnimation:_.Jh}});var EA$=_.rp(function(E){E=_.XS(E,{disabled:!1});var B=E.active,I=E.disabled;E={};E=_.RQ("ytSwitchShapeTrack",(E.ytSwitchShapeTrackActive=function(){return B()},E.ytSwitchShapeTrackDisabled=function(){return I()},E));
var T={};T=_.RQ("ytSwitchShapeKnob",(T.ytSwitchShapeKnobActive=function(){return B()},T));
return _.w("switch-shape",{class:"ytSwitchShapeHost"},_.w("div",{class:E}),_.w("div",{class:T}))},"jc");var Bbu=_.rp(function(E){var B=_.XS(E,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),I=B.data;E=B.className;var T=B.handleOnTapEventInParent,e=B.parentActive;B=_.p(_.l0(function(){var z;return(z=e())!=null?z:I().switchedOnByDefault||!1}));
var c=B.next().value,Y=B.next().value,v=function(){return I().isDisabled},y=_.oH();
B=_.TI(function(z){return z.key==="Enter"?(z.preventDefault(),y.value.click(),!1):!0});
var Z=_.TI(function(z){if(I().handleOnTapEventInParent||T())return!0;if(v())return!1;jsG(I(),c(),z);Y(!c());return!1}),P={};
P=_.RQ("ytSwitchButtonViewModelButton",(P.ytSwitchButtonViewModelTappable=function(){return!v()},P));
return _.w("switch-button-view-model",{class:_.RQ("ytSwitchButtonViewModelHost",E)},_.w("button",{el:y,class:P,"on:click":Z,"on:keydown":B,"aria-label":function(){return c()?I().a11yLabelSwitchedOn:I().a11yLabelSwitchedOff},
"aria-pressed":c,"aria-disabled":v},_.w(EA$,{active:c,disabled:v})))},"kc");_.qW(fn6);var ICu=_.rp(function(E){var B=_.XS(E,{checked:!1});E=B.name;var I=B.onChange,T=B.onClick,e=B.checked,c=B.labelRenderable,Y=B.hasLeadingLabel,v=B.labelClass,y=B.isCompact,Z=B.selectElementClass;B=B.disableHorizontalPadding;var P="checkbox"+_.GN(_.Oj),z=_.TI(function(x){T==null||T(x);return!1}),m=_.TI(function(x){I==null||I(x);
return!1}),u={};
return _.w("checkbox-shape",null,_.w("label",{class:_.RQ("checkbox-shape-wiz",v,(u["checkbox-shape-wiz--compact"]=y,u["checkbox-shape-wiz--disable-horizontal-padding"]=B,u))},_.w("input",{class:"checkbox-shape-wiz__input",id:P,checked:e,name:E,type:"checkbox","prop:checked":e,"on:change":m,"on:click":z}),_.w(_.wU,{cond:function(){return!(Y==null?0:Y())},
then:function(){return _.w($b6,{isLeading:!0,selectElementClass:Z})}}),_.w(_.wU,{cond:function(){return!!c},
then:function(){return _.w("div",{class:"checkbox-shape-wiz__label"},c==null?void 0:c())}}),_.w(_.wU,{cond:Y,
then:function(){return _.w($b6,{isLeading:!1,selectElementClass:Z})}})))},"lc"),BqJ=_.d("web_enable_sink_checkbox_shape")?ICu:fn6,Tbt=_.d("web_enable_sink_checkbox_shape")?ICu:_.$3(fn6,{callbacks:{onChange:!0,
onClick:!0,labelRenderable:!0}});ICu.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var $b6=_.rp(function(E){var B=E.selectElementClass;E={};return _.w("div",{class:_.RQ("checkbox-shape-wiz__checkbox",B,(E["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(B==null?0:B())},E)),
"aria-hidden":"true"},_.w(_.i0,{icon:_.d("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.w(_.i0,{icon:_.d("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"mc");_.qW(qBD);var lCN,$w6;lCN=_.rp(function(E){var B=E.name;var I=E.onChange;var T=E.onClick;var e=E.checked;var c=E.labelRenderable;var Y=E.useCheckIcon;var v=E.hasLeadingLabel;var y=E.labelClass;var Z=E.isCompact;var P=E.selectElementClass;var z=E.ariaLabel;E=E.className;var m="radio"+_.GN(_.Oj),u=_.TI(function(f){I==null||I(f);return!1}),x=_.TI(function(f){T==null||T(f);
return!1}),M=_.p(_.lQ(!1,void 0,"HG0s4c")),N=M.next().value,W=M.next().value;
M=_.TI(function(){var f;((f=_.Q().resolve(_.Fx(_.ZR)))==null?0:f.isKeyBoardInUse())&&W(!0)});
var U=_.TI(function(){W(!1)}),q={};
return _.w("radio-shape",{class:_.RQ("radio-shape-wiz",E)},_.w("input",{class:"radio-shape-wiz__input",id:m,"prop:checked":e,name:B,type:"radio","on:change":u,"on:click":x,"aria-label":z,"on:focusin":M,"on:focusout":U}),_.w("label",{class:_.RQ("radio-shape-wiz__label-container",y,(q["radio-shape-wiz--compact"]=Z,q["radio-shape-wiz__label-container--keyboard-focused"]=N,q)),for:m},_.w(_.wU,{cond:function(){return!(v==null?0:v())},
then:function(){return _.w(eX6,{checked:e,useCheckIcon:Y,isLeading:!0,selectElementClass:P})}}),_.w(_.wU,{cond:function(){return!!c},
then:function(){return _.w("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(z==null?0:z())?"true":"false"}},c==null?void 0:c())}}),_.w(_.wU,{cond:v,
then:function(){return _.w(eX6,{checked:e,useCheckIcon:Y,isLeading:!1,selectElementClass:P})}})))},"nc");
$w6=_.d("web_enable_sink_radio_shape")?lCN:qBD;_.w$=_.d("web_enable_sink_radio_shape")?lCN:_.$3(qBD,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});lCN.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var eX6=_.rp(function(E){var B=E.useCheckIcon;var I=E.selectElementClass;E=function(){return(B==null?0:B())?"CHECK":_.d("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var T={};return _.w("div",{class:_.RQ("radio-shape-wiz__radio",I,(T["radio-shape-wiz__radio--check-icon"]=B,T["radio-shape-wiz__radio--radio-default-style"]=function(){return!(I==null?0:I())},T)),
"aria-hidden":"true"},_.w(_.i0,{icon:E}),_.w(_.i0,{icon:E,active:function(){return!(B==null?0:B())}}))},"oc");var KZc=_.z8({buttonViewModel:_.ne,switchButtonViewModel:Bbu,avatarViewModel:_.sj,accountLinkButtonViewModel:P4t,subscribeButtonViewModel:_.vEu,collectionThumbnailViewModel:bhX,toggleButtonViewModel:_.Le});_.qW(IhQ);var iyt,p2h;iyt=_.rp(function(E){function B(){var CV;((CV=_.Q().resolve(_.Fx(_.ZR)))==null?0:CV.isKeyBoardInUse())&&Uc(!0)}
function I(){Uc(!1)}
var T=E.data;var e=E.isMenuItem;var c=E.isCompact;var Y=E.onTap;var v=E.trailingAccessory;var y=E.hideSelectionTextChevron;var Z=E.disabled;var P=E.inPopup;var z=E.disableHorizontalPadding;E=E.isOverlay;var m=_.d("apply_button_role_to_list_item"),u=_.hk(function(CV){return o16(CV,T())}),x=function(){return _.d("enable_web_shorts_captions_language_command")?Object.assign({},T(),u()):T()},M=function(){return!(x().isSelected===void 0||!x().selectionStyle||x().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
N=function(){return(_.WE(x().rendererContext)||Y)&&!M()},W=function(){return _.WE(x().rendererContext)||M()},U={};
E=_.RQ("yt-list-item-view-model-wiz",(U["yt-list-item-view-model-wiz--is-overlay"]=E,U["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!m&&rJ()},U));
U={};var q=_.RQ("yt-list-item-view-model-wiz__label",(U["yt-list-item-view-model-wiz__container"]=function(){return!M()},U["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!x().isDisabled||!(Z==null||!Z())},U["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!x().subtitle},U["yt-list-item-view-model-wiz__container--compact"]=c,U["yt-list-item-view-model-wiz__container--tappable"]=N,U["yt-list-item-view-model-wiz__container--in-popup"]=P,U["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return m&&rJ()},U));
U={};var f=_.RQ("yt-list-item-view-model-wiz__container",(U["yt-list-item-view-model-wiz__container--tappable"]=W,U["yt-list-item-view-model-wiz__container--compact"]=c,U["yt-list-item-view-model-wiz__container--in-popup"]=P,U["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=z,U)),ed=function(){return x().leadingImage||x().leadingAccessory},K=_.RQ("yt-list-item-view-model-wiz__image-container",function(){return ed()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
P=_.oH();var p4=_.oH(),sc=m?p4:P,Gf=_.rp(function(){return _.w(_.wU,{cond:function(){return m},
then:function(){return _.w("div",{class:q,el:p4,role:function(){return W()||N()?"button":void 0},
tabindex:function(){return Y||N()?0:void 0},
"on:keydown":ki,"on:click":xi},_.w(c_6,{data:x,hideSelectionTextChevron:y,trailingAccessory:v}))},
else:function(){return _.w("div",{class:q,el:p4},_.w(c_6,{data:x,hideSelectionTextChevron:y,trailingAccessory:v}))}})},"pc");
Gf.idomCompat=!0;_.rT(P,function(){return x().rendererContext});
var xi=_.TI(function(CV){return void(Y==null?void 0:Y(CV))}),ki=_.gT(),WG=_.p(_.lQ(!1,void 0,"bOoKke"));
U=WG.next().value;WG=WG.next().value;var rJ=U,Uc=WG;_.uW(function(){N()&&(sc.value.addEventListener("focusin",B),sc.value.addEventListener("focusout",I));_.dt(function(){sc.value&&N()&&(sc.value.removeEventListener("focusin",B),sc.value.removeEventListener("focusout",I))})});
U=_.TI(function(){return!1});
return _.w("yt-list-item-view-model",{el:P,class:E,role:function(){return(e==null?0:e())?"menuitem":"listitem"},
tabindex:function(){var CV=N();CV=m?void 0:Y||CV?0:void 0;return CV},
"on:keydown":m?U:ki,"on:click":m?U:xi},_.w(_.wU,{cond:M,then:function(){return _.w(_.m4,null,_.w(_.PA,{when:function(){return x().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.w(Tbt,{labelRenderable:function(){return _.w(Gf,null)},
isCompact:c,checked:function(){return x().isSelected},
hasLeadingLabel:function(){return!!ed()},
labelClass:f,selectElementClass:K,disableHorizontalPadding:z})}),_.w(_.PA,{when:function(){return x().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.w(_.w$,{labelRenderable:function(){return _.w(Gf,null)},
isCompact:c,checked:function(){return x().isSelected},
hasLeadingLabel:function(){return!!ed()},
labelClass:f,selectElementClass:K})}),_.w(_.PA,{when:function(){return x().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.w(_.w$,{labelRenderable:function(){return _.w(Gf,null)},
isCompact:c,checked:function(){return x().isSelected},
hasLeadingLabel:function(){return!!ed()},
labelClass:f,selectElementClass:K,useCheckIcon:!0})}),_.w(_.zb,null,function(){return _.w(Gf,null)}))},
else:function(){return _.w(Gf,null)}}))},"qc");
p2h=_.d("web_enable_sink_list_view_models")?iyt:IhQ;_.Z8=_.d("web_enable_sink_list_view_models")?iyt:_.$3(IhQ,{callbacks:{onTap:!0,trailingAccessory:!0}});iyt.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var c_6=_.rp(function(E){var B=E.data;var I=E.hideSelectionTextChevron;var T=E.trailingAccessory;return _.w(_.VS,null,_.w(YaN,{data:B,isLeading:!0,hideSelectionTextChevron:function(){return!(I==null||!I())}}),_.w(aCh,{data:B}),_.w(_.wU,{cond:function(){return!!T},
then:function(){return _.w("div",{class:"yt-list-item-view-model-wiz__trailing"},T==null?void 0:T())},
else:function(){return _.w(YaN,{data:B,isLeading:!1,hideSelectionTextChevron:function(){return!(I==null||!I())}})}}))},"rc"),YaN=_.rp(function(E){var B=E.data;
var I=E.isLeading;var T=E.hideSelectionTextChevron;var e=_.RQ("yt-list-item-view-model-wiz__button-container");E={};var c=_.RQ("yt-list-item-view-model-wiz__image-container",(E["yt-list-item-view-model-wiz__leading"]=I,E["yt-list-item-view-model-wiz__trailing"]=function(){return!I()},E)),Y=function(){return I()?B().leadingImage:B().trailingImage},v=_.RQ("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
E={};var y=_.RQ("yt-list-item-view-model-wiz__accessory",(E["yt-list-item-view-model-wiz__leading"]=I,E["yt-list-item-view-model-wiz__trailing"]=function(){return!I()},E)),Z=function(){return DFc(B().listItemIconAfterSelectionText)};
return _.w(_.wU,{cond:function(){return FZi(B(),I())},
then:function(){return _.w(_.VS,null,_.w(_.wU,{cond:Y,then:function(P){return _.w("div",{class:c,"aria-hidden":"true"},_.w(_.Ja,{data:P,alt:"",preserveWidth:!0,preserveHeight:!0,className:v}))}}),_.w(_.wU,{cond:function(){return I()&&B().leadingAccessory},
then:function(){return _.w("div",{class:c},_.w(_.hM,{data:function(){return B().leadingAccessory}},{avatarViewModel:function(P){return _.w(_.yf,{data:P.data,
avatarButtonCustomClassName:v})},
collectionThumbnailViewModel:bhX}))}}),_.w(_.wU,{cond:function(){return!I()&&B().trailingButton},
then:function(){return _.w("div",{class:e},_.w(_.hM,{data:function(){return B().trailingButton}},{buttonViewModel:function(P){return _.w(_.ne,{data:P.data,
className:y})}}))}}),_.w(_.wU,{cond:function(){var P;
return!I()&&((P=B().trailingButtons)==null?void 0:P.buttons)},
then:function(){return _.w("div",{class:e},_.w(_.hM,{data:function(){var P;return(P=B().trailingButtons)==null?void 0:P.buttons}},{buttonViewModel:function(P){return _.w(_.ne,{data:P.data,
className:y})},
accountLinkButtonViewModel:function(P){return _.w(P4t,{data:P.data,className:function(){return y()||""}})},
switchButtonViewModel:function(P){return _.w(Bbu,{data:P.data,className:y})},
subscribeButtonViewModel:function(P){return _.w(y7z,{data:P.data,isOverlay:!1,animateWidth:!1})},
toggleButtonViewModel:function(P){return _.w(_.Le,{data:P.data,className:y})}}))}}),_.w(_.wU,{cond:function(){return!I()&&!!B().selectionText},
then:function(){return _.w(_.VS,null,_.w(_.aS,{text:function(){return B().selectionText},
className:_.RQ("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.w(_.wU,{cond:function(){return!T()},
then:function(){return _.w(_.i0,{icon:Z,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"sc"),aCh=_.rp(function(E){var B=E.data;
return _.w(_.wU,{cond:function(){return B().title||B().subtitle},
then:function(){return _.w("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.w("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.w(_.wU,{cond:function(){return B().title},
then:function(I){return _.w(_.aS,{text:I,className:"yt-list-item-view-model-wiz__title"})}})),_.w(_.wU,{cond:function(){return B().subtitle},
then:function(I){return _.w(_.aS,{text:I,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"tc");_.Pz=_.rp(function(E){var B=E.data;var I=E.onTap;var T=E.onSwitch;var e=E.overrideDisabled;E=_.p(_.l0(function(){var P;return((P=kZ6(Z()))==null?void 0:P.switchedOnByDefault)||!1}));
var c=E.next().value,Y=E.next().value;E=_.p(_.lQ(!1,void 0,"Ri8Twb"));var v=E.next().value,y=E.next().value,Z=function(){var P;if(!(P=B().switchButton)){var z=B();P=e==null?void 0:e();z={switchOnCommand:z.switchOnCommand,switchOffCommand:z.switchOffCommand,switchedOnByDefault:z.switchedOnByDefault,isDisabled:z.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:z.a11yLabelSwitchedOn,a11yLabelSwitchedOff:z.a11yLabelSwitchedOff};P!==void 0&&(z.isDisabled=P);P={switchButtonViewModel:z}}return P};
return _.w("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.w(_.Z8,{data:function(){return{title:B().title,subtitle:B().attributedSubtitle,leadingImage:B().leadingImage,leadingAccessory:B().leadingAccessory,isDisabled:B().isDisabled}},
onTap:function(P){var z=kZ6(Z());!z||z.isDisabled||B().ignoreTapUntilCommandCompletes&&v()||(I==null||I(P),jsG(z,c(),P,B().ignoreTapUntilCommandCompletes,y),Y(!c()),T==null||T(c()))},
trailingAccessory:function(){return _.w(_.hM,{data:Z},{switchButtonViewModel:function(P){return _.w(Bbu,{data:P.data,parentActive:c,handleOnTapEventInParent:!!I})}})}}))},"uc");var vAh=_.yu("DOWNLOAD",{},"Download"),y_r=_.yu("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),C3r=_.yu("RETRY",{},"Retry"),w2l=_.yu("PAUSE_DOWNLOADING",{},"Pause downloading"),ZyR=_.yu("RESUME_DOWNLOAD",{},"Resume download"),TqG={text:vAh,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},nf={text:y_r,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},c3F={text:C3r,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
eqi={text:w2l,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},lhJ={text:ZyR,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var P3X=_.rp(function(E){var B=function(){var v=E.data();v=_.JM(v.rendererContext);var y;return(y=_.h(v,_.ef))==null?void 0:y.videoId},I=_.hk(function(v){var y=B(),Z=YPt(E.data());
return y?_.Mg(v,y):Z?_.HP(v,Z):"TRANSFER_STATE_UNKNOWN"}),T=_.iO(_.bUd,B),e=_.hk(function(v){return _.gYG(v,B(),YPt(E.data()))}),c=function(){return pQ6(I(),T(),_.JM(E.data().rendererContext),!!YPt(E.data()))},Y=function(){return e()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.w("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:Y},_.w(_.wU,{cond:function(){return!Y()},
then:function(){return _.w(_.wU,{cond:c,then:function(v){return _.w(_.Zt,{each:v},function(y){return _.w(_.Z8,{data:y,isCompact:E.isCompact,isMenuItem:E.isMenuItem,inPopup:E.inPopup})})}})}}))},"vc");
P3X.idomCompat=!0;var vKf=_.z8({listItemViewModel:p2h,downloadListItemViewModel:P3X,switchListItemViewModel:_.Pz});_.qW(y3J);var zXu;zXu=_.rp(function(E){var B=E.data;var I=E.isCompact;var T=E.hideSelectionTextChevron;var e=E.inPopup;var c=E.isOverlay;var Y=function(){return ahi(B())&&(e==null?void 0:e())};
E={};return _.w("yt-list-view-model",{class:_.RQ("yt-list-view-model-wiz",(E["yt-list-view-model-wiz--kaios-spat-nav"]=bQG(),E)),role:function(){return Y()?"menu":"list"}},_.w(_.hM,{data:function(){return B().listItems}},{listItemViewModel:function(v){return _.w(_.Z8,{data:v.data,
isMenuItem:Y,isCompact:I,hideSelectionTextChevron:T,inPopup:e,isOverlay:c})},
downloadListItemViewModel:function(v){return _.w(P3X,{data:v.data,isMenuItem:Y,isCompact:I,inPopup:e})},
switchListItemViewModel:_.Pz}))},"wc");
_.mbZ=_.d("web_enable_sink_list_view_models")?zXu:_.$3(y3J);zXu.idomCompat=!0;var Q6R=_.rp(function(E){var B=E.data;var I=E.isOverlay;E={};return _.w("yt-course-perks-view-model",{class:_.RQ("ytwCoursePerksViewModelHost",(E.ytwCoursePerksViewModelHostOverlay=I,E))},_.w("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.w(_.aS,{text:function(){return B().title}})),_.w("div",null,_.w(_.wU,{cond:function(){return B().perks},
then:function(T){return _.w(_.mbZ,{data:function(){return{listItems:T()}},
isCompact:!0,isOverlay:I})}})))},"xc");_.oQ(Q6R,"yt-course-perks-view-model",{props:{data:_.bu,isOverlay:_.bu}});_.oQ(_.rp(function(E){var B=E.data;return _.w("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.w("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.w(_.aS,{text:function(){return B().title}})),_.w("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.w(_.aS,{text:function(){return B().progressSummary}})),_.w("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.w("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.c$({width:function(){return B().progressPercentage*100+"%"}})})))},"yc"),"yt-course-progress-view-model",{props:{data:_.Jh}});var dbR=_.rp(function(E){var B=_.XS(E,{}).data;return _.w("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.w(_.wU,{cond:function(){return B().progressSummary},
then:function(I){return _.w("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.w(_.aS,{text:I}))}}),_.w("div",{class:"ytwProgressViewModelHostProgressContainer"},_.w("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.w(_.aS,{text:function(){var I;
return(I=B())==null?void 0:I.leadingLabel}})),_.w("div",{class:"ytwProgressViewModelHostProgressBar"},_.w("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var I;return"width: "+(((I=B())==null?void 0:I.progressPercentage)||0)*100+"%"}}))))},"zc");var zu=_.rp(function(E){var B=E.starNumber;var I=E.data;var T=function(){var e;return((e=I())==null?void 0:e.rating)||0};
return _.w(_.wU,{cond:function(){return B()},
then:function(e){return _.w(_.m4,null,_.w(_.PA,{when:function(){return T()>=e()-.25}},function(){return _.w("div",{class:"ytStarRatingViewModelHostStar"},_.w(_.i0,{icon:"STAR_FILLED"}))}),_.w(_.PA,{when:function(){return T()>=e()-.75}},function(){return _.w("div",{class:"ytStarRatingViewModelHostStar"},_.w(_.i0,{icon:"STAR_HALF"}))}),_.w(_.zb,null,function(){return _.w("div",{class:"ytStarRatingViewModelHostStar"},_.w(_.i0,{icon:"STAR_BORDER"}))}))}})},"Ac"),hXZ=_.rp(function(E){E=E.data;
return _.w("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.w(zu,{starNumber:1,data:E}),_.w(zu,{starNumber:2,data:E}),_.w(zu,{starNumber:3,data:E}),_.w(zu,{starNumber:4,data:E}),_.w(zu,{starNumber:5,data:E}))},"Bc");_.oQ(_.rp(function(E){var B=_.XS(E,{}).data;return _.w("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.w("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.w(_.aS,{text:function(){var I;return(I=B())==null?void 0:I.title}})),_.w("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.w(_.wU,{cond:function(){return B().starProgressViewModels},
then:function(I){return _.w("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.w(_.hM,{data:I},{progressViewModel:dbR}))}}),_.w("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.w("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.w(_.aS,{text:function(){var I;
return(I=B())==null?void 0:I.averageRatingLabel}})),_.w(_.wU,{cond:function(){return B().zeroStateText},
then:function(I){return _.w("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.w(_.aS,{text:I}))}}),_.w(_.wU,{cond:function(){return B().starRatingViewModel},
then:function(I){return _.w("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.w(_.hM,{data:I},{starRatingViewModel:hXZ}))}}),_.w("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.w(_.aS,{text:function(){var I;
return(I=B())==null?void 0:I.totalRatingsCountLabel}})))))},"Cc"),"yt-course-ratings-view-model",{props:{data:_.bu}});var s6l;s6l={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.uUt=_.rp(function(E){var B=_.oH(),I=_.$4();_.hA(function(){requestAnimationFrame(function(){var Y;(Y=I.lottieEl)==null||Y.addEventListener("DOMLoaded",function(){var v;(v=E.onLottieLoaded)==null||v.call(E)})});
var T,e={browseEndpoint:{params:(T=E.data)==null?void 0:T.call(E).params,browseId:"FElearning_destination"},commandMetadata:{webCommandMetadata:{url:"/learning",rootVe:256690,apiUrl:"/youtubei/v1/browse",webPageType:"WEB_PAGE_TYPE_BROWSE"}}},c;((c=E.shouldSkipRequest)==null?0:c.call(E))||_.$O(B.value,"yt-navigate",{endpoint:e})});
return _.w("yt-learning-journey-loader-view-model",{class:_.RQ("learningJourneyLoaderViewModelHost",E.className),"data-target-id":function(){var T;return((T=E.data)==null?void 0:T.call(E).targetId)||""},
el:B},_.w(_.E1,{className:_.RQ("learningJourneyLoaderViewModelLoader",E.className),animationName:function(){return s6l.animationConfig.name},
data:s6l,animationRef:I}))},"Dc");_.oQ(_.uUt,"yt-learning-journey-loader-view-model",{props:{data:_.Jh,className:_.bu,onLottieLoaded:_.bu,shouldSkipRequest:_.bu}});var LdD=_.rp(function(E){var B=function(){return E.data()},I=_.p(_.lQ(-1,void 0,"X3Tlgd")),T=I.next().value,e=I.next().value,c=function(Z){return T()===Z},Y=function(Z){return B().correctAnswerIndex===Z},v=function(){return T()!==-1},y=_.TI(function(){e(-1);
return!1});
return _.w("learning-journey-quiz-view-model",{class:_.RQ("learningJourneyQuizViewModelHost",E.className),style:_.c$({background:function(){return No(Mo(B())).backgroundColor}})},_.w(_.wU,{cond:function(){return!!B().video},
then:function(){return _.w("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.c$({background:function(){return No(Mo(B())).videoBackgroundColor}})},_.w(_.hM,{data:function(){return B().video}},{lockupViewModel:function(Z){return _.w(_.tF,{data:Z.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.w("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.w("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.w("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.c$({color:function(){return No(Mo(B())).primaryTextColor}})},_.w(_.aS,{text:function(){var Z=B(),P=v(),z=T()===B().correctAnswerIndex;
return P?z?Z.successTitle:Z.failureTitle:Z.questionHeaderText}})),_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.w(_.wU,{cond:v,
then:function(){return _.w("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":y,role:"button","aria-label":"Reset","tab-index":"0"},_.w("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.c$({fill:function(){return No(Mo(B())).primaryTextColor}})},_.w("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"})))}}),
_.w(_.hM,{data:function(){return B().overflowMenu}},{buttonViewModel:function(Z){return _.w(_.ne,{data:Z.data})}}))),_.w("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.c$({color:function(){return No(Mo(B())).secondaryTextColor}})},_.w(_.aS,{text:function(){var Z=B();
return v()?Z.explanationText:Z.questionSubheaderText}}))),_.w("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.w(_.Zt,{each:function(){return B().optionsData||[]}},function(Z,P){var z={};
return _.w("div",{class:_.RQ("learningJourneyQuizViewModelHostQuizOptions",(z.learningJourneyQuizViewModelHostQuizHover=function(){return!v()},z.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return T()===B().correctAnswerIndex&&c(P())},z.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return T()!==B().correctAnswerIndex&&c(P())},z.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return v()&&!c(P())},z)),
"on:click":_.TI(function(){if(v())return!1;e(P());return!1}),
style:_.c$({background:function(){return v()&&c(P())?"":No(Mo(B())).optionColor}}),
role:"button","aria-disabled":v,"tab-index":"0"},_.w(_.wU,{cond:v,then:function(){return _.w("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var m=P();return Y(m)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.c$({fill:function(){return No(Mo(B())).primaryTextColor}})},_.w("path",{d:function(){var m=P();
return Y(m)?"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"}}))}}),_.w(_.aS,{text:Z.optionText}))})))))},"Ec");
LdD.idomCompat=!0;_.oQ(LdD,"learning-journey-quiz-view-model",{props:{data:_.Jh,className:_.Jh}});var xbh=_.rp(function(E){var B=_.oH();_.rT(B,function(){return E.data().rendererContext});
var I=_.XS(E,{palette:void 0,isLastItem:!1}),T=I.palette,e=I.isLastItem,c=function(){return E.data().isHighlighted},Y=function(){var Z;
return C2i((Z=T())==null?void 0:Z.iconDisabledColor)},v=function(){var Z;
return C2i((Z=T())==null?void 0:Z.primaryTitleColor)},y=function(){var Z;
return C2i((Z=T())==null?void 0:Z.secondaryTitleColor)};
I={};return _.w("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:B},_.w(_.hM,{data:function(){return E.data().thumbnail}},{thumbnailViewModel:_.W4}),_.w("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.w("div",{class:_.RQ("ytMacroMarkerListItemViewModelTimeDescription",(I.ytMacroMarkerListItemViewModelHighlighted=c,I)),
style:_.c$({"background-color":function(){return c()?v():Y()},
color:function(){return c()?"":y()}})},_.w(_.aS,{text:function(){return E.data().timestamp}})),_.w("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.c$({"background-color":function(){return e()?"transparent":Y()}})}),_.w("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(c()?v():y())}},_.w(_.aS,{text:function(){return E.data().title}}))))},"Fc");_.mw=_.rp(function(E){function B(bc){W("transform:translateX("+(_.HA("HTML_DIR")==="rtl"?"":"-")+bc+"px)")}
function I(bc){return Math.min(Math.max(bc,0),N()-K())}
function T(){var bc=f()+xi();return e()?(Math.round(K()/bc)||1)*bc:0}
var e=function(){return E.data().items||[]},c=function(){return E.data().previousButton},Y=function(){return E.data().nextButton},v=function(){var bc,hz;
return(hz=(bc=E.disableArrows)==null?void 0:bc.call(E))!=null?hz:!1},y=function(){var bc;
return!((bc=E.forceNarrowLayout)==null||!bc.call(E))},Z=_.oH(),P=_.oH(),z=_.p(_.lQ(0,void 0,"yngx7d")),m=z.next().value,u=z.next().value;
z=_.p(_.lQ(0,void 0,"rUOyGb"));var x=z.next().value,M=z.next().value,N=x;x=_.p(_.lQ("",void 0,"jv2kWc"));z=x.next().value;var W=x.next().value;x=_.p(_.lQ(0,void 0,"Xb0f0d"));var U=x.next().value,q=x.next().value,f=U;x=_.p(_.lQ(0,void 0,"pt5wQ"));U=x.next().value;var ed=x.next().value,K=U;x=_.p(_.lQ(!1,void 0,"FfPefe"));var p4=x.next().value,sc=x.next().value;x=_.p(_.lQ(0,void 0,"kB5mhb"));U=x.next().value;var Gf=x.next().value,xi=U;x=_.p(_.lQ(0,void 0,"dnDmUd"));var ki=x.next().value,WG=x.next().value,
rJ=function(){var bc,hz=(bc=E.data())==null?void 0:bc.responsiveContainerConfiguration,TU,Wm;return hz?iWQ(hz==null?void 0:hz.responsiveSize):(Wm=(TU=E.sizing)==null?void 0:TU.call(E))!=null?Wm:"STANDARD"};
x=_.aJ(function(){return!v()&&m()>0},void 0,"ZIGxke");
U=_.aJ(function(){return!v()&&m()<N()-K()},void 0,"OJzhRd");
var Uc=function(){u(I(m()-T()));B(m())},CV=function(){u(I(m()+T()));
B(m())},Bm=function(){Z.value!==null&&I$()},LV;
_.uW(function(){I$();window.ResizeObserver?(LV=new ResizeObserver(_.zV(Bm,0)),LV.observe(Z.value)):window.addEventListener("resize",Bm)});
_.dt(function(){if(window.ResizeObserver){var bc;(bc=LV)==null||bc.disconnect()}else window.removeEventListener("resize",Bm)});
var I$=function(){var bc=Z.value.clientWidth,hz=E.includeMargin!==void 0?E.includeMargin():!1,TU;var Wm=E.hasPeek!==void 0?E.hasPeek():!((TU=E.data())==null||!TU.hasPeek);bc=_.tM({containerWidth:bc,hasPeek:Wm,sizing:rJ(),marginSettings:hz?y()?4:1:0});Gf(bc.gutter);WG(bc.margin);q(bc.itemWidth);sc(bc.maxContainerWidth<528||y());ed(bc.maxContainerWidth);e()&&M((bc.itemWidth+bc.gutter)*e().length-bc.gutter)};
return _.w("horizontal-shelf-view-model",{class:_.RQ("ytwHorizontalShelfViewModelHost",E.className),el:Z},_.w(_.wU,{cond:function(){return E.data().header},
then:function(){return _.w("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.c$({width:function(){return K()+"px"},
padding:function(){return"0 "+ki()+"px"}})},_.w(_.hM,{data:function(){return E.data().header}},{sectionHeaderViewModel:function(bc){return _.w(_.VN,{data:bc.data,
disableHorizontalPadding:!0,forceSmallLayout:p4,useResponsiveLayout:!0})}}))}}),_.w("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.w("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.c$({width:function(){return K()+"px"},
padding:function(){return"0 "+ki()+"px"},
overflow:function(){return v()?"auto":"hidden"}})},_.w("div",{class:"ytwHorizontalShelfViewModelItems",
el:P,style:z},_.w(_.hM,{data:e},{macroMarkerListItemViewModel:function(bc,hz){return _.w("div",{style:_.c$({width:function(){return f()+"px"},
"margin-right":function(){return(hz()===e().length-1?0:xi())+"px"}})},_.w(xbh,{data:bc.data,
palette:_.Wl(E.palette),isLastItem:function(){return hz()===e().length-1}}))},
lockupViewModel:function(bc,hz){var TU=bc.data;return _.w("div",{style:_.c$({width:function(){return f()+"px"},
"margin-right":function(){return(hz()===e().length-1?0:xi())+"px"}})},_.w(_.tF,{data:TU,
containerType:4,sizing:rJ,protectBackground:E.protectBackground,thumbnailFixedWidth:function(){return wQJ(TU())+"px"},
thumbnailTargetWidth:function(){return wQJ(TU())}}))}}))),_.w(_.wU,{cond:x,
then:function(){return _.w("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.w(_.hM,{data:c},{buttonViewModel:function(bc){return _.w(_.ne,{data:bc.data,onClick:Uc})}}))}}),_.w(_.wU,{cond:U,
then:function(){return _.w("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.w(_.hM,{data:Y},{buttonViewModel:function(bc){return _.w(_.ne,{data:bc.data,onClick:CV})}}))}})))},"Gc");
_.mw.idomCompat=!0;var GlV=_.rp(function(E){var B=function(){return E.data().targetId||""},I=function(){var z;
return((z=E.data())==null?void 0:z.expansionEntityKey)||""},T=_.iO(_.wIi,I),e=function(){var z;
return((z=T())==null?void 0:z.value)===B()},c=function(z){_.Jd(_.aL("stringEntity",I(),{key:I(),
value:z?B():""}))};
_.hA(function(){E.data().isExpanded&&c(!0)});
var Y=function(){if(e()){var z=!0;E.onCollapse!==void 0&&(z=E.onCollapse());z&&c(!1)}else c(!0)},v=_.TI(Y),y=function(){var z;
return(((z=E.accordionStyle)==null?void 0:z.call(E))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Z={},P={};
return _.w("yt-accordion-item-view-model",{class:_.RQ("ytAccordionItemViewModelHost",E.className,(Z.ytAccordionItemViewModelExpanded=function(){return e()},Z.ytAccordionItemViewModelHidden=function(){var z;
return(z=E.hideIfNotExpanded)==null?void 0:z.call(E)},Z.ytAccordionItemViewModelMini=y,Z)),
"data-target-id":B},_.w("div",{class:"ytAccordionItemViewModelContainer"},_.w("div",{class:"ytAccordionItemViewModelLeftSection","on:click":v},_.w(_.aS,{text:function(){return E.data().title},
className:"ytAccordionItemViewModelLabel"})),_.w("div",{class:"ytAccordionItemViewModelRightSection"},_.w(_.hM,{data:function(){return e()?E.data().expandButton:E.data().collapseButton}},{buttonViewModel:function(z){return _.w(_.ne,{data:z.data,
className:"ytAccordionItemViewModelToggleButton",onClick:Y})}}))),_.w("div",{class:"ytAccordionItemViewModelContainer"},_.w("div",{class:_.RQ("ytAccordionItemViewModelContent",(P.ytAccordionItemViewModelExpandedSubtitle=function(){return e()},P))},_.w(_.wU,{cond:function(){return!y()},
then:function(){return _.w(_.aS,{text:function(){return E.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.w(_.hM,{data:function(){return E.data().content}},{horizontalShelfViewModel:function(z){return _.w(_.mw,{data:z.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Hc");_.Oy6=_.rp(function(E){var B=_.p((0,_.cmU)(E.data)).next().value,I=function(){return E.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},T=function(){return I()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},e=_.p(_.lQ(!0,void 0,"ewf0jb")),c=e.next().value,Y=e.next().value,v=function(){return T()&&c()},y=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){Y(!c())}}};
e={};return _.w("yt-accordion-view-model",{class:_.RQ("ytAccordionViewModelHost",(e.ytAccordionViewModelMinimized=function(){return v()},e)),
"data-target-id":function(){return E.data().targetId||""}},_.w(_.wU,{cond:function(){return T()||!!B().title},
then:function(){return _.w("div",{class:"ytAccordionViewModelHeader"},_.w(_.aS,{text:function(){return B().title},
className:"ytAccordionViewModelTitle"}),_.w(_.wU,{cond:T,then:function(){return _.w(F3,{data:y,iconName:function(){return v()?"chevron_down":"chevron_up"}})}}))}}),_.w("div",{class:"ytAccordionViewModelContent"},_.w(_.hM,{data:function(){return B().contents}},{accordionItemViewModel:function(Z){return _.w(GlV,{data:Z.data,
className:"ytAccordionViewModelRow",accordionStyle:I,hideIfNotExpanded:v,onCollapse:function(){return T()?(Y(!0),!1):!0}})}})),_.w("div",null,_.w(_.aS,{text:function(){return B().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})))},"Ic");_.oQ(_.Oy6,"yt-accordion-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B,I=(B=_.Q().resolve(_.Fx(_.ME)))==null?void 0:B(),T=_.p(_.lQ(!1,void 0,"XM2Sxc"));B=T.next().value;var e=T.next().value;T=_.p(_.lQ(!0,void 0,"Jgzg2d"));var c=T.next().value,Y=T.next().value,v=_.oH(),y=function(u){e(!0);u={learningJourneyFormData:{query:u}};_.xg(E.data().searchEndpoint||{},{form:{formData:u}});return!1};
T=_.TI(function(){Y(v.value.value.length===0)});
var Z=_.TI(function(u){if(u.key==="Enter"&&!u.shiftKey&&!c()){var x=u.target;u.preventDefault();y(x.value)}}),P={},z={},m={};
return _.w("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.w("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.w(_.Ja,{data:function(){return E.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.w("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.w("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.w("div",{class:_.RQ("ytLearningJourneyZeroStateSearchBar",(P.ytLearningJourneyZeroStateSearchBarDark=I,P))},_.w("textarea",{class:_.RQ("ytLearningJourneyZeroStateTextInput",(z.ytLearningJourneyZeroStateTextInputDark=I,z)),el:v,"on:keyup":T,"on:keydown":Z,placeholder:"What do you want to learn?",
rows:1})),_.w("div",{class:_.RQ("ytLearningJourneyZeroStateSearchButtonContainer",(m.ytLearningJourneyZeroStateSearchButtonContainerDark=I,m))},_.w(_.ne,{data:function(){return _.h(E.data().searchButton,_.sO)},
className:"search-button",onClick:function(){return y(v.value.value)},
buttonOverrides:function(){return{disabled:c(),style:I?"mono-inverse":"mono",size:"XL"}}}))),_.w(_.wU,{cond:function(){return!!E.data().errorBanner},
then:function(){return _.w("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.w(_.hM,{data:function(){return E.data().errorBanner}},{alertBannerViewModel:Kkz}))}})),_.w(_.wU,{cond:B,
then:function(){return _.w("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.w(_.hM,{data:function(){return E.data().loader}},{learningJourneyLoaderViewModel:function(u){return _.w(_.uUt,{data:u.data,
shouldSkipRequest:!0})}}))},
else:function(){return _.w("div",null,_.w(_.wU,{cond:function(){return!!E.data().learningJourneyShelf},
then:function(){return _.w("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.w("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return E.data().learningJourneySectionTitle}),_.w(_.hM,{data:function(){return E.data().learningJourneyShelf}},{horizontalShelfViewModel:_.mw}))}}),_.w("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.w("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return E.data().suggestedJourneySectionTitle}),
_.w(_.hM,{data:function(){return E.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(u){return _.w(mf,{data:u.data,
layout:1})}})))}}))},"Jc"),"yt-learning-journey-zero-state",{props:{data:_.Jh}});var nAD=_.rp(function(E){var B=E.data;return _.w("ytvl-live-leaderboard-item-action-content-view-model",{class:_.RQ("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.w(_.aS,{text:function(){var I;return(I=B())==null?void 0:I.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.w(_.hM,{data:function(){return B().actionButton}},{buttonViewModel:function(I){return _.w(_.ne,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:I.data})}}))},"Kc");var MWZ=_.rp(function(E){var B=E.data;return _.w("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.RQ("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.w(_.aS,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var I;return(I=B())==null?void 0:I.displayName},
ellipsisTruncate:!0}),_.w(_.hM,{data:function(){return B().badge}},{buttonViewModel:function(I){return _.w(_.ne,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:I.data})}}))},"Lc");_.oQ(_.rp(function(E){var B=E.data;return _.w("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.w("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.w(_.aS,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var I;return(I=B())==null?void 0:I.rank}})),_.w("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.w(_.hM,{data:function(){return B().avatar}},{avatarViewModel:_.yf})),_.w("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.w(_.hM,{data:function(){return B().content}},{liveLeaderboardItemChannelContentViewModel:MWZ,
liveLeaderboardItemActionContentViewModel:nAD})),_.w(_.aS,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var I;return(I=B())==null?void 0:I.points}}))},"Mc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;return _.w("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.w(_.aS,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var I,T;return(I=B())==null?void 0:(T=I.ranking)==null?void 0:T.rank}}),_.w("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.w(_.hM,{data:function(){return B().avatar}},{avatarViewModel:_.yf})),_.w(_.aS,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var I,T;return(I=B())==null?void 0:(T=I.channelContent)==null?void 0:T.channelName}}),_.w(_.aS,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var I;return(I=B())==null?void 0:I.points}}))},"Nc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Jh}});var HyN=_.rp(function(E){E=_.XS(E,{wrapper:!1}).wrapper;return _.w(_.wU,{cond:E,then:function(){return _.w("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.w("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.w("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Oc");
HyN.idomCompat=!0;var NbU=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],gAt=_.rp(function(E){var B=E.data;var I=_.oH(),T=_.aJ(function(){return B().command},void 0,"CGDtVe");
_.m$(function(){T()&&_.se(T(),{form:{element:I.value}})});
return _.w("div",{el:I},_.w(_.wU,{cond:function(){return B().qrCodeImage},
then:function(e){return _.w(_.Ja,{data:e,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.w(_.wU,{cond:function(){return B().spinner},
then:function(){return _.w(HyN,null)}})}}),_.w(_.wU,{cond:function(){return B().label},
then:function(e){return _.w(_.aS,{text:e,className:"YtQrCodeRendererHostLabel"})}}),_.w(_.wU,{cond:function(){return B().labels},
then:function(e){return _.w("div",{class:"YtQrCodeRendererHostLabels"},_.w(_.Zt,{each:e},function(c){return _.w(_.aS,{text:c})}))}}))},"Qc");_.oQ(_.rp(function(E){var B=E.data;var I=_.aJ(function(){return B().qrEntityKey},void 0,"joYCxd"),T=_.aJ(function(){return B().deleteEntityOnDismiss},void 0,"x3yAde"),e=_.aJ(function(){return B().command},void 0,"dJe1Re"),c=_.iO(AUi,I);
E=_.aJ(function(){return B().style&&NbU.includes(B().style)},void 0,"rGILzf");
var Y=_.oH();_.VU(Y,{visibilityCallback:function(v){v&&e()&&_.se(e())},
showOption:{calledOnce:!0,state:"visible"}});_.uW(function(){_.dt(function(){T()&&I()&&_.gp().dispatch(_.aL("qrCodeEntity",I()))})});
return _.w("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:Y},_.w(_.wU,{cond:E,then:function(){return _.w(_.wU,{cond:c,then:function(v){return _.w(gAt,{data:v})}})}}))},"Pc"),"yt-qr-code-renderer",{props:{data:_.Jh}});_.SaZ=_.rp(function(E){var B=E.data;var I=E.topbarOffset;var T,e=((T=_.Q().resolve(_.Fx(_.ME)))==null?void 0:T())||!1;return _.w("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var c=B();var Y,v,y=e?(Y=c.config)==null?void 0:Y.darkThemeBackgroundColor:(v=c.config)==null?void 0:v.lightThemeBackgroundColor;c=y?_.dE(y):void 0;c="background-color: "+c+";";I!==void 0&&(c+="top: -"+I()+"px;");return c},
"aria-hidden":!0},_.w(_.wU,{cond:function(){var c,Y,v;return!!((c=B().backgroundImageConfig)==null?0:(Y=c.image)==null?0:(v=Y.sources)==null?0:v.length)},
then:function(){return _.w(_.Ja,{data:function(){var c;return(c=B().backgroundImageConfig)==null?void 0:c.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.w("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+Zwf(e,B().gradientColorConfig)+";"}}))},"Rc");
_.SaZ.idomCompat=!0;var J_l=_.$3(P24);_.qW(P24);var Wdz=_.rp(function(E){var B=E.data;var I=E.isOverlay;return _.w("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.w("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.w(_.hM,{data:function(){return B().header}},{sectionHeaderViewModel:function(T){return _.w(_.VN,{data:T.data,
isOverlay:I})}})),_.w("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.w(_.hM,{data:function(){return B().channelInfoButtons}},{flexibleActionsViewModel:mf})),_.w("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.w(_.hM,{data:function(){return B().description}},{descriptionPreviewViewModel:function(T){return _.w(J_l,{data:T.data,
isOverlay:I})}})))},"Sc");
Wdz.idomCompat=!0;var X2r=_.rp(function(E){var B=E.data;var I={};return _.w("factoid-view-model",{class:_.RQ("ytwFactoidViewModelHost",(I.ytwFactoidViewModelHostOverlay=E.isOverlay,I))},_.w(_.aS,{text:function(){return B().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.w(_.aS,{text:function(){return B().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Tc");
X2r.idomCompat=!0;var r_h=_.rp(function(E){var B=E.data;var I=E.isOverlay;return _.w("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.w(_.hM,{data:function(){return B().factoids}},{factoidViewModel:function(T){return _.w(X2r,{data:T.data,
isOverlay:I})}}))},"Uc");
r_h.idomCompat=!0;_.by6=_.rp(function(E){var B=E.data;var I=E.isOverlay;return _.w("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.w(_.hM,{data:function(){return B().items}},{channelInfoViewModel:function(T){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(Wdz,{data:T.data,
isOverlay:I}))},
coursePerksViewModel:function(T){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(Q6R,{data:T.data,isOverlay:I}))},
descriptionPreviewViewModel:function(T){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(J_l,{data:T.data,isOverlay:I}))},
factoidsRowViewModel:function(T){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(r_h,{data:T.data,isOverlay:I}))}}))},"Vc");var oAV=_.rp(function(E){return _.w("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.w(_.hM,{data:function(){return E.data().content}},{courseMetadataViewModel:function(B){return _.w(_.by6,{data:B.data,
isOverlay:E.isOverlay})}}))},"Wc");var A_r=_.rp(function(E){var B=E.data;E=E.className;var I=_.oH(),T=function(){var c;return _.WE((c=B())==null?void 0:c.rendererContext)},e={};
e=(e["dynamic-text-view-model-wiz"]=!0,e["dynamic-text-view-model-wiz--tappable"]=function(){return T()},e);
_.rT(I,function(){var c;return(c=B())==null?void 0:c.rendererContext});
return _.w("yt-dynamic-text-view-model",{el:I,role:function(){return T()?"link":void 0},
tabindex:function(){return T()?0:void 0},
class:_.RQ(E,e)},_.w("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var c,Y,v;return(v=(Y=_.h((c=B())==null?void 0:c.rendererContext,_.bO))==null?void 0:Y.label)!=null?v:""}},_.w(_.aS,{text:function(){return B().text},
userInput:!0})))},"Xc");
A_r.idomCompat=!0;_.Qv=_.rp(function(E){var B=E.data;var I=E.isPositionRelative;var T=_.AK(),e=_.dw4("(max-width: 527.9px)"),c=function(){var Y,v;return(v=(Y=B())==null?void 0:Y.style)!=null?v:"IMAGE_BANNER_STYLE_FULL_BLEED"};
E={};E=(E["yt-image-banner-view-model-wiz"]=!0,E["yt-image-banner-view-model-wiz--inset"]=function(){return hqF(c())},E["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.s_(!0)&&!(I==null?0:I())},E["yt-image-banner-view-model-wiz--small-inset"]=function(){return hqF(c())&&e()},E["yt-image-banner-view-model-wiz--tappable"]=function(){var Y;
return _.s_(T.value)&&_.WE((Y=B())==null?void 0:Y.rendererContext)},E);
_.rT(T,function(){var Y;return(Y=B())==null?void 0:Y.rendererContext});
return _.w("yt-image-banner-view-model",{el:T,class:_.RQ(E)},_.w(_.wU,{cond:function(){var Y;return(Y=B())==null?void 0:Y.image},
then:function(){return _.w(_.Ja,{data:function(){return B().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.w(_.hM,{data:function(){var Y;
return(Y=B())==null?void 0:Y.overlays}},{thumbnailHoverOverlayViewModel:MQZ}))},"Yc");
_.Qv.idomCompat=!0;var gZ=_.z8({descriptionPreviewViewModel:P24,dynamicTextViewModel:A_r,contentPreviewImageViewModel:_.AF,contentMetadataViewModel:EDh,flexibleActionsViewModel:Pk$,attributionViewModel:jS,imageBannerViewModel:_.Qv,decoratedAvatarViewModel:Swu,cinematicContainerViewModel:_.SaZ,flexibleContainer:oAV});_.qW(MGQ);var j6D,UbR;j6D=_.rp(function(E){var B=E.condition;var I=E.content;return _.w(_.wU,{cond:B,then:function(){return _.w("div",{class:"page-header-view-model-wiz__scroll-container"},I())},
else:function(){return I()}})},"Zc");
UbR=_.rp(function(E){var B=E.data;var I=E.noPadding;var T=E.enableBanner;var e=E.cinematicContainerTopbarOffset;var c=E.allowCinematicContainerOverflow;var Y=E.displayAsSidebar;var v=E.displayAsPanel;var y=sEG(),Z=function(){return!!B().image||!!B().animatedImage},P=function(){return!!B().background},z=function(){return(Y==null?0:Y())||(v==null?0:v())?1:y()},m=function(){return z()===1},u=function(){return m()||z()===2},x=function(){return z()===4},M=function(){return QEc(B(),!!B().heroImage,z(),
uHt(B()),Y==null?void 0:Y())};
E={};E=_.RQ((E["page-header-view-model-wiz"]=!0,E["page-header-view-model-wiz--no-padding"]=function(){return!(I==null||!I())},E["page-header-view-model-wiz--small-top-padding"]=function(){return m()&&!B().actions||z()===2&&!(Z()||B().heroImage)},E["page-header-view-model-wiz--small-bottom-padding"]=function(){return u()&&!B().actions},E["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(c==null?0:c())},E["page-header-view-model-wiz--display-as-sidebar"]=Y,E["page-header-view-model-wiz--display-as-panel"]=
v,E));
var N={},W=_.RQ((N["page-header-view-model-wiz__page-header-headline"]=!0,N["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return M().allowFullWidth},N)),U=function(){return m()&&(!!B().heroImage||Z())&&uHt(B())>0},q=function(){return U()&&(v==null?void 0:v())};
N={};var f=_.RQ((N["page-header-view-model-wiz__page-header-title"]=!0,N["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!U()},N["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return U()&&!q()},N["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=q,N["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=P,N));
N={};var ed=_.RQ((N["page-header-view-model-wiz__page-header-headline-image"]=!0,N["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!B().heroImage&&u()},N));
N={};var K=_.RQ((N["page-header-view-model-wiz__page-header-banner-container"]=T,N["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var xi;return(T==null?void 0:T())&&((xi=_.h(B().banner,_.nKG))==null?void 0:xi.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},N));
N={};var p4=_.RQ((N["page-header-view-model-wiz__page-header-content-metadata"]=!0,N["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=P,N));N={};var sc=_.RQ((N["page-header-view-model-wiz__page-header-flexible-actions"]=!0,N["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!B().metadata||u()},N["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!u()},N));
N={};var Gf=_.RQ((N["page-header-view-model-wiz__page-header-attribution"]=!0,N["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=P,N));return _.w("yt-page-header-view-model",{class:E},_.w(_.wU,{cond:P,then:function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-background"},_.w(_.hM,{data:function(){return B().background}},{cinematicContainerViewModel:function(xi){return _.w(_.SaZ,{data:xi.data,
topbarOffset:e})}}))}}),_.w(j6D,{condition:function(){return!(Y==null||!Y())},
content:function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-content"},_.w(_.wU,{cond:function(){return(T==null?void 0:T())&&B().banner},
then:function(){return _.w("div",{class:K},_.w(_.hM,{data:function(){return B().banner}},{imageBannerViewModel:_.Qv}))}}),_.w("div",{class:W},_.w(_.wU,{cond:Z,
then:function(){return _.w(_.hM,{data:function(){var xi;(xi=B().animatedImage)||(xi=B(),Z()&&(xi=Object.assign({},xi),xwi(xi,z(),uHt(B()))),xi=xi.image);return xi}},{contentPreviewImageViewModel:function(xi){return _.w(_.AF,{data:xi.data,
className:ed,imageSizeConfig:M})},
decoratedAvatarViewModel:function(xi){return _.w(_.CG,{data:xi.data,className:ed})}})}}),_.w(_.wU,{cond:function(){return!!B().heroImage&&!(u()&&!M().allowFullWidth)},
then:function(){return _.w(_.hM,{data:function(){return B().heroImage}},{contentPreviewImageViewModel:function(xi){return _.w(_.AF,{data:xi.data,
className:ed,imageSizeConfig:M})}})}}),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.w(_.wU,{cond:function(){return!!B().heroImage&&u()&&!M().allowFullWidth},
then:function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.w(_.hM,{data:function(){return B().heroImage}},{contentPreviewImageViewModel:function(xi){return _.w(_.AF,{data:xi.data,
className:ed,imageSizeConfig:M})}}))}}),_.w(_.hM,{data:function(){return B().title}},{dynamicTextViewModel:function(xi){return _.w(A_r,{data:xi.data,
className:f})}}),_.w(_.hM,{data:function(){return B().metadata}},{contentMetadataViewModel:function(xi){return _.w(_.Bnl,{data:xi.data,
layout:function(){return m()?1:0},
className:p4,isOverlay:P,useMediumText:x})}}),_.w(_.wU,{cond:function(){return B().description&&!m()},
then:function(){return _.w(_.hM,{data:function(){return B().description}},{descriptionPreviewViewModel:function(xi){return _.w(J_l,{data:xi.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:P,maxLinesOverride:function(){return m()?void 0:1},
useMediumText:x})}})}}),_.w(_.wU,{cond:function(){return B().attribution&&!u()},
then:function(){return _.w(_.hM,{data:function(){return B().attribution}},{attributionViewModel:function(xi){return _.w(jS,{data:xi.data,
className:Gf,useMediumText:x})}})}}),_.w(_.wU,{cond:function(){return B().actions&&!u()},
then:function(){return _.w(_.hM,{data:function(){return B().actions}},{flexibleActionsViewModel:function(xi){return _.w(mf,{data:xi.data,
layout:function(){return Gri(z())},
className:sc})}})}}))),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.w(_.wU,{cond:function(){return B().description&&m()},
then:function(){return _.w(_.hM,{data:function(){return B().description}},{descriptionPreviewViewModel:function(xi){return _.w(J_l,{data:xi.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:P,maxLinesOverride:function(){return m()?void 0:1},
useMediumText:x})}})}}),_.w(_.wU,{cond:function(){return B().attribution&&u()},
then:function(){return _.w(_.hM,{data:function(){return B().attribution}},{attributionViewModel:function(xi){return _.w(jS,{data:xi.data,
className:Gf,useMediumText:x})}})}}),_.w(_.wU,{cond:function(){return B().actions&&u()},
then:function(){return _.w(_.hM,{data:function(){return B().actions}},{flexibleActionsViewModel:function(xi){return _.w(mf,{data:xi.data,
layout:function(){return Gri(z())},
className:sc})}})}})),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.w(_.hM,{data:function(){return B().bottomMetadataFlexibleContainer}},{flexibleContainer:function(xi){return _.w(oAV,{data:xi.data,
isOverlay:P})}})))}}))},"$c");
_.klU=_.d("web_enable_sink_page_header_view_model")?UbR:MGQ;_.tWZ=_.d("web_enable_sink_page_header_view_model")?UbR:_.$3(MGQ);UbR.idomCompat=!0;_.oQ(_.rp(function(E){var B=_.p(_.lQ(!1,void 0,"vVRl3b")),I=B.next().value,T=B.next().value;return _.w("yt-official-card-view-model",{class:_.RQ("ytOfficialCardViewModelHost",E.className),style:_.c$({"background-color":function(){var e,c=ln4((e=E.data())==null?void 0:e.backgroundColor);return c?_.hR(c):void 0}})},_.w(_.hM,{data:function(){return E.data().header}},{pageHeaderViewModel:function(e){return _.w(_.tWZ,{data:e.data,
noPadding:!0})}}),_.w(_.hM,{data:function(){return E.data().contents}},{horizontalShelfViewModel:_.mw}),_.w(_.wU,{cond:I,
then:function(){return _.w("div",{class:"ytOfficialCardViewModelExpandedContent"},_.w(_.hM,{data:function(){return E.data().expandedContents}},{horizontalShelfViewModel:function(e){return _.w(_.mw,{data:e.data,
sizing:"MINI"})}}),_.w("div",{class:"ytOfficialCardViewModelCollapseButton"},_.w(_.hM,{data:function(){return E.data().collapseButton}},{buttonViewModel:function(e){return _.w(_.ne,{data:e.data,
onClick:function(){T(!I())}})}})))},
else:function(){return _.w("div",{class:"ytOfficialCardViewModelExpandButton"},_.w(_.hM,{data:function(){return E.data().expandButton}},{buttonViewModel:function(e){return _.w(_.ne,{data:e.data,
onClick:function(){T(!I())}})}}))}}))},"ad"),"yt-official-card-view-model",{props:{data:_.Jh,
className:_.Jh}});var Hwf=_.z8({buttonViewModel:_.ne});_.qW(NqB);_.qE(NqB,"ytw-search-friction-view-model",{propNames:["data"]});_.d$=_.rp(function(E){var B=_.oH(),I,T=(I=_.Q().resolve(_.Fx(_.ME)))==null?void 0:I();_.m$(function(){var e=B.value;var c=new BsV,Y=new Map(c.JSC$7189_sanitizerTable.globalAttributePolicies);Y.set("style",{policyAction:4});c.JSC$7189_sanitizerTable=new mY(c.JSC$7189_sanitizerTable.allowedElements,c.JSC$7189_sanitizerTable.elementPolicies,c.JSC$7189_sanitizerTable.allowedGlobalAttributes,Y,c.JSC$7189_sanitizerTable.globallyAllowedAttributePrefixes);var v=["data-time"];if(v===void 0)Y=new Set(c.JSC$7189_sanitizerTable.globallyAllowedAttributePrefixes),
Y.add("data-"),c.JSC$7189_sanitizerTable=new mY(c.JSC$7189_sanitizerTable.allowedElements,c.JSC$7189_sanitizerTable.elementPolicies,c.JSC$7189_sanitizerTable.allowedGlobalAttributes,c.JSC$7189_sanitizerTable.globalAttributePolicies,Y);else{Y=new Set(c.JSC$7189_sanitizerTable.allowedGlobalAttributes);v=_.p(v);for(var y=v.next();!y.done;y=v.next()){y=y.value;if(y.indexOf("data-")!==0)throw Error("qa`"+y);Y.add(y)}c.JSC$7189_sanitizerTable=new mY(c.JSC$7189_sanitizerTable.allowedElements,c.JSC$7189_sanitizerTable.elementPolicies,
Y,c.JSC$7189_sanitizerTable.globalAttributePolicies,c.JSC$7189_sanitizerTable.globallyAllowedAttributePrefixes)}Y=new Set(c.JSC$7189_sanitizerTable.allowedGlobalAttributes);Y.add("class");c.JSC$7189_sanitizerTable=new mY(c.JSC$7189_sanitizerTable.allowedElements,c.JSC$7189_sanitizerTable.elementPolicies,Y,c.JSC$7189_sanitizerTable.globalAttributePolicies,c.JSC$7189_sanitizerTable.globallyAllowedAttributePrefixes);_.M7(e,_.FRt(c.build(),SPt(E.text())));J3D(B.value)});
I={};return _.w("div",null,_.w("markdown-div",{class:_.RQ("ytwMarkdownDivHost",(I.ytwMarkdownDivDark=T,I.ytwMarkdownDivHostSmall=function(){var e;return((e=E.isSmallText)==null?void 0:e.call(E))||!1},I)),
el:B}))},"bd");
_.d$.idomCompat=!0;var fCZ=_.rp(function(E){var B=E.imageData;var I=_.Wl(E.isInList,!1),T=function(){return I()?{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 _.w("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.w(_.wU,{cond:function(){return B().image},
then:function(e){return _.w(_.Ja,{data:e,alt:function(){return T().alt},
contentMode:function(){return T().contentMode},
targetWidth:function(){return T().targetWidth},
targetHeight:function(){return T().targetHeight},
className:function(){return T().className}})}}),_.w("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.w("div",{class:_.RQ("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.w(_.aS,{text:function(){return B().title}})),_.w(_.Zt,{each:function(){var e;
return(e=B().description)!=null?e:[]}},function(e){return _.w("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.w(hn,{content:e}))})))},"cd"),VWD=_.rp(function(E){var B=E.list;
var I=function(){var T;return(T=B().items)!=null?T:[]};
return _.w("div",{class:"ytwGenAiRichTextViewModelListContent"},_.w(_.wU,{cond:function(){return B().title},
then:function(T){return _.w("div",{class:_.RQ("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.w(_.aS,{text:T}))}}),_.w(_.wU,{cond:function(){return B().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.w("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.w(_.Zt,{each:I},function(T){return _.w("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.w(hn,{content:T,isInList:!0}))}))}}),_.w(_.wU,{cond:function(){return B().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.w("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.w(_.Zt,{each:I},function(T){return _.w("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.w(hn,{content:T,isInList:!0}))}))}}),_.w(_.wU,{cond:function(){return B().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.w("div",{class:"ytwGenAiRichTextViewModelImageList"},_.w(_.Zt,{each:I},function(T){return _.w("div",{class:"ytwGenAiRichTextViewModelListItem"},_.w(hn,{content:T,isInList:!0}))}))}}))},"dd"),qaN=_.rp(function(E){var B=E.table;
return _.w("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.w("thead",null,_.w("tr",null,_.w(_.Zt,{each:function(){var I,T;return(T=(I=B().header)==null?void 0:I.cells)!=null?T:[]}},function(I){return _.w("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.w(_.Zt,{each:function(){return I.contents}},function(T){return _.w(hn,{content:T})}))}))),_.w("tbody",null,_.w(_.Zt,{each:function(){var I;
return(I=B().rows)!=null?I:[]}},function(I){return _.w("tr",null,_.w(_.Zt,{each:function(){return I.cells}},function(T){return _.w("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.w(_.Zt,{each:function(){return T.contents}},function(e){return _.w(hn,{content:e})}))}))})))},"ed"),hn=_.rp(function(E){var B=E.content;
var I=_.Wl(E.isInList,!1),T=function(){var e,c;return(c=(e=B().contentBlock)==null?void 0:e.contents)!=null?c:[]};
return _.w("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.w(_.wU,{cond:function(){return B().text},
then:function(e){return _.w(_.aS,{className:"ytwGenAiRichTextViewModelText",text:e})}}),_.w(_.wU,{cond:function(){return B().image},
then:function(e){return _.w(fCZ,{imageData:e,isInList:I})}}),_.w(_.wU,{cond:function(){return B().list},
then:function(e){return _.w(VWD,{list:e})}}),_.w(_.wU,{cond:function(){return B().contentBlock},
then:function(){return _.w("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.w(_.Zt,{each:T},function(e){return _.w(hn,{content:e,isInList:!1})}))}}),_.w(_.wU,{cond:function(){return B().table},
then:function(e){return _.w(qaN,{table:e})}}))},"fd"),Fd6=_.rp(function(E){var B={};
B=_.B$("ytwGenAiRichTextViewModelHost",(B.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.EF("search_overview_link_style")),B));return _.w("gen-ai-rich-text-view-model",{class:B},_.w(hn,{content:function(){return E.data().content}}))},"gd");_.qW(WDB);_.qW(S9);_.Dbh=_.rp(function(E){var B=E.data;var I=function(){var M;return((M=B().loadingUi)!=null?M:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},T=function(){return B().isLoading&&(I()==="UNSPECIFIED"||I()==="GHOST_CARD")},e=function(){return!B().isLoading},c=function(){return!!B().content&&!B().contents},Y=function(){return!!B().contents},v=function(){return!!B().nextQueryButtons},y=function(){return B().isLoading&&I()==="INVISIBLE"},Z=function(){var M,N;
return(N=(M=B().headerIcon)==null?void 0:M.iconType)!=null?N:""},P=function(){var M;
return(M=B().content)!=null?M:""},z=function(){return!!B().sourcesSection},m,u=!((m=_.Q().resolve(_.Fx(_.ME)))==null||!m()),x=_.aJ(function(){var M=[],N=B().contents;
if(N)for(var W=0;W<N.length;W++){var U=_.h(N&&N[W],bUN);U&&M.push(U)}return M},void 0,"ycU97e");
_.uW(function(){B().isLoading||_.nO("so_re",void 0,"search_overview_answer")});
return _.w("ytd-overview-answer-view-model",{class:function(){var M={};M=(M.ytdOverviewAnswerViewModelHost=!0,M.ytdOverviewAnswerViewModelDarkBackground=u&&!y(),M.ytdOverviewAnswerViewModelLightBackground=!u&&!y(),M);return _.B$(M)}},_.w(_.wU,{cond:function(){return!y()},
then:function(){return _.w(_.VS,null,_.w("h2",null,_.w("div",{class:"ytdOverviewAnswerViewModelHeader"},_.w(_.wU,{cond:Z,then:function(M){return _.w("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.w(_.i0,{icon:M}))}}),_.w("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.w("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return B().headerText}),_.w("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.w(_.aS,{text:function(){return B().headerSubtext}}))))),_.w(_.wU,
{cond:T,
then:function(){return WDB()}}),_.w(_.wU,{cond:e,
then:function(){return _.w(_.VS,null,_.w(_.wU,{cond:c,then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelText"},_.w(_.d$,{text:P,isSmallText:!0}))}}),_.w(_.wU,{cond:Y,
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelRichText"},_.w(_.Zt,{each:x},function(M){return _.w(Fd6,{data:M})}))}}),_.w(_.wU,{cond:v,
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.w(_.hM,{data:function(){return B().nextQueryButtons}},{buttonViewModel:function(M){return _.w(_.ne,{data:M.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.mw}))}}),_.w("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.w("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.w(_.wU,{cond:function(){return!!_.h(B().likeButtonViewModel,koJ)&&!!_.h(B().dislikeButtonViewModel,tBJ)},
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.w(_.dLz,{data:function(){return _.h(B().likeButtonViewModel,koJ)},
disableIconAnimation:!0}),_.w(_.mLl,{data:function(){return _.h(B().dislikeButtonViewModel,tBJ)}}))}})),_.w(_.wU,{cond:function(){var M;
return(M=B().sourcesSection)==null?void 0:M.headerText},
then:function(M){return _.w("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.w(_.aS,{text:M}))}})),_.w(_.wU,{cond:z,
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelSources"},_.w(_.hM,{data:function(){var M;return(M=B().sourcesSection)==null?void 0:M.sourcesShelf}},{buttonViewModel:_.ne,
horizontalShelfViewModel:function(M){return _.w(_.mw,{data:M.data,includeMargin:!0,hasPeek:!0})}}))}}),_.w(_.wU,{cond:function(){return B().disclaimerText},
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.w(_.aS,{text:function(){return B().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"hd");var Kdl=_.rp(function(E){var B=E.data;var I=E.active;var T=_.oH();_.m$(function(){var e,c,Y,v=((e=_.Q().resolve(_.Fx(_.ME)))==null?0:e())?(c=B())==null?void 0:c.darkThemeColorPalette:(Y=B())==null?void 0:Y.lightThemeColorPalette;v&&(v.additiveBackground&&T.value.style.setProperty("--timestamp-active-background-color",_.hR(v.additiveBackground)),v.textSecondary&&T.value.style.setProperty("--timestamp-active-color",_.dE(v.textSecondary)))},"KHcbwb");
E={};return _.w("transcript-segment-view-model",{class:_.RQ("ytwTranscriptSegmentViewModelHost",(E.ytwTranscriptSegmentViewModelHostActive=I,E.ytwTranscriptSegmentViewModelHostModern=_.d("enable_timeline_view_modern_transcript")||_.d("enable_timeline_view_modern_transcript_fe"),E)),el:T},_.w(_.wU,{cond:function(){var e;return(e=B())==null?void 0:e.timestamp},
then:function(e){var c={};return _.w("div",{class:_.RQ("ytwTranscriptSegmentViewModelTimestamp",(c.ytwTranscriptSegmentViewModelTimestampActive=I,c))},e)}}),_.w(_.aS,{text:function(){var e,c,Y;
return(Y=(e=B())==null?void 0:e.attributedText)!=null?Y:{content:(c=B())==null?void 0:c.simpleText}},
linkInheritColor:!0}))},"id");var RXr=_.rp(function(E){var B=E.data;return _.w("div",{class:"yt-video-attributes-section-view-model__header"},_.w("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return B().headerTitle}),_.w(_.wU,{cond:function(){return B().headerSubtitle},
then:function(){return _.w("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return B().headerSubtitle})}}))},"jd"),E5N=_.rp(function(E){function B(x){return Math.max(Math.min(x,0),Z()-v())}
var I=E.data;var T=_.oH(),e=_.oH();E=_.p(_.lQ(0,void 0,"ucDlDf"));var c=E.next().value,Y=E.next().value,v=c;E=_.p(_.lQ(0,void 0,"lHzSub"));c=E.next().value;var y=E.next().value,Z=c;E=_.p(_.lQ(0,void 0,"Q8fDIe"));var P=E.next().value,z=E.next().value;_.uW(function(){var x=function(){Y(e.value.scrollWidth);y(T.value.clientWidth)};
x();if(window.ResizeObserver){var M=new ResizeObserver(x);M.observe(T.value);_.dt(function(){M.disconnect()})}});
var m=function(){z(B(P()+Z()))},u=function(){z(B(P()-Z()))};
return _.w("yt-video-attributes-section-view-model",null,_.w("div",{class:"yt-video-attributes-section-view-model"},_.w(_.wU,{cond:function(){return I().headerTitle},
then:function(){return _.w(RXr,{data:I})}}),_.w("div",{class:_.RQ("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:T},_.w("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.c$({transform:function(){var x=P();_.HA("HTML_DIR")==="rtl"&&(x*=-1);return"translateX("+x+"px)"}}),
el:e},_.w(_.hM,{data:function(){return I().videoAttributeViewModels}},{videoAttributeViewModel:yEl}))),_.w(_.hM,{data:function(){return I().footerButton}},{buttonViewModel:function(x){return _.w(_.ne,{data:x.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.w(_.wU,{cond:function(){return P()<0&&I().previousButton},
then:function(){return _.w("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.w(_.hM,{data:function(){return I().previousButton}},{buttonViewModel:function(x){return _.w(_.ne,{data:x.data,
onClick:m})}}))}}),_.w(_.wU,{cond:function(){return P()>Z()-v()&&I().nextButton},
then:function(){return _.w("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.w(_.hM,{data:function(){return I().nextButton}},{buttonViewModel:function(x){return _.w(_.ne,{data:x.data,
onClick:u})}}))}})))},"kd");
E5N.idomCompat=!0;var BOr=_.rp(function(E){var B=E.data;var I=E.active;var T={},e={};return _.w("timeline-item-view-model",{class:_.RQ("ytwTimelineItemViewModelHost",(T.ytwTimelineItemViewModelHostChapterChild=E.chapterChild,T.ytwTimelineItemViewModelModern=_.d("enable_timeline_view_modern_transcript")||_.d("enable_timeline_view_modern_transcript_fe"),T))},_.w("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.w("div",{class:_.RQ("ytwTimelineItemViewModelTimestamp",(e.ytwTimelineItemViewModelTimestampActive=
I,e))},function(){return B().timestamp})),_.w("div",{class:"ytwTimelineItemViewModelContentItems"},_.w(_.hM,{data:function(){return B().contentItems}},{transcriptSegmentViewModel:function(c){return _.w(Kdl,{data:c.data,
active:I})},
videoAttributesSectionViewModel:E5N})))},"ld");var $Pr=_.rp(function(E){var B=E.data;E={};return _.w("timeline-chapter-view-model",{class:_.RQ("ytwTimelineChapterViewModelHost")},_.w("div",{class:_.RQ("ytwTimelineChapterViewModelTitle",(E.ytwTimelineChapterViewModelModern=_.d("enable_timeline_view_modern_transcript")||_.d("enable_timeline_view_modern_transcript_fe"),E))},function(){return B().title}),_.w(_.hM,{data:function(){return B().contents}},{timelineItemViewModel:function(I){return _.w(BOr,{data:I.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(I){return _.w(E5N,{data:I.data})}}))},"md");var IIU=_.rp(function(E){var B=E.data;var I=_.oH(),T=_.iO(_.WPB,function(){var c;return(c=B().markersEngagementPanelSyncEntityKey)!=null?c:""}),e=function(){var c;
return((c=T())==null?void 0:c.activeItemIndex)===B().index};
E=_.TI(function(c){var Y,v,y,Z,P;return _.a(function(z){if(z.nextAddress==1)return c.stopPropagation(),_.JYf(_.Sf(c),I.value,["A".toString(),"BUTTON".toString()])?z.return():(Y=_.ha(B().onTap))?_.C(z,_.EO(),2):z.return();v=z.yieldResult;Z=(y=_.h(Y,_.kh))==null?void 0:y.startTimeSeconds;Z===void 0||(P=v)!=null&&P.seekTo(Z,!0);_.ER(z)})});
return _.w("macro-markers-panel-item-view-model",{class:_.RQ("ytwMacroMarkersPanelItemViewModelHost",{"is-active":e}),el:I,"on:click":E,tabindex:0},_.w(_.hM,{data:function(){var c;return(c=B())==null?void 0:c.item}},{timelineChapterViewModel:function(c){return _.w($Pr,{data:c.data,
active:e})},
timelineItemViewModel:function(c){return _.w(BOr,{data:c.data,active:e})},
videoAttributeViewModel:yEl}))},"nd");
IIU.idomCompat=!0;_.oQ(IIU,"macro-markers-panel-item-view-model",{props:{data:_.Jh}});_.oQ(E5N,"yt-video-attributes-section-view-model",{props:{data:_.Jh}});var TOZ=_.rp(function(E){var B=function(){var I,T,e;return(e=(I=E.data().leadingLogoAccessibility)==null?void 0:(T=I.accessibilityData)==null?void 0:T.label)!=null?e:""};
return _.w("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.w(_.wU,{cond:function(){return E.data().leadingLogo},
then:function(I){return _.w(_.Ja,{className:"ytwFantasySectionHeaderViewModelLogo",data:I,alt:B})}}),_.w("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.w(_.aS,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return E.data().title}}),_.w(_.aS,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return E.data().subtitle}})),_.w(_.hM,{data:function(){return E.data().trailingButton}},{buttonViewModel:function(I){return _.w(_.ne,{data:I.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"od");var erX=_.rp(function(E){var B={};B=_.RQ("ytwFantasyTeamViewModelHost",(B.ytwFantasyTeamViewModelCompact=function(){var e;return!((e=E.compact)==null||!e.call(E))},B.ytwFantasyTeamViewModelUser=function(){return E.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},B.ytwFantasyTeamViewModelOpponent=function(){return E.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},B));
var I=function(){var e,c,Y;return(Y=(e=E.data().teamLogoAccessibility)==null?void 0:(c=e.accessibilityData)==null?void 0:c.label)!=null?Y:""},T=_.iO(rUc,function(){return E.data().teamEntityKey});
return _.w("ytw-fantasy-team-view-model",{class:B},_.w(_.wU,{cond:function(){return E.data().teamLogo},
then:function(e){return _.w(_.Ja,{className:"ytwFantasyTeamViewModelLogo",data:e,alt:I})}}),_.w("div",{class:"ytwFantasyTeamViewModelMetadata"},_.w("div",{class:"ytwFantasyTeamViewModelHeader"},_.w(_.aS,{className:"ytwFantasyTeamViewModelScore",
text:function(){var e;return(e=T())==null?void 0:e.score}}),_.w(_.i0,{icon:function(){var e;
return(e=T())==null?void 0:e.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.w(_.aS,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var e;return(e=T())==null?void 0:e.projectedScore}})),_.w(_.aS,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return E.data().primaryText}}),_.w(_.aS,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return E.data().secondaryText}}),_.w(_.aS,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return E.data().tertiaryText}})),_.w(_.aS,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var e;return(e=T())==null?void 0:e.score}}))},"pd");_.oQ(_.rp(function(E){return _.w("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.w("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.w(_.hM,{data:function(){return E.data().summaryHeader}},{fantasySectionHeaderViewModel:TOZ})),_.w(_.hM,{data:function(){return E.data().userTeam}},{fantasyTeamViewModel:erX}),_.w(_.hM,{data:function(){return E.data().opponentTeam}},{fantasyTeamViewModel:erX}))},"qd"),"fantasy-league-summary-view-model",{props:{data:_.Jh}});var lIU=_.rp(function(E){var B=_.XS(E,{shape:{},useCustomTabRenderable:!1}),I=B.shape;B=B.useCustomTabRenderable;var T=E.customTabRenderable,e=function(){return I().disabled},c=function(){return I().selected},Y=function(){return I().title},v=function(){return I().icon},y=_.oH();
E=_.TI(function(z){var m;if(!e()&&((m=I().aTagConfig)==null?0:m.onclick))I().aTagConfig.onclick(z);return!1});
var Z=_.TI(function(z){if(z.key==="Enter"||z.key==="ArrowUp"||z.key==="ArrowDown")z.preventDefault(),y.value.click();return!1}),P={};
return _.w("yt-tab-shape",{class:_.RQ("yt-tab-shape-wiz",function(){return I().className},(P["yt-tab-shape-wiz__tab--last-tab"]=function(){return I().isLastTab},P["yt-tab-shape-wiz--host-disabled"]=e,P["yt-tab-shape-wiz--host-clickable"]=!T,P)),
role:T?void 0:"tab","aria-selected":c!=null?c:!1,"aria-disabled":e,tabindex:T?void 0:0,"on:click":E,"on:keydown":Z,el:y,"tab-identifier":function(){return I().identifier},
"tab-title":Y},_.w(_.wU,{cond:B,then:function(){return T()},
else:function(){var z={},m={};return _.w(_.VS,null,_.w("div",{class:_.RQ("yt-tab-shape-wiz__tab",(z["yt-tab-shape-wiz__tab--tab-selected"]=c,z))},_.w(_.wU,{cond:v,then:function(u){return _.w(_.i0,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return u().iconType}})}}),Y),_.w("div",{class:_.RQ("yt-tab-shape-wiz__tab-bar",(m["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=c,m))}))}}))},"rd");
lIU.idomCompat={callbacks:{customTabRenderable:!0}};_.iND=_.rp(function(E){var B=E.shape;E=_.p(_.lQ(48,void 0,"S7XsSd"));var I=E.next().value,T=E.next().value;E=_.p(_.lQ(0,void 0,"CzMxb"));var e=E.next().value,c=E.next().value,Y=function(){return B().tabs},v=_.oH(),y=function(){var Z,P;
return(P=(Z=Y())==null?void 0:Z.findIndex(function(z){return z.selected}))!=null?P:-1};
_.uW(function(){var Z=v.value.querySelectorAll("yt-tab-shape"),P=y()>-1?Z[y()]:void 0;requestAnimationFrame(function(){T((P==null?void 0:P.getBoundingClientRect().width)||0)})});
_.m$(function(){var Z=y();requestAnimationFrame(function(){var P=v.value.querySelectorAll("yt-tab-shape"),z;T(((z=Z>-1?P[Z]:void 0)==null?void 0:z.getBoundingClientRect().width)||0);for(var m=z=0;m<Z;m++)z+=P[m].offsetWidth+24;_.HA("HTML_DIR")==="rtl"&&(z=-z);c(z)})});
E={};return _.w("yt-tab-group-shape",{class:_.RQ("yt-tab-group-shape-wiz",(E["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return B().isOverflowHidden},E)),
el:v},_.w(_.wU,{cond:Y,then:function(Z){return _.w(_.VS,null,_.w("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.w(_.Zt,{each:Z},function(P,z){return _.w(lIU,{shape:function(){return Object.assign({},P,{isLastTab:z()===Z().length-1})},
customTabRenderable:P.customTabRenderable,useCustomTabRenderable:!!P.customTabRenderable})})),_.w(cqD,{width:I,
sliderOffset:e}))}}))},"sd");
_.iND.idomCompat=!0;var cqD=_.rp(function(E){var B=_.Wl(E.sliderOffset,0),I=E.width;return _.w("div",{class:"yt-tab-group-shape-wiz__slider",style:_.c$({width:function(){return I()+"px"},
transform:function(){return"translateX("+B()+"px)"}})})},"td");var ptl=_.rp(function(E){var B=function(){var c,Y,v;return(v=(c=E.data().playerLogoAccessibility)==null?void 0:(Y=c.accessibilityData)==null?void 0:Y.label)!=null?v:""},I=_.iO(bBc,function(){return E.data().playerEntityKey}),T={};
T=_.RQ("ytwFantasyPlayerViewModelHost",(T.ytwFantasyPlayerViewModelPlaying=function(){var c;return!((c=I())==null||!c.isPlayerPlaying)},T.ytwFantasyPlayerViewModelOnField=function(){var c;
return((c=I())==null?void 0:c.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},T.ytwFantasyPlayerViewModelRedZone=function(){var c;
return((c=I())==null?void 0:c.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},T));
var e=function(){var c,Y,v,y=((c=_.Q().resolve(_.Fx(_.ME)))==null?0:c())?(Y=E.data().playerLogoBackgroundColor)==null?void 0:Y.darkTheme:(v=E.data().playerLogoBackgroundColor)==null?void 0:v.lightTheme;return y===void 0?"":_.hR(y)};
return _.w("ytw-fantasy-player-view-model",{class:T},_.w(_.wU,{cond:function(){return E.data().playerLogo},
then:function(c){return _.w("div",{class:"ytwFantasyPlayerViewModelLogo"},_.w("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.w(_.Ja,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.c$({"background-color":e}),data:c,alt:B})),_.w("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.w(_.i0,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.w("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.w("div",{class:"ytwFantasyPlayerViewModelHeader"},_.w(_.aS,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var c;return(c=E.data())==null?void 0:c.playerNameText}}),_.w(_.aS,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var c;return(c=E.data())==null?void 0:c.playerDescriptionText}})),_.w("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.w(_.aS,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var c;return(c=I())==null?void 0:c.gamePeriodText}}),_.w(_.aS,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var c;return(c=E.data())==null?void 0:c.opponentTeamText}}),_.w(_.aS,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var c;return(c=I())==null?void 0:c.gameStatusText}}),_.w(_.aS,{className:_.RQ("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var c;return(c=I())==null?void 0:c.playerStatusText}})),_.w("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.w(_.aS,{text:function(){var c;
return(c=I())==null?void 0:c.playerStatsText}}))),_.w(_.aS,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var c;return(c=I())==null?void 0:c.fantasyScore}}))},"ud");var Ytr=_.rp(function(E){return _.w("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.w(_.wU,{cond:function(){return E.data().players},
then:function(B){return _.w(_.hM,{data:B},{fantasyPlayerViewModel:ptl})}}))},"vd");var aI6=_.rp(function(E){var B=_.p(_.l0(function(){var e;return(e=E.data().selectedTabIdentifierKey)!=null?e:""})),I=B.next().value,T=B.next().value;
_.hA(function(){var e;(e=E.setSelectedTabSignal)==null||e.call(E,I)});
return _.w("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.w("div",{class:"ytTabbedViewModelTabGroup"},_.w(_.iND,{shape:function(){var e=E.data(),c=[],Y={tabs:c};if(!e.tabs)return Y;e=_.p(e.tabs);for(var v=e.next(),y={};!v.done;y={tabViewModel:void 0},v=e.next())if(y.tabViewModel=_.h(v.value,JoX),y.tabViewModel){var Z=v=void 0;c.push({aTagConfig:{onclick:function(P){return function(){var z;T((z=P.tabViewModel.tabIdentifier)!=null?z:"")}}(y)},
identifier:y.tabViewModel.tabIdentifier,selected:I()===y.tabViewModel.tabIdentifier,title:(Z=(v=y.tabViewModel.title)==null?void 0:v.content)!=null?Z:""})}return Y}})),_.w(_.hM,{data:function(){var e,c=_.p((e=E.data().tabs)!=null?e:[]);
for(e=c.next();!e.done;e=c.next())if((e=_.h(e.value,JoX))&&e.tabIdentifier===I())return e.content}},{fantasyRosterViewModel:Ytr}))},"wd");_.oQ(_.rp(function(E){var B=_.p(XQc()),I=B.next().value,T=B.next().value;return _.w("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.w(_.aS,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return E.data().title}}),_.w(_.wU,{cond:function(){return E.data().tabbedViewModel},
then:function(e){return _.w(_.hM,{data:e},{tabbedViewModel:function(c){return _.w(aI6,{data:c.data,setSelectedTabSignal:T})}})}}),_.w(_.wU,{cond:function(){var e,c=(e=_.h(E.data().tabbedViewModel,WWr))==null?void 0:e.tabs;
e=_.h(c==null?void 0:c[0],JoX);c=_.h(c==null?void 0:c[1],JoX);var Y=e==null?void 0:e.tabIdentifier;if(I()===Y){var v,y;if(!((v=_.h(e==null?void 0:e.content,tlX))==null?0:(y=v.players)==null?0:y.length))return E.data().noUserTeamPlayersText}else{var Z,P;if(!((Z=_.h(c==null?void 0:c.content,tlX))==null?0:(P=Z.players)==null?0:P.length))return E.data().noOpponentTeamPlayersText}},
then:function(e){return _.w(_.aS,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:e})}}))},"xd"),"ytw-fantasy-matchup-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){return _.w("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.w(_.aS,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return E.data().title}}),_.w(_.wU,{cond:function(){return E.data().matchupTeamPairs},
then:function(B){return _.w(_.Zt,{each:B,keyBy:"INDEX"},function(I){return _.w("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.w(_.hM,{data:function(){return[I().firstTeam,I().secondTeam]}},{fantasyTeamViewModel:function(T){return _.w(erX,{data:T.data,
compact:!0})}}))})}}))},"yd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B=function(){var e,c,Y;return(Y=(e=E.data().userLogoAccessibility)==null?void 0:(c=e.accessibilityData)==null?void 0:c.label)!=null?Y:""},I=function(){var e,c,Y;
return(Y=(e=E.data().opponentLogoAccessibility)==null?void 0:(c=e.accessibilityData)==null?void 0:c.label)!=null?Y:""},T=_.iO(XrB,function(){return E.data().entityKey});
return _.w("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.w("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.w(_.wU,{cond:function(){return E.data().userLogo},
then:function(e){return _.w(_.Ja,{className:"ytwFantasyWinProbabilityViewModelLogo",data:e,alt:B})}}),_.w("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.w(_.aS,{text:function(){return E.data().title}})),_.w(_.wU,{cond:function(){return E.data().opponentLogo},
then:function(e){return _.w(_.Ja,{className:"ytwFantasyWinProbabilityViewModelLogo",data:e,alt:I})}})),_.w("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.w("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.w(_.aS,{text:function(){var e;
return(e=T())==null?void 0:e.userWinNumberLabel}})),_.w("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.w("div",{class:_.RQ("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.c$({flex:function(){var e,c;return(c=(e=T())==null?void 0:e.userWinNumber)!=null?c:50}})}),_.w("div",{class:_.RQ("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.c$({flex:function(){var e,c;return(c=(e=T())==null?void 0:e.opponentWinNumber)!=null?c:50}})})),_.w("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.w(_.aS,{text:function(){var e;
return(e=T())==null?void 0:e.opponentWinNumberLabel}}))))},"zd"),"fantasy-win-probability-view-model",{props:{data:_.Jh}});_.QH("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var sl=function(){var E=_.r.apply(this,arguments)||this;E.darkerPanels=_.d("web_watch_darker_panels");E.commentsHidePanelButton=!1;E.isWatchGrid=!1;E.continuationShowButton=!1;E.isSearch=!1;E.isConstrainedList=!1;E.isWatch=!1;E.eligibleToSwitchToGrid=!1;E.epRestyle=!1;E.isCarouselInFeed=!0;E.topSpacingZero=!1;E.continuationIsInitialLoad=!0;E.enableSqueezebackPanels=_.d("web_shorts_enable_squeezeback_panels");E.enableAnchoredPanel=_.d("desktop_shorts_v2_anchored_panel");E.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};E.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return E};
_.L(sl,_.r);_.l=sl.prototype;_.l.updateLockupContainerTypes=function(E){if(this.eligibleToSwitchToGrid){var B;(B=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||B.forEach(function(I){I.containerType=E})}};
_.l.getItemsPath=function(){return"data.contents"};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.l.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.d("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.d("kevlar_low_priority_continuation")}}};
_.l.created=function(){this.JSC$14388_cachedViewportHeight=_.HA("initialInnerHeight")||window.innerHeight};
_.l.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var E=_.n(this.hostElement).querySelector("ytd-comments-header-renderer");E&&(E.hidePanelButton=this.commentsHidePanelButton)}};
_.l.onRetrieveLocation=function(E,B){this.containsComments()&&(this.firstCommentsLoaded=B.hasComments=!0)};
_.l.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.l.onLoadReloadContinuation=function(E,B){var I=this;E.stopPropagation();this.isReloading=!0;_.$O(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(T){var e=_.Q().resolve(_.Zk);T=B(T);e.postData(T).then(function(c){I.onReloadContinuationData(c)})}})};
_.l.onReloadContinuationData=function(E){if(E=this.get("response.continuationContents.itemSectionContinuation",E)||this.get("response.contents.itemSectionRenderer",E)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",E)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",E))this.set("data.contents",E.contents||E.results),E.header&&this.set("data.header",E.header),this.set("data.continuations",
E.continuations||[]);this.isReloading=!1};
_.l.computeContentsClass=function(E){return E?"reloading":""};
_.l.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.l.computeSectionIdentifier=function(E){return E==null?void 0:E.sectionIdentifier};
_.l.computeFitContainer=function(E){return(E==null?void 0:E.sectionIdentifier)==="youchat-item-section"};
_.l.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.d("kevlar_disable_comments_auto_load")};
_.l.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.l.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.l.computeHasDestinationShelfRenderer=function(E){var B,I;return!!(E==null?0:(B=E.contents)==null?0:(I=B[0])==null?0:I.destinationShelfRenderer)};
_.l.computeHasSectionGroupViewModel=function(E){var B,I;return!!(E==null?0:(B=E.contents)==null?0:(I=B[0])==null?0:I.sectionGroupViewModel)};
_.l.computeStaticCommentsHeader=function(E){return E&&this.containsComments()};
_.l.computeEpRestyle=function(E){return _.d("web_ep_restyling")&&E&&this.containsComments()};
_.l.computeIsContinuationCommentSection=function(E){return(E==null?void 0:E.targetId)==="shorts-engagement-panel-comments-section"||(E==null?void 0:E.targetId)==="comments-section"};
_.l.computeSuppressPaddingDisclaimer=function(){var E,B,I,T;return!!((E=this.data)==null?0:(B=E.contents)==null?0:(I=B[0])==null?0:(T=I.productListHeaderRenderer)==null?0:T.suppressPaddingDisclaimer)};
_.l.computeHeaderStyle=function(E){switch(E==null?void 0:E.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.l.dataChanged=function(){this.firstCommentsLoaded=!1};
_.l.observeDataContentsLength=function(){var E,B;((E=this.data)==null?0:(B=E.contents)==null?0:B.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.l.onYtDismissibleItemDismissedChange=function(E){this._setItemDismissed(E.type==="yt-dismissible-item-dismissed")};
_.l.triggerContinuations=function(){for(var E=_.n(this.hostElement).querySelector("#continuations").children,B=0;B<E.length;B++)E[B].trigger()};
_.l.triggerInitialContinuations=function(){for(var E=_.n(this.hostElement).querySelector("#continuations").children,B=0;B<E.length;B++)E[B].triggerIfNotPreviouslyTriggered()};
_.l.handleYtItemSectionContinuation=function(E,B){var I;B&&((I=this.data)==null?void 0:I.sectionIdentifier)!==B||(this.set("data.continuations",[E]),this.triggerContinuations())};
_.l.handleYtItemSectionReplace=function(E,B){var I;B&&((I=this.data)==null?void 0:I.sectionIdentifier)!==B||(this.set("data.contents",E),this.set("data.continuations",[]))};
_.l.computeUseHeightHack=function(E){return E&&!_.d("kevlar_disable_height_hack")};
_.l.computeTopSpacingZero=function(E){return E};
_.l.continuationShowButtonChanged=function(){var E=_.n(this.hostElement).querySelector("ytd-continuation-item-renderer");E&&(E.showButton=this.continuationShowButton)};
_.l.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("data-changed",this.data))};
_.Up.Object.defineProperties(sl.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.d("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return!!((E=this.data)==null?0:(B=E.contents)==null?0:(I=B[0])==null?0:I.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T,e,c,Y;return!!((E=this.data)==null?0:(B=E.contents)==null?0:(I=B[0])==null?0:(T=I.shelfRenderer)==null?0:(e=T.content)==null?0:(c=e.gridRenderer)==null?0:(Y=c.targetId)==null?0:Y.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return!!((E=this.data)==null?0:(B=E.contents)==null?0:(I=B[0])==null?0:I.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return!!((E=this.data)==null?0:(B=E.contents)==null?0:(I=B[0])==null?0:I.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.EF("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.d("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.d("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14388_cachedViewportHeight-130)/150)},
set:function(){}}});
sl.prototype.dataChangedForBinding=sl.prototype.dataChangedForBinding;sl.prototype.continuationShowButtonChanged=sl.prototype.continuationShowButtonChanged;sl.prototype.onYtDismissibleItemDismissedChange=sl.prototype.onYtDismissibleItemDismissedChange;sl.prototype.observeDataContentsLength=sl.prototype.observeDataContentsLength;sl.prototype.dataChanged=sl.prototype.dataChanged;sl.prototype.onServiceRequestCompleted=sl.prototype.onServiceRequestCompleted;sl.prototype.onLoadReloadContinuation=sl.prototype.onLoadReloadContinuation;
sl.prototype.onRetrieveLocation=sl.prototype.onRetrieveLocation;sl.prototype.commentsHidePanelButtonChanged=sl.prototype.commentsHidePanelButtonChanged;sl.prototype.updateLockupContainerTypes=sl.prototype.updateLockupContainerTypes;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],sl.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],sl.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.t6.YtLazyListBehavior),_.t("design:type",Object)],sl.prototype,"ytLazyListBehavior",void 0);_.k([_.g(_.Gt.YtNextContinuationBehavior),_.t("design:type",Object)],sl.prototype,"ytNextContinuationBehavior",void 0);_.k([_.g(_.xo),_.t("design:type",Object)],sl.prototype,"ytContinuationHandlerBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],sl.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],sl.prototype,"ytdReduxBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],sl.prototype,"darkerPanels",void 0);_.k([_.X(),_.t("design:type",Object)],sl.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],sl.prototype,"engagementPanel",void 0);
_.k([_.X(),_.t("design:type",Object)],sl.prototype,"commentsHidePanelButton",void 0);_.k([_.X(),_.t("design:type",Object)],sl.prototype,"isWatchGrid",void 0);_.k([_.X(),_.t("design:type",Object)],sl.prototype,"continuationShowButton",void 0);_.k([_.X({computed:"computeIsContinuationCommentSection(data)"}),_.t("design:type",Boolean)],sl.prototype,"continuationIsCommentsSection",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],sl.prototype,"autoFill",void 0);
_.k([_.X(),_.t("design:type",Boolean)],sl.prototype,"continuationDisablePrescanVisibility",void 0);_.k([_.X(),_.t("design:type",Boolean)],sl.prototype,"isReloading",void 0);_.k([_.X(),_.t("design:type",Object)],sl.prototype,"isSearch",void 0);_.k([_.X(),_.t("design:type",Object)],sl.prototype,"isConstrainedList",void 0);_.k([_.X(),_.t("design:type",Object)],sl.prototype,"isWatch",void 0);_.k([_.X(),_.t("design:type",Object)],sl.prototype,"eligibleToSwitchToGrid",void 0);
_.k([_.X({selector:_.HE}),_.t("design:type",Object)],sl.prototype,"isGridViewEnabled",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.t("design:type",Object)],sl.prototype,"epRestyle",void 0);_.k([_.S("isWatch"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sl.prototype,"hideShortsShelfHeader",null);
_.k([_.S("isSearch","isWatch"),_.t("design:type",String),_.t("design:paramtypes",[])],sl.prototype,"thumbnailWidth",null);_.k([_.S("isSearch","isWatch"),_.t("design:type",String),_.t("design:paramtypes",[])],sl.prototype,"sizing",null);_.k([_.S("isWatch","isGridViewEnabled","data"),_.X({reflectToAttribute:!0}),_.t("design:type",Number),_.t("design:paramtypes",[])],sl.prototype,"lockupContainerType",null);
_.k([_.EM("lockupContainerType","data"),_.t("design:type",Function),_.t("design:paramtypes",[Number]),_.t("design:returntype")],sl.prototype,"updateLockupContainerTypes",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],sl.prototype,"pageSubtype",void 0);_.k([_.X({computed:"computeContainerWidth()"}),_.t("design:type",Number)],sl.prototype,"containerWidth",void 0);_.k([_.X(),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sl.prototype,"isPlaylist",null);
_.k([_.X(),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sl.prototype,"isClipList",null);_.k([_.X(),_.t("design:type",Object)],sl.prototype,"isCarouselInFeed",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sl.prototype,"isPlaylistVideoContainer",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sl.prototype,"isSearchFrictionPage",null);
_.k([_.X({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.t("design:type",Boolean)],sl.prototype,"useHeightHack",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.t("design:type",Object)],sl.prototype,"topSpacingZero",void 0);_.k([_.X({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.t("design:type",Boolean)],sl.prototype,"showButton",void 0);
_.k([_.X(),_.t("design:type",Boolean)],sl.prototype,"firstCommentsLoaded",void 0);_.k([_.X(),_.t("design:type",Object)],sl.prototype,"continuationIsInitialLoad",void 0);_.k([_.X(),_.t("design:type",Boolean)],sl.prototype,"isSearchDova",void 0);_.k([_.X({reflectToAttribute:!0,readOnly:!0}),_.t("design:type",Boolean)],sl.prototype,"itemDismissed",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.t("design:type",String)],sl.prototype,"sectionIdentifier",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.t("design:type",String)],sl.prototype,"fitContainer",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.t("design:type",Boolean)],sl.prototype,"hasDestinationShelfRenderer",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.t("design:type",Boolean)],sl.prototype,"staticCommentsHeader",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],sl.prototype,"enableSqueezebackPanels",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],sl.prototype,"enableAnchoredPanel",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.t("design:type",Boolean)],sl.prototype,"hasSectionGroupViewModel",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.t("design:type",Boolean)],sl.prototype,"suppressDisclaimerSeparator",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.t("design:type",String)],sl.prototype,"headerStyle",void 0);_.k([_.S("isSearch"),_.t("design:type",Object),_.t("design:paramtypes",[])],sl.prototype,"lockupExperiments",null);
_.k([_.S("isSearch"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sl.prototype,"typographyBump",null);_.k([_.$7("#header"),_.t("design:type",HTMLElement)],sl.prototype,"header",void 0);_.k([_.EM("commentsHidePanelButton"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sl.prototype,"commentsHidePanelButtonChanged",null);
_.k([_.RN("yt-retrieve-location"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],sl.prototype,"onRetrieveLocation",null);_.k([_.RN("yt-load-reload-continuation"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Function]),_.t("design:returntype")],sl.prototype,"onLoadReloadContinuation",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sl.prototype,"onServiceRequestCompleted",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sl.prototype,"dataChanged",null);_.k([_.i6("data.contents.length"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sl.prototype,"observeDataContentsLength",null);
_.k([_.RN("yt-dismissible-item-dismissed"),_.RN("yt-dismissible-item-undismissed"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],sl.prototype,"onYtDismissibleItemDismissedChange",null);_.k([_.EM("continuationShowButton"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sl.prototype,"continuationShowButtonChanged",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sl.prototype,"dataChangedForBinding",null);sl=_.k([_.b({is:"ytd-item-section-renderer",disableElementRegistration:!0})],sl);
_.A(sl,"ytd-item-section-renderer",function(){if(ShN!==void 0)return ShN;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ShN=E},{mode:1});var v5t;var jE4=_.jj(_.yu("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var r3G={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var yqX={},A36=(yqX[0]={title:_.KO(_.yu("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.KO(_.yu("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:FD("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},yqX[1]={title:_.KO(_.yu("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:FD("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},yqX);_.QH("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var uB=function(){var E=_.r.apply(this,arguments)||this;E.allVideosCount=0;E.allPlaylistCount=0;E.shouldRenderDownloadsBanner=!1;E.hasOptedIntoSmartDownloads=!1;E.areAllSmartDownloadsDeleted=!1;E.smartDownloadsCompleted=!1;return E};
_.L(uB,_.r);uB.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
uB.prototype.attached=function(){this.downloadsToRenderChanged()};
uB.prototype.detached=function(){this.set("renderableData",{})};
uB.prototype.downloadsToRenderChanged=function(){var E=_.t2().getState().entities,B=_.s3(E),I=_.d("kevlar_playlist_dl_page_killswitch")?wW6(E):_.um(E),T=_.YSf(E),e=_.PP(B);E=_.L9(E);this.set("renderableData",krG(I,B,T,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,e,E))};
uB.prototype.downloadsToRenderChanged=uB.prototype.downloadsToRenderChanged;_.k([_.g(_.Lz),_.t("design:type",Object)],uB.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],uB.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],uB.prototype,"renderableData",void 0);_.k([_.X({selector:_.OUF}),_.t("design:type",Object)],uB.prototype,"allVideosCount",void 0);_.k([_.X({selector:InB}),_.t("design:type",Object)],uB.prototype,"allPlaylistCount",void 0);_.k([_.X({selector:_.JB4}),_.t("design:type",Object)],uB.prototype,"shouldRenderDownloadsBanner",void 0);_.k([_.X({selector:_.WJQ}),_.t("design:type",Object)],uB.prototype,"hasOptedIntoSmartDownloads",void 0);
_.k([_.X({selector:_.XW6}),_.t("design:type",Object)],uB.prototype,"areAllSmartDownloadsDeleted",void 0);_.k([_.X({selector:rBJ}),_.t("design:type",Object)],uB.prototype,"smartDownloadsCompleted",void 0);_.k([_.i6("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],uB.prototype,"downloadsToRenderChanged",null);
uB=_.k([_.b({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],uB);
_.A(uB,"ytd-offline-item-section-renderer",function(){if(v5t!==void 0)return v5t;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return v5t=E},
{mode:1});var Cnt;var wtU;var LR=function(){return _.r.apply(this,arguments)||this};
_.L(LR,_.r);
LR.prototype.onDataChanged=function(){if(this.JSC$14415_lastData){var E=this.getFilterClass(this.JSC$14415_lastData.status);E&&this.hostElement.classList.remove(E)}var B;(E=this.getFilterClass((B=this.data)==null?void 0:B.status))&&this.hostElement.classList.add(E);E==="selected"?_.n(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.n(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");E==="disabled"?_.n(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.n(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14415_lastData=this.data};
LR.prototype.getFilterClass=function(E){switch(E){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
LR.prototype.onDataChanged=LR.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],LR.prototype,"data",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LR.prototype,"onDataChanged",null);LR=_.k([_.b({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],LR);
_.A(LR,"ytd-search-filter-renderer",function(){if(wtU!==void 0)return wtU;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return wtU=E},{mode:_.qi("kevlar_poly_si_batch_j075")?1:2});var xj=function(){return _.r.apply(this,arguments)||this};
_.L(xj,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],xj.prototype,"data",void 0);xj=_.k([_.b({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],xj);
_.A(xj,"ytd-search-filter-group-renderer",function(){if(Cnt!==void 0)return Cnt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Cnt=E},{mode:_.qi("kevlar_poly_si_batch_j075")?1:2});var ZNN;var Gu=function(){return _.r.apply(this,arguments)||this};
_.L(Gu,_.r);Gu.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.po());this.isCollapsed=!this.isCollapsed};
Gu.prototype.navigateToAboutTheseResultsPage=function(){var E=c1("https://www.youtube.com/howyoutubeworks/product-features/search/");E?_.sf(window,E,"_blank"):_.SI(Error("Rh"))};
Gu.prototype.dataChanged=function(){this.isCollapsed=!0};
Gu.prototype.computeShowBottomBorder=function(){var E,B,I;return!!((E=this.data)==null?0:(B=E.button)==null?0:B.toggleButtonRenderer)||!((I=this.data)==null||!I.aboutTheseResultsButton)};
Gu.prototype.dataChanged=Gu.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Gu.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.t("design:type",Boolean)],Gu.prototype,"showBottomBorder",void 0);_.k([_.X(),_.t("design:type",Boolean)],Gu.prototype,"renderCollapsibleMenu",void 0);
_.k([_.X(),_.t("design:type",Boolean)],Gu.prototype,"isCollapsed",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Gu.prototype,"dataChanged",null);Gu=_.k([_.b({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Gu);
_.A(Gu,"ytd-search-sub-menu-renderer",function(){if(ZNN!==void 0)return ZNN;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ZNN=E},{mode:1});var PnX;var zru=new _.Dr("SECTION_LIST_RENDERER_TOKEN");var mPl;var Ol=function(){return _.r.apply(this,arguments)||this};
_.L(Ol,_.r);Ol.prototype.computeStyle=function(E){return E?E.toLowerCase().replace(/_/g,"-"):""};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ol.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ol.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.t("design:type",String)],Ol.prototype,"headerStyle",void 0);Ol=_.k([_.b({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Ol);
_.A(Ol,"ytd-text-header-renderer",function(){if(mPl!==void 0)return mPl;var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return mPl=E},{mode:1});var QlZ;var nR=function(){return _.r.apply(this,arguments)||this};
_.L(nR,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],nR.prototype,"data",void 0);nR=_.k([_.b({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],nR);
_.A(nR,"ytd-minor-moment-header-renderer",function(){if(QlZ!==void 0)return QlZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return QlZ=E},{mode:1});var dPD;var MR=function(){return _.r.apply(this,arguments)||this};
_.L(MR,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],MR.prototype,"data",void 0);MR=_.k([_.b({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],MR);
_.A(MR,"ytd-minor-moment-setting-alert-renderer",function(){if(dPD!==void 0)return dPD;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return dPD=E},{mode:1});var hrl;var sll;var Hz=function(){var E=_.r.apply(this,arguments)||this;E.booleanSettingById=!1;E.smartDownloadsEnabledVE=_.wA(128287);E.smartDownloadsDisabledVE=_.wA(128286);E.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return E};
_.L(Hz,_.r);_.l=Hz.prototype;_.l.attachSmartDownloadsSettingVes=function(){var E;this.activeVeForLogging||((E=this.data)==null?void 0:E.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Ts(_.lu(),this.smartDownloadsEnabledVE),_.Ts(_.lu(),this.smartDownloadsDisabledVE))};
_.l.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.$O(this.hostElement,"yt-settings-switch-ready")};
_.l.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.l.onSwitchChange=function(E){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(E=_.XN(E).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.d("kevlar_settings_switch_resolve_command_killswitch")?_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(E)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.l.handleUpdateSettingsSwitch=function(E){(E=_.h(E,vT6))&&this.data&&this.data.id===E.id&&this.set("data.enabled",!!E.enabled)};
_.l.onToggleSettingsSwitch=function(E,B){this.data&&this.data.id===E&&this.set("data.enabled",B!=null?B:!this.data.enabled)};
_.l.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.fU.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.l.maybeLogSmartDownloadsSettingVisibility=function(){var E=_.nC(),B;E&&((B=this.data)==null?void 0:B.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.b1(E,[this.smartDownloadsEnabledVE]),_.o2(E,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.b1(E,[this.smartDownloadsDisabledVE]),_.o2(E,[this.smartDownloadsEnabledVE])))};
_.l.maybeLogSmartDownloadsSettingClick=function(){var E;((E=this.data)==null?void 0:E.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.lf(_.lu(),this.activeVeForLogging)};
_.l.updateDataEnabledFromBinding=function(E){this.set("data.enabled",E.detail.value)};
_.Up.Object.defineProperties(Hz.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var E=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!E&&(E=this.ytRendererBehavior.getSimpleString(this.data.title));return E}}});
Hz.prototype.dataChanged=Hz.prototype.dataChanged;_.k([_.g(_.Lz),_.t("design:type",Object)],Hz.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Hz.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Hz.prototype,"ytComponentBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],Hz.prototype,"data",void 0);_.k([_.X({selector:function(E,B){if(Object.keys(E==null?void 0:E.entities).length)switch(B){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return ZUJ(E.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.t("design:type",Object)],Hz.prototype,"booleanSettingById",void 0);_.k([_.X(),_.t("design:type",_.Gx)],Hz.prototype,"activeVeForLogging",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Hz.prototype,"toggleAriaLabel",null);_.k([_.i6("data"),_.i6("booleanSettingById"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Hz.prototype,"dataChanged",null);
Hz=_.k([_.b({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Hz);
_.A(Hz,"ytd-settings-switch-renderer",function(){if(sll!==void 0)return sll;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return sll=E},{mode:1});var NR=function(){return _.r.apply(this,arguments)||this};
_.L(NR,_.r);NR.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}}}}};
_.Up.Object.defineProperties(NR.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var E=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(E+=" remove-left-margin");this.data.extraBottomSpace&&(E+=" extra-bottom-space");return E}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],NR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],NR.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],NR.prototype,"contentsClassName",null);NR=_.k([_.b({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],NR);
_.A(NR,"ytd-minor-moment-setting-section-renderer",function(){if(hrl!==void 0)return hrl;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return hrl=E},{mode:1});var uEZ;var g$=function(){return _.r.apply(this,arguments)||this};
_.L(g$,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],g$.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],g$.prototype,"data",void 0);g$=_.k([_.b({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],g$);
_.A(g$,"ytd-empty-product-details-renderer",function(){if(uEZ!==void 0)return uEZ;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return uEZ=E},{mode:1});var LI$;var xPl;var S3=function(){var E=_.r.apply(this,arguments)||this;E.expanded=!0;return E};
_.L(S3,_.r);S3.prototype.getBadgeRowClass=function(E,B,I){for(var T=_.p(this.hostElement.querySelectorAll("yt-img-shadow")),e=T.next();!e.done;e=T.next())e.value.onShow();E=E.selected;return I?E!==-1?E===B?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(E!==void 0?E:0)===B?"badge-line":"badge-hidden"};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],S3.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],S3.prototype,"expanded",void 0);S3=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],S3);
_.A(S3,"ytd-sponsorships-loyalty-badges-renderer",function(){if(xPl!==void 0)return xPl;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return xPl=E},{mode:1});var GyV;var Jn=function(){var E=_.r.apply(this,arguments)||this;E.expanded=!0;return E};
_.L(Jn,_.r);Jn.prototype.getContainerClasses=function(E,B){E=E?"expanded":"collapsed";B&&(E+=" item");return E};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Jn.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Jn.prototype,"expanded",void 0);Jn=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Jn);
_.A(Jn,"ytd-sponsorships-perk-renderer",function(){if(GyV!==void 0)return GyV;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return GyV=E},{mode:1});var ONN;var Wz=function(){var E=_.r.apply(this,arguments)||this;E.expanded=!0;return E};
_.L(Wz,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Wz.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Wz.prototype,"expanded",void 0);Wz=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Wz);
_.A(Wz,"ytd-sponsorships-perks-renderer",function(){if(ONN!==void 0)return ONN;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ONN=E},{mode:1});var Xk=function(){var E=_.r.apply(this,arguments)||this;E.isCollapsed=!1;return E};
_.L(Xk,_.r);Xk.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Xk.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Xk.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var E;this.expandCollapseButton=_.h((E=this.data)==null?void 0:E.expandButton,_.NT)}else{var B;this.expandCollapseButton=_.h((B=this.data)==null?void 0:B.collapseButton,_.NT)}};
Xk.prototype.updateExpandCollapseButton=Xk.prototype.updateExpandCollapseButton;Xk.prototype.onDataChanged=Xk.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Xk.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Xk.prototype,"isCollapsed",void 0);_.k([_.X(),_.t("design:type",Object)],Xk.prototype,"expandCollapseButton",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Xk.prototype,"onDataChanged",null);_.k([_.i6("data","isCollapsed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Xk.prototype,"updateExpandCollapseButton",null);Xk=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Xk);
_.A(Xk,"ytd-sponsorships-expandable-perks-renderer",function(){if(LI$!==void 0)return LI$;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return LI$=E},{mode:1});var n5h;var r$=function(){return _.r.apply(this,arguments)||this};
_.L(r$,_.r);r$.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],r$.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],r$.prototype,"data",void 0);r$=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],r$);
_.A(r$,"ytd-sponsorships-actionable-message-renderer",function(){if(n5h!==void 0)return n5h;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return n5h=E},{mode:1});var Mzz;var bB=function(){return _.r.apply(this,arguments)||this};
_.L(bB,_.r);_.l=bB.prototype;_.l.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.l.getExpansionIcon=function(E){return E?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.l.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.l.computeMessageContainerStyle=function(E){var B=E.expandableItems?" style-clickable":"";return E.messageContainerStyle?E.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+B:"style-unspecified"+B};
_.l.isSinglePerk=function(E){return!!E.messageContainerStyle&&(E.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||E.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.l.onExpandedChanged=function(){var E=this;if(this.expanded)for(var B=_.p(this.hostElement.querySelectorAll("yt-img-shadow")),I=B.next();!I.done;I=B.next())I.value.onShow();_.AJ(this,function(){_.$O(E.hostElement,"yt-refit")})};
_.l.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
bB.prototype.onDataChanged=bB.prototype.onDataChanged;bB.prototype.onExpandedChanged=bB.prototype.onExpandedChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],bB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],bB.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],bB.prototype,"expanded",void 0);
_.k([_.EM("expanded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],bB.prototype,"onExpandedChanged",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],bB.prototype,"onDataChanged",null);bB=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],bB);
_.A(bB,"ytd-sponsorships-expandable-message-renderer",function(){if(Mzz!==void 0)return Mzz;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Mzz=E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var HN6;var ot=function(){return _.r.apply(this,arguments)||this};
_.L(ot,_.r);ot.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"}}}}};
ot.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.h(this.data.endButton,_.NT).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
ot.prototype.onDataChanged=ot.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ot.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ot.prototype,"data",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ot.prototype,"onDataChanged",null);
ot=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],ot);
_.A(ot,"ytd-sponsorships-heading-renderer",function(){if(HN6!==void 0)return HN6;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return HN6=E},{mode:1});var NOl;var An=function(){return _.r.apply(this,arguments)||this};
_.L(An,_.r);_.k([_.X(),_.t("design:type",Object)],An.prototype,"data",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);An=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],An);
_.A(An,"ytd-sponsorships-links-renderer",function(){if(NOl!==void 0)return NOl;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return NOl=E},{mode:1});var g5u;var j3=function(){return _.r.apply(this,arguments)||this};
_.L(j3,_.r);_.l=j3.prototype;_.l.onDataChanged=function(){if(this.data&&this.data.expandableItems){var E;(E=_.n(this.hostElement).querySelector("tp-yt-paper-button"))==null||E.setAttribute("role","button")}else{var B;(B=_.n(this.hostElement).querySelector("tp-yt-paper-button"))==null||B.removeAttribute("role")}};
_.l.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.l.getExpansionIcon=function(E){return E?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.l.getTileClasses=function(E){return E?"tile expandable-tile":"tile"};
_.l.getButtonDisabled=function(E){return E?void 0:""};
j3.prototype.onDataChanged=j3.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],j3.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],j3.prototype,"expanded",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],j3.prototype,"onDataChanged",null);
j3=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],j3);
_.A(j3,"ytd-sponsorships-list-tile-renderer",function(){if(g5u!==void 0)return g5u;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return g5u=E},{mode:1});var StZ;var Jq6;var Ul=function(){return _.r.apply(this,arguments)||this};
_.L(Ul,_.r);Ul.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Ul.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ul.prototype,"data",void 0);Ul=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Ul);
_.A(Ul,"ytd-sponsorships-promotion-renderer",function(){if(Jq6!==void 0)return Jq6;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Jq6=E},{mode:1});var WIZ;var kj=function(){return _.r.apply(this,arguments)||this};
_.L(kj,_.r);kj.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],kj.prototype,"data",void 0);kj=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],kj);
_.A(kj,"ytd-sponsorships-purchase-option-renderer",function(){if(WIZ!==void 0)return WIZ;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return WIZ=E},{mode:1});var XtN;var rq6;var tn=function(){return _.r.apply(this,arguments)||this};
_.L(tn,_.r);_.k([_.X(),_.t("design:type",Object)],tn.prototype,"data",void 0);tn=_.k([_.b({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],tn);
_.A(tn,"ytd-ypc-offer-promo-renderer",function(){if(rq6!==void 0)return rq6;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return rq6=E},{mode:1});var fR=function(){return _.r.apply(this,arguments)||this};
_.L(fR,_.r);_.l=fR.prototype;
_.l.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"}}}}};
_.l.expansionCTA=function(E,B){return E&&(B?E.collapseCallToAction:E.expansionCallToAction)};
_.l.getExpansionIcon=function(E){return E?"arrow_drop_up":"arrow_drop_down"};
_.l.expansionCallToActionTap=function(){var E=this;this.expanded=!this.expanded;_.AJ(this,function(){_.$O(E.hostElement,"yt-refit")})};
_.l.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var E,B=(E=this.data)==null?void 0:E.onVisible;B&&this.ytComponentBehavior.resolveCommand(B)};
_.l.computeDisplayTitle=function(E){return!(!E||this.titledisplaystatus!=="show")};
_.l.computeDisplaySeparator=function(){return!1};
_.l.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
fR.prototype.onDataChanged=fR.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],fR.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],fR.prototype,"data",void 0);
_.k([_.X({value:!1}),_.t("design:type",Boolean)],fR.prototype,"expanded",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],fR.prototype,"purchaseButtonClicked",void 0);_.k([_.X({reflectToAttribute:!0,value:"show"}),_.t("design:type",String)],fR.prototype,"titledisplaystatus",void 0);_.k([_.X({computed:"computeDisplayTitle(data.title)"}),_.t("design:type",Boolean)],fR.prototype,"displayTitle",void 0);
_.k([_.X({computed:"computeDisplaySeparator(data)"}),_.t("design:type",Boolean)],fR.prototype,"displaySeparator",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fR.prototype,"onDataChanged",null);fR=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],fR);
_.A(fR,"ytd-sponsorships-tier-renderer",function(){if(XtN!==void 0)return XtN;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return XtN=E},{mode:2});var Vv=function(){return _.r.apply(this,arguments)||this};
_.L(Vv,_.r);
Vv.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"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Vv.prototype,"data",void 0);Vv=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Vv);
_.A(Vv,"ytd-sponsorships-management-renderer",function(){if(StZ!==void 0)return StZ;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return StZ=E},{mode:1});var bNN;var qR=function(){return _.r.apply(this,arguments)||this};
_.L(qR,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],qR.prototype,"data",void 0);qR=_.k([_.b({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],qR);
_.A(qR,"ytd-open-in-native-app-view-model",function(){if(bNN!==void 0)return bNN;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return bNN=E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var o5Z;var AqX;var jlV=_.km(["top-"]),UP6=_.km(["bottom-"]),kyN=_.km(["left-"]),tzV=_.km(["right-"]),fIV={},VzR=function(E,B,I){E.removeAttribute("top-"+I);E.removeAttribute("bottom-"+I);E.removeAttribute("left-"+I);E.removeAttribute("right-"+I);B&&(B.top&&_.H1([_.od(jlV)],E,"top-"+I,B.top),B.bottom&&_.H1([_.od(UP6)],E,"bottom-"+I,B.bottom),B.left&&_.H1([_.od(kyN)],E,"left-"+I,B.left),B.right&&_.H1([_.od(tzV)],E,"right-"+I,B.right))};
fIV.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(E){var B,I=_.n((B=this.hostElement)!=null?B:this),T;B=this.cardItemBoxBehaviorMarginTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(T=this.hostElement)!=null?T:this;VzR(B,E,"margin")},
cardItemContainerPaddingChanged_:function(E){var B,I=_.n((B=this.hostElement)!=null?B:this),T;B=this.cardItemBoxBehaviorPaddingTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(T=this.hostElement)!=null?T:this;VzR(B,E,"padding")}}];var Fk={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 qtU;var FIX;var D8=function(){return _.r.apply(this,arguments)||this};
_.L(D8,_.r);D8.prototype.textColorChanged_=function(){this.hostElement.style.color=Fk[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
D8.prototype.textColorChanged_=D8.prototype.textColorChanged_;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.k([_.g(fIV.YtCardItemBoxBehavior),_.t("design:type",Object)],D8.prototype,"ytCardItemBoxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],D8.prototype,"data",void 0);_.k([_.EM("data.textColor"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],D8.prototype,"textColorChanged_",null);
D8=_.k([_.QE({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],D8);
_.A(D8,"yt-card-item-text-renderer",function(){if(FIX===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;qtU===void 0&&(qtU=document.createElement("template"));var T=qtU;I.call(B,T.content.cloneNode(!0),E.content.firstChild);FIX=E}E=FIX;return E},{mode:2});var DPX;var KIX;var KR=function(){return _.r.apply(this,arguments)||this};
_.L(KR,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],KR.prototype,"data",void 0);KR=_.k([_.QE({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],KR);
_.A(KR,"yt-card-item-badge-renderer",function(){if(KIX===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;DPX===void 0&&(DPX=document.createElement("template"));var T=DPX;I.call(B,T.content.cloneNode(!0),E.content.firstChild);KIX=E}E=KIX;return E},{mode:2});var Rrz;var ESh;var Rt=function(){return _.r.apply(this,arguments)||this};
_.L(Rt,_.r);Rt.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Rt.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Rt.prototype,"data",void 0);Rt=_.k([_.QE({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Rt);
_.A(Rt,"yt-card-item-text-collection-renderer",function(){if(ESh===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;Rrz===void 0&&(Rrz=document.createElement("template"));var T=Rrz;I.call(B,T.content.cloneNode(!0),E.content.firstChild);ESh=E}E=ESh;return E},{mode:2});var BjN;var $2z;var EW=function(){return _.r.apply(this,arguments)||this};
_.L(EW,_.r);EW.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]]"}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],EW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],EW.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Number)],EW.prototype,"iconSize",void 0);EW=_.k([_.QE({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],EW);
_.A(EW,"yt-card-item-text-with-button-renderer",function(){if($2z===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;BjN===void 0&&(BjN=document.createElement("template"));var T=BjN;I.call(B,T.content.cloneNode(!0),E.content.firstChild);$2z=E}E=$2z;return E},{mode:2});var Br=function(){return _.r.apply(this,arguments)||this};
_.L(Br,_.r);Br.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"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Br.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Br.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Br.prototype,"data",void 0);Br=_.k([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Br);
_.A(Br,"ytd-commerce-cart-summary-line-item-renderer",function(){if(AqX!==void 0)return AqX;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return AqX=E},{mode:1});_.QH("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var $_=function(){var E=_.r.apply(this,arguments)||this;E.hidden=!1;return E};
_.L($_,_.r);_.l=$_.prototype;_.l.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"}}}}};
_.l.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.l.updateSummary=function(){var E=this.commerceCartCheckoutButtonEntity,B;if(((B=this.data)==null?0:B.cartButton)&&E.checkoutSummaryText){var I,T=JC((I=this.data)==null?void 0:I.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+T+".cardItemTextRenderer.text",WD(E.checkoutSummaryText));if(E.checkoutDetailText){var e;I=JC((e=this.data)==null?void 0:e.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+I+".cardItemTextRenderer.text",WD(E.checkoutDetailText))}if(E.checkoutAdditionalMetadataText){var c;
e=JC((c=this.data)==null?void 0:c.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+e+".cardItemTextRenderer.text",WD(E.checkoutAdditionalMetadataText))}}else E.estimatedTotalPrice&&(c=JC((T=this.data)==null?void 0:T.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+c+".cardItemTextRenderer.text",WD(E.estimatedTotalPrice)))};
_.l.updateIsHidden=function(){var E,B=(E=this.commerceCartCheckoutButtonEntity)==null?void 0:E.isHidden;B!==void 0&&(this.hidden=B)};
_.l.updateCheckoutButton=function(){var E,B=(E=this.commerceCartCheckoutButtonEntity)==null?void 0:E.isDisabled;B!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",B);var I;E=(I=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:I.innertubeCommand;E!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",E);var T;I=(T=this.commerceCartCheckoutButtonEntity)==null?void 0:T.checkoutButtonText;I!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:I})};
$_.prototype.entityChanged=$_.prototype.entityChanged;_.k([_.g(_.Lz),_.t("design:type",Object)],$_.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],$_.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],$_.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],$_.prototype,"fullWidth",void 0);_.k([_.X(),_.t("design:type",Object)],$_.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],$_.prototype,"compact",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],$_.prototype,"hidden",void 0);
_.k([_.X({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:bHD}),_.t("design:type",Object)],$_.prototype,"commerceCartCheckoutButtonEntity",void 0);_.k([_.EM("commerceCartCheckoutButtonEntity","data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$_.prototype,"entityChanged",null);$_=_.k([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],$_);
_.A($_,"ytd-commerce-cart-checkout-button-renderer",function(){if(o5Z!==void 0)return o5Z;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return o5Z=E},{mode:2});var I26;_.Tj$={};
_.Tj$.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",_.Kq(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Kq(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(E){!this.tappableItemBehaviorTapEnabled||E.keyCode!==13&&E.keyCode!==32||E.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var E=this.data.onTap;E.ypcGetCartEndpoint?(_.l1(this.hostElement,[E]),this.tappableItemBehaviorTapEnabled=!1):E.ypcOffersEndpoint?_.l1(this.hostElement,[E]):_.cN(this.hostElement,[E],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(E){this.tappableItemBehaviorTapEnabled=!!E},
tappableItemBehaviorOnTapEnabledChanged_:function(){var E=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(E.setAttribute("tabIndex",0),E.setAttribute("role","button")):(E.removeAttribute("tabIndex"),E.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(E){E.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var esh;var l2h;var Iu=function(){return _.r.apply(this,arguments)||this};
_.L(Iu,_.r);Iu.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.dA("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.dA("sharingToggleButtonAndDefaultButton")}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Iu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Iu.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Iu.prototype,"data",void 0);Iu=_.k([_.QE({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Iu);
_.A(Iu,"yt-card-item-actions-renderer",function(){if(l2h===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;esh===void 0&&(esh=document.createElement("template"));var T=esh;I.call(B,T.content.cloneNode(!0),E.content.firstChild);l2h=E}E=l2h;return E},{mode:2});var cf$;var iY6;var pSR;var YYr;var a2l;var vSV;var Th=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return E};
_.L(Th,_.r);Th.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Th.prototype.handleDarkModeToggledAction_=function(E){this.isDarkTheme_=E};
Th.prototype.computeThemeImage_=function(E,B){if(!E||!E.imageLight)return!1;this.isCircular_=E.isCircular;E.imageWidth&&(this.hostElement.style.width=E.imageWidth+"px");E.imageHeight&&(this.hostElement.style.height=E.imageHeight+"px");E.borderWidth&&(this.image.style.borderWidth=E.borderWidth+"px",this.image.style.borderStyle="solid");E.borderColor&&(this.image.style.borderColor=_.hR(E.borderColor));return B&&E.imageDark?E.imageDark:E.imageLight};
Th.prototype.computeThemeIcon_=function(E){var B,I;if(!(E==null?0:(B=E.themedIcon)==null?0:(I=B.icon)==null?0:I.iconType))return!1;this.icon.style.color=Fk[E.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(E.imageWidth||18)+"px";this.icon.style.height=(E.imageHeight||18)+"px";return _.R3(E.themedIcon.icon.iconType)};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(fIV.YtCardItemBoxBehavior),_.t("design:type",Object)],Th.prototype,"ytCardItemBoxBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Th.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Th.prototype,"data",void 0);
_.k([_.X({value:!1}),_.t("design:type",Boolean)],Th.prototype,"fit",void 0);_.k([_.X(),_.t("design:type",Boolean)],Th.prototype,"isDarkTheme_",void 0);_.k([_.X({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.t("design:type",Object)],Th.prototype,"themeImage_",void 0);_.k([_.X({computed:"computeThemeIcon_(data)"}),_.t("design:type",Object)],Th.prototype,"themeIcon_",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Object)],Th.prototype,"isCircular_",void 0);
_.k([_.$7("#image"),_.t("design:type",Object)],Th.prototype,"image",void 0);_.k([_.$7("#icon"),_.t("design:type",Object)],Th.prototype,"icon",void 0);Th=_.k([_.QE({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Th);
_.A(Th,"yt-themed-image-renderer",function(){if(vSV===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;a2l===void 0&&(a2l=document.createElement("template"));var T=a2l;I.call(B,T.content.cloneNode(!0),E.content.firstChild);vSV=E}E=vSV;return E},{mode:2});var eF=function(){return _.r.apply(this,arguments)||this};
_.L(eF,_.r);eF.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"}}}}};
eF.prototype.computeImagePlacement_=function(E){return E||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],eF.prototype,"data",void 0);_.k([_.X({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.t("design:type",String)],eF.prototype,"imagePlacement",void 0);
eF=_.k([_.QE({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],eF);
_.A(eF,"yt-card-item-text-with-image-renderer",function(){if(YYr===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;pSR===void 0&&(pSR=document.createElement("template"));var T=pSR;I.call(B,T.content.cloneNode(!0),E.content.firstChild);YYr=E}E=YYr;return E},{mode:2});var lz=function(){return _.r.apply(this,arguments)||this};
_.L(lz,_.r);lz.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"}}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],lz.prototype,"data",void 0);lz=_.k([_.QE({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],lz);
_.A(lz,"yt-card-item-error-renderer",function(){if(iY6===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;cf$===void 0&&(cf$=document.createElement("template"));var T=cf$;I.call(B,T.content.cloneNode(!0),E.content.firstChild);iY6=E}E=iY6;return E},{mode:2});var yfV;var Cs$;_.QH("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var cr=function(){return _.r.apply(this,arguments)||this};
_.L(cr,_.r);_.l=cr.prototype;
_.l.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"}}}}};
_.l.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.l.backgroundColorChanged_=function(){var E,B=(E=this.data)==null?void 0:E.backgroundColor;E=Fk[B||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.n(this.hostElement).querySelector("#main-content").style.backgroundColor=E};
_.l.headerPromoBackgroundColorChanged_=function(){var E,B=(E=this.data)==null?void 0:E.headerPromoBackgroundColor;E=Fk[B||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.n(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=E};
_.l.errorRendererVisibilityChanged_=function(){var E=this.isExpanded_,B;this.isErrorRendererVisible_=!((B=this.data)==null||!B.errorRenderer)&&!E};
_.l.onYtToggleButton_=function(E,B){this.isExpanded_=B.toggled};
cr.prototype.onYtToggleButton_=cr.prototype.onYtToggleButton_;cr.prototype.errorRendererVisibilityChanged_=cr.prototype.errorRendererVisibilityChanged_;cr.prototype.headerPromoBackgroundColorChanged_=cr.prototype.headerPromoBackgroundColorChanged_;cr.prototype.backgroundColorChanged_=cr.prototype.backgroundColorChanged_;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],cr.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(fIV.YtCardItemBoxBehavior),_.t("design:type",Object)],cr.prototype,"ytCardItemBoxBehavior",void 0);_.k([_.g(_.Tj$.YtTappableItemBehavior),_.t("design:type",Object)],cr.prototype,"ytTappableItemBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],cr.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],cr.prototype,"isExpanded_",void 0);
_.k([_.X({value:!1}),_.t("design:type",Boolean)],cr.prototype,"isErrorRendererVisible_",void 0);_.k([_.EM("data.backgroundColor"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cr.prototype,"backgroundColorChanged_",null);_.k([_.EM("data.headerPromoBackgroundColor"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cr.prototype,"headerPromoBackgroundColorChanged_",null);
_.k([_.EM("data.errorRenderer","isExpanded_"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cr.prototype,"errorRendererVisibilityChanged_",null);_.k([_.RN("yt-toggle-button"),_.t("design:type",Function),_.t("design:paramtypes",[Event,Object]),_.t("design:returntype")],cr.prototype,"onYtToggleButton_",null);cr=_.k([_.QE({is:"yt-card-item-renderer",disableElementRegistration:!0})],cr);
_.A(cr,"yt-card-item-renderer",function(){if(Cs$===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;yfV===void 0&&(yfV=document.createElement("template"));var T=yfV;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Cs$=E}E=Cs$;return E},{mode:2});_.QH("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var iz=function(){var E=_.r.apply(this,arguments)||this;E.hidden=!1;return E};
_.L(iz,_.r);_.l=iz.prototype;_.l.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.l.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.l.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var E,B=(E=this.commerceCartHeaderEntity)==null?void 0:E.isHidden;B!==void 0&&(this.hidden=B)}};
_.l.updateTitle=function(){var E=this.commerceCartHeaderEntity.isDisabled,B,I,T=(I=_.h((B=this.data)==null?void 0:B.item,Yyt))==null?void 0:I.headingRenderer;T&&(B=JC(T,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+B+".0.cardItemTextRenderer.textColor",E?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.l.updateSummaryText=function(){var E=this.commerceCartHeaderEntity;if(this.compact){var B,I,T=(I=_.h((B=this.data)==null?void 0:B.item,Yyt))==null?void 0:I.headingRenderer;T&&(B=JC(T,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+B+".1.cardItemTextRenderer.text",E.shortHeaderSummaryText?WD(E.shortHeaderSummaryText):E.headerSummaryText?WD(E.headerSummaryText):""))}else{var e;if(B=(e=_.h((T=this.data)==null?void 0:T.item,Yyt))==null?void 0:e.additionalInfoRenderer)B=JC(B,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+B+".text",E.headerSummaryText?WD(E.headerSummaryText):"")}};
_.l.updateCheckoutButton=function(){var E=this.commerceCartHeaderEntity,B,I,T=(I=_.h((B=this.data)==null?void 0:B.item,Yyt))==null?void 0:I.additionalInfoRenderer;B=JC(T,"buttonRenderer");var e;I=(e=this.commerceCartHeaderEntity)==null?void 0:e.isButtonDisabled;var c;e=(c=this.commerceCartHeaderEntity)==null?void 0:c.isButtonHidden;I!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+B+".buttonRenderer.isDisabled",I);e!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
e);var Y;E=(Y=E.checkoutButtonCommand)==null?void 0:Y.innertubeCommand;E!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+B+".buttonRenderer.command",E)};
iz.prototype.entityChanged=iz.prototype.entityChanged;_.k([_.g(_.Lz),_.t("design:type",Object)],iz.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],iz.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],iz.prototype,"compact",void 0);_.k([_.X({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(E,B){return _.cP(E.entities,"commerceCartHeaderEntity",B)}}),
_.t("design:type",Object)],iz.prototype,"commerceCartHeaderEntity",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],iz.prototype,"hidden",void 0);_.k([_.EM("commerceCartHeaderEntity","data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],iz.prototype,"entityChanged",null);iz=_.k([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],iz);
_.A(iz,"ytd-commerce-cart-header-renderer",function(){if(I26!==void 0)return I26;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return I26=E},{mode:1});var wSN;var ZY$=_.zV(function(E,B){var I;return(I=E.onChangeCallback)==null?void 0:I.call(E,B)},1E3),PsZ=_.rp(function(E){var B=E.data;
var I=E.iconMinus;E=E.iconPlus;var T=function(){return!!B().disabled},e=_.p(_.lQ(0,void 0,"r56zNb")),c=e.next().value,Y=e.next().value;
e={};e=_.RQ("yt-spec-quantity-incrementer-shape__icon",(e["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return T()||c()===(B().onRemoveCommand?0:1)},e));
var v={};v=_.RQ("yt-spec-quantity-incrementer-shape__icon",(v["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return c()>=B().maxValue||T()},v));
var y={};y=_.RQ("yt-spec-quantity-incrementer-shape__text",(y["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return c()>B().maxValue},y["yt-spec-quantity-incrementer-shape__text--text-disabled"]=T,y));
var Z=_.TI(function(){if(c()===1){var z,m;(m=(z=B()).onRemoveCommand)==null||m.call(z)}z=c()>B().maxValue?B().maxValue:c()-1;Y(z);ZY$(B(),z);return!1}),P=_.TI(function(){if(c()===B().maxValue)return!1;
var z=c()+1;Y(z);ZY$(B(),z);return!1});
_.hA(function(){Y(B().value)});
return _.w("quantity-incrementer-shape",null,_.w("div",{class:"yt-spec-quantity-incrementer-shape"},_.w("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return c()===(B().onRemoveCommand?0:1)||T()},
"aria-label":function(){return c()!==1?B().minusLabel:B().minimumReachedLabel},
"on:click":Z},_.w(_.v$,{model:{circular:!0}}),_.w("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.w("div",{class:e},I()))),_.w("div",{class:y},c),_.w("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return c()>=B().maxValue||T()},
"aria-label":function(){return c()!==B().maxValue?B().plusLabel:B().maximumReachedLabel},
"on:click":P},_.w(_.v$,{model:{circular:!0}}),_.w("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.w("div",{class:v},E())))))},"Ad");_.oQ(_.rp(function(E){function B(){I().onRemoveCommand&&_.xg(I().onRemoveCommand)}
var I=E.data;var T=_.iO(vtB,function(){return I().quantityIncrementerEntityKey});
return _.w("yt-quantity-incrementer-view-model",null,_.w(PsZ,{data:function(){var e=I(),c;var Y=T()?!((c=T())==null||!c.disabled):!1;var v;c=T()?(v=T())==null?void 0:v.quantity:I().quantity;return VGF(e,Y,B,c)},
iconMinus:function(){return _.w(_.i0,{icon:"BAR_HORIZONTAL",className:_.B$("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.w(_.i0,{icon:"ADD",className:_.B$("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Bd"),"yt-quantity-incrementer-view-model",{props:{data:_.Jh}});var pB=function(){var E=_.r.apply(this,arguments)||this;E.compact=!1;E.hasQuantityIncrementer=!1;return E};
_.L(pB,_.r);pB.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"}}}};
pB.prototype.computeHasQuantityIncrementer=function(){var E;return!!_.h((E=this.data)==null?void 0:E.picker,C9D)};
pB.prototype.onLabelClick=function(){var E;(E=this.dropdownEl)==null||E.open()};
_.k([_.$7("ytd-dropdown-renderer"),_.t("design:type",Object)],pB.prototype,"dropdownEl",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],pB.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],pB.prototype,"quantityColor",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],pB.prototype,"compact",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.t("design:type",Object)],pB.prototype,"hasQuantityIncrementer",void 0);pB=_.k([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],pB);
_.A(pB,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(wSN!==void 0)return wSN;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return wSN=E},{mode:1});var zsX;var m2t;var Y_=function(){return _.r.apply(this,arguments)||this};
_.L(Y_,_.r);Y_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Y_.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Y_.prototype.updateTitle=function(){var E=this.disabledCartItemEntity;E.disableActionName&&this.set("data.title",WD(E.disableActionName))};
Y_.prototype.updateButton=function(){var E,B=(E=this.disabledCartItemEntity.undoCommand)==null?void 0:E.innertubeCommand;B!==void 0&&(this.set("data.actionButton.buttonRenderer.command",B),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Y_.prototype.entityChanged=Y_.prototype.entityChanged;_.k([_.g(_.Lz),_.t("design:type",Object)],Y_.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Y_.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(E,B){return _.cP(E.entities,"disabledCartItemEntity",B)}}),
_.t("design:type",Object)],Y_.prototype,"disabledCartItemEntity",void 0);_.k([_.X(),_.t("design:type",Object)],Y_.prototype,"data",void 0);_.k([_.EM("disabledCartItemEntity","data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Y_.prototype,"entityChanged",null);Y_=_.k([_.b({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Y_);
_.A(Y_,"ytd-disabled-cart-item-renderer",function(){if(m2t!==void 0)return m2t;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return m2t=E},{mode:1});_.QH("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var au=function(){var E=_.r.apply(this,arguments)||this;E.compact=!1;E.hidden=!1;E.errorHidden=!1;E.noOnTap=!1;return E};
_.L(au,_.r);_.l=au.prototype;
_.l.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"}}}};
_.l.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.l.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var E=this.firstButtonElement;E.alignByText=!0;E.iconAlignByText=!0}};
_.l.computeNoOnTap=function(E){return!E};
_.l.updateQuantityColor=function(){if(this.pickerElement){var E,B=(E=this.commerceCartItemEntity)==null?void 0:E.quantityColor;this.pickerElement.quantityColor=B}};
_.l.updateTotalPriceColor=function(){var E,B=(E=this.commerceCartItemEntity)==null?void 0:E.totalPriceColor;if(B){var I;E=_.h((I=this.data)==null?void 0:I.quantityPicker,vCR);if(I=_.h(E==null?void 0:E.price,aGX))I.textColor=B}};
_.l.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var E,B=(E=this.commerceCartItemEntity)==null?void 0:E.isHidden;B!==void 0&&(this.hidden=B)}};
_.l.updateHideErrorMessage=function(){var E,B=(E=this.commerceCartItemEntity)==null?void 0:E.hideErrorMessage;B!==void 0&&(this.errorHidden=B)};
_.l.updateQuantity=function(){var E=this,B,I=(B=this.commerceCartItemEntity)==null?void 0:B.quantity,T;B=(T=this.commerceCartItemEntity)==null?void 0:T.totalPrice;if(I){this.updateTotalPriceColor();this.updateQuantityColor();var e;T=_.h((e=this.data)==null?void 0:e.quantityPicker,vCR);if(e=_.h(T==null?void 0:T.price,aGX))e.text=B?{simpleText:B.content}:void 0;if(B=_.h(T==null?void 0:T.picker,C9D))B.quantity=I;var c;if(e=(c=_.h(T==null?void 0:T.picker,GqZ))==null?void 0:c.entries){c=!1;B=void 0;e=
_.p(e);for(T=e.next();!T.done;T=e.next())T=T.value,T.dropdownItemRenderer&&(B||(B=T.dropdownItemRenderer),T.dropdownItemRenderer.isSelected=!1,I===T.dropdownItemRenderer.int32Value&&(c=!0,T.dropdownItemRenderer.isSelected=!0));!c&&B&&(B.isSelected=!0)}_.AJ(this,function(){var Y;E.set("data.quantityPicker",_.a_.unsafeClone((Y=E.data)==null?void 0:Y.quantityPicker))})}};
au.prototype.onYtRendererstamperFinished=au.prototype.onYtRendererstamperFinished;au.prototype.entityChanged=au.prototype.entityChanged;_.k([_.X(),_.t("design:type",Object)],au.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],au.prototype,"compact",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],au.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],au.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],au.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(E,B){return _.cP(E.entities,"commerceCartItemEntity",B)}}),
_.t("design:type",Object)],au.prototype,"commerceCartItemEntity",void 0);_.k([_.X(),_.t("design:type",Object)],au.prototype,"quantityPicker",void 0);_.k([_.X(),_.t("design:type",Object)],au.prototype,"compactQuantityPicker",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],au.prototype,"hidden",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],au.prototype,"errorHidden",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.t("design:type",Object)],au.prototype,"noOnTap",void 0);_.k([_.$7("ytd-commerce-cart-item-quantity-picker-renderer"),_.t("design:type",Object)],au.prototype,"pickerElement",void 0);_.k([_.$7("yt-button-renderer"),_.t("design:type",Element)],au.prototype,"firstButtonElement",void 0);
_.k([_.EM("commerceCartItemEntity","data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],au.prototype,"entityChanged",null);_.k([_.RN("yt-rendererstamper-finished"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],au.prototype,"onYtRendererstamperFinished",null);au=_.k([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],au);
_.A(au,"ytd-commerce-cart-item-renderer",function(){if(zsX!==void 0)return zsX;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return zsX=E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var QTu;var d2u;var vr=function(){return _.r.apply(this,arguments)||this};
_.L(vr,_.r);vr.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}}}}}};
vr.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
vr.prototype.updateCheckoutLineItems=function(){var E,B=(E=this.commerceCartCheckoutButtonEntity)==null?void 0:E.checkoutLineItems;B&&(E=B.map(function(I){a:{var T=I.price,e=I.description;switch(I.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":I={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:WD(e),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:WD(T),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:I={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:WD(e),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:WD(T),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 I}),this.set("data.summaryLineItems",E))};
vr.prototype.updateIsHidden=function(){var E,B=(E=this.commerceCartCheckoutButtonEntity)==null?void 0:E.isHidden;B!==void 0&&(this.hostElement.hidden=B)};
vr.prototype.entityChanged=vr.prototype.entityChanged;_.k([_.g(_.Lz),_.t("design:type",Object)],vr.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],vr.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],vr.prototype,"data",void 0);_.k([_.X({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:bHD}),_.t("design:type",Object)],vr.prototype,"commerceCartCheckoutButtonEntity",void 0);_.k([_.EM("commerceCartCheckoutButtonEntity","data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vr.prototype,"entityChanged",null);vr=_.k([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],vr);
_.A(vr,"ytd-commerce-cart-summary-renderer",function(){if(d2u!==void 0)return d2u;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return d2u=E},{mode:1});var hsZ={};hsZ.InjectBehavior=[adi.InjectBehavior];var sTU;var uJr;var yG=function(){return _.r.apply(this,arguments)||this};
_.L(yG,_.r);
yG.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:_.dA("menuRenderer")}}};
yG.prototype.onMenuTap=function(E){E.stopPropagation()};
_.Up.Object.defineProperties(yG.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 E,B;return!(((E=this.data)==null||!E.sectionHeading)&&((B=this.data)==null?void 0:B.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var E,B;return!(((E=this.data)==null||!E.image)&&((B=this.data)==null?void 0:B.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var E,B;return!(((E=this.data)==null||!E.menu)&&((B=this.data)==null?void 0:B.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Tj$.YtTappableItemBehavior),_.t("design:type",Object)],yG.prototype,"ytTappableItemBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],yG.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data.accessibilityData"),_.t("design:type",String),_.t("design:paramtypes",[])],yG.prototype,"ariaLabel",null);_.k([_.S("data.sectionHeading","data.layout"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],yG.prototype,"sectionHeadingVisible",null);_.k([_.S("data.image","data.layout"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],yG.prototype,"imageVisible",null);
_.k([_.S("data.menu","data.layout"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],yG.prototype,"menuVisible",null);yG=_.k([_.QE({is:"yt-activity-item-renderer",disableElementRegistration:!0})],yG);
_.A(yG,"yt-activity-item-renderer",function(){if(uJr===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;sTU===void 0&&(sTU=document.createElement("template"));var T=sTU;I.call(B,T.content.cloneNode(!0),E.content.firstChild);uJr=E}E=uJr;return E},{mode:2});var Lll;var x2Z;var Gc$;var OYh;var CB=function(){return _.r.apply(this,arguments)||this};
_.L(CB,_.r);
CB.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"}}}}};
CB.prototype.backgroundColorChanged_=function(){var E,B=(E=this.data)==null?void 0:E.backgroundColor;this.hostElement.style.backgroundColor=Fk[B||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
CB.prototype.backgroundColorChanged_=CB.prototype.backgroundColorChanged_;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],CB.prototype,"data",void 0);
_.k([_.EM("data.backgroundColor"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],CB.prototype,"backgroundColorChanged_",null);CB=_.k([_.QE({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],CB);
_.A(CB,"yt-offer-item-upsell-renderer",function(){if(OYh===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Gc$===void 0&&(Gc$=document.createElement("template"));var T=Gc$;I.call(B,T.content.cloneNode(!0),E.content.firstChild);OYh=E}E=OYh;return E},{mode:2});_.QH("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var wW=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};E.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return E};
_.L(wW,_.r);_.l=wW.prototype;
_.l.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:_.dA("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.l.computeContainerStyle_=function(E){return E};
_.l.computeContainerIsHidden_=function(E){return E&&!!E.isHidden};
_.l.computeShowSpinner_=function(E,B){return E&&B==="in-progress"};
_.l.computeShowMoreContentsButton_=function(E,B,I,T,e){return!(!(T&&T.length||e&&e.length&&I)||!E||B)};
_.l.onToggleButton_=function(E){var B=this;E.stopPropagation();this.isExpanded_=E.detail&&E.detail.toggled;var I,T;this.isExpanded_&&!this.data.continuationSection.length&&((I=this.data)==null?0:(T=I.continuation)==null?0:T.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.$O(this.hostElement,"yt-load-next-continuation",function(e){return B.getContinuationUrl_(B.data.continuation.onClickContinuationData,e)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.l1(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.l.onShowMoreContentsButtonClicked_=function(E){var B=this;E.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.$O(this.hostElement,"yt-load-next-continuation",function(I){return B.getContinuationUrl_(B.data.continuations[0].nextContinuationData,I)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.l1(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.l.getContinuationUrl_=function(E,B){var I=E.continuation;E=E.clickTrackingParams;var T=_.nC();E&&T&&_.Al(T,_.Yg(E));return _.Ur(B,{continuation:I})};
_.l.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var E=_.n(this.hostElement).querySelector("#continuation-section");E&&(E=E.querySelectorAll("ytmusic-item-section-renderer"))&&E.forEach(function(B){return B.classList.add("memberships-and-purchases")})};
_.l.dataChanged_=function(){var E;this.isExpanded_=!((E=this.data)==null||!E.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.l.updateCardOnClickCommand_=function(E){E=_.h(E,$lh);var B,I;this.data&&((B=this.data)==null?0:B.targetId)&&E&&E.targetId===((I=this.data)==null?void 0:I.targetId)&&E.onClickCommand&&(this.data.onClickCommand=E.onClickCommand,this.isOnClickCommand_=!0)};
_.l.backgroundColorChanged_=function(){var E,B=(E=this.data)==null?void 0:E.backgroundColor;this.hostElement.style.backgroundColor=Fk[B||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
wW.prototype.backgroundColorChanged_=wW.prototype.backgroundColorChanged_;wW.prototype.dataChanged_=wW.prototype.dataChanged_;wW.prototype.nextContinuationDataUpdated_=wW.prototype.nextContinuationDataUpdated_;wW.prototype.onToggleButton_=wW.prototype.onToggleButton_;_.k([_.g(_.xo),_.t("design:type",Object)],wW.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],wW.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],wW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Gt.YtNextContinuationBehavior),_.t("design:type",Object)],wW.prototype,"ytNextContinuationBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.k([_.g(hsZ.InjectBehavior),_.t("design:type",Object)],wW.prototype,"injectBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],wW.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],wW.prototype,"compact",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],wW.prototype,"isExpanded_",void 0);_.k([_.X({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.t("design:type",String)],wW.prototype,"containerStyle_",void 0);_.k([_.X({value:"not-started"}),_.t("design:type",String)],wW.prototype,"continuationStatus_",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.t("design:type",Boolean)],wW.prototype,"showSpinner_",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],wW.prototype,"isOnClickCommand_",void 0);_.k([_.X({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.t("design:type",Boolean)],wW.prototype,"showMoreContentsButton_",void 0);
_.k([_.X({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(E,B){return!B||E.entities?null:_.cP(E.entities,"cardItemContainerEntity",B)}}),
_.t("design:type",Object)],wW.prototype,"cardItemContainerEntity_",void 0);_.k([_.RN("yt-toggle-button"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],wW.prototype,"onToggleButton_",null);_.k([_.RN("yt-next-continuation-data-updated"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wW.prototype,"nextContinuationDataUpdated_",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wW.prototype,"dataChanged_",null);_.k([_.EM("data.backgroundColor"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wW.prototype,"backgroundColorChanged_",null);wW=_.k([_.QE({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],wW);
_.A(wW,"yt-card-item-container-renderer",function(){if(x2Z===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Lll===void 0&&(Lll=document.createElement("template"));var T=Lll;I.call(B,T.content.cloneNode(!0),E.content.firstChild);x2Z=E}E=x2Z;return E},{mode:2});var ZW=function(){return _.r.apply(this,arguments)||this};
_.L(ZW,_.r);ZW.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"}}}};
ZW.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
ZW.prototype.computeLoadingHidden=function(){var E;return!((E=this.commerceCartPageStateEntity)==null?0:E.cartActionInProgress)};
ZW.prototype.updateNotification=function(){var E,B=(E=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:E.summaryText;B&&this.set("data.cartNotification",WD(B))};
ZW.prototype.notificationEntityChanged=ZW.prototype.notificationEntityChanged;_.k([_.g(_.Lz),_.t("design:type",Object)],ZW.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],ZW.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ZW.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],ZW.prototype,"data",void 0);_.k([_.X({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(E,B){return _.cP(E.entities,"commerceCartExpandableNotificationEntity",B)}}),
_.t("design:type",Object)],ZW.prototype,"commerceCartExpandableNotificationEntity",void 0);_.k([_.X({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(E,B){return _.cP(E.entities,"commerceCartPageStateEntity",B)}}),
_.t("design:type",Object)],ZW.prototype,"commerceCartPageStateEntity",void 0);_.k([_.$7("#spinner"),_.t("design:type",HTMLElement)],ZW.prototype,"spinner",void 0);_.k([_.EM("commerceCartExpandableNotificationEntity","data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ZW.prototype,"notificationEntityChanged",null);ZW=_.k([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],ZW);
_.A(ZW,"ytd-commerce-cart-renderer",function(){if(QTu!==void 0)return QTu;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return QTu=E},{mode:1});var nSr;var Pr=function(){var E=_.r.apply(this,arguments)||this;E.bigImage=!1;return E};
_.L(Pr,_.r);_.Up.Object.defineProperties(Pr.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.placeholderImageUrl}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Pr.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Pr.prototype,"bigImage",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Pr.prototype,"placeholderImageUrl",null);Pr=_.k([_.b({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Pr);
_.A(Pr,"ytd-empty-product-shelf-renderer",function(){if(nSr!==void 0)return nSr;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return nSr=E},{mode:1});var MZX;var zh=function(){var E=_.r.apply(this,arguments)||this;E.itemStyle="link-item";E.watchMetadataRefresh=!1;E.skinnyMode=!1;E.metaPanel=!1;E.inStructuredDescription=!1;E.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};E.updateOnResizeDebouncer=null;return E};
_.L(zh,_.r);_.l=zh.prototype;_.l.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.l.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"}}}}};
_.l.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.l.attachVEs=function(E){E.trackingParams&&_.lu().graftServerVe(E.trackingParams)};
_.l.handleUpdateMerchShelfAction=function(E){var B=this,I=_.h(E.updateMerchandiseShelfAction.merchandiseShelf,_.VJt);I&&(I.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){B.attachVEs(I);B.data=I},Number(I.renderDelayMs))):(this.attachVEs(I),this.data=I))};
_.l.updateOnResize=function(){if(this.JSC$14583_scrollContainer!==void 0&&this.JSC$14583_scrollContainer.clientWidth!==0&&this.items!==void 0){var E=this.JSC$14583_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-E));this.ytdHorizontalListBehavior.reposition_();var B;switch((B=this.data)==null?void 0:B.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var I,
T;((I=this.data)==null?void 0:(T=I.items)==null?void 0:T.length)===1?this.itemStyle="cta-item":this.itemStyle=E>=740?"large-item":"small-item"}}};
_.l.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Tz(this.updateOnResizeDebouncer,_.tL.after(100),this.updateOnResize)};
zh.prototype.debouncedUpdateOnResize=zh.prototype.debouncedUpdateOnResize;zh.prototype.dataChanged=zh.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],zh.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.fz.YtdHorizontalListBehavior),_.t("design:type",Object)],zh.prototype,"ytdHorizontalListBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],zh.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],zh.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],zh.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zh.prototype,"itemStyle",void 0);_.k([_.X({value:6}),_.t("design:type",Number)],zh.prototype,"initialCount",void 0);
_.k([_.X({value:"data.items"}),_.t("design:type",String)],zh.prototype,"itemsPath",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zh.prototype,"watchMetadataRefresh",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zh.prototype,"skinnyMode",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zh.prototype,"metaPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zh.prototype,"inStructuredDescription",void 0);
_.k([_.$7("#items"),_.t("design:type",HTMLDivElement)],zh.prototype,"items",void 0);_.k([_.$7("#scroll-container"),_.t("design:type",HTMLDivElement)],zh.prototype,"JSC$14583_scrollContainer",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],zh.prototype,"dataChanged",null);_.k([_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],zh.prototype,"debouncedUpdateOnResize",null);
zh=_.k([_.b({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],zh);
_.A(zh,"ytd-merch-shelf-renderer",function(){if(MZX!==void 0)return MZX;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return MZX=E},{mode:2});var HYD;var mP=function(){var E=_.r.apply(this,arguments)||this;E.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 E};
_.L(mP,_.r);_.l=mP.prototype;
_.l.addBackstagePostAction=function(E){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(E=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",E))&&(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:E}):this.set("data.contents",[{backstagePostThreadRenderer:E}]))};
_.l.addBackstageCommentAction=function(E){var B=this.get("addBackstageCommentAction.parentId",E);E=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",E);if(B&&E){B=this.postIdToIndices(B);for(var I=0;I<B.length;I++){var T=B[I];if(T<0)break;T="data.contents."+T+".backstagePostThreadRenderer.comments";this.get(T)&&(this.get(T+".backstageCommentsRenderer.contents")&&this.push(T+".backstageCommentsRenderer.contents",{commentThreadRenderer:E}),this.get(T+".backstageCommentsRenderer.teaserContents")?
this.push(T+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:E}):this.set(T+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:E}]))}}};
_.l.addBackstageReplyAction=function(E){var B=this.get("addBackstageReplyAction.parentId",E);E=this.get("addBackstageReplyAction.renderer.commentRenderer",E);B&&E&&this.setCreatorReply(B,E)};
_.l.banAuthorAction=function(E){var B=this.get("banAuthorAction.commentId",E);B&&(E=this.get("banAuthorAction.parentCommentId",E)||this.getParentPostId(B),this.removeFromStream(B,E))};
_.l.hideReportedCommentAction=function(E){var B=this.get("hideReportedCommentAction.commentId",E);B&&((E=this.get("hideReportedCommentAction.parentCommentId",E))||(E=this.getParentPostId(B)),this.removeFromStream(B,E))};
_.l.replaceBackstageCommentAction=function(E){var B=this.get("replaceBackstageCommentAction.commentId",E),I=this.get("replaceBackstageCommentAction.parentId",E);E=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",E);if(B&&I&&E){I=this.postIdToIndices(I);for(var T=0;T<I.length;T++){var e=I[T];if(e<0)break;var c=this.commentIdToIndex(B,e,!1);if(c>=0){var Y=this.get("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+c+".commentThreadRenderer.replies.commentRepliesRenderer");
Y&&(E.replies={commentRepliesRenderer:Y});this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",c,1,{commentThreadRenderer:E})}c=this.commentIdToIndex(B,e,!0);if(c>=0){if(Y=this.get("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(c+".commentThreadRenderer.replies.commentRepliesRenderer")))E.replies={commentRepliesRenderer:Y};this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
c,1,{commentThreadRenderer:E})}}}};
_.l.replaceBackstagePostAction=function(E){var B=this.get("replaceBackstagePostAction.itemId",E);if(B){B=this.postIdToIndices(B);for(var I=0;I<B.length;I++){var T=B[I];if(T<0)break;var e=this.getPostRendererType(T),c=this.get("replaceBackstagePostAction.renderer."+e,E);if(!c&&e!=="sharedPostRenderer")break;var Y=!1;c||(Y=!0,c=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",E));if(!c)break;var v={};Y?(_.PV(v,IUZ,c),this.set("data.contents."+T+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
v)):(_.PV(v,new _.F(e),c),this.set("data.contents."+T+".backstagePostThreadRenderer.post",v))}}};
_.l.replaceBackstageReplyAction=function(E){var B=this.get("replaceBackstageReplyAction.replyId",E),I=this.get("replaceBackstageReplyAction.parentId",E);E=this.get("replaceBackstageReplyAction.renderer.commentRenderer",E);B&&E&&I&&this.setCreatorReply(I,E)};
_.l.removeCommentAction=function(E){var B=this.get("removeCommentAction.commentId",E);if(B){var I=this.get("removeCommentAction.parentCommentId",E);I&&this.get("removeCommentAction.isCreatorReply",E)?this.setCreatorReply(I,void 0):(I||(I=this.getParentPostId(B)),this.removeFromStream(B,I))}};
_.l.setCreatorReply=function(E,B){var I=this.getParentPostId(E);if(I){I=this.postIdToIndices(I);for(var T=0;T<I.length;T++){var e=I[T];if(e<0)break;var c=this.commentIdToIndex(E,e,!1);if(c>=0){var Y="data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+c;c=Y+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";Y+=".commentThreadRenderer.replies";B==void 0?(this.set(Y,{}),this.set(c,!1)):(this.set(Y,{commentRepliesRenderer:{teaserContents:[{commentRenderer:B}]}}),
this.set(Y+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(c,!0))}c=this.commentIdToIndex(E,e,!0);c>=0&&(c="data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+c,e=c+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",c+=".commentThreadRenderer.replies",B==void 0?(this.set(c,{}),this.set(e,!1)):(this.set(c,{commentRepliesRenderer:{teaserContents:[{commentRenderer:B}]}}),this.set(e,!0)))}}};
_.l.removeFromStream=function(E,B){if(B){B=this.postIdToIndices(B);for(var I=0;I<B.length;I++){var T=B[I];if(T<0)break;var e=this.commentIdToIndex(E,T,!1);e>=0&&this.splice("data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",e,1);e=this.commentIdToIndex(E,T,!0);e>=0&&this.splice("data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",e,1);T="data.contents."+T+".backstagePostThreadRenderer.post.backstagePostRenderer";
e=T+".backstageAttachment.pollRenderer.votedCommentId";this.get(e)===E&&(this.set(e,null),this.set(T+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(B=this.postIdToIndices(E).reverse(),I=0;I<B.length;I++){T=B[I];if(T<0)break;e=this.getPostRendererType(T);var c=this.get("backstagePostThreadRenderer.post."+e,this.data.contents[T]);c.postId===E?this.splice("data.contents",T,1):e==="sharedPostRenderer"&&this.set("data.contents."+T+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);c.scheduledPublishTimeSec&&_.I2(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.l.postIdToIndices=function(E){for(var B=[],I=0;I<this.data.contents.length;I++){var T=this.getPostRendererType(I);this.get("backstagePostThreadRenderer.post."+T+".postId",this.data.contents[I])===E&&B.push(I);if(T==="sharedPostRenderer"){var e=this.get("backstagePostThreadRenderer.post."+T+".originalPost.backstagePostRenderer.postId",this.data.contents[I]);T=this.get("backstagePostThreadRenderer.post."+T+".originalPost.postRenderer.postId",this.data.contents[I]);e!==E&&T!==E||B.push(I)}}return B};
_.l.commentIdToIndex=function(E,B,I){if(B<0)return-1;var T,e,c,Y,v=_.h((T=this.data)==null?void 0:(e=T.contents)==null?void 0:(c=e[B])==null?void 0:(Y=c.backstagePostThreadRenderer)==null?void 0:Y.comments,Bw$);return(B=I?v==null?void 0:v.teaserContents:v==null?void 0:v.contents)&&B.length?B.findIndex(function(y){return _.h(y,nLz).comment.commentRenderer.commentId===E}):-1};
_.l.getParentPostId=function(E){E=E.split(".");if(E[1])return E[0]};
_.l.getPostRendererType=function(E){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[E])?"sharedPostRenderer":"backstagePostRenderer"};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],mP.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],mP.prototype,"data",void 0);mP=_.k([_.b({disableElementRegistration:!0,is:"ytd-backstage-items"})],mP);
_.A(mP,"ytd-backstage-items",function(){if(HYD!==void 0)return HYD;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return HYD=
E},{mode:1});var NjV;_.wp({is:"ytd-comments",_template:function(){if(NjV!==void 0)return NjV;var E=document.createElement("template");_.G(E,'\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<tp-yt-paper-spinner-lite active="[[canShowDefaultSpinner_]]" class="style-scope ytd-comments"></tp-yt-paper-spinner-lite>\n<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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return NjV=E},
behaviors:[_.Cg4.YtHostElementBehavior,_.Wy.YtPlayerListenerBehavior,_.R.YtRendererBehavior,_.th.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},canShowDefaultSpinner_:{type:Boolean,computed:"computeCanShowDefaultSpinner_(data, canScheduleJobs)"},
engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},
listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)","headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(E){E&&E.value&&E.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(E){E&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.OK("wn_comments");var E=_.nC();E&&_.LO({clientScreenNonce:E},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(E){E=qPG(E);var B,I,T;if(E=(B=E)==null?void 0:(I=B.createCommentAction)==null?void 0:(T=I.contents)==null?void 0:T.commentThreadRenderer){var e,c,Y,v,y,Z;!this.isBackstage&&((e=this.data)==null?0:(c=e.header)==null?0:(Y=c.commentsHeaderRenderer)==null?0:(v=Y.createRenderer)==null?0:(y=v.commentSimpleboxRenderer)==null?0:(Z=y.zeroStep)==null?0:Z.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var P,z,m,u;this.isBackstage&&((P=this.data)==null?0:(z=P.header)==null?0:(m=z.commentsHeaderRenderer)==null?0:(u=m.zeroStateMessage)==null?0:u.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(E)}},
doReplyInsert_:function(E,B,I,T){T?this.splice(E,T,0,B):this.push(E,B)},
getRepliesPath_:function(E){return"data.contents."+E+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(E,B){E=this.getRepliesPath_(E);return B?E+".commentRepliesRenderer.teaserContents":E+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(E){E=qPG(E);var B,I,T=(B=E)==null?void 0:(I=B.createCommentReplyAction)==null?void 0:I.parentCommentId,e,c;if(B=(e=E)==null?void 0:(c=e.createCommentReplyAction)==null?void 0:c.contents)if(T=this.commentIdToIndex_(T),!(T<0))if(e=this.getRepliesPath_(T),this.get(e)){var Y,v;E=(Y=E)==null?void 0:(v=Y.createCommentReplyAction)==null?void 0:v.replyToCommentId;Y=this.getRepliesContentsPath_(T,!1);this.get(Y)&&(v=this.get(Y).length,e=Y+"."+(v-1)+".continuationItemRenderer",
this.get(e+".button")?(e=this.replyIdToIndex_(E,T,!1),this.doReplyInsert_(Y,B,e,v-1)):this.get(e)||(v=this.replyIdToIndex_(E,T,!1),this.doReplyInsert_(Y,B,v,null)));Y=this.getRepliesContentsPath_(T,!0);this.get(Y)?(T=this.replyIdToIndex_(E,T,!0),(!E||T>=0)&&this.doReplyInsert_(Y,B,T,null)):this.set(Y,[B])}else this.set(e,{commentRepliesRenderer:{teaserContents:[B]}})},
hideReportedCommentAction_:function(E){var B,I=E==null?void 0:(B=E.hideReportedCommentAction)==null?void 0:B.commentId;if(I){var T;E=E==null?void 0:(T=E.hideReportedCommentAction)==null?void 0:T.parentCommentId;I=I.replace("#",".");E||(E=this.getParentCommentId_(I));this.remove_(I,E)}},
getParentCommentId_:function(E){E=E.split(".");if(E[1])return E[0]},
removeCommentAction_:function(E){var B,I=E==null?void 0:(B=E.removeCommentAction)==null?void 0:B.commentId;if(I){var T;E=E==null?void 0:(T=E.removeCommentAction)==null?void 0:T.parentCommentId;I=I.replace("#",".");E||(E=this.getParentCommentId_(I));this.remove_(I,E)}},
pinCommentAction_:function(E){E=qPG(E);var B,I,T=(B=E)==null?void 0:(I=B.pinCommentAction)==null?void 0:I.commentId;T&&(E=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",E))&&(this.remove_(T),this.insert_(E,!0))},
unpinCommentAction_:function(E){E=qPG(E);var B,I,T=(B=E)==null?void 0:(I=B.unpinCommentAction)==null?void 0:I.commentId;if(T){var e,c,Y;if(E=(e=E.unpinCommentAction)==null?void 0:(c=e.actionResult)==null?void 0:(Y=c.update)==null?void 0:Y.commentThreadRenderer)this.remove_(T),this.insert_(E)}},
banAuthorAction_:function(E){var B,I=E==null?void 0:(B=E.banAuthorAction)==null?void 0:B.commentId;if(I){var T;E=E==null?void 0:(T=E.banAuthorAction)==null?void 0:T.parentCommentId;I=I.replace("#",".");E||(E=this.getParentCommentId_(I));this.remove_(I,E)}},
commentIdToIndex_:function(E){var B;return E&&(B=this.data)!=null&&B.contents?this.data.contents.findIndex(function(I){var T,e;return E===((I==null?void 0:(T=I.commentThreadRenderer)==null?void 0:T.commentViewModel)&&((e=_.h(I.commentThreadRenderer.commentViewModel,gL6))==null?void 0:e.commentId))}):-1},
insert_:function(E,B){var I,T;if((I=this.data)==null?0:(T=I.contents)==null?0:T.some(function(c){return!(c==null||!c.commentThreadRenderer)}))for(I=0,T=this.data.contents.length;I<T;I++){var e=this.data.contents[I].commentThreadRenderer;
if(this.RenderingPriority[E.renderingPriority]>=this.RenderingPriority[e.renderingPriority]){B&&this.RenderingPriority[E.renderingPriority]==this.RenderingPriority[e.renderingPriority]?this.splice("data.contents",I,1,{commentThreadRenderer:E}):this.splice("data.contents",I,0,{commentThreadRenderer:E});break}}else this.set("data.contents",[{commentThreadRenderer:E}])},
doReplyRemove_:function(E,B,I){E=this.replyIdToIndex_(E,B,I);E<0||(B=this.getRepliesContentsPath_(B,I),this.splice(B,E,1))},
remove_:function(E,B){B=this.commentIdToIndex_(B);B<0?(B=this.commentIdToIndex_(E),B<0||this.splice("data.contents",B,1)):(this.doReplyRemove_(E,B,!1),this.doReplyRemove_(E,B,!0))},
replyIdToIndex_:function(E,B,I){if(B<0)return-1;B=this.getRepliesContentsPath_(B,I);B=this.get(B);if(!B||!B.length)return-1;I=0;for(var T=B.length;I<T;I++){var e=void 0,c=void 0;if(((e=B[I])==null?void 0:(c=e.commentViewModel)==null?void 0:c.commentId)===E)return I}return-1},
computeIsBackstage_:function(E){return!!E},
computeCanShowDefaultSpinner_:function(E,B){return B?(B=_.Q().resolve(_.Fx(_.oS)))&&B.isOnWatch&&B.isOnWatch()?!(E&&(E.contents||E.header)):!1:!1},
onRetrieveLocation_:function(E,B){B&&B.hasComments&&this.tickForCommentsTimer_("lss")},
tickForCommentsTimer_:function(E){_.Mf(E,void 0,"wn_comments")},
reloadComments_:function(E){E&&E.reloadCommentsCommand&&E.reloadCommentsCommand.command&&E.reloadCommentsCommand.command.continuationCommand&&_.l1(this,[E.reloadCommentsCommand.command])}});var QG=function(){return _.l6.apply(this,arguments)||this};
_.L(QG,_.l6);_.l=QG.prototype;_.l.bindIf=function(E,B,I){return E?B:I};
_.l.bindIfDefined=function(E,B){return E!==void 0?E:B};
_.l.booleanString=function(E){return(!!E).toString()};
_.l.equals=function(){for(var E=_.aG.apply(0,arguments),B=E[0],I=1;I<E.length;I++)if(B!=E[I])return!1;return!0};
_.l.isGreaterThan=function(E,B){return E>B};
_.l.isLessThan=function(E,B){return E<B};
_.l.logicalAND=function(){for(var E=_.aG.apply(0,arguments),B=!!E[0],I=1;I<E.length;I++)B=B&&!!E[I];return B};
_.l.logicalOR=function(){for(var E=_.aG.apply(0,arguments),B=!!E[0],I=1;I<E.length;I++)B=B||!!E[I];return B};
_.l.toBool=function(E){return!!E};
QG.prototype.toBool=QG.prototype.toBool;QG.prototype.logicalOR=QG.prototype.logicalOR;QG.prototype.logicalAND=QG.prototype.logicalAND;QG.prototype.isLessThan=QG.prototype.isLessThan;QG.prototype.isGreaterThan=QG.prototype.isGreaterThan;QG.prototype.equals=QG.prototype.equals;QG.prototype.booleanString=QG.prototype.booleanString;QG.prototype.bindIfDefined=QG.prototype.bindIfDefined;QG.prototype.bindIf=QG.prototype.bindIf;QG=_.k([_.cl()],QG);_.gSZ=[QG.prototype];var SYZ;var JfU;var dW=function(){return _.r.apply(this,arguments)||this};
_.L(dW,_.r);dW.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
dW.prototype.onBackIconTap_=function(){window.history.back()};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],dW.prototype,"data",void 0);dW=_.k([_.QE({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],dW);
_.A(dW,"yt-header-with-back-renderer",function(){if(JfU===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;SYZ===void 0&&(SYZ=document.createElement("template"));var T=SYZ;I.call(B,T.content.cloneNode(!0),E.content.firstChild);JfU=E}E=JfU;return E},{mode:2});var WlV;var XSu;var hU=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return E};
_.L(hU,_.r);_.l=hU.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.l.onDarkModeToggledAction=function(E){E!==this.isDarkTheme&&(this.isDarkTheme=E,this.setUrl())};
_.l.dataChanged=function(){var E=this;if(this.data){var B=this.setUrl();B&&_.Dc({destination:window,iframe:this.iframe,origin:_.lKr(B.toString()),channelName:"yt-iframe",onMessage:function(I){(I=E.getCommunicationCommand(I.data))&&E.ytComponentBehavior.resolveCommand(I)},
onEstablished:function(){}})}};
_.l.setUrl=function(){if(this.data&&this.data.iframeUrl){var E=_.xv(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(E)return _.QC(this.iframe,E),E}};
_.l.getCommunicationCommand=function(E){var B;if((B=this.data)!=null&&B.onCommunicationCommandsMap){B=this.data.onCommunicationCommandsMap.find(function(e){return e.key===E});
if(B==null?0:B.value)return B==null?void 0:B.value;try{var I=f3Z(_.pV(E)),T=this.data.onCommunicationCommandsMap.find(function(e){return e.key===(I==null?void 0:_.O8(I,1))});
if(T==null?0:T.value)return T==null?void 0:T.value}catch(e){}}};
hU.prototype.dataChanged=hU.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],hU.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],hU.prototype,"actionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],hU.prototype,"data",void 0);
_.k([_.X({value:!1}),_.t("design:type",Boolean)],hU.prototype,"isDarkTheme",void 0);_.k([_.$7("#iframe"),_.t("design:type",HTMLIFrameElement)],hU.prototype,"iframe",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],hU.prototype,"dataChanged",null);hU=_.k([_.QE({is:"yt-iframe-renderer",disableElementRegistration:!0})],hU);
_.A(hU,"yt-iframe-renderer",function(){if(XSu===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;WlV===void 0&&(WlV=document.createElement("template"));var T=WlV;I.call(B,T.content.cloneNode(!0),E.content.firstChild);XSu=E}E=XSu;return E},{mode:2});_.sW=function(E){_.Cx.call(this);this.callback=E;this.bezier=new SMR(0,0,.4,0,.2,1,1,1);this.delay=new _.fg(this.next,window,this);this.JSC$14614_animating=!1;_.Bp(this,this.delay)};
_.L(_.sW,_.Cx);_.sW.prototype.isAnimating=function(){return this.JSC$14614_animating};
_.sW.prototype.start=function(E,B,I){this.config={from:E,to:B,duration:I,startTime:(0,_.VZ)()};this.JSC$14614_animating=!0;this.next()};
_.sW.prototype.stop=function(){this.delay.stop();this.JSC$14614_animating=!1;this.config=void 0};
_.sW.prototype.next=function(){if(this.config){var E=this.config,B=E.from,I=E.to,T=E.duration;E=E.startTime;var e=(0,_.VZ)()-E;E=this.bezier;T=WBh(E,e/T);if(T==0)E=E.y0;else if(T==1)E=E.y3;else{e=Q_(E.y0,E.y1,T);var c=Q_(E.y1,E.y2,T);E=Q_(E.y2,E.y3,T);e=Q_(e,c,T);c=Q_(c,E,T);E=Q_(e,c,T)}E=_.H3(E,0,1);this.callback(B+(I-B)*E);E<1?this.delay.start():this.JSC$14614_animating=!1}};_.uz=new _.Dr("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var rfD={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},oSu=function(E,B,I,T){_.Cx.call(this);this.JSC$14622_miniAppId=E;this.localReleaseId=B;this.derivedDeviceInterface=I;this.isForeground=T;this.JSC$14622_playNonceResolver=new _.Tv;this.playPingTimerId=NaN;this.playPingIntervalMs=_.RI("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.RI("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.d("enable_displaying_ppn");this.JSC$14622_miniAppClientDataProvider=_.Q().resolve(_.uz);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;bYr(this);var e=setTimeout(function(){_.OG(new _.P7("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14622_playNonceResolver.promise.then(function(){clearTimeout(e)})};
_.L(oSu,_.Cx);var jTR=function(E,B){E.JSC$14622_playNonceResolver.resolve(B!=null?B:xh(8));E.enableDisplayingPpn&&AfR(E).then(function(I){E.JSC$14622_miniAppClientDataProvider.clientData.set("post_play_nonce",I)})},AfR=function(E){return _.a(function(B){return B.nextAddress==1?_.C(B,E.JSC$14622_playNonceResolver.promise,2):B.return(B.yieldResult)})},bYr=function(E){var B,I;
_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$14622_playNonceResolver.promise,2);B=T.yieldResult;I={miniAppInfo:{externalPostId:E.JSC$14622_miniAppId,localReleaseId:E.localReleaseId,postPlayNonce:B,derivedDeviceInterface:E.derivedDeviceInterface}};_.LO(I);_.ER(T)})},kcu=function(E){E.state!==0?_.OG(new _.P7("[MiniAppPlayLogger] recordPlayStart failed with state "+rfD[E.state])):(E.state=1,LB(E,"ma_cl"),x_(E,"PLAY_EVENT_TYPE_PLAY_START"),U2t(E))},tZZ=function(E){E.isForeground=!1;
x_(E,"PLAY_EVENT_TYPE_PLAY_PAUSE")},f2h=function(E){E.state!==1&&E.state!==2?_.OG(new _.P7("[MiniAppPlayLogger] recordPlayEnd failed with state "+rfD[E.state])):(E.state=3,window.clearInterval(E.playPingTimerId),E.playPingTimerId=NaN,cLG(),x_(E,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},VZz=function(E,B){E.state===2&&E.gameReady&&(E.firstClickRecorded?Date.now()-E.clickRecordedMs<E.playClickIntervalMs||(E.clickRecordedMs=Date.now(),x_(E,"PLAY_EVENT_TYPE_PLAY_CLICK")):B&&(LB(E,"ma_fua"),x_(E,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),E.firstClickRecorded=!0,E.clickRecordedMs=Date.now()))};
oSu.prototype.logError=function(E){var B=this,I;_.a(function(T){if(T.nextAddress==1)return E.metadata.externalPostId=B.JSC$14622_miniAppId,I=E.metadata,_.C(T,Promise.race([B.JSC$14622_playNonceResolver.promise,new Promise(function(e){setTimeout(function(){e("")},3E4)})]),2);
I.postPlayNonce=T.yieldResult;E.metadata.localReleaseId=B.localReleaseId;E.loggingError.level="WARNING";_.xV(E.loggingError,E.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:E.metadata});_.ER(T)})};
var qYR=function(E,B,I,T){var e,c,Y,v,y,Z;_.a(function(P){if(P.nextAddress==1)return _.C(P,E.JSC$14622_playNonceResolver.promise,2);e=P.yieldResult;c={externalPostId:E.JSC$14622_miniAppId,localReleaseId:E.localReleaseId,postPlayNonce:e,sdkVersion:I,api:B};T!==void 0&&(c.networkRequestsMeasurement={networkRequests:_.kr(T,1),cachedRequests:_.kr(T,2),transferredBytes:_.kr(T,3)},(Y=T)==null?0:_.Zc(Y,Fy,6))&&(c.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((v=_.DZ(T,
Fy,6))==null?void 0:Md(v,1))||"0",cacheHits:((y=_.DZ(T,Fy,6))==null?void 0:Md(y,2))||"0",cachedBytes:((Z=_.DZ(T,Fy,6))==null?void 0:Md(Z,3))||"0"});_.hK("miniAppSdkUsage",c);_.ER(P)})},D26=function(E,B,I){var T,e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U;
_.a(function(q){if(q.nextAddress==1)return _.C(q,E.JSC$14622_playNonceResolver.promise,2);T=q.yieldResult;e={externalPostId:E.JSC$14622_miniAppId,localReleaseId:E.localReleaseId,postPlayNonce:T,sdkVersion:I,measurementWindow:{startTimestampMs:String(xU(B,1)),endTimestampMs:String(xU(B,2))},frameRate:{averageFrameTimeDeltaMs:GO(B,3),averageFrameIdleTimeMs:GO(B,4)}};_.Zc(B,DM,5)&&(e.networkRequests={networkRequests:(c=TT(B))==null?void 0:_.kr(c,1),cachedRequests:(Y=TT(B))==null?void 0:_.kr(Y,2),transferredBytes:(v=
TT(B))==null?void 0:_.kr(v,3),sameOriginStatusCodeToCounts:FlD((y=TT(B))==null?void 0:Bs4(y,4)),crossOriginStatusCodeToCounts:FlD((Z=TT(B))==null?void 0:Bs4(Z,5))},(P=TT(B))==null?0:_.Zc(P,Fy,6))&&(e.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((z=TT(B))==null?void 0:(m=_.DZ(z,Fy,6))==null?void 0:Md(m,1))||"0",cacheHits:((u=TT(B))==null?void 0:(x=_.DZ(u,Fy,6))==null?void 0:Md(x,2))||"0",cachedBytes:((M=TT(B))==null?void 0:(N=_.DZ(M,Fy,6))==null?void 0:Md(N,3))||"0"});_.Zc(B,
Dsh,7)&&(e.gameCapture={averageFrameTimeDeltaMs:(W=_.DZ(B,Dsh,7))==null?void 0:GO(W,1),averageFrameIdleTimeMs:(U=_.DZ(B,Dsh,7))==null?void 0:GO(U,2)});_.hK("miniAppPerformanceMetrics",e);_.ER(q)})},Klz=function(E,B,I){var T,e;
return _.a(function(c){if(c.nextAddress==1)return _.C(c,E.JSC$14622_playNonceResolver.promise,2);T=c.yieldResult;e={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:E.JSC$14622_miniAppId,postPlayNonce:T,miniAppReleaseId:E.localReleaseId},derivedDeviceInterface:E.derivedDeviceInterface,adTriggerType:B};e.rejectedReason=I||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.hK("miniAppAdEvent",e);_.ER(c)})};
oSu.prototype.disposeInternal=function(){_.Cx.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var x_=function(E,B,I,T){I=I===void 0?{}:I;T=T===void 0?!1:T;var e,c,Y,v;_.a(function(y){if(y.nextAddress==1)return e=E.isForeground,c=E.beforeReady,_.C(y,E.JSC$14622_playNonceResolver.promise,2);Y=y.yieldResult;v={externalPostId:E.JSC$14622_miniAppId,localReleaseId:E.localReleaseId,derivedDeviceInterface:E.derivedDeviceInterface,postPlayNonce:Y,type:B};I.sequenceGroup=Y;v.playState=c?"PLAY_STATE_NOT_READY":e?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.hK("miniAppPlayEvent",v,I);
T&&_.Li();_.ER(y)})},LB=function(E,B){var I;
_.a(function(T){if(T.nextAddress==1)return I=(0,_.VZ)(),_.C(T,E.JSC$14622_playNonceResolver.promise,2);_.nO(B,I);_.ER(T)})},U2t=function(E){isNaN(E.playPingTimerId)&&(E.playPingTimerId=_.eg(function(){E.state!==1&&E.state!==2?_.OG(new _.P7("[MiniAppPlayLogger] reportPlayPing failed with state "+rfD[E.state])):x_(E,"PLAY_EVENT_TYPE_PLAY_PING")},E.playPingIntervalMs))},FlD=function(E){return Array.from(E.entries()).map(function(B){var I=_.p(B);
B=I.next().value;I=I.next().value;return{key:B,value:I}})};var RsD=_.RI("show_mini_app_ad_frequency_cap_ms",0),EcZ=function(){this.showAdIntervalMs=RsD;this.isRateLimited=!0},BDh=function(E,B){setTimeout(function(){return E.isRateLimited=!1},E.showAdIntervalMs);
E.showMiniAppAdCommand=B.showMiniAppAdCommand;E.isEmbeddedInWebview=B.isEmbeddedInWebview;E.playLogger=B.playLogger},Ijz=function(E,B){var I;
return _.a(function(T){if(T.nextAddress==1){if(!E.showMiniAppAdCommand||!E.isEmbeddedInWebview)return T.return($xu(E,B,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(E.isRateLimited)return T.return($xu(E,B,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));E.adResolver=new _.Tv;I=PI$(new Z0Z,B);rZ(E.showMiniAppAdCommand,zoN(I));E.isRateLimited=!0;setTimeout(function(){return E.isRateLimited=!1},E.showAdIntervalMs);
return _.C(T,E.adResolver.promise,2)}return T.return(T.yieldResult)})};
EcZ.prototype.onAdFinished=function(E){E=OJl(E);var B;(B=this.adResolver)==null||B.resolve(E)};
var $xu=function(E,B,I){var T;return _.a(function(e){if(e.nextAddress==1)e=_.C(e,(T=E.playLogger)==null?void 0:Klz(T,B_B(B),I),2);else{var c=e.return;var Y=new GXN;Y=_.KF(Y,1,2);e=c.call(e,Y)}return e})};var TDX=new _.Dr("INNERTUBE_MANAGER_TOKEN");var eIV=function(){this.callbacks={}};
eIV.prototype.initialize=function(E){var B=this;this.callbacks=E;window.youtubewebview?window.youtubewebview.onmessage=function(I){lju(B,I)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(I){lju(B,I)})};
var lju=function(E,B){if(B.data)try{var I=f3Z(B.data);if(_.St(_.wV(I,1))!=null){var T=Yzt(_.O8(I,2));switch(_.O8(I,1)){case "yt-mini-app-load-audio-state":var e,c;(c=(e=E.callbacks).onAudioStateLoaded)==null||c.call(e,_.La(T,yU(T,GT,1)));break;case "yt-mute-mini-app":var Y,v;(v=(Y=E.callbacks).onMuteMiniApp)==null||v.call(Y);break;case "yt-unmute-mini-app":var y,Z;(Z=(y=E.callbacks).onUnmuteMiniApp)==null||Z.call(y);break;case "yt-playable-exit":var P,z;(z=(P=E.callbacks).onExit)==null||z.call(P);
break;case "yt-post-play-nonce":var m,u;(u=(m=E.callbacks).onPostPlayNonceReceived)==null||u.call(m,Hf(T,2,GT));break;case "yt-confirm-exit-mini-app":var x,M;(M=(x=E.callbacks).confirmExitMiniApp)==null||M.call(x);break;case "yt-confirm-exit-mini-app-edu":var N,W;(W=(N=E.callbacks).confirmExitMiniAppEdu)==null||W.call(N);break;case "yt-benchmarking-response":var U,q;(q=(U=E.callbacks).onNativeBenchmarkingMessageReceived)==null||q.call(U,Hf(T,2,GT));break;case "yt-mini-app-load-3p-consent-state":var f,
ed;(ed=(f=E.callbacks).multiplayer3pAckStateLoaded)==null||ed.call(f,_.La(T,yU(T,GT,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var K,p4;(p4=(K=E.callbacks).exitMiniAppSeenStateLoaded)==null||p4.call(K,_.La(T,yU(T,GT,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var sc,Gf;(Gf=(sc=E.callbacks).onNavigateToNewMiniApp)==null||Gf.call(sc);break;case "yt-game-data-available":var xi,ki;(ki=(xi=E.callbacks).onGameDataAvailable)==null||ki.call(xi,Hf(T,2,GT));break;case "yt-pause-mini-app":var WG,
rJ;(rJ=(WG=E.callbacks).onPauseMiniApp)==null||rJ.call(WG);break;case "yt-resume-mini-app":var Uc,CV;(CV=(Uc=E.callbacks).onResumeMiniApp)==null||CV.call(Uc);break;case "yt-playable-ad-finished":var Bm,LV;(LV=(Bm=E.callbacks).onAdFinished)==null||LV.call(Bm,Hf(T,2,GT))}}else _.OG(Error("Sh"))}catch(I$){_.xV(Error("Th"))}else _.OG(Error("Uh"))};var Iof=function(E){this.rpcErrorCode=E};var Gh=function(E,B,I){this.intervalMs=E;this.apiFunc=B;this.type=I;this.schedulerReady=!0};
Gh.prototype.call=function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1){if(B.type!==1&&E===B.cachedValue)return T.return();B.pendingApiRequestResolver||(B.pendingApiRequestResolver=new _.Tv);I=B.pendingApiRequestResolver.promise;B.cachedValue=E;return _.C(T,cWh(B),2)}return T.return(I)})};
Gh.prototype.flush=function(E){E=E===void 0?!1:E;var B=this;return _.a(function(I){return B.cachedValue===void 0?I.return():_.C(I,B.apiFunc(B.cachedValue,E),0)})};
var cWh=function(E){var B,I,T;return _.a(function(e){switch(e.nextAddress){case 1:if(!E.schedulerReady||!E.pendingApiRequestResolver)return e.return();E.schedulerReady=!1;B=E.pendingApiRequestResolver;E.pendingApiRequestResolver=void 0;_.q7(e,2);if(E.cachedValue===void 0){e.jumpTo(4);break}return _.C(e,E.apiFunc(E.cachedValue),5);case 5:I=e.yieldResult,B.resolve(I);case 4:_.W7(e,3);break;case 2:T=_.RG(e),B.reject(T);case 3:setTimeout(function(){return _.a(function(c){E.schedulerReady=!0;return _.C(c,
cWh(E),0)})},E.intervalMs),_.ER(e)}})};var lo6=window.location.origin+"/miniapp_cloudsaves",T_B=[400,401],inZ=_.RI("cloud_save_game_data_rate_limit_ms",3E3),ajZ=function(E){var B=this;this.JSC$14666_miniAppId=E;this.loadAttempts=0;this.cloudSaveIntervalMs=inZ;this.initialDownloadDataSucceeded=!1;this.JSC$14666_playNonceResolver=new _.Tv;this.scottyUploadRateLimiter=new Gh(this.cloudSaveIntervalMs,function(I,T){return pqV(B,I,T)},2);
this.downloadDataPromise=YD6(this);this.downloadDataPromise.then(function(){B.initialDownloadDataSucceeded=!0}).catch(function(){})},vcR=function(E,B){B.then(function(I){return E.JSC$14666_playNonceResolver.resolve(I)})},yWZ=function(E){return _.a(function(B){return E.cachedData===void 0?B.return(E.downloadDataPromise):B.return(E.cachedData)})},CeN=function(E,B){return _.a(function(I){E.cachedData=B;
if(!E.initialDownloadDataSucceeded)throw Error("Vh");return _.C(I,E.scottyUploadRateLimiter.call(B),0)})},wqD=function(){return new Promise(function(E){setTimeout(E,1E3,"")})},Znt=function(E,B){var I,T;
return _.a(function(e){if(e.nextAddress==1)return I=E.JSC$14666_miniAppId,_.C(e,Promise.race([E.JSC$14666_playNonceResolver.promise,wqD()]),2);T={"X-YouTube-MiniAppId":I,"X-YouTube-PostPlayNonce":e.yieldResult};"DELEGATED_SESSION_ID"in _.nc&&NlF(B,T);return e.return(T)})},pqV=function(E,B,I){I=I===void 0?!1:I;
return _.a(function(T){return $pc()?_.d("enable_cloud_save_error_popup_after_retry")?T.return(new Promise(function(e,c){var Y,v,y,Z,P;return _.a(function(z){switch(z.nextAddress){case 1:Y=0,v=!0,Z=y=null;case 2:if(!(v&&Y++<2)){z.jumpTo(4);break}_.q7(z,5);return _.C(z,PeZ(E,B,I),7);case 7:y=z.yieldResult;v=y.ok?!1:!T_B.includes(y.status);_.W7(z,2);break;case 5:Z=P=_.RG(z);v=eN4(Z);z.jumpTo(2);break;case 4:y?y.ok?(OW(E,inZ),e()):(OW(E,E.cloudSaveIntervalMs*2),c(Error("Wh`"+String(y.status),{cause:{rpcErrorCode:y.status}}))):
(OW(E,E.cloudSaveIntervalMs*2),c(Z||Error("Xh"))),_.ER(z)}})})):T.return(new Promise(function(e,c){var Y,v;
return _.a(function(y){if(y.nextAddress==1){if(E.JSC$14666_miniAppId==="")return c(Error("Yh")),y.return();_.q7(y,2);return _.C(y,PeZ(E,B,I),4)}if(y.nextAddress!=2)return Y=y.yieldResult,Y.ok?(OW(E,inZ),e()):(OW(E,E.cloudSaveIntervalMs*2),c(Error("Wh`"+String(Y.status),{cause:{rpcErrorCode:Y.status}}))),_.W7(y,0);v=_.RG(y);OW(E,E.cloudSaveIntervalMs*2);c(v);_.ER(y)})})):T.return()})},PeZ=function(E,B,I){I=I===void 0?!1:I;
var T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return T=_.tH((new TextEncoder).encode(B)),e=c8Q(),_.C(Y,Znt(E,e),2);c=Y.yieldResult;return Y.return(fetch(e,{method:"POST",body:new Blob([T]),headers:c,keepalive:I}))})},YD6=function(E){var B,I;
return _.a(function(T){if(T.nextAddress==1){if(!$pc())return T.return("");if(E.JSC$14666_miniAppId==="")throw Error("Yh");if(E.loadAttempts>2)return T.return(E.downloadDataPromise);_.q7(T,2);return _.C(T,zIt(E),4)}if(T.nextAddress!=2)return B=T.yieldResult,T.return(B);I=_.RG(T);if(eN4(I)&&++E.loadAttempts<2)return T.return(YD6(E));throw I;})},zIt=function(E){var B,I,T,e,c;
return _.a(function(Y){switch(Y.nextAddress){case 1:return _.q7(Y,2),B=c8Q(),_.C(Y,Znt(E,B),4);case 4:return I=Y.yieldResult,_.C(Y,fetch(B,{method:"GET",headers:I}),5);case 5:return T=Y.yieldResult,T.ok?_.C(Y,T.text(),6):Y.return(Promise.reject(Error("Zh`"+String(T.status),{cause:new Iof(T.status)})));case 6:return e=Y.yieldResult,Y.return((new TextDecoder).decode(_.pV(e)));case 2:return c=_.RG(Y),Y.return(Promise.reject(c))}})},OW=function(E,B){E.cloudSaveIntervalMs=B;
E.scottyUploadRateLimiter.intervalMs=E.cloudSaveIntervalMs};
ajZ.prototype.flush=function(){var E=this;return _.a(function(B){return E.initialDownloadDataSucceeded?_.C(B,E.scottyUploadRateLimiter.flush(!0),0):B.return()})};var mxh=$Y(BW(1),RA(1)),QU6=$Y(BW(1),RA(3)),nB=function(E){this.callbacks=E};
_.l=nB.prototype;_.l.onAudioToggled=function(E,B){(B===void 0||B)&&_.l9("yt-mini-app-is-audio-enabled",E,2592E3)};
_.l.onPause=function(){this.onAudioToggled(!1,!1)};
_.l.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.l.returnNativeBenchmarkingMessage=function(){};
_.l.sendGameData=function(){};
_.l.sendStartGameFrameCapture=function(){};
var isG=function(E,B,I){this.callbacks=E;var T=this;this.sdkVersion=new _.Tv;this.channel=new Z4D(_.Dc({destination:window,iframe:B,origin:(new URL(I.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var e=Mu;var c=BW(5);var Y=new X3R;Y=_.gV(Y,1,1E4);c=_.V$(c,4,tDZ,Y);e(T,c);T.onAudioToggled(T.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){T.sdkVersion.resolve("")},1E4)};
_.L(isG,nB);_.l=isG.prototype;_.l.onAudioToggled=function(E,B){nB.prototype.onAudioToggled.call(this,E,B===void 0?!0:B);B=Mu;var I=BW(2),T=new JbD;E=_.q8(T,1,E);E=_.V$(I,3,tDZ,E);B(this,E)};
_.l.onPause=function(){nB.prototype.onPause.call(this);Mu(this,BW(3))};
_.l.onResume=function(){nB.prototype.onResume.call(this);Mu(this,BW(4))};
_.l.returnNativeBenchmarkingMessage=function(E){var B=Mu,I=BW(6);var T=RA(_.Zc(E,kL,1)?1:2);E=_.Zc(E,kL,1)?E:null;T=_.V$(T,5,ES,E);B(this,$Y(I,T))};
_.l.sendGameData=function(E){var B=Mu,I=BW(7);E=_.V$(I,5,tDZ,E);B(this,E)};
_.l.sendStartGameFrameCapture=function(){Mu(this,BW(9))};
var Hr=function(E,B,I){var T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return T=E.callbacks,e=T.onSdkCalled,c=B,_.C(Y,E.sdkVersion.promise,2);e.call(T,c,Y.yieldResult,I);_.ER(Y)})};
isG.prototype.onMessage=function(){var E=this;return mG6(ep,function(B){var I,T,e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q,f,ed,K,p4,sc,Gf,xi,ki,WG,rJ,Uc,CV,Bm,LV,I$,bc,hz,TU,Wm,z2,cG,$I,tz,pX,OZ,kl,Qd,Yl;return _.a(function(jd){switch(jd.nextAddress){case 1:if(!BVN(B.data))return _.OG(Error("$h")),jd.return();I=_.na(B.data,1);_.d("enable_iframe_message_get_type_via_fields")&&(T=B.data,I=e=_.na(T,1));switch(I){case 8:if(B.data.hasMetadata()){var wr=E.sdkVersion,et=wr.resolve;var Qh=B.data.getMetadata();Qh=_.O8(Qh,
1);et.call(wr,Qh);clearTimeout(E.sdkVersionTimeoutId)}break;case 6:return jd.jumpTo(2);case 16:if(!_.Pf(B.data,qgZ,14,lU))return jd.return();c=_.Nd(B.data,qgZ,14,lU);(v=(Y=E.callbacks).onGameFrameReceived)==null||v.call(Y,c);return jd.return();case 17:if(!_.Pf(B.data,VDZ,15,lU))return jd.return();(Z=(y=E.callbacks).onGameAudioReceived)==null||Z.call(y,_.Nd(B.data,VDZ,15,lU));return jd.return();case 1:if(wr=_.Nd(B.data,omZ,2,lU))switch(_.na(wr,1)){case 1:E.callbacks.onFirstFrameReady();if(_.d("enable_network_request_logging_on_game_events")&&
_.Zc(wr,DM,4)){Hr(E,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.DZ(wr,DM,4));break}Hr(E,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Qh=(et=E.callbacks).onGameReady)==null||Qh.call(et);if(_.d("enable_network_request_logging_on_game_events")&&_.Zc(wr,DM,4)){Hr(E,"MINI_APP_SDK_API_GAME_READY",_.DZ(wr,DM,4));break}Hr(E,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Pf(wr,K2,3,AbR))E.callbacks.onResourceLoaded(_.Nd(wr,K2,3,AbR))}return jd.return();case 3:return jd.jumpTo(3);case 4:return jd.jumpTo(4);
case 2:return jd.jumpTo(5);case 9:return jd.jumpTo(6);case 10:return E.callbacks.onClick(),jd.return();case 5:return jd.jumpTo(7);case 11:if(!_.Pf(B.data,Vi,9,lU))return jd.return();P=_.Nd(B.data,Vi,9,lU);(m=(z=E.callbacks).onBenchmarkingMessageReceived)==null||m.call(z,P);wr=B.reply;et=BW(1);Qh=RA(1);var ds=new Vi;var mq=new Uint8Array(jqG(P,yU(P,MDh,6))|0);ds=iE(ds,5,MDh,_.Jz(mq,!1));Qh=_.V$(Qh,5,ES,ds);wr.call(B,$Y(et,Qh));return jd.return();case 12:return jd.jumpTo(8);case 13:return jd.jumpTo(9);
case 15:if(!_.d("enable_open_yt_content"))return B.reply(QU6),jd.return();if(!_.Pf(B.data,f4l,12,lU))return B.reply($Y(BW(1),RA(2))),jd.return();wr=_.Nd(B.data,f4l,12,lU);u=_.O8(wr,1);E.callbacks.onOpenYTContent(u);B.reply(mxh);return jd.return();case 14:return jd.jumpTo(10);default:return jd.return()}jd.jumpTo(0);break;case 2:if(!_.Pf(B.data,Ip,5,lU))return jd.return();et=B.data;wr=yU(et,lU,5);et=et.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(wr=wF(et,et[_.sZ]|0,Ip,wr))||(wr=Ip[rs])||
(wr=new Ip,GU(wr.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),wr=Ip[rs]=wr);x=wr;wr=_.jC(x,qC,1,_.Ux());M=_.p(wr);N=M.next();case 12:if(N.done){jd.jumpTo(14);break}W=N.value;U=new _.P7;U.level=_.na(W,2)===1?"WARNING":"ERROR";q=YhG(W.getSource());return _.C(jd,E.sdkVersion.promise,15);case 15:f={source:q,sdkVersion:jd.yieldResult};_.yd(_.wV(W,6))!=null?(U.message=W.getMessage(),U.stack=_.O8(W,5),f.sdkErrorType=aod(_.na(W,6)),_.yd(_.wV(W,7))!=null&&(f.sdkApi=vut(_.na(W,7)))):U.stack=void 0;
K=ed=void 0;(K=(ed=E.callbacks).onError)==null||K.call(ed,{loggingError:U,metadata:f});N=M.next();jd.jumpTo(12);break;case 14:return jd.return();case 3:return _.q7(jd,16),wr=E.callbacks,et=wr.onSave,Qh=_.Nd(B.data,Wi6,4,lU),Qh=_.O8(Qh,1),_.C(jd,et.call(wr,Qh),18);case 18:B.reply(mxh);_.W7(jd,17);break;case 16:return p4=_.RG(jd),sc=bJ,Gf=p4,xi=E.callbacks,ki="MINI_APP_SDK_API_SAVE_DATA",_.C(jd,E.sdkVersion.promise,19);case 19:sc(Gf,xi,ki,jd.yieldResult),B.reply(QU6);case 17:return _.C(jd,Hr(E,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return jd.return();case 4:return _.q7(jd,21),_.C(jd,E.callbacks.onLoad(),23);case 23:WG=jd.yieldResult;wr=B.reply;et=BW(1);Qh=RA(1);ds=new Wi6;ds=_.$r(ds,1,WG);Qh=_.V$(Qh,3,ES,ds);wr.call(B,$Y(et,Qh));_.W7(jd,22);break;case 21:return rJ=_.RG(jd),Uc=bJ,CV=rJ,Bm=E.callbacks,LV="MINI_APP_SDK_API_LOAD_DATA",_.C(jd,E.sdkVersion.promise,24);case 24:Uc(CV,Bm,LV,jd.yieldResult),B.reply(QU6);case 22:return _.C(jd,Hr(E,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return jd.return();case 5:_.q7(jd,
26);E.callbacks.onSendHighScore(ui(_.Nd(B.data,RVR,3,lU).getValue()));B.reply($Y(BW(1),RA(1)));_.W7(jd,27);break;case 26:return I$=_.RG(jd),bc=bJ,hz=I$,TU=E.callbacks,Wm="MINI_APP_SDK_API_SEND_SCORE",_.C(jd,E.sdkVersion.promise,28);case 28:bc(hz,TU,Wm,jd.yieldResult),B.reply(QU6);case 27:return _.C(jd,Hr(E,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return jd.return();case 6:if(!_.Pf(B.data,EUR,8,lU)){jd.jumpTo(30);break}wr=_.Nd(B.data,EUR,8,lU);wr=_.na(wr,1);return _.C(jd,Hr(E,vut(wr)),30);case 30:return jd.return();
case 7:return wr=B.reply,et=BW(1),Qh=RA(1),ds=E.callbacks.getLanguage(),Qh=iE(Qh,4,ES,gs(ds)),wr.call(B,$Y(et,Qh)),_.C(jd,Hr(E,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return jd.return();case 8:if(!_.Pf(B.data,Kih,10,lU))return jd.return();z2=_.Nd(B.data,Kih,10,lU);cG=E.callbacks;$I=cG.onSdkPerformanceUpdate;return _.C(jd,E.sdkVersion.promise,33);case 33:return $I.call(cG,z2,jd.yieldResult),jd.return();case 9:wr=B.data;et=yU(wr,lU,11);if(_.St(_.wV(wr,et))==null)return B.reply($Y(BW(1),RA(2))),
jd.return();tz=Hf(B.data,11,lU);E.callbacks.onShareInviteCode(tz);B.reply(mxh);return _.C(jd,Hr(E,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return jd.return();case 10:if(_.Pf(B.data,Sgl,13,lU)){jd.jumpTo(35);break}return _.C(jd,E.callbacks.onShowMiniAppAd(2),36);case 36:return pX=jd.yieldResult,B.reply($Y(BW(1),UsR(pX))),_.C(jd,Hr(E,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return jd.return();case 35:wr=_.Nd(B.data,Sgl,13,lU);a:switch(_.na(wr,1)){case 1:wr={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:wr={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:wr={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}OZ=wr;kl=OZ.adType;Qd=OZ.sdkApi;wr=E.callbacks;et=wr.onShowMiniAppAd;Qh=_.Nd(B.data,Sgl,13,lU);Qh=_.O8(Qh,2);return _.C(jd,et.call(wr,kl,Qh||void 0),38);case 38:return Yl=jd.yieldResult,B.reply($Y(BW(1),UsR(Yl))),_.C(jd,Hr(E,Qd),39);case 39:return jd.return()}})})};
var Mu=function(E,B){_.a(function(I){E.channel.send(B);_.ER(I)})},o0=function(E,B,I){this.callbacks=E;
var T=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;E=c5G(B,(new URL(I.toString())).origin);this.gameSnacks=new NJz(E);this.gameSnacks.page.onReady(function(){T.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){T.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var e,c;(c=(e=T.callbacks).onGameReady)==null||c.call(e)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(e,c){try{T.callbacks.onSendHighScore(c)}catch(Y){bJ(Y,T.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(e,c){var Y;return _.a(function(v){if(v.nextAddress==1)return _.q7(v,2),_.C(v,T.callbacks.onSave(T.decoder.decode(c)),4);if(v.nextAddress!=2)return _.W7(v,0);Y=_.RG(v);bJ(Y,T.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return v.return()})});
this.gameSnacks.storage.onLoad(function(){var e,c;return _.a(function(Y){if(Y.nextAddress==1)return _.q7(Y,2),_.C(Y,T.callbacks.onLoad(),4);if(Y.nextAddress!=2)return e=Y.yieldResult,Y.return(T.encoder.encode(e));c=_.RG(Y);bJ(c,T.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return Y.return(T.encoder.encode(""))})});
this.gameSnacks.init()};
_.L(o0,nB);o0.prototype.onAudioToggled=function(E,B){nB.prototype.onAudioToggled.call(this,E,B===void 0?!0:B);var I;(I=this.gameSnacks)==null||I.audio.update(E)};
o0.prototype.onPause=function(){nB.prototype.onPause.call(this);var E;(E=this.gameSnacks)==null||E.game.pause()};
o0.prototype.onResume=function(){nB.prototype.onResume.call(this);var E;(E=this.gameSnacks)==null||E.game.resume()};var dxt=y8c,hID=_.rp(function(E){var B=E.data;var I=E.loadingProgress;E=_.p(_.lQ("",void 0,"LYYTdd"));var T=E.next().value,e=E.next().value;E=_.p(_.lQ(!1,void 0,"K0waae"));var c=E.next().value,Y=E.next().value,v=[],y=function(){return"transform: scaleX("+(_.s_(I)||0)+")"},Z=null,P=function(){var x;
return(x=B()&&Z)!=null?x:Z=B().showAnniversaryAnimation?6:dxt()};
_.m$(function(){var x;if(B().timeOutMessages&&((x=B().timeOutMessages)==null?0:x.length)){Z=null;x=_.p(v);for(var M=x.next();!M.done;M=x.next())clearTimeout(M.value);v.length=0;CVG(B().timeOutMessages,v,e,Y)}});
var z=function(){return!!B().persistentErrorMessageTitle},m=function(){return I!==void 0},u=function(){return B().title};
return _.w("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.w("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.w("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.w("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var x,M=(x=B().backgroundImage)==null?void 0:x.sources,N;return(M==null?0:M.length)?"background-image: url("+((N=M[0])==null?void 0:N.url)+")":
""}}),_.w("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.w(_.wU,{cond:function(){return!z()},
then:function(){var x={};return _.w("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.w("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.w(_.E1,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+P()},
data:function(){var M="loading_animation_"+P();return{animationConfig:{name:M,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+M+".json",loop:!0,autoplay:!0}}}})),_.w("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.w(_.wU,{cond:u,
then:function(){return _.w("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},u)}}),_.w("p",{class:_.RQ("mini-app-splash-screen-view-model-wiz__timeout-message",(x["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return c()},x)),
"aria-live":"polite"},T),_.w(_.wU,{cond:m,then:function(){return _.w("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.w("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:y}))}})))}}),_.w(_.wU,{cond:z,
then:function(){return _.w("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.w("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return B().persistentErrorMessageTitle}),_.w(_.wU,{cond:function(){return!!B().persistentErrorMessageDescription},
then:function(){return _.w("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return B().persistentErrorMessageDescription})}}))}})))},"Cd");var sUR=new _.Dr("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var ufZ=bQ;bQ=function(E){function B(I){if(I){var T,e;(T=I.__spec)==null||(e=T.didUnmount)==null||e.call(T);for(T=0;T<I.childNodes.length;T++)B(I.childNodes[T])}}
ufZ==null||ufZ(E);C8(function(){for(var I=0;I<E.length;I++)B(E[I])})};var LuX=_.rp(function(E){var B=E.data;var I=E.score;var T=E.formattedScore;var e=E.onScoreChanged;var c=E.isEmbeddedInWebview;var Y=_.AK(),v=function(){var u;return _.h(B==null?void 0:(u=B())==null?void 0:u.buttonViewModel,_.sO)},y=function(){var u;
return(I==null?void 0:I())||Number(B==null?void 0:(u=B())==null?void 0:u.lastScore)||0},Z=function(){var u;
return(T==null?void 0:T())||((u=v())==null?void 0:u.title)||""},P,z=1;
if(E=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))E=Number(E),z=isNaN(E)?1:E/100;_.m$(function(){e==null||e(y());var u;var x=_.ha((u=v())==null?void 0:u.onTap);if(x){u=_.h(x,Q5r);var M,N,W;u=_.h(u==null?void 0:(M=u.panelLoadingStrategy)==null?void 0:(N=M.inlineContent)==null?void 0:(W=N.dialogViewModel)==null?void 0:W.customContent,m6Z)}else u=void 0;if(M=u)M.score=Z()});
E=_.TI(function(){var u,x,M=B==null?void 0:(u=B())==null?void 0:(x=u.loggingDirectives)==null?void 0:x.trackingParams;M&&_.cx(_.Q().resolve(_.pj),M);return!1});
_.uW(function(){if(Y.value){var u=Y.value.querySelector("button"),x=v();u&&x&&wYG(u,x);tK("yt-share-playable-with-high-score",function(){var M=y().toString(),N=B==null?void 0:B().onShareHighScoreCommand,W=B==null?void 0:B().highScoreShareClientParamIdentifier,U=c==null?void 0:c();N&&(U?(W=new pxt,M=_.$r(W,2,M),rZ(N,M.JSC$10157_serializeBinary())):W&&(_.Q().resolve(sUR).clientParams.set(W,{miniAppClientParams:{highScore:M}}),KDi(N,!1)))})}});
var m=function(){var u=v();u&&(I==null?0:I())&&u.accessibilityText&&(u.accessibilityText=u.accessibilityText.replace(P,Z()));P=Z();return{numberValue:y(),numberText:Z(),heightPx:36,fontSizeMultiplier:z,shouldAnimate:!(I==null||!I())&&!0}};
return _.w("yt-mini-app-score-button-view-model",{class:function(){var u={};return _.B$("mini-app-score-button-view-model-wiz",(u["mini-app-score-button-view-model-wiz--is-visible"]=y()!==0,u))},
el:Y,"on:click":E},_.AV(!1,function(){return _.w("span",{style:"display:none;"},y)}),_.w(_.hM,{data:function(){var u;
return B==null?void 0:(u=B())==null?void 0:u.buttonViewModel}},{buttonViewModel:function(u){return _.w(_.ne,{data:u.data,
animatedTextProps:m})}}))},"Dd");var MqZ=_.rp(function(E){var B,I=(B=_.cc("yt-mini-app-is-theater-mode-enabled"))!=null?B:!1,T=_.d("enable_playable_container_save_button"),e=_.d("enable_play_next_destination_page_in_toolbar");B={};return _.w("ytm-mini-app-top-bar-view-model",null,_.w("div",{class:_.RQ("yt-mini-app-top-bar-view-model",(B["yt-mini-app-top-bar-view-model--mobile"]=!1,B["yt-mini-app-top-bar-view-model--desktop"]=!0,B))},_.w("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.w(_.wU,{cond:function(){var c;
return!!E.data().backButtonEdu&&!((c=E.isExitMiniAppSeen)==null?0:c.call(E))},
then:function(){return _.w(_.hM,{data:function(){return E.data().backButtonEdu}},{buttonViewModel:_.ne})},
else:function(){return _.w(_.hM,{data:function(){return E.data().backButton}},{buttonViewModel:_.ne})}}),_.w(_.wU,{cond:function(){return E.data().viewAllButton&&!0},
then:function(){return _.w(_.hM,{data:function(){return E.data().viewAllButton}},{buttonViewModel:_.ne})}}),_.w(_.wU,{cond:function(){return E.data().title&&!0},
then:function(){return _.w("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return E.data().title})}})),_.w("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.w(_.wU,{cond:function(){var c;
return(c=E.isDesktopPlayPage)==null?void 0:c.call(E)},
then:function(){return _.w(_.VS,null,_.w(xxh,{highScoreButton:function(){return E.data().highScoreButton},
score:E.score,formattedScore:E.formattedScore,onScoreChanged:E.onScoreChanged,isEmbeddedInWebview:E.isEmbeddedInWebview}),_.w(GQU,{enableSaveButton:function(){return _.s_(T)},
saveButton:function(){return E.data().saveButton},
isSaved:E.isSaved,onSaveToggled:function(){return E.onSaveToggled}}),_.w(OnV,{menuButton:function(){return E.data().menuButton}}))},
else:function(){return _.w(_.wU,{cond:function(){return!1},
then:function(){return _.w(_.hM,{data:function(){return E.data().playPageButton}},{buttonViewModel:function(c){return _.w(_.ne,{data:c.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.w(xxh,{highScoreButton:function(){return E.data().highScoreButton},
score:E.score,formattedScore:E.formattedScore,onScoreChanged:E.onScoreChanged,isEmbeddedInWebview:E.isEmbeddedInWebview})}})}})),_.w("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.w(_.hM,{data:function(){return E.data().muteButton}},{toggleButtonViewModel:function(c){var Y=c.data;
return _.w(_.Le,{data:function(){var v,y;return Object.assign({},Y(),{isToggled:(y=(v=E.isAudioEnabled)==null?void 0:v.call(E))!=null?y:!0})},
onToggle:E.onAudioToggled,useOutlinedIcon:!0})}}),_.w(_.hM,{data:function(){return E.data().theatreModeButton}},{toggleButtonViewModel:function(c){var Y=c.data;
return _.w("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.w(_.Le,{data:function(){return Object.assign({},Y(),{isToggled:I})},
useOutlinedIcon:!0}))}}),_.w(nch,{fullscreenButton:function(){return E.data().fullscreenButton}}),_.w(_.wU,{cond:function(){return _.s_(e)&&E.data().viewAllButton&&!1},
then:function(){return _.w(_.hM,{data:function(){return E.data().viewAllButton}},{buttonViewModel:_.ne})}}),_.w(_.wU,{cond:function(){var c;
return!((c=E.isDesktopPlayPage)==null?0:c.call(E))},
then:function(){return _.w(_.VS,null,_.w(GQU,{enableSaveButton:function(){return _.s_(T)},
saveButton:function(){return E.data().saveButton},
isSaved:E.isSaved,onSaveToggled:function(){return E.onSaveToggled}}),_.w(OnV,{menuButton:function(){return E.data().menuButton}}))}}))))},"Ed");
MqZ.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var OnV=_.rp(function(E){return _.w(_.hM,{data:E.menuButton},{buttonViewModel:_.ne})},"Fd"),GQU=_.rp(function(E){var B=E.enableSaveButton;
var I=E.saveButton;var T=E.isSaved;var e=E.onSaveToggled;return _.w(_.wU,{cond:function(){return B()&&!(I==null||!I())},
then:function(){return _.w(_.hM,{data:function(){var c=_.h(I==null?void 0:I(),_.uO),Y;return{toggleButtonViewModel:Object.assign({},c,{isToggled:(Y=T==null?void 0:T())!=null?Y:!(c==null||!c.isToggled)})}}},{toggleButtonViewModel:function(c){return _.w(_.Le,{data:c.data,
onToggle:e})}})}})},"Gd"),xxh=_.rp(function(E){var B=E.highScoreButton;
var I=E.score;var T=E.formattedScore;var e=E.onScoreChanged;var c=E.isEmbeddedInWebview;return _.w(_.hM,{data:B},{miniAppScoreButtonViewModel:function(Y){return _.w(LuX,{data:Y.data,score:I,formattedScore:T,onScoreChanged:e,isEmbeddedInWebview:c})}})},"Hd"),nch=_.rp(function(E){E=E.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.w(_.VS,null):_.w(_.hM,{data:E},{buttonViewModel:_.ne})},"Id");_.Hnr=new _.Dr("DESKTOP_CURRENT_PAGE");var Xql=_.rp(function(E){var B=E.data;var I=_.d("force_active_time_logging_webview"),T=_.d("skip_logs_after_end_event"),e=!1,c=new eIV,Y=void 0,v=void 0,y=_.Q().resolve(TDX),Z=new EcZ,P=void 0,z=void 0,m=[],u=void 0,x=void 0,M=!1,N=!1,W=!1,U=!1,q=new _.Tv,f=_.Q().resolve(sUR),ed=_.Q().resolve(_.uz),K=_.Q().resolve(_.Fx(l_)),p4,sc=(p4=_.Q().resolve(_.Fx(_.Hnr)))==null?void 0:p4.getCurrentPage(),Gf=!1,xi=0,ki=function(FF){FF.preventDefault();return FF.returnValue=""},WG;
E=_.p(_.lQ(!((WG=_.cc("yt-mini-app-is-audio-enabled"))!=null&&!WG),void 0,"WhYQTd"));var rJ=E.next().value,Uc=E.next().value,CV;WG=_.p(_.lQ(!((CV=_.cc("exit-mini-app-seen-state"))==null||!CV),void 0,"jxhCJb"));var Bm=WG.next().value,LV=WG.next().value;CV=_.p(_.lQ(!1,void 0,"MuvDfe"));var I$=CV.next().value,bc=CV.next().value;CV=_.p(_.lQ(void 0,void 0,"u9DLoc"));var hz=CV.next().value,TU=CV.next().value;CV=_.p(_.lQ(void 0,void 0,"rykyJb"));var Wm=CV.next().value,z2=CV.next().value;CV=_.p(_.lQ(!0,void 0,
"d8FUvf"));var cG=CV.next().value,$I=CV.next().value;CV=_.p(_.lQ(!1,void 0,"w3Yzvd"));var tz=CV.next().value,pX=CV.next().value;CV=_.p(_.lQ(void 0,void 0,"ZhbHHc"));var OZ=CV.next().value,kl=CV.next().value;CV=_.p(_.lQ(0,void 0,"qHHGUc"));var Qd=CV.next().value,Yl=CV.next().value,jd=_.oH(),wr=function(){return B().isEmbeddedInWebview},et=function(){return B().hasPlayNextShelf};
tK("yt-page-type-changed",function(FF){if(_.d("enable_is_mini_app_page_active_bugfix"))FF.detail.newPageSubtype!=="mini_app"&&cG()&&mq();else if(FF=_.wwQ()==="mini_app",FF!==cG())if($I(FF),FF){var ws;FF=(ws=B().playableId)==null?void 0:ws.toString();FF!==void 0&&window.location.href.includes(FF)&&!N&&(U=!0,Qh(),c6(vm.value))}else FF||mq()});
tK("yt-action",function(FF){FF.detail.actionName==="yt-engagement-panel-visible-changed"&&FF.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&FF.detail.args[2]==="PAmini_app_panel"&&mq();_.d("enable_is_mini_app_page_active_bugfix")?FF.detail.actionName==="yt-history-load"&&!cG()&&(sc==null?0:sc.active)?($I(!0),Qh(),c6(vm.value)):FF.detail.actionName==="yt-history-load"&&cG()&&!B().isEmbeddedInWebview&&lT():cG()&&FF.detail.actionName==="yt-history-load"&&(U?U=!1:B().isEmbeddedInWebview||lT())});
_.dt(function(){ds()});
_.m$(function(){Qh()});
var Qh=function(){var FF=B().playableId,ws=B().localReleaseId,Z1=B().derivedDeviceInterface;if(N)_.OG(new _.P7("[MiniAppContainerViewModel] onEnter was called more than once"));else{N=!0;Y=new oSu(FF,ws,Z1,document.visibilityState==="visible");kcu(Y);v=new ajZ(FF);NDR(y,FF);BDh(Z,{showMiniAppAdCommand:B().showMiniAppAdCommand,isEmbeddedInWebview:B().isEmbeddedInWebview,playLogger:Y});PTc()&&(x=document.body.style.backgroundColor,_.gw(document.body,"background-color","black"));NV();zU();q=new _.Tv;
if(B().isEmbeddedInWebview){if(FF=(new URLSearchParams(window.location.search)).get("postPlayNonce"))jTR(Y,FF),Gf=!0;c.initialize({onAudioStateLoaded:function(nX){WL(nX)},
onMuteMiniApp:function(){WL(!1)},
onUnmuteMiniApp:function(){WL(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(nX){Gf||(jTR(Y,nX),Gf=!0)},
confirmExitMiniApp:function(){var nX,BL,$y;return _.a(function(Wh){if(Wh.nextAddress==1)return B().confirmExitMiniAppCommand?_.C(Wh,Promise.race([q.promise,Promise.resolve(!1)]),2):Wh.return();(nX=Wh.yieldResult)?!B().confirmExitMiniAppCommandEdu||($y=(BL=Bm)==null?void 0:BL())!=null&&$y?HM(B().confirmExitMiniAppCommand):(HM(B().confirmExitMiniAppCommandEdu),_.l9("exit-mini-app-seen-state","true",2592E6)):HM(B().closeMiniAppCommand);_.ER(Wh)})},
onNativeBenchmarkingMessageReceived:function(nX){nX=N6Z(_.qhQ(nX));if(_.Pf(nX,_.Xz,3,nmu)){var BL=_.Nd(nX,_.Xz,3,nmu),$y=Rqi();var Wh=ui($y.getSeconds())-ui(BL.getSeconds());BL=_.kr($y,2)-_.kr(BL,2);Wh<0&&BL>0?(Wh+=1,BL-=1E9):Wh>0&&BL<0&&(--Wh,BL+=1E9);Wh=(new kL).setSeconds(Wh);Wh=_.Yy(Wh,2,_.z7(BL),0);_.fX(nX,1,Wh)}var s8;(s8=z)==null||s8.returnNativeBenchmarkingMessage(nX)},
multiplayer3pAckStateLoaded:function(nX){lT(nX)},
exitMiniAppSeenStateLoaded:function(nX){B().confirmExitMiniAppCommandEdu&&LV(nX)},
onNavigateToNewMiniApp:function(){HM(B().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(nX){nX=new URLSearchParams(nX);var BL=void 0;nX.has("invite_code")&&(BL=new bJh,nX=nX.get("invite_code"),BL=_.$r(BL,1,nX));if(nX=BL){var $y;($y=z)==null||$y.sendGameData(nX)}},
onPauseMiniApp:function(){e=!0;ec()},
onResumeMiniApp:function(){e=!0;ZK()},
onAdFinished:function(nX){Z.onAdFinished(nX)}});
B().showMultiplayer3pConsentDialogCommand||q.resolve(!0);HM(B().onContainerReadyCommand)}else jTR(Y),q.resolve(!0);vcR(v,AfR(Y));AfR(Y).then(function(nX){nX={miniAppPlayData:{postPlayNonce:nX}};var BL,$y=(BL=B().loggingDirectives)==null?void 0:BL.trackingParams;$y&&_.lu().stateChanged($y,nX)});
FF=B().showSignInDialogCommand;!$pc()&&FF&&(_.l9("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),HM(FF));B().confirmExitMiniAppCommand&&K&&(FF=FDf(B().confirmExitMiniAppCommand))&&(K.customConfirmationCommand=FF)}},ds=function(){if(!T||N)x&&_.gw(document.body,"background-color",x),M=!1,u&&u.release(),v.flush().catch(function(FF){_.OG(FF)}),y.flush().catch(function(FF){_.OG(FF)}),f2h(Y),je(),z=void 0,T&&(N=!1),gcV(f)},mq=function(){$I(!1);
ds();bc(!1);kl(void 0);TU(void 0);z2(void 0);xi=0;Yl(0);T||(N=!1)},ec=function(){var FF;
(FF=z)==null||FF.onPause();u&&u.release();v.flush().catch(function(ws){_.OG(ws)});
y.flush().catch(function(ws){_.OG(ws)});
tZZ(Y)},ZK=function(){var FF;
(FF=z)==null||FF.onResume();zU();FF=Y;FF.isForeground=!0;x_(FF,"PLAY_EVENT_TYPE_PLAY_RESUME")},WL=function(FF){var ws;
(ws=z)==null||ws.onAudioToggled(FF);Uc(FF)},lT=function(FF){B().showMultiplayer3pConsentDialogCommand&&(B().isEmbeddedInWebview&&FF!==void 0&&q.resolve(FF),!FF&&_.wwQ()==="mini_app"&&HM(B().showMultiplayer3pConsentDialogCommand))},nK=function(){var FF,ws,Z1,nX;
return _.a(function(BL){if(BL.nextAddress==1){if(T&&!N)return BL.return();!B().isLivestream||B().disableVideoCapture||(FF=z)!=null&&FF.sendStartGameFrameCapture();ws=(new URL(window.location.href)).searchParams;if(ws.has("invite_code")){var $y=new bJh,Wh=ws.get("invite_code");Z1=_.$r($y,1,Wh);(nX=z)==null||nX.sendGameData(Z1)}I$()||(bc(!0),$y=Y,$y.state!==1?_.OG(new _.P7("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+rfD[$y.state])):(_.B7("mini_app_ids_without_game_ready").includes($y.JSC$14622_miniAppId)&&
($y.gameReady=!0),$y.state=2,$y.beforeReady=!1,LB($y,"ma_ffr"),x_($y,"PLAY_EVENT_TYPE_PLAY_READY")));return _.C(BL,q.promise,2)}HM(B().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();B().isEmbeddedInWebview||lT();_.ER(BL)})},ND=function(){var FF=Y;
FF.gameReady=!0;LB(FF,"ma_gr")},iW=function(FF){var ws;
return _.a(function(Z1){if(Z1.nextAddress==1)return _.q7(Z1,2),_.C(Z1,CeN(v,FF),4);if(Z1.nextAddress!=2)return _.W7(Z1,0);ws=_.RG(Z1);HM(B().showSavingErrorPopupCommand);throw ws;})},Rh=function(){var FF,ws;
return _.a(function(Z1){if(Z1.nextAddress==1)return _.q7(Z1,2),_.C(Z1,yWZ(v),4);if(Z1.nextAddress!=2)return FF=Z1.yieldResult,Z1.return(FF);ws=_.RG(Z1);HM(B().showLoadingErrorDialogCommand);throw ws;})},cn=function(FF){Y.logError(FF)},pc=function(FF,ws,Z1){qYR(Y,FF,ws,Z1)},cU=function(FF,ws){D26(Y,FF,ws)},$a=function(){!I&&B().isEmbeddedInWebview||_.Fg();
VZz(Y,!0);M||(window.addEventListener("beforeunload",ki,{capture:!0}),M=!0)},h1=function(FF){var ws,Z1,nX,BL,$y,Wh,s8;
return _.a(function(U1){if(U1.nextAddress==1)return y&&(!P||P<FF)&&FF>0?_.C(U1,SDR(y,FF),3):U1.jumpTo(0);ws=U1.yieldResult;Z1=_.p(ws);nX=Z1.next().value;BL=Z1.next().value;$y=nX;Wh=BL;((s8=$y)==null?0:s8.displayString)&&Wh&&(TU(Wh),z2($y.displayString));_.ER(U1)})},aj=function(FF){var ws=B().onBenchmarkingMessageReceivedCommand;
if(ws){var Z1=Rqi();_.V$(FF,3,nmu,Z1);rZ(ws,gml(FF))}},mQ=function(FF){var ws=B().onGameFrameReceivedCommand;
if(ws){var Z1=new Z0Z;var nX=new vet;var BL=xU(FF,1);nX=_.w9(nX,1,BL);FF=_.O8(FF,2);FF=_.$r(nX,2,FF);Z1=_.fX(Z1,2,FF);rZ(ws,zoN(Z1))}},NG=function(FF){var ws=B().onGameAudioDataReceivedCommand;
if(ws){var Z1=new Z0Z;var nX=new CI6;FF=_.O8(FF,1);nX=_.$r(nX,1,FF);Z1=_.fX(Z1,4,nX);rZ(ws,zoN(Z1))}},oB=function(){var FF=new URLSearchParams(window.location.search);
if(B().isEmbeddedInWebview&&FF&&FF.get("override_hl")==="true"&&FF.get("hl"))return FF.get("hl");FF=document.documentElement.lang;return FF!==""?FF:_.J2},ZX=function(FF){var ws=B().onShareInviteCodeCommand;
if(ws)if(B().isEmbeddedInWebview){var Z1=new pxt;FF=_.$r(Z1,1,FF);rZ(ws,a3Z(FF))}else Z1=B().inviteCodeShareClientParamIdentifier,f.clientParams.set(Z1,{miniAppClientParams:{inviteCode:FF}}),HM(ws)},Ig=function(FF){var ws,Z1,nX;
return _.a(function(BL){if(BL.nextAddress==1)return ws=B().onMiniAppOpenYtContentRequested,y&&_.d("enable_open_yt_content")&&ws?_.C(BL,JWt(y,FF),3):BL.jumpTo(0);Z1=BL.yieldResult;if(Z1==="OK")if(B().isEmbeddedInWebview){var $y=new i0U;nX=iE($y,2,GT,gs(FF));rZ(ws,arD(nX))}else ed.clientData.set("video_id",FF),HM(ws);_.ER(BL)})},G2=function(FF){xi+=_.kr(FF,3);
FF=Math.min(Math.log(1+xi/15E6*9)/Math.log(10),.99);Yl(FF);ag(FF)},ag=_.zV(function(FF){var ws=B().updateLoadingProgressCommand;
if(ws){var Z1=new i0U;FF=iE(Z1,3,GT,_.T7(FF));rZ(ws,arD(FF))}},100),mR=function(FF){return Ijz(Z,FF)},zU=function(){var FF,ws;
((FF=_.dbQ())==null?void 0:(ws=FF.wakeLock)==null?void 0:ws.request)!=null&&_.dbQ().wakeLock.request("screen").then(function(Z1){u=Z1}).catch(function(){})},vm=_.oH();
_.m$(function(){B().isSupportedCountry&&($pc()||_.d("enable_sign_in_promo")||!B().showSignInDialogCommand?c6(vm.value):HM(B().onMiniAppReadyCommand))});
var sX=function(){return _.w("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return I$()?0:-1},
el:vm})},c6=function(FF,ws){ws=ws===void 0?!1:ws;
var Z1=wf();Z1&&(ws||Z1.toString()!==FF.getAttribute("src"))&&(z=pYG(B().source,{isAudioEnabled:rJ,onFirstFrameReady:nK,onGameReady:ND,onSave:iW,onLoad:Rh,onError:cn,onSdkCalled:pc,onSdkPerformanceUpdate:cU,onClick:$a,onSendHighScore:h1,onBenchmarkingMessageReceived:aj,getLanguage:oB,onShareInviteCode:ZX,onResourceLoaded:G2,onOpenYTContent:Ig,onShowMiniAppAd:mR,onGameFrameReceived:mQ,onGameAudioReceived:NG},FF,Z1),iu(FF,"load",function(){LB(Y,"ma_il");iu(FF,"load",function(){c6(FF,!0)})}),_.QC(FF,
Z1))},wf=function(){var FF=B().url;
if(FF&&(FF=_.xv(FF),FF!==null)){if(B().source&&B().source==="MINI_APP_SOURCE_GAMESNACKS")FF=_.UR(FF,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.d("enable_origin_query_parameter_bugfix")){var ws=_.LJ(_.Q4J(FF.toString()));ws=new URLSearchParams(ws||"");ws.set("origin",window.location.origin);ws=ws.toString();FF=_.Ef(FF).toString();FF=_.KX($IZ.exec(FF)[0]+(ws.trim()?"#"+ws:""))}return FF}},YP=function(){var FF={};
FF=_.RQ("yt-mini-app-container-view-model__loading-screen",(FF["yt-mini-app-container-view-model__loading-screen--fade-out"]=I$,FF));var ws=function(){return I$()?1:Qd()};
return _.w("div",{class:FF},_.w(_.hM,{data:function(){return B().splashScreen}},{miniAppSplashScreenViewModel:function(Z1){return _.w(hID,{data:Z1.data,
loadingProgress:ws})}}))},NV=function(){m=[];
m.push(_.vV(window,"visibilitychange",function(){W||e&&wr()||(document.visibilityState==="visible"?ZK():ec())}));
m.push(_.vV(window,"pagehide",function(){ds()}));
m.push(_.vV(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&jd.value.dispatchEvent(new Event("tap"))},0)}));
m.push(_.vV(jd.value,"pointerdown",function(){VZz(Y,!1)},!0));
m.push(_.vV(jd.value,"pause",function(){W=!0;ec()}));
m.push(_.vV(jd.value,"play",function(){W=!1;ZK()}));
m.push(_.vV(jd.value,"exit",function(){ds()}));
var FF=navigator.keyboard,ws=FF&&FF.lock;m.push(_.vV(window,RJ$,function(){pX(BEU());BEU()?(B().hasPlayNextShelf&&cp("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),h2("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),ws&&FF.lock(["Escape"])):(B().hasPlayNextShelf&&h2("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),cp("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),ws&&FF.unlock())}));
B().showMultiplayer3pConsentDialogCommand&&m.push(_.vV(window,"yt-playables-ack-3p-data-usage",function(){Wu6(y)}));
B().confirmExitMiniAppCommandEdu&&m.push(_.vV(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.l9("exit-mini-app-seen-state","true",2592E6)}))},je=function(){m.forEach(function(FF){p8(FF)});
window.removeEventListener("beforeunload",ki,{capture:!0})},HM=function(FF){FF&&KDi(FF,B().isEmbeddedInWebview||!1)},h2=function(FF,ws){FF=_.p(jd.value.getElementsByClassName(FF));
for(var Z1=FF.next();!Z1.done;Z1=FF.next())Z1.value.classList.add(ws)},cp=function(FF,ws){FF=_.p(jd.value.getElementsByClassName(FF));
for(var Z1=FF.next();!Z1.done;Z1=FF.next())Z1.value.classList.remove(ws)};
return function(){var FF={};FF=_.RQ("yt-mini-app-container-view-model",(FF["yt-mini-app-container-view-model--desktop"]=!0,FF["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return B().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},FF["yt-mini-app-container-view-model--ios-web-view"]=PTc(),FF["yt-mini-app-container-view-model--no-top-bar"]=function(){return!B().topBar},FF["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return B().hasPlayNextShelf},FF["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return B().hasPlayNextShelf},FF["yt-mini-app-container-view-model--show-peek-below"]=function(){return!tz()&&B().hasPlayNextShelf},FF));
var ws={};ws=_.RQ("yt-mini-app-container-view-model__content",(ws["yt-mini-app-container-view-model__content--desktop-content"]=!0,ws["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return B().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},ws["yt-mini-app-container-view-model--desktop-play-page"]=function(){return B().hasPlayNextShelf},ws));
return _.w("mini-app-container-view-model",{el:jd},_.w("div",{class:FF},_.w(_.wU,{cond:function(){return B().topBar&&!tz()},
then:function(){return _.w(_.hM,{data:function(){return B().topBar}},{miniAppTopBarViewModel:function(Z1){return _.w(MqZ,{data:Z1.data,
isAudioEnabled:rJ,onAudioToggled:function(nX){WL(nX)},
score:hz,formattedScore:Wm,onScoreChanged:function(nX){P=nX},
isEmbeddedInWebview:wr,isSaved:OZ,onSaveToggled:function(nX){kl(nX)},
isExitMiniAppSeen:Bm,isDesktopPlayPage:et})}})}}),_.w("div",{class:ws},_.w(_.wU,{cond:cG,
then:function(){return sX()}}),_.w(_.wU,{cond:function(){return!B().isEmbeddedInWebview},
then:function(){return YP()}}))))}()},"Jd");
Xql.idomCompat=!0;_.oQ(Xql,"mini-app-container-view-model",{props:{data:_.Jh}});var rWR=_.rp(function(E){var B=E.data;return _.w("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.w("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.TI(function(){var I=B().onTap;I&&_.xg(I)})},_.w(_.wU,{cond:function(){return B().icon},
then:function(I){return _.w(_.i0,{icon:function(){return I().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.w("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return B().title})))},"Kd");
rWR.idomCompat=!0;var bnl=_.rp(function(E){var B=_.oH(),I=_.p(_.lQ(void 0,void 0,"kFCJ0c")),T=I.next().value,e=I.next().value;I=_.p(_.lQ(void 0,void 0,"PIPgWd"));var c=I.next().value,Y=I.next().value;I=_.p(_.lQ(void 0,void 0,"rV66ob"));var v=I.next().value,y=I.next().value,Z=function(){var W=T();return W!==void 0?Math.abs(W):void 0},P=function(){var W=Z();
return W===void 0||W<=3},z=function(){var W=Z();
var U=c(),q=v();W=W!==void 0&&U!==void 0&&q!==void 0?U-q-W:void 0;return W===void 0||W<=3},m=function(W){B.value&&B.value.scrollBy({top:0,
left:(_.HA("HTML_DIR")==="rtl"?-1:1)*W*B.value.clientWidth,behavior:"smooth"})},u=function(){var W;
e((W=B.value)==null?void 0:W.scrollLeft);var U;Y((U=B.value)==null?void 0:U.scrollWidth);var q;y((q=B.value)==null?void 0:q.clientWidth)},x=function(){m(-.5)},M=function(){m(.5)};
I=_.TI(function(){u()});
_.hA(function(){u();if(B.value){var W=new ResizeObserver(u);W.observe(B.value);_.dt(function(){W.disconnect()})}});
var N={};return _.w("yt-sponsorships-scrollable-shelf",{class:_.RQ("ytdSponsorshipsScrollableShelfHost",E.className)},_.w("div",{class:_.RQ("ytdSponsorshipsScrollableShelfContent",(N.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return E.data().previousButton&&E.data().nextButton&&!P()&&!z()},N.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return E.data().previousButton&&!P()&&z()},N.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return E.data().nextButton&&
P()&&!z()},N)),
el:B,"on:scroll":I},E.children),_.w(_.wU,{cond:function(){return!P()},
then:function(){return _.w(_.hM,{data:function(){return E.data().previousButton}},{buttonViewModel:function(W){return _.w(_.ne,{data:W.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:x})}})}}),_.w(_.wU,{cond:function(){return!z()},
then:function(){return _.w(_.hM,{data:function(){return E.data().nextButton}},{buttonViewModel:function(W){return _.w(_.ne,{data:W.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:M})}})}}))},"Ld");
bnl.idomCompat=!0;var AWu=_.rp(function(E){var B=E.data;E={};return _.w("yt-sponsorships-hub",{class:_.RQ("ytdSponsorshipsHubHost",(E.ytdSponsorshipsHubHostIndented=function(){return B().indented},E))},_.w("div",{class:"ytdSponsorshipsHubHeader"},_.w("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.w("div",{class:"ytdSponsorshipsHubAvatar"},_.w(_.hM,{data:function(){return B().avatar}},{avatarViewModel:_.yf})),_.w(_.wU,{cond:function(){return B().badgeImage},
then:function(I){return _.w("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.w("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.w("div",{class:"ytdSponsorshipsHubBadge"},_.w(_.Ja,{data:I,targetWidth:24,targetHeight:24,alt:""}))))}})),_.w("div",{class:"ytdSponsorshipsHubDetails"},_.w("div",{class:"ytdSponsorshipsHubTierName"},function(){return B().tierName}),_.w("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return B().membershipType}),_.w("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return B().membershipDurationOrExpiry})),_.w("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.w(_.hM,{data:function(){return B().manageButton}},{buttonViewModel:function(I){return _.w(_.ne,{data:I.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.w(_.hM,{data:function(){return B().actionMenuButton}},{buttonViewModel:function(I){return _.w(_.ne,{data:I.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.w("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return B().perksTitle}),_.w(bnl,{data:function(){return{previousButton:B().previousPerkButton,
nextButton:B().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.w("div",{class:"ytdSponsorshipsHubPerkCards"},_.w(_.hM,{data:function(){return B().perkCards}},{sponsorshipsHubPerkCardViewModel:rWR}),_.w(_.wU,{cond:function(){return B().viewAllPerksButton},
then:function(I){return _.w(ocN,{data:I})}}))))},"Md");
AWu.idomCompat=!0;var ocN=_.rp(function(E){var B=E.data;return _.w("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.w(_.hM,{data:function(){return B().button}},{buttonViewModel:_.ne}),_.w("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.w("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return B().title}),_.w("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return B().subtitle})))},"Nd");
ocN.idomCompat=!0;_.oQ(AWu,"yt-sponsorships-hub",{props:{data:_.Jh}});_.jUN=_.rp(function(E){var B=E.data;return _.w("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.c$({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var I;return((I=B().badgeCutoutRadius)!=null?I:14)+"px"}})},_.w("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.w(_.hM,{data:function(){return B().startAvatar}},{avatarViewModel:_.yf}),_.w(_.hM,{data:function(){return B().endAvatar}},{avatarViewModel:_.yf})),_.w(_.hM,{data:function(){return B().badge}},{contentPreviewImageViewModel:function(I){return _.w("div",
{class:"ytDualAvatarViewModelBadge"},_.w(_.AF,{data:I.data}))}}))},"Od");
_.jUN.idomCompat=!0;var kQZ=_.rp(function(E){var B=E.data;var I,T=!((I=_.Q().resolve(_.Fx(_.ME)))==null||!I());E=_.aJ(function(){var Z,P,z=T?(Z=B().header)==null?void 0:Z.backgroundColorDarkMode:(P=B().header)==null?void 0:P.backgroundColorLightMode;if(z!==void 0)return _.hR(z)},void 0,"UX2G6c");
I=_.aJ(function(){var Z,P;return T?(Z=B().header)==null?void 0:Z.backgroundImagePart1Dark:(P=B().header)==null?void 0:P.backgroundImagePart1Light},void 0,"GPAi1d");
var e=_.aJ(function(){var Z,P;return T?(Z=B().header)==null?void 0:Z.backgroundImagePart2Dark:(P=B().header)==null?void 0:P.backgroundImagePart2Light},void 0,"nboJld"),c=_.aJ(function(){return _.HA("HTML_DIR")==="rtl"},void 0,"LGJceb"),Y=_.oH(),v=!1,y=function(){var Z=Y.value;
if(Z&&!v){var P,z=(P=Z.parentElement)==null?void 0:P.parentElement;if(z)for(Z=Z.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),P=0;P<Z.length;++P){var m=Z[P];if(m instanceof HTMLElement){z.scrollTo({top:m.offsetTop+m.clientHeight/2-z.clientHeight/2,behavior:"smooth"});v=!0;break}}}};
_.uW(function(){var Z=Y.value;if(Z){var P=new ResizeObserver(y);P.observe(Z);_.dt(function(){P.disconnect()})}});
return _.w("yt-sponsorships-perks-list",{class:"ytdSponsorshipsPerksListHost",el:Y},_.w("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.w("div",{class:"ytdSponsorshipsPerksListHeader",style:_.c$({"background-color":E})},_.w("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.w(_.wU,{cond:I,then:function(Z){var P={};return _.w("div",{class:_.RQ((P.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=T,P.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!T,P.ytdSponsorshipsPerksListFlipped=
c,P))},_.w(_.Ja,{data:Z,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.w("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.w(_.wU,{cond:e,
then:function(Z){var P={};return _.w("div",{class:_.RQ((P.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=T,P.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!T,P.ytdSponsorshipsPerksListFlipped=c,P))},_.w(_.Ja,{data:Z,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.w("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.w(_.hM,{data:function(){var Z;
return(Z=B().header)==null?void 0:Z.dualAvatar}},{dualAvatarViewModel:_.jUN})))),_.w("div",{class:"ytdSponsorshipsPerksListBody"},_.w("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return B().title}),_.w(_.wU,{cond:function(){return B().perks},
then:function(Z){return _.w(_.Zt,{each:Z},function(P,z){var m={};return _.w("div",{class:_.RQ("ytdSponsorshipsPerksListPerkContainer",(m.ytdSponsorshipsPerksListSelectedPerk=function(){var u=z(),x=B().selectedPerkIndex;return u===x},m))},_.w(_.wU,{cond:function(){return z()>0},
then:function(){return _.w("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.w("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.w(_.wU,{cond:function(){return P.icon},
then:function(u){return _.w(_.i0,{icon:function(){return u().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.w("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.w("div",{class:"ytdSponsorshipsPerksListPerkTitle"},P.title),_.w("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.w(_.aS,{text:P.description})),_.w(_.wU,{cond:function(){return P.instructions},
then:function(){var u,x;return _.w("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.w("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(u=P.instructions)==null?void 0:u.title),_.w("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.w(_.aS,{text:(x=P.instructions)==null?void 0:x.text})))}}))),_.w(_.wU,{cond:function(){return P.emoji},
then:function(u){return _.w("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.w(_.Zt,{each:function(){return u()}},function(x){return _.w(_.Ja,{data:x,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.w(Uxh,{data:P}))})}})))},"Pd");
kQZ.idomCompat=!0;var Uxh=_.rp(function(E){var B=E.data;var I=function(Y,v){return Y===v},T=function(){var Y=B();
Y=_.h(Y==null?void 0:Y.badgesShelf,wx6);return Y!==void 0&&Y!==null?Y:{previousButton:{},nextButton:{}}},e=_.AK(),c=function(){var Y=e.value;
if(Y){var v=Y.parentElement;if(v){Y=Y.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var y=0;y<Y.length;++y){var Z=Y[y];if(Z instanceof HTMLElement){v.scrollTo({left:Z.offsetLeft+Z.clientWidth/2-v.clientWidth/2,behavior:"instant"});break}}}}};
_.uW(function(){var Y=e.value;if(Y){var v=new ResizeObserver(c);v.observe(Y);_.dt(function(){v.disconnect()})}});
return _.w("div",null,_.w(_.wU,{cond:function(){return B().badges},
then:function(Y){return _.w(bnl,{data:T},_.w("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:e},_.w(_.Zt,{each:function(){return Y()}},function(v,y){var Z={},P={},z={};
return _.w("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.w(_.wU,{cond:function(){return y()>0},
then:function(){return _.w("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.w("div",{class:_.RQ("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(Z.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return I(y(),B().currentBadgeIndex)},Z.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!I(y(),B().currentBadgeIndex)},Z))},_.w("div",{class:_.RQ("ytdSponsorshipsPerksListLoyaltyBadge",(P.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return I(y(),
B().currentBadgeIndex)},P.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!I(y(),B().currentBadgeIndex)},P))},_.w(_.wU,{cond:function(){return v.image},
then:function(m){var u={};return _.w("div",{class:_.RQ((u.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return I(y(),B().currentBadgeIndex)},u.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!I(y(),B().currentBadgeIndex)},u))},_.w(_.Ja,{data:m,
alt:""}))}})),_.w("div",{class:_.RQ("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(z.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return I(y(),B().currentBadgeIndex)},z))},v.title)))})))}}))},"Qd");
Uxh.idomCompat=!0;_.oQ(kQZ,"yt-sponsorships-perks-list",{props:{data:_.Jh}});_.oQ(_.rp(function(E){return _.w("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.w(_.wU,{cond:function(){return E.data().image},
then:function(B){return _.w(_.Ja,{className:"ytwFantasyEmptyStateViewModelImage",data:B,ariaHidden:!0,alt:""})}}),_.w(_.aS,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return E.data().title}}),_.w(_.aS,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return E.data().subtitle}}),_.w(_.hM,{data:function(){return E.data().primaryButton}},{buttonViewModel:function(B){return _.w(_.ne,{data:B.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Rd"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;var I;E=_.p(_.lQ(!((I=_.cc("yt-mini-app-is-theater-mode-enabled"))==null||!I),void 0,"CUtq5"));var T=E.next().value,e=E.next().value,c;I=(c=_.Q().resolve(_.Fx(zru)))!=null?c:function(){return _.w("div",null)};
_.bE("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){e(!0);_.l9("yt-mini-app-is-theater-mode-enabled",!0)});
_.bE("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){e(!1);_.l9("yt-mini-app-is-theater-mode-enabled",!1)});
c={};E={};var Y={};return _.w("mini-app-play-page-renderer",{class:_.RQ("miniAppPlayPageRendererHost",(c.miniAppPlayPageRendererHostDetailsView=function(){return!T()},c))},_.w("div",{class:_.RQ("miniAppPlayPageRendererGameContainer",(E.miniAppPlayPageRendererGameContainerDetailsView=function(){return!T()},E))},_.w(_.hM,{data:function(){return B().containerViewModel}},{miniAppContainerViewModel:Xql}),_.w(_.wU,{cond:function(){return!T()&&B().description},
then:function(){return _.w("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.w("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return B().description}))}})),_.w("div",{class:_.RQ("miniAppPlayPageRendererPlayNextContainer",(Y.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!T()},Y))},_.w(_.hM,{data:function(){return B().sectionList}},{sectionListRenderer:I})))},"Sd"),"mini-app-play-page-renderer",{props:{data:_.Jh}});var Nu=function(){var E=_.r.apply(this,arguments)||this;E.isSearch=!1;E.isConstrainedList=!1;E.hasChipsBar=!1;E.inReplyPanel=!1;E.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"}};E.monitorScroll=!0;E.SCROLL_ANIMATION_DURATION_MS=300;E.nextContinuation={continuationType:"sectionListContinuation"};return E};
_.L(Nu,_.r);_.l=Nu.prototype;
_.l.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(E){switch(E.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.d("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.d("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.l.created=function(){var E=this;this.JSC$14751_scrollAnimation=new _.sW(function(B){E.hostElement.scrollTop=B})};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.l.getItemsPath=function(){return"data.contents"};
_.l.replacePrimaryContent=function(E){this.set("data.contents",E)};
_.l.computeHasSortFilter=function(E){return!!E&&!!E.sortFilterSubMenuRenderer};
_.l.computeShouldScrollInPanel=function(E){var B;return!!(E==null?0:(B=E.scrollPaneStyle)==null?0:B.scrollable)};
_.l.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.VQ(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.l.scrollToTop=function(){this.hostElement.scrollTop=0};
_.l.scrollToItemSection=function(E){if(E=this.getItemByIdentifier(E))E=this.getScrollPositionForItem(E),this.hostElement.scrollTop!==E&&this.JSC$14751_scrollAnimation.start(this.hostElement.scrollTop,E,this.SCROLL_ANIMATION_DURATION_MS)};
_.l.getItemByIdentifier=function(E){var B=this.contents.querySelectorAll("ytd-item-section-renderer");if(B&&B.length!==0){var I=Array.from(B).findIndex(function(T){return T.sectionIdentifier===E});
return B[I===-1?0:I]}};
_.l.getScrollPositionForItem=function(E){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===E)return 0;E=_.zi(E).y+this.hostElement.scrollTop-_.zi(this.hostElement).y;return Math.min(E,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Up.Object.defineProperties(Nu.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.targetId)==="browse-feedFEclips"}}});
Nu.prototype.onScroll=Nu.prototype.onScroll;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.t6.YtLazyListBehavior),_.t("design:type",Object)],Nu.prototype,"ytLazyListBehavior",void 0);_.k([_.g(_.Gt.YtNextContinuationBehavior),_.t("design:type",Object)],Nu.prototype,"ytNextContinuationBehavior",void 0);
_.k([_.g(_.gSZ),_.t("design:type",Object)],Nu.prototype,"ytBooleanLogicBehavior",void 0);_.k([_.g(_.xo),_.t("design:type",Object)],Nu.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Nu.prototype,"data",void 0);_.k([_.X({value:2}),_.t("design:type",Number)],Nu.prototype,"initialCount",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],Nu.prototype,"autoFill",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.t("design:type",Boolean)],Nu.prototype,"hasSortFilter",void 0);_.k([_.X({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.t("design:type",Boolean)],Nu.prototype,"hideBottomSeparator",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.t("design:type",Boolean)],Nu.prototype,"shouldScrollInPanel",void 0);
_.k([_.X(),_.t("design:type",Object)],Nu.prototype,"isSearch",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Nu.prototype,"isConstrainedList",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],Nu.prototype,"responsiveSizing",void 0);_.k([_.X(),_.t("design:type",Object)],Nu.prototype,"hasChipsBar",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],Nu.prototype,"pageSubtype",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Nu.prototype,"engagementPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Nu.prototype,"liveChatEngagementPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Nu.prototype,"inReplyPanel",void 0);_.k([_.$7("#action-button"),_.t("design:type",HTMLElement)],Nu.prototype,"actionButton",void 0);_.k([_.X(),_.t("design:type",Object)],Nu.prototype,"scrollUpButtonData",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Nu.prototype,"engagementPanelDropdown",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Nu.prototype,"engagementPanelDialog",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Nu.prototype,"isClipList",null);_.k([_.$7("#contents"),_.t("design:type",HTMLElement)],Nu.prototype,"monitorScrollElement",void 0);_.k([_.$7("#contents"),_.t("design:type",HTMLElement)],Nu.prototype,"contents",void 0);
_.k([_.RN("scroll"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Nu.prototype,"onScroll",null);Nu=_.k([_.b({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Nu);
var tqV=_.VE()(Nu,"ytd-section-list-renderer",function(){if(PnX===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);PnX=E}E=PnX;return E},{mode:1});var fju;var VqZ;var qDR;var FuZ;var gW=function(){return _.r.apply(this,arguments)||this};
_.L(gW,_.r);gW.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
gW.prototype.onLikeButtonClick=function(E){E.stopPropagation();E.preventDefault()};
_.Up.Object.defineProperties(gW.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)!=null&&E.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)})}}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],gW.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],gW.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],gW.prototype,"ytRendererStamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],gW.prototype,"data",void 0);
_.k([_.X({selectorArgs:["data.likeStatusEntityKey"],selector:s1}),_.t("design:type",Object)],gW.prototype,"likeStatusEntity",void 0);_.k([_.S("data","likeStatusEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],gW.prototype,"likeButtonRenderer",null);gW=_.k([_.b({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],gW);
_.A(gW,"ytd-slim-metadata-toggle-button-renderer",function(){if(FuZ!==void 0)return FuZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
return FuZ=E},{mode:1});var SF=function(){var E=_.r.apply(this,arguments)||this;E.minimizePipBreakages=_.d("web_pip_minimize_breakages");E.showEqualizer=_.d("web_enable_playlist_video_lockup_equalizer");E.watchColorUpdate=_.d("kevlar_watch_color_update");E.actionMap={};return E};
_.L(SF,_.r);_.l=SF.prototype;_.l.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"}}}};
_.l.computeEditableClass=function(E){return E&&E.menu?"editable":""};
_.l.computeSelected=function(E){return!(E==null||!E.selected)};
_.l.computeUseColorPalette=function(E){return!!((E==null?0:E.lightColorPalette)&&(E==null?0:E.darkColorPalette))};
_.l.computeLargerPlaylistThumbs=function(E,B){return _.d("web_enable_playlist_bigger_thumbnails")&&!B};
_.l.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.l.onYtServiceRequestSent=function(E,B){B.endpoint&&this.isHideEnclosingAction(B.endpoint)&&!this.selected&&OGD(_.Wx(),this.data.videoId)};
_.l.isHideEnclosingAction=function(E){var B=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",E);E=this.get("likeEndpoint.status",E)==="INDIFFERENT";return B||E};
_.l.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.l.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Up.Object.defineProperties(SF.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var E;return!!(this.withinMiniplayer&&((E=this.data)==null?0:E.actionButtons))}}});
SF.prototype.onYtServiceRequestSent=SF.prototype.onYtServiceRequestSent;SF.prototype.canReorderChanged=SF.prototype.canReorderChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],SF.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.S_),_.t("design:type",Object)],SF.prototype,"ytdLockupBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],SF.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],SF.prototype,"withinMiniplayer",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],SF.prototype,"minimizePipBreakages",void 0);_.k([_.X({computed:"computeSelected(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],SF.prototype,"selected",void 0);
_.k([_.X({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],SF.prototype,"useColorPalette",void 0);_.k([_.X({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.t("design:type",Boolean)],SF.prototype,"largerPlaylistThumbs",void 0);_.k([_.X(),_.t("design:type",Object)],SF.prototype,"showEqualizer",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],SF.prototype,"canReorder",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],SF.prototype,"touchPersistentDragHandle",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],SF.prototype,"handleIsHovered",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],SF.prototype,"watchColorUpdate",void 0);_.k([_.S("largerPlaylistThumbs"),_.t("design:type",Number),_.t("design:paramtypes",[])],SF.prototype,"thumbnailWidth",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],SF.prototype,"showActionButtons",null);_.k([_.i6("canReorder"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],SF.prototype,"canReorderChanged",null);_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],SF.prototype,"onYtServiceRequestSent",null);
SF=_.k([_.b({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],SF);
_.A(SF,"ytd-playlist-panel-video-renderer",function(){if(qDR!==void 0)return qDR;var E=document.createElement("template");_.G(E,'\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="yt-icons:drag_handle" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return qDR=E},{mode:2});var JU=function(){return _.r.apply(this,arguments)||this};
_.L(JU,_.r);JU.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],JU.prototype,"data",void 0);JU=_.k([_.b({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],JU);
_.A(JU,"ytd-playlist-panel-supported-items",function(){if(VqZ!==void 0)return VqZ;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return VqZ=
E},{mode:1});E7$=!0;ZeZ("\\P{N}");var ZsJ;var DxR=_.yu("END_OF_PLAYLIST",void 0,"End of playlist"),Kuh=_.yu("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Wr=function(){var E=_.r.apply(this,arguments)||this;E.minimizePipBreakages=_.d("web_pip_minimize_breakages");E.updatedCoursePanel=_.d("move_three_dot_menu_to_playlist_panel_header_for_courses");E.reducedPlaylistHeight=_.d("web_playlist_mini_playlist_height");E.hideHeaderText=!1;E.useColorPalette=!1;E.collapsed=!1;E.collapsedPreServerOverride="not_tracked";
E.isHovered=!1;E.modernPanels=_.d("kevlar_watch_modern_panels");E.expandLabel=_.yu("MINIPLAYER_EXPAND_LABEL");E.collapseLabel=_.yu("MINIPLAYER_COLLAPSE_LABEL");E.isFloating=!1;E.metaPanel=!1;E.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};E.currentIndex=void 0;return E};
_.L(Wr,_.r);_.l=Wr.prototype;
_.l.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"}}}};
_.l.created=function(){this.scrollThrottle=new _.qH(this.onThrottledScroll,1E3,this)};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
_.l.computeOverflowMenuData=function(E){return E&&E.menu?E.menu:null};
_.l.computeCollapsible=function(E){return!E};
_.l.computeHasPlaylistButtons=function(E){return!(!E||!E.playlistButtons)};
_.l.computeHasSeparateSaveButton=function(E){return!(!E||!E.saveButton)};
_.l.computeHasToolbarButton=function(E,B){return!(!E||!(B||E.saveButton||E.menu))};
_.l.computePlaylistType=function(E){if(E&&E.playlistId)return E.playlistId.substring(0,4)};
_.l.computeCanReorder=function(E){return E?E.playlistId&&E.playlistId.startsWith("TLPQ")?!0:!!E.isEditable&&!E.isInfinite:!1};
_.l.attached=function(){var E=this;try{_.Q().resolve(_.Hx).setPlaylistComponent(this.hostElement)}catch(B){if(_.d("kevlar_park_on_playlist_token_killswitch"))throw B;_.gB().parkOrScheduleJob(function(){_.Q().resolve(_.Hx).setPlaylistComponent(E.hostElement)},2,"ci")}_.EK(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.l.detached=function(){_.BN(this.hostElement)};
_.l.computeTrailingIcon=function(E,B,I){return I?B?"yt-icons:collapse":"yt-icons:close":B?"yt-icons:expand":_.d("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.l.computeIndexMessage=function(E,B){return mp6(E+1)+" / "+mp6(B)};
_.l.onRenderStamperFinished=function(){if(this.scrollForStampDom){var E=!0;this.isHovered&&(E=!1);if(this.collapsed||this.hidden)E=!1;E&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.l.collapseChanged=function(){var E=this;this.collapsed||(_.dT(this.ytTaskEmitterBehavior.getTaskManager(),function(){E.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.l.hiddenChanged=function(){var E=this;this.hidden||_.dT(this.ytTaskEmitterBehavior.getTaskManager(),function(){E.scrollToCurrentVideo()})};
_.l.setupReordering=function(){var E=_.n(this.hostElement).querySelector("#items");K6u?_.rZu(this.ytReorderableBehavior,E,E,"playlist-drag-handle"):_.rZu(this.ytReorderableBehavior,E,E)};
_.l.scrollToCurrentVideo=function(){var E=this;_.Ll.addJob(function(){var B=_.n(E.hostElement).querySelector("#items");if(B){B.style.setProperty("padding-bottom","");var I=_.n(E.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(I){B=I.parentElement||_.ss(document);var T=B||_.ss(document);var e=_.zi(I),c=_.zi(T),Y=_.f1R(T);if(T==_.ss(document)){var v=e.x-T.scrollLeft;e=e.y-T.scrollTop}else v=e.x-c.x-Y.left,e=e.y-c.y-Y.top;I=jgu(I);c=T.clientHeight-
I.height;Y=T.scrollLeft;var y=T.scrollTop;Y+=v-(T.clientWidth-I.width)/2;T=new _.Cb(Y,y+(e-c/2));B.scrollLeft=T.x;B.scrollTop=T.y}}},8)};
_.l.dataChanged=function(){var E=this;_.X_R(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.AJ(this,function(){_.PC(E.ytTaskEmitterBehavior.getTaskManager(),function(){E.ytRendererBehavior.markDirty();E.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.l.updateNowPlayingOverlay=function(){_.d("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.l.onPlaylistLockupNowPlaying=function(E,B){B&&(this.activeNowPlayingRenderer=B);this.updateNowPlayingOverlay()};
_.l.onScroll=function(){this.scrollThrottle.fire()};
_.l.onThrottledScroll=function(){var E=this;_.PC(this.ytTaskEmitterBehavior.getTaskManager(),function(){E.ytRendererBehavior.markDirty()})};
_.l.onToggleExpanded=function(E){this.collapsible&&_.XN(E).tagName!=="A"&&!_.XZ(_.W8(E),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.l.setCollapsed=function(E){this.collapsible&&(this.collapsed=E,_.Ta(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.l.handleCollapsedFromData=function(E){if(E){var B=E.playlistPanelCollapseState;B==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||B==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),B=B==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==B&&this.setCollapsed(B)):this.currentPlaylistId!==E.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(B=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==B&&this.setCollapsed(B),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=E.playlistId}};
_.l.handleDrop=function(E){var B=E.currDragItem;E=B.data.playlistSetVideoId;var I=_.XF(B.parentNode.childNodes,B),T=void 0;I>0&&(T=B.parentNode.childNodes[I-1].data.playlistSetVideoId);B=_.Wx();if(B.responsePlaylistData&&B.responsePlaylistData.contents){var e=IGc(E,B.responsePlaylistData);B.responsePlaylistData=(0,_.a_.unsafeClone)(B.responsePlaylistData);sBc(B.responsePlaylistData.contents,e,I);B.queueProxy?Til(B.queueProxy,e,I,E,T):B.playlistProxy&&Til(B.playlistProxy,e,I,E,T);_.XA(B,_.rB(B,B.response?
B.response.autoplayRenderer:void 0))}};
_.l.handleDarkModeChange=function(E){E!==this.isDarkTheme&&(this.isDarkTheme=E)};
_.l.colorPaletteChanged=function(){var E,B=((E=this.data)==null?void 0:E.contents)||[],I;E=_.p(B);for(B=E.next();!B.done;B=E.next()){B=B.value;var T=void 0;if((T=B.playlistPanelVideoRenderer)==null?0:T.selected){E=B.playlistPanelVideoRenderer;T=B=void 0;(I=this.isDarkTheme?(B=E)==null?void 0:B.darkColorPalette:(T=E)==null?void 0:T.lightColorPalette)&&_.zI(this.hostElement,I);break}}this.useColorPalette=!!I};
_.Up.Object.defineProperties(Wr.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var E,B;return!((E=this.data)==null||!E.playlistId)&&!((B=this.data)==null||!B.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var E=_.Q().resolve(_.Fx(_.Hx)),B;if(((B=this.data)==null?0:B.contents)&&(E==null?0:E.hasAutoplayData())){var I;if(((I=this.playlistLoopStateEntity)==null?void 0:I.state)==="PLAYLIST_LOOP_STATE_ONE"){if(E=this.data.currentIndex,E!==void 0){var T,e;var c=(T=this.data.contents[E])==null?void 0:(e=T.playlistPanelVideoRenderer)==null?void 0:e.title}}else{var Y,v=(Y=_.h(E.getAutoplayEndpoint(),_.kh))==null?void 0:Y.videoId,y,Z;c=(y=this.data.contents.find(function(P){var z;
return((z=P.playlistPanelVideoRenderer)==null?void 0:z.videoId)===v}))==null?void 0:(Z=y.playlistPanelVideoRenderer)==null?void 0:Z.title}return c}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)!=null&&E.nextVideoLabel?this.nextVideoTitle?_.U3(this.data.nextVideoLabel)+":":DxR:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var E;if(((E=this.data)==null?0:E.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.jj(Kuh);var B;return(B=this.data)==null?void 0:B.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T=(E=this.data)==null?void 0:(B=E.playlistButtons)==null?void 0:(I=B.menuRenderer)==null?void 0:I.topLevelButtons;if(T)for(E=_.p(T),B=E.next();!B.done;B=E.next())if(B=B.value,B.playlistLoopButtonRenderer)return B.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var E;return!!(this.collapsed&&((E=this.data)==null?0:E.nextVideoLabel))}}});
Wr.prototype.colorPaletteChanged=Wr.prototype.colorPaletteChanged;Wr.prototype.onPlaylistLockupNowPlaying=Wr.prototype.onPlaylistLockupNowPlaying;Wr.prototype.updateNowPlayingOverlay=Wr.prototype.updateNowPlayingOverlay;Wr.prototype.dataChanged=Wr.prototype.dataChanged;Wr.prototype.hiddenChanged=Wr.prototype.hiddenChanged;Wr.prototype.collapseChanged=Wr.prototype.collapseChanged;Wr.prototype.onRenderStamperFinished=Wr.prototype.onRenderStamperFinished;Wr.prototype.onMouseLeave=Wr.prototype.onMouseLeave;
Wr.prototype.onMouseEnter=Wr.prototype.onMouseEnter;_.k([_.g(_.OI),_.t("design:type",Object)],Wr.prototype,"ironResizableBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Wr.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(JZr.YtPlaylistPanelBehavior),_.t("design:type",Object)],Wr.prototype,"ytPlaylistPanelBehavior",void 0);
_.k([_.g(_.oy.YtTaskEmitterBehavior),_.t("design:type",Object)],Wr.prototype,"ytTaskEmitterBehavior",void 0);_.k([_.g(_.bHz),_.t("design:type",Object)],Wr.prototype,"ytReorderableBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Wr.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Wr.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Wr.prototype,"actionHandlerBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],Wr.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Wr.prototype,"autoplayData",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Wr.prototype,"withinMiniplayer",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wr.prototype,"minimizePipBreakages",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wr.prototype,"updatedCoursePanel",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wr.prototype,"reducedPlaylistHeight",void 0);_.k([_.X({computed:"setMenuData_(data)"}),_.t("design:type",Object)],Wr.prototype,"menuRendererData",void 0);_.k([_.X({computed:"computeOverflowMenuData(data)"}),_.t("design:type",Object)],Wr.prototype,"overflowMenuDataTopRow",void 0);_.k([_.X({computed:"computeOverflowMenuData(data)"}),_.t("design:type",Object)],Wr.prototype,"overflowMenuData",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wr.prototype,"hideHeaderText",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wr.prototype,"useColorPalette",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.t("design:type",Boolean)],Wr.prototype,"collapsible",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wr.prototype,"collapsed",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Wr.prototype,"hidden",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.t("design:type",Boolean)],Wr.prototype,"hasPlaylistButtons",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.t("design:type",Boolean)],Wr.prototype,"hasSeparateSaveButton",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.t("design:type",Boolean)],Wr.prototype,"hasToolbar",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.t("design:type",String)],Wr.prototype,"playlistType",void 0);_.k([_.X(),_.t("design:type",Object)],Wr.prototype,"isHovered",void 0);_.k([_.X({selectorArgs:["playlistLoopStateEntityKey"],selector:_.oR4}),_.t("design:type",Object)],Wr.prototype,"playlistLoopStateEntity",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wr.prototype,"modernPanels",void 0);_.k([_.X({value:56}),_.t("design:type",Number)],Wr.prototype,"scrollMargin",void 0);_.k([_.X({computed:"computeCanReorder(data)"}),_.t("design:type",Boolean)],Wr.prototype,"canReorder",void 0);_.k([_.X(),_.t("design:type",Object)],Wr.prototype,"expandLabel",void 0);_.k([_.X(),_.t("design:type",Object)],Wr.prototype,"collapseLabel",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wr.prototype,"isFloating",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Wr.prototype,"metaPanel",void 0);_.k([_.X({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.t("design:type",String)],Wr.prototype,"trailingIcon",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],Wr.prototype,"isDarkTheme",void 0);
_.k([_.X({selector:_.O3}),_.t("design:type",Boolean)],Wr.prototype,"miniplayerIsActive",void 0);_.k([_.X({selector:function(E){return E.watch.playerState}}),
_.t("design:type",Number)],Wr.prototype,"playerState",void 0);_.k([_.X(),_.t("design:type",Object)],Wr.prototype,"activeNowPlayingRenderer",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Wr.prototype,"moveThreeDotMenuToTopRow",null);_.k([_.S("data","autoplayData","playlistLoopStateEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],Wr.prototype,"nextVideoTitle",null);
_.k([_.S("data","nextVideoTitle"),_.t("design:type",String),_.t("design:paramtypes",[])],Wr.prototype,"nextVideoLabel",null);_.k([_.S("collapsed"),_.t("design:type",String),_.t("design:paramtypes",[])],Wr.prototype,"buttonAriaLabel",null);_.k([_.S("data","playlistId","longBylineText"),_.t("design:type",Object),_.t("design:paramtypes",[])],Wr.prototype,"mixLongByLine",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Wr.prototype,"playlistLoopStateEntityKey",null);
_.k([_.RN("mouseenter"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wr.prototype,"onMouseEnter",null);_.k([_.RN("mouseleave"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wr.prototype,"onMouseLeave",null);_.k([_.X({reflectToAttribute:!0}),_.S("data","collapsed"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Wr.prototype,"showNextVideoHeader",null);
_.k([_.RN("yt-rendererstamper-finished"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wr.prototype,"onRenderStamperFinished",null);_.k([_.EM("collapsed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wr.prototype,"collapseChanged",null);_.k([_.EM("hidden"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wr.prototype,"hiddenChanged",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wr.prototype,"dataChanged",null);_.k([_.EM("playerState","miniplayerIsActive"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wr.prototype,"updateNowPlayingOverlay",null);_.k([_.RN("yt-playlist-lockup-now-playing-active"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],Wr.prototype,"onPlaylistLockupNowPlaying",null);
_.k([_.EM("data","isDarkTheme"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wr.prototype,"colorPaletteChanged",null);Wr=_.k([_.b({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Wr);
_.RIZ=_.VE()(Wr,"ytd-playlist-panel-renderer",function(){if(fju===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);fju=E}E=fju;return E},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var E0u;var XV=function(){var E=_.r.apply(this,arguments)||this;E.modern=_.d("web_button_rework");return E};
_.L(XV,_.r);XV.prototype.computeShouldButtonBeVertical=function(E,B){return E||B};
XV.prototype.onYtServiceRequestSent=function(E,B){(E=_.h(B.endpoint,_.AC))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.aL("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:E.status})):this.handleLikeEndpoint(E))};
XV.prototype.computelikeStatusEntityKey=function(E){return E==null?void 0:E.likeStatusEntityKey};
XV.prototype.handleLikeEndpoint=function(E){E.status==="LIKE"?this.JSC$14776_ytdDislikeToggleButtonRenderer.toggle(!1):E.status==="DISLIKE"?this.JSC$14776_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14776_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14776_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Up.Object.defineProperties(XV.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var E;return sRd(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(E=this.likeStatusEntity)==null?void 0:E.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var E;return sRd(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(E=this.likeStatusEntity)==null?void 0:E.likeStatus)}}});
XV.prototype.onYtServiceRequestSent=XV.prototype.onYtServiceRequestSent;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],XV.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],XV.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],XV.prototype,"vertical",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],XV.prototype,"textTransform",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],XV.prototype,"useShortsIcon",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],XV.prototype,"underIconLabel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],XV.prototype,"modern",void 0);_.k([_.X({value:"left"}),_.t("design:type",String)],XV.prototype,"buttonTooltipPosition",void 0);
_.k([_.X(),_.t("design:type",Object)],XV.prototype,"overrides",void 0);_.k([_.$7("#like-button"),_.t("design:type",Object)],XV.prototype,"JSC$14776_ytdLikeToggleButtonRenderer",void 0);_.k([_.$7("#dislike-button"),_.t("design:type",Object)],XV.prototype,"JSC$14776_ytdDislikeToggleButtonRenderer",void 0);_.k([_.S("data","likeStatusEntity.likeStatus"),_.t("design:type",Object),_.t("design:paramtypes",[])],XV.prototype,"likeButton",null);
_.k([_.S("data","likeStatusEntity.likeStatus"),_.t("design:type",Object),_.t("design:paramtypes",[])],XV.prototype,"dislikeButton",null);_.k([_.X({computed:"computelikeStatusEntityKey(data)"}),_.t("design:type",String)],XV.prototype,"likeStatusEntityKey",void 0);_.k([_.X({selectorArgs:["likeStatusEntityKey"],selector:s1}),_.t("design:type",Object)],XV.prototype,"likeStatusEntity",void 0);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],XV.prototype,"onYtServiceRequestSent",null);XV=_.k([_.b({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],XV);
var BRt=_.VE()(XV,"ytd-like-button-renderer",function(){if(E0u===void 0){var E=document.createElement("template");_.G(E,'\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<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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);E0u=E}E=E0u;return E},{mode:1});_.$O6={};
_.$O6.YtConditionalRendererBehavior=[_.R.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(E,B){var I=this,T,e;return _.a(function(c){switch(c.nextAddress){case 1:if(!B)return I.hidden=!0,I.showSpinner=!1,c.return();if((T=E)==null?0:(e=T.visibilityCondition)==null?0:e.mode)switch(E.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return c.jumpTo(5);default:return c.jumpTo(6)}I.showSpinner=
!1;I.hidden=!0;return _.C(c,I.shouldShow_(E),4);case 4:I.hidden=!c.yieldResult;c.jumpTo(0);break;case 5:return _.C(c,I.shouldShow_(E),8);case 8:I.showSpinner=c.yieldResult;I.hidden=!1;c.jumpTo(0);break;case 6:return I.showSpinner=!1,_.C(c,I.shouldShow_(E),9);case 9:I.hidden=!c.yieldResult,_.ER(c)}})},
shouldShow_:function(E){return E&&E.supportedDatas&&E.supportedDatas.rendererVisibilityConditionData&&E.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(E.supportedDatas.rendererVisibilityConditionData.showIf):E&&E.visibilityCondition&&E.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(E.visibilityCondition.showIf):E&&E.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(E.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(E){switch(E){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(E){switch(E){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var E=_.I2(this.hostElement,"yt-get-mdx-status");return E.length==1&&E[0].connected},
isLocationPermissionGranted_:function(){var E;return _.a(function(B){return B.nextAddress==1?navigator.permissions?_.C(B,navigator.permissions.query({name:"geolocation"}),3):B.jumpTo(2):B.nextAddress!=2?(E=B.yieldResult,B.return(Promise.resolve(E.state==="granted"))):B.return(Promise.resolve(!1))})}}];var IHz=function(E,B){B=B===void 0?{}:B;return function(I){var T=document.createElement(E),e;var c=(e=T.polymerController)!=null?e:T;ByD(T,c,I,B);return T}}("yt-icon");var TRV=function(E){var B=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];jN6();_.ka("ytglobal.ytUtilActivityCallback_",function(){_.Ta(E,"yt-user-activity")});
new q3(function(){return B.JSC$14788_onMouseMove});
document.addEventListener("scroll",function(){return B.onScroll});
window.addEventListener("resize",function(){return B.onResize})},eR6=function(E,B,I){B in E.eventJobIds||(I=_.xm().addLowPriorityJob(function(){_.Fg();
delete E.eventJobIds[B]},I),E.eventJobIds[B]=I)};
TRV.prototype.onScroll=function(E){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):E.target===document&&eR6(this,"scroll",200)};
TRV.prototype.onResize=function(){eR6(this,"resize",200)};
TRV.prototype.JSC$14788_onMouseMove=function(){eR6(this,"mousemove",100)};
_.SbX=function(E){E.scrollEventsToIgnore+=1;E.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){E.scrollEventsToIgnore--},500))};var lHu=function(E){this.element=E;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
lHu.prototype.showFeedbackDialog=function(E,B,I,T){var e=cpV();if(!e)return!1;var c=J86();c.productId=e;B&&(c.flow="submit",c.report={description:B});I&&(cpV()==="59"?c.callback=_.JA(function(){_.hK("userFeedbackEvent",{});I()}):c.callback=_.JA(I));
c.bucket=T||_.HA("GOOGLE_FEEDBACK_BUCKET","Other");ivX(c);E=pi6(this,"GFEEDBACK",E);try{_.nUZ(c,E)}catch(Y){return _.SI(Y),!1}return!0};
lHu.prototype.showHelpDialog=function(E,B,I){var T=this,e=cpV();if(!e)return!1;var c={helpCenterPath:"/youtube",productData:pi6(this,"GUIDED_HELP",I)};ivX(c);var Y=J86();Y.context=E||c.productData.context||"default";Y.defaultHelpArticleId=B;Y.enableSendFeedback=!0;(_.WA("gapi.load")||function(v,y){return y()})("client",function(){try{var v=CiU(e,c);
if(_.d("web_always_load_chat_support")&&!T.chatSupportLoaded)try{v.JSC$7859_loadChatSupport(Y),T.chatSupportLoaded=!0}catch(y){}v.startHelp(Y)}catch(y){_.SI(y)}})};
var cpV=function(){var E=_.HA("GOOGLE_FEEDBACK_PRODUCT_ID");E||_.SI(Error("di"));return E},ivX=function(E){E&&(E.locale=_.d("kevlar_help_use_locale")?_.HA("INNERTUBE_CONTEXT_HL","en"):_.HA("HTML_LANG","en"))},pi6=function(E,B,I){var T=E.productData;
delete T.origin;T.device=_.C4();var e;a:{if(e=document.createElement("canvas")){var c=e.getContext("experimental-webgl",{stencil:!0});if(c){var Y=c.getExtension("WEBGL_debug_renderer_info");if(Y){e=c.getParameter(Y.UNMASKED_RENDERER_WEBGL);break a}}if(c=e.getContext("webgl")){e=c.getParameter(c.RENDERER);break a}}e=null}T.gpu=e;T.isSDC=!!_.HA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(e=_.HA("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.a_.extend(T,e);_.guB(B,T);_.Shd(T);(E=_.Ta(E.element,"yt-get-autonav-pause-debug-state"))&&
E.length&&(T.autonav_pause_state=E[0]);E=_.Rd();T.browser_resolution=E.width+"\u00d7"+E.height+"@"+(window.devicePixelRatio||1)+"x";I&&_.a_.extend(T,I);return T};
lHu.prototype.resetProductData=function(){this.productData={}};var YJU=function(E){this.feedbackManager=new lHu(E)};
YJU.prototype.showFeedbackDialog=function(E,B,I,T){return this.feedbackManager.showFeedbackDialog(E,B,I,T)};
YJU.prototype.showHelpDialog=function(E,B,I){return this.feedbackManager.showHelpDialog(E,B,I)};var aHN=function(){this.baseUrl="";this.aTag=document.createElement("a")},tFD=function(E,B,I){I=I===void 0?{}:I;
I.pbj||(I.pbj=1);I=_.O8t(B,I);E.baseUrl&&I&&!_.kP(I)[1]&&!_.tA(I)&&(B=E.baseUrl,ic(B,"/")&&(B=B.slice(0,-1)),_.lc(I,"/")&&(I=I.slice(1)),I=B+"/"+I);Cr(E.aTag,c1(I||""));return E.aTag.href};
aHN.prototype.fetchData=function(E){return _.GEi(E)};
aHN.prototype.postData=function(E,B){var I={method:"POST"};if(B){for(var T=_.p(Object.keys(B)),e=T.next();!e.done;e=T.next()){e=e.value;var c=B[e];_.B6(c)&&(B[e]=JSON.stringify(c))}I.postParams=B}return _.GEi(E,I)};
_.fWZ=function(E,B,I,T,e){E=tFD(E,B,I);if(!E)throw T=Error("ei"),Object.assign(T,{params:B}),T;return _.GEi(E,e,T)};
aHN.prototype.requestDataForServiceEndpoint=function(E,B){if(_.h(E,_.H64))return this.fetchData("/getAccountSwitcherEndpoint");B=B||{};var I=_.h(E,UTZ);I?B.se=I.base64EncodedServiceEndpoint:B.sej=JSON.stringify(E);(I=_.nC())&&_.d("enable_service_ajax_csn")&&(B.csn=I);B.theme=_.Oq();_.h(E,nHc)&&_.HA("DELEGATION_CONTEXT")&&(B.delegation_context=JSON.stringify(_.HA("DELEGATION_CONTEXT")));I=null;for(var T in E)if(ic(T,"Endpoint")||ic(T,"Command")){I=T;break}if(!I){var e=Error("fi");Object.assign(e,{params:E});
_.L0D(e,"WARNING");return new _.cC(function(Y,v){v(e)})}T={name:I};
var c;(I=(c=_.h(E,_.a2))==null?void 0:c.signal)&&(T.signal=I);(c=_.AA(window.location.href))&&c.internalcountrycode&&(T.internalcountrycode=c.internalcountrycode);c="/service_ajax";_.d("debug_forward_web_query_parameters")&&(c=_.WSB(c,window.location.search));c=_.Ur(c,T);E.clickTrackingParams&&_.qU(c,{itct:E.clickTrackingParams});return this.postData(c,B)};_.v0X=new _.Dr("GFEEDBACK_TOKEN");var ypU;var CaN;var wil;var Zvu;var rW=function(){var E=_.r.apply(this,arguments)||this;E.compact=!1;return E};
_.L(rW,_.r);rW.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
rW.prototype.computeHasIcon_=function(E){return!!E};
rW.prototype.isSignInIcon_=function(E){return E=="yt-icons:prompted_sign_in"};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],rW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.$O6.YtConditionalRendererBehavior),_.t("design:type",Object)],rW.prototype,"ytConditionalRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],rW.prototype,"data",void 0);
_.k([_.X({computed:"computeIcon_(data.icon)"}),_.t("design:type",Object)],rW.prototype,"icon_",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.t("design:type",Boolean)],rW.prototype,"hasIcon_",void 0);_.k([_.X({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.t("design:type",Boolean)],rW.prototype,"signInIcon_",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],rW.prototype,"compact",void 0);
rW=_.k([_.QE({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],rW);
_.A(rW,"yt-player-error-message-renderer",function(){if(Zvu===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;wil===void 0&&(wil=document.createElement("template"));var T=wil;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Zvu=E}E=Zvu;return E},{mode:2});var PaD;var zRl;var bz=function(){return _.r.apply(this,arguments)||this};
_.L(bz,_.r);bz.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
bz.prototype.computeIcon_=function(E){return E?"yt-icons:"+E.iconType.toLowerCase():"error_outline"};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],bz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],bz.prototype,"data",void 0);_.k([_.X({computed:"computeIcon_(data.icon)"}),_.t("design:type",Object)],bz.prototype,"icon_",void 0);bz=_.k([_.QE({is:"yt-player-kav-renderer",disableElementRegistration:!0})],bz);
_.A(bz,"yt-player-kav-renderer",function(){if(zRl===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;PaD===void 0&&(PaD=document.createElement("template"));var T=PaD;I.call(B,T.content.cloneNode(!0),E.content.firstChild);zRl=E}E=zRl;return E},{mode:2});_.oQ(_.rp(function(E){var B=_.oH(),I=_.p(_.lQ(0,void 0,"gCmSbf")),T=I.next().value,e=I.next().value;I=_.p(_.lQ(null,void 0,"Rj9zMe"));var c=I.next().value,Y=I.next().value;_.uW(function(){r84(B.value,e,Y);B.value.scrollIntoView()});
I=bs4.bind(null,E.data,T);tK("resize",function(){var v=c();if(T()===1&&v!==null){var y;(y=window.grecaptcha)==null||y.reset(v)}});
return _.w("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.w("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.w("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var v,y;return(v=E.data().accessibility)==null?void 0:(y=v.accessibilityData)==null?void 0:y.label}),_.w(_.aS,{text:I,
className:_.RQ("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.w("div",{el:B,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Td"),"yt-player-captcha-view-model",{props:{data:_.bu}});var oui=!1;_.mOV=_.rp(function(E){var B=E.data;return _.w("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.w(_.wU,{cond:function(){return B().icon},
then:function(I){return _.w("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.w(_.Ja,{data:I,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.w(_.wU,{cond:function(){return B().title},
then:function(I){return _.w("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.w(_.aS,{text:I}))}}),_.w(_.wU,{cond:function(){return B().description},
then:function(I){return _.w("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.w(_.aS,{text:I}))}}),_.w(_.hM,{data:function(){return B().primaryButton}},{buttonViewModel:function(I){return _.w(_.ne,{data:I.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.w(_.hM,{data:function(){return B().secondaryButton}},{buttonViewModel:function(I){return _.w(_.ne,{data:I.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Ud");
_.mOV.idomCompat=!0;var QqZ=_.rp(function(E){var B=E.data;_.k6();return _.w("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.w("div",{class:"player-interstitial-renderer-wiz__scrim"},_.w(_.hM,{data:function(){return B().content}},{interstitialViewModel:_.mOV})))},"Vd");
QqZ.idomCompat=!0;_.oQ(QqZ,"yt-player-interstitial-renderer",{props:{data:_.Jh}});var ou=function(){var E=_.r.apply(this,arguments)||this;E.noBackground=!1;E.compact=!1;E.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return E};
_.L(ou,_.r);ou.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"}}}};
ou.prototype.onUpdatePlayerErrorMessageCommand_=function(E){if(_.h(E,EfZ)){var B;if(E=(B=_.h(E,EfZ))==null?void 0:B.newPlayerErrorMessageRenderer)this.data=E}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],ou.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ou.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],ou.prototype,"status",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ou.prototype,"noBackground",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ou.prototype,"compact",void 0);ou=_.k([_.QE({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],ou);
var dOh=_.VE()(ou,"yt-playability-error-supported-renderers",function(){if(CaN===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;ypU===void 0&&(ypU=document.createElement("template"));var T=ypU;I.call(B,T.content.cloneNode(!0),E.content.firstChild);CaN=E}E=CaN;return E},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var A8d=void 0,UpG=void 0;var foD=new Rf$;var pJ=new _.Dr("ENTITY_STATE_TOKEN"),AU=new _.Dr("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var hRh=function(E){this.store=E;this.hZL=new _.$mX},D2G=function(E,B,I){var T,e;
if(!(e=((T=B.playabilityStatus)==null?void 0:T.status)!=="OK")){E=E.store;var c;e=B.offlineState&&((c=B.videoDetails)==null?0:c.videoId)?_.d("enable_pl_r_c_cd")?IMi(E.getState().entities,B.videoDetails.videoId):!!cBG(E.getState().entities,B.videoDetails.videoId):!1}if(e)return!0;e=KyJ(B);if(e===1){if(_.d("ab_v_vid_sig")){var Y,v=(Y=B.videoDetails)==null?void 0:Y.videoId;if(!v||!I||v!==I){var y;B=new _.P7("282054944_vid",{aro:I,l26:(y=B.videoDetails)==null?void 0:y.videoId});_.xV(B)}}return!0}bMJ=
0;var Z,P;y=(v=B.auxiliaryUi)==null?void 0:(Z=v.messageRenderers)==null?void 0:(P=Z.bkaEnforcementMessageViewModel)==null?void 0:P.displayType;if(e!==3&&(y==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||y==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;y={reason:_.KO(_.yu("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.d("ks_something_wrong_learn_more")?jXB("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.KO(_.yu("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:_.KO("282054944")};sqN(B,{playerErrorMessageRenderer:y});return!1},KlD=function(E,B){if(Il6(B)){_.ij(1,!0);
var I=(I=Il6(B))&&_.jRG()?I:void 0;I?(sqN(B,{enforcementMessageViewModel:I}),E.hZL.increment("IN_PLAYER"),_.ij(5)):(E.hZL.increment("SKIP_DISPLAY"),_.ij(2))}},sqN=function(E,B){E.playabilityStatus=Object.assign({},E.playabilityStatus,{status:"ERROR",
errorScreen:B});E.videoDetails=void 0};
hRh.prototype.handleResponse=function(E,B){if(E.playabilityStatus){var I,T,e,c=(B==null?void 0:(I=B.innerTubeRequest)==null?void 0:I.videoId)||(B==null?void 0:(T=B.innerTubeRequest)==null?void 0:(e=T.playerRequest)==null?void 0:e.videoId);D2G(this,E,c)&&KlD(this,E)}};
hRh[F1]=[pJ];var qYQ=new _.Dr("ADBLOCK_DETECTION_SERVICE_TOKEN");var Kf=function(E){this.rIN=E};
Kf.prototype.bindInnertubeChallengeFetcher=function(E){this.rIN.bicf(E)};
Kf.prototype.registerChallengeFetchedCallback=function(E){this.rIN.bcr(E)};
Kf.prototype.getLatestChallengeResponse=function(){return this.rIN.blc()};var G4R;_.jF=function(E,B,I){var T=this;this.network=E;this.options=B;this.networkStatusManager=I;this.aQ=null;if(B.useBotguardEverywhere){var e=new _.Tv;this.aQ=e.promise;_.$i.ytAtRC&&_.wT(_.Ll,function(){var c,Y;return _.a(function(v){if(v.nextAddress==1){if(!_.$i.ytAtRC)return v.return();c=uqV(null);return _.C(v,T.eN(c),2)}Y=v.yieldResult;_.$i.ytAtRC&&_.$i.ytAtRC(JSON.stringify(Y));_.ER(v)})});
Iwc().then(function(c){var Y,v,y,Z;return _.a(function(P){if(P.nextAddress==1)return c.bindInnertubeChallengeFetcher(function(z){return T.eN(uqV(z))}),_.C(P,Med(),2);
Y=P.yieldResult;v=c.getLatestChallengeResponse();y=v.challenge;if(!y)throw Error("gi");Z={challenge:y,pW:Du(y),gS:Y,bgChallenge:new tC};e.resolve(Z);c.registerChallengeFetchedCallback(function(z){z=z.challenge;if(!z)throw Error("hi");z={challenge:z,pW:Du(z),gS:Y,bgChallenge:new tC};T.aQ=Promise.resolve(z)});
_.ER(P)})})}else B.preload&&LeN(this,new Promise(function(c){_.PC(_.Ll,function(){c(xOz(T))},0)}))};
G4R=function(E){var B={preload:!0,useBotguardEverywhere:_.d("attmusi")},I=!1;if(typeof B==="boolean")var T={preload:B};else typeof B==="undefined"?T={preload:!0}:(T=B,I=!!B.nzu);B=I?void 0:new _.Xg;_.jF.instance=new _.jF(E,T,B);return _.jF.instance};
_.jF.prototype.rpC=function(){var E=this;return _.a(function(B){return B.nextAddress==1?_.C(B,Promise.race([E.aQ,null]),2):B.return(!!B.yieldResult)})};
_.jF.prototype.guy=function(E,B,I){var T=this,e,c,Y;return _.a(function(v){T.aQ===null&&LeN(T,xOz(T));e=!1;c={};Y=function(){var y,Z,P;return _.a(function(z){switch(z.nextAddress){case 1:return _.C(z,T.aQ,2);case 2:y=z.yieldResult;c.challenge=y.challenge;if(!y.gS){"c1a"in y.pW&&(c.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");z.jumpTo(3);break}Z=Object.assign({},{c:y.challenge,e:E},B);_.q7(z,4);e=!0;if(_.d("attbs")&&!_.d("attmusi")){P=_.Erz(y.gS,{d6:Z});z.jumpTo(6);break}return _.C(z,y.gS.snapshot({d6:Z}),
7);case 7:P=z.yieldResult;case 6:P?c.webResponse=P:c.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.W7(z,3);break;case 4:_.RG(z),c.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(E==="ENGAGEMENT_TYPE_PLAYBACK"){var m=y.pW,u={};if(m.c6a){var x=Number(_.HA("DCLKSTAT",0));u.reportingStatus=String(Number(m.c)^(isNaN(x)?0:x))}m.c6b&&(u.broadSpectrumDetectionResult=String(Number(m.c)^Number(_.HA("CATSTAT",0))));c.adblockReporting=u}return z.return(c)}})};
return v.return(Promise.race([Y(),Ovh(I,function(){var y=Object.assign({},c);e&&(y.error="ATTESTATION_ERROR_VM_TIMEOUT");return y})]))})};
var uqV=function(E){var B={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};E&&(B.interpreterHash=E);return B},xOz=function(E,B){B=B===void 0?0:B;
var I,T,e,c,Y,v,y,Z,P,z,m,u;return _.a(function(x){switch(x.nextAddress){case 1:I=uqV($8D().uni);if(_.d("att_fet_ks"))return _.q7(x,7),_.C(x,E.eN(I),9);_.q7(x,4);return _.C(x,n0D(E,I),6);case 6:Y=x.yieldResult;e=Y.fFH;c=Y.pYT;T=Y;_.W7(x,3);break;case 4:return _.RG(x),_.OG(Error("ii`"+B)),MH6(E,864E5),x.return({challenge:"",pW:{},gS:void 0,bgChallenge:void 0});case 9:T=x.yieldResult;if(!T)throw Error("ji");if(!T.challenge)throw Error("ki");e=T.challenge;c=Du(e);if("c1a"in c&&(!T.bgChallenge||!T.bgChallenge.program))throw Error("li");
_.W7(x,3);break;case 7:v=_.RG(x);_.OG(v);B++;if(B>=5)return _.OG(Error("ii`"+B)),MH6(E,864E5),x.return({challenge:"",pW:{},gS:void 0,bgChallenge:void 0});y=1E3*Math.pow(2,B-1)+Math.random()*1E3;return x.return(new Promise(function(M){_.PC(_.Ll,function(){M(xOz(E,B))},y)}));
case 3:Z=$Zt(c);MH6(E,Z*1E3);P=void 0;if(!("c1a"in c&&T.bgChallenge)){x.jumpTo(10);break}z=BNf(T.bgChallenge);_.q7(x,11);return _.C(x,TM$($8D(),z),13);case 13:_.W7(x,12);break;case 11:return m=_.RG(x),_.OG(m),x.return({challenge:e,pW:c,gS:P,bgChallenge:z});case 12:return _.q7(x,14),P=new _.HR({challenge:z,yu:{nR:"aGIf"}}),_.C(x,P.wTe,16);case 16:_.W7(x,10);break;case 14:u=_.RG(x),_.OG(u),P=void 0;case 10:return x.return({challenge:e,pW:c,gS:P,bgChallenge:z})}})};
_.jF.prototype.eN=function(E){var B=this,I;return _.a(function(T){I=B.networkStatusManager;if(!I||I.isNetworkAvailable())return T.return(B.network.eN(E));_.HN("att_pna",void 0,"attestation_challenge_fetch");return T.return(new Promise(function(e){I.listenOnce("publicytnetworkstatus-online",function(){B.network.eN(E).then(e)})}))})};
var HvX=function(E){if(!E)throw Error("ji");if(!E.challenge)throw Error("ki");var B=E.challenge,I=Du(B);if("c1a"in I&&(!E.bgChallenge||!E.bgChallenge.program))throw Error("li");return Object.assign({},E,{fFH:B,pYT:I})},n0D=function(E,B){var I,T,e,c,Y;
return _.a(function(v){switch(v.nextAddress){case 1:I=void 0,T=0,e={};case 2:if(!(T<5)){v.jumpTo(4);break}if(!(T>0)){v.jumpTo(5);break}e.opi=1E3*Math.pow(2,T-1)+Math.random()*1E3;return _.C(v,new Promise(function(y){return function(Z){_.PC(_.Ll,function(){Z(void 0)},y.opi)}}(e)),5);
case 5:return _.q7(v,7),_.C(v,E.eN(B),9);case 9:return c=v.yieldResult,v.return(HvX(c));case 7:I=Y=_.RG(v),Y instanceof Error&&_.OG(Y);case 8:T++;e={opi:void 0};v.jumpTo(2);break;case 4:throw I;}})},LeN=function(E,B){E.aQ=B},NRX=function(E){var B,I,T;
return _.a(function(e){if(e.nextAddress==1)return _.C(e,Promise.race([E.aQ,null]),2);B=e.yieldResult;var c=xOz(E);E.aQ=c;(I=B)==null||(T=I.gS)==null||T.dispose();_.ER(e)})},MH6=function(E,B){var I=Date.now()+B,T=function(){var e;
return _.a(function(c){e=I-Date.now();return e<1E3?_.C(c,NRX(E),0):(_.PC(_.Ll,T,Math.min(e,6E4)),c.jumpTo(0))})};
T()},Ovh=function(E,B){return new Promise(function(I){_.PC(_.Ll,function(){I(B())},E)})};var g0u=function(){};
g0u.prototype.processContext=function(E){var B=_.jF.instance;if(!B)return _.op();var I=i5F(E);return I?new bU(B.guy(I,lwG(E),500).then(function(T){var e;(E==null?0:(e=E.innerTubeRequest)==null?0:e.context)||(E.innerTubeRequest.context={});e=E.innerTubeRequest.context;e.request||(e.request={});e.request.attestationResponseData=T})):_.op()};var SJ6=function(E){this.innertubeTransportService=E};
SJ6.prototype.eN=function(E){_.HN("att_fsr",void 0,"attestation_challenge_fetch");return _.Me(this.innertubeTransportService,E,_.f9(_.Ul$)).then(function(B){_.HN("att_frr",void 0,"attestation_challenge_fetch");return B})};_.JpN=function(E){this.innertubeTransportService=E};var WeX=new _.Dr("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var Xiz=function(){},bvh=function(E,B,I,T,e){var c=_.HA("YPC_MB_URL");
_.o$d(c).then(function(){rpV(c,E,B,I,T,e)})},rpV=function(E,B,I,T,e,c){try{var Y=payments.business.integration,v=payments.business.integration.Style.create().withMaterialDesignStyle(),y=Y.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.d("enable_window_constrained_buy_flow_dialog")&&(y=y.usingPopupStyle("windowConstrained"));c&&(y=y.usingCloseCallback(c));var Z=I?I:_.HA("YPC_GB_LANGUAGE"),P=_.HA("SESSION_INDEX");Y.bootstrap.fromPaymentsUrl(E);Y.bootstrap.asMashupMode(y).usingGaiaIndex(P).usingLocale(Z).usingStyle(v).usingDefaultActivityStatusChangeHandler().inStandaloneContext(Y.standaloneContextAuthId.forGaia()).purchaseManager(B,function(z){T&&T(z)}).load(void 0,e)}catch(z){throw e&&e(z),_.xV(z),z;
}};var o0z=new _.Dr("PURCHASE_MANAGER_TOKEN");var Aph=function(){var E=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return E.videos},
getContinuationsPresent:function(){return E.continuationsPresent},
setVideos:function(B){E.videos=B},
getRecommendedVideos:function(){return E.recommendedVideos},
setRecommendedVideos:function(B){E.recommendedVideos=B}}};
Aph.prototype.addVideos=function(E){E&&(this.videos=E.filter(function(B){return!!_.YVQ(B)}).map(function(B){var I=_.YVQ(B);
a:{var T;if(B.playlistVideoRenderer&&((T=B.playlistVideoRenderer)==null?0:T.voteSortTiebreaker))var e=B.playlistVideoRenderer.voteSortTiebreaker;else{if(_.h(B,Eg)){var c;if(T=(e=_.h(B,Eg))==null?void 0:(c=e.playlistItemData)==null?void 0:c.voteSortTiebreaker){e=T;break a}}e=""}}return{itemId:I,videoId:_.y0F(B),voteCount:_.C5J(B),voteSortTiebreaker:e}}),this.continuationsPresent=!!_.h(E[E.length-1],_.IP))};
var jq6=function(E,B){return E.videos.findIndex(function(I){return I.itemId===B})},UOz=function(E,B){return E.recommendedVideos.findIndex(function(I){return I.itemId===B})},k4l=function(E){E={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:E}}}}};_.Q().resolve(_.Dt).resolveCommand(E)};var tHu=function(){Aph.apply(this,arguments)};
_.L(tHu,Aph);
var r8V=function(E,B,I,T){if(!E.parentElem)throw Error("qi");var e=jq6(E,B);e===-1&&(e=UOz(E,B),e=e!==-1?e+E.videos.length:-1);if(e===-1)throw Error("ri");var c=e>=E.videos.length?E.recommendedVideos[e-E.videos.length]:E.videos[e];c.voteCount=I;c.voteSortTiebreaker=Date.now().toString();e>=E.videos.length?E.recommendedVideos.splice(e-E.videos.length,1):E.videos.splice(e,1);var Y=E.videos;for(var v=0,y=Y.length-1;v<=y;){var Z=Math.floor((v+y)/2);if(Y[Z].voteCount<c.voteCount)y=Z-1;else if(Y[Z].voteCount>c.voteCount)v=
Z+1;else{a:{var P=c.voteSortTiebreaker;var z=Y[Z].voteSortTiebreaker;if(P.length!==z.length)P=P.length>z.length;else{for(var m=0;m<P.length;m++){var u=P.charCodeAt(m),x=z.charCodeAt(m);if(u>x){P=!0;break a}if(u<x)break}P=!1}}P?y=Z-1:v=Z+1}}Y=v;if(Y===-1)throw Error("si");E.videos.splice(Y,0,c);e!==Y&&fHU(E,e,Y,B,I,T)},fHU=function(E,B,I,T,e,c){var Y,v=(Y=E.parentElem)==null?void 0:Y.children,y=Math.min(B,I),Z=Math.max(B,I);
if(v)for(Y=y;Y<=Z;Y++)v[Y].style.viewTransitionName="item-"+String(Y);document.startViewTransition(function(){if(E.parentElem){var P=E.parentElem.children;if(!(!P||B<0||B>=P.length||I<0||I>=P.length)){var z=P[B];if(z){z.remove();E.showRefreshPill=I>=E.videos.length-1&&E.continuationsPresent;if(!E.showRefreshPill){P=P[I]||null;var m;(m=E.parentElem)==null||m.insertBefore(z,P)}_.$O(E.parentElem,"yt-update-video-data-voting-animation",{toIdx:I,itemId:T,newVoteCount:e,voteStatus:c,hideItem:E.showRefreshPill})}}}}).finished.then(function(){if(v)for(var P=
y;P<=Z;P++)v[P].style.viewTransitionName="";
if(E.showRefreshPill)k4l(_.yu("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var z;if(z=P=(z=E.parentElem)==null?void 0:z.children[I])z=P.getBoundingClientRect(),P=z.bottom,z=!(z.top>=0&&P<=E.clientHeight);z&&(z=_.CO(B>I?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(B-I)),k4l(z))}})};var FeD=function(E,B){var I=this;E?this.innertubeTransportServicePromise=Promise.resolve(E):B&&(this.innertubeTransportServicePromise=B(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Gh(3E3,function(T){return VHD(I,T)},0);
this.validateMiniAppVideoIdRateLimiter=new Gh(3E3,function(T){return qJl(I,T)},1)},NDR=function(E,B){E.JSC$14902_miniAppId=B;
E.reportMiniAppValueRateLimiter=new Gh(3E3,function(I){return VHD(E,I)},0);
E.validateMiniAppVideoIdRateLimiter=new Gh(3E3,function(I){return qJl(E,I)},1)},SDR=function(E,B){var I;
return _.a(function(T){if(T.nextAddress==1)return _.C(T,E.reportMiniAppValueRateLimiter.call(B),2);I=T.yieldResult;return T.return([I,B])})},VHD=function(E,B){var I,T,e,c,Y,v,y;
return _.a(function(Z){switch(Z.nextAddress){case 1:return _.C(Z,E.innertubeTransportServicePromise,2);case 2:return I=Z.yieldResult,T=_.f9(Dk6),e=Date.now(),c={externalPostId:E.JSC$14902_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(e/1E3),nanos:Math.round(e%1E3*1E6)},intValue:""+B}},_.q7(Z,3),_.C(Z,_.Me(I,c,T),5);case 5:Y=Z.yieldResult;_.W7(Z,4);break;case 3:throw v=_.RG(Z),v;case 4:if(Y){if("error"in Y&&Y.error)throw Y.error;if(Y.errorMetadata)throw Error("ti`"+
Y.errorMetadata.status);if(y=Y.userStatResult)return Z.return(y);throw Error("ui");}throw Error("vi");}})},Wu6=function(E){var B,I,T,e,c;
_.a(function(Y){switch(Y.nextAddress){case 1:return _.C(Y,E.innertubeTransportServicePromise,2);case 2:return B=Y.yieldResult,I=_.f9(Dk6),T={externalPostId:E.JSC$14902_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.q7(Y,3),_.C(Y,_.Me(B,T,I),5);case 5:e=Y.yieldResult;_.W7(Y,4);break;case 3:throw c=_.RG(Y),c;case 4:if(e==null)throw Error("vi");if("error"in e&&e.error)throw e.error;if(e.errorMetadata)throw Error("ti`"+e.errorMetadata.status);_.ER(Y)}})};
FeD.prototype.flush=function(){var E=this;return _.a(function(B){return B.nextAddress==1?_.C(B,E.reportMiniAppValueRateLimiter.flush(),2):_.C(B,E.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var JWt=function(E,B){return _.a(function(I){return I.nextAddress==1?_.C(I,E.validateMiniAppVideoIdRateLimiter.call(B),2):I.return(I.yieldResult)})},qJl=function(E,B){var I,T,e,c,Y,v;
return _.a(function(y){switch(y.nextAddress){case 1:return _.C(y,E.innertubeTransportServicePromise,2);case 2:return I=y.yieldResult,T=_.f9(jvZ),e={videoId:B},_.q7(y,3),_.C(y,_.Me(I,e,T),5);case 5:c=y.yieldResult;_.W7(y,4);break;case 3:throw Y=_.RG(y),Y;case 4:if(c){if("error"in c&&c.error)throw c.error;if(c.errorMetadata)throw Error("ti`"+c.errorMetadata.status);if(v=c.playabilityStatus)return y.return(v.status);throw Error("wi");}throw Error("vi");}})};
FeD[F1]=[_.Fx(_.P8),_.Fx(mcr)];var DOt=function(){this.clientData=new Map};
DOt.prototype.getData=function(E){return this.clientData.get(E)};var Ke$=function(E){this.store=E};
Ke$.prototype.handleResponse=function(E){(E=_.h(E.frameworkUpdates,Jk))&&_.vP(E,this.store)};
Ke$[F1]=[_.sy];var RRr=new _.Dr("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var Edz={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,1,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var BcX=new _.Dr("ICON_SET_TOKEN"),$vX=new _.Dr("ICON_URL_PROVIDER_TOKEN"),IJN=new _.Dr("PREFETCH_ICONS_TOKEN"),Tcz=new _.Dr("ICON_MAP_FN_TOKEN");var UW={},ee$=(UW.ACCESS_TIME="clock",UW.ACCOUNT_BOX="person_account",UW.ACCOUNT_BOX_CAIRO="person_account_cairo",UW.ACCOUNT_CIRCLE="person_circle",UW.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",UW.ACCOUNT_LINKED="account_link_success",UW.ACCOUNT_UNLINKED="account_link",UW.ADD_FRIEND="people",UW.ADD_TO_LIBRARY=$m("add"),UW.ADD_TO_PLAYLIST="add",UW.ADD_TO_QUEUE_TAIL="list_queue",UW.ADD_TO_REMOTE_QUEUE="list_music",UW.ADD_TO_WATCH_LATER="clock",UW.ADD_VIDEO_LINK="film_strip_add",UW.ALERT_WARN_RED="alert_triangle",
UW.ARROW_BACK="arrow_left",UW.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",UW.ARROW_DROP_DOWN="chevron_down",UW.ARROW_DROP_UP="chevron_up",UW.ARROW_FORWARD="arrow_right",UW.AUDIOTRACK="audio",UW.AUTO_AWESOME="sparkle",UW.AVATAR_ANONYMOUS="person_circle",UW.AVATAR_LOGGED_OUT="person_circle",UW.BACK="arrow_left",UW.BAR_CHART="bar_graph",UW.BLOCK="slash_circle_left",UW.BLOCK_USER="slash_circle_left",UW.BOOKMARK_BORDER="bookmark",UW.BREAKING_NEWS_ALT_1="article_alert",UW.BROADCAST_CAIRO="podcast_cairo",
UW.BUG_REPORT="bug",UW.CAMERA_ALT="camera",UW.CAMPAIGN="megaphone",UW.CANCEL="x_circle",UW.CAPTIONS="closed_caption",UW.CAST_OUTLINE="chromecast",UW.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",UW.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",UW.CHAT="message_bubble_left",UW.CHAT_BUBBLE="message_bubble_empty",UW.CHECK_BOX_OUTLINE_BLANK="box_empty",UW.CHECK_CIRCLE_OUTLINE="check_circle",UW.CHECK_CIRCLE_THICK="check_circle",UW.CLARIFY="article_clarify",UW.CLOSED_CAPTION_SELECTED="closed_caption",UW.CLOSE=
"x_mark",UW.CLOUD_UPLOAD="cloud_arrow_up",UW.COLLAPSE="chevron_up",UW.COLLAPSE_CAIRO="chevron_up_cairo",UW.COLLECTION="layers",UW.COLOR_LENS="palette",UW.COMMENT="message_bubble_right",UW.CONSENT_SHIELD="person_shield",UW.CONTENT_CUT="scissors",UW.CONTENT_CUT_CAIRO="scissors_cairo",UW.COURSE=_.d("web_enable_course_icon_update")?"creator_academy":"lightbulb",UW.COURSE_CAIRO=_.d("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",UW.CREATION_LIVE="radar_live",UW.CREATION_UPLOAD=
"my_videos",UW.CREATION_UPLOAD_RED="upload",UW.CREATOR_STUDIO="youtube_studio",UW.DELETE="trash_can",UW.DELETE_SWEEP="trash_can",UW.DESKTOP="laptop",UW.DISLIKE="thumb_down",UW.DISLIKE_SELECTED="thumb_down",UW.DISMISSAL="x_mark",UW.DISMISS_QUEUE="list_remove",UW.DOWN_ARROW="arrow_down",UW.DO_NOT_DISTURB="slash_circle_left",UW.DRAFT="paper_corner_folded",UW.DRAG_HANDLE="bars_2",UW.EDIT="pencil",UW.EMOJI="face_very_happy",UW.EMOJI_FLAGS="flag",UW.EMOJI_OBJECTS="lightbulb",UW.EMOJI_PEOPLE="face_very_happy",
UW.EMOJI_RECENT="clock",UW.EMPTY_HEART="heart",UW.EMPTY_LIKE="thumb_up",UW.ERROR_BLACK="alert_circle",UW.ERROR_OUTLINE="alert_circle",UW.EXIT_APP="arrow_in",UW.EXIT_TO_APP="arrow_in",UW.EXPAND="chevron_down",UW.EXPAND_ALL="chevron_expand",UW.EXPAND_CAIRO="chevron_down_cairo",UW.EXPAND_LESS="chevron_up",UW.EXPAND_MORE="chevron_down",UW.EXPLORE="compass",UW.EXPLORE_DESTINATION="compass",UW.EXTERNAL_LINK="open_new",UW.FAB_UPLOAD="upload",UW.FACE_HAPPY_OUTLINE="face_happy",UW.FACT_CHECK="article_check",
UW.FASHION_LOGO="fashion",UW.FASHION_LOGO_CAIRO="fashion_cairo",UW.FAVORITE="heart",UW.FEEDBACK="message_bubble_alert",UW.FEEDBACK_CAIRO="message_bubble_alert_cairo",UW.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",UW.FILL_ARROW_SOLID_UP_16="arrow_solid_up",UW.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",UW.FLAG="flag",UW.FULL_HEART="heart",UW.GAME_CONSOLE_DPAD="game_console_dpad",UW.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",UW.GAMING_LOGO="gaming",UW.GAMING_LOGO_CAIRO="gaming_cairo",UW.GO_TO_PAGE=
"arrow_right",UW.GROUPS="people_group",UW.HAPPY="face_happy",UW.HEALTH_AND_SAFETY="shield_plus",UW.HELP="question_circle",UW.HELP_CAIRO="question_circle_cairo",UW.HELP_OUTLINE="question_circle",UW.HIDE="slash_circle_left",UW.IMAGE="image",UW.INFINITY_ICON="infinity",UW.INFO="info_circle",UW.INFO_OUTLINE="info_circle",UW.INSERT_CHART_OUTLINED="bar_graph_box_vertical",UW.INSERT_PHOTO="image",UW.KEEP="pin",UW.KEEP_OFF="pin_off",UW.KEYBOARD="keyboard",UW.KEYBOARD_ARROW_DOWN="chevron_down",UW.KEYBOARD_ARROW_UP=
"chevron_up",UW.KIDS_BLOCK="slash_circle_left",UW.LANGUAGE="globe",UW.LAUNCH="open_new",UW.LEARNING="lightbulb",UW.LEARNING_CAIRO="lightbulb_cairo",UW.LIBRARY_ADD=$m("library_add"),UW.LIBRARY_OUTLINE="library",UW.LIBRARY_REMOVE=$m(),UW.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",UW.LIKES_PLAYLIST="thumb_up",UW.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",UW.LIKE="thumb_up",UW.LIKE_SELECTED="thumb_up",UW.LIVE="radar_live",UW.LIVE_CAIRO="radar_live_cairo",UW.LIVE_UNLISTED="link",UW.LOCATION_ON="location_point",
UW.LOCATION_PIN="location_point",UW.LOOP="arrow_repeat",UW.LOOP_ACTIVE="arrow_repeat",UW.LOOP_ONE="arrow_repeat_1",UW.LOOP_ONE_ACTIVE="arrow_repeat_1",UW.MEH="face_meh",UW.MEMBERS_ONLY_MODE_OFF="message_bubble_left",UW.MESSAGE="message_bubble_left",UW.MICROPHONE_ON="mic",UW.MIX="youtube_mix",UW.MONETIZATION_ON="dollar_sign_circle",UW.MONEY_FILL="dollar_sign_container",UW.MONEY_FILL_JPY="yen_sign_container",UW.MONEY_HEART="dollar_sign_heart",UW.MORE_HORIZ="overflow_horizontal",UW.MORE_VERT="overflow_vertical",
UW.MUSIC="audio",UW.MUSIC_CAIRO="audio_cairo",UW.MUSIC_NOTE_SYMBOL="music",UW.MUSIC_SHUFFLE="arrow_shuffle",UW.MY_CHANNEL="person_circle",UW.MY_LOCATION="location_point",UW.NEWS_STORY="news",UW.NEXT="chevron_right",UW.NOTIFICATIONS="bell",UW.NOTIFICATIONS_ACTIVE="bell_on",UW.NOTIFICATIONS_CAIRO="bell_cairo",UW.NOTIFICATIONS_DONE_CHECKMARK="check",UW.NOTIFICATIONS_INBOX="bell",UW.NOTIFICATIONS_NONE="bell",UW.NOTIFICATIONS_OFF="bell_off",UW.NOT_INTERESTED="slash_circle_left",UW.OFFICIAL_ARTIST_BADGE=
"audio",UW.OFFLINE_CLOUD="cloud_off",UW.OFFLINE_DOWNLOAD="download",UW.OFFLINE_DOWNLOAD_CAIRO="download_cairo",UW.OFFLINE_PAUSE="pause",UW.OPEN_IN_NEW="open_new",UW.OUTLINE_ADJUST="adjust",UW.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",UW.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",UW.OUTLINE_BAG="bag",UW.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",UW.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",UW.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",UW.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
UW.PAID="dollar_sign",UW.PAUSE_OUTLINED="pause",UW.PAYMENT="credit_card",UW.PERSON_RADAR_FILLED="person_radar",UW.PHONE_DOWNLOAD="mobile_download",UW.PLAYABLES_LOGO="tic_tac_toe",UW.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",UW.PLAYLISTS="list_play_arrow",UW.PLAYLISTS_CAIRO="list_play_arrow_cairo",UW.PLAYLIST_ADD=$m("list_add"),UW.PLAYLIST_ADD_CHECK=$m("list_check"),UW.PLAY_ALL="play_arrow",UW.PLAY_CIRCLE="play_arrow_circle",UW.PLAY_OUTLINED="play_arrow_circle",UW.PRIVACY_INFO="shield",UW.PRIVACY_PRIVATE=
"lock",UW.PRIVACY_PUBLIC="earth",UW.PRIVACY_UNLISTED="link",UW.PROMOTE="megaphone",UW.PURCHASES="price_tag",UW.PURCHASE_SUPER_CHAT="super_chat",UW.PURCHASE_SUPER_STICKER="super_sticker",UW.QUESTION_ANSWER="message_bubble_question",UW.QUEUE_PLAY_LAST="list_queue_last",UW.QUEUE_PLAY_NEXT="list_play_arrow",UW.REMIX_FILLED="youtube_shorts_remix",UW.REMOVE="bar_circle",UW.REMOVE_CIRCLE="bar_circle",UW.REMOVE_CIRCLE_OUTLINE="bar_circle",UW.REMOVE_FROM_HISTORY="bar_circle",UW.REMOVE_FROM_PLAYLIST="bar_circle",
UW.REPLAY="arrow_circle",UW.REPORT_PROBLEM="alert_triangle",UW.SAD="face_sad",UW.SAVE_PLAYLIST=$m("library_add"),UW.SCHEDULE="clock",UW.SCHOOL="creator_academy",UW.SCREEN_FULLSCREEN="screen_full",UW.SEARCH_HISTORY="arrow_time",UW.SELL="price_tag",UW.SETTINGS="gear",UW.SETTINGS_CAIRO="gear_cairo",UW.SETTINGS_LIGHT="gear",UW.SETTINGS_MATERIAL="gear",UW.SHARE_ARROW="share",UW.SHIELD_WITH_AVATAR="person_shield",UW.SHOPPING_BAG="bag",UW.SHOPPING_BAG_CAIRO="bag_cairo",UW.SHOPPING_CART="cart",UW.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",UW.SHORTS_DISLIKE="youtube_shorts_thumb_down",UW.SHORTS_LIKE="youtube_shorts_thumb_up",UW.SHORTS_SHARE="youtube_shorts_share",UW.SHUFFLE="arrow_shuffle",UW.SLOW_MODE_OFF="message_bubble_left",UW.SOCIAL="people",UW.SORT="menu_sort",UW.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",UW.SPEED_1X="1x",UW.SPEED_1_POINT_2X="1_point_2x",UW.SPEED_1_POINT_5X="1_point_5x",UW.SPEED_1_POINT_8X="1_point_8x",UW.SPEED_2X="2x",UW.SPEED_POINT_2X="point_2x",UW.SPEED_POINT_8X="point_8x",
UW.SPONSORSHIP_STAR=_.d("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",UW.STAFF_PICK="spotlight",UW.START_DVR="add",UW.STAR_BORDER="star",UW.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",UW.STICKER_EMOTICON="face_happy",UW.STOP_DVR="stop",UW.SUBSCRIBE="youtube_logo_icon",UW.SUBSCRIBE_PLUS="add_cairo",UW.SUBSCRIPTION_MANAGER="gear",UW.SUPERVISOR_ACCOUNT="people",UW.SWAP_HORIZ="arrow_swap_horizontal",UW.SWITCH_ACCOUNTS="person_account",UW.TAB_ACCOUNT="person",UW.TAB_ACTIVITY=
"bell",UW.TAB_EXPLORE="compass",UW.TAB_HOME="home",UW.TAB_HOME_CAIRO="home_cairo",UW.TAB_INBOX="mail",UW.TAB_LIKED="thumb_up",UW.TAB_MUSIC_PREMIUM="youtube_music",UW.TAB_SHORTS="youtube_shorts",UW.TAB_SHORTS_CAIRO="youtube_shorts_cairo",UW.TAB_SUBSCRIPTIONS="subscriptions",UW.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",UW.TAB_TRENDING="fire",UW.TIMER="stopwatch",UW.TRENDING="fire",UW.TRENDING_CAIRO="fire_cairo",UW.TRENDING_UP="rating_up",UW.TROPHY="trophy",UW.TROPHY_CELEBRATIONS="fireworks",UW.TUNE=
"adjust",UW.UNBLOCK_USER="bar_circle",UW.UNLIMITED="youtube_logo_icon",UW.UNPLUGGED_LIVE_GUIDE="radar_live",UW.UNPLUGGED_SPORTS="eye_off",UW.UPLOADS="library",UW.UP_ARROW="arrow_up",UW.VERTICAL_ALIGN_BOTTOM="download",UW.VERY_HAPPY="face_very_happy",UW.VERY_SAD="face_very_sad",UW.VIDEOS="play_arrow_circle",UW.VIDEO_CALL="video_camera_add",UW.VIDEO_LIBRARY_WHITE="library",UW.VIDEO_YOUTUBE="youtube_logo_icon",UW.VIEW_LIST="list_view",UW.VIEW_LIST_CAIRO="list_view_cairo",UW.VISIBILITY="eye",UW.VISIBILITY_OFF=
"eye_off",UW.VOLUME_MUTE="volume_off",UW.VOLUME_UP="volume_on",UW.WALLPAPER="image",UW.WARNING="alert_triangle",UW.WATCH_HISTORY="arrow_time",UW.WATCH_HISTORY_CAIRO="arrow_time_cairo",UW.WATCH_LATER="clock",UW.WATCH_LATER_CAIRO="clock_cairo",UW.WATCH_RELATED_MIX="youtube_mix",UW.WHAT_TO_WATCH="home",UW.YOUTUBE_MUSIC_MONOCHROME="youtube_music",UW.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",UW.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",UW.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",UW.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",UW.YT_OUTLINE_MUSIC_24="music",UW);var lJl={},cOZ=(lJl.TAB_SHORTS="youtube_shorts",lJl.TAB_SHORTS_CAIRO="youtube_shorts",lJl.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",lJl);var iZD={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,1,48]],
arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_flip_dollar_sign:[[1,1,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,
2,24,!0]],arrow_merge:[[1,1,24]],arrow_out:[[0,1,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,24]],arrow_time:[[0,8,24],[1,8,24]],
arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,
3,24],[1,3,24]],bag:[[0,5,12],[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,1,24]],bell:[[0,8,24],[1,8,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,2,24]],blur:[[1,1,24]],book:[[1,1,24]],
bookmark:[[0,6,24],[1,6,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],
[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],cat:[[0,1,24],[1,1,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,
8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,
2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,
1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,
2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,2,24]],
dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,
6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,
7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],
fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,
3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,24]],glow:[[1,1,24]],google_lens:[[1,3,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,1,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,
6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],
info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],journey:[[1,1,24]],key:[[1,4,24]],keyboard:[[0,2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,
2,24]],link:[[1,6,18],[1,6,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,
1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,
1,24]],medal:[[1,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,
2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,
1,24],[1,1,24]],motion:[[1,1,24]],move:[[1,1,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,
32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,5,12],[0,5,13],[0,5,16],
[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,
24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],[1,5,16],[1,5,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,
24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],
[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,1,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,3,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,1,24]],stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],
[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,1,24],[1,1,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,
24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],
video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,1,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,
2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,5,24],[1,5,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,
24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,
2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]],zoom_auto:[[0,1,24],[1,1,24]]};var pg$={youtube_shorts:[[0,10,24],[1,10,24]]};var k_=function(E){this.iconUrlProvider=E};
k_.prototype.resolveIcon=function(E,B){var I=E.iconName;I=I.replace(/-/g,"_");E=Object.assign({},E,{iconName:this.mapIconTypeToStandardName(I)||I.toLowerCase()});if(_.d("enable_web_delhi_icons")){var T;return Z5B(pg$,E,((T=this.iconUrlProvider)==null?void 0:T.getYtStandardUrl)||mZf,B)}var e;return Z5B(iZD,E,((e=this.iconUrlProvider)==null?void 0:e.getYtStandardUrl)||zYD,B)};
k_.prototype.mapIconTypeToStandardName=function(E){return _.d("enable_web_delhi_icons")?cOZ[E.toUpperCase()]:ee$[E.toUpperCase()]};
k_[F1]=[_.Fx($vX)];var YQh=function(E){this.urlProvider=this.iconUrlProvider=E};
_.L(YQh,k_);
YQh.prototype.resolveIcon=function(E,B){E.iconName==="youtube_logo"&&(E.iconName="yt-logo-updated");if(E.iconName==="youtube_premium_logo"||E.iconName==="youtube_red_logo")E.iconName="yt-logo-red-updated";var I=Object.assign({},E);E.iconName==="menu"&&(I.iconName="bars_3",I.iconStyle="youtube_outline");E.iconName==="youtube_music"&&(I.iconStyle="youtube_fill");E.iconName==="mail"&&E.iconSetName==="socialNetworksRound"&&(I.iconName="email");E.iconName==="more"&&(I.iconName="overflow_horizontal");E.iconName===
"fullscreen"&&(I.iconName="screen_full");if(E.iconName==="play_all"||E.iconName==="play_arrow")I.iconStyle="youtube_fill";E.iconName==="premium_standalone"&&(I.iconName="premium_standalone_cairo");_.d("enable_connect_icon_update_web")&&E.iconName==="account_linked"&&(I.iconName="circles_overlap_check",I.iconStyle="youtube_fill");_.d("enable_connect_icon_update_web")&&E.iconName==="account_unlinked"&&(I.iconName="circles_overlap",I.iconStyle="youtube_outline");E=Object.assign({},I,{iconName:(k_.prototype.mapIconTypeToStandardName.call(this,
I.iconName)||I.iconName).toLowerCase()});var T;return(E=Z5B(Edz,E,((T=this.urlProvider)==null?void 0:T.getUrl)||Q1c,B))?E:k_.prototype.resolveIcon.call(this,I,B)};
YQh[F1]=[_.Fx($vX)];_.aJZ=1;var tU=function(){};
_.L(tU,hN);tU.prototype.resolveCommand=function(E){var B,I;return _.a(function(T){B=_.h(E,jrl);if(!B)return T.return();I=Number(B.enableDelayedPacfLoggingTvMs);if(isNaN(I)){var e=qX();tKZ(e,B,0)}else tKZ(qX(),B,I);_.ER(T)})};_.fB=function(){};
_.L(_.fB,hN);
_.fB.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v,y,Z;return _.a(function(P){T=_.h(E,Ud$);c=(e=B.form)==null?void 0:e.element;v=(Y=c)==null?void 0:Y.closest("ytd-enforcement-message-view-model");if(!T||!v)return P.return();I.allowAdsAction||(y=T.fundingChoiceInstructionPageUrl,I.allowAdsAction=new Zdr(window,_.xv(y)));var z=I.allowAdsAction;z.wallElement=v;z.allowAdsPopup.style.setProperty("display","flex","important");var m=z.scrollManager;m.originalBodyOverflow=m.JSC$7885_domHelper.JSC$7214_document_.body.style.overflow;m.JSC$7885_domHelper.JSC$7214_document_.body.style.overflow=
"hidden";z.wallElement.style.setProperty("display","none","important");OxU(z.accessibilityManager,z.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((Z=I.allowAdsAction.allowAdsPopup)&&Z instanceof HTMLElement)for(z=_.p(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),m=z.next();!m.done;m=z.next()){var u=_.p(m.value);m=u.next().value;u=u.next().value;Z.style.setProperty(m,u)}_.ER(P)})};
_.fB.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var VG=function(){};
_.L(VG,hN);VG.prototype.resolveCommand=function(E){var B;return _.a(function(I){B=_.h(E,Rk6);if(!B)return I.return();rXB(E);_.ER(I)})};var qu=function(E){this.JSC$14942_commandHandler=E};
_.L(qu,hN);
qu.prototype.resolveCommand=function(E){var B=this,I,T,e,c,Y,v,y,Z;return _.a(function(P){if(P.nextAddress==1){I=_.h(E,u0V);if((T=I)==null||!T.text||!navigator.clipboard)return P.return();_.q7(P,2);return _.C(P,navigator.clipboard.writeText(I.text),4)}if(P.nextAddress!=2){if(!I.successActions||I.successActions.length===0)return P.return();e=_.p(I.successActions);for(c=e.next();!c.done;c=e.next())Y=c.value,B.JSC$14942_commandHandler.resolveCommand(Y);return _.W7(P,0)}_.RG(P);if(!I.failureActions||I.failureActions.length===
0)return P.return();v=_.p(I.failureActions);for(y=v.next();!y.done;y=v.next())Z=y.value,B.JSC$14942_commandHandler.resolveCommand(Z);_.ER(P)})};
qu[F1]=[_.Dt];var FV=function(E){this.JSC$14946_commandHandler=E};
_.L(FV,hN);
FV.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v,y,Z,P,z,m;return _.a(function(u){switch(u.nextAddress){case 1:T=_.h(E,l3l);if(!T)return u.return();_.q7(u,2);if(!T.imageBytes&&!T.imageUrl)throw Error("xi");if(!T.imageUrl){if(T.imageBytes){c=T.imageBytes;Y=c.replace(/-/g,"+").replace(/_/g,"/");var x=hYG(Y);e=_.YM(x)}u.jumpTo(4);break}return _.C(u,fetch(T.imageUrl),5);case 5:return v=u.yieldResult,_.C(u,v.blob(),6);case 6:y=u.yieldResult,e=_.YM(y);case 4:z=(Z=B)==null?void 0:(P=Z.form)==
null?void 0:P.element;m=document.createElement("a");Cr(m,e);z.appendChild(m);m.download="";m.click();z.removeChild(m);URL.revokeObjectURL(_.e6(e));T.successCommand&&I.JSC$14946_commandHandler.resolveCommand(T.successCommand);_.W7(u,0);break;case 2:_.RG(u),T.errorCommand&&I.JSC$14946_commandHandler.resolveCommand(T.errorCommand),_.ER(u)}})};
FV[F1]=[_.Dt];var DW=function(E){this.store=E};
_.L(DW,hN);DW.prototype.resolveCommand=function(E){var B=this,I,T,e;return _.a(function(c){T=(I=_.h(E,_.rPu))==null?void 0:I.entityBatchUpdate;if(!T)return c.jumpTo(0);e=Object.assign({},T,{mutations:[].concat(_.ad(T.mutations||[]))});return _.C(c,_.vP(e,B.store),0)})};var vdU=function(E){this.JSC$14953_commandHandler=E;this.feedbackDialogMap=new Map};
vdU.prototype.openDialog=function(E,B){(E=this.feedbackDialogMap.get(E))&&this.JSC$14953_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:E}},B)};
vdU[F1]=[_.Dt];var KB=new _.Dr("FEEDBACK_CONTROLLER_TOKEN");var Ru=new _.Dr("APP_STORE_TOKEN");var E0=function(E,B){this.store=E;this.controller=B};
_.L(E0,hN);E0.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q;return _.a(function(f){if(f.nextAddress==1){T=_.h(E,_.Ms);if(c=(e=T)==null?void 0:e.contentId)for(v=_.p(((Y=T)==null?void 0:Y.actions)||[]),y=v.next();!y.done;y=v.next())Z=y.value,yO6(I,Z,c);m=(P=B)==null?void 0:(z=P.form)==null?void 0:z.element;return _.C(f,_.l1(m,[E]).catch(function(){}),2)}u=f.yieldResult;
((x=u)==null?0:(M=x.data)==null?0:(N=M.feedbackResponses)==null?0:N.length)&&(U=(W=u.data.feedbackResponses[0])==null?void 0:W.followUpDialog)&&c&&(q=I.controller)!=null&&q.feedbackDialogMap.set(c,U);_.ER(f)})};
var yO6=function(E,B,I){var T=_.h(B,_.pO);if(T){T=_.p(T.commands||[]);for(var e=T.next();!e.done;e=T.next())yO6(E,e.value,I)}_.h(B,_.mJ)&&E.store.dispatch(_.aL("commandEntity",jDi(I),{key:I,command:B}));_.h(B,oUh)&&E.store.dispatch(_.aL("commandEntity",jDi(I),{key:I,command:B}))};
E0[F1]=[Ru,KB];var Bs=function(E){this.controller=E};
_.L(Bs,hN);Bs.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y;return _.a(function(v){T=_.h(E,_.g9);c=(e=T)==null?void 0:e.targetId;if(((Y=T)==null?void 0:Y.signal)!=="TELL_US_WHY"||!c)return v.return();I.controller.openDialog(c,B);_.ER(v)})};
Bs[F1]=[KB];var $Z=function(E){this.store=E};
_.L($Z,hN);$Z.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v,y,Z;return _.a(function(P){T=_.h(E,NOi);c=(e=T)==null?void 0:e.contentId;y=(Y=B)==null?void 0:(v=Y.form)==null?void 0:v.element;Z=_.l1(y,[E]);c&&I.undo(c);return _.C(P,Z,0)})};
$Z.prototype.undo=function(E){this.store.dispatch(_.aL("commandEntity",jDi(E),{key:E,command:void 0}))};
$Z[F1]=[Ru];var Ii=function(E){this.JSC$14968_commandHandler=E};
_.L(Ii,hN);Ii.prototype.resolveCommand=function(E){var B=this,I,T,e,c,Y,v,y,Z;return _.a(function(P){I=_.h(E,BCX);T=I.flowStateKey;e=I.validationFailureCommand;c=I.submitValidFormCommand;Y=SV(_.B3,[T||""]);v=_.h(Y,IrU);((y=v)==null?0:y.isValid)&&c&&B.JSC$14968_commandHandler.resolveCommand(c);((Z=v)==null?0:Z.isValid)||!e||B.JSC$14968_commandHandler.resolveCommand(e);_.ER(P)})};
Ii[F1]=[_.Dt];var T_=function(E){this.innertubeTransportService=E};
_.L(T_,hN);T_.prototype.resolveCommand=function(E,B){var I=this,T;return _.a(function(e){return _.C(e,_.NN(I.innertubeTransportService,E,(T=B)==null?void 0:T.form).then(function(c){var Y,v;B==null||(Y=B.commandController)==null||(v=Y.onSuccess)==null||v.call(Y,E,c)},function(c){var Y,v;
B==null||(Y=B.commandController)==null||(v=Y.onServerError)==null||v.call(Y,E,c)}),0)})};
T_[F1]=[_.P8];var eX=function(){};
_.L(eX,hN);eX.prototype.resolveCommand=function(E){var B,I,T,e;return _.a(function(c){if(B=_.h(E,_.B5R)){if(I=B.gtmId)T=_.HA("GL",""),_.y5(I,T);(e=B.gtmData)&&_.CM(e)}_.ER(c)})};var l8=function(E,B){this.innertubeTransportService=E;this.JSC$14979_actionRouter=B};
_.L(l8,hN);l8.prototype.resolveCommand=function(E){var B=this,I,T;return _.a(function(e){I=_.h(E,YsZ);if(!I)return e.return();T=I.command;if(!T)return e.return();B.JSC$14979_actionRouter.triggerAction("yt-insert-rich-section-action",I);return _.C(e,_.NN(B.innertubeTransportService,T,{disableCache:!0}),0)})};
l8[F1]=[_.P8,tB];ujc.bind(null,sU);var CHu=ujc.bind(null,pw$);xZ6.bind(null,sU);var wgZ=xZ6.bind(null,pw$);n$t.bind(null,sU);var ZZr=n$t.bind(null,pw$);var cs=function(){};
_.L(cs,hN);
cs.prototype.resolveCommand=function(E){var B,I,T,e,c,Y,v,y,Z,P;return _.a(function(z){B=_.h(E,b7t);if(!B)return z.return();T=((I=B.operations)==null?void 0:I.operations)||[];e=_.p(T);for(c=e.next();!c.done;c=e.next())if(Y=c.value,Y.insertItemSectionContent){var m=Y.insertItemSectionContent,u=m.contents||[];m.insertByPositionInSection?CHu(m.insertByPositionInSection.sectionTargetId,u,m.insertByPositionInSection.position):m.insertByRelativePositionInSection&&m.insertByRelativePositionInSection.sectionTargetId&&m.insertByRelativePositionInSection.itemTargetId&&
wgZ(m.insertByRelativePositionInSection.sectionTargetId,m.insertByRelativePositionInSection.itemTargetId,u,m.insertByRelativePositionInSection.relativePosition)}else Y.replaceSection?(m=Y.replaceSection,u={},m.replaceByTargetId?u=m.replaceByTargetId:m.replaceByGroupId&&(u={targetId:m.replaceByGroupId.groupId,newContent:m.replaceByGroupId.newContent,undoKey:""}),u.newContent&&vFZ(u.targetId,{continuationItems:[u.newContent]})):Y.removeItem?(m=Y.removeItem,m.removeByTargetId&&m.sectionTargetId&&ZZr(m.sectionTargetId,
m.removeByTargetId.targetIds||[])):Y.removeSection&&(Y.removeSection.removeByTargetId?(v=void 0,PHh(((v=Y.removeSection)==null?void 0:v.removeByTargetId.targetIds)||[])):Y.removeSection.removeByGroupId&&(y=void 0,PHh(((y=Y.removeSection)==null?void 0:y.removeByGroupId.groupIds)||[])));P=((Z=B.operations)==null?void 0:Z.scrollConfig)||{};zeD(P);_.ER(z)})};
var PHh=function(E){E=_.p(E);for(var B=E.next();!B.done;B=E.next())vFZ(B.value,{continuationItems:[]})},zeD=function(E){if(E.scrollToItem){var B=E.scrollToItem.item||{},I=B.itemTargetId;
B=B.sectionTargetId;if(I&&B){var T=document.querySelector("[data-target-id="+B+"]"),e=T==null?void 0:T.querySelector("[data-target-id="+I+"]");T&&e&&setTimeout(function(){var c=e.offsetTop-T.offsetTop,Y;if(((Y=E.scrollToItem)==null?void 0:Y.scrollPosition)==="SCROLL_POSITION_CENTER")c-=T.offsetHeight/2,c+=e.offsetHeight/2;else{var v;((v=E.scrollToItem)==null?void 0:v.scrollPosition)==="SCROLL_POSITION_END"&&(c-=T.offsetHeight,c+=e.offsetHeight)}T.scroll({top:c,behavior:"smooth"})},100)}}};var i8=new _.Dr("CLIENT_NAME_TOKEN");var mvh=new _.Dr("DEFAULT_STORE_EXPIRATION_TOKEN");var Flc=new _.Dr("CLIENT_LOCATION_SERVICE_TOKEN");var pk=function(E,B,I){this.clientName=E||_.HA("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=B||_.H8.getInstance();this.JSC$15007_commandHandler=I||_.BV.instance};
_.L(pk,hN);pk.prototype.resolveCommand=function(E){var B=this,I,T;return _.a(function(e){T=(I=_.h(E,qzu))==null?void 0:I.onComplete;B.clientLocationService.clearLocationPlayabilityToken(B.clientName);T&&B.JSC$15007_commandHandler.resolveCommand(T);_.ER(e)})};
pk[F1]=[i8,Flc,_.Dt];var YZ=function(E){this.innertubeTransportService=E};
_.L(YZ,hN);YZ.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y;return _.a(function(v){c=(T=B)==null?void 0:(e=T.form)==null?void 0:e.element;return _.C(v,_.NN(I.innertubeTransportService,E,(Y=B)==null?void 0:Y.form).then(function(y){VXi(c,new CustomEvent("yt-service-request-completed"),{data:y},_.HA("openPopupConfig"))}),0)})};
YZ[F1]=[_.P8];var ai=function(){};
_.L(ai,hN);ai.prototype.resolveCommand=function(E){var B,I;return _.a(function(T){B=_.h(E,cGZ);I=document.querySelector("mini-app-container-view-model");if(!B||!I)return T.return();B.isPlaying?I.dispatchEvent(new Event("play")):I.dispatchEvent(new Event("pause"));_.ER(T)})};var vs=function(){};
_.L(vs,hN);vs.prototype.resolveCommand=function(E){var B,I,T,e,c,Y,v;return _.a(function(y){B=_.h(E,qAV);if((I=B)==null||!I.paramKeys)return y.return();T=B.paramKeys;e=_.Se(window.location.href);c=_.p(T);for(Y=c.next();!Y.done;Y=c.next())v=Y.value,e.JSC$7917_queryData_.remove(v);window.history.replaceState(window.history.state,document.title,e.toString());_.ER(y)})};var QKD=function(){this.dropdownMap=new Map};_.dvt=new _.Dr("DROPDOWN_CONTROLLER_TOKEN");var yc=function(E){this.controller=E};
_.L(yc,hN);yc.prototype.resolveCommand=function(E){var B=this,I,T,e,c;return _.a(function(Y){I=_.h(E,O_r);if(!I)return Y.return();T=I;e=T.dropdownId;c=T.selectedOptionIndex;if(e===void 0||c===void 0)return Y.return();var v=B.controller.dropdownMap.get(e);v&&v(c);_.ER(Y)})};
yc[F1]=[_.dvt];var Ck=function(E){this.controller=E};
_.L(Ck,hN);Ck.prototype.resolveCommand=function(E){var B=this,I;return _.a(function(T){return(I=_.h(E,IYz))?_.C(T,B.controller.closeDialog(),0):T.return()})};
Ck[F1]=[_.PZ];var wx=function(E){this.controller=E};
_.L(wx,hN);wx.prototype.resolveCommand=function(E){var B=this,I,T;return _.a(function(e){I=_.h(E,WnZ);if(!I)return e.return();var c,Y=I.panelIdentifier||((c=I.identifier)==null?void 0:c.tag);if(!Y)throw Error("yi");return(T=Y)?_.C(e,B.controller.hidePanel(T),0):e.jumpTo(0)})};
wx[F1]=[_.wQ];var Z9=function(E,B){this.innertubeTransportService=E;this.controller=B};
_.L(Z9,hN);Z9.prototype.resolveCommand=function(E){var B=this,I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return I=_.h(E,XkU),(T=I)!=null&&T.panelId?_.C(Y,B.controller.getReloadContinuation(I.panelId),2):Y.return();if(Y.nextAddress!=3)return(e=Y.yieldResult)?_.C(Y,_.NN(B.innertubeTransportService,E,{continuation:e}),3):Y.return();c=Y.yieldResult;return _.C(Y,B.controller.updatePanel(I.panelId,c.content,!1),0)})};
Z9[F1]=[_.P8,_.wQ];var Ps=function(E,B,I){this.innertubeTransportService=E;this.JSC$15043_screenManager=B;this.JSC$15043_commandHandler=I};
_.L(Ps,hN);
Ps.prototype.resolveCommand=function(E){var B=this,I,T,e,c,Y,v;return _.a(function(y){if(y.nextAddress==1){I=_.h(E,_.Gzu);if(!I)return y.return();if(I.commands)for(T=_.p(I.commands),e=T.next();!e.done;e=T.next())c=e.value,B.JSC$15043_commandHandler.resolveCommand(c,{disableClickTracking:!0});Y=_.Yg(E.clickTrackingParams);_.I5(B.JSC$15043_screenManager,21760,Y,{layer:7,parentLayer:0});return _.C(y,_.NN(B.innertubeTransportService,E),2)}v=y.yieldResult;if(!v)return y.return();B.JSC$15043_screenManager.graftServerVe(v.trackingParams,Y,
7);_.ER(y)})};
Ps[F1]=[_.P8,_.pj,_.Dt];var z_=new _.Dr("PANEL_LOADING_STRATEGY_TOKEN");var m8=function(E,B){this.controller=E;this.panelLoadingStrategy=B};
_.L(m8,hN);
m8.prototype.resolveCommand=function(E,B){var I=this,T,e,c;return _.a(function(Y){T=_.h(E,Q5r);if((e=T)==null||!e.panelLoadingStrategy)return Y.return();c=function(v){var y,Z,P,z,m,u,x,M,N;return _.a(function(W){Z=_.h((y=v.dialogViewModel)==null?void 0:y.header,n8l);P={viewModel:v.dialogViewModel};z={};if(x=_.d("web_enable_dialog_header_label")?(m=Z)==null?void 0:(u=m.headline)==null?void 0:u.content:void 0)z.ariaLabel=x;T.dismissOnBackgroundTap===!1&&(z.isModal=!0);return v.dialogViewModel?_.C(W,
I.controller.openDialog(P,(M=B)==null?void 0:(N=M.form)==null?void 0:N.element,z),0):W.return()})};
return _.C(Y,I.panelLoadingStrategy.execute({command:E,data:T.panelLoadingStrategy,renderFn:c,createScreenConfig:{layer:4}}),0)})};
m8[F1]=[_.PZ,z_];var Qc=function(E,B,I){this.innertubeTransportService=E;this.controller=B;this.JSC$15063_screenManager=I};
_.L(Qc,hN);
Qc.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v,y,Z,P,z,m,u,x;return _.a(function(M){switch(M.nextAddress){case 1:T=_.h(E,_.nJ);if(!T)return M.return();var N,W=T.panelIdentifier||((N=T.identifier)==null?void 0:N.tag);if(!W)throw Error("yi");e=W;return _.C(M,I.controller.isVisible(e,!0),2);case 2:if((c=M.yieldResult)&&T.blockIfPanelOpen)return M.return();y=(v=(Y=I.controller).getPanelContent)==null?void 0:v.call(Y,e);if(!(N=y))if(T){var U;N=((U=T.globalConfiguration)==null?void 0:U.initialState)||
T.engagementPanel;if(U=!N)U=!!(T==null?0:(W=T.engagementPanelPresentationConfigs)==null?0:W.engagementPanelPopupPresentationConfig);U&&(N=_.TX(T.panelIdentifier,T.identifier))}else N=void 0;Z=N;P=T.engagementPanelPresentationConfigs;z=T.engagementPanelExtras;return _.C(M,I.controller.showPanel(e,Z,P,z,(m=B)==null?void 0:(u=m.form)==null?void 0:u.element),3);case 3:if(!T.globalConfiguration){M.jumpTo(0);break}_.I5(I.JSC$15063_screenManager,32633);return _.C(M,_.NN(I.innertubeTransportService,E),5);
case 5:return x=M.yieldResult,I.JSC$15063_screenManager.graftServerVe(x.trackingParams),_.C(M,I.controller.updatePanel(e,x.content,!0,z,void 0,x.updatePanelContinuationData),0)}})};
Qc[F1]=[_.P8,_.wQ,_.pj];var dx=function(E,B){this.controller=E;this.panelLoadingStrategy=B};
_.L(dx,hN);dx.prototype.resolveCommand=function(E,B){var I=this,T,e,c;return _.a(function(Y){T=_.h(E,_.vE);if((e=T)==null||!e.panelLoadingStrategy)return Y.return();c=function(v){var y,Z;return _.a(function(P){return v.sheetViewModel?_.C(P,I.controller.openSheet({viewModel:v.sheetViewModel},(y=B)==null?void 0:(Z=y.form)==null?void 0:Z.element),0):P.return()})};
return _.C(Y,I.panelLoadingStrategy.execute({command:E,data:T.panelLoadingStrategy,renderFn:c,createScreenConfig:{layer:0}}),0)})};
dx[F1]=[_.ZT,z_];var h$=function(E,B){this.controller=E;this.JSC$15071_commandHandler=B};
_.L(h$,hN);h$.prototype.resolveCommand=function(E,B){var I=this,T,e,c;return _.a(function(Y){if(Y.nextAddress==1){T=_.h(E,AL$);var v=_.h(T.showCommand,_.nJ),y,Z,P=(Z=v==null?void 0:v.panelIdentifier)!=null?Z:v==null?void 0:(y=v.identifier)==null?void 0:y.tag;if(!P)throw Error("zi");e=P;return _.C(Y,I.controller.isVisible(e),2)}return(c=Y.yieldResult)?_.C(Y,I.controller.hidePanel(e),0):_.C(Y,I.JSC$15071_commandHandler.resolveCommand(T.showCommand,B),0)})};
h$[F1]=[_.wQ,_.Dt];var s0=function(E,B,I){this.innertubeTransportService=E;this.controller=B;this.JSC$15074_screenManager=I};
_.L(s0,hN);
s0.prototype.resolveCommand=function(E){var B=this,I,T,e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q,f,ed,K,p4;return _.a(function(sc){switch(sc.nextAddress){case 1:return T=I=_.h(E,jnr),e=T.targetPanelIdentifier,c=T.contentSourcePanelIdentifier,Y=T.globalConfiguration,((v=e)==null?0:v.tag)&&((y=c)==null?0:y.tag)?Y?_.C(sc,B.controller.showPanel(e.tag,_.TX(e.tag,e),void 0,void 0,void 0),5):_.C(sc,(m=(z=B.controller).getPanel)==null?void 0:m.call(z,c.tag),4):sc.return();case 4:u=sc.yieldResult;Z=(x=u)==null?void 0:
(N=(M=x).getPanelContent)==null?void 0:N.call(M);sc.jumpTo(3);break;case 5:return _.C(sc,_.NN(B.innertubeTransportService,E),6);case 6:W=sc.yieldResult,((U=W)==null?0:U.trackingParams)&&B.JSC$15074_screenManager.graftServerVe(W.trackingParams),Z=(q=W)==null?void 0:q.content,P=(f=W)==null?void 0:f.updatePanelContinuationData;case 3:if(K=(ed=Z)==null?void 0:ed.engagementPanelSectionListRenderer)return _.C(sc,B.controller.showPanel(e.tag,void 0,void 0,void 0,void 0,{content:K.content,secondaryHeaderContent:(p4=
K.header)!=null?p4:{},targetId:K.targetId},P),0);sc.jumpTo(0)}})};
s0[F1]=[_.P8,_.wQ,_.pj];var u8=function(E,B){this.JSC$15082_commandHandler=E;this.store=B};
_.L(u8,hN);u8.prototype.resolveCommand=function(E){var B=this,I,T,e,c,Y;return _.a(function(v){if(v.nextAddress==1)return(I=_.h(E,BdV))?_.C(v,_.EO(),2):v.return();T=v.yieldResult;if(!T)return v.return();NNc(T,B.store,(e=I)==null?void 0:e.languageCode);c=T.isSubtitlesOn()?_.yu("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.yu("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");Y=_.qg(c);B.JSC$15082_commandHandler.resolveCommand(Y);_.ER(v)})};
u8[F1]=[_.Dt,pJ];var Lk=function(E,B){this.shortsPlayerPromise=E;this.JSC$15086_commandHandler=B};
_.L(Lk,hN);
Lk.prototype.resolveCommand=function(E){var B=this,I,T,e,c,Y,v,y,Z;return _.a(function(P){if(P.nextAddress==1)return(I=_.h(E,weN))?_.C(P,B.shortsPlayerPromise,2):P.return();T=P.yieldResult;var z=g$Q(T);z!=null&&z.length||(T.loadModule("captions"),z=g$Q(T));e=z;if((c=e)==null||!c.length)return Y=_.yu("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),v=_.qg(Y),B.JSC$15086_commandHandler.resolveCommand(v),P.return();T.toggleSubtitles();y=T.isSubtitlesOn()?_.yu("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.yu("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");Z=_.qg(y);B.JSC$15086_commandHandler.resolveCommand(Z);_.ER(P)})};
Lk[F1]=[_.UrZ,_.Dt];var xZ=function(E){this.JSC$15089_playerPromise=E};
_.L(xZ,hN);xZ.prototype.resolveCommand=function(E){var B=this,I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return(I=_.h(E,bLR))?_.C(Y,B.JSC$15089_playerPromise,2):Y.return();T=Y.yieldResult;e=T.getVideoData().video_id;I.videoId===e&&(c=Number(I.offsetFromVideoStartMilliseconds),c>=0&&T.seekTo(c/1E3));_.ER(Y)})};
xZ[F1]=[_.qN];var he$=_.lm("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),G_=function(E){this.store=E};
_.L(G_,hN);
var sKz=function(E){var B,I,T,e;return _.a(function(c){if(c.nextAddress==1)return B=_.HA("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,I=_.HA("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,T=B||I,E.mainAppPlayer=new rh(T),_.C(c,E.mainAppPlayer.api,2);e=c.yieldResult;e.addEventListener("onStateChange",E.JSC$15093_playerStateChangeListener.bind(E));document.addEventListener("yt-page-data-updated",E.pauseOnNavigation.bind(E));window.addEventListener("state-navigatestart",
E.pauseOnNavigation.bind(E));_.ER(c)})};
G_.prototype.JSC$15093_playerStateChangeListener=function(E){switch(E){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"}ubz(this)};
var ubz=function(E){E.store.dispatch(_.aL("sfvAudioItemCurrentlyPlayingEntity",he$,{key:he$,externalVideoId:E.externalVideoId,sfvAudioItemPlaybackState:E.playbackState,nowPlayingEntityValue:E.nowPlayingEntityValue}))};
G_.prototype.pauseOnNavigation=function(){var E=this,B,I,T,e;return _.a(function(c){if(c.nextAddress==1){if(!E.mainAppPlayer){var Y=new _.P7("Error: mainAppPlayer is unavailable",E.mainAppPlayer);_.xV(Y);return c.return()}return _.C(c,E.mainAppPlayer.api,2)}B=c.yieldResult;T=(I=B)==null?void 0:I.getPlayerState();T!==1||(e=B)!=null&&e.pauseVideo();_.ER(c)})};
G_.prototype.playVideo=function(E,B,I){var T=this,e,c;return _.a(function(Y){if(Y.nextAddress==1)return _.C(Y,(e=T.mainAppPlayer)==null?void 0:e.api,2);c=Y.yieldResult;if(!T.mainAppPlayer||!c){var v=new _.P7("Error: mainAppPlayer is unavailable",T.mainAppPlayer);_.xV(v);return Y.return()}return _.C(Y,T.mainAppPlayer.loadVideoWithPlayerVars({videoId:T.externalVideoId,audio_only:"1",start:E/1E3,end:E/1E3+B,player_params:I}),0)})};
G_.prototype.pauseVideo=function(){var E=this,B,I;return _.a(function(T){if(T.nextAddress==1){if(!E.mainAppPlayer){var e=new _.P7("Error: mainAppPlayer is unavailable",E.mainAppPlayer);_.xV(e);return T.return()}return _.C(T,E.mainAppPlayer.api,2)}B=T.yieldResult;(I=B)==null||I.pauseVideo();_.ER(T)})};
G_.prototype.resolveCommand=function(E){var B=this,I,T,e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q,f;return _.a(function(ed){if(ed.nextAddress==1)return I=_.h(E,aMN),e=(T=I)==null?void 0:T.nowPlayingEntityValue,Y=(c=I)==null?void 0:c.externalVideoId,z=Number((P=(v=I)==null?void 0:(y=v.defaultStartPoints)==null?void 0:(Z=y[0])==null?void 0:Z.offsetMs)!=null?P:"0"),W=Number((N=(m=I)==null?void 0:(u=m.defaultStartPoints)==null?void 0:(x=u[0])==null?void 0:(M=x.duration)==null?void 0:M.seconds)!=null?N:"15"),f=(q=
(U=I)==null?void 0:U.playerParams)!=null?q:"",e&&Y?B.mainAppPlayer?ed.jumpTo(2):_.C(ed,sKz(B),2):ed.return();if(ed.nextAddress!=6){if(B.nowPlayingEntityValue&&e===B.nowPlayingEntityValue)return B.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.C(ed,B.pauseVideo(),0):_.C(ed,B.playVideo(z,W,f),0);B.externalVideoId=Y;B.nowPlayingEntityValue=e;B.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.C(ed,B.playVideo(z,W,f),6)}ubz(B);return ed.jumpTo(0)})};
G_[F1]=[pJ];var O0=function(E){this.JSC$15110_commandHandler=E};
_.L(O0,hN);O0.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v;return _.a(function(y){if(y.nextAddress==1)return(T=_.h(E,$Bz))?_.C(y,_.EO(),2):y.return();e=y.yieldResult;if(!e)return y.return();(c=Xof(e))?I.JSC$15110_commandHandler.resolveCommand(c,B):(Y=_.yu("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),v=_.qg(Y),I.JSC$15110_commandHandler.resolveCommand(v));_.ER(y)})};
O0[F1]=[_.Dt];var nk=function(E){this.JSC$15113_playerPromise=E};
_.L(nk,hN);nk.prototype.resolveCommand=function(E){var B=this,I,T,e,c,Y;return _.a(function(v){if(v.nextAddress==1){I=_.h(E,oQl);if(!I)return v.return();T=I.overlayRenderer;return T?(e=_.h(T,Ueh))?_.C(v,B.JSC$15113_playerPromise,3):v.jumpTo(0):v.return()}c=v.yieldResult;c.renderChapterSeekingAnimation(1,_.U3(e.text),(Y=e.icon)==null?void 0:Y.iconType);_.ER(v)})};
nk[F1]=[_.qN];var MQ=function(E){this.store=E};
_.L(MQ,hN);MQ.prototype.resolveCommand=function(E){var B=this,I,T,e;return _.a(function(c){if(c.nextAddress==1){I=_.h(E,IFZ);if(!I)return c.return();T="";(e=B.store.getState().collabInviteLink)&&I.id===e.playlistId?T=e.inviteLinkURL:I.shortUrl&&(T=I.shortUrl);return T?_.C(c,navigator.clipboard.writeText(T),3):c.jumpTo(0)}var Y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.yu("COPY_LINK_SUCCESS_TOAST")}}}}};_.Q().resolve(_.Dt).resolveCommand(Y);_.ER(c)})};
MQ[F1]=[Ru];var Hs=function(E,B){this.innertubeTransportService=E;this.JSC$15123_commandHandler=B};
_.L(Hs,hN);Hs.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v,y,Z,P,z,m;return _.a(function(u){if(u.nextAddress==1)return(T=_.h(E,_.Sp))?_.C(u,_.NN(I.innertubeTransportService,E,(e=B)==null?void 0:e.form),2):u.return();(c=u.yieldResult)&&c.errorMetadata&&(Y=c,v=_.qg(Y.error.message),I.JSC$15123_commandHandler.resolveCommand(v));y=c;if((Z=y)==null?0:Z.actions)for(P=_.p(y.actions),z=P.next();!z.done;z=P.next())m=z.value,I.JSC$15123_commandHandler.resolveCommand(m);_.ER(u)})};
Hs[F1]=[_.P8,_.Dt];var NQ=function(){};
_.L(NQ,hN);NQ.prototype.resolveCommand=function(E){var B;return _.a(function(I){B=_.h(E,qsN);if(!B)return I.return();(new JND(B)).show();_.ER(I)})};_.gx=new _.Dr("PLAYLIST_EDIT_CONTROLLER_TOKEN");var SX=function(E,B,I,T){this.store=E;this.innertubeTransportService=B;this.controller=I;this.JSC$15131_commandHandler=T};
_.L(SX,hN);
SX.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q,f,ed,K,p4,sc,Gf,xi,ki,WG;return _.a(function(rJ){if(rJ.nextAddress==1){T=_.h(E,_.nU);if(!T)return rJ.return();if(T.clientActions){e=_.p(T.clientActions);for(c=e.next();!c.done;c=e.next())Y=c.value,I.JSC$15131_commandHandler.resolveCommand(Y);var Uc,CV=B==null?void 0:(Uc=B.form)==null?void 0:Uc.element;CV&&_.$O(CV,"yt-dismissible-item-action",T.clientActions)}return _.C(rJ,_.NN(I.innertubeTransportService,E,(v=B)==
null?void 0:v.form),2)}if(y=rJ.yieldResult)y.errorMetadata?(Z=y,P=_.qg(Z.error.message),I.JSC$15131_commandHandler.resolveCommand(P),"error"in y&&((z=B)==null?0:(m=z.commandController)==null?0:m.onServerError)&&((u=B)==null||(x=u.commandController)==null||x.onServerError(E,y))):(M=B)==null||(N=M.commandController)==null||(U=(W=N).onSuccess)==null||U.call(W,E,y);q=y;((f=q)==null?0:f.collaborationInviteLink)&&T.playlistId&&(_.d("web_enable_invite_collaborators_link")||_.d("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
I.store.dispatch(_.BP({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:T.playlistId,inviteLinkUrl:q.collaborationInviteLink}}));((ed=q)==null?0:ed.redirectEndpoint)&&I.JSC$15131_commandHandler.resolveCommand(q.redirectEndpoint);((K=q)==null?0:(p4=K.newHeader)==null?0:p4.playlistHeaderRenderer)?L9D(I.controller,q.newHeader.playlistHeaderRenderer):((sc=q)==null?0:(Gf=sc.newHeader)==null?0:Gf.musicEditablePlaylistDetailHeaderRenderer)&&L9D(I.controller,q.newHeader.musicEditablePlaylistDetailHeaderRenderer);
I.controller.playlistVideoListElement&&((xi=q)==null?0:(ki=xi.playlistEditResults)==null?0:(WG=ki[0])==null?0:WG.playlistEditVideoAddedResultData)&&((CV=I.controller.playlistVideoListElement)==null||CV.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:q.playlistEditResults[0].playlistEditVideoAddedResultData})));_.ER(rJ)})};
SX[F1]=[Ru,_.P8,_.gx,_.Dt];var J$=function(E,B){this.controller=E;this.JSC$15141_commandHandler=B};
_.L(J$,hN);J$.prototype.resolveCommand=function(E,B){var I=this,T,e,c;return _.a(function(Y){T=_.h(E,TIu);I.controller.showRefreshPill&&((e=T)==null?0:e.command)&&(I.JSC$15141_commandHandler.resolveCommand((c=T)==null?void 0:c.command,B),I.controller.showRefreshPill=!1);_.ER(Y)})};
J$[F1]=[_.UL,_.Dt];var Ws=function(E,B){this.store=E;this.JSC$15145_commandHandler=B||_.BV.instance};
_.L(Ws,hN);Ws.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v,y,Z,P,z,m;return _.a(function(u){T=_.h(E,PGD);e=I.store.getState().radioButtonGroup;if((c=T)==null?0:c.command)I.JSC$15145_commandHandler.resolveCommand((Y=T)==null?void 0:Y.command,B);else if(((v=T)==null?void 0:v.formId)===e.currentFormId)for(y=Object.values(e.commandsMap),Z=_.p(y),P=Z.next();!P.done;P=Z.next()){z=P.value;m=_.ha(z);if(!m)return u.return();I.JSC$15145_commandHandler.resolveCommand(m,B)}_.ER(u)})};
Ws[F1]=[Ru];var Xc=new _.Dr("USER_PREFS");var rx=function(E){this.JSC$15149_prefCookie=E};
_.L(rx,hN);rx.prototype.resolveCommand=function(E){var B=this,I;return _.a(function(T){(I=_.h(E,oL$))&&typeof I.useListView==="boolean"&&(_.PN(0,155,I.useListView),B.JSC$15149_prefCookie.save());_.ER(T)})};
rx[F1]=[Xc];var b8=function(E){this.JSC$15153_prefCookie=E};
_.L(b8,hN);b8.prototype.resolveCommand=function(E){var B=this,I,T,e,c,Y;return _.a(function(v){I=_.h(E,Dyz);if((T=I)==null||!T.gl)return v.return();e=I.gl;c={persist_gl:"1",gl:e};B.JSC$15153_prefCookie.set("gl",e);B.JSC$15153_prefCookie.save();Y=_.w9h(c);_.xG(Y);_.ER(v)})};
b8[F1]=[Xc];var oi=function(E){this.JSC$15157_prefCookie=E};
_.L(oi,hN);oi.prototype.resolveCommand=function(E){var B=this,I,T;return _.a(function(e){I=_.h(E,lFh);if(!I)return e.return();T=!1;I.flagNum&&typeof I.value==="boolean"?(_.PN(0,I.flagNum,I.value),T=!0):I.key&&typeof I.stringValue==="string"&&(B.JSC$15157_prefCookie.set(I.key,I.stringValue),T=!0);T&&B.JSC$15157_prefCookie.save();_.ER(e)})};
oi[F1]=[Xc];var A$=new _.Dr("PREF_STORAGE_PROMISE_TOKEN");var jX=function(E){this.JSC$15161_prefStoragePromise=E};
_.L(jX,hN);jX.prototype.resolveCommand=function(E){var B=this,I,T;return _.a(function(e){if(e.nextAddress==1)return(I=_.h(E,iSz))?_.C(e,B.JSC$15161_prefStoragePromise,2):e.return();T=e.yieldResult;return T===void 0||I.key===void 0||I.value===void 0?e.return():_.C(e,T.set(I.key,I.value),0)})};
jX[F1]=[A$];var xvN=function(E){this.innertubeTransportService=E};
_.L(xvN,hN);xvN.prototype.resolveCommand=function(E,B){var I=this,T,e;return _.a(function(c){(T=_.h(E,_.rBr))&&T&&T.isFirstRequest&&(_.OK("search_overview_answer"),_.nO("so_rq",void 0,"search_overview_answer"));return _.C(c,_.NN(I.innertubeTransportService,E,(e=B)==null?void 0:e.form),0)})};
xvN[F1]=[_.P8];var GpU=function(){};
_.L(GpU,hN);
GpU.prototype.resolveCommand=function(E){var B,I,T,e,c,Y,v,y,Z;return _.a(function(P){B=_.h(E,rLZ);if((I=B)==null?0:I.sectionIdentifier){if(B.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(e=(T=document.getElementsByTagName(B.sectionIdentifier))==null?void 0:T.item(0))e.scrollIntoView({behavior:"smooth"}),(c=Sqt(e))&&c.focus({preventScroll:!0});return P.return()}Y=document.querySelector("[section-identifier="+B.sectionIdentifier+"]");v=document.querySelector("[section-identifier="+B.referenceSectionIdentifier+
"]");if(!Y)return P.return();y=B.verticalScrollOffsetDp?B.verticalScrollOffsetDp:0;v&&(y-=v.offsetTop);window.scrollTo({top:Y.offsetTop+y,behavior:"smooth"});(Z=Sqt(Y))&&Z.focus({preventScroll:!0})}_.ER(P)})};var U0=function(){};
_.L(U0,hN);
U0.prototype.resolveCommand=function(E){var B,I,T,e,c,Y,v;return _.a(function(y){if(y.nextAddress==1){B=_.h(E,co6);if(!B||!B.imageBytes||!navigator.clipboard)return y.return();if(B.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.xV(Error("Ai")),y.return();_.q7(y,2);T=(I=B)==null?void 0:I.imageBytes;e=T.replace(/-/g,"+").replace(/_/g,"/");c=hYG(e);Y={};v=[new ClipboardItem((Y[c.type]=c,Y))];return _.C(y,navigator.clipboard.write(v),4)}if(y.nextAddress!=2)return _.W7(y,0);
_.RG(y);_.ER(y)})};var kZ=function(E,B){this.innertubeTransportService=E;this.JSC$15176_commandHandler=B};
_.L(kZ,hN);kZ.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v;return _.a(function(y){if(y.nextAddress==1)return(T=_.h(E,i_U))?_.C(y,_.NN(I.innertubeTransportService,E,(e=B)==null?void 0:e.form),2):y.return();(c=y.yieldResult)&&c.errorMetadata&&T.onFailureCommand&&I.JSC$15176_commandHandler.resolveCommand(T.onFailureCommand);Y=c;((v=Y)==null?0:v.shareCommand)&&I.JSC$15176_commandHandler.resolveCommand(Y.shareCommand,B);_.ER(y)})};
kZ[F1]=[_.P8,_.Dt];var t$=function(){};
_.L(t$,hN);t$.prototype.resolveCommand=function(E){var B,I;return _.a(function(T){B=_.h(E,$0U);if(!B||!navigator.share)return T.return();I={url:B.url};try{return T.return(navigator.share(I))}catch(e){}_.ER(T)})};var fk=function(){};
_.L(fk,hN);fk.prototype.resolveCommand=function(){return _.a(function(E){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.ER(E)})};var Vc=function(E){this.JSC$15186_navigationConfirmationService=E};
_.L(Vc,hN);Vc.prototype.resolveCommand=function(){var E=this;return _.a(function(B){E.JSC$15186_navigationConfirmationService.cancelPendingNavigation();_.ER(B)})};
Vc[F1]=[l_];var qQ=function(E){this.JSC$15189_screenManager=E};
_.L(qQ,hN);qQ.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v,y,Z;return _.a(function(P){e=(T=B.form)==null?void 0:T.event;Y=(c=B.form)==null?void 0:c.element;if(!e)throw new _.P7("Event not passed in when resolving command");v=_.p(e.composedPath());for(y=v.next();!y.done;y=v.next())if(Z=y.value,Z.tagName==="YT-COPY-LINK-RENDERER")return Z.copyUrlToClipboard(),Y&&_.np(I.JSC$15189_screenManager,Y),P.return();_.ER(P)})};
qQ[F1]=[_.pj];var Fc=function(){this.JSC$15193_miniAppClientDataProvider=_.Q().resolve(_.uz)};
_.L(Fc,hN);Fc.prototype.resolveCommand=function(){var E=this,B,I;return _.a(function(T){if(E.JSC$15193_miniAppClientDataProvider.clientData.has("video_id")){var e=E.JSC$15193_miniAppClientDataProvider,c=e.clientData.get("video_id");c&&e.clientData.delete("video_id");B="https://youtube.com/watch?v="+c;I=c1(B);if(I===void 0)throw Error("Bi`"+B);_.sf(window,I)}_.ER(T)})};var D9=function(){};
_.L(D9,hN);D9.prototype.resolveCommand=function(){return _.a(function(E){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.ER(E)})};var Kk=function(){};
_.L(Kk,hN);Kk.prototype.resolveCommand=function(){var E;return _.a(function(B){if(B.nextAddress==1)return _.C(B,_.veG(window.document.documentElement),2);(E=document.querySelector("mini-app-container-view-model iframe"))&&E.focus();_.ER(B)})};var Ri=function(E){this.JSC$15200_navigationConfirmationService=E};
_.L(Ri,hN);
Ri.prototype.resolveCommand=function(){var E=this;return _.a(function(B){var I=E.JSC$15200_navigationConfirmationService,T=_.Q().resolve(_.Iy),e;if(((e=I.navigateParams)==null?void 0:e.data)!==void 0){var c;_.NmV(T,I.navigateParams.endpoint,I.navigateParams.data,(c=I.navigateParams.navigationType)!=null?c:1,I.navigateParams.tempData,I.navigateParams.isMiniplayer,void 0,!0);I.navigateParams=void 0;I.customConfirmationCommand=void 0}else I.navigateParams&&(T.navigate(I.navigateParams.endpoint,I.navigateParams.reload,
I.navigateParams.params,I.navigateParams.tempData,I.navigateParams.requestType,I.navigateParams.createScreenConfig,!0),I.navigateParams=void 0,I.customConfirmationCommand=void 0);_.ER(B)})};
Ri[F1]=[l_];var ET=function(){};
_.L(ET,hN);ET.prototype.resolveCommand=function(){return _.a(function(E){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.ER(E)})};var BI=function(E){this.JSC$15205_prefStorage=E};
_.L(BI,hN);BI.prototype.resolveCommand=function(){var E=this,B,I;return _.a(function(T){switch(T.nextAddress){case 1:return _.C(T,E.JSC$15205_prefStorage,2);case 2:return(B=T.yieldResult)?_.C(T,B.set("sfvle",!1),3):T.return();case 3:return _.C(T,B.set("sfvles",!0),4);case 4:I=_.ZB(),_.PN(0,203,!1),_.PN(0,204,!0),I.save(),_.ER(T)}})};
BI[F1]=[A$];var $H=function(E){this.JSC$15208_prefStorage=E};
_.L($H,hN);$H.prototype.resolveCommand=function(){var E=this,B,I;return _.a(function(T){switch(T.nextAddress){case 1:return _.C(T,E.JSC$15208_prefStorage,2);case 2:return(B=T.yieldResult)?_.C(T,B.set("sfvle",!0),3):T.return();case 3:return _.C(T,B.set("sfvles",!0),4);case 4:I=_.ZB(),_.PN(0,203,!0),_.PN(0,204,!0),I.save(),_.ER(T)}})};
$H[F1]=[A$];var I9=function(){};
_.L(I9,hN);I9.prototype.resolveCommand=function(E){var B;return _.a(function(I){B=_.h(E,cPU);if(!B||typeof B.key!=="string"||typeof B.value!=="string")return I.return();window.localStorage.setItem(B.key,B.value);_.ER(I)})};var TH=function(E){this.store=E};
_.L(TH,hN);TH.prototype.resolveCommand=function(E){var B=this,I;return _.a(function(T){I=_.h(E,HNG);if(!I||!I.stepId||!I.token)return T.return();B.store.dispatch(tmZ({stepId:I.stepId,token:I.token,isSelected:!1}));_.ER(T)})};
TH[F1]=[Ru];var ev=function(E,B,I){this.innertubeTransportService=E;this.store=B;this.JSC$15219_screenManager=I};
_.L(ev,hN);
ev.prototype.resolveCommand=function(E){var B=this,I,T,e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q,f,ed,K,p4,sc;return _.a(function(Gf){I=_.h(E,aUZ);if(!I||(T=I.stepIds)==null||!T.length)return Gf.return();e=B.store.getState().talkToRecs;c=[];Y=[];v=_.p(I.stepIds);for(y=v.next();!y.done;y=v.next())for(Z=y.value,P=void 0,(z=(P=e.stepStates[Z])==null?void 0:P.userQuery)&&Y.push({userQuery:z.userQuery,userQueryToken:z.token}),m=void 0,u=(m=e.stepStates[Z])==null?void 0:m.selectionStates,x=_.p(Object.entries(u)),M=
x.next();!M.done;M=x.next())N=M.value,W=_.p(N),U=W.next().value,q=W.next().value,f=U,ed=q,ed.isSelected&&c.push(f);K={selectedChipTokens:c,userQueries:Y,submittedStepIds:I.stepIds};p4={browseTalk2recsFormData:K};I.browseEndpoint?(sc=E,_.PV(sc,_.pq,I.browseEndpoint)):I.command&&(sc=I.command);return sc?_.C(Gf,_.NN(B.innertubeTransportService,sc,{formData:p4,disableCache:!0}).then(function(xi){(xi==null?0:xi.trackingParams)&&B.JSC$15219_screenManager.graftServerVe(xi==null?void 0:xi.trackingParams)}),
0):Gf.return()})};
ev[F1]=[_.P8,Ru,_.pj];var lx=function(E){this.store=E};
_.L(lx,hN);lx.prototype.resolveCommand=function(E){var B=this,I;return _.a(function(T){I=_.h(E,MzD);if(!I||!I.stepId||!I.token)return T.return();B.store.dispatch(tmZ({stepId:I.stepId,token:I.token,isSelected:!0}));_.ER(T)})};
lx[F1]=[Ru];var cI=function(E){this.store=E};
_.L(cI,hN);cI.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v;return _.a(function(y){T=_.h(E,vLR);if(!T||!T.stepId||!T.userQueryToken)return y.return();v=(Y=(e=B)==null?void 0:(c=e.form)==null?void 0:c.userQuery)!=null?Y:"";I.store.dispatch(_.BP({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:T.stepId,userQueryToken:T.userQueryToken,userQuery:v}}));_.ER(y)})};
cI[F1]=[Ru];_.OZh=new _.Dr("TIMELY_ACTIONS_CONTROLLER_TOKEN");var ix=function(E){this.controller=E};
_.L(ix,hN);ix.prototype.resolveCommand=function(E){var B=this,I,T,e,c;return _.a(function(Y){I=_.h(E,JLZ);if(!I)return Y.return();T=I;e=T.id;c=T.isVisible;if(e===void 0||c===void 0)return Y.return();var v;(v=B.controller.timelyActionsMap.get(e))==null||v(e,c);_.ER(Y)})};
ix[F1]=[_.OZh];var ndZ=function(){this.timelyActionsMap=new Map};var p6=function(E){this.JSC$15246_commandHandler=E};
_.L(p6,hN);p6.prototype.resolveCommand=function(E){var B=this,I,T,e,c,Y;return _.a(function(v){I=_.h(E,_.baR);if(!I)return v.return();c=(T=I.item)==null?void 0:(e=T.notificationTextRenderer)==null?void 0:e.successResponseText;if(!c)return v.return();Y=_.VF(c);B.JSC$15246_commandHandler.resolveCommand(Y);_.ER(v)})};
p6[F1]=[_.Dt];var YH=function(E,B){this.innertubeTransportService=E;this.JSC$15251_playerApiPromise=B};
_.L(YH,hN);
YH.prototype.resolveCommand=function(E){var B=this,I,T,e,c,Y,v,y,Z,P;return _.a(function(z){if(z.nextAddress==1)return _.C(z,B.JSC$15251_playerApiPromise,2);I=z.yieldResult;T=I.getOption("captions","track");e=Object.assign({},_.h(E,_.OSZ));(Y=(c=I.getVideoData())==null?void 0:c.video_id)?e.externalVideoId=Y:_.Xx(Error("Ci"));if((v=T)==null?0:v.languageCode)e.languageCode=T.languageCode;if((y=T)==null?0:y.kind)e.kind=T.kind;if((Z=T)==null?0:Z.name)e.name=T.name;P=Object.assign({},E,{getTranscriptEndpoint:e});return _.C(z,
_.NN(B.innertubeTransportService,P),0)})};
YH[F1]=[_.P8,_.qN];var a9=function(){};
_.L(a9,hN);a9.prototype.resolveCommand=function(E){var B,I,T,e,c,Y,v,y;return _.a(function(Z){B=_.h(E,ZSU);if((I=B)==null||!I.paramKeyValuePairs)return Z.return();T=window.location.href;e=_.p(B.paramKeyValuePairs);for(c=e.next();!c.done;c=e.next())Y=c.value,Y.key&&Y.value&&(v={},T=_.jI(T,(v[Y.key]=Y.value,v)));y=_.Q().resolve(_.IZ);_.$J(y,T);_.ER(Z)})};var vI=function(E,B){this.JSC$15258_commandHandler=E;this.innertubeTransportService=B};
_.L(vI,hN);
vI.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q;return _.a(function(f){switch(f.nextAddress){case 1:return(c=(T=B)==null?void 0:(e=T.form)==null?void 0:e.element)&&_.j9(c),Y=_.ZB().get("hl"),v="",_.q7(f,2),_.C(f,A06(Y),4);case 4:v=f.yieldResult;_.W7(f,3);break;case 2:return _.RG(f),c&&_.Uj(c),_.xV(Error("Ei"),"ERROR"),f.return();case 3:y=_.h(E,KWN);if(!y)return c&&_.Uj(c),f.return();(z=(Z=y.commerceActionConfig)==null?void 0:(P=Z.commandLifeCycleConfig)==null?
void 0:P.onStartCommand)&&I.JSC$15258_commandHandler.resolveCommand(z);return _.C(f,_.NN(I.innertubeTransportService,E,{client_data:{paymentsClientToken:{token:v}}}),5);case 5:(m=f.yieldResult)?(c&&_.Uj(c),((N=m)==null?0:N.command)&&I.JSC$15258_commandHandler.resolveCommand(m.command),(q=(W=y.commerceActionConfig)==null?void 0:(U=W.commandLifeCycleConfig)==null?void 0:U.onSuccessCommand)&&I.JSC$15258_commandHandler.resolveCommand(q)):(c&&_.Uj(c),_.xV(Error("Fi")),(M=(u=y.commerceActionConfig)==null?
void 0:(x=u.commandLifeCycleConfig)==null?void 0:x.onFailureCommand)&&I.JSC$15258_commandHandler.resolveCommand(M)),_.ER(f)}})};
vI[F1]=[_.Dt,_.P8];var ys=function(E,B,I){this.store=E;this.JSC$15274_commandHandler=B;this.innertubeTransportService=I};
_.L(ys,hN);
ys.prototype.resolveCommand=function(E,B){var I=this,T,e,c,Y,v,y,Z,P,z;return _.a(function(m){T=_.h(E,REz);e=T.googlePaymentPayload;T.onStartCommand&&I.JSC$15274_commandHandler.resolveCommand(T.onStartCommand);c=e.encryptedPurchaseParams;Y=e.ypcLogWalletAnalyticDataEndpoint;v=T.serializedTransactionFlowLoggingParams;y=e.serializedPaymentsClientParams;Z=T.ypcCujContext;z=kWi(I.innertubeTransportService,(P=B)==null?void 0:P.form,c,Y,v,y,Z);return m.return(z.then(function(u){j1D(B==null?void 0:B.form,
!1);var x=I.store,M=I.JSC$15274_commandHandler,N=u.integratorData;N==null||N===""||u.error!=null?(String(u.error)==="-1"&&T.onDismissCommand?M.resolveCommand(T.onDismissCommand):String(u.error)!=="-1"&&T.onFailureCommand&&M.resolveCommand(T.onFailureCommand),String(u.error)!=="-1"&&String(u.error)!=="132"&&_.xV(Error("Gi"),"ERROR")):(T.googlePaymentEntityKey&&x.dispatch(_.aL("commerceAcquisitionClientPayloadEntity",T.googlePaymentEntityKey,{key:T.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:N,
fundsGuaranteeCallbackClientData:u.integratorClientCallbackData}}})),T.onSuccessCommand&&M.resolveCommand(T.onSuccessCommand));_.i1()},function(u){j1D(B==null?void 0:B.form,!1);
_.xV(u,"ERROR");T.onFailureCommand&&I.JSC$15274_commandHandler.resolveCommand(T.onFailureCommand)}))})};
ys[F1]=[pJ,_.Dt,_.P8];var C6=function(E,B){this.JSC$15278_commandHandler=E;this.purchaseManager=B};
_.L(C6,hN);
C6.prototype.resolveCommand=function(E){var B=this,I,T,e,c,Y,v,y,Z,P;return _.a(function(z){I=_.h(E,ECD);((T=I)==null?0:(e=T.commandLifeCycleConfig)==null?0:e.onStartCommand)&&B.JSC$15278_commandHandler.resolveCommand(I.commandLifeCycleConfig.onStartCommand);if(!((c=I)==null?0:(Y=c.googlePaymentPurchaseManagerPayload)==null?0:Y.securePayloadBytes))return _.xV(Error("Hi"),"ERROR"),z.return();v=GPZ(_.pV(I.googlePaymentPurchaseManagerPayload.securePayloadBytes));y=_.ZB().get("hl");Z=_.gA();bvh(v.serialize(),
y,function(m){Z.resolve(m)},function(m){Z.reject(m)},Z.resolve);
P=Z.promise;return z.return(P.then(function(m){if(m)if(m==null?0:m.errorCode){_.xV(Error("Ii`"+m.errorCode),"ERROR");var u,x;((u=I)==null?0:(x=u.commandLifeCycleConfig)==null?0:x.onFailureCommand)&&B.JSC$15278_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}else if(m==null?0:m.isCancelled){var M,N;((M=I)==null?0:(N=M.commandLifeCycleConfig)==null?0:N.onCancelCommand)&&B.JSC$15278_commandHandler.resolveCommand(I.commandLifeCycleConfig.onCancelCommand)}else{var W,U;((W=I)==
null?0:(U=W.commandLifeCycleConfig)==null?0:U.onSuccessCommand)&&B.JSC$15278_commandHandler.resolveCommand(I.commandLifeCycleConfig.onSuccessCommand)}},function(m){_.xV(m,"ERROR");
var u,x;((u=I)==null?0:(x=u.commandLifeCycleConfig)==null?0:x.onFailureCommand)&&B.JSC$15278_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}))})};
C6[F1]=[_.Dt,o0z];var MEZ=function(E,B){this.JSC$15286_commandHandler=E;this.commandAllowlistOverride=B;var I;this.commandAllowlist=(I=this.commandAllowlistOverride)!=null?I:Sx};
MEZ.prototype.handleResponse=function(E,B,I){var T,e=B==null?void 0:(T=B.config)==null?void 0:T.command;if(!e||this.commandAllowlist.some(function(c){return!!_.h(e,c)})){B=void 0;
I!==void 0&&(B={form:{element:I}});E.onResponseReceivedCommand&&this.JSC$15286_commandHandler.resolveCommand(E.onResponseReceivedCommand,B);E.onResponseReceivedAction&&this.JSC$15286_commandHandler.resolveCommand(E.onResponseReceivedAction,B);E.onResponseReceivedEndpoint&&this.JSC$15286_commandHandler.resolveCommand(E.onResponseReceivedEndpoint,B);E.command&&this.JSC$15286_commandHandler.resolveCommand(E.command,B);if(E.onResponseReceivedCommands)for(I=_.p(E.onResponseReceivedCommands),T=I.next();!T.done;T=
I.next())this.JSC$15286_commandHandler.resolveCommand(T.value,B);if(E.onResponseReceivedActions)for(I=_.p(E.onResponseReceivedActions),T=I.next();!T.done;T=I.next())this.JSC$15286_commandHandler.resolveCommand(T.value,B);if(E.onResponseReceivedEndpoints)for(I=_.p(E.onResponseReceivedEndpoints),T=I.next();!T.done;T=I.next())this.JSC$15286_commandHandler.resolveCommand(T.value,B);if(E.actions)for(E=_.p(E.actions),I=E.next();!I.done;I=E.next())this.JSC$15286_commandHandler.resolveCommand(I.value,B)}};
MEZ[F1]=[_.Dt,_.Fx(Jei)];var HZu=new _.Dr("INNERTUBE_TOKEN_SERVICE");var NcZ=new _.Dr("SCHEDULER_TOKEN");var gdV=function(E){this.scheduler=E;E={};this.tokenMap=(E.app={},E.user={},E)};
gdV.prototype.handleResponse=function(E,B){if(!B)throw Error("Ji");var I;if(E=(I=E.responseContext)==null?void 0:I.innertubeTokenJar){if(E.appTokens){var T,e,c;I=(T=B.innerTubeRequest.context)==null?void 0:(e=T.request)==null?void 0:(c=e.innertubeTokenJar)==null?void 0:c.appTokens;SQZ(this,E.appTokens,this.tokenMap.app,I)}if(E.userTokens){var Y,v,y;B=(Y=B.innerTubeRequest.context)==null?void 0:(v=Y.request)==null?void 0:(y=v.innertubeTokenJar)==null?void 0:y.userTokens;SQZ(this,E.userTokens,this.tokenMap.user,
B)}}};
gdV.prototype.processContext=function(E){E.request||(E.request={});var B=Object.keys(this.tokenMap.app).length,I=Object.keys(this.tokenMap.user).length;if(B||I)E.request.innertubeTokenJar={},B&&(E.request.innertubeTokenJar.appTokens=[].concat(_.ad(Object.values(this.tokenMap.app).flat()))),I&&(E.request.innertubeTokenJar.userTokens=[].concat(_.ad(Object.values(this.tokenMap.user).flat())))};
var SQZ=function(E,B,I,T){B=_.p(B);for(var e=B.next(),c={};!e.done;c={token$jscomp$137:void 0},e=B.next()){c.token$jscomp$137=e.value;if(c.token$jscomp$137.type===void 0)throw new _.P7("InnerTube token has no type",c.token$jscomp$137);if(c.token$jscomp$137.clearTokens)I[c.token$jscomp$137.type]=[];else if(c.token$jscomp$137.value!==void 0){I[c.token$jscomp$137.type]||(I[c.token$jscomp$137.type]=[]);if(T!==void 0&&T.length){e=_.p(T);for(var Y=e.next(),v={};!Y.done;v={requestToken:void 0},Y=e.next())v.requestToken=
Y.value,Y=I[c.token$jscomp$137.type].findIndex(function(y){return function(Z){return Z===y.requestToken||(0,_.a_.equals)(Z,y.requestToken)}}(v)),Y>-1&&I[c.token$jscomp$137.type].splice(Y,1)}I[c.token$jscomp$137.type].push(c.token$jscomp$137);
c.token$jscomp$137.maxAgeSeconds&&Number(c.token$jscomp$137.maxAgeSeconds)>0&&E.scheduler.addLowPriorityJob(function(y){return function(){var Z=I[y.token$jscomp$137.type].indexOf(y.token$jscomp$137);Z>-1&&I[y.token$jscomp$137.type].splice(Z,1)}}(c),Number(c.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.P7("InnerTube token has no value",c.token$jscomp$137);
}};
gdV[F1]=[NcZ];var JOZ=new _.Dr("LOCAL_INNERTUBE_ROUTER_TOKEN"),W96=new _.Dr("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var wk=function(E){this.serviceMap=E};
wk.prototype.shouldPreferLocalResponse=function(E,B){return(E=Xgu(this,E))?E.shouldPreferLocalResponse(B):!1};
wk.prototype.localInnertubeResponse=function(E,B){var I=this,T;return _.a(function(e){return(T=Xgu(I,E))?e.return(T.localInnertubeResponse(B)):e.return(Promise.reject(Error("Ki")))})};
wk.prototype.canProvideFallbackResponse=function(E,B){return(E=Xgu(this,E))?E.canProvideFallbackResponse(B):!1};
wk.prototype.localFallbackInnertubeResponse=function(E,B){var I=this,T;return _.a(function(e){return(T=Xgu(I,E))?e.return(T.localFallbackInnertubeResponse(B)):e.return(Promise.reject(Error("Ki")))})};
var Xgu=function(E,B){B=_.c7(B);return B?(E=E.serviceMap[B])?E:null:null};
wk[F1]=[W96];var d6=function(){};
d6.prototype.shouldPreferLocalResponse=function(){return!1};
d6.prototype.localInnertubeResponse=function(){return _.a(function(E){return E.return(Promise.reject(Error("Li")))})};
d6.prototype.canProvideFallbackResponse=function(){return!0};
d6.prototype.localFallbackInnertubeResponse=function(){var E,B,I;return _.a(function(T){E=dZ("CLOSE_POPUP");B={openPopupAction:fw6()};I={actions:[E,B]};return T.return(I)})};var dPc=function(E,B){this.JSC$15336_upliftPromise=E;this.store=B};
_.l=dPc.prototype;_.l.shouldPreferLocalResponse=function(E){var B=E.videoId,I;if(I=B)I=IMi(this.store.getState().entities,E.videoId);return I&&T4i(this.store.getState().entities,B)?qVG(this.store.getState().entities,E.playlistId):!1};
_.l.localInnertubeResponse=function(E){var B=this,I;return _.a(function(T){return(I=B.getPlayerResponse(E))?T.return(Promise.resolve(I)):T.return(Promise.reject(Error("Mi")))})};
_.l.canProvideFallbackResponse=function(E){return!!E.videoId};
_.l.localFallbackInnertubeResponse=function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,B.JSC$15336_upliftPromise,2);I=B.getPlayerResponse(E);var e;I?e=T.return(Promise.resolve(I)):e=m_(B.store.getState().entities,E.videoId)?T.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.KO(_.yu("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:U5G()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
T.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.KO(_.yu("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:jXB()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return e})};
_.l.getPlayerResponse=function(E){return cBG(this.store.getState().entities,E.videoId)};var Qr=function(E,B){this.localPlayerService=E;this.localWatchNextService=B};
Qr.prototype.shouldPreferLocalResponse=function(E){var B=E.playerRequest;E=E.watchNextRequest;return!!(B&&this.localPlayerService.shouldPreferLocalResponse(B)&&E&&this.localWatchNextService.shouldPreferLocalResponse(E))};
Qr.prototype.localInnertubeResponse=function(E){var B=this,I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1){I=E.playerRequest;T=E.watchNextRequest;if(!I||!T)throw new _.P7("Missing streaming request",E);return _.C(Y,B.localPlayerService.localInnertubeResponse(I),2)}if(Y.nextAddress!=3)return e=Y.yieldResult,_.C(Y,B.localWatchNextService.localInnertubeResponse(T),3);c=Y.yieldResult;return Y.return({playerResponse:e,watchNextResponse:c})})};
Qr.prototype.canProvideFallbackResponse=function(E){var B=E.playerRequest;E=E.watchNextRequest;return!!(B&&this.localPlayerService.canProvideFallbackResponse(B)&&E&&this.localWatchNextService.canProvideFallbackResponse(E))};
Qr.prototype.localFallbackInnertubeResponse=function(E){var B=this,I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return I=E.playerRequest,T=E.watchNextRequest,I&&T?_.C(Y,B.localPlayerService.localFallbackInnertubeResponse(I),2):Y.return(Promise.reject(new _.P7("Missing streaming request",E)));if(Y.nextAddress!=3)return e=Y.yieldResult,_.C(Y,B.localWatchNextService.localFallbackInnertubeResponse(T),3);c=Y.yieldResult;return Y.return({playerResponse:e,watchNextResponse:c})})};var P3=function(E){this.JSC$15346_persistentStorePromiseAccessor=E};
P3.prototype.shouldPreferLocalResponse=function(){return!1};
P3.prototype.localInnertubeResponse=function(){return _.a(function(E){return E.return(Promise.reject(Error("Ni")))})};
P3.prototype.canProvideFallbackResponse=function(){return!0};
P3.prototype.localFallbackInnertubeResponse=function(){var E=this,B,I;return _.a(function(T){return T.nextAddress==1?_.C(T,E.JSC$15346_persistentStorePromiseAccessor(),2):T.nextAddress!=3?(B=T.yieldResult)?_.C(T,B.get("service:guide:fallback"),3):T.return(Promise.reject(Error("Oi"))):(I=T.yieldResult)&&_.c3(I)?T.return(Fk6(_.c3(I))):T.return(Promise.reject(Error("Pi")))})};var hb=function(){};
hb.prototype.shouldPreferLocalResponse=function(){return!1};
hb.prototype.localInnertubeResponse=function(){return _.a(function(E){return E.return(Promise.reject(Error("Qi")))})};
hb.prototype.canProvideFallbackResponse=function(){return!0};
hb.prototype.localFallbackInnertubeResponse=function(){var E,B,I;return _.a(function(T){E=dZ("CLOSE_POPUP");B={openPopupAction:fw6()};I={actions:[E,B]};return T.return(I)})};var Z4=function(){this.urlMap=rOu;this.fallbackCommand=_.yB};
Z4.prototype.shouldPreferLocalResponse=function(E){return(E=E.url)?!!bZZ(this,E):!1};
Z4.prototype.localInnertubeResponse=function(E){var B=this,I;return _.a(function(T){return(I=E.url)?T.return(od6(E,bZZ(B,I))):T.return(Promise.reject(Error("Ri")))})};
Z4.prototype.canProvideFallbackResponse=function(){return!0};
Z4.prototype.localFallbackInnertubeResponse=function(E){var B=this,I,T,e,c,Y,v,y;return _.a(function(Z){I=E.url;if(!I)return Z.return(od6(E,B.fallbackCommand));if(T=bZZ(B,I))return Z.return(od6(E,T));e=void 0;c=_.c7(I);c==="/watch"&&(Y=_.Nm(I,"v"))&&(y=(v=_.Nm(I,"list"))!=null?v:void 0,e=_.DB(Y,y));e||(e=B.fallbackCommand);return Z.return(od6(E,e))})};
var bZZ=function(E,B){if(B)return E.urlMap[_.bT(B)]},od6=function(E,B){B&&E.parentTrackingParams&&(B.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:E.parentTrackingParams}},B.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:B})};var zX=function(E,B,I){this.JSC$15356_upliftPromise=E;this.store=B;this.JSC$15356_persistentStorePromiseAccessor=I};
zX.prototype.shouldPreferLocalResponse=function(){return!1};
zX.prototype.localInnertubeResponse=function(){return _.a(function(E){return E.return(Promise.reject(Error("Si")))})};
zX.prototype.canProvideFallbackResponse=function(){return!0};
zX.prototype.localFallbackInnertubeResponse=function(){var E=this;return _.a(function(B){return B.return(AOZ(E))})};
var AOZ=function(E){var B,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,lb(E.JSC$15356_upliftPromise,E.store),2);B=T.yieldResult;I={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[Vhd(B)]}}}};return T.return(jKX(E,I))})},jKX=function(E,B){var I,T;
return _.a(function(e){if(e.nextAddress==1)return _.C(e,E.JSC$15356_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3)return I=e.yieldResult,_.C(e,ib(I),3);T=e.yieldResult;return e.return({responseContext:{},contents:B,topbar:T})})};var CJ=function(E,B,I){this.JSC$15363_upliftPromise=E;this.store=B;this.JSC$15363_persistentStorePromiseAccessor=I};
CJ.prototype.shouldPreferLocalResponse=function(E){var B=E.videoId;return B&&IMi(this.store.getState().entities,B)&&T4i(this.store.getState().entities,B)?qVG(this.store.getState().entities,E.playlistId):!1};
CJ.prototype.localInnertubeResponse=function(E){var B=this,I,T;return _.a(function(e){if(e.nextAddress==1)return(I=E.videoId)?_.C(e,B.JSC$15363_upliftPromise,2):e.return(Promise.reject(Error("Ti")));if(e.nextAddress!=3)return _.C(e,Uvl(B,E,I),3);T=e.yieldResult;return e.return(kpt(B,T,I))})};
CJ.prototype.canProvideFallbackResponse=function(E){return E.videoId?!0:!1};
CJ.prototype.localFallbackInnertubeResponse=function(E){var B=this,I,T,e,c;return _.a(function(Y){switch(Y.nextAddress){case 1:return(I=E.videoId)?_.C(Y,B.JSC$15363_upliftPromise,2):Y.return(Promise.reject(Error("Ti")));case 2:return _.C(Y,Uvl(B,E,I),3);case 3:T=Y.yieldResult;if(m_(B.store.getState().entities,I)){Y.jumpTo(4);break}return _.C(Y,lb(B.JSC$15363_upliftPromise,B.store),5);case 5:return e=Y.yieldResult,Y.return(tED(T,e));case 4:return IMi(B.store.getState().entities,I)&&T4i(B.store.getState().entities,
I)?Y.return(kpt(B,T,I)):(c={title:_.KO(_.yu("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:U5G()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},Y.return(tED(T,c)))}})};
var Uvl=function(E,B,I){var T,e,c,Y,v;return _.a(function(y){if(y.nextAddress==1)return T=B.playlistId,e=_.DB(I,T),_.C(y,E.JSC$15363_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3)return c=y.yieldResult,_.C(y,ib(c),3);Y=y.yieldResult;v={responseContext:{},currentVideoEndpoint:e,topbar:Y};return y.return(v)})},kpt=function(E,B,I){if(E=m_(E.store.getState().entities,I)){var T;
I=E.videoEntity;var e,c={title:R2(I.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.E3((T=I.localizedStrings)==null?void 0:T.viewCount),viewCount:_.E3((e=I.localizedStrings)==null?void 0:e.viewCount)}}};I.publishedTimestampMillis&&(c.dateText=_.E3(qSc(new Date(Number(I.publishedTimestampMillis)))));T={videoPrimaryInfoRenderer:c};e=E.videoEntity;E=E.channelEntity;E={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:R2(_.yu("SHOW_MORE",void 0,"Show more")),
showLessText:R2(_.yu("SHOW_LESS",void 0,"Show less")),description:e.formattedDescription,owner:{videoOwnerRenderer:{title:R2(E.title),thumbnail:E.avatar}}}};B.contents={twoColumnWatchNextResults:{results:{results:{contents:[T,E]}}}}}return B},tED=function(E,B){E.contents={singleColumnWatchNextResults:{results:{results:{contents:[Vhd(B)]}}}};
return E};var mi=function(E,B,I){this.JSC$15369_upliftPromise=E;this.store=B;this.JSC$15369_persistentStorePromiseAccessor=I};
mi.prototype.shouldPreferLocalResponse=function(){return!1};
mi.prototype.localInnertubeResponse=function(){return _.a(function(E){return E.return(Promise.reject(Error("Ui")))})};
mi.prototype.canProvideFallbackResponse=function(){return!0};
mi.prototype.localFallbackInnertubeResponse=function(){var E=this,B,I,T,e;return _.a(function(c){switch(c.nextAddress){case 1:return _.C(c,E.JSC$15369_persistentStorePromiseAccessor(),2);case 2:return B=c.yieldResult,_.C(c,ib(B),3);case 3:return I=c.yieldResult,T={responseContext:{},topbar:I},_.C(c,E.JSC$15369_upliftPromise,4);case 4:return _.C(c,lb(E.JSC$15369_upliftPromise,E.store),5);case 5:return e=c.yieldResult,T.watchStatus={backgroundPromoRenderer:e},c.return(T)}})};var fJN=new _.Dr("ENDPOINT_MAP");var VEl=function(){var E=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return E.sequenceMap}}},HBZ=function(E,B,I){var T,e=(T=B.config)==null?void 0:T.sequenceStrategy;
if(!e)return I();E.sequenceMap.has(e.sequenceKey)||E.sequenceMap.set(e.sequenceKey,[]);E=E.sequenceMap.get(e.sequenceKey);switch(e.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return qQh(E,B,I);case "REQUEST_SEQUENCE_TYPE_REPLACE":return F9N(E,B,I);default:throw new _.P7("Request could not be sequenced",B);}},qQh=function(E,B,I){var T,e,c;
return _.a(function(Y){E.length>0?(e=E[E.length-1],T=e.responsePromise.then(function(){return I()})):T=I();
c={request:B,responsePromise:T};E.push(c);Dvz(E,c);return Y.return(c.responsePromise)})},F9N=function(E,B,I){I=I();
if(E.length>0)for(var T=_.p(E),e=T.next();!e.done;e=T.next())e.value.responsePromise=I;var c={request:B,responsePromise:I};E.push(c);Dvz(E,c);return Promise.resolve().then(function(){return E.indexOf(c)>0?c.responsePromise.then(function(Y){return Object.assign({},Y,{sequenceMetaData:{skipProcessing:!0}})}):c.responsePromise})},Dvz=function(E,B){B.responsePromise.then(function(){var I=E.indexOf(B);
I>-1&&E.splice(I,1)})};var K9r=new _.Dr("REQUEST_SEQUENCING");var ZS=function(){};
_.L(ZS,dS);ZS.prototype.getApiPaths=function(){return[]};
ZS.prototype.getExtension=function(E){return _.h(E,HaD)};
ZS.prototype.JSC$11783_buildRequest=function(E,B){E.recaptchaToken=B.recaptchaToken};
ZS.prototype.getApiUrl=function(){return"/das_captcha"};var PI=function(){};
_.L(PI,dS);PI.prototype.getApiPaths=function(){return DlN};
PI.prototype.getExtension=function(E){return _.h(E,lUr)};
PI.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;B.createBackstagePostParams&&(E.createBackstagePostParams=B.createBackstagePostParams);I.comment_text&&(E.commentText=I.comment_text);if(I.attached_video_id)E.videoAttachment={videoId:I.attached_video_id};else if(I.image_poll_options)E.pollAttachmentData={options:I.image_poll_options};else if(I.poll_options)E.pollAttachment={choices:I.poll_options};else if(I.quiz_options)E.quizAttachmentData={options:I.quiz_options};else if(I.image_blob_id)E.imageAttachment=
{encryptedBlobId:I.image_blob_id},I.source_video_id&&(E.imageAttachment.sourceExternalVideoId=I.source_video_id),I.image_preview_coordinates&&(E.imageAttachment.previewCoordinates=JSON.parse(I.image_preview_coordinates));else if(I.images_data)E.imagesAttachment={imagesData:I.images_data};else if(I.clip_external_video_id!==void 0||I.clip_offset_ms!==void 0||I.clip_duration_ms!==void 0){var T,e,c,Y,v;E.clipAttachment={externalVideoId:(c=I.clip_external_video_id)!=null?c:"",offsetMs:(Y=(T=I.clip_offset_ms)==
null?void 0:T.toString())!=null?Y:"",durationMs:(v=(e=I.clip_duration_ms)==null?void 0:e.toString())!=null?v:""}}else I.shared_post_id&&(E.sharedPostAttachment={postId:I.shared_post_id});I.tagged_video_id&&(E.postCreationData={taggedVideoId:I.tagged_video_id});I.access_restrictions&&(typeof I.access_restrictions==="number"&&(B=I.access_restrictions,E.accessRestrictions={restriction:B!==1&&B===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof I.access_restrictions==="string"&&
(E.accessRestrictionsParams=I.access_restrictions));I.scheduled_publish_time_sec&&(E.scheduledPublishTimeSec=I.scheduled_publish_time_sec.toString())};var zH=function(){};
_.L(zH,dS);zH.prototype.getApiPaths=function(){return TSZ};
zH.prototype.getExtension=function(E){return _.h(E,pOt)};
zH.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;B.decorateMessageParams&&(E.params=B.decorateMessageParams);I.text&&(E.text=I.text)};var mH=function(){};
_.L(mH,dS);mH.prototype.getApiPaths=function(){return u_V};
mH.prototype.getExtension=function(E){return _.h(E,cw6)};
mH.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;I.video_id&&(E.videoId=I.video_id)};var Qs=function(){};
_.L(Qs,dS);Qs.prototype.getApiPaths=function(){return M1U};
Qs.prototype.getExtension=function(E){return _.h(E,_.a2)};
Qs.prototype.JSC$11783_buildRequest=function(E,B,I){I.suggestions_query&&(E.input=I.suggestions_query)};var dk=function(){};
_.L(dk,dS);dk.prototype.getApiPaths=function(){return pyV};
dk.prototype.getExtension=function(E){return _.h(E,i7$)};
dk.prototype.JSC$11783_buildRequest=function(E,B,I){I.comment_text!==void 0&&(E.commentText=I.comment_text);I.scheduled_publish_time_sec&&(E.scheduledPublishTimeSec=I.scheduled_publish_time_sec.toString());E.updateBackstagePostParams=B.updateBackstagePostParams};var he=function(){};
_.L(he,dS);he.prototype.getApiPaths=function(){return R0};
he.prototype.getExtension=function(E){return _.h(E,_.u0)};
he.prototype.JSC$11783_buildRequest=function(E,B,I){I.formData&&(E.formData=I.formData);B.token?E.continuation=B.token:B.continuationTokenKey&&(I=_.t2().getState(),B=_.cP(I.entities,"continuationTokenEntity",B.continuationTokenKey))&&(E.continuation=String(B.continuationToken))};
var Reu=function(){};
_.L(Reu,dS);_.l=Reu.prototype;_.l.getApiPaths=function(){return R0};
_.l.getExtension=function(E){return _.h(E,_.pq)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$11790_getStoreKey=function(E){if((E=this.getExtension(E))&&E.browseId){var B={browseId:E.browseId};E.browseEndpointContextSupportedConfigs&&(B.browseEndpointContextSupportedConfigs=JSON.stringify(E.browseEndpointContextSupportedConfigs));E.params&&(B.params=E.params);E.query&&(B.query=E.query);return _.Ui("browse",B)}};
_.l.JSC$11783_buildRequest=function(E,B,I){B.browseId&&(E.browseId=B.browseId);B.params&&(E.params=B.params);B.query&&(E.query=B.query);I.formData?E.formData=I.formData:B.formData&&(E.formData=B.formData);B.browseId==="FEsubscriptions"&&_.ZB().getFlag(155)&&(E.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");B.browseId==="SPaccount_playback"&&(I=_.ZB(),E.formData||(E.formData={}),E.formData.accountSettingsFormData={flagCaptionsDefaultOff:I.getFlag(65),flagAutoCaptionsDefaultOn:I.getFlag(66),
flagDisableInlinePreview:I.getFlag(186),flagAudioDescriptionDefaultOn:I.getFlag(198)});if(B.browseId==="FEwhat_to_watch"){I=_.ZB();var T=I.getFlag(196);I.getFlag(197)&&(E.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:T}}})}B.browseId==="FEwhat_to_watch"&&(B=_.ZB().getFlag(186),E.inlineSettingStatus=B?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.l.getRequestConfig=function(E,B){B=B===void 0?{}:B;var I={};if(E=this.JSC$11790_getStoreKey(E,B))I.storeStrategy={storeKey:E,disableCache:B.disableCache};_.d("web_log_browse_ticks_ks")||(I.requestTick="br_s",I.responseTick="br_r");return I};var sT=function(){};
_.L(sT,dS);sT.prototype.getApiPaths=function(){return k0h};
sT.prototype.getExtension=function(E){return _.h(E,Lsu)};
sT.prototype.JSC$11783_buildRequest=function(E,B,I){E.legacyYoutubeChannelUsername=I.legacyYouTubeChannelUsername||"";E.legacyYoutubeChannelPassword=I.legacyYouTubeChannelPassword||""};var ux=function(){};
_.L(ux,dS);ux.prototype.getApiPaths=function(){return RaR};
ux.prototype.getExtension=function(E){return _.h(E,Z7N)};
ux.prototype.JSC$11783_buildRequest=function(E,B,I){I.recaptcha_response_token&&(E.recaptchaResponseToken=I.recaptcha_response_token);I.channel_id&&(E.channelId=I.channel_id)};var L6=function(){};
_.L(L6,dS);L6.prototype.getApiPaths=function(){return Yuu};
L6.prototype.getExtension=function(E){return _.h(E,hmR)};
L6.prototype.JSC$11783_buildRequest=function(E,B,I){B.externalChannelId&&(E.externalChannelId=B.externalChannelId);I.handle&&(E.handleUpdate={handle:I.handle},B.handleEditSource&&(E.handleUpdate.handleEditSource=B.handleEditSource))};var xH=function(){};
_.L(xH,dS);xH.prototype.getApiPaths=function(){return CSh};
xH.prototype.getExtension=function(E){return _.h(E,WYu)};
xH.prototype.JSC$11783_buildRequest=function(E,B,I){B.request&&(E.channelId=B.request.channelId);var T;if(I==null?0:(T=I.uploadDefaults)==null?0:T.emojiReactionSet)E.uploadDefaultsRequest||(E.uploadDefaultsRequest={}),E.uploadDefaultsRequest.emojiReactionSet=I.uploadDefaults.emojiReactionSet};var GH=function(){};
_.L(GH,dS);GH.prototype.getApiPaths=function(){return PSl};
GH.prototype.getExtension=function(E){return _.h(E,PtR)};
GH.prototype.JSC$11783_buildRequest=function(E,B,I){B.externalChannelId&&(E.externalChannelId=B.externalChannelId);B.channelHandleEntityKey&&(E.channelHandleEntityKey=B.channelHandleEntityKey);B.handleEditSource&&(E.handleEditSource=B.handleEditSource);I.handle?E.handle=I.handle:I.name&&(E.name=I.name)};var OT=function(){};
_.L(OT,dS);OT.prototype.getApiPaths=function(){return V7R};
OT.prototype.getExtension=function(E){return _.h(E,f_D)};
OT.prototype.JSC$11783_buildRequest=function(E,B){B.actions?E.actions=B.actions:B.action&&(E.actions=[B.action])};var n6=function(){};
_.L(n6,dS);n6.prototype.getApiPaths=function(){return qyh};
n6.prototype.getExtension=function(E){return _.h(E,_.u0)};
n6.prototype.JSC$11783_buildRequest=function(E,B){B.token&&(E.continuation=B.token)};var M1=function(){};
_.L(M1,dS);M1.prototype.getApiPaths=function(){return haZ};
M1.prototype.getExtension=function(E){return _.h(E,_.u0)};
M1.prototype.JSC$11783_buildRequest=function(E,B){E.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";B.token&&(E.fetchCommentsParams={continuation:B.token})};var HI=function(){};
_.L(HI,dS);HI.prototype.getApiPaths=function(){return Exz};
HI.prototype.getExtension=function(E){return _.h(E,tpU)};
HI.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;B.createReplyParams&&(E.createReplyParams=B.createReplyParams);B.commentText&&(E.commentText=_.U3(B.commentText));I.comment_text&&(E.commentText=I.comment_text);I.image_blob_id&&(E.imageAttachment={encryptedBlobId:I.image_blob_id});I.botguard_response&&(E.botguardResponse=I.botguard_response)};
_.Up.Object.defineProperties(HI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var N1=function(){};
_.L(N1,dS);N1.prototype.getApiPaths=function(){return BSX};
N1.prototype.getExtension=function(E){return _.h(E,_.kTU)};
N1.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;B.createCommentParams&&(E.createCommentParams=B.createCommentParams);B.commentText&&(E.commentText=_.U3(B.commentText));B.videoPositionMention&&(E.videoPositionMention=B.videoPositionMention);B.sources&&(E.sources=B.sources);I.comment_text&&(E.commentText=I.comment_text);I.attached_video_id?E.videoAttachment={videoId:I.attached_video_id}:I.poll_options?E.pollAttachment={choices:I.poll_options}:I.image_blob_id?E.imageAttachment=
{encryptedBlobId:I.image_blob_id}:I.shared_post_id&&(E.sharedPostAttachment={postId:I.shared_post_id});I.access_restrictions&&typeof I.access_restrictions==="number"&&(B=I.access_restrictions,E.accessRestrictions={restriction:B!==1&&B===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});I.botguard_response&&(E.botguardResponse=I.botguard_response)};
_.Up.Object.defineProperties(N1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gk=function(){};
_.L(gk,dS);gk.prototype.getApiPaths=function(){return av6};
gk.prototype.getExtension=function(E){return _.h(E,qSZ)};
gk.prototype.JSC$11783_buildRequest=function(E,B,I){B.commentText&&(E.replyText=_.U3(B.commentText));I.comment_text&&(E.replyText=I.comment_text);E.updateReplyParams=B.updateReplyParams};
_.Up.Object.defineProperties(gk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Sv=function(){};
_.L(Sv,dS);Sv.prototype.getApiPaths=function(){return v2$};
Sv.prototype.getExtension=function(E){return _.h(E,Vp$)};
Sv.prototype.JSC$11783_buildRequest=function(E,B,I){B.commentText&&(E.commentText=_.U3(B.commentText));I.comment_text&&(E.commentText=I.comment_text);E.updateCommentParams=B.updateCommentParams};
_.Up.Object.defineProperties(Sv.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Je=function(){};
_.L(Je,dS);Je.prototype.getApiPaths=function(){return y66};
Je.prototype.getExtension=function(E){return _.h(E,Nwh)};
Je.prototype.JSC$11783_buildRequest=function(E,B){B.settings&&(E.settings=B.settings)};var WI=function(){};
_.L(WI,dS);WI.prototype.getApiPaths=function(){return wF6};
WI.prototype.getExtension=function(E){return _.h(E,zmr)};
WI.prototype.JSC$11783_buildRequest=function(E,B){B.channelCreationToken&&(E.channelCreationToken=B.channelCreationToken);B.source&&(E.source=B.source)};var Xd=function(){};
_.L(Xd,dS);Xd.prototype.getApiPaths=function(){return R8$};
Xd.prototype.getExtension=function(E){return _.h(E,dyt)};
Xd.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;if(I.name&&(I.given_name||I.family_name))E=new _.P7("channel creation cannot set both GAIA and YouTube names",B),_.xV(E);else{if(B.zeroStepChannelCreationParams){if(!I.comment_text){E=new _.P7("zero_step_create_comment_params but no zero_step_texts",B);_.xV(E);return}E.zeroStepChannelCreationParams=B.zeroStepChannelCreationParams;E.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(E.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
I.comment_text,I.botguard_response&&(E.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=I.botguard_response))}E.channelCreationToken=B.channelCreationToken;I.given_name&&(E.givenName=I.given_name);I.family_name&&(E.familyName=I.family_name);B.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(E.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(I.name||I.handle||I.avatar_url||I.encryptedBlobId||I.isNameChanged!==void 0||I.isHandleChanged!==void 0||I.isDefaultProfilePhoto!==
void 0||I.obakeImageSource)E.overrideChannelCreationParams={},I.name&&(E.overrideChannelCreationParams.name=I.name),I.handle&&(E.overrideChannelCreationParams.handle=I.handle),I.avatar_url&&(E.overrideChannelCreationParams.avatarUrl=I.avatar_url),I.encryptedBlobId&&(E.overrideChannelCreationParams.blobEncryptionId=I.encryptedBlobId),I.enableIdentityForAllChannelCreationDialog&&(I.encryptedBlobId?E.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
I.isDefaultProfilePhoto!==void 0&&(E.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=I.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),I.isNameChanged!==void 0&&(E.overrideChannelCreationParams.identityForAllChannelCreationNameTag=I.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),I.isHandleChanged!==
void 0&&(E.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=I.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),I.obakeImageSource&&(E.overrideChannelCreationParams.obakeImageSourceType=I.obakeImageSource))}};var rk=function(){};
_.L(rk,dS);rk.prototype.getApiPaths=function(E){return(E=this.getExtension(E))&&E.status==="DISLIKE"?ij$:E&&E.status==="INDIFFERENT"?V1N:J4r};
rk.prototype.getExtension=function(E){return _.h(E,_.AC)};
rk.prototype.JSC$11783_buildRequest=function(E,B){B.target&&(E.target=B.target);if(B=this.getParams(B))E.params=B};
rk.prototype.getParams=function(E){switch(E==null?void 0:E.status){case "DISLIKE":return E.dislikeParams;case "INDIFFERENT":return E.removeLikeParams;default:return E==null?void 0:E.likeParams}};var bx=function(){};
_.L(bx,dS);bx.prototype.getApiPaths=function(){return Thz};
bx.prototype.getExtension=function(E){return _.h(E,BBV)};
bx.prototype.JSC$11783_buildRequest=function(E,B){B.settingItemId&&(E.settingItemId=B.settingItemId);B.stringValue!=null&&B.stringValue!==void 0?E.newValue={stringValue:B.stringValue}:B.intValue?E.newValue={intValue:B.intValue}:B.boolValue!==null&&B.boolValue!==void 0?E.newValue={boolValue:B.boolValue}:(E=new _.P7("Unknown value type for SetSettingEndpoint.",B),_.xV(E))};var o9=function(){};
_.L(o9,dS);o9.prototype.getApiPaths=function(){return lvZ};
o9.prototype.getExtension=function(E){return _.h(E,zEU)||void 0};
o9.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;B.channelIds&&(E.channelIds=B.channelIds);B.siloName&&(E.siloName=B.siloName);B.params&&(E.params=B.params);I.botguardResponse&&(E.botguardResponse=I.botguardResponse);I.feature&&(E.clientFeature=I.feature)};
_.Up.Object.defineProperties(o9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ae=function(){};
_.L(Ae,dS);Ae.prototype.getApiPaths=function(){return izR};
Ae.prototype.getExtension=function(E){return _.h(E,$eN)||void 0};
Ae.prototype.JSC$11783_buildRequest=function(E,B){B.channelIds&&(E.channelIds=B.channelIds);B.siloName&&(E.siloName=B.siloName);B.params&&(E.params=B.params)};
_.Up.Object.defineProperties(Ae.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var jv=function(E){this.shareClientParamsProvider=E};
_.L(jv,dS);jv.prototype.getApiPaths=function(){return xkV};
jv.prototype.getExtension=function(E){return _.h(E,x$6)||_.h(E,_.Gzu)||_.h(E,LA6)};
jv.prototype.JSC$11783_buildRequest=function(E,B){B.serializedShareEntity&&(E.serializedSharedEntity=B.serializedShareEntity);if(B.clientParamIdentifier){var I;if((I=this.shareClientParamsProvider)==null?0:I.clientParams.has(B.clientParamIdentifier)){I=this.shareClientParamsProvider;B=B.clientParamIdentifier;var T=I.clientParams.get(B);T&&I.clientParams.delete(B);E.clientParams=T}}};
jv[F1]=[sUR];var UT=function(){};
_.L(UT,dS);UT.prototype.getApiPaths=function(){return Ahh};
UT.prototype.getExtension=function(E){return _.h(E,JPZ)};
UT.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params)};var kH=function(){};
_.L(kH,dS);kH.prototype.getApiPaths=function(){return pFz};
kH.prototype.getExtension=function(E){return _.h(E,NIh)};
kH.prototype.JSC$11783_buildRequest=function(E,B){B.dismissal&&(E.items=[B.dismissal])};
_.Up.Object.defineProperties(kH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var te=function(){};
_.L(te,dS);te.prototype.getApiPaths=function(){return gxV};
te.prototype.getExtension=function(E){return _.h(E,_.Ms)||void 0};
te.prototype.JSC$11783_buildRequest=function(E,B,I){E.feedbackTokens=[];B.feedbackToken&&E.feedbackTokens.push(B.feedbackToken);if(B=B.cpn||I.cpn)E.feedbackContext={cpn:B};E.isFeedbackTokenUnencrypted=!!I.is_feedback_token_unencrypted;E.shouldMerge=!1;I.extra_feedback_tokens&&(E.shouldMerge=!0,E.feedbackTokens=E.feedbackTokens.concat(I.extra_feedback_tokens))};
_.Up.Object.defineProperties(te.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var f6=function(){};
_.L(f6,dS);f6.prototype.getApiPaths=function(){return gxV};
f6.prototype.getExtension=function(E){return _.h(E,_.a2)};
f6.prototype.JSC$11783_buildRequest=function(E,B,I){I.feedback_tokens&&(E.feedbackTokens=I.feedback_tokens,E.shouldMerge=!0)};
_.Up.Object.defineProperties(f6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Vs=function(){};
_.L(Vs,dS);Vs.prototype.getApiPaths=function(){return gxV};
Vs.prototype.getExtension=function(E){return _.h(E,NOi)};
Vs.prototype.JSC$11783_buildRequest=function(E,B){B.undoToken&&(E.feedbackTokens=[B.undoToken]);B.isUndoTokenUnencrypted&&(E.isFeedbackTokenUnencrypted=B.isUndoTokenUnencrypted)};
_.Up.Object.defineProperties(Vs.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var q1=function(){};
_.L(q1,dS);q1.prototype.getApiPaths=function(){return zHz};
q1.prototype.getExtension=function(E){return _.h(E,nTZ)};
q1.prototype.JSC$11783_buildRequest=function(E,B){B.nextEndpoint&&_.h(B.nextEndpoint,_.JK)?E.nextEndpoint={urlEndpoint:_.h(B.nextEndpoint,_.JK)}:B.nextEndpoint&&_.h(B.nextEndpoint,_.kh)&&(E.nextEndpoint={watchEndpoint:_.h(B.nextEndpoint,_.kh)});B.setRacy&&(E.setRacy=B.setRacy);B.setControvercy&&(E.setControvercy=B.setControvercy)};var Fd=function(E){this.JSC$15551_storeWithEntities=E};
_.L(Fd,dS);Fd.prototype.getApiPaths=function(){return alD};
Fd.prototype.getExtension=function(E){return _.h(E,Eez)};
Fd.prototype.JSC$11783_buildRequest=function(E,B){B.flowId&&(E.flowId=B.flowId);B.targetId&&(E.targetId=B.targetId);B.continuation&&(E.continuation=B.continuation);var I=B.flowStateEntityKey;if(B.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&I&&this.JSC$15551_storeWithEntities){var T;if(B=(T=this.JSC$15551_storeWithEntities.getState())==null?void 0:T.entities)if(T=_.IY(I).entityType,T=_.cP(B,T,I))E.flowState=T,E.flowStateEntityKey=I}};
_.Up.Object.defineProperties(Fd.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
Fd[F1]=[pJ];var Eim=function(){};
_.L(Eim,dS);_.l=Eim.prototype;_.l.getApiPaths=function(){return NSZ};
_.l.JSC$11790_getStoreKey=function(){return _.Ui("guide")};
_.l.getRequestConfig=function(){var E=this.JSC$11790_getStoreKey(),B;E&&(B={storeStrategy:{storeKey:E}});return B};
_.l.isNavigationCommand=function(){return!0};
_.l.getExtension=function(E){return _.h(E,_.a2)};
_.l.JSC$11783_buildRequest=function(E){E.fetchLiveState=!0};var DS=function(){};
_.L(DS,dS);DS.prototype.getApiPaths=function(){return t7R};
DS.prototype.getExtension=function(E){return _.h(E,ABU)};
DS.prototype.JSC$11783_buildRequest=function(){};var K6=function(){};
_.L(K6,dS);K6.prototype.getApiPaths=function(){return fGR};
K6.prototype.getExtension=function(E){return _.h(E,jpz)};
K6.prototype.JSC$11783_buildRequest=function(){};var R9=function(){};
_.L(R9,dS);R9.prototype.getApiPaths=function(){return oCl};
R9.prototype.getExtension=function(E){return _.h(E,_.u0)};
R9.prototype.JSC$11783_buildRequest=function(E,B){B.token&&(E.continuation=B.token);var I,T;E==null||(I=E.context)==null||(T=I.user)==null||delete T.onBehalfOfUser};
R9.prototype.getRequestConfig=function(E){var B={},I;if(((I=this.getExtension(E))==null?void 0:I.sessionIndex)!==void 0){var T;B={authStrategy:{sessionIndex:(T=this.getExtension(E))==null?void 0:T.sessionIndex}}}return B};var Eb=function(){};
_.L(Eb,dS);Eb.prototype.JSC$11783_getRequest=function(E){var B=this.getExtension(E),I=E="";if(B==null?0:B.popup)E="true";if(B==null?0:B.disableSignout)I="true";B={};return{input:"/getAccountSwitcherEndpoint",requestShell:jc("/getAccountSwitcherEndpoint","GET",(B["X-YouTube-Delegation-Context"]=_.HA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),B["X-YouTube-Account-Switcher-Popup"]=E,B["X-YouTube-Account-Switcher-Disable-Signout"]=I,B)),innerTubeRequest:{}}};
Eb.prototype.getApiPaths=function(){return[]};
Eb.prototype.getExtension=function(E){return _.h(E,_.H64)};
Eb.prototype.JSC$11783_buildRequest=function(){};var B_=function(){};
_.L(B_,dS);B_.prototype.JSC$11783_getRequest=function(E){var B="/cross_account_channel_transfer";(E=this.getExtension(E))&&(B=CZF(B,{target_session:E.targetSessionIndex,source_rapt:E.sourceRapt,rapt:E.targetRapt}));return{input:B,requestShell:jc(B,"GET"),innerTubeRequest:{}}};
B_.prototype.getApiPaths=function(){return[]};
B_.prototype.getExtension=function(E){return _.h(E,XfR)};
B_.prototype.JSC$11783_buildRequest=function(){};var $R=function(){};
_.L($R,dS);$R.prototype.getApiPaths=function(){return vxD};
$R.prototype.isNavigationCommand=function(){return!0};
$R.prototype.getExtension=function(E){return _.h(E,_.a2)};
$R.prototype.JSC$11783_buildRequest=function(E){var B=_.ZB().get("gsml","");B&&(E.safetyModeLockerObfuscatedGaiaId=B);E.userInterfaceTheme=_.Oq(!0);_.nq()?E.deviceTheme="DEVICE_THEME_SELECTED":_.d94()?E.deviceTheme="DEVICE_THEME_SUPPORTED":E.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var I4=function(){};
_.L(I4,dS);I4.prototype.getApiPaths=function(){return oCl};
I4.prototype.getExtension=function(E){return _.h(E,rsZ)};
I4.prototype.JSC$11783_buildRequest=function(E,B){if(B&&B.requestType&&(E.requestType=B.requestType,B.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||B.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var I=B.nextUrl;I&&(_.Zgt(I)||V9(I))&&(E.nextNavendpoint={urlEndpoint:{url:I}})}B&&B.channelSwitcherQuery&&(E.channelSwitcherQuery=B.channelSwitcherQuery);B&&B.triggerChannelCreation&&(E.triggerChannelCreation=B.triggerChannelCreation);var T;if(B==null?0:(T=B.contentOwnerConfig)==
null?0:T.externalContentOwnerId)E.contentOwnerConfig=B.contentOwnerConfig;E.callCircumstance=B&&B.requestType&&B.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var e,c;B=E==null?void 0:(e=E.context)==null?void 0:(c=e.user)==null?void 0:c.onBehalfOfUser;if(B!==void 0){E.obfuscatedSelectedGaiaId=B;var Y,v;E==null||(Y=E.context)==null||(v=Y.user)==null||delete v.onBehalfOfUser}var y,Z;if(e=E==null?void 0:(y=E.context)==null?void 0:(Z=y.user)==null?
void 0:Z.serializedDelegationContext)E.selectedSerializedDelegationContext=e};var a4=function(){};
_.L(a4,dS);a4.prototype.getApiPaths=function(){return LN$};
a4.prototype.getExtension=function(E){return _.h(E,gUr)};
a4.prototype.JSC$11783_buildRequest=function(E,B){B.profileOwnerExternalChannelId&&(E.profileOwnerExternalChannelId=B.profileOwnerExternalChannelId);B.profileCardContext&&(E.profileCardContext=B.profileCardContext)};var v_=function(){};
_.L(v_,dS);v_.prototype.getApiPaths=function(){return jyU};
v_.prototype.getExtension=function(E){return _.h(E,Oo$)};
v_.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params)};var y8=function(){};
_.L(y8,dS);y8.prototype.getApiPaths=function(){return KEu};
y8.prototype.getExtension=function(E){return _.h(E,_.jbl)};
y8.prototype.JSC$11783_buildRequest=function(E,B){if(B=B.createBroadcastRequest)E.useMasks=B.useMasks,E.broadcastType=B.broadcastType,E.broadcastSource=B.broadcastSource,E.broadcastMetadata=B.broadcastMetadata,E.broadcastMetadataMask=B.broadcastMetadataMask,E.videoMetadata=B.videoMetadata,E.videoMetadataMask=B.videoMetadataMask,E.liveChatSettingsUpdate=B.liveChatSettingsUpdate,E.liveChatSettingsUpdateMask=B.liveChatSettingsUpdateMask,E.cloneVideoId=B.cloneVideoId,E.cloneWithOverrides=B.cloneWithOverrides,
E.targetEntity=B.targetEntity,E.scheduledRedirectMetadata=B.scheduledRedirectMetadata};var CH=function(){};
_.L(CH,dS);CH.prototype.getApiPaths=function(){return $kU};
CH.prototype.getExtension=function(E){return _.h(E,U6$)};
CH.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;B.params&&(E.params=B.params);I.questionText&&(E.questionText=I.questionText);I.optionText&&I.optionText.length>0&&(E.optionText=I.optionText)};var wg=function(){};
_.L(wg,dS);wg.prototype.getApiPaths=function(){return eaN};
wg.prototype.getExtension=function(E){return _.h(E,AGu)};
wg.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params)};var Zp=function(){};
_.L(Zp,dS);Zp.prototype.getApiPaths=function(){return PFu};
Zp.prototype.getExtension=function(E){return _.h(E,Xdl)};
Zp.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params)};var P_=function(){};
_.L(P_,dS);P_.prototype.getApiPaths=function(){return mku};
P_.prototype.getExtension=function(E){return _.h(E,rGl)};
P_.prototype.JSC$11783_buildRequest=function(E,B,I){B.params&&(E.params=B.params);B.continuation&&(E.continuation=B.continuation);I.currentPlayerState&&I.currentPlayerState.playerOffsetMs&&(E.currentPlayerState={playerOffsetMs:I.currentPlayerState.playerOffsetMs.toString()})};var zL=function(){};
_.L(zL,dS);zL.prototype.getApiPaths=function(){return Qvz};
zL.prototype.getExtension=function(E){return _.h(E,WU6)};
zL.prototype.JSC$11783_buildRequest=function(E,B,I){B.params&&(E.params=B.params);I.continuation&&(E.continuation=I.continuation);"hidden"in I&&(E.webClientInfo={isDocumentHidden:I.hidden});I.isInvalidationTimeoutRequest&&(E.isInvalidationTimeoutRequest=I.isInvalidationTimeoutRequest);I.invalidationPayload&&(B=JGD(_.pV(qD(I.invalidationPayload))),E.invalidationPayloadLastPublishAtUsec=Md(B,2));I.reloadActionPanel&&(E.reloadActionPanel=I.reloadActionPanel);I.fullReload&&(E.fullReload=I.fullReload);
I.currentPlayerState&&(E.currentPlayerState=I.currentPlayerState)};var m1=function(){};
_.L(m1,dS);m1.prototype.getApiPaths=function(){return WNN};
m1.prototype.getExtension=function(E){return _.h(E,jwh)};
m1.prototype.JSC$11783_buildRequest=function(E,B){E.params=B.params};var Q8=function(){};
_.L(Q8,dS);Q8.prototype.getApiPaths=function(){return zaz};
Q8.prototype.getExtension=function(E){return _.h(E,kzz)};
Q8.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params)};var dg=function(){};
_.L(dg,dS);dg.prototype.getApiPaths=function(){return dkV};
dg.prototype.getExtension=function(E){return _.h(E,to6)};
dg.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params)};var hZ=function(){};
_.L(hZ,dS);hZ.prototype.getApiPaths=function(){return XFV};
hZ.prototype.getExtension=function(E){return _.h(E,kjZ)};
hZ.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params)};var sb=function(){};
_.L(sb,dS);sb.prototype.getApiPaths=function(){return bjr};
sb.prototype.getExtension=function(E){return _.h(E,tMu)};
sb.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params)};var u7=function(){};
_.L(u7,dS);u7.prototype.getApiPaths=function(){return q6D};
u7.prototype.getExtension=function(E){return _.h(E,HoR)};
u7.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params)};var LH=function(){};
_.L(LH,dS);LH.prototype.getApiPaths=function(){return $9h};
LH.prototype.getExtension=function(E){return _.h(E,_.fr$)};
LH.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;B.params&&(E.params=B.params);I.client_message_id&&(E.clientMessageId=I.client_message_id);I.recaptcha_token&&(E.recaptchaToken=I.recaptcha_token);I.rich_message&&I.rich_message.text_segments?(B=I.rich_message.text_segments.map(function(T){var e={};T.text&&(e.text=T.text);T.emoji_id&&(e.emojiId=T.emoji_id);return e}),E.richMessage={textSegments:B}):I.message&&(E.message=I.message);
I.currentPlayerState&&(E.currentPlayerState=I.currentPlayerState)};var xR=function(){};
_.L(xR,dS);xR.prototype.getApiPaths=function(){return Ivu};
xR.prototype.getExtension=function(E){return _.h(E,VMD)};
xR.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params)};var GL=function(){};
_.L(GL,dS);GL.prototype.getApiPaths=function(){return c66};
GL.prototype.getExtension=function(E){return _.h(E,FUh)};
GL.prototype.JSC$11783_buildRequest=function(E,B,I){B.isUserInitiated&&(E.isUserInitiated=B.isUserInitiated);B.initiationSource&&(E.initiationSource=B.initiationSource);I.locationInfo&&(E.context.client.locationInfo=I.locationInfo)};var Ob=function(){};
_.L(Ob,dS);Ob.prototype.getApiPaths=function(){return r4l};
Ob.prototype.getExtension=function(E){return _.h(E,UBU)};
Ob.prototype.JSC$11783_buildRequest=function(E,B,I){B.metadataUpdateRequest&&(B=B.metadataUpdateRequest,E.encryptedVideoId=B.encryptedVideoId,B.liveChat&&(B=B.liveChat,E.liveChat||(E.liveChat={}),B.performAsExternalChannelId&&(E.liveChat.performAsExternalChannelId=B.performAsExternalChannelId),B.source&&(E.liveChat.source=B.source)));var T;if(I==null?0:(T=I.liveChat)==null?0:T.liveChatSettings)E.liveChat||(E.liveChat={}),I=I.liveChat.liveChatSettings,E.liveChat.newLiveChatSettings=I,E.liveChat.newLiveChatSettingsMask||
(E.liveChat.newLiveChatSettingsMask={}),I.emojiReactionSet&&(E.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var nH=function(){};
_.L(nH,dS);nH.prototype.getApiPaths=function(){return Zzt};
nH.prototype.getExtension=function(E){return _.h(E,_.I3r)};
nH.prototype.JSC$11783_buildRequest=function(E,B,I){I.continuation?E.continuation=I.continuation:B.videoId&&(E.videoId=B.videoId);I.clientParams&&(E.clientParams=I.clientParams)};var MM=function(){};
_.L(MM,dS);MM.prototype.getApiPaths=function(){return haZ};
MM.prototype.getExtension=function(E){return _.h(E,_.OS)};
MM.prototype.JSC$11783_buildRequest=function(E,B){E.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";E.fetchCommentsParams={};B.videoId&&(E.fetchCommentsParams.encryptedVideoId=B.videoId);B.postId&&(E.fetchCommentsParams.postId=B.postId);B.externalChannelId&&(E.fetchCommentsParams.externalChannelId=B.externalChannelId);B.linkedCommentId&&(E.fetchCommentsParams.linkedCommentId=B.linkedCommentId);(0,_.a_.isEmpty)(E.fetchCommentsParams)&&delete E.fetchCommentsParams};var H_=function(){};
_.L(H_,dS);H_.prototype.getApiPaths=function(){return R0};
H_.prototype.JSC$11783_buildRequest=function(E){E.browseId="FEnotifications_inbox"};
H_.prototype.getExtension=function(E){return _.h(E,_.a2)};var NM=function(){};
_.L(NM,dS);NM.prototype.getApiPaths=function(){return haZ};
NM.prototype.JSC$11783_buildRequest=function(E,B){B.signal==="GET_NOTIFICATIONS_MENU"&&(E.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");B.ctoken&&(E.ctoken=B.ctoken)};
var BJT=function(){};
_.L(BJT,NM);BJT.prototype.getExtension=function(E){return _.h(E,_.a2)};
var $G1=function(){};
_.L($G1,NM);$G1.prototype.getExtension=function(E){return _.h(E,x0$)};var gg=function(){};
_.L(gg,dS);gg.prototype.getApiPaths=function(){return nxt};
gg.prototype.getExtension=function(E){return _.h(E,_.a2)};
gg.prototype.JSC$11783_buildRequest=function(){};var S5=function(){};
_.L(S5,dS);S5.prototype.getApiPaths=function(){return oxu};
S5.prototype.getExtension=function(E){return _.h(E,KJD)||void 0};
S5.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params);B.secondaryParams&&(E.secondaryParams=B.secondaryParams)};var JZ=function(){};
_.L(JZ,dS);JZ.prototype.getApiPaths=function(){return A4D};
JZ.prototype.getExtension=function(E){return _.h(E,nbD)};
JZ.prototype.JSC$11783_buildRequest=function(E,B){B.undo&&(E.undo=B.undo);B.serializedOptOut&&(E.serializedOptOut=B.serializedOptOut);B.serializedRecordInteractionsRequest&&(E.serializedRecordInteractionsRequest=B.serializedRecordInteractionsRequest)};var W_=function(){};
_.L(W_,dS);W_.prototype.getApiPaths=function(){return kmh};
W_.prototype.getExtension=function(E){return _.h(E,MoZ)};
W_.prototype.JSC$11783_buildRequest=function(E,B){B.serializedInteractionsRequest&&(E.serializedRecordNotificationInteractionsRequest=B.serializedInteractionsRequest)};var Xh=function(){};
_.L(Xh,dS);Xh.prototype.getApiPaths=function(){return c0f};
Xh.prototype.getExtension=function(E){return _.h(E,b6G)};
Xh.prototype.JSC$11783_buildRequest=function(E,B,I){B=B===void 0?{}:B;I=I===void 0?{}:I;B.videoId?E.videoId=B.videoId:B.playlistId&&(E.playlistId=B.playlistId);var T,e=(T=B.offlineWebClientEligibility)!=null?T:I.offlineWebClientEligibility;e&&(E.offlineWebClientEligibility=e);var c;if(T=(c=B.preferredFormatType)!=null?c:I.preferredFormatType)E.preferredFormatType=T;var Y;if(c=(Y=B.lastOfflineQualitySettingsSavedMs)!=null?Y:I.lastOfflineQualitySettingsSavedMs)E.lastOfflineQualitySettingsSavedMs=c;
B.params&&(E.params=B.params)};var rg=function(){};
_.L(rg,dS);rg.prototype.getApiPaths=function(){return kY};
rg.prototype.getExtension=function(E){return _.h(E,_.u0)};
rg.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;B.token&&(E.continuation=B.token);I.formData&&(E.formData=I.formData)};var b7=function(){};
_.L(b7,dS);b7.prototype.getApiPaths=function(){return kY};
b7.prototype.getExtension=function(E){return _.h(E,XkU)};
b7.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;E.continuation=I.continuation};var o4=function(){};
_.L(o4,dS);o4.prototype.getApiPaths=function(){return kY};
o4.prototype.getExtension=function(E){return _.h(E,_.nJ)};
o4.prototype.JSC$11783_buildRequest=function(E,B){var I,T=B.panelIdentifier||((I=B.identifier)==null?void 0:I.tag);T&&(E.panelId=T);var e;if((e=B.globalConfiguration)==null?0:e.params){var c;E.params=(c=B.globalConfiguration)==null?void 0:c.params}};
_.Up.Object.defineProperties(o4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var AZ=function(){};
_.L(AZ,dS);AZ.prototype.getApiPaths=function(){return kY};
AZ.prototype.getExtension=function(E){return _.h(E,Q5r)};
AZ.prototype.JSC$11783_buildRequest=function(E,B){B.panelLoadingStrategy&&EAB(E,B.panelLoadingStrategy)};var j5=function(){};
_.L(j5,dS);j5.prototype.getApiPaths=function(){return kY};
j5.prototype.getExtension=function(E){return _.h(E,AT6)};
j5.prototype.JSC$11783_buildRequest=function(E,B){B.loadingStrategy&&EAB(E,B.loadingStrategy)};var Ub=function(){};
_.L(Ub,dS);Ub.prototype.getApiPaths=function(){return kY};
Ub.prototype.getExtension=function(E){return _.h(E,_.vE)};
Ub.prototype.JSC$11783_buildRequest=function(E,B){B.panelLoadingStrategy&&EAB(E,B.panelLoadingStrategy)};var kR=function(){};
_.L(kR,dS);kR.prototype.getApiPaths=function(){return kY};
kR.prototype.getExtension=function(E){return _.h(E,jnr)};
kR.prototype.JSC$11783_buildRequest=function(E,B){var I,T=(I=B.contentSourcePanelIdentifier)==null?void 0:I.tag;T&&(E.panelId=T);var e;if((e=B.globalConfiguration)==null?0:e.params){var c;E.params=(c=B.globalConfiguration)==null?void 0:c.params}};var tZ=function(){};
_.L(tZ,dS);tZ.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
tZ.prototype.getExtension=function(E){return _.h(E,U$N)};
tZ.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params)};var fH=function(){};
_.L(fH,dS);fH.prototype.getApiPaths=function(){return wyu};
fH.prototype.getExtension=function(E){return _.h(E,fOl)};
fH.prototype.JSC$11783_buildRequest=function(E,B){B.externalChannelId&&(E.externalChannelId=B.externalChannelId);B.superChatAction&&(E.superChatAction=B.superChatAction);B.superStickersAction&&(E.superStickersAction=B.superStickersAction)};var V8=function(){};
_.L(V8,dS);V8.prototype.getApiPaths=function(){return y4l};
V8.prototype.getExtension=function(E){return _.h(E,oYZ)||_.h(E,Ae4)};
V8.prototype.JSC$11783_buildRequest=function(E,B){B.videoIds?E.videoIds=B.videoIds:B.videoId&&(E.videoIds=[B.videoId]);B.playlistId&&(E.playlistId=B.playlistId);B.params&&(E.params=B.params);E.excludeWatchLater=!1};var qM=function(){};
_.L(qM,dS);qM.prototype.getApiPaths=function(){return Ilh};
qM.prototype.getExtension=function(E){return _.h(E,_.Sp)};
qM.prototype.JSC$11783_buildRequest=function(E,B,I){I.create_playlist_title?E.title=I.create_playlist_title:B.title&&(E.title=B.title);if(I.create_playlist_privacy_status&&typeof I.create_playlist_privacy_status==="number"){a:{var T=I.create_playlist_privacy_status;if(T!==0){if(T===1){T="PUBLIC";break a}if(T===2){T="UNLISTED";break a}}T="PRIVATE"}E.privacyStatus=T}else B.privacyStatus&&(E.privacyStatus=B.privacyStatus);I.create_playlist_description&&(E.description=I.create_playlist_description);B.videoIds&&
(E.videoIds=B.videoIds);B.params&&(E.params=B.params);B.sourcePlaylistId&&(E.sourcePlaylistId=B.sourcePlaylistId)};var Fh=function(){};
_.L(Fh,dS);Fh.prototype.getApiPaths=function(){return llr};
Fh.prototype.getExtension=function(E){return _.h(E,FJZ)};
Fh.prototype.JSC$11783_buildRequest=function(E,B){E.playlistId=B.playlistId};var Dp=function(){};
_.L(Dp,dS);Dp.prototype.getApiPaths=function(){return svl};
Dp.prototype.getExtension=function(E){return _.h(E,sn$)};
Dp.prototype.JSC$11783_buildRequest=function(E,B){B.playlistId&&(E.playlistId=B.playlistId);B.params&&(E.params=B.params)};var KH=function(){};
_.L(KH,dS);KH.prototype.getApiPaths=function(){return Ukr};
KH.prototype.getExtension=function(E){return _.h(E,_.nU)||void 0};
KH.prototype.JSC$11783_buildRequest=function(E,B){B.actions&&(E.actions=B.actions);B.params&&(E.params=B.params);B.playlistId&&(E.playlistId=B.playlistId)};var R4=function(){};
_.L(R4,dS);_.l=R4.prototype;_.l.getApiPaths=function(){return t1N};
_.l.getExtension=function(E){return _.h(E,_.yQ)};
_.l.JSC$11783_buildRequest=function(E,B){B.videoId&&(E.playerRequest={videoId:B.videoId},B.playerParams&&(E.playerRequest.params=B.playerParams),B.racyCheckOk&&(E.playerRequest.racyCheckOk=!!B.racyCheckOk),B.contentCheckOk&&(E.playerRequest.contentCheckOk=!!B.contentCheckOk));B.params&&(E.params=B.params);B.inputType&&(E.inputType=B.inputType);E.disablePlayerResponse=!0};
_.l.getRequestConfig=function(E){var B;(E=this.JSC$11790_getStoreKey(E))&&(B={storeStrategy:{storeKey:E}});_.d("web_log_reels_ticks")&&(B=B||{},B.requestTick="r_wrs",B.responseTick="r_wrr");return B};
_.l.JSC$11790_getStoreKey=function(E){E=this.getExtension(E);if(_.d("shorts_controller_retrieve_seedless_sequence_v2")){if((E==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Ui("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.d("web_prefetch_riw_for_next_video")||_.d("web_shorts_prefetch_service_enabled"))&&E!=null&&E.videoId){var B={videoId:E.videoId};E.params&&(B.params=E.params);return _.Ui("reel_item_watch",B)}};var Ed=function(){};
_.L(Ed,dS);_.l=Ed.prototype;_.l.getApiPaths=function(){return flh};
_.l.getExtension=function(E){return _.h(E,_.yQ)};
_.l.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;E.sequenceParams=B.sequenceParams;var T;((T=I)==null?0:T.contentPlaybackContext)&&_.d("web_shorts_prefetch_service_enabled")&&(E.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
_.l.JSC$11790_getStoreKey=function(E){if(_.d("shorts_controller_retrieve_seedless_sequence_v2")&&(E=this.getExtension(E),E==null?0:E.sequenceParams))return _.Ui("reel_watch_sequence",{sequenceParams:E.sequenceParams})};
_.l.getRequestConfig=function(E){E=this.JSC$11790_getStoreKey(E);var B;E&&(B={storeStrategy:{storeKey:E}});_.d("reel_watch_sequence_request_log_ticks")&&(B=B||{},B.requestTick="r_wsrs",B.responseTick="r_wsrr",B.processorTick="r_wsrp");return B};
var BB=function(){};
_.L(BB,dS);BB.prototype.getApiPaths=function(){return flh};
BB.prototype.getExtension=function(E){return _.h(E,_.u0)};
BB.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;B.token&&(E.continuation=B.token);var T;((T=I)==null?0:T.contentPlaybackContext)&&_.d("web_shorts_prefetch_service_enabled")&&(E.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
BB.prototype.getRequestConfig=function(E){E=this.JSC$11790_getStoreKey(E);var B;E&&(B={storeStrategy:{storeKey:E}});_.d("reel_watch_sequence_request_log_ticks")&&(B=B||{},B.requestTick="r_wsrs",B.responseTick="r_wsrr",B.processorTick="r_wsrp");return B};var $n=function(){};
_.L($n,dS);$n.prototype.getApiPaths=function(){return Y6l};
$n.prototype.getExtension=function(E){return _.h(E,_.RKZ)};
$n.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;B.flagAction&&(E.action=B.flagAction);B.flagRequestType&&(E.flagRequestType=B.flagRequestType);B.additionalDetailCheckboxChecked&&(E.additionalDetailCheckboxChecked=B.additionalDetailCheckboxChecked);B.legalCheckboxChecked&&(E.legalCheckboxChecked=B.legalCheckboxChecked);B={};I.flag_issue_type!==void 0&&(B.issue=I.flag_issue_type);I.flag_affiliation!==void 0&&(B.affiliation=I.flag_affiliation);I.flag_full_name&&(B.fullName=I.flag_full_name);
Object.keys(B).length&&(E.legalReportDetails=B);if(I.flag_description||I.text)E.userComments=I.flag_description||I.text;B={};I.minutes!==void 0&&I.seconds!==void 0&&(B.minutes=I.minutes,B.seconds=I.seconds);I.vss_id&&(B.vssId=I.vss_id);Object.keys(B).length&&(E.videoReportDetails=B);B={};I.video_ids&&(B.videoIds=I.video_ids);I.impersonated_channel_url&&(B.impersonatedChannelUrl=I.impersonated_channel_url);Object.keys(B).length&&(E.channelAbuseReportDetails=B)};
_.Up.Object.defineProperties($n.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var IC=function(){};
_.L(IC,dS);IC.prototype.getApiPaths=function(){return Zju};
IC.prototype.getExtension=function(E){return _.h(E,GjX)};
IC.prototype.JSC$11783_buildRequest=function(E,B){B.blockedForKidsContent&&(E.blockedForKidsContent=B.blockedForKidsContent)};var TC=function(){};
_.L(TC,dS);TC.prototype.getApiPaths=function(){return FND};
TC.prototype.getExtension=function(E){return _.h(E,oHG)};
TC.prototype.JSC$11783_buildRequest=function(E,B,I){E.params=B.params;I.impersonated_channel_url&&(E.impersonatedChannelUrl=I.impersonated_channel_url)};var eT=function(){};
_.L(eT,dS);eT.prototype.getApiPaths=function(){return S6N};
eT.prototype.getExtension=function(E){return _.h(E,_.O0z)};
eT.prototype.JSC$11783_buildRequest=function(E,B){B.items&&(E.items=B.items);B.kidGaiaId&&(E.kidGaiaId=B.kidGaiaId)};var lX=function(){};
_.L(lX,dS);lX.prototype.getApiPaths=function(){return CF6};
lX.prototype.getExtension=function(E){return _.h(E,_.rBr)};
lX.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params);B.targetId&&(E.targetId=B.targetId)};var cB=function(){};
_.L(cB,dS);cB.prototype.getApiPaths=function(){return E2N};
cB.prototype.getExtension=function(E){return _.h(E,GwN)};
cB.prototype.JSC$11783_buildRequest=function(E,B){B.externalVideoId&&(E.externalVideoId=B.externalVideoId);B.query&&(E.query=B.query);B.sourceTimelines&&(E.sourceTimelines=B.sourceTimelines)};var iX=function(){};
_.L(iX,dS);iX.prototype.getApiPaths=function(){return Bhu};
iX.prototype.getExtension=function(E){return _.h(E,_.u0)||void 0};
iX.prototype.JSC$11783_buildRequest=function(E,B){B.token&&(E.continuation=B.token)};
_.Ii7=function(){};
_.L(_.Ii7,dS);_.l=_.Ii7.prototype;_.l.getApiPaths=function(){return Bhu};
_.l.getExtension=function(E){return _.h(E,_.YG)||void 0};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$11790_getStoreKey=function(E,B){B=B===void 0?{}:B;if(!B.disableCache&&(E=this.getExtension(E))&&E.query)return B={query:E.query},E.params&&(B.params=E.params),_.Ui("search",B)};
_.l.JSC$11783_buildRequest=function(E,B,I){B.query&&(E.query=B.query);B.params&&(E.params=B.params);if(!_.d("web_forward_suggest_stats_killswitch")){var T=_.h(B,Zou);T&&(E.suggestStats=T)}var e;!_.d("kevlar_searchbox_stats_killswitch")&&((e=I.tempData)==null?0:e.gs_l)&&!_.h(B,Zou)&&(E.webSearchboxStatsUrl="/search?oq="+(I.tempData.oq||"")+"&gs_l="+I.tempData.gs_l);var c;if((c=I.tempData)==null?0:c.entityMid)B=E.suggestionSearchParams||{},B.entityMid=I.tempData.entityMid,E.suggestionSearchParams=B};
_.l.getRequestConfig=function(E,B){B=B===void 0?{}:B;E=this.JSC$11790_getStoreKey(E,B);var I;E&&(I={storeStrategy:{storeKey:E}});_.d("web_log_search_ticks_ks")||(I=I||{},I.requestTick="sr_s",I.responseTick="sr_r");return I};var p3=function(){};
_.L(p3,dS);p3.prototype.getApiPaths=function(){return Gmh};
p3.prototype.getExtension=function(E){return _.h(E,i_U)};
p3.prototype.JSC$11783_buildRequest=function(E,B){B.serializedGetSharingProviderDataParams&&(E.serializedGetSharingProviderDataParams=B.serializedGetSharingProviderDataParams)};var Yn=function(){};
_.L(Yn,dS);Yn.prototype.getApiPaths=function(){return Ojz};
Yn.prototype.getExtension=function(E){return _.h(E,VlN)};
Yn.prototype.JSC$11783_buildRequest=function(E,B){B.endpoint&&(E.endpoint=B.endpoint);B.action&&(E.action=B.action)};var aC=function(){};
_.L(aC,dS);aC.prototype.getApiPaths=function(){return c4N};
aC.prototype.getExtension=function(E){return _.h(E,DTl)};
aC.prototype.JSC$11783_buildRequest=function(E,B){E.videoId=B.videoId;B.scheduledRedirectMetadataSourceVideoId&&(E.scheduledRedirectMetadata={sourceVideoId:B.scheduledRedirectMetadataSourceVideoId})};var TJ7=XMLHttpRequest.prototype.fetch,etI=TJ7&&TJ7.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!jg?!0:!1;var vB=function(E){this.JSC$15819_storeWithEntities=E};
_.L(vB,dS);_.l=vB.prototype;_.l.getApiPaths=function(){return jvZ};
_.l.getExtension=function(E){return _.h(E,_.kh)||_.h(E,_.yQ)||_.h(E,RTu)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$11790_getStoreKey=function(E){if((_.d("kevlar_cache_on_ttl_player")||_.d("mweb_enable_shorts_innertube_player_prefetch")||_.d("mweb_use_new_history_manager")||_.d("web_shorts_prefetch_service_enabled"))&&(E=this.getExtension(E))&&E.videoId){var B={videoId:E.videoId};E.playlistId&&(B.playlistId=E.playlistId);E.playerParams&&(B.params=E.playerParams);return _.Ui("player",B)}};
_.l.JSC$11783_getClientScreen=function(E){var B;return((B=E.contentPlaybackContext)==null?void 0:B.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.l.JSC$11783_buildRequest=function(E,B,I){if(_.d("enable_interstitial_entity_check")){var T=this.JSC$15819_storeWithEntities;if(B.videoId)for(var e=_.p(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),c=e.next();!c.done;c=e.next()){c=c.value;var Y;var v=void 0,y=void 0,Z=B.videoId,P=c;(Y=T)?(Z=_.lm(Z+P,"interstitialInteractionStateEntity"),Y=(v=(y=_.cP(Y.getState().entities,"interstitialInteractionStateEntity",Z))==null?void 0:y.primaryButtonClicked)!=null?v:!1):Y=!1;if(Y)switch(c){case "CONTENT_CHECK_REQUIRED":B.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":B.racyCheckOk=!0}}}B.videoId&&(E.videoId=B.videoId);B.playlistId&&(E.playlistId=B.playlistId);B.index!==void 0&&(E.playlistIndex=B.index+1);B.playerParams&&(E.params=B.playerParams);"startTimeSeconds"in B&&B.startTimeSeconds&&(_.d("enable_player_request_builder_start_time_floor")?E.startTimeSecs=Math.floor(B.startTimeSeconds):E.startTimeSecs=B.startTimeSeconds);I.contentPlaybackContext&&(E.playbackContext={contentPlaybackContext:I.contentPlaybackContext});I.prefetchPlaybackContext&&
(E.playbackContext=Object.assign({},E.playbackContext,{prefetchPlaybackContext:I.prefetchPlaybackContext}),E.context.request||(E.context.request={}),E.context.request.isPrefetch=!0);E.playbackContext||(E.playbackContext={});T=yNN();E.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!T,supportXhr:etI};I.overrideMutedAtStart&&(E.overrideMutedAtStart=I.overrideMutedAtStart);E.racyCheckOk=!!B.racyCheckOk;E.contentCheckOk=!!B.contentCheckOk;!_.d("captions_prefs_killswitch")&&(I=(I=_.cc("yt-player-caption-language-preferences"))?
I:[],I==null?0:I.length)&&(E.captionParams={viewerSelectedCaptionLangs:I})};
_.l.getRequestConfig=function(E){E=this.JSC$11790_getStoreKey(E);var B;E&&(B={storeStrategy:{storeKey:E}});_.d("web_log_player_watch_next_ticks")&&(B=B||{},B.requestTick="ps_s",B.responseTick="ps_r");return B};
vB[F1]=[pJ];var ya=function(){};
_.L(ya,dS);ya.prototype.getApiPaths=function(){return eHu};
ya.prototype.getExtension=function(E){return _.h(E,_.g8N)};
ya.prototype.JSC$11783_buildRequest=function(E,B){E.params=B.params;E.correctionText=B.correctionText};var C3=function(){};
_.L(C3,dS);C3.prototype.getApiPaths=function(){return eYG};
C3.prototype.getExtension=function(E){return _.h(E,_.OSZ)};
C3.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params);E.searchQuery=B.searchQuery;E.languageCode=B.languageCode;E.kind=B.kind;E.name=B.name;E.externalVideoId=B.externalVideoId};var wm=function(){};
_.L(wm,dS);_.l=wm.prototype;_.l.getApiPaths=function(){return m9D};
_.l.getExtension=function(E){return _.h(E,_.kh)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$11790_getStoreKey=function(E){if((E=this.getExtension(E))&&E.videoId){var B={videoId:E.videoId};E.playlistId&&(B.playlistId=E.playlistId);E.index&&(B.index=E.index);E.params&&(B.params=E.params);return _.Ui("next",B)}};
_.l.JSC$11783_getClientScreen=function(E){var B;return((B=E.contentPlaybackContext)==null?void 0:B.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.l.JSC$11783_buildRequest=function(E,B,I){B.videoId&&(E.videoId=B.videoId);B.playlistId&&(E.playlistId=B.playlistId);B.params&&(E.params=B.params);B.index!==void 0&&(E.playlistIndex=B.index);E.racyCheckOk=!(!I.racyCheckOk&&!B.racyCheckOk);E.contentCheckOk=!!B.contentCheckOk;I.contentPlaybackContext&&(E.autonavState=I.contentPlaybackContext.autonavState,E.playbackContext={vis:I.contentPlaybackContext.vis,lactMilliseconds:I.contentPlaybackContext.lactMilliseconds});I.prefetchPlaybackContext&&(E.context.request||
(E.context.request={}),E.context.request.isPrefetch=!0);_.d("captions_hats_killswitch")||(B=_.ZB().getFlag(65),B=B!=null?!B:!1,I=!!_.cc("yt-player-sticky-caption"),E.captionsRequested=B&&I)};
_.l.getRequestConfig=function(E){E=this.JSC$11790_getStoreKey(E);var B;E&&(B={storeStrategy:{storeKey:E}});_.d("web_log_player_watch_next_ticks")&&(B=B||{},B.requestTick="wn_s",B.responseTick="wn_r");return B};
var Zq=function(){};
_.L(Zq,dS);Zq.prototype.getApiPaths=function(){return m9D};
Zq.prototype.getExtension=function(E){return _.h(E,_.u0)};
Zq.prototype.JSC$11783_buildRequest=function(E,B){B.token&&(E.continuation=B.token)};var PB=function(E,B){this.playerRequestBuilder=E;this.watchNextRequestBuilder=B};
_.L(PB,duD);PB.prototype.getApiPaths=function(){return Hjz};
PB.prototype.getExtension=function(E){return _.h(E,_.kh)};
PB.prototype.isNavigationCommand=function(){return!0};
PB.prototype.JSC$11783_buildRequest=function(E,B,I){E.playerRequest={};E.watchNextRequest={};this.playerRequestBuilder.JSC$11783_buildRequest(E.playerRequest,B,I);this.watchNextRequestBuilder.JSC$11783_buildRequest(E.watchNextRequest,B,I)};
PB[F1]=[vB,wm];var zC=function(){};
_.L(zC,dS);zC.prototype.getApiPaths=function(){return Qet};
zC.prototype.getExtension=function(E){return _.h(E,VuU)};
zC.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.params=B.params)};var mc=function(E){this.JSC$15846_storeWithEntities=E};
_.L(mc,dS);mc.prototype.getApiPaths=function(){return FE6};
mc.prototype.getExtension=function(E){return _.h(E,FW6)||_.h(E,KWN)};
mc.prototype.JSC$11783_buildRequest=function(E,B,I){I.client_data&&(E.clientData=I.client_data);if(B.commerceActionConfig){var T=B.commerceActionConfig;B=T.actionId;T=T.commerceActionParams;B&&(E.actionId=B);T&&(E.commerceActionParams=T)}else{var e=B.actionId,c=B.commerceActionParams;I=B.entityKeys;e&&(E.actionId=e);c&&(E.commerceActionParams=c);var Y;B=(T=this.JSC$15846_storeWithEntities)==null?void 0:(Y=T.getState())==null?void 0:Y.entities;if(I&&B){T=[];Y=_.p(I);for(I=Y.next();!I.done;I=Y.next())if(e=
I.value,I=_.IY(e).entityType,e=_.cP(B,I,e))c={},T.push((c[I]=e,c));E.entityMutationPayloads=T}}};
mc.prototype.getRequestConfig=function(E){var B,I=(B=_.h(E,FW6))==null?void 0:B.requestSequenceType;if(I&&E.clickTrackingParams&&I!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:E.clickTrackingParams,sequenceType:I}}};
mc[F1]=[pJ];var Qa=function(){};
_.L(Qa,dS);Qa.prototype.getApiPaths=function(){return d9V};
Qa.prototype.getExtension=function(E){return _.h(E,_.ZMh)};
Qa.prototype.JSC$11783_buildRequest=function(E,B){B.feedbackData&&(E.feedbackData=B.feedbackData);B.params&&(E.itemParams=B.params)};
_.Up.Object.defineProperties(Qa.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dm=function(){};
_.L(dm,dS);dm.prototype.getApiPaths=function(){return hHR};
dm.prototype.getExtension=function(E){return _.h(E,P9N)};
dm.prototype.JSC$11783_buildRequest=function(E,B,I){I.payments_payload&&(E.paymentsPayload=I.payments_payload);I.offer_params&&(E.offerParams=I.offer_params);B.transactionParams&&(E.transactionParams=B.transactionParams)};var hS=function(){};
_.L(hS,dS);hS.prototype.getApiPaths=function(){return seX};
hS.prototype.getExtension=function(E){return _.h(E,_.z8l)};
hS.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;B.buybucketParams&&(E.buybucketData={params:B.buybucketParams},B.stickerParams?E.buybucketData.stickerParams=B.stickerParams:(I.rich_chat_message?E.buybucketData.richChatMessage=I.rich_chat_message:I.chat_message_text&&(E.buybucketData.chatMessageText=I.chat_message_text),I.purchase_price_micros&&(E.buybucketData.purchasePriceMicros=I.purchase_price_micros.toString())));B.donationAmountMicros&&(E.tipAmountMicros=B.donationAmountMicros,
B.tipParams&&(E.tipParams=B.tipParams));B.offerParams&&(E.offerParams=B.offerParams);B.productData&&(E.productData=B.productData);B.transactionParams&&(E.transactionParams=B.transactionParams)};var sd=function(){};
_.L(sd,dS);sd.prototype.getApiPaths=function(){return uKz};
sd.prototype.getExtension=function(E){return _.h(E,dl6)};
sd.prototype.JSC$11783_buildRequest=function(E,B){B.updateFopParams&&(E.updateFopParams=B.updateFopParams)};var uX=function(){};
_.L(uX,dS);uX.prototype.getApiPaths=function(){return LvZ};
uX.prototype.getExtension=function(E){return _.h(E,_.Ej)};
uX.prototype.JSC$11783_buildRequest=function(E,B){B.couponCode&&(E.couponCode=B.couponCode);B.params&&(E.itemParams=B.params)};var L3=function(){};
_.L(L3,dS);L3.prototype.getApiPaths=function(){return x9h};
L3.prototype.getExtension=function(E){return _.h(E,_.DeU)};
L3.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;B.params&&(E.params=B.params);I.ctk&&(E.clientToken=I.ctk)};var xn=function(E){this.JSC$15881_storeWithEntities=E};
_.L(xn,dS);xn.prototype.getApiPaths=function(){return GJt};
xn.prototype.getExtension=function(E){return _.h(E,_.WW)};
xn.prototype.JSC$11783_buildRequest=function(E,B,I){I.purchase_price_micros&&(E.productData={pdgData:{purchasePriceMicros:I.purchase_price_micros.toString()}},I.rich_chat_message&&(E.productData.pdgData.richChatMessage=I.rich_chat_message),I.currency_code&&(E.productData.pdgData.currencyCode=I.currency_code));B.transactionParams&&(E.transactionParams=B.transactionParams);B.clientLocationContext&&(E.clientLocationContext=B.clientLocationContext);I.payments_payload&&(E.paymentsPayload=I.payments_payload);
I.funds_guarantee_callback_client_data&&(E.fundsGuaranteeCallbackClientData=I.funds_guarantee_callback_client_data);var T,e;I=(T=this.JSC$15881_storeWithEntities)==null?void 0:(e=T.getState())==null?void 0:e.entities;if(B.entityKeys&&I){T=[];B=_.p(B.entityKeys);for(e=B.next();!e.done;e=B.next()){var c=e.value;e=_.IY(c).entityType;if(c=_.cP(I,e,c)){var Y={};T.push((Y[e]=c,Y))}}E.entityMutationPayloads=T}};
xn[F1]=[pJ];var GC=function(){};
_.L(GC,dS);GC.prototype.getApiPaths=function(){return Ozz};
GC.prototype.getExtension=function(E){return _.h(E,mlt)};
GC.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;I.backend_analytics&&(E.serializedBackendAnalyticsEvent=I.backend_analytics);B.offerParams&&(E.offerParams=B.offerParams)};var Od=function(){};
_.L(Od,dS);Od.prototype.getApiPaths=function(){return LvZ};
Od.prototype.getExtension=function(E){return _.h(E,Crf)};
Od.prototype.JSC$11783_buildRequest=function(E,B){B.params&&(E.itemParams=B.params)};var n3=function(){};
_.L(n3,dS);n3.prototype.getApiPaths=function(){return n2Z};
n3.prototype.getExtension=function(E){return _.h(E,_.IGZ)};
n3.prototype.JSC$11783_buildRequest=function(E,B,I){I.resume_time_ms&&(E.resumeTimeMs=I.resume_time_ms);B.pauseParams&&(E.pauseParams=B.pauseParams)};var Mn=function(){};
_.L(Mn,dS);Mn.prototype.getApiPaths=function(){return M_Z};
Mn.prototype.getExtension=function(E){return _.h(E,_.QyN)};
Mn.prototype.JSC$11783_buildRequest=function(E,B,I){I=I===void 0?{}:I;I.c&&(E.redeemCode=I.c);I.rd&&(E.riskData=I.rd);I.ctk&&(E.clientToken=I.ctk)};var HB=function(){};
_.L(HB,dS);HB.prototype.getApiPaths=function(){return Hzz};
HB.prototype.getExtension=function(E){return _.h(E,_.T5h)};
HB.prototype.JSC$11783_buildRequest=function(E,B){B.resumeParams&&(E.resumeParams=B.resumeParams)};var Nn=function(E,B){this.clientName=E;this.defaultExpirationDelayMs=B};
Nn.prototype.put=function(E,B){var I=this,T;return _.a(function(e){T=Object.assign({},B.data);T.key=E;T.clientName=I.clientName;T.expireTimestampMs===void 0&&(T.expireTimestampMs=(Math.round((0,_.VZ)())+I.defaultExpirationDelayMs).toString());return e.return(I.putInternal(E,T))})};
Nn[F1]=[i8,mvh];var lim=function(){Nn.apply(this,arguments);this.JSC$15911_responseStore=new Map};
_.L(lim,Nn);_.l=lim.prototype;_.l.get=function(E){var B=this;return _.a(function(I){return I.return(Ev(B,E))})};
_.l.putInternal=function(E,B){var I=this,T,e,c;return _.a(function(Y){T=I.defaultExpirationDelayMs;B.expireTimestampMs&&(T=Number(B.expireTimestampMs)-Math.round((0,_.VZ)()),e=_.RI("mweb_override_response_store_expiration_ms"),e>0&&e<T&&(T=e));c=setTimeout(function(){I.remove(E)},T);
I.JSC$15911_responseStore.set(E,{entryData:B,timer:c});_.ER(Y)})};
_.l.remove=function(E){var B=this;return _.a(function(I){cD9(B,E);_.ER(I)})};
_.l.removeAll=function(){var E=this;return _.a(function(B){E.JSC$15911_responseStore.forEach(function(I){clearTimeout(I.timer)});
E.JSC$15911_responseStore.clear();_.ER(B)})};
_.l.has=function(E){return!!this.JSC$15911_responseStore.get(E)};
_.l.getKeys=function(){return this.JSC$15911_responseStore.keys()};
var Ev=function(E,B){if(E=E.JSC$15911_responseStore.get(B))return new _.Re(E.entryData)},cD9=function(E,B){var I=E.JSC$15911_responseStore.get(B);
I&&(clearTimeout(I.timer),E.JSC$15911_responseStore.delete(B))};var BbF;var TbG=function(E,B,I){Nn.call(this,E,B);this.token=I};
_.L(TbG,Nn);_.l=TbG.prototype;_.l.get=function(E){var B=this,I,T;return _.a(function(e){return e.nextAddress==1?_.C(e,ICF(B.token),2):e.nextAddress!=3?(I=e.yieldResult,_.C(e,I.get("ResponseStore",[E,B.clientName]),3)):(T=e.yieldResult)?e.return(new _.Re(T)):e.return(void 0)})};
_.l.putInternal=function(E,B){var I=this,T;return _.a(function(e){if(e.nextAddress==1)return _.C(e,ICF(I.token),2);T=e.yieldResult;return _.C(e,T.put("ResponseStore",B),0)})};
_.l.remove=function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,ICF(B.token),2);I=T.yieldResult;return T.return(I.delete("ResponseStore",[E,B.clientName]))})};
_.l.removeAll=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,ICF(E.token),2);B=I.yieldResult;return _.C(I,OiD(B,IDBKeyRange.only(E.clientName)),0)})};
_.l.has=function(){throw Error("Vi");};_.gm=new _.Dr("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var i4t=function(E){var B;this.stateTagsData=(B=E.responseContext)==null?void 0:B.stateTags},pG1=function(E){var B;
return((B=E.stateTagsData)==null?void 0:B.stateTagsModified)||[]};var Yc1;Yc1=function(E){this.JSC$15924_responseStore=E};
_.oP=function(E,B,I){if(!_.d("state_tags_killswitch")){var T=new i4t(B);if(pG1(T).length>0){var e=E.JSC$15924_responseStore.getKeys();e=_.p(e);for(var c=e.next();!c.done;c=e.next()){c=c.value;var Y=Ev(E.JSC$15924_responseStore,c);if(Y){var v=_.c3(Y);a:{var y=void 0;Y=pG1(T);v=((y=(new i4t(v)).stateTagsData)==null?void 0:y.relevantStateTags)||[];y=_.p(v);for(v=y.next();!v.done;v=y.next())if(v=v.value,v.stateTag!=null&&Y.includes(v.stateTag)&&v.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){Y=
!0;break a}Y=!1}Y&&cD9(E.JSC$15924_responseStore,c)}}}}var Z;T=(Z=B.responseContext)==null?void 0:Z.maxAgeSeconds;_.d("web_prefetch_riw_for_next_video")&&!T&&B.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(T=3600);I&&T&&Number(T)>0&&(B=DQ(B,T),E.JSC$15924_responseStore.put(I,new _.Re(B)))};
Yc1.prototype.handleResponse=function(E,B){if(!B)throw Error("Wi");var I,T;B=(I=B.config)==null?void 0:(T=I.storeStrategy)==null?void 0:T.storeKey;_.oP(this,E,B)};
Yc1[F1]=[_.Kz];_.tZt=new _.Dr("STORE_RESPONSE_PROCESSOR_TOKEN");var aiO=function(E){this.JSC$15927_responseStore=E};
aiO.prototype.handleResponse=function(E,B){if(B.input.match(_.f9(flh))){var I;if(E==null?0:(I=E.entries)==null?0:I.length)for(E=_.p(E.entries),B=E.next();!B.done;B=E.next()){I=B.value.command;var T=void 0;B=(T=_.h(I,_.yQ))==null?void 0:T.unserializedPrefetchData;if(!I||!B)break;T=(new R4).JSC$11790_getStoreKey(I);var e=_.h(B,zhz),c=void 0,Y=void 0,v=void 0,y=_.RI("web_shorts_prefetch_service_ttl_seconds")>0?_.RI("web_shorts_prefetch_service_ttl_seconds"):Number((v=(c=e)==null?void 0:(Y=c.responseContext)==
null?void 0:Y.maxAgeSeconds)!=null?v:3600);T&&y>0&&(e=DQ(e,y),this.JSC$15927_responseStore.put(T,new _.Re(e)));I=(new vB).JSC$11790_getStoreKey(I);B=_.h(B,$Cz);c=e=T=void 0;Y=_.RI("web_shorts_prefetch_service_ttl_seconds")>0?_.RI("web_shorts_prefetch_service_ttl_seconds"):Number((c=(T=B)==null?void 0:(e=T.responseContext)==null?void 0:e.maxAgeSeconds)!=null?c:3600);I&&Y>0&&(B=DQ(B,Y),this.JSC$15927_responseStore.put(I,new _.Re(B)))}}};
aiO[F1]=[_.Kz];var ST=function(){this.scheduler=_.xm()},vis;
ST.prototype.pause=function(){throw Error("Xi");};
ST.prototype.resume=function(){throw Error("Xi");};
ST.prototype.queue=function(E){var B=this,I=_.gA(),T=_.PC(this.scheduler,function(){try{var e;if(_.BV.instance)var c=_.BV.instance;else{var Y=new _.P7("Error: Unexpected uninitialized CommandHandler.");_.xV(Y);c=void 0}(e=c)==null||e.resolveCommand(E.command);I.resolve()}catch(v){I.reject(v)}});
I.promise.thenCatch(function(e){e instanceof _.X$&&B.scheduler.cancelJob(T)});
return I.promise};
ST.prototype.queueAll=function(E){var B=new Map;E=_.p(E);for(var I=E.next();!I.done;I=E.next())I=I.value,B.set(I.id,this.queue(I));return B};var Cc8=function(E,B){var I=this;this.taskModel=E;this.onTaskCancelledCallback=B;this.resolver=_.gA();E=E.proto.prefetchConfig;if(!E)throw Error("Yi");if(!E.prefetchAction)throw Error("Zi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(T){T instanceof _.X$&&(yDT(I,I.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),I.onTaskCancelledCallback(I.taskModel.id,I.jobId),I.tick("pcc"));
throw T;});
this.timerName=this.taskModel.id;_.OK(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},wG1=function(E){switch(E.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},yDT=function(E,B){_.LO({prefetchInfo:{cancellationReason:B}},E.timerName)};
Cc8.prototype.tick=function(E){_.nO(E,void 0,this.timerName)};var WB=function(){var E=this;this.scheduler=_.xm();this.maxInflightTasks=_.RI("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.RI("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new DiD;this.onTaskCancelled=function(B,I){I&&E.scheduler.cancelJob(I);Z4L(E,B);JS(E,3)}},Pcs=function(){WB.instance||(WB.instance=new WB);
return WB.instance};
WB.prototype.pause=function(){this.prefetchCoordinatorState=0};
WB.prototype.resume=function(){JS(this,0)};
WB.prototype.queue=function(E){E=ztL(this,E);JS(this,1);return E};
WB.prototype.queueAll=function(E){var B=new Map;E=_.p(E);for(var I=E.next();!I.done;I=E.next())I=I.value,B.set(I.id,ztL(this,I));JS(this,1);return B};
var ztL=function(E,B){var I=E.allPrefetchTasks.get(B.id);if(I)return I.cancellablePromise;try{var T=new Cc8(B,E.onTaskCancelled)}catch(c){return _.rG(c)}I=T;I.tick("pcq");var e={prefetchInfo:{taskId:I.taskModel.id,isPrefetch:!0,fetchAction:I.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:I.taskModel.command.clickTrackingParams}};I.taskModel.csn&&(e.clientScreenNonce=I.taskModel.csn);_.LO(e,I.timerName);E.allPrefetchTasks.set(B.id,T);E.drainingHeap.insert(-wG1(T),T);return T.cancellablePromise},
JS=function(E,B){E.prefetchCoordinatorState===B&&(E.prefetchCoordinatorState=2,mGm(E))},mGm=function(E){for(var B={};E.prefetchCoordinatorState!==0;B={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(E.inflightPrefetchTasks.size>=E.maxInflightTasks){E.prefetchCoordinatorState=3;break}B.prefetchTask$jscomp$1=E.drainingHeap.remove();if(!B.prefetchTask$jscomp$1){E.prefetchCoordinatorState=1;break}B.taskId$jscomp$3=B.prefetchTask$jscomp$1.taskModel.id;if(E.allPrefetchTasks.has(B.taskId$jscomp$3)){var I=-1;E.coordinatorTimeoutMs>0&&(I=_.PC(E.scheduler,function(T){return function(){Xi(E,T.taskId$jscomp$3,Error("$i"))}}(B),E.coordinatorTimeoutMs));
E.inflightPrefetchTasks.set(B.taskId$jscomp$3,I);if(!E.JSC$15943_commandHandler){if(!_.BV.instance){Xi(E,B.taskId$jscomp$3,Error("aj"));continue}E.JSC$15943_commandHandler=_.BV.instance}a:switch(B.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":I=1;break a;default:I=0}B.prefetchTask$jscomp$1.jobId=E.scheduler.addJob(function(T){return function(){T.prefetchTask$jscomp$1.tick("pcr");try{E.JSC$15943_commandHandler.resolveCommand(T.prefetchTask$jscomp$1.taskModel.command)||
Xi(E,T.taskId$jscomp$3,Error("bj"))}catch(e){Xi(E,T.taskId$jscomp$3,e)}}}(B),I,0)}}},QBs=function(E,B){(B=Z4L(E,B))!=null&&(B.resolver.resolve(),B.tick("pce"));
JS(E,3)},Xi=function(E,B,I){(B=Z4L(E,B,I))!=null&&(B.resolver.reject(I),B.tick("pcc"),yDT(B,"CANCELLATION_REASON_ERROR"),Math.random()<=_.RI("prefetch_coordinator_error_logging_sampling_rate")&&(I=new _.P7("Prefetch Command failed.",B.taskModel.id,I.message),_.xV(I)));
JS(E,3)},Z4L=function(E,B,I){var T=E.allPrefetchTasks.get(B);
T?((I=E.inflightPrefetchTasks.get(B))&&I!==-1&&E.scheduler.cancelJob(I),E.inflightPrefetchTasks.delete(B),E.allPrefetchTasks.delete(B)):_.OG(new _.P7("Unexpected missing prefetch task when deleting task.",B,I==null?void 0:I.message));return T};var dGT=function(E,B,I,T,e){this.id=E;this.triggerOn=B;this.cancelOn=I;this.command=T;this.proto=e};
_.Up.Object.defineProperties(dGT.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var htH=function(){this.JSC$15948_prefetchCoordinator=Pcs();vis||(vis=new ST);this.defaultCoordinator=vis},sBL;
htH.getInstance=function(){sBL||(sBL=new htH);return sBL};
htH.prototype.get=function(E){switch(E){case 0:return this.JSC$15948_prefetchCoordinator;default:return this.defaultCoordinator}};var rm=function(){this.coordinatorSupplier=htH.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},xGd=function(E){var B=_.nC()||void 0,I=Object.keys(uFI)[0];
if(I){var T=E.taskIdByTriggerId.get(I);if(T!=null){E.taskIdByTriggerId.delete(I);I=[];T=_.p(T);for(var e=T.next();!e.done;e=T.next())if(e=E.tasks.get(e.value))B!=="UNDEFINED_CSN"&&(e.csn=B),I.push(e);I=c_G(I);B=[];I=_.p(I);for(T=I.next();!T.done;T=I.next()){e=_.p(T.value);T=e.next().value;e=e.next().value;T=E.coordinatorSupplier.get(T).queueAll(e);T=_.p(T);var c=T.next();for(e={};!c.done;e={taskId$jscomp$9:void 0},c=T.next()){var Y=_.p(c.value);c=Y.next().value;Y=Y.next().value;e.taskId$jscomp$9=
c;c=Y;B.push(e.taskId$jscomp$9);E.queuedPromisesByTask.set(e.taskId$jscomp$9,_.sk(c,function(v){return function(){LQI(E,v.taskId$jscomp$9)}}(e)))}}}}else _.OG(new _.P7("Unexpected malformed TriggerEvent."))};
rm.prototype.trigger=function(E,B){var I=this,T=this.tasks.get(E);if(!T||this.queuedPromisesByTask.has(E))return!1;Gft(this,E,T.triggerOn);B!=="UNDEFINED_CSN"&&(T.csn=B);B=this.coordinatorSupplier.get(T.taskType).queue(T);this.queuedPromisesByTask.set(E,_.sk(B,function(){LQI(I,E)}));
return!0};
rm.prototype.cancel=function(E){var B=this.queuedPromisesByTask.get(E);if(B)B.cancel();else return LQI(this,E)};
var LQI=function(E,B){E.queuedPromisesByTask.delete(B);var I=E.tasks.get(B);if(!I)return!1;E.tasks.delete(B);Gft(E,B,I.triggerOn);(I=lCd(I.cancelOn))&&(E=E.taskIdByCancelId.get(I))&&E.delete(B);return!0},Gft=function(E,B,I){(I=Object.keys(I)[0])&&(E=E.taskIdByTriggerId.get(I))&&E.delete(B)};var uFI={taskRegistered:{}},bX=function(){rm.instance||(rm.instance=new rm);this.JSC$15957_taskManager=rm.instance};
_.L(bX,hN);
bX.prototype.resolveCommand=function(E){var B=this,I,T;return _.a(function(e){I=_.h(E,meN);if((T=I)==null||!T.tasks){var c=new _.P7("RegisterTasksCommand is missing tasks.");_.xV(c);return e.return()}c=B.JSC$15957_taskManager;for(var Y=_.p(I.tasks),v=Y.next();!v.done;v=Y.next())if(v=v.value,v=v.id&&v.triggerOn&&v.cancelOn&&v.command?new dGT(v.id,v.triggerOn,v.cancelOn,v.command,v):void 0,v){var y=Object.keys(v.triggerOn)[0];if(y){var Z=lCd(v.cancelOn);Z?(c.tasks.set(v.id,v),c.taskIdByTriggerId.has(y)||c.taskIdByTriggerId.set(y,
new Set),c.taskIdByTriggerId.get(y).add(v.id),c.taskIdByCancelId.has(Z)||c.taskIdByCancelId.set(Z,new Set),c.taskIdByCancelId.get(Z).add(v.id)):_.OG(new _.P7("Unexpected malformed cancelOn field."))}else _.OG(new _.P7("Unexpected malformed triggerOn field."))}else _.OG(new _.P7("Unexpected malformed Task proto."));xGd(B.JSC$15957_taskManager);_.ER(e)})};var O4g={},niT=(O4g.rendered={priority:0,callback:function(){var E={};E.numCpu=navigator.hardwareConcurrency;var B={};B.ramGb=_.$i.navigator.deviceMemory;var I={staticContext:{}};B.ramGb&&iyG(B.ramGb)&&(I.staticContext.memoryTotalKbytes=(B.ramGb*1048576).toString());E.numCpu&&iyG(E.numCpu)&&(I.staticContext.cpuCores=E.numCpu);if(_.d("web_enable_adaptive_appl_signal")){E={};B=_.Nf("rses_dpj");var T=_.Nf("rsef_dpj");B&&B>0&&T&&T>0&&(B=Math.ceil(T-B),B>0&&(E.loadLatency=B));E.loadLatency&&iyG(E.loadLatency)&&
(I.appL=E.loadLatency.toString())}_.hK("applicationStarted",I)}},O4g);var Mdd=new _.Dr("WINDOW_ON_ERROR"),H4T=new _.Dr("ERROR_WEIGHT_MAPS"),NJH=new _.Dr("INIT_ERROR");var giT={},ScT=(giT.initialized={priority:10,callback:function(E){E.injector.resolve(NJH)()}},giT);var JDt=function(){},WQ1=function(){var E=_.WA("meta_logger_impl");
E||(E=new JDt,_.ka("meta_logger_impl",E));return E},XGt=function(){WQ1().csiSubscriptionKey=i9c("meta_logging_csi_event",function(E){var B=E.timerName;
if(E=E.timelineData){_.OK(B,{startTime:E.startTime},B);E.infos&&_.LO(E.infos,B);for(var I=_.p(Object.keys(E.ticks)),T=I.next();!T.done;T=I.next())T=T.value,_.nO(T,E.ticks[T],B)}})};
JDt.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&amJ(this.csiSubscriptionKey)};var rDm={},b4T=(rDm.initialized={priority:10,callback:function(){XGt()}},rDm);var oiL=function(E,B){this.innertubeClientName=E;this.JSC$15973_prefCookie=B};
oiL.prototype.record=function(){if(_.d("web_li_record_binary_eval_tick")){var E=_.Nf("rsef_dpj");var B=_.Nf("rses_dpj");E=E!==void 0&&B!==void 0?Math.round(E-B):void 0;if(E!==void 0&&E>0){B=_.cc(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var I=this.poolSize;if(!(B.valuesSeen>=1E9)){if(B.valuesSample.length<I)B.valuesSample.push(E);else{var T=Math.floor(Math.random()*(B.valuesSeen+1));T<I&&(B.valuesSample[T]=E)}B.valuesSeen+=1}_.l9(this.storagePrefix+"-"+this.innertubeClientName,
B,2592E3);E=B.valuesSample;B=p26(E);E=E.length<5?void 0:B<400?1:B<1700?2:3;E!==void 0&&(this.JSC$15973_prefCookie.set(this.cookiePrefix+this.innertubeClientName,E),this.JSC$15973_prefCookie.save())}}else _.i9(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15973_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15973_prefCookie.save()};
oiL[F1]=[i8,Xc];var ADg=function(){oiL.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.L(ADg,oiL);var jBH=new _.Dr("PAGE_LOAD_TIME_TOKEN");var UGg=new _.Dr("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var oC=function(E,B){this.JSC$15994_storeWithEntities=E;this.JSC$15994_commandHandler=B;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
oC.prototype.start=function(){this.JSC$15994_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
oC.prototype.observeDownloadingEntities=function(){var E=_.KAG(this.JSC$15994_storeWithEntities.getState().entities).map(function(T){return RTF(T)});
if(E.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var B={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:k$f()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.KO(_.yu("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$15994_commandHandler.resolveCommand(B)}this.downloadingEntities=E}else if(this.downloadingEntities.length){var I=D$J(this.JSC$15994_storeWithEntities.getState().entities).map(function(T){return RTF(T)});
this.downloadingEntities.filter(function(T){return I.includes(T)}).length&&(E={openPopupAction:tht()},this.JSC$15994_commandHandler.resolveCommand(E));
this.downloadingEntities=[]}};
oC[F1]=[pJ,_.Dt];var kf9;_.AS=function(E,B,I,T,e,c,Y,v){this.JSC$15997_playerApiPromise=E;this.JSC$15997_commandHandler=B;this.JSC$15997_screenManager=I;this.offlineWebClientEligibility=T;this.JSC$15997_prefStorage=e;this.JSC$15997_actionRouter=c;this.entityTypeMap=Y;this.JSC$15997_persistentStorePromiseAccessor=v;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
kf9=function(){var E=_.Q().resolve(_.AS),B;_.a(function(I){if(I.nextAddress==1)return E.downloadFailureListenerBound?I.return():_.C(I,E.JSC$15997_playerApiPromise,2);B=I.yieldResult;B.addEventListener("onOfflineOperationFailure",function(T){if(T.failureReason&&T.entityKey&&T.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(T.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var e=_.IY(T.entityKey).entityId;e&&E.JSC$15997_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
e)}else if(_.d("kevlar_woffle")){e=E.JSC$15997_commandHandler;var c=e.resolveCommand;T=T.failureReason;var Y=_.yu("TRANSFER_FAILED",void 0,"Download failed");T==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(Y=_.yu("STORAGE_FULL",void 0,"Storage full"));c.call(e,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.KO(Y),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
E.downloadFailureListenerBound=!0;_.ER(I)})};
_.AS.prototype.deleteVideo=function(E,B){var I=this,T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return _.C(Y,I.JSC$15997_playerApiPromise,2);T=Y.yieldResult;c={offlineLoggingData:{offlineDeleteReason:(e=B)!=null?e:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.C(Y,T.queueOfflineAction(E,I.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",c),0)})};
_.AS.prototype.pauseVideoDownload=function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,B.JSC$15997_playerApiPromise,2);I=T.yieldResult;I.pauseVideoDownload(E);_.ER(T)})};
_.AS.prototype.resumeVideoDownload=function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,B.JSC$15997_playerApiPromise,2);I=T.yieldResult;return _.C(T,I.resumeVideoDownload(E),0)})};
_.AS[F1]=[_.qN,_.Dt,_.pj,UGg,A$,tB,Sv6,AU];var tdd=new _.Dr("DOWNLOAD_STATE_STORE_TOKEN");var fiL=function(E,B){this.JSC$16016_persistentStorePromiseAccessor=E;this.store=B;this.upliftCompletionResolver=new _.Tv},FQ7=function(){var E=_.Q().resolve(VdT),B;
_.a(function(I){switch(I.nextAddress){case 1:if(E.upliftImplPromise)return I.return(E.upliftImplPromise);_.q7(I,2);E.upliftImplPromise=qct(E);return _.C(I,E.upliftImplPromise,4);case 4:E.upliftCompletionResolver.resolve();_.W7(I,3);break;case 2:throw B=_.RG(I),E.upliftCompletionResolver.reject(B),B;case 3:return I.return(E.upliftImplPromise)}})},qct=function(E){var B,I,T;
return _.a(function(e){switch(e.nextAddress){case 1:return _.gU("LOGGED_IN")?_.C(e,E.JSC$16016_persistentStorePromiseAccessor(),2):e.return();case 2:B=e.yieldResult;if(!B)return _.nO("vdeur"),e.return();_.nO("vdeus");_.q7(e,3);return _.C(e,DG2(B),5);case 5:I=e.yieldResult;E.store.dispatch(WAf(I));B.observe(function(c){Xe6(E.store,c)});
_.W7(e,4);break;case 3:throw T=_.RG(e),_.nO("vdeur"),T;case 4:_.nO("vdeuc"),_.ER(e)}})},DG2=function(E){var B;
return _.a(function(I){if(I.nextAddress==1)return _.C(I,ZyQ(E),2);B=I.yieldResult;return I.return(B.reduce(function(T,e){if(!e.data||!e.key||!e.entityType)return T;T[e.entityType]||(T[e.entityType]={});T[e.entityType][e.key]=e.data;return T},{}))})};
fiL[F1]=[AU,_.sy];var VdT;VdT=new _.Dr("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.jT=new _.Dr("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Ud=function(E,B){this.JSC$16019_persistentStorePromiseAccessor=E;this.transportService=B};
Ud.prototype.refresh=function(){var E=this,B,I,T,e;return _.a(function(c){if(c.nextAddress==1)return _.gU("LOGGED_IN")?_.C(c,E.JSC$16019_persistentStorePromiseAccessor(),2):c.return();if(c.nextAddress!=3)return(B=c.yieldResult)?_.C(c,KkD(B),3):c.return();if((I=c.yieldResult)&&!(Number(I.data.refreshTimestampMs||0)<(0,_.VZ)()))return c.return();T={browseId:"SPaccount_downloads"};e=_.f9(R0);_.Me(E.transportService,T,e).then(function(Y){var v;if(B&&(Y==null?void 0:(v=Y.responseContext)==null?void 0:
v.maxAgeSeconds)!==0){var y;v=(Y==null?void 0:(y=Y.responseContext)==null?void 0:y.maxAgeSeconds)||604800;y=String(Math.floor((0,_.VZ)())+v*1E3);B.put("service:downloads_settings:fallback",new _.Re({innertubeResponse:Y,refreshTimestampMs:y}))}});
_.ER(c)})};
Ud[F1]=[_.gm,_.P8];var kn=function(E,B){this.JSC$16023_playerPromise=E;this.store=B;this.started=!1};
kn.prototype.start=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return E.started?I.return():_.C(I,E.JSC$16023_playerPromise,2);B=I.yieldResult;B.addEventListener("onOrchestrationBecameLeader",E.updateIsLeader.bind(E,!0));B.addEventListener("onOrchestrationLostLeader",E.updateIsLeader.bind(E,!1));if(B.isOrchestrationLeader)E.updateIsLeader(B.isOrchestrationLeader());else{var T=new _.P7("Function isOrchestrationLeader is undefined",{"player.isReady":B.isReady(),"player.playVideo":B.playVideo?
"defined":"undefined"});_.xV(T);E.updateIsLeader(!1)}E.started=!0;_.ER(I)})};
kn.prototype.updateIsLeader=function(E){this.store.dispatch(_.BP({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:E}}))};
kn[F1]=[_.qN,_.sy];var KQI=function(E,B){this.networkStatusManager=E;this.JSC$16026_prefStoragePromise=B;this.redirectsToPreload=["https://youtube.com"]},Rt8=function(){var E=_.Q().resolve(KQI),B,I,T,e,c,Y;
_.a(function(v){switch(v.nextAddress){case 1:return _.C(v,E.JSC$16026_prefStoragePromise,2);case 2:B=v.yieldResult;if(!(I=B)){v.jumpTo(3);break}return _.C(v,B.get("yt-redirect-prefetch-id"),4);case 4:I=v.yieldResult;case 3:if(I||!E.networkStatusManager.isNetworkAvailable())return v.return();T={cache:"reload",redirect:"manual"};e=_.p(E.redirectsToPreload);c=e.next();case 5:if(c.done){if(!B){v.jumpTo(0);break}return _.C(v,B.set("yt-redirect-prefetch-id",!0,86400),0)}Y=c.value;_.q7(v,8);return _.C(v,
_.$i.fetch(Y,T),10);case 10:_.W7(v,6);break;case 8:_.RG(v);case 6:c=e.next(),v.jumpTo(5)}})};var tS=function(E){E?(this.container=E,this.containerWasInjected=!0):this.containerWasInjected=!1};
tS.prototype.openDialog=function(E,B,I){var T=this,e;return _.a(function(c){(e=T.container)==null||e.openDialog(E,B,I);_.ER(c)})};
tS.prototype.closeDialog=function(){var E=this,B;return _.a(function(I){(B=E.container)==null||B.closeDialog();_.ER(I)})};
tS.prototype.isDialogOpen=function(){var E=this,B,I;return _.a(function(T){return T.return((I=(B=E.container)==null?void 0:B.isDialogOpen())!=null?I:!1)})};
tS[F1]=[_.Fx($L$)];_.ElH=new _.Dr("POPUP_CONTROLLER_TOKEN");var Br8=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Br8.prototype.registerPanel=function(E,B){if(E){this.panelMap.set(E,B);var I=this.pendingPanelResolvers.get(E);I&&(I.resolve(B),this.pendingPanelResolvers.delete(E))}};
Br8.prototype.getPanel=function(E){var B=this,I;return _.a(function(T){return(I=B.panelMap.get(E))?T.return(I):T.return($tO(B,E))})};
var $tO=function(E,B){var I,T;return _.a(function(e){if(I=E.pendingPanelResolvers.get(B))return e.return(I.promise);T=new _.Tv;E.pendingPanelResolvers.set(B,T);return e.return(T.promise)})},IX1=function(E){Br8.call(this);
var B=this;this.popupController=E;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return B.panelMap.size}}};
_.L(IX1,Br8);_.l=IX1.prototype;_.l.getReloadContinuation=function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,B.getPanel(E),2);I=T.yieldResult;return T.return(I.getReloadContinuation())})};
_.l.showPanel=function(E,B,I,T,e,c,Y){var v=this,y,Z,P,z;return _.a(function(m){if(m.nextAddress==1){Y&&v.updatePanelContinuationDatas.set(E,Y);if((y=I)==null?0:(Z=y.engagementPanelPopupPresentationConfig)==null?0:Z.popupType){P=I.engagementPanelPopupPresentationConfig.popupType;e===void 0&&(e=document.body);var u=m.return,x=v.popupController,M=x.openPopup;a:switch(P){case "PANEL_POPUP_TYPE_DIALOG":var N="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":N="DROPDOWN";break a;default:throw Error("dj`"+
P);}return u.call(m,M.call(x,E,B,N,e))}return _.C(m,v.getPanel(E),2)}z=m.yieldResult;(B||c)&&z.updatePanel(B,!1,T,c);z.showPanel(T);_.ER(m)})};
_.l.hidePanel=function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,B.getPanel(E),2);I=T.yieldResult;I.hidePanel();B.popupController.closePopup(E);_.ER(T)})};
_.l.isVisible=function(E,B){var I=this,T;return _.a(function(e){if(e.nextAddress==1)return B&&!I.panelMap.has(E)?e.return(!1):_.C(e,I.getPanel(E),2);T=e.yieldResult;return e.return(T.isVisible())})};
_.l.updatePanel=function(E,B,I,T,e,c){I=I===void 0?!1:I;var Y=this,v;return _.a(function(y){if(y.nextAddress==1){if(!B&&!e)return y.return();c&&Y.updatePanelContinuationDatas.set(E,c);return _.C(y,Y.getPanel(E),2)}v=y.yieldResult;v.updatePanel(B,I,T,e);_.ER(y)})};
_.l.registerPanelContent=function(E,B){E&&this.panelContentMap.set(E,B)};
_.l.getPanelContent=function(E){return this.panelContentMap.get(E)};
_.l.getUpdatePanelContinuationData=function(E){return this.updatePanelContinuationDatas.get(E)};
IX1[F1]=[_.ElH];var f3=function(E,B){this.innertubeTransportService=E;this.JSC$16042_screenManager=B},Tr9=function(E){var B;
return!((B=E.panelLoadingStrategy)==null||!B.requestTemplate)};
f3.prototype.makeRequest=function(E){var B=this,I,T;return _.a(function(e){switch(e.nextAddress){case 1:if(!Tr9(B)){e.jumpTo(2);break}_.q7(e,3);return _.C(e,_.NN(B.innertubeTransportService,E),5);case 5:return I=e.yieldResult,I?e.return(I.content):(_.xV(Error("ej")),e.return(void 0));case 3:T=_.RG(e),_.xV(T);case 2:return e.return(void 0)}})};
f3.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
f3.prototype.execute=function(E){var B=this,I,T,e,c,Y,v,y,Z,P,z;return _.a(function(m){if(m.nextAddress==1){I=E;T=I.data;e=I.fallbackVe;c=I.parentVe;Y=I.createScreenConfig;v=I.renderFn;y=I.command;B.panelLoadingStrategy=T;var u,x,M=((u=B.panelLoadingStrategy)==null?0:u.screenVe)?(x=B.panelLoadingStrategy)==null?void 0:x.screenVe:e;M&&_.I5(B.JSC$16042_screenManager,M,c,Y);return(Z=B.getContent())?_.C(m,v(Z),2):m.jumpTo(2)}return m.nextAddress!=4?Tr9(B)?_.C(m,B.makeRequest(y),4):m.return():(z=P=m.yieldResult)?
_.C(m,v(z),0):m.return()})};
f3[F1]=[_.P8,_.pj];var Va=function(){};
Va.prototype.getContainer=function(){return _.KC()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Va.prototype.openSheet=function(E,B){var I=this,T,e,c,Y,v,y;return _.a(function(Z){switch(Z.nextAddress){case 1:return T={stack:[],error:void 0,hasError:!1},_.q7(Z,2,3),e=U7,_.C(Z,I.isSheetOpen(),5);case 5:c=Z.yieldResult;PNd(T,uxB(e));if(c&&!_.d("delay_sheet_open_killswitch")){if(B&&I.currentTarget===B)return(Y=I.getContainer())==null||Y.closeSheet(),Z.return();I.pendingData={data:E,target:B};return Z.return()}E.viewModel&&(E={viewModel:E.viewModel});(v=I.getContainer())==null||v.openSheet(E,B);
I.currentTarget=B;case 3:_.FL(Z);dAF(T);_.Kr(Z,0);break;case 2:y=_.RG(Z),T.error=y,T.hasError=!0,Z.jumpTo(3)}})};
Va.prototype.closeSheet=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,(B=E.getContainer())==null?void 0:B.closeSheet(),2);if(I.nextAddress!=4)return E.currentTarget=void 0,!E.pendingData||_.d("delay_sheet_open_killswitch")?I.jumpTo(0):_.C(I,E.openSheet(E.pendingData.data,E.pendingData.target),4);E.pendingData=void 0;_.ER(I)})};
Va.prototype.isSheetOpen=function(){var E=this,B,I;return _.a(function(T){return T.return((I=(B=E.getContainer())==null?void 0:B.isSheetOpen())!=null?I:!1)})};var Ym=window.documentPictureInPicture;var OyG=_.km(["dark"]),nAc=_.km(["system-icons"]),MWc=_.km(["typography"]),Hyd=_.km(["lang"]),Nbf=_.km(["style"]),uUG=_.km(["dir"]),Ldc=_.km(["rounded-container"]),xb6=_.km(["style"]),Sat=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],qn=function(E){this.JSC$16054_clientRoot=E;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
qn.prototype.openWindow=function(E){var B=this,I,T;return _.a(function(e){if(e.nextAddress==1)return window.documentPictureInPicture&&_.Oc()&&!B.currentPipWindow?_.C(e,(I=Ym?Ym:null)==null?void 0:I.requestWindow(E),2):e.return(!1);if(e.nextAddress!=3){T=e.yieldResult;if(!T)return e.return(!1);T.addEventListener("pagehide",function(){eZT(B)});
T.addEventListener("resize",B.handlePipWindowResize);B.pipWindowResizeDelay=new _.fg(function(){B.currentPipWindow&&_.I2(B.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.KK(B.currentPipWindow.innerWidth,B.currentPipWindow.innerHeight)])},T);
gAG(T);WdD(T);return _.C(e,s6i(T),3)}if(!Q6Q())return e.return(!1);B.currentPipWindow=T;B.JSC$16054_eventForwarder=J_i(T,B.JSC$16054_clientRoot);B.pipWindowResizeDelay.start();return e.return(!0)})};
qn.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var eZT=function(E){if(E.currentPipWindow){var B,I;(B=Ym?Ym:null)==null||(I=B.window)==null||I.close();E.currentPipWindow.removeEventListener("resize",E.handlePipWindowResize);var T;(T=E.pipWindowResizeDelay)==null||T.dispose();E.pipWindowResizeDelay=void 0;var e;(e=E.JSC$16054_eventForwarder)==null||e.stop();E.JSC$16054_eventForwarder=void 0;B=_.p(E.onCloseCallbacks);for(I=B.next();!I.done;I=B.next())I=I.value,I();E.onCloseCallbacks=[];E.currentPipWindow=null}};
qn.prototype.getWindow=function(){return this.currentPipWindow};
var lXs=function(E,B){var I;(I=E.onCloseCallbacks)==null||I.push(B)};
_.Up.Object.defineProperties(qn.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
qn[F1]=[dnR];_.czL=new _.Dr("PICTURE_IN_PICTURE_CONTROLLER");var X2J=function(E,B){this.lengthY=this.lengthX=0;this.lengthX=B.x-E.x;this.lengthY=B.y-E.y};var iVI=function(){},L9D=function(E,B){var I;
(I=E.headerElement)==null||I.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:B}))};var p6O=function(){};
p6O.prototype.openPopup=function(E,B,I,T){var e=this,c;return _.a(function(Y){if(!e.container)return Y.return();c={openPopupAction:{popup:B,popupType:I,uniqueId:E}};return Y.return(e.container.handleOpenPopupAction(c,T))})};
p6O.prototype.closePopup=function(E){this.container&&this.container.closePopup(E)};var YZ1=function(){this.openTunnels=new Map},xMd=function(E,B,I){if(A_J(I)){I={handleEvent:function(Y){B&&!B.closed&&typeof B.postMessage==="function"&&Y&&Y.origin&&Y.source===B&&Y.data&&Y.data.action==="gcl_setup"&&B.postMessage({action:"gcl_transfer",
gadSource:2},Y.origin)}};
for(var T=_.p(E.openTunnels),e=T.next();!e.done;e=T.next()){var c=_.p(e.value);e=c.next().value;c=c.next().value;if(e.closed)try{window.removeEventListener("message",c),E.openTunnels.delete(e)}catch(Y){_.xV(Y)}}B&&E.openTunnels.size<15&&(E.openTunnels.set(B,I),window.addEventListener("message",I))}};var aXg=function(){this.clientParams=new Map},gcV=function(E){for(var B=_.p(E.clientParams.keys()),I=B.next();!I.done;I=B.next())I=I.value,I.startsWith("yt-mini-app-share")&&E.clientParams.delete(I)};var vls=function(E,B){_.Cx.call(this);var I=this;this.shortsController=E;this.storeWithShorts=B;E=_.C_(this.storeWithShorts,_.jmF,function(T){if(T){var e,c=(e=I.shortsController.getRoot())==null?void 0:e.getPlayer(),Y;(e=(Y=I.shortsController.alternativePlayerContainerElement)==null?void 0:Y.getPlayerContainer())&&(c==null||c.appendTo(e))}else{var v;Y=(v=I.shortsController.alternativePlayerContainerElement)==null?void 0:v.getPlayerContainer().querySelector("#player");e=I.shortsController.activeIndex;
(v=(c=I.shortsController.getRoot())==null?void 0:c.querySelector('ytd-reel-video-renderer[id="'+e+'"] #player-container'))&&(Y==null||Y.appendTo(v,void 0,!0))}});
this.addOnDisposeCallback(E)};
_.L(vls,_.Cx);var Fi=function(E,B,I,T,e){var c=this;this.storeWithShorts=E;this.ephemeralResponseStore=B;this.store=I;this.innertubeTransportService=T;this.innertubeTransportLoader=e;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.hk(_.Y6);this.isShortsPipActive=_.hk(_.a0);this.nextReelVe=_.wA(56921);this.prevReelVe=_.wA(56922);this.backButtonVe=_.wA(22156);this.TEST_ONLY={getActiveModules:function(){return c.activeModules}}},HmR,Nzr,yz7;
Fi.prototype.initOrDisposeActiveModules=function(E){E?this.activeModules.push(new vls(this,this.storeWithShorts)):(_.o_(this.activeModules),this.activeModules.length=0)};
Fi.prototype.getRoot=function(){return this.rootElement};
Fi.prototype.setActiveIndex=function(E){this.activeIndex=E};
_.L6Z=function(E,B){var I,T,e,c,Y,v;return _.a(function(y){switch(y.nextAddress){case 1:return I=new R4,(T=I.JSC$11790_getStoreKey(B))&&E.ephemeralResponseStore.has(T)?_.C(y,E.ephemeralResponseStore.get(T),7):_.C(y,yz7(E,B),4);case 4:e=y.yieldResult;if(!T){y.jumpTo(3);break}c=DQ(e,3600);return _.C(y,E.ephemeralResponseStore.put(T,new _.Re(c)),3);case 7:e=(Y=y.yieldResult)==null?void 0:_.c3(Y);case 3:return e.replacementEndpoint&&(v=_.h(e.replacementEndpoint,_.yQ))&&e.sequenceContinuation&&(v.sequenceParams=
e.sequenceContinuation),y.return(e)}})};
HmR=function(E,B){B=(new Ed).JSC$11790_getStoreKey(B);return!!B&&E.ephemeralResponseStore.has(B)};
Nzr=function(E,B,I){var T,e,c,Y,v;_.a(function(y){if(y.nextAddress==1){T=new Ed;e=T.JSC$11790_getStoreKey(B);if(!e)return y.return();if(I.reelWatchSequenceResponse)return c=DQ(I.reelWatchSequenceResponse,3600),E.ephemeralResponseStore.put(e,new _.Re(c)),y.jumpTo(0);if(!E.ephemeralResponseStore.has(e))return y.jumpTo(0);v=I;return _.C(y,E.ephemeralResponseStore.get(e),4)}v.reelWatchSequenceResponse=(Y=y.yieldResult)==null?void 0:_.c3(Y);_.ER(y)})};
yz7=function(E,B){var I=I===void 0?{}:I;var T,e,c;return _.a(function(Y){switch(Y.nextAddress){case 1:if(E.innertubeTransportService){T=E.innertubeTransportService;Y.jumpTo(2);break}if(!E.innertubeTransportLoader){_.SI(Error("gj"));Y.jumpTo(2);break}return _.C(Y,E.innertubeTransportLoader(),4);case 4:T=Y.yieldResult;case 2:return _.C(Y,(e=T)==null?void 0:_.NN(e,B,I),5);case 5:return c=Y.yieldResult,Y.return(c)}})};
_.Up.Object.defineProperties(Fi.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
Fi[F1]=[CYz,_.Kz,pJ,_.Fx(_.P8),_.Fx(mcr)];_.CDs=new _.Dr("STORAGE_MANAGER_TOKEN");var VWc=new Set(["touchmove","scroll"]);var w6T=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},ZVH;
w6T.prototype.enqueue=function(E,B){B===1?this.currentPersistentToast=E:this.queue.push(E);this.openToast()};
w6T.prototype.openToast=function(){var E;(E=this.currentToast)!=null&&E.opened||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.PDI=new _.Dr("TOAST_MANAGER_TOKEN");var zZd;_.mtL=_.rp(function(E){return _.w("basic-content-view-model",{class:_.RQ("ytBasicContentViewModelHost",_.Wl(E.className))},_.w(_.wU,{cond:function(){return E.data().headline},
then:function(B){return _.w("div",{class:"ytBasicContentViewModelHeadline"},_.w(_.aS,{text:B}))}}),_.w(_.Zt,{each:function(){return E.data().paragraphs||[]},
keyBy:"INDEX"},function(B){return _.w("div",{class:"ytBasicContentViewModelParagraph"},_.w(_.wU,{cond:function(){var I=B();return!!(I.header||I.customHeader||I.headline)},
then:function(){return _.w(zZd,{paragraph:B})}}),_.w(_.wU,{cond:function(){return B().asset||B().text},
then:function(){return _.w("div",{class:"ytBasicContentViewModelParagraphContent"},_.w(_.wU,{cond:function(){return B().asset},
then:function(I){return _.w("div",{class:"ytBasicContentViewModelParagraphAsset"},_.w(_.hM,{data:I},{contentPreviewImageViewModel:_.AF}))}}),_.w(_.wU,{cond:function(){return B().text},
then:function(I){return _.w("div",{class:"ytBasicContentViewModelParagraphText"},_.w(_.aS,{text:I}))}}))}}))}))},"Wd");
zZd=_.rp(function(E){var B=E.paragraph;return _.w(_.VS,null,_.w(_.wU,{cond:function(){return B().headline},
then:function(I){return _.w(_.aS,{text:I,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.w(_.hM,{data:function(){return B().header||B().customHeader}},{sectionHeaderViewModel:function(I){return _.w(_.VN,{data:I.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Xd");var dt1=_.rp(function(E){return _.w("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.w(_.wU,{cond:function(){return E.expanded()},
then:function(){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.w("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.w(_.wU,{cond:function(){return E.data().expandedTitleImage},
then:function(B){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.w(_.Ja,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:B}))}}),_.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.w(_.aS,{text:function(){return E.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.w(_.aS,{text:function(){return E.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.w(_.aS,{text:function(){return E.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.w("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.w(_.hM,{data:function(){return E.data().infoButton}},{buttonViewModel:_.ne}),_.w(_.hM,{data:function(){return E.data().collapseButton}},{buttonViewModel:function(B){return _.w(_.ne,{data:B.data,
onClick:function(){var I;(I=E.expandedCallback)==null||I.call(E,!1)}})}})))},
else:function(){return _.w(Q$I,Object.assign({},E))}}))},"Yd"),hZs=_.rp(function(E){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.w(_.wU,{cond:function(){return E.data().collapsedLabelImage},
then:function(B){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.w(_.Ja,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:B,alt:""}))}}),_.w(_.aS,{text:function(){return E.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Zd"),Q$I=_.rp(function(E){var B=_.TI(function(){var I;
return void((I=E.expandedCallback)==null?void 0:I.call(E,!0))});
return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":B},_.w("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.w(_.wU,{cond:function(){return E.data().collapsedImage},
then:function(I){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.w(_.Ja,{width:16,height:16,data:I,alt:""}))}}),_.w(_.wU,{cond:function(){return E.data().showLeadingCollapsedLabel},
then:function(){return _.w(hZs,Object.assign({},E))}}),_.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.w(_.aS,{text:function(){return E.data().collapsedTitle}}))),_.w("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.w(_.wU,{cond:function(){return!E.data().showLeadingCollapsedLabel},
then:function(){return _.w(hZs,Object.assign({},E))}}),_.w(_.hM,{data:function(){return E.data().infoButton}},{buttonViewModel:_.ne}),_.w(_.hM,{data:function(){return E.data().expandButton}},{buttonViewModel:function(I){return _.w(_.ne,{data:I.data,
onClick:function(){var T;(T=E.expandedCallback)==null||T.call(E,!0)}})}})))},"$d");var s$I=_.rp(function(E){var B=_.p(_.l0(function(){return E.data().initiallyExpanded})),I=B.next().value,T=B.next().value,e,c=(e=_.Q().resolve(_.Fx(_.ME)))==null?void 0:e(),Y=function(){var v=E.data().colorData;
if(v)return c?v==null?void 0:v.darkColorPalette:v==null?void 0:v.lightColorPalette};
return _.w("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.c$({"background-color":function(){var v=Y();return(v==null?0:v.section2Color)?_.hR(v.section2Color):""}})},_.w(_.hM,{data:function(){return E.data().header}},{expandableMetadataHeaderViewModel:function(v){return _.w(dt1,{data:v.data,
expanded:function(){return!!I()},
expandedCallback:function(y){T(y)}})}}),_.w(_.wU,{cond:function(){return I()},
then:function(){return _.w("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.w(_.hM,{data:function(){return E.data().expandedContent}},{horizontalShelfViewModel:function(v){return _.w(_.mw,{data:v.data,
includeMargin:!0,forceNarrowLayout:!0,palette:Y})},
videoSummaryContentViewModel:function(v){return _.w(CwN,{data:v.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(v){return _.w(_.tF,{data:v.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(v){return _.w(_.mtL,{data:v.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.w(_.hM,{data:function(){return E.data().expandedBottomButtons}},{buttonViewModel:function(v){return _.w("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.w(_.ne,{data:v.data}))}}))}}))},"ae");var uu7=_.rp(function(E){var B=E.text;var I=E.marqueeSpacing;var T=E.scrollDelay;var e=E.scrollDuration;var c=E.enableMarqueeScroll;E=E.large;var Y=_.p(_.lQ(!1,void 0,"kfNqfd")),v=Y.next().value,y=Y.next().value,Z=_.p(_.lQ(0,void 0,"bYgZbf"));Y=Z.next().value;var P=Z.next().value,z=_.oH();Z=_.oH();var m=_.oH(),u=_.Q().resolve(_.NE);_.m$(function(){if(c()){var N=m.value.getBoundingClientRect().width,W=z.value.getBoundingClientRect().width;if(N>W){var U=(u==="ltr"?-1:1)*(N+(I?I():16));Promise.resolve().then(function(){y(!0);
P(U)})}}});
var x={},M={};return _.w("marquee-scroll",{class:_.RQ("ytMarqueeScrollHost",(x.ytMarqueeScrollHostLarge=E,x)),el:z},_.w("div",{id:"marquee-scroll-inner-container",class:_.RQ("ytMarqueeScrollInnerContainer",(M.ytMarqueeScrollAnimationEnabled=function(){return v()},M)),
el:Z,style:_.c$({gap:I?(0,_.CR)(I):"16px","animation-duration":e?VhN(e):"16s","animation-delay":T?VhN(T):"3s","--marquee-translate":(0,_.CR)(Y)})},_.w("span",{el:m,dir:"auto"},_.w(_.aS,{text:B,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.w(_.wU,{cond:v,then:function(){return _.w("span",{"aria-hidden":"true",dir:"auto"},_.w(_.aS,{text:B,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"be");_.LRI=_.rp(function(E){var B=E.data;var I=E.overlayDensity;E=_.TI(function(){B().onTapCommand&&_.xg(B().onTapCommand);return!1});
var T=_.gT(),e={};return _.w("reel-sound-metadata-view-model",{class:_.RQ("ytReelSoundMetadataViewModelHost",(e.ytReelSoundMetadataViewModelHostLarge=function(){return(I==null?void 0:I())===1},e)),
"on:click":E,tabindex:0,role:"button","on:keydown":T},_.w("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.w(_.wU,{cond:function(){return B().musicIcon},
then:function(c){return _.w(_.Ja,{data:c,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.w("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.w(uu7,{text:function(){return B().soundMetadata},
enableMarqueeScroll:function(){return!!B().enableMarqueeScroll},
large:function(){return(I==null?void 0:I())===1}}))))},"ce");var xtO,GU1,Dq,HVL,gl8,MNI,WRL,Jzg;xtO=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];GU1=_.RI("wil_icon_max_concurrent_fetches",Infinity);
Dq=function(E,B,I){var T=this;this.iconSet=E;this.appDirection=B;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.$i.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.d("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.d("wil_icon_network_first");this.renderWhenIdle=_.d("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.d("wil_icon_load_immediately");this.isPurging=!1;E=function(){T.cacheStorageAvailable&&(T.cacheStorageAsync=_.$i.caches.open("yt-icons").then(function(c){return T.cacheStorageSync=c}).catch(function(){T.cacheStorageAvailable=!1}))};
I=(I==null?void 0:I())||{};I=_.p(Object.entries(I));for(B=I.next();!B.done;B=I.next()){var e=_.p(B.value);B=e.next().value;e=e.next().value;e=eI(e);OVL(e);this.iconCache[B]=e.cloneNode(!0)}this.isPurging=nl1(this);this.isPurging instanceof Promise?this.isPurging.then(E):E()};
_.Bxd=function(E,B){var I=E.resolveIcon(B);return I?E.renderingMode===1?MNI(E,I,E.renderingMode):(B=E.iconCache[I.url])?(B=B.cloneNode(!0),HVL(E,B),MNI(E,I,E.renderingMode,B)):_.Nr8(E,I).then(function(T){var e=T?0:1;HVL(E,T);return MNI(E,I,e,T)}):(_.GF(new _.P7("Icon not found",{iconShape:B})),function(){})};
HVL=function(E,B){if(B){E.counter+=1;E="_yt"+E.counter;B=[B].concat(_.ad(B.getElementsByTagName("*")));B=_.p(B);for(var I=B.next();!I.done;I=B.next())if(I=I.value,I.tagName==="style"&&I.textContent)I.textContent=gl8(I.textContent,E,!0);else for(var T=_.p(I.attributes),e=T.next();!e.done;e=T.next()){e=e.value;e.name==="id"&&(e.value+=E);["mask","fill","clip-path"].includes(e.name)&&(e.value=gl8(e.value,E));if(e.name==="style"){var c=I.style;try{c.cssText=gl8(c.cssText,E,!0)}catch(P){var Y=void 0,v=
void 0,y=void 0,Z=void 0;K3({error:((Y=P)==null?void 0:(y=(v=Y).toString)==null?void 0:y.call(v))||"",el:I.outerHTML,style:!!c,cssText:(Z=c)==null?void 0:Z.cssText})}}e.name==="xlink:href"&&(e.value=e.value.replace(/#(.*)/,"#$1"+E))}}};
gl8=function(E,B,I){var T=/url\(["']?#(.*?)["']?\)/;(I===void 0?0:I)&&(T=/url\(["']?#(.*?)["']?\)/g);return E.replace(T,"url(#$1"+B+")")};
MNI=function(E,B,I,T){return function(e,c){var Y=Object.assign({},{iconColor:"currentcolor",iconWidth:B.size+"px",iconHeight:B.size+"px",iconDisplay:"block"},c);c=_.li("DIV");var v=Y.iconColor,y=Y.iconFilter;Y="width: "+Y.iconWidth+"; height: "+Y.iconHeight+"; display: "+Y.iconDisplay+";";y&&(Y+=" filter: "+y+";");I===0&&(Y+=" fill: "+v+";");I===1&&(y=B.url,Y+=" -webkit-mask: url("+y+") no-repeat center / cover; mask: url("+(y+") no-repeat center / cover; background-color: ")+v);B.allowMirroring&&
E.appDirection==="rtl"&&(Y+=" transform: scale(-1, 1); transform-origin: center center;");c.setAttribute("style",Y);I===0&&T&&c.appendChild(T);e.appendChild(c)}};
_.Nr8=function(E,B){var I,T,e;return _.a(function(c){I=function(Y){return z1(Y)};
T=B.url;if(!SZ9(T))throw Error("hj");e=Jzg(E,T);return c.return(e.then(function(Y){return Y.clone().text()}).then(function(Y){var v=I(Y);
Y=B.size;var y=_.li("DIV");_.M7(y,v);v=_.ii(y.firstElementChild!==void 0?y.firstElementChild:_.hOV(y.firstChild,!0));Y=OVL(v,Y);E.iconCache[T]=Y.cloneNode(!0);delete E.responsePromises[T];return Y}).catch(function(){}))})};
WRL=function(E){var B,I=(B=E.requestAninmationFrameResolver)==null?void 0:B.promise;I||(E.requestAninmationFrameResolver=new _.Tv,I=E.requestAninmationFrameResolver.promise,_.$i.requestAnimationFrame(function(){var T;(T=E.requestAninmationFrameResolver)==null||T.resolve();E.requestAninmationFrameResolver=null}));
return I};
Jzg=function(E,B){var I,T;return _.a(function(e){if(e.nextAddress==1)return E.waitForAnimationFrame?_.C(e,WRL(E),2):e.jumpTo(2);I=E.responsePromises[B];I||(T=function(){var c,Y,v;return _.a(function(y){switch(y.nextAddress){case 1:if(!E.cacheStorageAvailable){c=void 0;y.jumpTo(2);break}if(Y=E.cacheStorageSync){y.jumpTo(3);break}return _.C(y,E.cacheStorageAsync,4);case 4:Y=y.yieldResult;case 3:c=Y;case 2:return v=c,E.isNetworkFirstStrategy?y.return(E.fetchAndUpdateCache(B,v).catch(E.getCacheStorageResponse.bind(E,
B,v))):y.return(E.getCacheStorageResponse(B,v).catch(E.fetchAndUpdateCache.bind(E,B,v)))}})},I=E.renderWhenIdle?new Promise(function(c,Y){_.PC(_.Ll,function(){T().then(c).catch(Y)},10)}):T(),E.responsePromises[B]=I);
return e.return(I.catch(function(c){delete E.responsePromises[B];K3({error:(c==null?0:c.toString)?c.toString():"",url:B});throw c;}))})};
Dq.prototype.fetchAndUpdateCache=function(E,B){var I=this;return _.a(function(T){return T.return(X6O(I,E).then(function(e){rz9(I,E,e,B);return e}))})};
var X6O=function(E,B){var I;return _.a(function(T){if(E.numFetches<GU1)return E.numFetches+=1,T.return(bVI(E,B).finally(function(){--E.numFetches;if(Object.keys(E.queuedResponseResolvers).length){var e=Object.keys(E.queuedResponseResolvers)[0],c=E.queuedResponseResolvers[e];delete E.queuedResponseResolvers[e];c.resolve(X6O(E,e))}}));
I=new _.Tv;E.queuedResponseResolvers[B]=I;return T.return(I.promise)})},bVI=function(E,B,I){I=I===void 0?2:I;
var T;return _.a(function(e){T={credentials:"same-origin",priority:"low"};return e.return(_.$i.fetch(B,T).then(function(c){return c.ok?c:Promise.reject(Error("ij`"+c.status+"`"+c.statusText))}).catch(function(c){if(I>0)return bVI(E,B,I-1);
throw c;}))})},rz9=function(E,B,I,T){_.a(function(e){return T?e.return(new Promise(function(c){_.PC(_.Ll,function(){var Y,v;
return _.a(function(y){switch(y.nextAddress){case 1:if(!E.isNetworkFirstStrategy){Y=void 0;y.jumpTo(2);break}return _.C(y,T.match(B).catch(function(){}),3);
case 3:Y=y.yieldResult;case 2:if(v=Y){y.jumpTo(4);break}return _.C(y,T.put(B,I.clone()).catch(function(Z){K3({error:(Z==null?0:Z.toString)?Z.toString():"",url:B})}),4);
case 4:c(),_.ER(y)}})},50)})):e.return()})};
Dq.prototype.getCacheStorageResponse=function(E,B){return _.a(function(I){return B?I.return(B.match(E).then(function(T){return T&&T.ok?T:Promise.reject()})):I.return(Promise.reject())})};
var OVL=function(E,B){B===void 0||E.getAttribute("viewBox")||E.setAttribute("viewBox","0 0 "+B+" "+B);E.setAttribute("focusable","false");E.setAttribute("aria-hidden","true");try{E.style.pointerEvents="none",E.style.display="inherit",E.style.width="100%",E.style.height="100%"}catch(e){var I;K3({error:((I=e)==null?0:I.toString)?e.toString():""});try{E.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(c){var T;K3({error:((T=c)==null?0:T.toString)?c.toString():
""})}}return E},SZ9=function(E){for(var B=_.p(xtO),I=B.next();!I.done;I=B.next())if(E.startsWith(I.value)&&E.endsWith(".svg"))return!0;
return!1};
Dq.prototype.resolveIcon=function(E){return this.iconSet.resolveIcon(E)};
var K3=function(E){_.OG(new _.P7("Error in IconManager",E))},nl1=function(E){if(_.d("wil_icons_cache_purge_killswitch"))return!1;
try{var B=_.$i.localStorage}catch(c){return!1}if(!B||!E.cacheStorageAvailable)return!1;var I=function(c){try{var Y;(Y=B)==null||Y.setItem("yt-icons-last-purged",c.toString())}catch(y){var v;K3({error:((v=y)==null?0:v.toString)?y.toString():""})}},T=Number(B.getItem("yt-icons-last-purged"));
if(!T)return T=new Date,T=T.setDate(T.getDate()-Math.floor(Math.random()*90+1)),I(T),!1;if(function(c,Y){c=new Date(c);Y=new Date(Y);return Y.getMonth()-c.getMonth()+12*(Y.getFullYear()-c.getFullYear())}(T,Date.now())<3)return!1;
try{return _.$i.caches.delete("yt-icons").then(function(c){c&&I(Date.now());return c}).catch(function(){return!1}).finally(function(){E.isPurging=!1})}catch(c){var e;
K3({error:((e=c)==null?0:e.toString)?c.toString():""});return!1}};
Dq[F1]=[BcX,_.NE,_.Fx(Tcz)];_.RC=function(E,B){this.iconManager=E;this.iconsToFetch=B};
_.RC[F1]=[_.Ee,_.Fx(IJN)];var ol9=function(E,B,I){this.requestKey=E;this.j6S=B;this.kxj=I;this.vaZ=function(){return new XMLHttpRequest};
this.nPi=void 0;this.rcP=[]};
ol9.prototype.getLatestChallengeResponse=function(){return this.kxj};
var PlU=function(E,B,I){var T,e,c,Y;return _.a(function(v){if(v.nextAddress==1){_.OK("attestation_challenge_fetch");_.nO("att_fs",void 0,"attestation_challenge_fetch");if(!E.nPi)throw new _.LS(9,"Missing fetcher");return _.C(v,E.nPi(B,I),2)}T=v.yieldResult;c=(e=T)==null?void 0:e.bgChallenge;if(!c)throw new _.LS(15,"Missing field");E.kxj=T;E.rcP.forEach(function(y){y(T)});
Y=BNf(c);_.nO("att_fc",void 0,"attestation_challenge_fetch");lYF("attestation_challenge_fetch");return v.return(Y)})},orr=function(E,B){var I,T,e,c,Y;
return _.a(function(v){switch(v.nextAddress){case 1:I=new Ds(100,3E5,.25,2),T=void 0;case 2:if(!(I.currBackoffCount_<10)){v.jumpTo(4);break}_.q7(v,5);if(!(I.currBackoffCount_>0)){v.jumpTo(7);break}return _.C(v,qad(I.getValue()),7);case 7:return _.C(v,Az2(E,B),9);case 9:return e=v.yieldResult,v.return(e);case 5:c=_.RG(v);c instanceof _.LS?T=c:(Y=c instanceof Error?c.message:"Unknown",T=new _.LS(9,Y));G1R(I);v.jumpTo(2);break;case 4:if(T)throw T;throw new _.LS(9,"Unknown error");}})},Az2=function(E,
B){B=lsV(ciN(new efz,B),E.requestKey);
var I=new _.Tv,T=E.vaZ();T.open("POST",E.j6S);T.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");T.setRequestHeader("Content-Type","application/json+protobuf");T.onload=function(){if(Ogi(T)){var e=Zxh(T.responseText);I.resolve(e)}else I.reject(new _.LS(_.R_(Ik(T)),T.statusText))};
T.onerror=function(){I.reject(new _.LS(_.R_(Ik(T)),T.statusText))};
T.send(B.serialize());return I.promise};var UtO=function(E){this.networkStatusManager=E;this.isDownloaded=RYc===void 0?function(){return!1}:RYc;
this.isReady=!1;this.yvf=j$L(this)},j$L=function(E){var B;
return _.a(function(I){if(I.nextAddress==1)return _.C(I,Med(),2);if(I.nextAddress!=3)return B=I.yieldResult,_.C(I,jhZ(B),3);E.sL=I.yieldResult;Db6(E.sL).then(function(){E.isReady=!0});
return I.return(E.sL)})},kUH=function(E,B,I){E.sL?(E=E.sL.uO({d6:I,
zSP:!0,hSq:!0}),B.serviceIntegrityDimensions={poToken:E}):_.xV(Error("jj"))};
UtO.prototype.processContext=function(E){var B=this;if(!E.input.match(_.f9(jvZ)))return _.op();var I=E.innerTubeRequest,T=I.videoId;return!T||this.isDownloaded(I)||this.networkStatusManager&&!this.sL&&!this.networkStatusManager.isNetworkAvailable()?_.op():this.sL?this.isReady?(kUH(this,I,T),_.op()):new bU(Db6(this.sL).then(function(){kUH(B,I,T)})):new bU(this.yvf.then(function(e){return _.a(function(c){if(c.nextAddress==1)return _.C(c,Db6(e),2);
kUH(B,I,T);_.ER(c)})}))};var tNd=new _.Dr("WEB_PO_CONTEXT_PROCESSOR");var fXI=function(E,B){var I=this;this.lBL=0;var T;this.iuC=(T=B==null?void 0:B.iuC)!=null?T:window;this.networkStatusManagerPromise=B==null?void 0:B.networkStatusManagerPromise;var e;this.requestKey=(e=B==null?void 0:B.requestKey)!=null?e:_.EF("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var c;this.gNS=(c=B==null?void 0:B.gNS)!=null?c:function(y){return new N0(y)};
var Y;T=(Y=B==null?void 0:B.sBo)!=null?Y:function(y,Z,P){return new ol9(y,Z,P)};
this.bgChallenge=BNf(E.bgChallenge);this.ttlSeconds=$Zt(Du(E.challenge||""));this.xd=T(this.requestKey,_.d("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.$i.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",E);FdG(this.xd);var v;this.qSs=(v=B==null?void 0:B.qSs)!=null?v:function(y){_.vV(I.iuC.document,"visibilitychange",function(){I.iuC.document.visibilityState===
"visible"&&y()})}},qZT=function(E){if(!E.gS){var B={maxAttempts:5,
zJT:E.ttlSeconds*1E3};Kdi(E.iuC);E.gS=E.gNS({xd:E.xd,yu:{disable:_.d("html5_web_po_disable_remote_logging"),nR:"aGIf",vp7:sjQ("html5_web_po_experiment_ids"),n65:_.d("wpo_dis_lfdms")?0:1E3},wlF:B,aJH:E.bgChallenge,s2H:RXJ});E.lBL=Date.now();vrR(E.gS,function(){E.lBL=Date.now()});
S76(E.gS,function(){return _.a(function(T){return T.return(VNm(E))})});
var I=E.g6Q.bind(E);E.networkStatusManagerPromise&&E.ttlSeconds>0&&E.networkStatusManagerPromise.then(function(T){T.listen("publicytnetworkstatus-online",I)});
E.qSs(I)}};
fXI.prototype.g6Q=function(){if(Date.now()>this.lBL+this.ttlSeconds*1E3){var E;(E=this.gS)==null||as6(E)}};
var VNm=function(E){if(E.flV)return E.flV;if(!E.gS)throw Error("kj");E.flV=new WR({gS:E.gS,xd:E.xd,kis:!0,onError:RXJ});return E.flV},BOJ=function(E,B){E=new fXI(E,B);
qZT(E);VNm(E)};var E$=function(E,B){this.store=E;this.queue=[];this.supportsFocus=_.d("web_ephemeral_actions_focus");B==null||B.addEventListener("yt-navigate-start",this.reset.bind(this))};
E$.prototype.enqueue=function(E){var B=E.command,I=E.durationMs,T=E.elementToFocus;var e=E.label;var c=E.elementToFocus;E.command?e=_.yu("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:e,shortcut:_.yu("SHIFT_PLUS_ENTER")}):c&&this.supportsFocus&&(E=e+". "+_.yu("SHIFT_PLUS_ENTER")+" for more information.",e=_.yu("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:e,shortcut:_.yu("SHIFT_PLUS_ENTER")},E));I={announcement:e,durationMs:I!=null?I:this.supportsFocus?8E3:void 0};B?I.command=B:T&&this.supportsFocus&&(T.classList.add("ephemeral-action-focusable-element"),
I.selector=T.tagName+".ephemeral-action-focusable-element");this.queue.push(I);FRI(this)};
E$.prototype.activate=function(E){var B=_.y_J(this.store.getState());if(B){if(B==null?0:B.command)_.se(B.command),this.store.dispatch(WfR(null));(B==null?0:B.selector)&&this.supportsFocus&&(B=document.querySelector(B.selector),_.EPB(B));E.preventDefault()}};
var FRI=function(E){if(!_.y_J(E.store.getState())&&E.queue.length){var B=E.queue.shift();B&&(E.previousAnnouncement===B.announcement&&(B.announcement+="\u00a0"),E.store.dispatch(WfR(B)),E.previousAnnouncement=B.announcement,E.timeoutId=setTimeout(function(){if(B.selector&&E.supportsFocus){var I;(I=document.querySelector(B.selector))==null||I.classList.remove("ephemeral-action-focusable-element")}E.store.dispatch(WfR(null));FRI(E)},B.durationMs))}};
E$.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(WfR(null));this.queue.length=0;this.timeoutId=void 0};
E$[F1]=[_.sy,_.Iy];_.BJ=new _.Dr("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Dtg=new _.Dr("AUTH_SERVICE_TOKEN");var TOc=_.km(["about:blank"]),IIf;var KRg=new _.Dr("API_IFRAME_TOKEN"),RZ8=new _.Dr("FETCH_FN_TOKEN"),EI9=new _.Dr("PARSE_FN_TOKEN"),BsT=new _.Dr("WINDOW_REQUEST_TOKEN");var zdN;zdN=new _.Dr("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.$IO=new _.Dr("MISC_UI_SHARED_FLAGS_TOKEN");var I1H=function(){};
I1H.prototype.getFlag=function(E){if(E.configType!==2)throw Error("lj");return TsT(E)};
var TsT=function(E){switch(E.flagType){case "bool":return _.d(E.flagName);case "int":return _.jN(_.RI(E.flagName));case "double":return _.RI(E.flagName);case "string":return _.EF(E.flagName);case "int32_list":return sjQ(E.flagName);case "int64_list":return sjQ(E.flagName).map(function(B){return _.jN(B)});
case "string_list":return _.B7(E.flagName);default:throw Error("mj");}};var $E=function(E,B,I){B=B===void 0?{}:B;nL.call(this,I===void 0?"uninitialized":I);this.env=E;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}];B.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=B.shouldWaitOnAsyncImmediate)};
_.L($E,nL);$E.prototype.init=function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1)return B.processPluginOptions.shouldWaitOnAsyncImmediate?_.C(T,E(B.env),2):(E(B.env),T.jumpTo(2));if(T.nextAddress!=4)return B.jobSet?_.C(T,B.jobSet.completedResolver.promise,4):T.jumpTo(4);I=_.gB();I.parkOrScheduleJob(function(){B.transition("rendering")},10,"ci");
_.ER(T)})};
$E.prototype.initialRender=function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1)return B.processPluginOptions.shouldWaitOnAsyncImmediate?_.C(T,E(B.env),2):(E(B.env),T.jumpTo(2));if(T.nextAddress!=4)return B.jobSet?_.C(T,B.jobSet.completedResolver.promise,4):T.jumpTo(4);I=_.gB();I.parkOrScheduleJob(function(){B.transition("rendered")},10,"cr");
_.ER(T)})};
$E.prototype.afterRenderImmediate=function(E){var B=this,I;return _.a(function(T){if(T.nextAddress==1)return B.processPluginOptions.shouldWaitOnAsyncImmediate?_.C(T,E(B.env),2):(E(B.env),T.jumpTo(2));if(T.nextAddress!=4)return B.jobSet?_.C(T,B.jobSet.completedResolver.promise,4):T.jumpTo(4);I=_.gB();I.parkOrScheduleJob(function(){B.transition("after-render-deferred")},10,"carml");
_.ER(T)})};
$E.prototype.afterRenderDeferred=function(E){var B=this;return _.a(function(I){E(B.env);_.ER(I)})};var eOs={},l1I=(eOs.rendered={priority:0,callback:function(E){qGN(E.injector.resolve(zF))}},eOs);var cHd=!1,yqi=0,pti=null,v5G=null;var iTL=new _.Dr("NETWORK_SLI_TOKEN");var pm8=function(E,B,I,T){this.networkSli=E;this.fetchFn=B;this.parseFn=I;this.requestFn=T};
pm8.prototype.fetch=function(E,B,I){var T=this,e,c,Y;return _.a(function(v){e=Y92(T,E,B);Y=(c=T.fetchFn)!=null?c:fetch;return v.return(Y(e).then(function(y){return T.handleResponse(y,I)}).catch(function(y){_.OG(y);
if((I==null?0:I.expectJsonStrict)&&y instanceof Ey&&y.errorType===1)return Promise.reject(y)}))})};
var MFD=function(E,B,I,T){var e,c,Y,v,y,Z;return _.a(function(P){switch(P.nextAddress){case 1:return e=Y92(E,B,I),_.q7(P,2),_.C(P,fetch(e),4);case 4:c=P.yieldResult;_.W7(P,3);break;case 2:throw _.RG(P),new Ey(2,"Failed to parse streaming response",e.url);case 3:if(!c.redirected&&!c.ok)throw(Y=E.networkSli)==null||Y.failure(),new _.P7("Streaming fetch request not ok",e.url);if(!c.body)throw new _.P7("No response body in streaming response",e.url);v=c.body.pipeThrough(new TextDecoderStream).getReader();
y=new _.IA;Z={};return P.return(a1t(E,v,y,Q9f,Z,T))}})},Y92=function(E,B,I){if(E.networkSli){var T=_.c7(_.F$(B,"key"))||"/UNKNOWN_PATH";
E.networkSli.start(T)}T=I;_.d("wug_networking_gzip_request")&&(T=J2c(I));var e;return new ((e=E.requestFn)!=null?e:window.Request)(B,T)},a1t=function(E,B,I,T,e,c){var Y,v,y,Z,P,z,m,u,x;
return _.a(function(M){if(M.nextAddress==1)return _.C(M,B.read(),2);Y=M.yieldResult;v=Y.value;if(y=Y.done)return(Z=E.networkSli)==null||Z.success(),M.return(e);try{P=I.parse(v)}catch(N){throw new Ey(1,"Failed to parse streaming response",v);}if(P!=null)for(z=_.p(P),m=z.next();!m.done;m=z.next())u=m.value,T(e,u),x=void 0,(x=c)==null||x(e,u);return M.return(a1t(E,B,I,T,e,c))})};
pm8.prototype.handleResponse=function(E,B){var I,T=(I=this.parseFn)!=null?I:JSON.parse;I=E.text().then(function(e){if((B==null?0:B.jspbResponseCtor)&&E.ok)return IKi(B.jspbResponseCtor,e);e=e.replace(")]}'","");if((B==null?0:B.expectJsonStrict)&&e)try{var c=T(e)}catch(v){throw new Ey(1,"JSON parsing failed after fetch");}var Y;return(Y=c)!=null?Y:T(e)});
E.redirected||E.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),I=I.then(function(e){_.OG(new _.P7("Error: API fetch failed",E.status,E.url,e));return Object.assign({},e,{errorMetadata:{status:E.status}})}));
return I};
pm8[F1]=[_.Fx(iTL),_.Fx(RZ8),_.Fx(EI9),_.Fx(BsT)];var vI7=new _.Dr("NETWORK_MANAGER_TOKEN");var yHs=[1,2,4,8,16,30],wms=function(E){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=E.maxTimeMs;this.maxFrameCount=E.maxFrameCount===void 0?Math.ceil(60*E.maxTimeMs/1E3):E.maxFrameCount;E=_.p(yHs);for(var B=E.next();!B.done;B=E.next())this.brokenFrameSummarizers.push(new CLI(B.value/60*1E3))},ZTt=function(E){var B=E.frameCountInternal>=E.maxFrameCount;
return E.elapsedTimeMs>=E.maxTimeMs||B},PLs=function(E){for(var B=[],I=_.p(E.brokenFrameSummarizers),T=I.next();!T.done;T=I.next())T=T.value,T=T.brokenFrameCount!==0?{severityMs:Math.round(T.targetFrameTimeMs),
eventCount:T.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(T.averageDurationBetweenEventsMs)}:void 0,T&&B.push(T);return{summaries:B,monitoringDurationMs:Math.round(E.elapsedTimeMs)}};
_.Up.Object.defineProperties(wms.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 CLI=function(E){this.targetFrameTimeMs=E;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Up.Object.defineProperties(CLI.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var zO9=function(){};
zO9.prototype.start=function(E,B){var I=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var T=new wms({maxTimeMs:E});this.monitor=T;this.lastSummaryInternal=void 0;this.metadataToLog=B;return new Promise(function(e){var c=function(Y){if(Y===void 0)I.stop(),e(void 0);else if(I.monitor!==T)Y=Object.assign({},PLs(T),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),e(Y);else{var v=I.monitor;if(!ZTt(v)){v.frameCountInternal++;if(v.prevTime===void 0)v.startTime=
Y;else for(var y=Y-v.prevTime,Z=_.p(v.brokenFrameSummarizers),P=Z.next();!P.done;P=Z.next()){P=P.value;var z=P.currTimeMs;P.currTimeMs+=y;y>P.targetFrameTimeMs+2&&(P.brokenFrameCount++,P.timeOfFirstBrokenFrameMs===void 0&&(P.timeOfFirstBrokenFrameMs=z),P.timeOfLastBrokenFrameMs=z)}v.prevTime=Y}ZTt(I.monitor)?e(I.stop()):_.Ll.addJob(c,5,0)}};
_.Ll.addJob(c,5,0)})};
zO9.prototype.stop=function(E){if(!this.monitor)return this.lastSummaryInternal;var B=Object.assign({},PLs(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(B.monitoringDurationMs){E=E!=null?E:this.metadataToLog;var I={droppedFramesSummary:B,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};E&&(I[E.type]=E.data);_.hK("manualSmoothnessMeasurement",I)}this.monitor=void 0;this.lastSummaryInternal=B;this.metadataToLog=void 0;return B};_.mI7=new _.Dr("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var QgI;QgI=function(E){this.JSC$16174_expiringStorage=new mz(E)};
_.dIL=function(E){if(_.CnG()&&(E=_.a$G(_.w0()+"::"+E)))return new QgI(E)};
QgI.prototype.set=function(E,B,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$16174_expiringStorage.set(E,B,I)};
QgI.prototype.get=function(E){return this.JSC$16174_expiringStorage.get(E)};
QgI.prototype.remove=function(E){this.JSC$16174_expiringStorage.remove(E)};var hOT=new _.Dr("SESSION_STORAGE");_.Ic=function(){};
_.Ic.getInstance=function(){var E=_.WA("ytglobal.storage_");E||(E=new _.Ic,_.ka("ytglobal.storage_",E));return E};
_.Ic.prototype.estimate=function(){var E,B,I;return _.a(function(T){E=navigator;return((B=E.storage)==null?0:B.estimate)?T.return(E.storage.estimate()):((I=E.webkitTemporaryStorage)==null?0:I.queryUsageAndQuota)?T.return(wtf()):T.return()})};
_.ka("ytglobal.storageClass_",_.Ic);var sg9=!1;var u87=_.km(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),L2O=_.km(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var rOu={"/":_.yB,"/?feature=ytca":_.yB,"/feed/downloads":_.oXF};var w6=function(E,B,I){this.JSC$16187_upliftPromise=E;this.store=B;this.JSC$16187_persistentStorePromiseAccessor=I};
w6.prototype.shouldPreferLocalResponse=function(E){return E.browseId==="FEdownloads"||E.browseId==="FEsmart_downloads"&&_.d("kevlar_modern_downloads_page")?!0:!1};
w6.prototype.localInnertubeResponse=function(E){var B=this;return _.a(function(I){return E.browseId==="FEdownloads"?_.d("kevlar_modern_downloads_page")?I.return(xIm(B)):I.return(G7t(B)):E.browseId==="FEsmart_downloads"&&_.d("kevlar_modern_downloads_page")?I.return(OT7(B)):I.return(Promise.reject(Error("oj")))})};
w6.prototype.canProvideFallbackResponse=function(){return!0};
w6.prototype.localFallbackInnertubeResponse=function(E){var B=this,I,T,e;return _.a(function(c){switch(c.nextAddress){case 1:return _.C(c,B.JSC$16187_persistentStorePromiseAccessor(),2);case 2:I=c.yieldResult;if(E.browseId!=="SPaccount_downloads"||!I){c.jumpTo(3);break}return _.C(c,KkD(I),4);case 4:if(T=c.yieldResult)return c.return(_.c3(T));case 3:return E.browseId==="FEwhat_to_watch"?c.return(nIt(B)):(e=_.d("web_offline_continuation_automatic_retry")||_.d("web_offline_continuation_retry_button"))&&
E.continuation?c.return(Mt1(B)):c.return(HTm(B))}})};
var nIt=function(E){var B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,E.JSC$16187_upliftPromise,2);B=_.l_G(E.store.getState().entities);return B.length?I.return(Ns7(E,B)):I.return(HTm(E))})},G7t=function(E){var B,I;
return _.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$16187_upliftPromise,2);if(T.nextAddress!=3)return B=gII([{offlineItemSectionRenderer:{}}]),_.C(T,S97(E,B),3);I=T.yieldResult;I.onResponseReceivedActions=[dZ("REFRESH_DOWNLOADS")];return T.return(I)})},xIm=function(E){var B,I,T,e,c,Y,v,y,Z,P,z,m,u;
return _.a(function(x){if(x.nextAddress==1)return _.C(x,E.JSC$16187_upliftPromise,2);if(x.nextAddress!=3)return B=E.store.getState(),I=B.entities,T=_.s3(I),e=_.um(I),c=_.WJQ(B),Y=_.JB4(B),v=_.XW6(B),y=_.YSf(I),Z=_.PP(T),P=_.L9(I),z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.D5d(T,e,y,c,Y,Z,P,v),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},m=_.yu("DOWNLOADS",void 0,"Downloads"),_.C(x,JHs(E,z,m),3);u=x.yieldResult;
u.onResponseReceivedActions=[dZ("REFRESH_DOWNLOADS")];return x.return(u)})},OT7=function(E){var B,I,T,e,c,Y,v,y,Z;
return _.a(function(P){if(P.nextAddress==1)return _.C(P,E.JSC$16187_upliftPromise,2);if(P.nextAddress!=3)return B=E.store.getState(),I=B.entities,T=_.s3(I),e=_.PP(T),c=_.L9(I),Y={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.RcD(T),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},v=_.yu("SMART_DOWNLOADS",void 0,"Smart downloads"),y=q2B(e,c),_.C(P,JHs(E,Y,v,y),3);Z=P.yieldResult;Z.onResponseReceivedActions=[dZ("REFRESH_DOWNLOADS")];
return P.return(Z)})},HTm=function(E){var B,I;
return _.a(function(T){if(T.nextAddress==1)return _.C(T,lb(E.JSC$16187_upliftPromise,E.store),2);B=T.yieldResult;I=gII([Vhd(B)]);return T.return(S97(E,I))})},Mt1=function(E){var B,I,T,e;
return _.a(function(c){if(c.nextAddress==1)return B={},I=E.store.getState().continuation.continuationCommand,_.PV(B,_.u0,I),_.C(c,lb(E.JSC$16187_upliftPromise,E.store,B,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);T=c.yieldResult;e={};_.PV(e,_.XTl,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:T}}}],targetId:"browse-feedFEwhat_to_watch"});return c.return({responseContext:{},onResponseReceivedActions:[e]})})},gII=function(E){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:E}}}}]}}},Ns7=function(E,B){var I,T;
return _.a(function(e){var c={contents:hC(B)};I=c&&c.contents?c:{};_.d("kevlar_modern_downloads_page")&&(I=Object.assign({},_.E16(B),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));T={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:I}}}]}};return e.return(S97(E,T))})},S97=function(E,B){var I,T;
return _.a(function(e){if(e.nextAddress==1)return _.C(e,E.JSC$16187_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3)return I=e.yieldResult,_.C(e,ib(I),3);T=e.yieldResult;return e.return({responseContext:{},contents:B,topbar:T})})},JHs=function(E,B,I,T){var e,c;
return _.a(function(Y){if(Y.nextAddress==1)return _.C(Y,E.JSC$16187_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return e=Y.yieldResult,_.C(Y,ib(e),3);c=Y.yieldResult;var v=Y.return;var y=T;y=y===void 0?"":y;y={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:I}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.yu("SETTINGS",void 0,"Settings"),accessibilityText:_.yu("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:FD("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:y}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:I};
return v.call(Y,{responseContext:{},contents:B,topbar:c,header:{pageHeaderRenderer:y}})})};var W29=function(){this.moduleRegistry={};this.fetchCount=0};
W29.prototype.isFetching=function(){return this.fetchCount>0};
var XY=function(E,B){E.moduleRegistry[B.toString()]={asyncId:B,isFetching:!1};return E};
W29.prototype.JSC$16198_loadModules=function(){for(var E=this,B=new Map,I=[],T=_.p(_.aG.apply(0,arguments)),e=T.next();!e.done;e=T.next()){e=e.value;var c=this.moduleRegistry[e];c?c.resolver?B.set(e,c.resolver):(c.resolver=new _.Tv,B.set(e,c.resolver),I.push(c.asyncId),c.isFetching=!0):(c=new _.Tv,B.set(e,c),c.resolve(void 0))}I.length&&(this.fetchCount+=1,_.sk(_.QJ.getMultipleAsync.apply(_.QJ,_.ad(I)).then(function(Y){for(var v=0;v<I.length;v++){var y=Y[v],Z=E.moduleRegistry[I[v].toString()];Z.isFetching=
!1;Z.resolver.resolve(y)}}).catch(function(Y){for(var v=_.p(I),y=v.next();!y.done;y=v.next()){y=y.value;
var Z=E.moduleRegistry[y.toString()];Z.resolver=void 0;Z.isFetching=!1;B.get(y.toString()).reject(Y)}}),function(){--E.fetchCount}));
return Promise.all([].concat(_.ad(B.values())).map(function(Y){return Y.promise}))};_.r6=new _.Dr("MODULE_REGISTRY_TOKEN");var XmT={},rHH=(XmT.rendered={priority:0,callback:function(E){a:{var B=void 0;try{var I;b:{if(_.IvF()){var T=_.Yi6(_.w0()+"::pom");if(T){var e=new pM(T);break b}}e=void 0}var c=(I=e)==null?void 0:I.get("role_text");if(!c)break a;B={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:c}]}}}}}}catch(y){}B&&E.injector.resolve(_.Dt).resolveCommand(B)}try{var Y=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(Y){var v=JSON.parse(Y);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
v&&E.injector.resolve(_.Dt).resolveCommand(v)}}catch(y){}}},XmT);var bT9,oIL={},AH2=(oIL.initialized={priority:10,callback:function(){bT9=ub()}},oIL.rendering={callback:function(E){var B;
return _.a(function(I){if(I.nextAddress==1)return _.C(I,bT9,2);B=I.yieldResult;if(!B.endpoint)throw Error("qj`"+_.$i.location.href);Og(E,B);_.ER(I)})}},oIL);var jg8={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.ad(_.d("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(E){var B=E.stack;if(B.includes("chrome://")||B.includes("chrome-extension://")||E.message.includes("chrome-extension://")||B.includes("moz-extension://")||B.includes("local.adguard.org")||B.includes("auctioneer3.50million.club")||B.includes("youtubedownloader")||B.includes("youtube_home_page")||B.includes("is_youtube_video_no_longer_available")||
B.includes("switchScreenSizeHack")||B.includes("yt_main_big_banner.js")||B.includes("YouTubeCenter.js")||B.includes("/mytube.js")||B.includes("JSON.parseWrapper")||B.includes("/inj_js/common.js")||B.includes("firebug-lite")||B.includes(".repl.co/")||B.includes("linkfix")||B.includes("playAfterAd")||E.message.includes("Access is denied for this document")&&B.includes("<anonymous>")||E.fileName==="user-script"||E.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
B.includes("<anonymous>"))return!0;if(B.includes("https://www.youtube.com"))return!1;E=B.split("\n");if(!E.length)return!1;if(E.length<=3&&B.includes("s.onloadeddata"))return!0;B=0;for(var I=_.p(E),T=I.next();!T.done;T=I.next())T=T.value,(T.includes("https://")||T.includes("http://"))&&B++;return B/E.length>.95},
weight:0},{callback:function(E){return E.message==="Unknown Error"&&E.name.indexOf("NS_")===0},
weight:100},{callback:function(E){if(!_.cf)return!1;var B=E.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||E.message.includes("available to complete this operation"),I=E.stack.includes("webcomponents")&&E.message==="Object doesn't support this action";E=E.message.includes("object that does not implement interface Element");return B||I||E},
weight:0},{callback:function(E){return E.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(E){return E.message==="Operation is not supported"&&(E.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(E){return E.stack.includes("eval code (eval (code:1:1)")||E.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(E){return E.message.includes("Permission denied")&&E.stack.includes("this.domHandler")?!0:E.name.includes("TypeError")&&E.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(E){if(!E.stack)return!1;var B=E.stack.trim().split("\n");B.length&&B[0].endsWith("Error: "+E.message)&&B.shift();B.length&&B[B.length-1].includes("at window.onerror (")&&B.pop();if(!B.length)return!0;if(E.message==="Script error.")return B[0].includes("www.youtube.com")||B.length>=2&&B[0].startsWith("at new")&&B[1].startsWith("at window.onerror");if(E.message==="Unexpected token")return!0;E=_.p(B);for(B=E.next();!B.done;B=E.next())if(B=B.value,!(B.includes("<anonymous>")||
B.startsWith("load@")||B.startsWith("global code@")||B.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(E){return E.message==="Cannot read property 'experiments'"&&E.stack.includes("/s/player/")},
weight:500},{callback:function(E){return E.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(E){return E.stack.includes("/embed.js")?(E.params&&E.params&&(E.params.name="56"),!0):!1},
weight:1}]};var UIm={},k7s=(UIm.initialized={priority:10,callback:function(E){E.injector.addProvider({provide:dnR,useValue:E.root});E.injector.addProvider({provide:Mdd,useValue:ax6});E.injector.addProvider({provide:H4T,useValue:jg8});var B={};E.injector.addProvider((B.provide=NJH,B.useFactory=function(I,T){return function(){vA6(I,T)}},B[F1]=[Mdd,
H4T],B));E.injector.addProvider({provide:TS,useClass:TS})}},UIm);var tt9={},f12=(tt9.initialized={priority:3,callback:function(){var E;if(E=I$c()){E=E.replace("/",".");var B=_.ZB();B.set("tz",E);B.save();E=!0}else E=!1;E||(E=_.ZB(),E.set("utco",-Math.floor((new Date).getTimezoneOffset())),E.save())}},tt9);var VtI={},q91=(VtI.initialized={priority:10,callback:function(E){E.injector.resolve(TS).start();E=_.NK();var B=_.gU("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.gU("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.gU("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.gU("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.v3(_.HSB(),{mainAppWeb:Object.assign({},E,{pageType:B})});_.v3(gTB(),{mainAppWeb:Object.assign({},E,{pageType:B})});
_.v3(Sk4(),{mainAppWeb:E});_.v3(JPt(),{mainAppWeb:E});cKZ(function(){_.yr(Sk4(),"FAILURE");_.yr(JPt(),"FAILURE")});
ONd();n56();fl6()}},VtI);var F2m={},DI1=(F2m.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.nO("dl"),_.gB().processSignal("pcl");else{var E=function(){_.nO("dl");_.gB().processSignal("pcl");window.removeEventListener("load",E)};
window.addEventListener("load",E)}}},F2m);var K2t={},RO1=(K2t.rendering={priority:0,callback:function(){var E=_.gB();E.parkOrScheduleJob(function(){E.processSignal("eocs")},10,"eor",5E3)}},K2t);var EyI=function(){};
_.L(EyI,hN);
EyI.prototype.resolveCommand=function(E,B){var I,T,e,c,Y,v,y,Z;return _.a(function(P){e=(I=_.h(E,_.m$R))==null?void 0:(T=I.dialog)==null?void 0:T.commentReplyDialogRenderer;if(!e)throw new _.P7("No dialog in createCommentReplyDialogEndpoint");Y=(c=B.form)==null?void 0:c.event;if(!Y)throw new _.P7("Event not passed in when resolving command");v=_.p(Y.composedPath());for(y=v.next();!y.done;y=v.next())if(Z=y.value,Z.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||Z.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return Z.showReplyDialog(e),P.return();
_.ER(P)})};var To=function(E){this.pageRequestService=E;this.JSC$16213_prefetchCoordinator=Pcs()};
_.L(To,hN);To.prototype.resolveCommand=function(E){var B=this,I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1){I=_.h(E,RTu);if((T=I)==null||!T.taskId)throw Error("rj");e=I.taskId;_.q7(Y,2);return _.C(Y,_.nor(B.pageRequestService,E,{},"").then(function(v){if(!v)throw Error("sj");},function(v){throw Error("tj`"+v);
}),4)}if(Y.nextAddress!=2)return QBs(B.JSC$16213_prefetchCoordinator,e),_.W7(Y,0);
c=_.RG(Y);Xi(B.JSC$16213_prefetchCoordinator,e,c);_.ER(Y)})};
To[F1]=[sg];var eB=function(E){this.innertubeTransportService=E};
_.L(eB,hN);eB.prototype.resolveCommand=function(E){var B=this,I,T;return _.a(function(e){I=_.h(E,BBV);if(I.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||I.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")T=I.boolValue?2:1,_.fU.getInstance().setState(T,!0,!0);return _.C(e,_.NN(B.innertubeTransportService,E),0)})};
eB[F1]=[_.P8];var lk={},BFT=(lk.addToPlaylistEndpoint=qf(YZ),lk.addToToastAction=qf(p6),lk.adsControlFlowOpportunityReceivedCommand=qf(tU),lk.captionLanguageSelectActionCommand=qf(u8),lk.captionPickerEndpoint=qf(Lk),lk.changeMiniAppPlayStateCommand=qf(ai),lk.changeTimelyActionVisibilityCommand=qf(ix),lk.channelCreationFormEndpoint=qf(T_),lk.clearLocationCommand=qf(pk),lk.clearUrlParamCommand=qf(vs),lk.copyLinkCommand=qf(MQ),lk.copyTextEndpoint=qf(qu),lk.createCommentReplyDialogEndpoint=kec(EyI),lk.createPlaylistServiceEndpoint=
qf(Hs),lk.dismissDialogEndpoint=qf(Ck),lk.entityUpdateCommand=qf(DW),lk.feedbackEndpoint=qf(E0),lk.getAnswerCommand=qf(xvN),lk.getPaymentsClientTokenCommand=qf(vI),lk.getTranscriptEndpoint=qf(YH),lk.googlePaymentBillingCommand=qf(ys),lk.googlePaymentPurchaseManagerCommand=qf(C6),lk.hideEngagementPanelEndpoint=qf(wx),lk.insertRichSectionCommand=qf(l8),lk.listMutationCommand=qf(cs),lk.logGtmCommand=qf(eX),lk.notifyDropdownOptionSelectedCommand=qf(yc),lk.openAdAllowlistInstructionCommand=qf(_.fB),lk.openOnePickAddVideoModalCommand=
qf(NQ),lk.persistSubscriptionsDisplayPreferencesCommand=qf(rx),lk.pingingEndpoint=qf(VG),lk.playlistEditEndpoint=qf(SX),lk.playlistVotingRefreshPopupCommand=qf(J$),lk.refreshPanelEndpoint=qf(Z9),lk.saveImageToDeviceEndpoint=qf(FV),lk.scrollToSectionEndpoint=kec(GpU),lk.seekToVideoTimestampCommand=qf(xZ),lk.selectCountryCommand=qf(b8),lk.setCookieCommand=qf(oi),lk.setLocalStorageCommand=qf(I9),lk.setPrefStorageEntryCommand=qf(jX),lk.setSettingEndpoint=qf(eB),lk.sfvAudioItemPlaybackCommand=qf(G_),lk.shareImageCommand=
qf(U0),lk.sharingProviderDataCommand=qf(kZ),lk.showCaptionLanguageSelectActionCommand=qf(O0),lk.showDialogCommand=qf(m8),lk.showEngagementPanelEndpoint=qf(Qc),lk.showSheetCommand=qf(dx),lk.showTransientPlayerScrimOverlayCommand=qf(nk),lk.submitFormWithValidationFlowCommand=qf(Ii),lk.talkToRecsDeselectCommand=qf(TH),lk.talkToRecsNextCommand=qf(ev),lk.talkToRecsSelectCommand=qf(lx),lk.talkToRecsUpdateTextCommand=qf(cI),lk.toggleEngagementPanelCommand=qf(h$),lk.undoFeedbackEndpoint=qf($Z),lk.updateEngagementPanelContentCommand=
qf(s0),lk.updateUrlParamCommand=qf(a9),lk.verifyCommand=qf(T_),lk.webNativeShareCommand=qf(t$),lk.webSubmitFormCommand=qf(Ws),lk.ACK_PLAYABLES_3P_DATA_CONSENT=qf(fk),lk.CANCEL_NAVIGATION=qf(Vc),lk.COPY_SHARE_URL=qf(qQ),lk.MINI_APP_EXIT_DIALOG_SEEN=qf(D9),lk.MINI_APP_OPEN_URL=qf(Fc),lk.REQUEST_MINI_APP_FULLSCREEN=qf(Kk),lk.RESUME_NAVIGATION=qf(Ri),lk.SHARE_PLAYABLE_WITH_HIGH_SCORE=qf(ET),lk.TELL_US_WHY=qf(Bs),lk);
_.d("web_enable_prefetching_videos_on_home")&&(BFT.prefetchWatchCommand=qf(To),BFT.registerTasksCommand=qf(bX));_.d("enable_share_panel_navigation_logging_fix_on_web")&&(BFT.shareEntityServiceEndpoint=qf(Ps));var t_u=Object.assign({},BFT);var $VO={},IKI=($VO.initialized={priority:10,callback:Stt},$VO);var TFs={},eGL=(TFs.initialized={callback:function(E){var B={},I={};vRc().install((B.document_disposed={callback:function(){_.d("finalize_all_timelines")?cLG():u1();YtJ("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.s44();var T=E.injector.resolve(TS);T.intervalId!==void 0&&(T.intervalId&&_.Ll.cancelJob(T.intervalId),T.intervalId=void 0,--T.currentPartitionIndex,T=pBD(T),T>0&&N5$({mainAppWeb:_.NK(),survivalSli:{partitionMinute:T,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));syr(X2);r8!=null&&
r8.flush();Eq&&Eq.snapshotAndFlush()}},B),(I.flush_logs={callback:function(){_.Li()}},I))}},TFs);var lKs={},c5m=(lKs.rendered={priority:0,callback:function(){var E=new D8l;E.increment("STARTED");if(_.HA("LOGGED_IN")&&_.HA("SERVER_VERSION")!=="test"&&_.HA("SERVER_VERSION")!=="dev"&&!rzZ()&&!X6Z()){E.increment("EXECUTING");var B=document.createElement("iframe");B.style.display="none";_.mVQ(B,2,_.pr("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.HA("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(B);E.increment("DONE")}}},lKs);var iX2={},p9L=(iX2.rendered={callback:function(){Pcs().resume()}},iX2);var YXO={acknowledgeChannelTouStrikeCommand:Lp(UT),addToPlaylistServiceEndpoint:Lp(V8),addToPlaylistEndpoint:Lp(V8),addUpcomingEventReminderEndpoint:Lp(v_),browseEndpoint:Lp(Reu),channelCreationFormEndpoint:Lp(WI),channelCreationServiceEndpoint:Lp(Xd),claimLegacyYoutubeChannelEndpoint:Lp(sT),clearSearchHistoryEndpoint:Lp(DS),clearWatchHistoryEndpoint:Lp(K6),commerceActionCommand:x3(mc),createBackstagePostEndpoint:Lp(PI),createBroadcastCommand:Lp(y8),createCommentEndpoint:Lp(N1),createCommentReplyEndpoint:Lp(HI),
createLiveChatPollEndpoint:Lp(CH),createPlaylistServiceEndpoint:Lp(qM),crossAccountChannelTransferEndpoint:Lp(B_),deleteLiveChatMessageCommand:Lp(wg),deletePlaylistEndpoint:Lp(Fh),deleteVideoEndpoint:Lp(aC),dismissalEndpoint:Lp(kH),feedbackEndpoint:Lp(te),flagEndpoint:Lp($n),getAccountSwitcherEndpoint:Lp(Eb),verifyCommand:Lp(ZS),getAccountsListInnertubeEndpoint:Lp(I4),getCommentsFromInboxCommand:Lp(MM),getDownloadActionCommand:Lp(Xh),getFlowCommand:x3(Fd),getKidsBlocklistPickerCommand:Lp(IC),getNotificationMenuEndpoint:Lp($G1),
getPaymentInstrumentsParamsCommand:Lp(L3),getPaymentsClientTokenCommand:x3(mc),getPdgBuyFlowCommand:Lp(tZ),getReportFormEndpoint:Lp(TC),getSearchInVideoCommand:Lp(cB),getAnswerCommand:Lp(lX),getSurveyCommand:Lp(Yn),getTranscriptEndpoint:Lp(C3),getPostVideoPreviewEndpoint:Lp(mH),decorateMessageEndpoint:Lp(zH),likeEndpoint:Lp(rk),liveChatActionEndpoint:Lp(m1),liveChatEndpoint:Lp(zL),liveChatItemContextMenuEndpoint:Lp(Zp),liveChatPurchaseMessageEndpoint:Lp(Q8),liveChatReplayEndpoint:Lp(P_),manageLiveChatUserEndpoint:Lp(hZ),
metadataUpdateCommand:Lp(Ob),moderateLiveChatEndpoint:Lp(sb),modifyChannelNotificationPreferenceEndpoint:Lp(S5),notificationOptOutEndpoint:Lp(JZ),openSuperStickerBuyFlowCommand:Lp(dg),performCommentActionEndpoint:Lp(OT),playlistEditEndpoint:Lp(KH),playlistEditorEndpoint:Lp(Dp),profileCardCommand:Lp(a4),recordNotificationInteractionsEndpoint:Lp(W_),reelWatchEndpoint:Lp(R4),refreshPanelEndpoint:Lp(b7),removeUpcomingEventReminderEndpoint:Lp(u7),resolveLocationCommand:Lp(GL),revealBusinessEmailCommand:Lp(ux),
searchEndpoint:Lp(_.Ii7),sendLiveChatMessageEndpoint:Lp(LH),sendLiveChatVoteEndpoint:Lp(xR),setSettingEndpoint:Lp(bx),shareEntityServiceEndpoint:x3(jv),sharingProviderDataCommand:Lp(p3),showEngagementPanelEndpoint:Lp(o4),showMoreDrawerCommand:Lp(j5),showSheetCommand:Lp(Ub),showDialogCommand:Lp(AZ),subscribeEndpoint:Lp(o9),transcriptSubmitCaptionCorrectionCommand:Lp(ya),undoFeedbackEndpoint:Lp(Vs),unsubscribeEndpoint:Lp(Ae),updateBackstagePostEndpoint:Lp(dk),updateCommentEndpoint:Lp(Sv),updateCommentReplyEndpoint:Lp(gk),
updateCommentsSettingsEndpoint:Lp(Je),updateCreatorChannelInnertubeCommand:Lp(xH),updateKidsBlacklistEndpoint:Lp(eT),updateEngagementPanelContentCommand:Lp(kR),updatePdgFeatureEnablementCommand:Lp(fH),updatedMetadataEndpoint:Lp(nH),validateChannelHandleCommand:Lp(GH),updateChannelPageSettingsEndpoint:Lp(L6),verifyAgeEndpoint:Lp(q1),watchEndpoint:x3(vB),whitelistEditEndpoint:Lp(zC),ypcCancelRecurrenceEndpoint:Lp(Qa),ypcCompleteTransactionEndpoint:Lp(dm),ypcFixInstrumentEndpoint:Lp(sd),ypcGetCartEndpoint:Lp(hS),
ypcGetOffersEndpoint:Lp(uX),ypcHandleTransactionEndpoint:x3(xn),ypcLogWalletAnalyticDataEndpoint:Lp(GC),ypcOffersEndpoint:Lp(Od),ypcPauseSubscriptionCommand:Lp(n3),ypcRedeemCodeEndpoint:Lp(Mn),ypcResumeSubscriptionCommand:Lp(HB),ypcUpdateFopEndpoint:Lp(sd)},cJ={},aKt=(cJ.GET_ACCOUNT_MENU=Lp($R),cJ.GET_NOTIFICATIONS_MENU=Lp(BJT),cJ.GET_NOTIFICATIONS_INBOX=Lp(H_),cJ.GET_UNSEEN_NOTIFICATION_COUNT=Lp(gg),cJ.GET_USER_MENTION_SUGGESTIONS=Lp(Qs),cJ.LOAD_GUIDE=Lp(Eim),cJ.SUBMIT_FEEDBACK=Lp(f6),cJ),ik={},
vyO=(ik.CONTINUATION_REQUEST_TYPE_BROWSE=Lp(he),ik.CONTINUATION_REQUEST_TYPE_SEARCH=Lp(iX),ik.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Lp(Zq),ik.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Lp(R9),ik.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Lp(M1),ik.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Lp(n6),ik.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Lp(BB),ik.CONTINUATION_REQUEST_TYPE_GET_PANEL=Lp(rg),ik),y5T={player:x3(vB),watchNext:Lp(wm)},Ch1={player:x3(vB),reelItemWatch:Lp(R4),reelWatchSequence:Lp(Ed)},
w9d={watchEndpoint:x3(PB)},ZX8={commandEndpointMap:YXO,signalEndpointMap:aKt,continuationEndpointMap:vyO,watchEndpointMap:y5T,reelWatchEndpointMap:Ch1,streamingEndpointMap:w9d};var Phd,zGm,mV2,Qh9={disableAllTransitions:(zGm=(Phd=window).matchMedia)==null?void 0:(mV2=zGm.call(Phd,"(prefers-reduced-motion: reduce)"))==null?void 0:mV2.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var dV2=new _.Dr("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.hG9=new _.Dr("VIEW_TRANSITION_MANAGER_TOKEN");var shm=function(E){this.config=E;this.transitionTasksMap=new Map;E=_.p(E.transitionConfigs);for(var B=E.next();!B.done;B=E.next())B=_.p(B.value).next().value,this.transitionTasksMap.set(B,[])};
shm[F1]=[dV2];var JqG={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};var Xtd=["videoPrimaryInfoRenderer","title"],rqG=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var u5T;u5T=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.Lqg=_.rp(function(E){E=_.XS(E,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var B=E.data,I=E.playlistData,T=E.expanded,e=E.onExpandClick,c=E.isReadyToResume,Y=function(){var P;return!((P=I())==null||!P.contents)},v=function(){var P=I();
return P&&P.totalVideos&&P.currentIndex!==void 0?P.currentIndex+1+" / "+P.totalVideos:""};
E=_.TI(function(){_.pI(_.Q().resolve(_.W3))});
var y=_.TI(function(){Y()&&e&&e()}),Z={};
return _.w("ytd-miniplayer-info-bar",{class:_.RQ("ytdMiniplayerInfoBarHost",(Z.ytdMiniplayerInfoBarHasPlaylistData=Y,Z)),"on:click":y},_.w("div",{class:"ytdMiniplayerInfoBarContent"},_.w("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":E},_.w(_.aS,{text:function(){var P=B();var z=I();if(z==null?0:z.contents){var m;P=(m=_.lGc(z))==null?void 0:m.title}else P=P==null?void 0:P.miniplayerTitle;return o5c(P)},
noEndpoints:!0,ellipsisTruncate:!0})),_.w("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.w("h1",null,_.w(_.aS,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var P=B();var z=I();P=c()?{simpleText:_.yu("CONTINUE_WATCHING",void 0,"Continue watching")}:(z==null?0:z.contents)?z.titleText:P==null?void 0:P.miniplayerSubtitle;return o5c(P)},
noEndpoints:!0,ellipsisTruncate:!0})),_.w(_.wU,{cond:function(){return!!v()&&!c()},
then:function(){return _.w("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.w("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.w("span",null,v))}}),_.w(_.wU,{cond:c,
then:function(){return _.w(xLV,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:u5T})}}))),_.w(_.wU,{cond:Y,
then:function(){return _.w("div",{class:"ytdMiniplayerInfoBarExpand"},_.w(F3,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(P){e&&(e(),P.stopPropagation())}}},
iconName:function(){return T()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"de");var xVH;xVH=_.rp(function(E){return _.w("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.w(F3,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:E.onTap}},
iconName:"yt-icons:close"}))},"ee");
_.G21=_.rp(function(E){E=_.XS(E,{playabilityStatus:void 0,isDisabled:!1});var B=E.size,I=E.playabilityStatus,T=E.isDisabled,e=_.oH();E=_.p(_.lQ(void 0,void 0,"bJr0Se"));var c=E.next().value,Y=E.next().value;E=_.hk(_.a0);var v=!1,y=function(){return B().height<=0};
_.m$(function(){var m=B(),u=y(),x=c();x&&!u&&x.setInternalSize(m.width,m.height)});
_.hA(function(){var m,u,x;return _.a(function(M){if(M.nextAddress==1){m=_.Q().resolve(_.W3);u=m.getPlayerElement();if(!m.isMiniplayerActive()||!u||!e.value)return M.return();u.appendTo(e.value);return _.C(M,u.getPlayerPromise(),2)}x=M.yieldResult;x.setSizeStyle(!1,!0);Y(x);_.ER(M)})});
_.dt(function(){Z()});
_.m$(function(){var m=c();if(m)if(T()){var u=m.getPlayerState();(v=u===-1||u===1||u===3)&&m.pauseVideo()}else Z()});
var Z=function(){if(v){v=!1;var m;(m=c())==null||m.playVideo()}},P=_.TI(function(){_.pI(_.Q().resolve(_.W3))}),z={};
return _.w("ytd-miniplayer-player-container",{class:_.RQ("ytdMiniplayerPlayerContainerHost",(z.ytdMiniplayerPlayerContainerHidden=y,z.ytdMiniplayerPlayerContainerHostShortsPip=E,z)),style:_.c$({width:function(){return B().width+"px"},
height:function(){return B().height+"px"}})},_.w("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:e}),_.w(_.wU,{cond:function(){return!!I()&&!_.oA4(I())},
then:function(){return _.w(dOh,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var m;return((m=I())==null?void 0:m.errorScreen)||null},
status:function(){var m;return((m=I())==null?void 0:m.status)||null}})}}),_.w(_.wU,{cond:T,
then:function(){return _.w("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":P},_.w(xVH,{onTap:function(){_.Q().resolve(_.W3).close()}}))}}))},"fe");_.OXI=_.rp(function(E){var B=E.toastData;var I=_.oH();E=_.p(_.l0(function(){return!!B()}));
var T=E.next().value,e=E.next().value;E=_.p(_.lQ(!1,void 0,"xkrBze"));var c=E.next().value,Y=E.next().value,v=function(){var P;return _.U3((P=B())==null?void 0:P.data.title)};
_.uW(function(){_.r4.requestAvailability();B()&&e(!1)});
var y,Z;_.m$(function(){T()&&(_.$O(I.value,"iron-announce",{text:B().label+" "+v()}),y&&_.Ll.cancelJob(y),y=_.Ll.addLowPriorityJob(function(){Y(!0)},2500))});
_.m$(function(){c()&&(Z&&_.Ll.cancelJob(Z),Z=_.Ll.addLowPriorityJob(function(){e(!1);Y(!1)},300))});
E={};return _.w("ytd-miniplayer-toast",{el:I,class:_.RQ("ytdMiniplayerToastHost",(E.ytdMiniplayerToastOpening=function(){return T()},E.ytdMiniplayerToastClosing=function(){return c()},E))},_.w(_.wU,{cond:function(){var P;
return(P=B())==null?void 0:P.data},
then:function(P){return _.w(AYD,{className:"ytdMiniplayerToastThumbnail",data:P,width:78})}}),_.w("div",{class:"ytdMiniplayerToastInfo"},_.w("div",{class:"ytdMiniplayerToastLabel"},function(){var P;
return(P=B())==null?void 0:P.label}),_.w("div",{class:"ytdMiniplayerToastTitle"},v)))},"ge");var DPi;var Bjd=new Set,ES6=null;var I2G=null;var Ma9=_.rp(function(E){var B=E.progressState;var I=E.multiMarkersPlayerBarRenderer;var T=E.progressBarWidth;var e=function(){return cfB(I())},c=function(){return YYJ(B())},Y=function(){return T()*(B().playedTime/B().videoDuration)};
return _.w("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.w(_.Zt,{each:e},function(v,y){return _.w(ny9,{modifiedProps:c,chapters:e,index:y,playedProgressWidth:Y,backgroundGradientPosition:function(){var Z=c(),P=e(),z=y(),m=Y();return(Z.playedTime-SD(_.h(P[z],g6)))/Z.playedTime*m}})}))},"he"),ny9=_.rp(function(E){var B=E.modifiedProps;
var I=E.chapters;var T=E.index;var e=E.playedProgressWidth;var c=E.backgroundGradientPosition;E={};E=_.RQ("ytChapteredProgressBarChapteredPlayerBarChapter",(E.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return Y().isScrubbing},E.ytChapteredProgressBarHoveredMacroMarker=function(){return Y().scrubberHovering},E.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return Y().videoPosition==="seen"},E));
var Y=function(){return a2i(B(),I(),T())},v=function(){var y=B();
var Z=I(),P=T();if(a2i(y,Z,P).videoPosition!=="active")y=0;else{var z=SD(_.h(Z[P],g6));y=(y.playedTime-z)/((SD(_.h(Z[P+1],g6))||y.videoDuration)-z)}return y};
return _.w("div",{class:E,style:_.c$({width:function(){var y=B(),Z=I(),P=T(),z=_.h(Z[P],g6);Z=_.h(Z[P+1],g6);return(Z?SD(Z)-SD(z):y.videoDuration-SD(z))/y.videoDuration*100+"%"},
"background-color":function(){a:{var y=Y();switch(y.videoPosition){case "pending":y=y.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":y=y.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:y=""}}return y},
"background-size":function(){return(vS4(Y())?e():"")+"px"},
"background-position-x":function(){return(vS4(Y())?c():"")+"px"}})},_.w("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var y=B(),Z=I(),P=T();if(a2i(y,Z,P).videoPosition==="seen")var z=0;else z=SD(_.h(Z[P],g6)),Z=SD(_.h(Z[P+1],g6))||y.videoDuration,y=y.videoDuration*y.percentLoaded,z=Z<=y?1:z>=y?0:(y-z)/(Z-z);return"width: "+z*100+"%"}}),_.w("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.c$({width:function(){return v()*100+"%"},
"background-size":function(){return(vS4(Y(),v())?e():"")+"px"},
"background-position-x":function(){return(vS4(Y(),v())?c():"")+"px"}})}))},"ie");var HXI=function(E,B){B=B===void 0?w$U:B;var I,T=[],e,c=!1;return function(){var Y=_.aG.apply(0,arguments);if(c&&I===this&&B(Y,T))return e;e=E.apply(this,Y);c=!0;I=this;T=Y;return e}}(function(E){var B=E.heatMarkers,I=E.minHeightDp===void 0?0:E.minHeightDp,T=E.maxHeightDp===void 0?60:E.maxHeightDp;
var e=e===void 0?!1:e;var c=1E3/B.length;E=[];E.push({x:0,y:100});for(var Y=0;Y<B.length;Y++){var v=void 0,y=((v=_.h(B[Y],j5t))==null?void 0:v.heatMarkerIntensityScoreNormalized)||0;v=(Y+.5)*c;y=100-_.H3(y*100,I/321*100,T/321*100);Y!==0||e||E.push({x:0,y:y});E.push({x:v,y:y});Y===B.length-1&&E.push({x:1E3,y:y})}E.push({x:1E3,y:100});B="";for(I=0;I<E.length;I++)e=E[I],I===0?e="M "+e.x.toFixed(1)+","+e.y.toFixed(1):(T=r_6(E[I-1],E[I-2],e),c=r_6(e,E[I-1],E[I+1],!0),e=" C "+(T.x.toFixed(1)+","+T.y.toFixed(1)+
" "+c.x.toFixed(1)+","+c.y.toFixed(1)+" "+e.x.toFixed(1)+","+e.y.toFixed(1))),B+=e;return B});var NFt=_.rp(function(E){var B=E.progressBarProps;var I=E.config;var T={};E=_.RQ("ytHeatSeekerHost",(T.ytHeatSeekerHighContrast=E.highContrast,T));var e=function(){return tz4(I().chapterData)};
return _.w("yt-progress-bar-heatseeker",{class:E,style:function(){var c;return"height: 320px; display: "+(B().isDragging&&((c=e())==null?0:c.heatMarkers)?"block":"none")}},_.w(_.wU,{cond:e,
then:function(c){return _.w(_.wU,{cond:function(){return c().heatMarkers},
then:function(){return _.w("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.w("path",{d:function(){return HXI(c())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"je");var gy1=_.rp(function(E){var B=E.progressBarProps;var I=E.config;E={};E=_.RQ("ytProgressBarLineProgressBarLine",(E.ytProgressBarLineProgressBarLineRounded=function(){return I().rounded},E.ytProgressBarLineProgressBarLineBottomInset=function(){return I().position===2},E));
return _.w("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.w("div",{class:E},_.w("div",{class:"ytProgressBarLineProgressBarBackground"}),_.w("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+B().percentLoaded*100+"%"}}),_.w("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var T=B();return"width: "+(T.videoDuration?_.H3(T.hoveredTime/T.videoDuration,0,1):0)*100+"%"}}),_.w("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+jl4(B())*100+"%"}})))},"ke");
gy1.idomCompat=!0;var SX9=_.rp(function(E){var B=E.progressBarProps;var I=E.playheadData;var T=E.interpolateDotPosition;var e=E.hidePlayhead;E={};var c=_.RQ("ytProgressBarPlayheadProgressBarPlayheadDot",(E.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return B().isDragging},E.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!B().isDragging&&e()},E));
return _.w("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.c$({"margin-left":function(){return UPG(B())*100+"%"},
transform:function(){return"translateX(-"+(T()?UPG(B())*12:6)+"px)"}})},_.w(_.wU,{cond:function(){var Y;
return(Y=_.Wl(I)())==null?void 0:Y.playheadImage},
then:function(Y){var v={};return _.w("div",{class:_.RQ("ytProgressBarPlayheadProgressBarPlayheadCustom",(v.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return B().isDragging},v.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!B().isDragging&&e()},v)),
style:_.c$({"transform-origin":function(){return(T()?UPG(B())*20:10)+"px center"}})},_.w(_.Ja,{data:Y,
alt:"","aria-hidden":"true"}))},
else:function(){return _.w("div",{class:c,style:_.c$({"transform-origin":function(){return(T()?UPG(B())*12:6)+"px center"}})})}}))},"le");
SX9.idomCompat=!0;var YE=function(E,B,I,T,e,c){this.getProgressBarRect=E;this.updateProgressBarRect=B;this.getFilmstripYPosition=I;this.setFineScrubbingDraggedTime=T;this.updateFilmStripDraggedYDistance=e;this.resetFilmStripYOffset=c;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.qH(this.onThrottledSeek,100,this)},J57=function(E,B,I){return function(T){E.handleClick(T,B(),I())}},r5L=function(E,B){return function(I){WqL(E,
I,X9t(I),B())}},bXT=function(E,B){return function(I){WqL(E,I,{x:I.clientX,
y:I.clientY},B())}},A5L=function(E,B,I){return function(T){var e=B(),c=I();
oy8(E,T,X9t(T),e,c,!0);if(c.onTouchMove)c.onTouchMove(e)}},UVg=function(E,B,I){return function(T){jhO(E,T,B(),I())}},k29=function(E,B){return function(){E.handleMouseLeave(B())}},tag=function(E,B,I){return function(){var T=B(),e=I();
ac(E,T,e);if(e.onTouchEnd)e.onTouchEnd(T)}},fKI=function(E,B,I){return function(){var T=B(),e=I();
ac(E,T,e);if(e.onTouchEnd)e.onTouchEnd(T)}},VaL=function(E,B,I){return function(){ac(E,B(),I())}},qX2=function(E,B,I){return function(T){!I().disableScrubbing&&E.startPosition&&jhO(E,T,B(),I())}},FqO=function(E,B,I){return function(){if(!I().disableScrubbing)if(E.startPosition){var T=B(),e=I();
ac(E,B(),I());if(e.onTouchEnd)e.onTouchEnd(T)}else B().setState({isDragging:!1})}},X9t=function(E){E=E.touches[0];
return{x:E.clientX,y:E.clientY}},jhO=function(E,B,I,T){if(B.buttons!==1){if(B.movementX||B.movementY)B.preventDefault(),B.stopPropagation(),E=DVI(E,I,B.clientX),I.setState({isHovering:!0,
hoveredTime:E*I.videoDuration})}else Kqs(I),oy8(E,B,{x:B.clientX,y:B.clientY},I,T,!1)};
YE.prototype.handleMouseLeave=function(E){Kqs(E)};
var Kqs=function(E){E.isHovering&&E.setState({isHovering:!1,hoveredTime:0})},WqL=function(E,B,I,T){E.startPosition||(E.startPosition=I,E.updateProgressBarRect(),E.controlsWereVisibleBeforeDragging=T.controlsVisible,B.stopPropagation(),_.d("medium_progress_bar_modification")||B.preventDefault())},oy8=function(E,B,I,T,e,c){if(E.startPosition)if(c&&e.isInlinePlayback&&E.startPosition&&!E.hasDraggedTheMinimumDistance&&Math.abs(I.y-E.startPosition.y)>Math.abs(I.x-E.startPosition.x))ac(E,T,e);
else if(B.preventDefault(),B.stopPropagation(),T.videoDuration&&(E.startPosition&&!E.hasDraggedTheMinimumDistance&&(E.hasDraggedTheMinimumDistance=Math.abs(I.x-E.startPosition.x)>=1),e.enableFineScrubbing&&(E.startPosition&&(E.isDraggedForFineScrubbing=-(I.y-E.startPosition.y)>=60),!E.startPosition||I.y>=E.startPosition.y||(T.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:yf4(T.draggedTime,T,e.chapterData)}),E.setFineScrubbingDraggedTime(T.draggedTime),E.updateFilmStripDraggedYDistance(E.startPosition.y,
I.y,T))),E.hasDraggedTheMinimumDistance)){B=DVI(E,T,I.x);if(E.isDraggedForFineScrubbing){var Y;(Y=T.playerApi)==null||Y.pauseVideo();T.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:T.draggedTime,filmStripXDistance:yf4(B*T.videoDuration,T,e.chapterData)})}e.enableFineScrubbing&&(!e.enableFineScrubbing||E.getFilmstripYPosition(T)<68)||T.setState({draggedTime:B*T.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:E.controlsWereVisibleBeforeDragging});var v;(v=
e.cancelAutohideControlsFn)==null||v.call(e)}},ac=function(E,B,I){var T=I.enableFineScrubbing&&B.fineScrubbingActiveState!=="off";
if(B.isDragging||T){T={isDragging:!1,playedTime:B.draggedTime,controlsVisible:E.controlsWereVisibleBeforeDragging};I.enableFineScrubbing&&B.fineScrubbingActiveState!=="on"&&(E.resetFilmStripYOffset(),T.fineScrubbingActiveState="off");var e=e===void 0?I2G:e;var c=_.nC(0);c&&e&&_.jY(c,e,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(B.playedTime*1E3),endMediaTimeMs:Math.round(B.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});B.setState(T);
E.seekThrottle.fire(B.draggedTime,B,7);_.d("mweb_new_progress_bar_play_on_seek")&&E.resumeVideo(B);I.unmuteOnSeek&&(I=B.playerApi,B.volumeMuted&&(I==null||I.unMute()))}else B.setState({controlsVisible:!B.controlsVisible}),(c=I.triggerAutohideControlsAfterDelayFn)==null||c.call(I);E.startPosition=null;E.hasDraggedTheMinimumDistance=!1;E.isDraggedForFineScrubbing=!1;E.controlsWereVisibleBeforeDragging=!1};
YE.prototype.handleClick=function(E,B,I){this.updateProgressBarRect();E.stopPropagation();E=DVI(this,B,E.clientX)*B.videoDuration;B.setState({playedTime:E});if(B.playerState!==2){var T;(T=I.triggerAutohideControlsAfterDelayFn)==null||T.call(I)}this.seekThrottle.fire(E,B,7)};
var DVI=function(E,B,I){E=E.getProgressBarRect(B);return _.H3(0,(I-E.left)/E.width,1)};
YE.prototype.resumeVideo=function(E){if(E.draggedTime<E.videoDuration){var B;(B=E.playerApi)==null||B.playVideo()}};
YE.prototype.onThrottledSeek=function(E,B,I){if(B=B.playerApi){var T;if((T=B.getVideoData())==null?0:T.isLive)T=this.getProgressState(B),E+=(T==null?void 0:T.seekableStart)||0;B.seekTo(E,void 0,void 0,void 0,I)}};
YE.prototype.getProgressState=function(E){var B=E==null?void 0:E.getPresentingPlayerType();return E==null?void 0:E.getProgressState(B)};var BfI,EMO,$7I,Tfg,RGt,eAm,lg7,c1g,irt;BfI=_.rp(function(E){var B=E.progressBarProps;var I=E.config;var T=E.progressBarWidthPx;var e=E.chapterData;var c=zsi(B,function(){return I().isShortsPage}),Y=function(){return!B().isHovering&&!I().isShortsPage};
E={};var v=_.RQ("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(E.ytPlayerStoryboardHostMwebShorts=function(){return I().isShortsPage&&!1},E));
return _.w("yt-player-storyboard",null,_.w(_.wU,{cond:function(){return B().isDragging||B().isHovering},
then:function(){return _.w(_.wU,{cond:c,then:function(y){return _.w(_.wU,{cond:Y,then:function(){return _.w("div",{class:v,"aria-hidden":"true"},_.w(RGt,{props:B,config:I,isBigboard:!0,chapterData:e}))},
else:function(){return _.w(EMO,{props:B,frame:y,config:I,progressBarWidthPx:T,chapterData:e})}})}})}}))},"me");
_.Ig1=_.rp(function(E){var B=E.progressBarProps;var I=zsi(B,E.isShortsPage);return _.w("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.w(_.wU,{cond:function(){return B().isDragging||B().isHovering},
then:function(){return _.w(_.wU,{cond:I,then:function(T){return _.w($7I,{frame:T,props:B,isBigboard:!0})}})}}))},"ne");
EMO=_.rp(function(E){var B=E.props;var I=E.frame;var T=E.config;var e=E.progressBarWidthPx;E=E.chapterData;var c={};c=_.RQ("ytPlayerStoryboardHost",(c.ytPlayerStoryboardHostMwebShorts=function(){return T().isShortsPage&&!1},c.ytPlayerStoryboardHostInlinePlayer=function(){return T().isInlinePlayer},c.ytPlayerStoryboardHostFadeIn=function(){return T().useFadeInAnimation},c));
return _.w("div",{class:c,"aria-hidden":"true",style:function(){var Y=B(),v=CsB(I()),y=e();Y=wSd(Y)/Y.videoDuration;var Z=y*Y,P=v/2+6;v=y-(v/2+6);return"left: "+(Z<=P?P/y*100:Z>=v?v/y*100:Y*100)+"%"}},_.w(_.wU,{cond:function(){var Y=B();
return!(T().isShortsPage&&Y.videoDuration<15)},
then:function(){return _.w($7I,{frame:I,props:B,isBigboard:!1})}}),_.w(RGt,{props:B,
config:T,isBigboard:!1,chapterData:E}))},"oe");
$7I=_.rp(function(E){var B=E.frame;var I=E.props;var T=E.isBigboard;var e=function(){var v,y;return(y=(v=I().playerApi)==null?void 0:v.getVideoContentRect())!=null?y:{width:0,height:0}},c=function(){return CsB(B())},Y=function(){var v=B();
return v?v.height/v.rows:0};
E={};E=_.RQ((E.ytPlayerStoryboardBigboardImageWrapper=T,E.ytPlayerStoryboardStoryboardImageWrapper=function(){return!T()},E));
return _.w("div",{class:E,style:function(){return"width: "+(T()?e().width:c())+"px; height: "+(T()?e().height:Y())+"px;"}},_.w(Tfg,{frame:B,
storyboardWidth:c,storyboardHeight:Y,storyboardScale:function(){return(T()?e().width:c())/c()}}))},"pe");
Tfg=_.rp(function(E){var B=E.frame;var I=E.storyboardWidth;var T=E.storyboardHeight;var e=E.storyboardScale;var c=function(){var Y=B().row,v=B().column,y=I(),Z=T(),P=e();return{left:-v*y*P,top:-Y*Z*P}};
return _.w("img",{src:function(){return B().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+c().left+"px; top: "+c().top+"px; width: "+B().width*e()+"px; height: "+B().height*e()+"px;"}})},"qe");
RGt=_.rp(function(E){var B=E.props;var I=E.config;var T=E.isBigboard;var e=E.chapterData;E={};E=_.RQ("ytPlayerStoryboardMetadata",(E.ytPlayerStoryboardMetadataBigboard=T,E));return _.w("div",{class:E},_.w(_.wU,{cond:T,then:function(){return _.w(_.VS,null,_.w(eAm,{props:B,config:I}),_.w(_.wU,{cond:function(){a:{var c=B();var Y=I(),v=e(),y;if((Y==null?0:Y.activeChapter)&&((y=_.h(Y==null?void 0:Y.activeChapter,g6))==null?0:y.title))c=!0;else{Y=_.p(fI4(v));for(Y=Y.next();!Y.done;Y=Y.next()){c=(Y=_.h(Y.value,
kst))&&ZYB(c,Y);break a}c=!1}}return c},
then:function(){return _.w(lg7,{props:B,config:I,isBigboard:!0,chapterData:e})}}))},
else:function(){return _.w(_.VS,null,_.w(lg7,{props:B,config:I,isBigboard:!0,chapterData:e}),_.w(eAm,{props:B,config:I}))}}))},"re");
eAm=_.rp(function(E){var B=E.props;var I=E.config;E={};E=_.RQ("ytPlayerStoryboardTimestamp",(E.ytPlayerStoryboardTimestampShorts=function(){return I().isShortsPage},E.ytPlayerStoryboardTimestampIsHovering=function(){return B().isHovering||I().isShortsPage&&!0},E));
return _.w("div",{class:E},_.w(_.VS,null,function(){return _.Pst(wSd(B()))}))},"se");
lg7=_.rp(function(E){var B=E.props;var I=E.config;var T=E.isBigboard;var e=E.chapterData;E={};T=_.RQ("ytPlayerStoryboardTitle",(E.ytPlayerStoryboardTitleBigboard=T,E));return _.w("div",{class:T},_.w(_.wU,{cond:function(){return!I().isShortsPage},
then:function(){return _.w(c1g,{props:B,activeChapter:function(){return I().activeChapter},
chapterData:e})}}))},"te");
c1g=_.rp(function(E){var B=E.props;var I=E.activeChapter;var T=E.chapterData;return _.w(_.VS,null,_.w(_.Zt,{each:function(){return fI4(T())},
keyBy:"INDEX"},function(e){return _.w(_.VS,null,_.w(_.wU,{cond:function(){return _.h(e(),kst)&&ZYB(B(),_.h(e(),kst))},
then:function(){return _.w(irt,{timedMarker:function(){return _.h(e(),kst)}})}}))}),_.w(_.wU,{cond:function(){var e;
return I()&&((e=_.h(I(),g6))==null?void 0:e.title)},
then:function(e){return _.w(_.aS,{text:e,noPreWrap:!0})}}))},"ue");
irt=_.rp(function(E){var B=E.timedMarker;return _.w(_.VS,null,_.w("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.w(_.i0,{icon:function(){return B().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.w(_.aS,{text:function(){return B().label},
noPreWrap:!0}))},"ve");_.p1I=_.rp(function(E){var B=E.progressBarProps;var I=E.playheadData;var T=E.config;E=_.oH();var e=_.oH(),c=_.oH(),Y=_.p(_.lQ({width:0,left:0},void 0,"NcXsUb")),v=Y.next().value,y=Y.next().value,Z=function(){c.value&&y(c.value.getBoundingClientRect())},P=function(){v().width<=0&&Z();
return v()};
tK("resize",Z);var z=new YE(P,function(){},function(){return 0},function(){},function(){},function(){}),m=function(){return B()};
Y=_.p(_.lQ(!1,void 0,"ZsF6Xc"));var u=Y.next().value,x=Y.next().value;Y=_.TI(function(){x(!0);T().position===2?setTimeout(function(){Z()},100):Z()});
var M=_.TI(function(){x(!1);k29(z,m)()}),N=_.TI(function(rJ){T().doSeekOnClick&&J57(z,m,T)(rJ);
return!1}),W=_.TI(function(rJ){r5L(z,m)(rJ);
return!1}),U=_.TI(function(rJ){bXT(z,m)(rJ);
return!1}),q=_.TI(function(rJ){A5L(z,m,T)(rJ);
return!1}),f=_.TI(function(rJ){UVg(z,m,T)(rJ);
return!1}),ed=_.TI(function(){tag(z,m,T)();
return!1}),K=_.TI(function(){fKI(z,m,T)();
return!1}),p4=_.TI(function(){VaL(z,m,T)();
return!1});
tK("mousemove",qX2(z,m,T));tK("mouseup",FqO(z,m,T));_.uW(function(){TjB(e.value);x(!1);Z();FqO(z,m,T)()});
var sc={};sc=_.RQ("ytPlayerProgressBarHost",function(){return T().className},(sc.ytPlayerProgressBarHostReadOnly=function(){return T().disableScrubbing},sc.ytPlayerProgressBarHostHidden=function(){return T().hideProgressBar&&!u()},sc.ytPlayerProgressBarHostLowerPlayer=function(){return T().position===0},sc.ytPlayerProgressBarHostBottomEdge=function(){return T().position===1},sc.ytPlayerProgressBarHostBottomInset=function(){return T().position===2},sc.ytPlayerProgressBarHostCustom=function(){return T().position===
3},sc));
var Gf={},xi=_.RQ("ytPlayerProgressBarBackground",(Gf.ytPlayerProgressBarBackgroundHide=function(){return T().position===2&&!u()&&!B().isDragging},Gf));
Gf={};Gf=_.RQ("ytPlayerProgressBarDragContainer",(Gf.ytPlayerProgressBarDragContainerBottomEdge=function(){return T().position===1},Gf));
var ki={};ki=_.RQ("ytPlayerProgressBarProgressBar",(ki.ytPlayerProgressBarProgressBarInset=function(){return T().position===2},ki.ytPlayerProgressBarProgressBarInsetMinimized=function(){return T().position===2&&!u()&&!B().isDragging},ki));
var WG=function(){return Math.floor(jl4(B())*100)};
return _.w("yt-progress-bar",{el:E,class:sc},_.w(_.wU,{cond:function(){return T().position===2},
then:function(){return _.w("div",{class:xi})}}),_.w("div",{el:e,
"on:click":N,"on:touchstart":W,"on:touchmove":q,"on:mouseenter":Y,"on:mousedown":U,"on:mouseleave":M,"on:mousemove":f,"on:mouseup":K,"on:touchend":ed,"on:touchcancel":p4,class:Gf,role:"slider","aria-valuenow":WG,"aria-valuetext":function(){return WG()+"%"},
tabindex:0,"aria-label":_.yu("SEEK_SLIDER")},_.w("div",{el:c,class:ki},_.w(NFt,{progressBarProps:B,config:T,highContrast:function(){return!!T().isInlinePlayback}}),_.w(_.wU,{cond:function(){return T().chapterData&&VzQ(T().chapterData)},
then:function(){return _.w(Ma9,{progressState:B,multiMarkersPlayerBarRenderer:function(){return T().chapterData},
progressBarWidth:function(){return v().width}})},
else:function(){return _.w(gy1,{progressBarProps:B,config:T})}}),_.w(SX9,{progressBarProps:B,
playheadData:I,interpolateDotPosition:function(){return T().position!==2},
hidePlayhead:function(){return T().playheadDotBehavior===1&&!u()}}))),_.w(BfI,{progressBarProps:B,
config:function(){return{activeChapter:pSQ(B(),T().chapterData),getProgressBarWidthPx:function(){return P().width},
isShortsPage:!!T().isShortsPage,isInlinePlayer:!!T().isInlinePlayback,useFadeInAnimation:!!T().isInlinePlayback}},
progressBarWidthPx:function(){return v().width},
chapterData:function(){return T().chapterData}}))},"we");
_.p1I.idomCompat=!0;Object.assign({},_.qtf(),{setState:function(){},
domMeasurements:{},appApi:_.Aqi(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var YfH;
_.agI=_.rp(function(){var E,B=(E=_.Jb(m2G().playerApi))!=null?E:void 0;E=_.p(_.lQ(!1,void 0,"HLFBmb"));var I=E.next().value,T=E.next().value;E=_.p(_.lQ(!1,void 0,"lHH9bc"));var e=E.next().value,c=E.next().value;E=_.p(_.lQ(!1,void 0,"zsY7yd"));var Y=E.next().value,v=E.next().value;E=_.p(_.lQ(!1,void 0,"KeHQgc"));var y=E.next().value,Z=E.next().value;E=_.p(_.lQ(0,void 0,"gLLCj"));var P=E.next().value,z=E.next().value;E=_.p(_.lQ(0,void 0,"s3RYkf"));var m=E.next().value,u=E.next().value;E=_.p(_.lQ(!1,void 0,
"Dn608e"));var x=E.next().value,M=E.next().value;E=_.p(_.lQ(0,void 0,"AnkH1b"));var N=E.next().value,W=E.next().value;E=_.p(_.lQ(0,void 0,"QYNL0b"));var U=E.next().value,q=E.next().value;E=_.p(_.lQ("",void 0,"Yzw45d"));var f=E.next().value,ed=E.next().value;E=_.p(_.lQ(-1,void 0,"iiVI0c"));var K=E.next().value,p4=E.next().value,sc=_.aJ(function(){var Gf={controlsVisible:I(),isOverlayHidden:e(),shouldWaitToHideControls:Y(),isDragging:y(),isHovering:x(),videoDuration:N(),playedTime:U(),videoId:f(),draggedTime:m(),
hoveredTime:P(),playerState:K()};return Object.assign({},_.qtf(),Gf,{domMeasurements:{},setState:function(xi){xi.controlsVisible!==void 0&&T(xi.controlsVisible);xi.isOverlayHidden!==void 0&&c(xi.isOverlayHidden);xi.shouldWaitToHideControls!==void 0&&v(xi.shouldWaitToHideControls);xi.isDragging!==void 0&&Z(xi.isDragging);xi.isHovering!==void 0&&M(xi.isHovering);xi.draggedTime!==void 0&&u(xi.draggedTime);xi.hoveredTime!==void 0&&z(xi.hoveredTime);xi.videoDuration!==void 0&&W(xi.videoDuration);xi.playedTime!==
void 0&&q(xi.playedTime);xi.videoId!==void 0&&ed(xi.videoId);xi.playerState!==void 0&&p4(xi.playerState)},
appApi:_.Aqi(),playerApi:B})},void 0,"ZW7y9");
_.hA(function(){B==null||B.addEventListener("onVideoProgress",RrD(sc));B==null||B.addEventListener("onVideoDataChange",KIi(sc));B==null||B.addEventListener("onStateChange",FIi(sc))});
_.dt(function(){if(B==null?0:B.isReady())B==null||B.removeEventListener("onVideoProgress",RrD(sc)),B==null||B.removeEventListener("onVideoDataChange",KIi(sc)),B==null||B.removeEventListener("onStateChange",FIi(sc))});
return _.w("desktop-shorts-player-controls",null,_.w(YfH,{playerControlsProps:sc}))},"xe");
YfH=_.rp(function(E){var B=E.playerControlsProps;return _.w("div",{class:"desktopShortsPlayerControlsWizHost"},_.w(_.p1I,{progressBarProps:B,config:function(){return{isShortsPage:!0,hideProgressBar:B().videoDuration<30&&B().playerState!==2&&!B().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"ye");_.qW(_.uJJ);_.vM2=_.rp(function(E){var B=E.data;return _.w("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.w(_.Y3,{command:function(){return B().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.w(_.wU,{cond:function(){return B().iconName},
then:function(I){return _.w(_.i0,{icon:I})}}),_.w("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return B().text}),_.w(_.wU,{cond:function(){return B().showEndChevron},
then:function(){return _.w(_.i0,{icon:"CHEVRON_RIGHT"})}})))},"ze");var y18=_.rp(function(E){var B=E.data;var I=E.overlayDensity;E={};return _.w("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.w(_.hM,{data:function(){return B().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(T){var e=T.data;
return _.w(_.CG,{data:function(){return(I==null?void 0:I())===1?Object.assign({},e(),{avatar:{avatarViewModel:Object.assign({},_.h(e().avatar,_.jf),{avatarImageSize:"AVATAR_SIZE_48"})}}):e()}})}}),_.w(_.hM,{data:function(){return B().avatarStackViewModel}},{avatarStackViewModel:function(T){return _.w(_.wi,{data:T.data})}}),_.w(_.aS,{className:_.RQ("ytReelChannelBarViewModelChannelName",(E.ytReelChannelBarViewModelChannelNameLarge=function(){return(I==null?void 0:I())===1},E)),
text:function(){return B().channelName},
linkInheritColor:!0,userInput:!0}),_.w("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.w(_.hM,{data:function(){return B().subscribeButtonViewModel}},{subscribeButtonViewModel:function(T){var e=T.data;
return _.w(y7z,{data:function(){return(I==null?void 0:I())===1?Object.assign({},e(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},e().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):e()},
isOverlay:!1})},
buttonViewModel:_.ne})),_.w("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.w(_.hM,{data:function(){var T,e;return(e=_.h((T=B())==null?void 0:T.sponsorButtonViewModel,Pou))==null?void 0:e.sponsorButton}},{buttonViewModel:function(T){return _.w(_.ne,{data:T.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Ae");var CvL=_.rp(function(E){var B={};return _.w("yt-reel-multi-format-link-view-model",{class:_.RQ("ytReelMultiFormatLinkViewModelHost",(B.ytReelMultiFormatLinkViewModelHostTall=!0,B.ytReelMultiFormatLinkViewModelHostLarge=function(){var I;return((I=E.overlayDensity)==null?void 0:I.call(E))===1},B))},_.w(_.Y3,{ariaLabel:function(){return E.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.ha(E.data().command)},
dangerousStopPropagation:!1},_.w("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.w(_.wU,{cond:function(){return E.data().icon},
then:function(I){return _.w(_.Ja,{data:I,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.w(_.aS,{text:function(){return E.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Be");
CvL.idomCompat=!0;var w12=_.rp(function(E){var B=E.data;var I=E.overlayDensity;var T=_.oH();E=_.p(_.lQ(!1,void 0,"xDqzhe"));var e=E.next().value,c=E.next().value;E=_.p(_.lQ(!1,void 0,"LI9CFd"));var Y=E.next().value,v=E.next().value,y=function(){return B().isMultiLineSa},Z=_.iO(o_F,function(){var q,f;
return(f=(q=B().toggleableContent)==null?void 0:q.entityKey)!=null?f:""}),P=function(){var q,f,ed;
return(ed=B().toggleableContent)!=null&&ed.entityKey?(f=(q=Z())==null?void 0:q.value)!=null?f:!1:!1},z=function(){var q,f,ed,K,p4,sc,Gf,xi,ki,WG,rJ;
return B().toggleableContent?P()?(q=B().toggleableContent)==null?void 0:q.toggledData:(f=B().toggleableContent)==null?void 0:f.untoggledData:{primaryText:(xi=(ed=B().defaultContent)==null?void 0:ed.primaryText)!=null?xi:B().text,secondaryText:(K=B().defaultContent)==null?void 0:K.secondaryText,onTapCommand:(ki=(p4=B().defaultContent)==null?void 0:p4.onTapCommand)!=null?ki:B().onTapCommand,icon:(WG=(sc=B().defaultContent)==null?void 0:sc.icon)!=null?WG:B().icon,image:(rJ=(Gf=B().defaultContent)==null?
void 0:Gf.image)!=null?rJ:B().image}},m=function(){return y()?B().trailingTapTarget:void 0};
E=function(q,f){return function(){return e()?f:q}};
var u={leadingSection:E("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:E("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:E("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:E("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};E={};E=_.RQ((E.ytShortsSuggestedActionViewModelStaticHost=function(){return!y()},E.ytShortsSuggestedActionViewModelDynamicHost=y,E.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return y()&&Y()},E.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return y()&&!Y()},E));
_.uW(function(){if(y()){var q=0,f;if((f=B().animationParams)==null?0:f.shouldExpand){var ed,K;q=((K=(ed=B().animationParams)==null?void 0:ed.expansionDelaySecs)!=null?K:0)*1E3}var p4,sc=((p4=B().animationParams)==null?0:p4.shouldExpand)?setTimeout(function(){c(!0)},q):void 0,Gf,xi;
q=((Gf=B().animationParams)==null?0:Gf.visibilityDelaySecs)?((xi=B().animationParams)==null?NaN:xi.visibilityDelaySecs)*1E3:0;var ki=setTimeout(function(){v(!0)},q);
_.dt(function(){sc&&clearTimeout(sc);clearTimeout(ki)})}});
var x=function(q){_.xg(q,Object.assign({},{form:{element:T.value}}))},M=_.TI(function(){var q,f=(q=z())==null?void 0:q.onTapCommand;
f&&x(f)}),N=_.TI(function(){var q,f;
if(q=(f=m())==null?void 0:f.onTapCommand)return x(q),!1}),W=_.c$({"vertical-align":"bottom",
"border-radius":function(){var q;return y()?((q=B().defaultContent)==null?0:q.isCircleImage)?"50%":"4px":"0px"},
width:function(){var q,f,ed;return y()&&((q=B().defaultContent)==null?0:q.imageSize)?((ed=(f=B().defaultContent)==null?void 0:f.imageSize)!=null?ed:24)+"px":null},
height:function(){var q,f,ed;return y()&&((q=B().defaultContent)==null?0:q.imageSize)?((ed=(f=B().defaultContent)==null?void 0:f.imageSize)!=null?ed:24)+"px":null}}),U={};
return _.w("yt-shorts-suggested-action-view-model",{class:E,el:T},_.w("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.w("button",{class:_.RQ(function(){return y()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var q;
return(q=B().useFullRoundedBorder)!=null&&q?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!m()&&y()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":y()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var q;
return(q=B().disableFixedHeight)!=null&&q?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(U.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(I==null?void 0:I())===1},U)),
"on:click":M},_.w(_.v$,{model:{color:4}}),_.w("div",{class:_.RQ(function(){return y()?u.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.w(_.wU,{cond:function(){var q;
return(q=z())==null?void 0:q.image},
then:function(q){return _.w(_.Ja,{data:q,alt:"",className:function(){return y()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:W})}}),_.w(_.wU,{cond:function(){var q,f;
return(q=z())==null?void 0:(f=q.icon)==null?void 0:f.iconType},
then:function(q){return _.w(_.i0,{icon:q,active:P,className:function(){return y()?e()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.w("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.w(_.wU,{cond:function(){var q;
return(q=z())==null?void 0:q.primaryText},
then:function(q){return _.w("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.w(_.aS,{text:q}))}}),_.w(_.wU,{cond:function(){var q;
return(q=z())==null?void 0:q.secondaryText},
then:function(q){return _.w("div",{class:u.secondaryText},_.w(_.aS,{text:q}))}}))),_.w(_.wU,{cond:m,
then:function(q){return _.w("div",{class:u.trailingSection,"aria-label":function(){var f;return(f=q().a11yLabel)!=null?f:""},
"on:click":N,role:"button",tabindex:0},_.w(_.v$,{model:{color:4}}),_.w(_.i0,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Ce");var Zr2=_.rp(function(E){var B=E.data;var I=E.overlayDensity;var T=_.oH();E=_.TI(function(Y){if(_.JYf(_.Sf(Y),T.value,["A".toString()]))return!1;(Y=B().truncatedTextOnTapCommand)&&_.xg(Y);return!1});
var e={},c={};return _.w("yt-shorts-video-title-view-model",{el:T,class:_.RQ("ytShortsVideoTitleViewModelHost",(e.ytShortsVideoTitleViewModelHostClickable=function(){return!!B().truncatedTextOnTapCommand},e)),
"on:click":E},_.w("h2",{class:_.RQ("ytShortsVideoTitleViewModelShortsVideoTitle",(c.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(I==null?void 0:I())===1},c))},_.w(_.aS,{text:function(){return B().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"De");_.PvO=_.rp(function(E){var B=E.data;var I=E.overlayDensity;return _.w("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.w(_.hM,{data:function(){return B().metadataItems}},{badgeViewModel:function(T){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(_.oM,{data:T.data}))},
playerDisclosureViewModel:function(T){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(_.vM2,{data:T.data}))},
shortsSuggestedActionViewModel:function(T){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(w12,{data:T.data,overlayDensity:I}))},
reelChannelBarViewModel:function(T){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(y18,{data:T.data,overlayDensity:I}))},
reelMultiFormatLinkViewModel:function(T){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(CvL,{data:T.data,overlayDensity:I}))},
shortsVideoTitleViewModel:function(T){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(Zr2,{data:T.data,overlayDensity:I}))},
reelSoundMetadataViewModel:function(T){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(_.LRI,{data:T.data,overlayDensity:I}))}}))},"Ee");var zAI=_.rp(function(E){var B=_.XS(E,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),I=B.size,T=B.onTap,e=B.disabled,c=B.tooltipText;return _.w("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.w(F3,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:I(),disabled:e(),tooltipText:c(),onTap:T}},
iconName:E.iconType}))},"Fe"),m7g=_.rp(function(E){function B(P){P.stopPropagation();
P.code==="ArrowUp"?(P.preventDefault(),OY6(v.value)):P.code==="ArrowDown"?(P.preventDefault(),nSJ(v.value)):P.code==="KeyM"?x2c():(P.code==="KeyK"||P.code==="Space")&&GcB(y())}
var I=_.XS(E,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});E=I.previousButtonDisabled;var T=I.nextButtonDisabled,e=I.data,c=I.playabilityStatus,Y=I.previewThumbnail,v=_.oH(),y=_.hk(_.spd),Z;_.hA(function(){(Z=_.Zs(v.value))&&Z.addEventListener("keydown",B)});
_.dt(function(){var P;(P=Z)==null||P.removeEventListener("keydown",B)});
I=function(){var P,z,m;return(P=e())==null?void 0:(z=P.reelPlayerOverlayRenderer)==null?void 0:(m=z.likeButton)==null?void 0:m.likeButtonRenderer};
return _.w("ytd-shorts-miniplayer-overlay",{el:v,class:"ytdShortsMiniplayerOverlayHost"},_.w("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.c$({"background-image":function(){var P=Y();return P?'url("'+_.jO(P.thumbnails)+'")':""}})}),_.w("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.w("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.w(zAI,{iconType:function(){var P=y();
return P===2||P===-1||P===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){GcB(y())},
tooltipText:function(){var P=y();return P===1||P===3?_.yu("PLAYER_LABEL_PAUSE"):_.yu("PLAYER_LABEL_PLAY")}}),_.w(_.uJJ,null)),_.w("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.w(zAI,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:E,onTap:function(){OY6(v.value)},
tooltipText:_.yu("PREVIOUS_VIDEO_LABEL")}),_.w(zAI,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:T,onTap:function(){nSJ(v.value)},
tooltipText:_.yu("NEXT_VIDEO_LABEL")}),_.d("web_shorts_pip_like_button")?_.w("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.w(BRt,{buttonTooltipPosition:"left",data:I,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.w("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.w(_.wU,{cond:function(){var P,z;return _.h((P=e())==null?void 0:(z=P.reelPlayerOverlayRenderer)==null?void 0:z.metapanel,
ycl)},
then:function(P){return _.w("div",{class:_.RQ("ytdShortsMiniplayerOverlayInteractive")},_.w(_.PvO,{data:P}))}})),_.w("div",{class:_.RQ("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var P;return!((P=e())==null||!P.adsOverlay)||c()&&!byG(c())}},_.w("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.w(_.agI,null)))),_.w(_.wU,{cond:function(){var P=e(),z,m;
P=_.h(P==null?void 0:(z=P.adsOverlay)==null?void 0:(m=z.fulfillmentContent)==null?void 0:m.fulfilledLayout,ViU);return _.h(P==null?void 0:P.renderingContent,RUz)},
then:function(P){return _.w("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.w(iAZ,{data:P}))}}))},"Ge");var MZi=_.rp(function(){var E=_.p(_.lQ(new _.KK(NaN,NaN),void 0,"dCf7yb")),B=E.next().value,I=E.next().value;E=_.p(_.lQ(!1,void 0,"smJHAc"));var T=E.next().value,e=E.next().value,c=_.p(_.lQ(!1,void 0,"HnqDAc"));E=c.next().value;var Y=c.next().value,v=_.Q().resolve(_.W3).miniplayerPropSignalMap[0],y=v.data,Z=v.shortsData,P=v.nextButtonDisabled,z=v.shortsPreviewThumbnail,m=v.previousButtonDisabled,u=v.externalPlaylistData;c=v.toastData;var x=v.playabilityStatus,M=v.isDisabled;v=_.hk(_.a0);_.bE("yt-pip-window-resized",
function(q){I(q)});
_.bE("yt-activate-pip-miniplayer",function(){return _.a(function(q){Y(!0);_.ER(q)})});
var N=function(){var q;return!((q=u())==null||!q.contents)&&T()},W=function(){var q=B(),f=!!y(),ed=N();
q=q.clone();f&&(q.height-=76);ed&&(q.height-=285);return q},U=function(){e(!T())};
return _.w("ytd-pip-container",{class:"ytdPipContainerHost"},_.w(_.wU,{cond:E,then:function(){return _.w(_.G21,{isDisabled:M,playabilityStatus:x,size:W})}}),_.w(_.wU,{cond:y,
then:function(){return _.w(_.Lqg,{data:y,expanded:T,onExpandClick:U,playlistData:u})}}),_.w(_.wU,{cond:N,
then:function(){return _.w("div",{class:"ytdPipContainerPlaylistPanel"},_.w(_.RIZ,{data:u,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.w(_.wU,{cond:v,
then:function(){return _.w(m7g,{data:Z,nextButtonDisabled:P,previousButtonDisabled:m,playabilityStatus:x,previewThumbnail:z})}}),_.w("div",{class:"ytdPipContainerToast"},_.w(_.OXI,{toastData:c})))},"He");var vJ=function(E,B){var I=this;this.pipController=E;this.JSC$16357_clientRoot=B;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=WIt();this.watchPipEnabled=_.d("web_watch_pip");this.shortsPipEnabled=_.d("web_shorts_pip");this.JSC$16357_watchWhileEnabled=_.d("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;_.C_(_.t2(),_.mTB,function(T){I.isSingleOptionSurveyActive=T});
this.JSC$16357_onPlayerPlayVideo=this.JSC$16357_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);_.X4(_.WC.getInstance(),this.miniplayerServiceActionMap,this.JSC$16357_clientRoot);window.documentPictureInPicture&&_.Oc()&&_.hK("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},uih,nM9,LmO,M6t,Hrd,oul,NfH,gML,Sfd,G12;
vJ.prototype.handleMediaSessionPipActivation=function(){var E=this,B;return _.a(function(I){_.vx().mediaSessionPipActivation=!0;B=_.Q().resolve(_.oS);return B.isOnWatch()&&E.watchPipEnabled?(_.vx().watchPipActivation=!0,_.QGm(E,B.data),I.jumpTo(0)):B.isOnShorts()&&E.shortsPipEnabled?(_.vx().shortsPipActivation=!0,_.d7L(E),I.jumpTo(0)):E.isMiniplayerActive()&&E.watchPipEnabled&&!E.watchWhileMode?_.C(I,hAI(E),0):I.jumpTo(0)})};
var hAI=function(E){var B,I,T,e;return _.a(function(c){if(c.nextAddress==1)return B=!E.miniplayerToPipMode,I=E.playerElement,T=E.miniplayerData,e=E.watchResponse,_.C(c,E.deactivate(),2);if(c.nextAddress!=3)return B?(_.vx().mediaSessionPipActivation=!0,_.vx().watchPipActivation=!0):_.vx().miniplayerButtonActivation=!0,_.C(c,E.activate(I,T,e),3);E.miniplayerToPipMode=B;_.ER(c)})};
vJ.prototype.onDownloadedVideoDeleted=function(E){var B,I=_.h((B=this.miniplayerData)==null?void 0:B.watchEndpoint,_.kh),T,e;I&&((T=this.watchResponse)==null?void 0:(e=T.playerResponse)==null?void 0:e.offlineState)!==void 0&&(B=I.videoId)&&E&&B===E&&this.close()};
vJ.prototype.onShowMiniplayerCommand=function(E){var B=this,I,T,e,c,Y,v,y,Z,P,z,m,u,x;return _.a(function(M){switch(M.nextAddress){case 1:return I=_.h(E,e3r),e=(T=I)==null?void 0:T.miniplayerCommand,c=_.h(e,_.kh),e&&c&&!B.active?_.C(M,_.dB.getInstance(),2):M.return();case 2:return Y=M.yieldResult,_.C(M,(v=Y)==null?void 0:v.get("yt-miniplayer-shown-video-id"),3);case 3:y=M.yieldResult;Z=c.videoId;if(!Z||y===Z)return M.return();P=_.Q().resolve(_.oS);if(P.isOnWatch())return _.OG(Error("Cj")),M.return();
z={channelItem:{externalId:btoa(Z)}};B.readyToResumeVe=_.wA(121253,void 0,void 0,z);_.vx().showMiniplayerCommandActivation=!0;return _.C(M,_.A8N(B,e,!0),4);case 4:return B.active?(_.yb(B,{readyToResumeVe:B.readyToResumeVe,continueWatching:!0,premiumBranding:!((m=I)==null||!m.showPremiumBranding)}),B.isReadyToResume=!0):_.yb(B,{continueWatching:!0,premiumBranding:!((u=I)==null||!u.showPremiumBranding)}),_.d("ytd_miniplayer_to_wiz")&&_.yb(B,{isReadyToResume:!0}),_.C(M,(x=Y)==null?void 0:x.set("yt-miniplayer-shown-video-id",
c.videoId),5);case 5:B.readyToResumeVe=void 0,_.ER(M)}})};
vJ.prototype.init=function(E){this.miniplayerEl?_.OG(new _.P7("MiniplayerService already initialized.")):this.miniplayerEl=E};
vJ.prototype.isInitialized=function(){var E=!!this.miniplayerEl;E||_.OG(new _.P7("MiniplayerService used before initialized."));return E};
_.QGm=function(E,B){if(E.isInitialized()){var I=_.bNd(B.response,B.playerResponse),T=_.Q().resolve(_.oS).getPlayerFromWatch();_.vx().currentEndpoint=I.watchEndpoint||null;E.activate(T,I,B)}};
_.d7L=function(E){if(E.isInitialized()){var B=_.Q().resolve(_.oS).getPlayerFromShorts();E.activate(B)}};
uih=function(E,B){var I;(I=!E.isInitialized())||(I=_.Q().resolve(_.oS).isOnWatch()&&E.watchPipMode,I=!(E.isMiniplayerActive()&&(_.vx().userActivation||_.vx().lockupActivation||I)));if(I)return!1;sGH(E,B)?_.pI(E):oul(E,B);return E.watchPipMode?!_.Q().resolve(_.oS).isOnWatch():!0};
vJ.prototype.isMiniplayerActive=function(){return this.active};
var sGH=function(E,B){var I;B=(I=_.h(B,_.kh))==null?void 0:I.videoId;var T,e;E=(e=_.h((T=E.miniplayerData)==null?void 0:T.watchEndpoint,_.kh))==null?void 0:e.videoId;return B!=null&&B===E};
vJ.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.$O(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.I2(this.miniplayerEl,"yt-navigate-home-action"))};
_.A8N=function(E,B,I,T){I=I===void 0?!1:I;var e,c,Y;return _.a(function(v){switch(v.nextAddress){case 1:if(E.active){v.jumpTo(2);break}e=_.Q().resolve(_.oS);if(Y=(c=E.playerElement)!=null?c:e.getPlayerFromWatch()){v.jumpTo(3);break}return _.C(v,_.Q().resolve(_.qN),4);case 4:Y=e.getPlayerFromWatch();case 3:if(!Y){_.OG(Error("Ej"));v.jumpTo(2);break}return _.C(v,E.activate(Y,T),2);case 2:return E.active?_.C(v,oul(E,B,I),0):v.return()}})};
vJ.prototype.activate=function(E,B,I){var T=this,e,c,Y,v,y,Z,P,z;return _.a(function(m){switch(m.nextAddress){case 1:if(!T.isInitialized())return m.return();if(!E)return _.OG(Error("Ej")),m.return();if(_.BQZ()||T.isMiniplayerActive())var u=!0;else u=_.vx().watchPipActivation||_.vx().watchWhileActivation,_.Q().resolve(_.oS).isOnWatch()&&!u?(_.OG(new _.P7("miniplayer activated on watch page")),u=!0):u=_.vx().watchWhileActivation?T.userDeactivatedWatchWhile||!!document.pictureInPictureElement||Q6Q():
!1;if(u)return EJZ(),m.return();e=_.vx().mediaSessionPipActivation;c=_.vx().shortsPipActivation;Y=_.vx().watchPipActivation;y=(v=_.vx().watchWhileActivation)||Y;Z=Y||c;if(!T.pictureInPictureEnabled()||!Z){m.jumpTo(2);break}return _.C(m,uLI(T,e),3);case 3:if(!m.yieldResult)return _.OG(Error("Dj")),EJZ(),m.return();case 2:return T.setActive(!0),T.watchResponse=I,T.playerElement=E,T.updateMiniplayerData(B),_.C(m,LmO(T,E),4);case 4:if(!T.active)return _.OG(new _.P7("miniplayer deactivated during activation")),
T.removePlayerListeners(),m.return();u=_.Q().resolve(_.Hx);u.addEventListener("yt-navigate",_.Kq(T,T.onPlaylistNavigate));u.addEventListener("yt-playlist-data-updated",_.Kq(T,T.JSC$16357_onPlaylistDataUpdated));T.JSC$16357_onPlaylistDataUpdated();EJZ();T.JSC$16357_watchWhileEnabled&&_.x7T(T,v);T.pictureInPictureEnabled()&&T.shortsPipEnabled&&(T.shortsPipMode=c,_.t2().dispatch(btR(T.shortsPipMode)));T.pictureInPictureEnabled()&&T.watchPipEnabled&&(T.watchPipMode=Y);T.player&&(P=T.player.getPlayerState(),
z=P===1,_.t2().dispatch(qv$(P)),_.Ta(T.miniplayerEl,"yt-miniplayer-play-state-changed",[z]),_.vx().isVideoPlaying=z);T.watchPipEnabled&&_.hXc(T.handleMediaSessionPipActivation);_.Ta(T.miniplayerEl,"yt-miniplayer-endpoint-changed");G12(T);_.OrL(T);return T.shortsPipMode||T.watchPipMode?_.C(m,_.eY(T.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.d("ytd_miniplayer_to_wiz")?_.C(m,_.eY(T.miniplayerEl,"yt-activate-miniplayer",[y]),6):_.C(m,_.eY(T.miniplayerEl,"yt-activate-miniplayer-action",[E,y]),6);
case 6:nM9(T),M6t(T,!0),_.ER(m)}})};
vJ.prototype.updateMiniplayerData=function(E){this.miniplayerData=E;_.yb(this,{data:E})};
_.OrL=function(E){var B,I,T=((B=E.miniplayerData)==null?void 0:(I=B.miniplayerRenderer)==null?void 0:I.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";B=E.watchWhileMode||E.watchPipMode?T&&!_.Q().resolve(_.oS).isOnWatch():T;_.yb(E,{isDisabled:B});var e,c;I=_.h((e=E.miniplayerData)==null?void 0:(c=e.miniplayerRenderer)==null?void 0:c.minimizedEndpoint,_.uU);B&&I&&_.Q().resolve(_.ZT).openSheet({openPopupActionCommand:{openPopupAction:I}},E.miniplayerEl)};
nM9=function(E){if(E.watchResponse&&!Hrd(E)){var B,I=(B=E.watchResponse.playerResponse)==null?void 0:B.trackingParams;I&&(_.yb(E,{expandVe:_.wA(35989),closeVe:_.wA(34699),readyToResumeCloseVe:_.wA(131070),repositionVe:_.wA(226204),resizeVe:_.wA(226205)}),_.yb(E,{playerVe:_.Yg(I)}))}};
LmO=function(E,B){return _.a(function(I){if(I.nextAddress==1)return B.preparePlayer(),_.C(I,B.getPlayerPromise(),2);E.player=I.yieldResult;E.player&&(E.player.addEventListener("onPlayVideo",E.JSC$16357_onPlayerPlayVideo),E.player.addEventListener("onCloseMiniplayer",E.onPlayerCloseMiniplayer),E.player.addEventListener("onExpandMiniplayer",E.onPlayerExpandMiniplayer),E.player.addEventListener("onStateChange",E.onPlayerStateChange));_.ER(I)})};
_.l=vJ.prototype;_.l.JSC$16357_onPlayerPlayVideo=function(E){var B=E.sessionData&&"autonav"in E.sessionData,I;E.sessionData&&E.sessionData.itct&&(I=E.sessionData.itct);var T=E.watchEndpoint;B=T&&B?_.FHc(T,I):_.DB(E.videoId,E.listId||void 0,I);E.sessionData&&_.qU(_.h(B.commandMetadata,_.D$).url,E.sessionData);oul(this,B)};
_.l.onPlayerExpandMiniplayer=function(){_.pI(this)};
_.l.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.l.onPlayerStateChange=function(){if(this.player){var E=this.player.getPlayerState(),B=E===1;_.t2().dispatch(qv$(E));_.t2().dispatch(_.Dr6(E));_.Ta(this.miniplayerEl,"yt-miniplayer-play-state-changed",[B]);_.vx().isVideoPlaying=B;if(E===0){B=!_.fU.getInstance().isAutoplaySetExplicitly();var I,T,e,c,Y,v,y=(I=this.watchResponse.response)==null?void 0:(T=I.contents)==null?void 0:(e=T.twoColumnWatchNextResults)==null?void 0:(c=e.autoplay)==null?void 0:(Y=c.autoplay)==null?void 0:(v=Y.autoplayExplicitChoiceDialogRenderer)==
null?void 0:v.confirmDialogRenderer;B&&y&&this.player.setAutonavState(1)}E===0&&this.watchWhileMode&&this.deactivate()}};
_.l.onPlaylistNavigate=function(E,B){var I=this,T,e,c,Y,v,y,Z;return _.a(function(P){if(P.nextAddress==1){if(!_.h(B.endpoint,_.kh))return P.return();_.vx().currentEndpoint=B.endpoint;_.Ta(I.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.Q().resolve(_.oS).isOnWatch()&&(I.watchWhileMode||I.watchPipMode))return P.return();E.stopPropagation();(c=(e=_.h((T=B.endpoint)==null?void 0:T.commandMetadata,_.D$))==null?void 0:e.url)&&B.tempData&&!_.a_.isEmpty(B.tempData)&&_.qU(c,B.tempData);Y={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};v=new RzZ(function(){return I.getPlayerElement()},Y,{layer:3});
y=function(z){v.processChunk({endpoint:B.endpoint,data:z})};
NfH(I);I.miniplayerFetchRequest=gML(I,B.endpoint,y);_.q7(P,2);return _.C(P,I.miniplayerFetchRequest,4)}if(P.nextAddress!=2)return Z=P.yieldResult,Sfd(I,Z),_.W7(P,0);_.RG(P);_.ER(P)})};
_.l.JSC$16357_onPlaylistDataUpdated=function(){var E=_.Q().resolve(_.Hx).getPlaylistData();this.hasPlaylistData=!!E;_.yb(this,{externalPlaylistData:E||{}})};
_.l.close=function(E){if(this.isInitialized())if(E){if(!((this.watchWhileMode||this.watchPipMode)&&_.Q().resolve(_.oS).isOnWatch()||this.shortsPipMode)){var B;(B=this.getPlayerElement())==null||B.stop()}this.deactivate()}else _.Wx().closeMiniplayer(this.miniplayerEl)};
_.l.deactivate=function(E){var B=this,I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1){if(!B.isInitialized()||!B.active)return Y.return();B.setActive(!1);NfH(B);(I=!!E&&sGH(B,E))&&B.isSingleOptionSurveyActive&&_.I2(B.miniplayerEl,"yt-show-watch-page-survey",[B.isSingleOptionSurveyActive]);return _.C(Y,J1m(B),2)}if(Y.nextAddress!=3){M6t(B,!1);B.isReadyToResume=!1;B.watchResponse=void 0;B.updateMiniplayerData(void 0);B.shortsPipMode&&(B.shortsPipMode=!1,_.t2().dispatch(btR(B.shortsPipMode)),eZT(B.pipController),
(T=B.player)==null||T.setInternalSize(NaN,NaN));B.watchPipMode&&(B.watchPipMode=!1,eZT(B.pipController));(e=B.watchWhileMode)&&_.x7T(B,!1);B.removePlayerListeners();var v=_.Q().resolve(_.Hx);v.removeEventListener("yt-navigate",_.Kq(B,B.onPlaylistNavigate));v.removeEventListener("yt-playlist-data-updated",_.Kq(B,B.JSC$16357_onPlaylistDataUpdated));_.vx().currentEndpoint=null;_.Ta(B.miniplayerEl,"yt-miniplayer-endpoint-changed");B.playerElement=null;EJZ();return B.shortsPipMode||B.watchPipMode?Y.jumpTo(3):
_.C(Y,_.eY(B.miniplayerEl,_.d("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[I,e]),3)}(c=B.player)==null||c.setInternalSize(NaN,NaN);B.player=null;_.ER(Y)})};
var J1m=function(E){var B;return _.a(function(I){B=_.Q().resolve(_.oS);return E.shortsPipMode?_.C(I,B.movePlayerToShorts(E.playerElement),0):_.C(I,B.movePlayerToWatch(E.playerElement),0)})};
vJ.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16357_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
vJ.prototype.setActive=function(E){this.active=E;this.isSingleOptionSurveyActive?_.I2(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.I2(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.t2().dispatch(_.BP({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.x7T=function(E,B){E.watchWhileMode=B;_.yb(E,{watchWhile:B})};
M6t=function(E,B){if(!Hrd(E))if(E.shortsPipMode||E.watchPipMode){var I;(I=E.player)==null||I.setDocumentPictureInPicture(B)}else{var T;(T=E.player)==null||T.setMinimized(B)}};
Hrd=function(E){return E.watchWhileMode&&_.d("kevlar_watch_while_counterfactual")};
_.pI=function(E){var B;return _.a(function(I){switch(I.nextAddress){case 1:if(!E.isInitialized())return I.return();_.q7(I,2);return _.C(I,E.miniplayerFetchRequest,4);case 4:_.W7(I,3);break;case 2:_.RG(I);case 3:E.watchResponse&&E.miniplayerData&&E.miniplayerData.watchEndpoint?(B={url:E.watchResponse.url,endpoint:E.miniplayerData.watchEndpoint,data:E.watchResponse,miniplayer:!0},_.$O(E.miniplayerEl,"yt-navigate-cache",B)):E.miniplayerData&&E.miniplayerData.watchEndpoint&&_.$O(E.miniplayerEl,"yt-navigate",
{endpoint:E.miniplayerData.watchEndpoint}),_.ER(I)}})};
oul=function(E,B,I){var T,e,c,Y;return _.a(function(v){if(v.nextAddress==1){if(sGH(E,B))return v.return();_.vx().currentEndpoint=B;_.Ta(E.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Ta(E.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.vx().isVideoPlaying=!1;T={clientParams:{miniplayer:!0,autoSaveToQueue:!I}};e=new RzZ(function(){return E.getPlayerElement()},T,{layer:3,
parentLayer:0},void 0,E.readyToResumeVe);c=function(y){var Z,P,z=Object.assign({},(Z=y.playerResponse)==null?void 0:(P=Z.playerConfig)==null?void 0:P.playbackStartConfig,{startPaused:!0}),m;I&&((m=y.playerResponse)==null?0:m.playerConfig)&&(y.playerResponse.playerConfig.playbackStartConfig=z);e.processChunk({endpoint:B,data:y})};
NfH(E);E.miniplayerFetchRequest=gML(E,B,c);_.q7(v,2);return _.C(v,E.miniplayerFetchRequest,4)}if(v.nextAddress!=2)return Y=v.yieldResult,Sfd(E,Y),_.W7(v,0);_.RG(v);_.ER(v)})};
NfH=function(E){E.miniplayerFetchRequest&&(E.miniplayerFetchRequest.cancel&&E.miniplayerFetchRequest.cancel("Active request obsolete"),E.miniplayerFetchRequest=null)};
gML=function(E,B,I){var T=_.Bc.instance,e,c=(e=_.h(B.commandMetadata,_.D$))==null?void 0:e.url,Y;e=!c||_.d("disable_miniplayer_tempdata")?{}:(Y=pdc(c))!=null?Y:{};return bb(T,B,e,window.location.href,"watch",function(v,y){I(y)},function(v){return v!==E.miniplayerFetchRequest})};
Sfd=function(E,B){var I;_.a(function(T){if(!B)return T.return();E.watchResponse=B;nM9(E);G12(E);I=_.bNd(B.response,B.playerResponse);if(E.isMiniplayerActive()){B.response&&(E.playerElement.watchNextData=B.response);var e=_.a_.getValueByKeys.apply(_.a_,[B].concat(_.ad(p4z)));_.a_.getValueByKeys.apply(_.a_,[B].concat(_.ad(CgV)))&&e&&_.Q().resolve(_.Hx).setAutoplayRenderer(e);if(e)if(_.d("kevlar_is_pupi_enabled")){var c,Y,v,y,Z,P=((c=B.response)==null?0:(Y=c.playerOverlays)==null?0:(v=Y.playerOverlayRenderer)==
null?0:(y=v.autonavToggle)==null?0:(Z=y.autoplaySwitchButtonRenderer)==null?0:Z.enabled)?2:1;_.fU.getInstance().setState(P,!1,!1)}else c=hof()?2:1,(P=E.player)==null||P.setAutonavState(c);E.updateMiniplayerData(I);_.OrL(E)}_.ER(T)})};
G12=function(E){var B,I,T=(B=E.watchResponse)==null?void 0:(I=B.playerResponse)==null?void 0:I.playabilityStatus,e;B=T==null?void 0:(e=T.miniplayer)==null?void 0:e.miniplayerRenderer;(B==null?void 0:B.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&B.minimizedEndpoint&&_.l1(E.miniplayerEl,[B.minimizedEndpoint]);_.yb(E,{miniplayerRenderer:B,playabilityStatus:T})};
vJ.prototype.openToast=function(E,B){_.yb(this,{toastData:{data:E,label:B}})};
_.yb=function(E,B){var I=E.miniplayerEl,T;for(T in B)I[T]=B[T];(0,E.miniplayerPropSignalMap[1])(B)};
vJ.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var E;return this.playerElement?this.playerElement:(E=_.n(this.miniplayerEl).querySelector("#player-container"))==null?void 0:E.firstElementChild};
var uLI=function(E,B){B=B===void 0?!1:B;var I,T,e,c,Y,v,y;return _.a(function(Z){if(Z.nextAddress==1){I=navigator.userActivation.isActive||B;if(!I)return Z.return(!1);T=Wm2(E);e=T.width;c=T.height;return _.C(Z,E.pipController.openWindow({width:e,height:c}),2)}Y=Z.yieldResult;v=E.pipController.getWindow();if(!v||!Y)return Z.return(!1);v.document.body.style.overflow="hidden";y=HYc(v);lXs(E.pipController,function(){X1I(E);y()});
return Z.return(!0)})},Wm2=function(E){var B=_.vx().shortsPipActivation,I,T;
E=B?.5625:(T=(I=E.player)==null?void 0:I.getVideoAspectRatio())!=null?T:16/9;I=Math.min(window.innerWidth,window.innerHeight)/2;B=B?0:76;return E>1?new _.KK(I,B+I/E):new _.KK(I*E,B+I)},X1I=function(E){var B;
_.a(function(I){B=_.Q().resolve(_.oS);return B.isOnWatch()&&E.watchPipMode||B.isOnShorts()&&E.shortsPipMode?_.C(I,E.deactivate(),0):E.miniplayerToPipMode?_.C(I,hAI(E),0):E.watchPipMode?_.C(I,_.pI(E),0):I.jumpTo(0)})};
vJ.prototype.pictureInPictureEnabled=function(){return!!window.documentPictureInPicture&&_.Oc()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Up.Object.defineProperties(vJ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
vJ[F1]=[_.czL,dnR];var r1s="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(" "),
brO="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var oM8=null;var A11={},jGm=(A11.initialized={priority:10,callback:function(E){var B=_.Q();B.addProvider({provide:zdN,useClass:I1H});B.addProvider({provide:_.$IO,useFactory:function(){return new mmN}});
B.addProvider({provide:i8,useValue:_.HA("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});B.addProvider({provide:mvh,useValue:5184E6});B.addProvider({provide:NcZ,useValue:_.xm()});B.addProvider({provide:jBH,useClass:Nu$});B.addProvider({provide:uY,useClass:uY});B.addProvider({provide:_.qN,useFactory:function(){return Ay6.promise}});
B.addProvider({provide:_.UrZ,useFactory:function(){return _.jZh.promise}});
B.addProvider({provide:fpD,useValue:function(){var v;return((v=_.jx())==null?void 0:v.getPlayer())||null}});
var I={};B.addProvider((I.provide=_.gm,I.useFactory=function(v,y){return function(){return eXG(v,y)}},I[F1]=[i8,
mvh],I));I={};B.addProvider((I.provide=_.Kz,I.useClass=lim,I[F1]=[i8,mvh],I));I={};B.addProvider((I.provide=_.tZt,I.useClass=Yc1,I[F1]=[_.Kz],I));B.addProvider({provide:Ru,useFactory:_.t2});B.addProvider({provide:pJ,useFactory:_.t2});B.addProvider({provide:tdd,useFactory:_.t2});B.addProvider({provide:CYz,useFactory:_.t2});B.addProvider({provide:_.sy,useFactory:_.t2});B.addProvider({provide:AU,useValue:_.YN});B.addProvider({provide:Dtg,useClass:wNi});B.addProvider({provide:RRr,useClass:Ke$});B.addProvider({provide:mc,
useClass:mc});B.addProvider({provide:vB,useClass:vB});B.addProvider({provide:wm,useClass:wm});B.addProvider({provide:PB,useClass:PB});B.addProvider({provide:xn,useClass:xn});B.addProvider({provide:Fd,useClass:Fd});B.addProvider({provide:jv,useClass:jv});B.addProvider({provide:fJN,useValue:ZX8});B.addProvider({provide:_.pj,useFactory:_.lu});B.addProvider({provide:Xc,useFactory:_.ZB});I={};B.addProvider((I.provide=LIB,I.useFactory=function(v){return function(y){var Z=Z===void 0?{}:Z;var P,z,m=(z=_.h((P=
y.endpoint)==null?void 0:P.commandMetadata,_.D$))==null?void 0:z.rootVe;if(m){var u,x;if(P=y.previousCsn||((x=_.h((u=y.endpoint)==null?void 0:u.commandMetadata,N4u))==null?void 0:x.parentCsn)){var M=M===void 0?{}:M;if(P!==_.nC(M.layer)||m!==wRt(M.layer))Q8c(P,M.cttAuthInfo,M.layer||0),yP6(P,M.layer||0),u=M.layer||0,_.MD(CGf(u===void 0?0:u),m);Z.parentCsn=P}y.endpoint&&P?bzV(v,y.endpoint,Z):_.I5(v,m,void 0,Z);var N;((N=y.response)==null?0:N.trackingParams)&&v.graftServerVe(y.response.trackingParams);
var W;((W=y.playerResponse)==null?0:W.trackingParams)&&v.graftServerVe(y.playerResponse.trackingParams);var U;((U=y.reelWatchSequenceResponse)==null?0:U.trackingParams)&&v.graftServerVe(y.reelWatchSequenceResponse.trackingParams)}}},I[F1]=[_.pj],I));
I={};B.addProvider((I.provide=VdT,I.useClass=fiL,I[F1]=[AU,_.sy],I));I={};B.addProvider((I.provide=kn,I.useClass=kn,I[F1]=[_.qN,_.sy],I));I={};B.addProvider((I.provide=oC,I.useClass=oC,I[F1]=[pJ,_.Dt],I));B.addProvider({provide:_.ElH,useClass:p6O});I={};B.addProvider((I.provide=_.wQ,I.useClass=IX1,I[F1]=[_.ElH],I));B.addProvider({provide:_.ZT,useClass:Va});B.addProvider({provide:_.PZ,useClass:tS});I={};B.addProvider((I.provide=_.gx,I.useClass=iVI,I[F1]=[_.gx],I));B.addProvider({provide:_.UL,useClass:tHu});
B.addProvider({provide:T_,useClass:T_});B.addProvider({provide:YZ,useClass:YZ});B.addProvider({provide:z_,useClass:f3});I={};B.addProvider((I.provide=dx,I.useClass=dx,I[F1]=[_.ZT,z_],I));_.d("web_enable_feedback_endpoint_resolver")&&(I={},B.addProvider((I.provide=E0,I.useClass=E0,I[F1]=[Ru,KB],I)),B.addProvider({provide:KB,useClass:vdU}));_.d("web_enable_feedback_endpoint_resolver_batch_2")&&(I={},B.addProvider((I.provide=$Z,I.useClass=$Z,I[F1]=[Ru],I)),I={},B.addProvider((I.provide=Bs,I.useClass=
Bs,I[F1]=[KB],I)));I={};B.addProvider((I.provide=m8,I.useClass=m8,I[F1]=[_.PZ,z_],I));I={};B.addProvider((I.provide=Ck,I.useClass=Ck,I[F1]=[_.PZ],I));I={};B.addProvider((I.provide=Qc,I.useClass=Qc,I[F1]=[_.P8,_.wQ],I));I={};B.addProvider((I.provide=Ps,I.useClass=Ps,I[F1]=[_.P8,_.pj],I));B.addProvider({provide:U0,useClass:U0});I={};B.addProvider((I.provide=Ws,I.useClass=Ws,I[F1]=[Ru],I));I={};B.addProvider((I.provide=TH,I.useClass=TH,I[F1]=[Ru],I));I={};B.addProvider((I.provide=ev,I.useClass=ev,I[F1]=
[_.P8,Ru],I));I={};B.addProvider((I.provide=lx,I.useClass=lx,I[F1]=[Ru],I));I={};B.addProvider((I.provide=cI,I.useClass=cI,I[F1]=[Ru],I));I={};B.addProvider((I.provide=wx,I.useClass=wx,I[F1]=[_.wQ],I));I={};B.addProvider((I.provide=qQ,I.useClass=qQ,I[F1]=[_.pj],I));I={};B.addProvider((I.provide=BI,I.useClass=BI,I[F1]=[A$],I));I={};B.addProvider((I.provide=$H,I.useClass=$H,I[F1]=[A$],I));B.addProvider({provide:Kk,useClass:Kk});B.addProvider({provide:Ri,useClass:Ri});B.addProvider({provide:Vc,useClass:Vc});
I={};B.addProvider((I.provide=h$,I.useClass=h$,I[F1]=[_.wQ,_.Dt],I));B.addProvider({provide:cs,useClass:cs});I={};B.addProvider((I.provide=Z9,I.useClass=Z9,I[F1]=[_.P8,_.wQ],I));B.addProvider({provide:ai,useClass:ai});I={};B.addProvider((I.provide=SX,I.useClass=SX,I[F1]=[Ru,_.P8,_.gx],I));I={};B.addProvider((I.provide=Hs,I.useClass=Hs,I[F1]=[_.P8,_.Dt],I));B.addProvider({provide:G3$,useValue:dZi});B.addProvider({provide:N2Q,useValue:ZB6});B.addProvider({provide:NQ,useClass:NQ});I={};B.addProvider((I.provide=
MQ,I.useClass=MQ,I[F1]=[Ru],I));I={};B.addProvider((I.provide=J$,I.useClass=J$,I[F1]=[_.UL,_.Dt],I));I={};B.addProvider((I.provide=Ii,I.useClass=Ii,I[F1]=[_.Dt],I));B.addProvider({provide:DW,useFactory:function(){return new DW(_.t2())}});
B.addProvider({provide:Flc,useFactory:_.H8.getInstance});I={};B.addProvider((I.provide=pk,I.useClass=pk,I[F1]=[i8,Flc,_.Dt],I));B.addProvider({provide:eX,useClass:eX});B.addProvider({provide:tU,useClass:tU});B.addProvider({provide:VG,useClass:VG});B.addProvider({provide:_.fB,useClass:_.fB});B.addProvider({provide:YH,useClass:YH});I={};B.addProvider((I.provide=G_,I.useClass=G_,I[F1]=[pJ],I));I={};B.addProvider((I.provide=O0,I.useClass=O0,I[F1]=[_.Dt],I));_.d("web_enable_prefetching_videos_on_home")&&
(B.addProvider({provide:bX,useClass:bX}),B.addProvider({provide:To,useClass:To}));I={};B.addProvider((I.provide=p6,I.useClass=p6,I[F1]=[_.Dt],I));B.addProvider({provide:qu,useClass:qu});I={};B.addProvider((I.provide=kZ,I.useClass=kZ,I[F1]=[_.P8,_.Dt],I));I={};B.addProvider((I.provide=FV,I.useClass=FV,I[F1]=[_.Dt],I));B.addProvider({provide:eB,useClass:eB});B.addProvider({provide:Lk,useClass:Lk});I={};B.addProvider((I.provide=u8,I.useClass=u8,I[F1]=[pJ,_.Dt],I));I={};B.addProvider((I.provide=ys,I.useClass=
ys,I[F1]=[pJ,_.Dt,_.P8],I));I={};B.addProvider((I.provide=C6,I.useClass=C6,I[F1]=[_.Dt],I));I={};B.addProvider((I.provide=vI,I.useClass=vI,I[F1]=[_.Dt,_.P8],I));I={};B.addProvider((I.provide=nk,I.useClass=nk,I[F1]=[_.qN],I));I={};B.addProvider((I.provide=xZ,I.useClass=xZ,I[F1]=[_.qN],I));B.addProvider({provide:oi,useClass:oi});B.addProvider({provide:jX,useClass:jX});B.addProvider({provide:I9,useClass:I9});B.addProvider({provide:t$,useClass:t$});B.addProvider({provide:b8,useClass:b8});B.addProvider({provide:vs,
useClass:vs});B.addProvider({provide:rx,useClass:rx});_.d("kevlar_enable_mss_lazy_load")&&B.addProvider({provide:_.r6,useClass:W29});B.addProvider({provide:_.R5,useClass:Fi});B.addProvider({provide:tB,useFactory:function(){return _.WC.getInstance()}});
B.addProvider({provide:UGg,useFactory:mbt});B.addProvider({provide:A$,useFactory:function(){return _.dB.getInstance()}});
B.addProvider({provide:Sv6,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});I={};B.addProvider((I.provide=_.AS,I.useClass=_.AS,I[F1]=[_.qN,_.Dt,_.pj,UGg,A$,tB,Sv6,AU],I));B.addProvider({provide:_.IZ,useClass:ejZ});B.addProvider({provide:_.dvt,useClass:QKD});I={};B.addProvider((I.provide=yc,I.useClass=yc,I[F1]=[_.dvt],I));I={};B.addProvider((I.provide=_.jT,I.useFactory=function(v){return v.upliftCompletionResolver.promise},I[F1]=[VdT],I));
I=_.gU("IS_SHELL_LOAD")?"aa":"eocs";var T=_.gU("IS_SHELL_LOAD")?3:2;_.gB().parkOrScheduleJob(function(){FQ7()},T,I);
_.gB().parkOrScheduleJob(function(){_.Q().resolve(kn).start()},2,"eocs");
_.gB().parkOrScheduleJob(function(){kf9()},2,"eocs");
_.gB().parkOrScheduleJob(function(){_.Q().resolve(oC).start()},2,"eocs");
_.d("kevlar_debug_data_app_registration_ks")||z5i();B.addProvider({provide:_.P$,useValue:new TRV(E.root)});B.addProvider({provide:Ss,useValue:new XVi});B.addProvider({provide:_.v0X,useValue:new YJU(E.root)});B.addProvider({provide:_.Zk,useValue:new aHN});B.addProvider({provide:_.Iy,useClass:cZ});B.addProvider({provide:_.czL,useClass:qn});_.d("kevlar_network_sli_killswitch")||B.addProvider({provide:iTL,useValue:QFZ});B.addProvider({provide:KRg,useFactory:eri});_.d("web_bind_fetch")&&(I={},B.addProvider((I.provide=
RZ8,I.useFactory=lIf,I[F1]=[_.Fx(KRg)],I)));_.d("web_bind_parse")&&(I={},B.addProvider((I.provide=EI9,I.useFactory=cqc,I[F1]=[_.Fx(KRg)],I)));_.d("web_bind_window_request")&&(I={},B.addProvider((I.provide=BsT,I.useFactory=iNc,I[F1]=[_.Fx(KRg)],I)));I={};B.addProvider((I.provide=W96,I.useFactory=hri,I[F1]=[_.jT,Ru,_.gm],I));I={};B.addProvider((I.provide=JOZ,I.useClass=wk,I[F1]=[W96],I));B.addProvider({provide:K9r,useClass:VEl});B.addProvider({provide:HZu,useClass:gdV});I=[].concat(_.ad(Sx));_.d("web_continuation_response_processing")&&
I.push(_.u0);I.push(FW6);_.d("enable_share_panel_navigation_logging_fix_on_web")&&I.push(_.Gzu);B.addProvider({provide:Jei,useValue:I});B.addProvider({provide:Rsc,useClass:MEZ});B.addProvider({provide:vI7,useClass:pm8});I={};B.addProvider((I.provide=qYQ,I.useClass=hRh,I[F1]=[pJ],I));_.Ll.addLowPriorityJob(function(){tAB()});
I={};B.addProvider((I.provide=mXU,I.useFactory=function(v){return function(y){var Z,P=(Z=_.h(y.commandMetadata,_.D$))==null?void 0:Z.url;if(!P)throw new _.P7("No URL for PBJ Command",y);P=CZF(P,{pbj:"1"});Z=NlF(P,{})||{};Z=Object.assign({},Z,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.HA("STS").toString()});y=_.pF({command:JSON.stringify(y),session_token:_.HA("XSRF_TOKEN")});return v.fetch(P,{method:"POST",headers:Z,body:y})}},I[F1]=[vI7],I));
I=[];I.push(B.resolve(HZu));T={};T=(T.client_location=_.H8.getInstance(),T.consistency=_.Lvt(),T.entities=B.resolve(RRr),T.response_received_commands=B.resolve(Rsc),T.store=B.resolve(_.tZt),T.tokens=B.resolve(HZu),T);if(_.d("web_shorts_prefetch_service_enabled")){var e=new aiO(B.resolve(_.Kz));T.shorts_prefetch=e}T.adblock_detection=B.resolve(qYQ);B.addProvider({provide:_.Xg,useClass:_.Xg});e=B.resolve(fJN);var c=[];if(_.d("PremiumClientSharedConfig__enable_att_context_processor")||_.d("enable_att_for_transcript_request_on_web_client"))B.addProvider({provide:WeX,
useClass:g0u}),c.push(B.resolve(WeX));if(_.d("owl_pl_await")){var Y={};B.addProvider((Y.provide=tNd,Y.useFactory=function(v){return new UtO(v)},Y[F1]=[_.Xg],Y));
c.push(B.resolve(tNd))}xut(e,B.resolve(vI7),B.resolve(Dtg),T,B.resolve(_.Kz),I,c,B.resolve(JOZ),B.resolve(K9r));B.addProvider({provide:_.P8,useValue:_.MN.instance});_.d("start_client_gcf")&&B.addProvider({provide:zF,useValue:tsZ()});B.addProvider({provide:KQI,useFactory:function(){return new KQI(_.Q().resolve(_.Xg),_.dB.getInstance())}});
_.gB().parkOrScheduleJob(function(){Rt8()},1,"eocs");
I={};B.addProvider((I.provide=Ud,I.useClass=Ud,I[F1]=[_.gm,_.P8],I));B.addProvider({provide:_.CDs,useFactory:_.Ic.getInstance});_.gB().parkOrScheduleJob(function(){_.Q().resolve(Ud).refresh()},0,"eocs");
QWZ(ZX8.watchEndpointMap||{},e.reelWatchEndpointMap||{},E.injector.resolve(_.P8));B.addProvider({provide:sg,useValue:_.Bc.instance});_.d("web_prs_testing_mode_killswitch")||(I=new _.tQ(window.location.href),I.JSC$7917_queryData_.toString()!==""&&I.JSC$7917_queryData_.get("force_ad_encrypted")&&(_.Bc.instance.forceWebFEForAdsTesting=!0));_.d("kevlar_signal_collection_killswitch")||(I={},B.addProvider((I.provide=ADg,I.useClass=ADg,I[F1]=[i8,Xc],I)),_.gB().parkOrScheduleJob(function(){_.Q().resolve(ADg).record()},
1,"eocs"));
_.d("web_debug_handler_registration_killswitch")||_.gB().parkOrScheduleJob(function(){ZHf("DOWNLOAD_PES",zXF);_.d("offline_client_state_export_ks")||ZHf("OFFLINE_CLIENT_STATE",w2i)},0,"eocs");
_.d("kevlar_prevent_polymer_dynamic_font_load")&&_.gB().parkOrScheduleJob(function(){var v=[_.jR(u87),_.jR(L2O)];v=_.p(v);for(var y=v.next();!y.done;y=v.next()){y=y.value;var Z=document.createElement("link");_.N7(Z,y,"stylesheet");document.head.appendChild(Z)}},1,"eocs");
I=E.injector.resolve(_.P8);_.JpN.instance=new _.JpN(I);TNB(G4R(new SJ6(I)));I={};E.injector.addProvider((I.provide=fi,I.useFactory=function(v){(v=v==null?void 0:v.getCurrentPage())?v=v.visibilityObserver:(oM8||(oM8=xk4()),v=oM8);return v},I[F1]=[_.Fx(_.oS)],I.skipCache=!0,I));
B.addProvider({provide:_.W3,useClass:vJ});B.addProvider({provide:l_,useClass:vnZ});B.addProvider({provide:Tef,useValue:ur6});E.injector.addProvider({provide:zgl,useValue:IHz});B.addProvider({provide:ih$,useValue:QRt});B.addProvider({provide:_.ME,useValue:N_F});E=B.addProvider;ZVH||(ZVH=new w6T);E.call(B,{provide:_.PDI,useValue:ZVH});B.addProvider({provide:_.NE,useValue:_.HA("HTML_DIR")==="rtl"?"rtl":"ltr"});B.addProvider({provide:BcX,useClass:YQh});B.addProvider({provide:_.Ee,useClass:Dq});_.Q().addProvider({provide:IJN,
useValue:r1s.concat(brO)});B.addProvider({provide:_.RC,useClass:_.RC});B.addProvider({provide:_.mI7,useValue:new zO9});B.addProvider({provide:TDX,useClass:FeD});B.addProvider({provide:fk,useClass:fk});B.addProvider({provide:Fc,useClass:Fc});E={};B.addProvider((E.provide=s0,E.useClass=s0,E[F1]=[_.P8,_.wQ],E));B.addProvider({provide:a9,useClass:a9});B.addProvider({provide:sUR,useClass:aXg});B.addProvider({provide:ET,useClass:ET});B.addProvider({provide:IoU,useValue:A3h});B.addProvider({provide:_.uz,
useClass:DOt});_.d("enable_payments_purchase_manager")&&B.addProvider({provide:o0z,useClass:Xiz});B.addProvider({provide:hOT,useFactory:function(){return function(v){return _.dIL(v)}}});
B.addProvider({provide:_.OZh,useClass:ndZ});E={};B.addProvider((E.provide=ix,E.useClass=ix,E[F1]=[_.OZh],E));B.addProvider({provide:D9,useClass:D9});B.addProvider({provide:zru,useValue:tqV});B.addProvider({provide:ozZ,useValue:s$I});B.addProvider({provide:GL4,useClass:YZ1});B.addProvider({provide:dV2,useValue:Qh9});E={};B.addProvider((E.provide=_.hG9,E.useClass=shm,E[F1]=[dV2],E));_.d("web_ephemeral_actions")&&(E={},B.addProvider((E.provide=_.BJ,E.useClass=E$,E[F1]=[_.sy,_.Iy],E)));if(_.d("web_explore_hub_on_hover")||
_.d("web_client_explore_hub_on_hover"))E={},B.addProvider((E.provide=l8,E.useClass=l8,E[F1]=[_.P8,tB],E));B.addProvider({provide:RPD,useValue:khQ})}},A11);var U72={},k1H=(U72.initialized={priority:10,callback:function(){if(!cHd){jN6();YtJ("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.eg(_.wY(YtJ,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.d("log_heartbeat_with_lifecycles")){var E={};A6.instance||(A6.instance=new A6);A6.instance.install((E.document_visible={callback:aIG,priority:10},E.document_hidden={callback:aIG,priority:10},E))}else _.VI(document,"visibilitychange",aIG);cHd=!0}(E=_.nC())&&E!=="UNDEFINED_CSN"&&aFf(E)}},U72);var t6g={},fgm=(t6g.initialized={callback:function(E){var B=_.wA(232091),I=E.injector.resolve(_.pj);_.Ts(I,B);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?Nj4()&&_.lf(I,B):(E=E.injector.resolve(hOT)("refresh_detector"))&&(E.get("first_tab_load")?_.lf(I,B):E.set("first_tab_load","1"))}},t6g);var V6s={},qf2=(V6s.initialized={priority:10,callback:oSF},V6s);var Fm2={},D7I=(Fm2.initialized={priority:0,callback:function(){var E=new FK$,B="other";_.ar?B="chrome":_.YU?B="firefox":_.M_?B="safari":jg&&(B="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(I){E.increment(_.CF(),I,B)}).catch(function(){E.increment(_.CF(),!1,B)}):E.increment(_.CF(),!1,B)}},Fm2);var Km1={},RA2=(Km1.rendering={priority:8,callback:AfQ},Km1);var EBg={},BH8=(EBg.rendering={priority:10,callback:BD6},EBg.rendered={callback:Ect},EBg),$h8={},I7I=($h8.rendering={callback:BD6},$h8.rendered={callback:Ect},$h8);var TH1=!1,e9T={},l7s=(e9T.initialized={priority:10,callback:function(){TH1||(CEt({didPatch:function(E){E.el&&B3c(E.el,E.props)},
didUnmount:function(E){R$B(E.el)}}),TH1=!0)}},e9T);var cv8=/^\/shorts\/?$/;_.MD("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.d("kevlar_enable_mss")){_.$Di(new Mc$);var iKt=!0,pLd,CI;iKt=iKt===void 0?!1:iKt;pLd=pLd===void 0?!1:pLd;CI=CI===void 0?{}:CI;var YR9=CI.cssRowKey||"",a7T=CI.combinedSignature||"";!YR9&&window&&window._F_cssRowKey&&(YR9=window._F_cssRowKey,!a7T&&window._F_combinedSignature&&(a7T=window._F_combinedSignature));if(YR9&&typeof window._F_installCss!=="function")throw Error("ud");var vBI=CI.loaderClass||_.Wk,yv2,CA7=rAf("base-js");yv2=_.KX(CA7);var we=new vBI(yv2,YR9,a7T,iKt,pLd);CI.useCors&&(we.useCors_=
CI.useCors);CI.corsMode&&(we.corsMode_=CI.corsMode);CI.urlMaxLength&&(we.urlMaxLength=CI.urlMaxLength);CI.fetchPriority&&(we.fetchPriority=CI.fetchPriority);var wLt=d1();wLt.JSC$7939_loader_=we;wLt.setBatchModeEnabled(!0)}
(function(){var E=document.querySelector("ytd-app");if(!E)throw Error("Fj");E=new $E({root:E,injector:_.Q()});E.install(k1H);var B={};E.install((B.initialized={priority:10,callback:PSi},B));_.d("wp_lat_b")&&(B={},E.install((B.initialized={priority:10,callback:function(){$PJ()}},B)));
B={};E.install((B.rendered={priority:0,callback:CS6},B));B={};E.install((B.rendered={priority:0,callback:function(){_.Ll.addLowPriorityJob(function(){_.aJZ>1&&(c6G(),v2B())},4E4)}},B));
E.install(DI1);E.install(fgm);E.install(l7s);sg9||(sg9=!0,Object.assign(Kx,{handleError:ZNd,enableComponentStacksInErrorMessages:!1}),sHF=Uqz,vVi=Pni,Oic=a5J,LFG=vs6,_.d("ytwiz_enable_debug_component_props")&&SGi());E.install(eGL);E.install(k7s);E.install(q91);E.install(ScT);E.install(b4T);E.install(IKI);E.install(jGm);_.d("kevlar_enable_mss_lazy_load")&&E.install(qf2);E.install(f12);E.install(D7I);if(!_.gU("IS_SHELL_LOAD")||_.d("kevlar_fetch_initial_data_promise_client")||_.d("sw_nav_preload_pbj")){var I=
_.c7(window.location.href);B=I&&I==="/watch";I=I&&I.match(cv8);B?E.install(I7I):I?E.install(RA2):E.install(BH8)}else E.install(AH2);E.install(RO1);_.d("web_enable_prefetching_videos_on_home")&&E.install(p9L);_.d("start_client_gcf")&&E.install(l1I);E.install(niT);(new D8l).increment("INSTALLED");E.install(c5m);E.install(rHH);E.transition("initialized");fCc()})();
_.IN=[[["NmlxeWtpbmQjbWcwZ210OGs=","YnJ2YWx1ZSNyeHI3bXI0dDQy"],"cTRBRF9QTEFDRU1FTlRfS0lORF9QQVVTRSNjNmp0enp5cjhz"]];
_._ModuleManager_initialize=function(E,B){if(!_.zM){if(!_.Qj)return;_.$Di(_.Qj())}_.zM.setAllModuleInfoString(E,B)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/nmfa2d:h,n,o/syl:7,o/sym:g,h,q/CF909:n,r/Tm0L3c:r/L3n37:g,h,n,q/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','syl','syg','syf','syj','sym','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.Qb=function(E,B,I,T,e){var c={};B&&(c[B]=I);T?c.errorType=T:e&&(c.errorReason=e);_.hK(E,c);_.Li()};
_.de=function(E,B){_.iuf(E,_.jj(B))};
_.h7=function(E){var B=_.gB();return _.dcV(B,E,1)};
_.wp({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 E=this.query;E&&(this.full||E[0]==="("||(E="("+E+")"),this._mq=window.matchMedia(E),this._add(),this.queryHandler(this._mq))},
queryHandler:function(E){this._setQueryMatches(E.matches)}});var xh7;var GB7;var OKT=function(){};
_.l=OKT.prototype;_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._noinkChanged=function(){};
_.l._focusedChanged=function(){};
_.l._createRipple=function(){};
_.l.registered=function(){};
_.l._invalidChanged=function(){};
_.l.hasValidator=function(){};
_.l.validate=function(){};
_.l._getValidity=function(){};
_.l._requiredChanged=function(){};
_.l._valueChanged=function(){};
_.l._checkedChanged=function(){};
_.l._buttonStateChanged=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
OKT=_.wp({is:"tp-yt-paper-radio-button",_template:function(){if(GB7!==void 0)return GB7;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;xh7===void 0&&(xh7=document.createElement("template"));var T=xh7;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return GB7=E},
behaviors:[_.PJZ],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(){_.AJ(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var E=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),B=Math.floor(3*E);B%2!==E%2&&B++;this.updateStyles({"--paper-radio-button-ink-size":B+"px"})}})}});var nBg;var MRT;_.wp({_template:function(){if(MRT!==void 0)return MRT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;nBg===void 0&&(nBg=document.createElement("template"));var T=nBg;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return MRT=E},
is:"tp-yt-paper-radio-group",behaviors:[_.n3l],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(E){var B=this._valueToItem(E);if(!B||!B.hasAttribute("disabled")){if(this.selected){B=this._valueToItem(this.selected);if(this.selected==E)if(this.allowEmptySelection)E="";else{B&&(B.checked=!0);return}B&&
(B.checked=!1)}_.Mi.select.apply(this,[E]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(E){this._focusPrevious();E.preventDefault();this._activateFocusedItem()},
_onDownKey:function(E){this._focusNext();E.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(E){_.Opt._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(E){_.Opt._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Mi._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Gq._resetTabindices.apply(this,arguments);this.items.forEach(function(E){E.removeAttribute("aria-selected")},this)}});var HKH;_.QH("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var s$=function(){return _.r.apply(this,arguments)||this};
_.L(s$,_.r);_.l=s$.prototype;_.l.computeHasPrimaryIcon=function(E){return!(!E.icon&&!E.thumbnail)};
_.l.computeHasSecondary=function(E){return!(!E.secondaryIcon&&!E.secondaryNotificationText)};
_.l.computeHideSecondaryString=function(E){return!_.d("disable_hide_empty_secondary_string")&&!E.secondaryNotificationText};
_.l.computeCompactLinkStyle=function(E){return E?E.toLowerCase().replace(/_/g,"-"):""};
_.l.computeHasFitHeight=function(E){return E==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.l.isActiveEndpoint=function(E){return(E=this.get("commandMetadata.webCommandMetadata.url",E))?_.c7(window.location.href)!=="/account_transfer_channel"&&_.c7(window.location.href)!=="/gaia_link"&&_.c7(window.location.href)!=="/channel_switcher"||E!=="/account"?_.c7(window.location.href)===E:!0:!1};
_.l.onTap=function(){var E;((E=this.data)==null?0:E.serviceEndpoint)&&_.l1(this.hostElement,[this.data.serviceEndpoint])};
s$.prototype.onTap=s$.prototype.onTap;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],s$.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.t("design:type",Boolean)],s$.prototype,"active",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.t("design:type",String)],s$.prototype,"compactLinkStyle",void 0);
_.k([_.X({computed:"computeIcon_(data.icon)"}),_.t("design:type",Object)],s$.prototype,"icon",void 0);_.k([_.X({computed:"computeIcon_(data.secondaryIcon)"}),_.t("design:type",Object)],s$.prototype,"secondaryIcon",void 0);_.k([_.X({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],s$.prototype,"hasSecondary",void 0);_.k([_.X({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],s$.prototype,"hideSecondaryString",void 0);
_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],s$.prototype,"onTap",null);s$=_.k([_.b({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],s$);
_.A(s$,"ytd-compact-link-renderer",function(){if(HKH!==void 0)return HKH;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return HKH=E},{mode:1});var NHg;_.QH("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var uk=function(){var E=_.r.apply(this,arguments)||this;E.role="link";E.tabindex="0";E.actionMap=_.d("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 E};
_.L(uk,_.r);_.l=uk.prototype;_.l.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Oq()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.l.getCurrentTheme=function(){return _.nq()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Oq()};
_.l.onThemeSelected=function(E,B){var I=E||B?E:_.Gv(),T=(I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.hHQ(_.c7(window.location.href));_.PN(0,165,E);_.PN(0,174,B);this.prefs.save();T&&_.I2(this.hostElement,"yt-dark-mode-toggled-action",[I]);_.I2(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.l.onTap=function(){this.data.serviceEndpoint&&_.l1(this.hostElement,[this.data.serviceEndpoint])};
_.l.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.l.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.l.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
uk.prototype.onTap=uk.prototype.onTap;uk.prototype.dataChanged=uk.prototype.dataChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],uk.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.f2),_.t("design:type",Object)],uk.prototype,"paperItemBehaviors",void 0);_.k([_.X(),_.t("design:type",Object)],uk.prototype,"data",void 0);_.k([_.X({value:function(){return _.ZB()}}),
_.t("design:type",_.Rw)],uk.prototype,"prefs",void 0);_.k([_.X(),_.t("design:type",Object)],uk.prototype,"label",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],uk.prototype,"role",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],uk.prototype,"tabindex",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],uk.prototype,"dataChanged",null);
_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],uk.prototype,"onTap",null);uk=_.k([_.b({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],uk);
_.A(uk,"ytd-toggle-theme-compact-link-renderer",function(){if(NHg!==void 0)return NHg;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return NHg=E},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.r3=function(E,B,I){_.JA(_.mBf)(void 0,E,B,I)};
_.b4=function(E){return function(B,I){var T=E||I.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(B,I,{get:function(){var e;return this.$?this.$[T]:(e=_.Bl(this))==null?void 0:e.querySelector("#"+T)},
enumerable:!0,configurable:!0})}};_.oo=function(E){E=E===void 0?!1:E;_.Cx.call(this);this.pubSub_=new _.Ya(E);_.Bp(this,this.pubSub_)};
_.$U(_.oo,_.Cx);_.oo.prototype.subscribe=function(E,B,I){return this.isDisposed()?0:this.pubSub_.subscribe(E,B,I)};
_.oo.prototype.unsubscribe=function(E,B,I){return this.isDisposed()?!1:this.pubSub_.unsubscribe(E,B,I)};
_.oo.prototype.unsubscribeByKey=function(E){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(E)};
_.oo.prototype.publish=function(E,B){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var V58=function(){_.Qb("ypcRedeemFlowStarted")},Tl=function(E){_.Qb("ypcRedeemFlowFailed",void 0,void 0,void 0,E)},qbg=function(E,B,I){B&&I&&(E.videos.forEach(function(T){T.videoId===B&&(T.itemId=I)}),E.recommendedVideos.forEach(function(T){T.videoId===B&&(T.itemId=I)}))};var F19;var DMs;/*

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
*/
_.wp({_template:function(){if(DMs!==void 0)return DMs;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;F19===void 0&&(F19=document.createElement("template"));var T=F19;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return DMs=E},
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(E,B){var I=this._resolveSrc(E);I!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",E===""||B?this._setLoading(!1):(this._resolvedSrc=I,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 E=this.$.sizedImgDiv.style,B=this.$.placeholder.style;E.backgroundSize=B.backgroundSize=this.sizing;E.backgroundPosition=B.backgroundPosition=this.sizing?this.position:"";E.backgroundRepeat=B.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(E){E=_.Ki(E,this.$.baseURIAnchor.href);E.length>=2&&E[0]==="/"&&E[1]!=="/"&&(E=(location.origin||location.protocol+"//"+location.host)+E);return E}});var K1t;var R5d;_.wp({_template:function(){if(R5d!==void 0)return R5d;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;K1t===void 0&&(K1t=document.createElement("template"));var T=K1t;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return R5d=E},
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(E){return E?"false":"true"},
_headingChanged:function(E){var B=this.getAttribute("heading"),I=this.getAttribute("aria-label");typeof I==="string"&&I!==B||this.setAttribute("aria-label",E)},
_computeHeadingClass:function(E){return E?" over-image":""},
_computeAnimated:function(E){return E}});var EnI=new _.F("addRendererToItemSectionAction");var Bmd;var eW=function(){return _.r.apply(this,arguments)||this};
_.L(eW,_.r);eW.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],eW.prototype,"rendererBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],eW.prototype,"dismissibleItemBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],eW.prototype,"rendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],eW.prototype,"data",void 0);eW=_.k([_.b({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],eW);
_.A(eW,"ytd-comment-history-entry-renderer",function(){if(Bmd!==void 0)return Bmd;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Bmd=E},{mode:1});var $n7;_.QH("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.QH("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var l3=function(){return _.r.apply(this,arguments)||this};
_.L(l3,_.r);_.l=l3.prototype;_.l.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.onKeyUp=function(E){if(E.keyCode===13)this.onTap()};
_.l.onTap=function(){this.data.recordClickEndpoint&&_.Q().resolve(_.Dt).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var E=this.data.navigationEndpoint;E&&_.h(E,_.OS)&&_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}})};
_.l.readChanged=function(){var E;_.VQ(this.hostElement,"unread",!((E=this.data)==null?0:E.read))};
_.l.dataChanged=function(){this.data&&_.VQ(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.l.computeThumbnailSize=function(){var E;return((E=this.data)==null?0:E.highPriorityNotification)?32:48};
_.l.getEndpointURL=function(E){return E&&!_.h(E,_.OS)?this.componentBehavior.computeHref_(E):null};
_.l.getEndpointData=function(E){return E&&!_.h(E,_.OS)?E:null};
l3.prototype.computeThumbnailSize=l3.prototype.computeThumbnailSize;l3.prototype.dataChanged=l3.prototype.dataChanged;l3.prototype.readChanged=l3.prototype.readChanged;l3.prototype.onKeyUp=l3.prototype.onKeyUp;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],l3.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],l3.prototype,"data",void 0);_.k([_.X({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.t("design:type",Number)],l3.prototype,"thumbnailSize",void 0);_.k([_.RN("keyup"),_.t("design:type",Function),_.t("design:paramtypes",[KeyboardEvent]),_.t("design:returntype")],l3.prototype,"onKeyUp",null);
_.k([_.EM("data.read"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],l3.prototype,"readChanged",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],l3.prototype,"dataChanged",null);_.k([_.EM("data.highPriorityNotification"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],l3.prototype,"computeThumbnailSize",null);
l3=_.k([_.b({is:"ytd-notification-renderer",disableElementRegistration:!0})],l3);
_.A(l3,"ytd-notification-renderer",function(){if($n7!==void 0)return $n7;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return $n7=E},{mode:1});var Iqd;var c2=function(){return _.r.apply(this,arguments)||this};
_.L(c2,_.r);c2.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"}}}};
c2.prototype.computeActionButtonClass=function(E){return!E.actionButtons||E.actionButtons.length<=1?"single-button":E.description?"vertical-buttons":"horizontal-buttons"};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],c2.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],c2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],c2.prototype,"data",void 0);c2=_.k([_.b({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],c2);
_.A(c2,"ytd-playlist-show-metadata-renderer",function(){if(Iqd!==void 0)return Iqd;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Iqd=E},{mode:1});var Tms;_.QH("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var i3=function(){return _.r.apply(this,arguments)||this};
_.L(i3,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],i3.prototype,"data",void 0);i3=_.k([_.b({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],i3);
_.A(i3,"ytd-purchase-item-renderer",function(){if(Tms!==void 0)return Tms;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Tms=E},{mode:1});var ej9;var lqT={};lqT.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(E){if(E)return E.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(E){if(E==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.QH("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var py=function(){return _.r.apply(this,arguments)||this};
_.L(py,_.r);py.prototype.onYtNavigate=function(E){var B=this.openPopupBehavior.getNavigationEndpointPopupAction(E.detail.endpoint);B&&(E.stopPropagation(),this.openPopupBehavior.openPopup(B))};
py.prototype.onYtNavigate=py.prototype.onYtNavigate;_.k([_.g(lqT.YtSimpleTextSectionBehavior),_.t("design:type",Object)],py.prototype,"ytSimpleTextSectionBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.X_),_.t("design:type",Object)],py.prototype,"openPopupBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],py.prototype,"data",void 0);
_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],py.prototype,"onYtNavigate",null);py=_.k([_.b({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],py);
_.A(py,"ytd-simple-text-section-renderer",function(){if(ej9!==void 0)return ej9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ej9=E},{mode:1});var cSI;_.QH("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var YA=function(){return _.r.apply(this,arguments)||this};
_.L(YA,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],YA.prototype,"data",void 0);YA=_.k([_.b({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],YA);
_.A(YA,"ytd-unlimited-page-feature-info-renderer",function(){if(cSI!==void 0)return cSI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return cSI=E},{mode:1});var i3m;var pBL;var a6=function(){return _.r.apply(this,arguments)||this};
_.L(a6,_.r);a6.prototype.dataChanged=function(){if(this.data){var E=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);E&&(E=_.Aa(E,screen.width),this.hostElement.style.backgroundImage="url("+E+")")}};
a6.prototype.dataChanged=a6.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],a6.prototype,"data",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],a6.prototype,"dataChanged",null);a6=_.k([_.b({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],a6);
_.A(a6,"ytd-post-redemption-section-renderer",function(){if(pBL!==void 0)return pBL;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return pBL=E},{mode:1});var Yd9;var v2=function(){return _.r.apply(this,arguments)||this};
_.L(v2,_.r);v2.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],v2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],v2.prototype,"data",void 0);v2=_.k([_.b({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],v2);
_.A(v2,"ytd-ypc-post-redemption-renderer",function(){if(Yd9!==void 0)return Yd9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Yd9=E},{mode:1});_.QH("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Cy=function(){var E=_.r.apply(this,arguments)||this;E.MIN_CODE_LENGTH=12;E.MAX_CODE_LENGTH=24;return E};
_.L(Cy,_.r);_.l=Cy.prototype;_.l.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.l.created=function(){this.riskService=new _.r0i;this.loadPaymentThenable=_.o$d(_.HA("YPC_MB_URL"))};
_.l.ready=function(){var E=this;this.code.addEventListener("keypress",function(B){E.onCodeInputKeypress(B)})};
_.l.dataChanged=function(){var E=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(B){B=_.p(B);for(var I=B.next();!I.done;I=B.next())I=I.value,I.type==="attributes"&&I.attributeName==="dark"&&E.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.l.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var E=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+E+")")}};
_.l.computeRedeemButton=function(E){(E=this.get("redeemButton.buttonRenderer",E))&&(E=Object.assign({},E,{serviceEndpoint:void 0}));return E};
_.l.onRedeemButtonTap=function(E){E.stopPropagation();V58();this.redeemCode()};
_.l.redeemCode=function(){var E=this;this.isLoading=!0;var B=this.riskService.init();_.hP([B,this.loadPaymentThenable]).then(function(){var I=E.data.redeemButton.buttonRenderer.serviceEndpoint,T=_.b54(),e=payments.business.integration.ClientTokenFactory.createClientToken(_.h(I,_.QyN).countryCode,T);T={c:E.code.value.trim(),rd:window.btoa(T),ctk:e};I&&(_.d("web_ytd_redeem_code_renderer_command_resolver_ks")?_.l1(E.hostElement,[I,T]):_.Q().resolve(_.Dt).resolveCommand(I,{form:Object.assign({},T,{element:E.hostElement})}))},
function(){E.showGenericError();
Tl("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.SI(Error("Tl"))})};
_.l.onYtServiceRequestCompleted=function(E){E.stopPropagation();this.isLoading=!1;var B,I;this.errorMessage=(B=E.detail)==null?void 0:(I=B.data)==null?void 0:I.errorMessage;var T,e;this.postRedemptionRenderer=(T=E.detail)==null?void 0:(e=T.data)==null?void 0:e.renderer;var c,Y;if(E=(c=E.detail)==null?void 0:(Y=c.data)==null?void 0:Y.redirectEndpoint)this.isLoading=!0,_.$O(this.hostElement,"yt-navigate",{endpoint:E});this.errorMessage?Tl("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
E)&&_.Qb("ypcRedeemFlowSucceeded")};
_.l.onYtServiceRequestError=function(E){E.stopPropagation();this.isLoading=!1;if(E=this.get("detail.error.message",E))this.errorMessage=_.jj(E);Tl("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.l.onInvokeInstrumentManagerActionCompleted=function(E){E.stopPropagation();this.redeemCode()};
_.l.onInvokeInstrumentManagerActionError=function(E){E.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",E)){case "instrumentManagerLoadError":this.showGenericError();Tl("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Tl("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Qb("ypcRedeemFlowCancelled")}};
_.l.onInput=function(){var E=this;_.OM(this,"onInput",function(){var B=E.code.value.trim();E.redeemButtonDisabled=B.length<E.MIN_CODE_LENGTH||B.length>E.MAX_CODE_LENGTH},200)};
_.l.onCodeInputKeypress=function(E){E.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(V58(),this.redeemCode())};
_.l.computeImageUrl=function(E){return E?_.Aa(E.thumbnails,600):null};
_.l.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Cy.prototype.onInvokeInstrumentManagerActionError=Cy.prototype.onInvokeInstrumentManagerActionError;Cy.prototype.onInvokeInstrumentManagerActionCompleted=Cy.prototype.onInvokeInstrumentManagerActionCompleted;Cy.prototype.onYtServiceRequestError=Cy.prototype.onYtServiceRequestError;Cy.prototype.onYtServiceRequestCompleted=Cy.prototype.onYtServiceRequestCompleted;Cy.prototype.dataChanged=Cy.prototype.dataChanged;
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Cy.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Cy.prototype,"isLoading",void 0);_.k([_.X(),_.t("design:type",Boolean)],Cy.prototype,"redeemButtonDisabled",void 0);
_.k([_.X(),_.t("design:type",Object)],Cy.prototype,"errorMessage",void 0);_.k([_.X(),_.t("design:type",Object)],Cy.prototype,"postRedemptionRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],Cy.prototype,"observer",void 0);_.k([_.$7("#code"),_.t("design:type",HTMLInputElement)],Cy.prototype,"code",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Cy.prototype,"dataChanged",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Cy.prototype,"onYtServiceRequestCompleted",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Cy.prototype,"onYtServiceRequestError",null);
_.k([_.RN("yt-invoke-instrument-manager-action-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Cy.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.k([_.RN("yt-invoke-instrument-manager-action-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Cy.prototype,"onInvokeInstrumentManagerActionError",null);Cy=_.k([_.b({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Cy);
_.A(Cy,"ytd-redeem-code-renderer",function(){if(i3m!==void 0)return i3m;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return i3m=E},{mode:1});var aqI;_.QH("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var wb=function(){var E=_.r.apply(this,arguments)||this;E.businessEmailDisplayState="HIDE_SECTION";return E};
_.L(wb,_.r);_.l=wb.prototype;_.l.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}}}}}};
_.l.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"};
_.l.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.l.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Sc("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.l.onYtServiceRequestCompleted=function(E){var B;if((B=E.detail.data)==null?0:B.businessEmail)this.businessEmail=E.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var I;if((I=E.detail.data)==null?0:I.errorMessage)this.businessEmailErrorMessage=E.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.l.computeEmailHref=function(E){return"mailto:"+E};
_.l.computeSafeUrl=function(E){if(E)return _.pr(E)};
_.l.onBusinessEmailCaptchaSubmit=function(){var E;(E=this.data)!=null&&E.onBusinessEmailRevealClickCommand&&(E=this.JSC$18938_captchaTextarea.value)&&(E={recaptcha_response_token:E,channel_id:this.data.channelId},_.Q().resolve(_.Dt).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},E,{element:this.hostElement})}))};
_.l.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Up.Object.defineProperties(wb.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 E,B;return!((E=this.data)==null||!E.primaryLinks)&&!((B=this.data)==null?0:B.links)&&this.data.primaryLinks.every(function(I){return I.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var E,B;return!((E=this.data)==null||!E.primaryLinks)&&!((B=this.data)==null?0:B.links)&&!this.shouldShowNewLinks}}});
wb.prototype.onYtServiceRequestCompleted=wb.prototype.onYtServiceRequestCompleted;wb.prototype.dataChanged=wb.prototype.dataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],wb.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],wb.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.$7("#g-recaptcha-response"),_.t("design:type",HTMLTextAreaElement)],wb.prototype,"JSC$18938_captchaTextarea",void 0);_.k([_.X(),_.t("design:type",Object)],wb.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],wb.prototype,"businessEmailDisplayState",void 0);_.k([_.X(),_.t("design:type",String)],wb.prototype,"businessEmail",void 0);_.k([_.X(),_.t("design:type",String)],wb.prototype,"businessEmailErrorMessage",void 0);
_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wb.prototype,"hideDetailsSection",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wb.prototype,"dataChanged",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wb.prototype,"shouldShowNewLinks",null);_.k([_.S("data","shouldShowLinks"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wb.prototype,"shouldShowLegacyLinks",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],wb.prototype,"onYtServiceRequestCompleted",null);wb=_.k([_.b({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],wb);
_.A(wb,"ytd-channel-about-metadata-renderer",function(){if(aqI!==void 0)return aqI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return aqI=E},{mode:1});var vnO;_.QH("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var ZC=function(){return _.r.apply(this,arguments)||this};
_.L(ZC,_.r);ZC.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"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ZC.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ZC.prototype,"data",void 0);ZC=_.k([_.b({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],ZC);
_.A(ZC,"ytd-channel-featured-content-renderer",function(){if(vnO!==void 0)return vnO;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return vnO=E},{mode:1});var yS8;_.QH("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var P2=function(){var E=_.r.apply(this,arguments)||this;E.roundContainer=!0;E.amsterdamEnabled=_.d("enable_desktop_amsterdam_info_panels");return E};
_.L(P2,_.r);_.l=P2.prototype;_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.l.dataChanged=function(){this.imageWidth=this.imageHeight=24;var E=this.data;E.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!E.style&&E.image&&E.image.thumbnails.length&&(E=E.image.thumbnails[0],this.imageWidth=E.width||0,this.imageHeight=E.height||0)};
_.l.computeSource=function(E){return E.secondarySource?_.U3(E.secondarySource):_.U3(E.source)};
_.l.computeClarifyStyle=function(E){return E?E.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.l.isLargeStyle=function(E){return E==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.l.computeBackgroundStyle=function(E){return E?E.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.l.computeHasActionButton=function(E){return!!E.actionButton};
_.l.computeHasBottomSection=function(E){return!!E.ctaHasBottomSection};
_.l.computeIsSourceMissing=function(E){return E.ctaHasBottomSection===!1?!0:E&&this.computeSource(E)?!1:!0};
_.l.computeSecondaryEndpoint=function(E){return E.secondaryEndpoint||E.endpoint};
P2.prototype.dataChanged=P2.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],P2.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],P2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],P2.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Number)],P2.prototype,"imageWidth",void 0);_.k([_.X(),_.t("design:type",Number)],P2.prototype,"imageHeight",void 0);
_.k([_.X({computed:"computeSecondaryEndpoint(data)"}),_.t("design:type",Object)],P2.prototype,"secondaryEndpoint",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.t("design:type",Boolean)],P2.prototype,"hasActionButton",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.t("design:type",Boolean)],P2.prototype,"hasBottomSection",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.t("design:type",Boolean)],P2.prototype,"missingSource",void 0);_.k([_.X({computed:"computeIcon_(data.icon)"}),_.t("design:type",String)],P2.prototype,"icon",void 0);_.k([_.X({computed:"computeIcon_(data.secondaryIcon)"}),_.t("design:type",String)],P2.prototype,"secondaryIcon",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.t("design:type",String)],P2.prototype,"clarifyStyle",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.t("design:type",String)],P2.prototype,"backgroundStyle",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],P2.prototype,"roundContainer",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],P2.prototype,"amsterdamEnabled",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],P2.prototype,"dataChanged",null);
P2=_.k([_.b({is:"ytd-clarification-renderer",disableElementRegistration:!0})],P2);
_.A(P2,"ytd-clarification-renderer",function(){if(yS8!==void 0)return yS8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return yS8=E},{mode:1});var CX8;var wBL;var zl=function(){var E=_.r.apply(this,arguments)||this;E.amsterdamEnabled=_.d("enable_desktop_amsterdam_info_panels");return E};
_.L(zl,_.r);_.l=zl.prototype;_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.l.computeIcon=function(E){return E?"yt-icons:"+E.toLowerCase():null};
_.l.computeUseContacts=function(E){return!!E.contacts&&E.contacts.length>0};
_.l.computePhoneContact=function(E){var B,I;return(B=E.contacts)==null?void 0:(I=B.find(function(T){var e;return(T==null?void 0:(e=T.icon)==null?void 0:e.iconType)==="PHONE"}))==null?void 0:I.actionText};
_.l.computeSmsContact=function(E){var B,I;return(B=E.contacts)==null?void 0:(I=B.find(function(T){var e;return(T==null?void 0:(e=T.icon)==null?void 0:e.iconType)==="SMS"}))==null?void 0:I.actionText};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],zl.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],zl.prototype,"amsterdamEnabled",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.t("design:type",Boolean)],zl.prototype,"useContacts",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.t("design:type",String)],zl.prototype,"phoneContact",void 0);zl=_.k([_.b({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],zl);
_.A(zl,"ytd-single-action-emergency-support-renderer",function(){if(wBL!==void 0)return wBL;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return wBL=E},{mode:1});_.QH("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var md=function(){var E=_.r.apply(this,arguments)||this;E.roundedContainer=!0;E.amsterdamEnabled=_.d("enable_desktop_amsterdam_info_panels");return E};
_.L(md,_.r);md.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"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],md.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],md.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],md.prototype,"roundedContainer",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],md.prototype,"amsterdamEnabled",void 0);
md=_.k([_.b({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],md);
_.A(md,"ytd-emergency-onebox-renderer",function(){if(CX8!==void 0)return CX8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return CX8=E},{mode:1});var Z3H;_.QH("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Qt=function(){return _.r.apply(this,arguments)||this};
_.L(Qt,_.r);Qt.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"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Qt.prototype,"data",void 0);Qt=_.k([_.b({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Qt);
_.A(Qt,"ytd-exploratory-results-renderer",function(){if(Z3H!==void 0)return Z3H;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Z3H=E},{mode:1});var PX9;_.QH("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var db=function(){var E=_.r.apply(this,arguments)||this;E.messageData=null;return E};
_.L(db,_.r);_.l=db.prototype;_.l.onServiceRequestCompleted=function(E,B){E=B.actions||[];B=0;for(var I=E.length;B<I;B++){var T=E[B],e=void 0,c=void 0;if((e=_.h(T,_.mJ))==null?0:(c=e.item)==null?0:c.messageRenderer)this.messageData=_.h(T,_.mJ).item.messageRenderer}};
_.l.dataChanged=function(){var E=this.data;this.hostElement.hidden=!1;_.VQ(this.hostElement,"is-channel",E&&!E.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.l.computeThumbnailWidth=function(E){return E?126:56};
_.l.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.l.onSubmitTap=function(){var E=this.data,B=this.selectedResponseIndex;E!==void 0&&B!==void 0&&(E=E.responses[B],E.responseData&&(_.d("web_ytd_feedback_elicitation_single_question_renderer_command_resolver_ks")?_.l1(this.hostElement,[E.responseData]):_.Q().resolve(_.Dt).resolveCommand(E.responseData,{form:{element:this.hostElement}})))};
_.l.onDismissTap=function(){this.hostElement.hidden=!0;var E=this.data;E!==void 0&&E.dismissalEndpoint&&(_.d("web_ytd_feedback_elicitation_single_question_renderer_command_resolver_ks")?_.l1(this.hostElement,[E.dismissalEndpoint]):_.Q().resolve(_.Dt).resolveCommand(E.dismissalEndpoint,{form:{element:this.hostElement}}))};
_.l.updateSelectedResponseIndexFromBinding=function(E){this.selectedResponseIndex=E.detail.value};
db.prototype.onSelectedResponseIndexChange=db.prototype.onSelectedResponseIndexChange;db.prototype.dataChanged=db.prototype.dataChanged;db.prototype.onServiceRequestCompleted=db.prototype.onServiceRequestCompleted;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],db.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],db.prototype,"messageData",void 0);
_.k([_.X(),_.t("design:type",Number)],db.prototype,"selectedResponseIndex",void 0);_.k([_.$7("#submit-button"),_.t("design:type",HTMLButtonElement)],db.prototype,"submitButton",void 0);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],db.prototype,"onServiceRequestCompleted",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],db.prototype,"dataChanged",null);
_.k([_.EM("selectedResponseIndex"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],db.prototype,"onSelectedResponseIndexChange",null);db=_.k([_.b({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],db);
_.A(db,"ytd-feedback-elicitation-single-question-renderer",function(){if(PX9!==void 0)return PX9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return PX9=E},{mode:1});var zj1;var h_=function(){return _.r.apply(this,arguments)||this};
_.L(h_,_.r);h_.prototype.computeThumbnailWidth=function(E){return E?602:428};
h_.prototype.updateWideFromBinding=function(E){this.wide=E.detail.value};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],h_.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],h_.prototype,"wide",void 0);h_=_.k([_.b({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],h_);
_.A(h_,"ytd-newspaper-hero-video-renderer",function(){if(zj1!==void 0)return zj1;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return zj1=E},{mode:1});var mn8;var sa=function(){return _.r.apply(this,arguments)||this};
_.L(sa,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],sa.prototype,"rendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],sa.prototype,"data",void 0);sa=_.k([_.b({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],sa);
_.A(sa,"ytd-newspaper-mini-video-renderer",function(){if(mn8!==void 0)return mn8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return mn8=E},{mode:1});var QCI;_.QH("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var u3=function(){return _.r.apply(this,arguments)||this};
_.L(u3,_.r);u3.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"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],u3.prototype,"data",void 0);u3=_.k([_.b({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],u3);
_.A(u3,"ytd-newspaper-renderer",function(){if(QCI!==void 0)return QCI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return QCI=E},{mode:1});var dn2;_.QH("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Ly=function(){var E=_.r.apply(this,arguments)||this;E.isSegment=!1;E.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};E.nextContinuation={continuationType:"playlistVideoListContinuation"};return E};
_.L(Ly,_.r);_.l=Ly.prototype;_.l.attached=function(){_.Q();var E;(E=_.Q().resolve(_.Fx(_.gx)))!=null&&(E.playlistVideoListElement=this.hostElement)};
_.l.detached=function(){var E;(E=_.Q().resolve(_.Fx(_.gx)))!=null&&(E.playlistVideoListElement=void 0);E=_.Q().resolve(_.Fx(_.UL));_.d("web_enable_voting_animation")&&E&&(E.parentElem=void 0,E.videos=[],E.continuationsPresent=!1,E.showRefreshPill=!1)};
_.l.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"}}}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.l.dataChanged=function(){var E=_.Q().resolve(_.Fx(_.UL));if(_.d("web_enable_voting_animation")&&this.data&&E){var B=_.n(this.hostElement).querySelector("#contents");B&&(E.parentElem=B);E.addVideos(this.data.contents)}_.X_R(this.ytReorderableBehavior)};
_.l.onRendererstamperFinished=function(){this.canReorder&&_.rZu(this.ytReorderableBehavior,_.n(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.l.onPlaylistReloading=function(){this.isReloading=!0};
_.l.onUpdateSetVideoId=function(E){if(E.detail&&this.data&&this.data.contents){var B=E.detail;E=this.data.contents.findIndex(function(e){var c;return((c=e.playlistVideoRenderer)==null?void 0:c.videoId)===B.videoId});
if(!(E<0)&&B.setVideoId&&(this.set("data.contents."+E+".playlistVideoRenderer.setVideoId",B.setVideoId),_.d("web_enable_voting_animation"))){var I;if(E=_.h((I=this.data.contents[E].playlistVideoRenderer)==null?void 0:I.engagementBar,_.awQ)){var T;(T=E.actions)==null||T.forEach(function(e){if(e=_.h(e,_.v$F))e.itemId=B.setVideoId})}(I=_.Q().resolve(_.Fx(_.UL)))&&qbg(I,B.videoId,B.setVideoId)}}};
_.l.computeContentsClass=function(E){return E?"reloading":""};
_.l.computeIsSortable=function(E,B){return E&&B>0&&!this.isSegment&&!_.d("shorts_in_playlists_web")};
_.l.computeIsEditable=function(E){return E};
_.l.computeCanReorder=function(E){return E};
_.l.handlePlaylistRemoveVideosAction=function(E){if(this.get("playlistRemoveVideosAction.setVideoIds",E)&&this.data&&this.data.contents){E=_.h(E,_.AwN).setVideoIds;for(var B=this.data.contents.length-1;B>=0;){var I=this.data.contents[B].playlistVideoRenderer;I&&I.setVideoId&&E.includes(I.setVideoId)&&this.splice("data.contents",B,1);B--}_.I2(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.l.updateIndices=function(){if(this.data&&this.data.contents)for(var E=0;E<this.data.contents.length;E++)this.set("data.contents."+E+".playlistVideoRenderer.index",_.jj(String(E+1)))};
_.l.handleDrop=function(E){E=E.currDragItem;var B=_.XF(E.parentNode.childNodes,E),I=this.data.contents.splice(Number(_.U3(E.data.index))-1,1)[0];this.data.contents.splice(B,0,I);B=B?this.get("contents."+(B-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();E=this.buildReorderServiceEndpoint(E.data.setVideoId,B);this.ytComponentBehavior.resolveCommand(E)};
_.l.buildReorderServiceEndpoint=function(E,B){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",E),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",B),this.data.onReorderEndpoint):null};
_.l.handleUpdatePlaylistAction=function(E){var B;(E=_.h((B=_.h(E,_.jz6))==null?void 0:B.updatedRenderer,_.T4l))&&this.canReorder!==E.canReorder&&this.set("data.canReorder",E.canReorder);E&&E.contents&&(this.set("data.contents",E.contents),this.isReloading=!1);E&&E.continuations&&this.set("data.continuations",E.continuations)};
_.l.handleAddRendererToItemSectionAction=function(E){var B,I=(B=_.h(E,EnI))==null?void 0:B.renderer,T;I&&((T=_.h(E,EnI))==null?void 0:T.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,I),E=_.Q().resolve(_.Fx(_.UL)),_.d("web_enable_voting_animation")&&E&&(I&&(B=_.YVQ(I))&&E.recommendedVideos.push({itemId:B,videoId:_.y0F(I),voteCount:_.C5J(I),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.l.isVotingEnabledOnPlaylist=function(E){if(!E)return!1;E=_.p(E);for(E=E.next();!E.done;E=E.next()){var B=void 0;return!!_.h((B=E.value.playlistVideoRenderer)==null?void 0:B.engagementBar,_.awQ)}return!1};
_.l.onAppendContinuationItemsActionFinished=function(){var E;this.isVotingEnabledOnPlaylist((E=this.data)==null?void 0:E.contents)&&(this.updateIndices(),E=_.Q().resolve(_.Fx(_.UL)),_.d("web_enable_voting_animation")&&E&&this.data&&E.addVideos(this.data.contents))};
_.l.updateVideoData=function(E){if(E.detail&&this.data&&this.data.contents){var B=E.detail;E=B.toIdx;var I=B.itemId,T=B.newVoteCount,e=B.voteStatus;B=B.hideItem;var c,Y,v=(c=this.data)==null?void 0:(Y=c.contents)==null?void 0:Y.findIndex(function(z){return _.YVQ(z)===I});
if(!(v<0)){c=this.data.contents[v];var y;if((y=c.playlistVideoRenderer)==null?0:y.voteCount)c.playlistVideoRenderer.voteCount=T;var Z;if(y=_.h((Z=c.playlistVideoRenderer)==null?void 0:Z.engagementBar,_.awQ)){var P;(P=y.actions)==null||P.forEach(function(z){(z=_.h(z,_.v$F))&&z.initialState&&(z.initialState.votes=T,z.initialState.status=e)})}this.data.contents.splice(v,1);
B||this.data.contents.splice(E,0,c);this.updateIndices()}}};
Ly.prototype.updateVideoData=Ly.prototype.updateVideoData;Ly.prototype.onAppendContinuationItemsActionFinished=Ly.prototype.onAppendContinuationItemsActionFinished;Ly.prototype.onUpdateSetVideoId=Ly.prototype.onUpdateSetVideoId;Ly.prototype.onPlaylistReloading=Ly.prototype.onPlaylistReloading;Ly.prototype.onRendererstamperFinished=Ly.prototype.onRendererstamperFinished;Ly.prototype.dataChanged=Ly.prototype.dataChanged;
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Ly.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Ly.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.Gt.YtNextContinuationBehavior),_.t("design:type",Object)],Ly.prototype,"ytNextContinuationBehavior",void 0);
_.k([_.g(_.bHz),_.t("design:type",Object)],Ly.prototype,"ytReorderableBehavior",void 0);_.k([_.g(_.xo),_.t("design:type",Object)],Ly.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Ly.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ly.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],Ly.prototype,"isReloading",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Ly.prototype,"isSegment",void 0);_.k([_.X({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.t("design:type",Boolean)],Ly.prototype,"isSortable",void 0);_.k([_.X({computed:"computeIsEditable(data.isEditable)"}),_.t("design:type",Boolean)],Ly.prototype,"isEditable",void 0);_.k([_.X({computed:"computeCanReorder(data.canReorder)"}),_.t("design:type",Boolean)],Ly.prototype,"canReorder",void 0);
_.k([_.X({value:101}),_.t("design:type",Number)],Ly.prototype,"scrollMargin",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ly.prototype,"dataChanged",null);_.k([_.RN("yt-rendererstamper-finished"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ly.prototype,"onRendererstamperFinished",null);
_.k([_.RN("yt-playlist-reloading"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ly.prototype,"onPlaylistReloading",null);_.k([_.RN("yt-update-set-video-id"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Ly.prototype,"onUpdateSetVideoId",null);
_.k([_.RN("yt-append-continuation-items-action-finished"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ly.prototype,"onAppendContinuationItemsActionFinished",null);_.k([_.RN("yt-update-video-data-voting-animation"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Ly.prototype,"updateVideoData",null);Ly=_.k([_.b({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Ly);
_.A(Ly,"ytd-playlist-video-list-renderer",function(){if(dn2!==void 0)return dn2;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return dn2=E},{mode:_.qi("kevlar_poly_si_batch_j047")?1:2});var hjT;var xA=function(){return _.r.apply(this,arguments)||this};
_.L(xA,_.r);xA.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"}}}}};
xA.prototype.onTextWrapperTap=function(E){var B=this.data&&this.data.navigationEndpoint;B&&!_.XZ(_.W8(E),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.$O(this.hostElement,"yt-navigate",{endpoint:B})};
xA.prototype.dataChanged=function(){var E=this.get("data.offerButton.buttonRenderer.serviceEndpoint");E&&E.commandMetadata&&_.h(E.commandMetadata,_.LU)&&_.h(E.commandMetadata,_.LU).fireAutomatically&&_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}})};
xA.prototype.dataChanged=xA.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],xA.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.S_),_.t("design:type",Object)],xA.prototype,"ytdLockupBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],xA.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("enable_desktop_search_bigger_thumbs")}}),
_.t("design:type",Boolean)],xA.prototype,"useBiggerThumbs",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.EF("desktop_search_bigger_thumbs_style")}}),
_.t("design:type",String)],xA.prototype,"biggerThumbsStyle",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],xA.prototype,"leftAligned",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],xA.prototype,"dataChanged",null);xA=_.k([_.b({disableElementRegistration:!0,is:"ytd-movie-renderer"})],xA);
_.A(xA,"ytd-movie-renderer",function(){if(hjT!==void 0)return hjT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return hjT=E},{mode:1});var sC8;var Gl=function(){var E=_.r.apply(this,arguments)||this;E.rounded=!0;E.pageAttachedTo=void 0;E.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return E};
_.L(Gl,_.r);Gl.prototype.attached=function(){this.pageAttachedTo=_.Q().resolve(_.oS).getCurrentPage();_.$O(this.hostElement,"yt-player-attached",this.player)};
Gl.prototype.detached=function(){var E;if((E=this.pageAttachedTo)==null?0:E.hostElement)_.$O(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Gl.prototype.dataChanged=function(){var E;if((E=this.data)==null?0:E.videoId)E={video_id:this.data.videoId,autoplay:!0},!_.d("miniplayer_stop_channel_video_autoplay_killswitch")&&_.Q().resolve(_.W3).isMiniplayerActive()&&(E.pause_at_start=!0,E.autoplay=!1),this.player.loadVideoWithPlayerVars(E)};
Gl.prototype.handleSignalActionPausePlayer=function(){_.k3().pause()};
Gl.prototype.dataChanged=Gl.prototype.dataChanged;_.k([_.X(),_.t("design:type",Object)],Gl.prototype,"data",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Gl.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Gl.prototype,"rounded",void 0);_.k([_.$7("#player"),_.t("design:type",Object)],Gl.prototype,"player",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Gl.prototype,"dataChanged",null);Gl=_.k([_.b({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Gl);
_.A(Gl,"ytd-channel-video-player-renderer",function(){if(sC8!==void 0)return sC8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return sC8=E},{mode:1});var uid;var LcT;var xnd;var Oa=function(){var E=_.r.apply(this,arguments)||this;E.playing=!1;E.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.$l(E);E.active=!1;return E};
_.L(Oa,_.r);_.l=Oa.prototype;_.l.detached=function(){this.stop()};
_.l.play=function(){var E=this,B,I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return E.active=!0,B=E.get("data.inlinePlaybackEndpoint.watchEndpoint"),I=B.videoId||E.data.videoId,T=B.startTimeSeconds||0,e=B.playerParams||null,_.d("kevlar_player_update_killswitch")?_.C(Y,E.playerEl.update({args:{video_id:I,startSeconds:T,player_params:e}}),2):(E.playerEl.loadVideoWithPlayerVars({video_id:I,startSeconds:T,player_params:e,autoplay:!0}),Y.jumpTo(2));if(Y.nextAddress!=4)return _.C(Y,E.playerEl.getPlayerPromise(),
4);c=Y.yieldResult;c.unloadModule("annotations_module");c.addEventListener("onStateChange",function(v){E.onPlayerStateChange(v)});
_.ER(Y)})};
_.l.onPlayerStateChange=function(E){if(this.active)switch(this.playing=E===1,E){case 1:_.$O(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.$O(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.l.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.l.resize=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,E.playerEl.getPlayerPromise(),2);B=I.yieldResult;B.setSize(NaN,NaN);_.ER(I)})};
_.k([_.X(),_.t("design:type",Object)],Oa.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Oa.prototype,"playing",void 0);_.k([_.X(),_.t("design:type",Object)],Oa.prototype,"playerId",void 0);_.k([_.$7("#player"),_.t("design:type",Object)],Oa.prototype,"playerEl",void 0);Oa=_.k([_.b({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Oa);
_.A(Oa,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(xnd!==void 0)return xnd;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return xnd=E},{mode:1});var GCI;var O3O;var ny=function(){var E=_.r.apply(this,arguments)||this;E.width=0;return E};
_.L(ny,_.r);_.l=ny.prototype;_.l.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Kq(this,this.onEnded));this.mp4El.addEventListener("error",_.Kq(this,this.onError))};
_.l.detached=function(){this.videoEl.removeEventListener("ended",_.Kq(this,this.onEnded));this.mp4El.removeEventListener("error",_.Kq(this,this.onError))};
_.l.play=function(){var E=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var B=this.videoEl.play();B?B.then(function(){E.handleVideoStartPlaying()}).catch(function(){_.$O(E.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.$O(this.hostElement,"yt-video-thumbnail-not-playing")};
_.l.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.l.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.l.dataChanged=function(){var E;if((E=this.data)==null?0:E.thumbnailPlaceholder)E=_.Aa(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+E+")";this.stop();this.autoplay&&this.play()};
_.l.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.l.onEnded=function(){this.stop();_.$O(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.l.onError=function(){_.$O(this.hostElement,"yt-video-thumbnail-error")};
_.l.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.l.getVideoThumbnail=function(E){if(E&&E.length)return E[0]};
ny.prototype.dataChanged=ny.prototype.dataChanged;_.k([_.X(),_.t("design:type",Object)],ny.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],ny.prototype,"animatePlaceholderOnEntrance",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],ny.prototype,"autoplay",void 0);_.k([_.X({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.t("design:type",Object)],ny.prototype,"videoThumbnail",void 0);
_.k([_.X(),_.t("design:type",Boolean)],ny.prototype,"loop",void 0);_.k([_.X(),_.t("design:type",Boolean)],ny.prototype,"isVideoPlaying",void 0);_.k([_.X(),_.t("design:type",Object)],ny.prototype,"width",void 0);_.k([_.$7("#mp4"),_.t("design:type",HTMLElement)],ny.prototype,"mp4El",void 0);_.k([_.$7("#placeholder"),_.t("design:type",HTMLElement)],ny.prototype,"placeholderEl",void 0);_.k([_.$7("#video"),_.t("design:type",HTMLVideoElement)],ny.prototype,"videoEl",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ny.prototype,"dataChanged",null);ny=_.k([_.QE({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],ny);
_.A(ny,"yt-video-as-thumbnail-details",function(){if(O3O===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;GCI===void 0&&(GCI=document.createElement("template"));var T=GCI;I.call(B,T.content.cloneNode(!0),E.content.firstChild);O3O=E}E=O3O;return E},{mode:2});var Mb=function(){var E=_.r.apply(this,arguments)||this;E.disableGridStateAware=!1;E.animationEnabled=_.d("enable_web_ketchup_hero_animation");E.transitioningOut=!1;E.narrow=!1;E.narrower=!1;E.isCarouselInFeed=!1;E.videoTimeoutJobId=0;E.panelTimeoutJobId=0;E.panelTimeoutJobStartMs=0;E.actionMap={"yt-window-resized":"onWindowResized"};return E};
_.L(Mb,_.r);_.l=Mb.prototype;_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.l.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var E;this.player&&((E=this.data)==null?0:E.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.l.attached=function(){this.onWindowResized()};
_.l.detached=function(){this.clearTimeouts()};
_.l.onWindowResized=function(){this.updateSize()};
_.l.computePanelLayout=function(E){return E&&E.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.l.playVideo=function(){var E;this.video&&((E=this.data)==null?0:E.videoThumbnail)&&this.video.play();var B;this.player&&((B=this.data)==null?0:B.inlinePlaybackRenderer)&&this.player.play()};
_.l.stopVideo=function(){var E;this.video&&((E=this.data)==null?0:E.videoThumbnail)&&this.video.stop();var B;this.player&&((B=this.data)==null?0:B.inlinePlaybackRenderer)&&this.player.stop()};
_.l.transitionOut=function(){var E=this;this.transitioningOut=!0;return new Promise(function(B){var I=function(){_.n(E.hostElement).querySelector("#action-button").removeEventListener("animationend",I);_.Ll.cancelJob(T);B();E.transitioningOut=!1};
var T=_.PC(_.Ll,I,1E3);_.n(E.hostElement).querySelector("#action-button").addEventListener("animationend",I);E.player&&(E.player.playing=!1)})};
_.l.computeMetadataOrder=function(E){return E&&E.metadataOrder&&E.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?E.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.l.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.l.computeAvatarSize=function(E){return E&&E.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.l.onContentClick=function(E){if(!_.XZ(_.W8(E),this.hostElement,["A".toString(),"BUTTON".toString()])){var B;if((B=this.data)==null?0:B.navigationEndpoint){var I;this.componentBehavior.resolveCommand((I=this.data)==null?void 0:I.navigationEndpoint)}}};
_.l.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.l.setBackgroundImage=function(E){if(E=this.getBackgroundImageUrl(E))_.n(this.hostElement).querySelector("#hero").style.backgroundImage="url("+E+")"};
_.l.setScrimLayer=function(E){var B=this.getScrimLayerColorStops(E);E=((E==null?void 0:E.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(E=180);_.HA("HTML_DIR")==="rtl"&&(E=-E);B&&(_.n(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+E+"deg, "+B+")")};
_.l.isNarrower=function(){return this.hostElement.clientWidth<Mb.NARROW_VERSION_SIZE};
_.l.getScrimLayerColorStops=function(){var E,B=(E=this.data)==null?void 0:E.scrimColorValues;if(!B)return null;if(B.length===1)return E=_.hR(B[0]),E+" 0%, "+E+" 100%";if(B.length===3){var I=[0,72,98];return B.map(function(T,e){return _.hR(T)+" "+I[e]+"%"}).join(",")}return null};
_.l.getBackgroundImageUrl=function(E){return E&&E.largeFormFactorBackgroundThumbnail?_.Aa((E.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||E.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.l.onPlaying=function(){this.startVideoTimeout()};
_.l.onEnded=function(){this.rotate()};
_.l.startPanelTimeout=function(){var E=this;if(!this.panelTimeoutJobId){var B=this.get("data.minPanelDisplayDurationMs");B&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.PC(_.Ll,function(){E.rotate()},B))}};
_.l.startVideoTimeout=function(){var E=this;if(!this.videoTimeoutJobId){_.Ll.cancelJob(this.panelTimeoutJobId);var B=Date.now()-this.panelTimeoutJobStartMs;B=Math.max(0,this.get("data.minPanelDisplayDurationMs")-B);B=Math.max(this.get("data.minVideoPlayDurationMs")||0,B);this.videoTimeoutJobId=_.PC(_.Ll,function(){E.rotate()},B)}};
_.l.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Ll.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Ll.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.l.rotate=function(){this.clearTimeouts();_.$O(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Up.Object.defineProperties(Mb.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.n(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.n(this.hostElement).querySelector("#video")}}});
_.Up.Object.defineProperties(Mb,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Mb.prototype.onEnded=Mb.prototype.onEnded;Mb.prototype.onPlaying=Mb.prototype.onPlaying;Mb.prototype.dataChanged=Mb.prototype.dataChanged;_.k([_.g(_.nz),_.t("design:type",Object)],Mb.prototype,"ytdGridStateAwareBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Mb.prototype,"componentBehavior",void 0);_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],Mb.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.g(_.gSZ),_.t("design:type",Object)],Mb.prototype,"ytBooleanLogicBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Mb.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Mb.prototype,"disableGridStateAware",void 0);_.k([_.X(),_.t("design:type",Object)],Mb.prototype,"data",void 0);_.k([_.X({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.t("design:type",String)],Mb.prototype,"panelLayout",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Mb.prototype,"animationEnabled",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Mb.prototype,"transitioningOut",void 0);
_.k([_.X({computed:"computeMetadataOrder(data)"}),_.t("design:type",Boolean)],Mb.prototype,"metadataOrder",void 0);_.k([_.X({computed:"computeByline(data)"}),_.t("design:type",Object)],Mb.prototype,"byline",void 0);_.k([_.X({computed:"computeAvatarSize(data)"}),_.t("design:type",Number)],Mb.prototype,"avatarSize",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Mb.prototype,"narrow",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Mb.prototype,"narrower",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Mb.prototype,"layoutStyle",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Mb.prototype,"isCarouselInFeed",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Mb.prototype,"dataChanged",null);_.k([_.RN("yt-default-promo-panel-renderer-playing"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Mb.prototype,"onPlaying",null);
_.k([_.RN("yt-default-promo-panel-renderer-ended"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Mb.prototype,"onEnded",null);Mb=_.k([_.b({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Mb);
_.A(Mb,"ytd-default-promo-panel-renderer",function(){if(LcT!==void 0)return LcT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return LcT=E},{mode:1});_.QH("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var H2=function(){var E=_.r.apply(this,arguments)||this;E.narrower=!1;E.dotMenuVisible=!1;E.paginationThumbnailsVisible=!1;E.active=!0;E.disableGridStateAware=!1;E.actionMap={"yt-window-resized":"onWindowResized"};return E};
_.L(H2,_.r);_.l=H2.prototype;_.l.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]]"}}}}}};
_.l.attached=function(){this.onWindowResized()};
_.l.detached=function(){this.jobId&&_.Ll.cancelJob(this.jobId);this.updateSizeJobId&&_.Ll.cancelJob(this.updateSizeJobId)};
_.l.onWindowResized=function(){this.updateSize()};
_.l.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.l.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.l.setCarouselItem=function(E){E>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Ll.cancelJob(this.jobId);var B=this.getCurrentPanelElement();B&&B.stopVideo();this.currentItemIndex=E%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(B||(B=this.getCurrentPanelElement()),B.playVideo()):this.startRotationJob()};
_.l.scrollThumbnails=function(E){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var B=this.getCurrentPaginationElement();if(B){var I=_.n(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?I.style.transform="translateX(0)":(B=B.offsetWidth+8,I.style.transform="translateX(-"+B*(E-Math.ceil(Math.floor(this.overlay.offsetWidth/B)/2)+1)+"px)")}}};
_.l.onDataChanged=function(){var E=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.dT(_.Ll,function(){E.getCurrentPanelElement().updateSize();E.updateSize()}))};
_.l.getCurrentPanelElement=function(){return _.n(_.n(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.l.getCurrentPaginationElement=function(){return _.n(_.n(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.l.getNavigationClass=function(E,B){return E===B?"selected":""};
_.l.getNavigationDurationStyle=function(E){return"animation-duration:"+(this.get("data.carouselItems."+E+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.l.onNavigationTap=function(E){var B=this,I=E.model.index;I!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){B.setCarouselItem(I)}),this.autorotateActive=!1)};
_.l.onVideoThumbnailEnded=function(){var E=this;if(this.shouldRotate()){var B=this.getCurrentPaginationElement();B&&(B.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){B.classList.remove("finished");E.setNextCarouselItem()}))}};
_.l.onVideoThumbnailError=function(){this.startRotationJob()};
_.l.onVideoNotPlaying=function(){this.startRotationJob()};
_.l.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.l.startRotationJob=function(){var E=this;_.Ll.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Ll.addLowPriorityJob(function(){E.getCurrentPanelElement().transitionOut().then(function(){E.setNextCarouselItem()})},this.rotationTimeout))};
_.l.computeDotMenuVisible=function(E,B){return!!E&&!!E.carouselItems&&E.carouselItems.length>1&&!E.paginationThumbnails||!!B};
_.l.computePaginationThumbnailsVisible=function(E,B){var I,T;return((T=E==null?void 0:(I=E.paginationThumbnails)==null?void 0:I.length)!=null?T:0)>1&&!B};
_.l.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.l.computePaginatorAlignment=function(E){return(E==null?void 0:E.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.l.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.l.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.l.isNarrower=function(E){return(E!=null?E:0)<Mb.NARROW_VERSION_SIZE};
H2.prototype.activeChanged=H2.prototype.activeChanged;H2.prototype.onVideoNotPlaying=H2.prototype.onVideoNotPlaying;H2.prototype.onVideoThumbnailError=H2.prototype.onVideoThumbnailError;H2.prototype.onVideoThumbnailEnded=H2.prototype.onVideoThumbnailEnded;H2.prototype.onDataChanged=H2.prototype.onDataChanged;_.k([_.g(_.nz),_.t("design:type",Object)],H2.prototype,"ytdGridStateAwareBehavior",void 0);
_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],H2.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],H2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],H2.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],H2.prototype,"currentItem",void 0);
_.k([_.X(),_.t("design:type",Number)],H2.prototype,"currentItemIndex",void 0);_.k([_.X(),_.t("design:type",Number)],H2.prototype,"rotationTimeout",void 0);_.k([_.X(),_.t("design:type",Number)],H2.prototype,"loopCount",void 0);_.k([_.X({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.t("design:type",String)],H2.prototype,"paginatorAlignment",void 0);_.k([_.X(),_.t("design:type",Number)],H2.prototype,"jobId",void 0);
_.k([_.X(),_.t("design:type",Number)],H2.prototype,"updateSizeJobId",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],H2.prototype,"isCarouselInFeed",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],H2.prototype,"narrower",void 0);_.k([_.X({computed:"computeDotMenuVisible(data, narrower)"}),_.t("design:type",Object)],H2.prototype,"dotMenuVisible",void 0);
_.k([_.X({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.t("design:type",Object)],H2.prototype,"paginationThumbnailsVisible",void 0);_.k([_.X({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.t("design:type",String)],H2.prototype,"layoutType",void 0);_.k([_.X({value:!0,reflectToAttribute:!0}),_.t("design:type",Boolean)],H2.prototype,"autorotateActive",void 0);_.k([_.X(),_.t("design:type",Object)],H2.prototype,"active",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],H2.prototype,"disableGridStateAware",void 0);_.k([_.$7("#overlay"),_.t("design:type",HTMLElement)],H2.prototype,"overlay",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],H2.prototype,"onDataChanged",null);
_.k([_.RN("yt-video-thumbnail-ended"),_.RN("yt-default-promo-panel-renderer-rotate"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],H2.prototype,"onVideoThumbnailEnded",null);_.k([_.RN("yt-video-thumbnail-error"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],H2.prototype,"onVideoThumbnailError",null);
_.k([_.RN("yt-video-thumbnail-not-playing"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],H2.prototype,"onVideoNotPlaying",null);_.k([_.i6("active"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],H2.prototype,"activeChanged",null);H2=_.k([_.b({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],H2);
_.A(H2,"ytd-carousel-item-renderer",function(){if(uid!==void 0)return uid;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return uid=E},{mode:2});var nn1;var MTL;var H3g;var NmT;var Nb=function(){var E=_.r.apply(this,arguments)||this;E.originalQuery=null;E.originalEndpoint=null;return E};
_.L(Nb,_.r);Nb.prototype.computeShowOriginalQueryWithoutEndpoint_=function(E,B){return!(!E||B)};
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Nb.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Nb.prototype,"correctedText",void 0);_.k([_.X(),_.t("design:type",Object)],Nb.prototype,"correctedQuery",void 0);_.k([_.X(),_.t("design:type",Object)],Nb.prototype,"correctedEndpoint",void 0);_.k([_.X(),_.t("design:type",Object)],Nb.prototype,"originalText",void 0);_.k([_.X(),_.t("design:type",Object)],Nb.prototype,"originalQuery",void 0);
_.k([_.X(),_.t("design:type",Object)],Nb.prototype,"originalEndpoint",void 0);_.k([_.X({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.t("design:type",Boolean)],Nb.prototype,"showOriginalQueryWithoutEndpoint",void 0);Nb=_.k([_.QE({is:"yt-search-query-correction",disableElementRegistration:!0})],Nb);
_.A(Nb,"yt-search-query-correction",function(){if(NmT===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;H3g===void 0&&(H3g=document.createElement("template"));var T=H3g;I.call(B,T.content.cloneNode(!0),E.content.firstChild);NmT=E}E=NmT;return E},{mode:2});_.QH("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var gb=function(){return _.r.apply(this,arguments)||this};
_.L(gb,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],gb.prototype,"data",void 0);gb=_.k([_.QE({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],gb);
_.A(gb,"yt-did-you-mean-renderer",function(){if(MTL===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;nn1===void 0&&(nn1=document.createElement("template"));var T=nn1;I.call(B,T.content.cloneNode(!0),E.content.firstChild);MTL=E}E=MTL;return E},{mode:2});var gnm;var Sds;_.QH("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var SW=function(){return _.r.apply(this,arguments)||this};
_.L(SW,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],SW.prototype,"data",void 0);SW=_.k([_.QE({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],SW);
_.A(SW,"yt-including-results-for-renderer",function(){if(Sds===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;gnm===void 0&&(gnm=document.createElement("template"));var T=gnm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Sds=E}E=Sds;return E},{mode:2});var JSs;var Wcs;_.QH("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var J_=function(){return _.r.apply(this,arguments)||this};
_.L(J_,_.r);J_.prototype.computeExtraClasses_=function(E,B){var I="";E&&(I+=" "+E.toLowerCase().replace(/_/g,"-"));B&&(I+=" "+B.toLowerCase().replace(/_/g,"-"));return I};
J_.prototype.computeUrlImg_=function(){var E=this.data;E.image&&(_.n(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Aa(E.image.thumbnails,Number.MAX_VALUE)+")")};
J_.prototype.computeUrlImg_=J_.prototype.computeUrlImg_;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],J_.prototype,"data",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J_.prototype,"computeUrlImg_",null);J_=_.k([_.QE({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],J_);
_.A(J_,"yt-music-pass-feature-info-renderer",function(){if(Wcs===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;JSs===void 0&&(JSs=document.createElement("template"));var T=JSs;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Wcs=E}E=Wcs;return E},{mode:2});var XB9;var rS8;_.QH("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var W2=function(){return _.r.apply(this,arguments)||this};
_.L(W2,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],W2.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],W2.prototype,"data",void 0);W2=_.k([_.QE({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],W2);
_.A(W2,"yt-no-results-found-showing-results-for-renderer",function(){if(rS8===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;XB9===void 0&&(XB9=document.createElement("template"));var T=XB9;I.call(B,T.content.cloneNode(!0),E.content.firstChild);rS8=E}E=rS8;return E},{mode:2});var b3O;var ons;_.QH("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var XU=function(){return _.r.apply(this,arguments)||this};
_.L(XU,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],XU.prototype,"data",void 0);XU=_.k([_.QE({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],XU);
_.A(XU,"yt-results-without-quotes-renderer",function(){if(ons===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;b3O===void 0&&(b3O=document.createElement("template"));var T=b3O;I.call(B,T.content.cloneNode(!0),E.content.firstChild);ons=E}E=ons;return E},{mode:2});var ASL;var jC8;_.QH("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var rb=function(){return _.r.apply(this,arguments)||this};
_.L(rb,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],rb.prototype,"data",void 0);rb=_.k([_.QE({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],rb);
_.A(rb,"yt-search-no-results-renderer",function(){if(jC8===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;ASL===void 0&&(ASL=document.createElement("template"));var T=ASL;I.call(B,T.content.cloneNode(!0),E.content.firstChild);jC8=E}E=jC8;return E},{mode:2});var Un8;var kCL;_.QH("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var b3=function(){return _.r.apply(this,arguments)||this};
_.L(b3,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],b3.prototype,"data",void 0);b3=_.k([_.QE({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],b3);
_.A(b3,"yt-showing-results-for-renderer",function(){if(kCL===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Un8===void 0&&(Un8=document.createElement("template"));var T=Un8;I.call(B,T.content.cloneNode(!0),E.content.firstChild);kCL=E}E=kCL;return E},{mode:2});var tT9;var fq9;var VTg;var qdg;var o6=function(){var E=_.r.apply(this,arguments)||this;E.answerExpanded=!1;return E};
_.L(o6,_.r);o6.prototype.toggleAnswer_=function(E){var B=_.XN(E);B&&B.classList.contains("yt-simple-endpoint")||(E.preventDefault(),E.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
o6.prototype.toggleAnswer_=o6.prototype.toggleAnswer_;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],o6.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],o6.prototype,"answerExpanded",void 0);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],o6.prototype,"toggleAnswer_",null);
o6=_.k([_.QE({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],o6);
_.A(o6,"yt-generic-faq-question-renderer",function(){if(qdg===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;VTg===void 0&&(VTg=document.createElement("template"));var T=VTg;I.call(B,T.content.cloneNode(!0),E.content.firstChild);qdg=E}E=qdg;return E},{mode:2});_.QH("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var A_=function(){return _.r.apply(this,arguments)||this};
_.L(A_,_.r);A_.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],A_.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],A_.prototype,"data",void 0);A_=_.k([_.QE({is:"yt-faq-section-renderer",disableElementRegistration:!0})],A_);
_.A(A_,"yt-faq-section-renderer",function(){if(fq9===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;tT9===void 0&&(tT9=document.createElement("template"));var T=tT9;I.call(B,T.content.cloneNode(!0),E.content.firstChild);fq9=E}E=fq9;return E},{mode:2});var Fc7;var DnO;_.QH("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var jW=function(){return _.r.apply(this,arguments)||this};
_.L(jW,_.r);
jW.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"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],jW.prototype,"data",void 0);jW=_.k([_.QE({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],jW);
_.A(jW,"yt-offer-item-expanded-renderer",function(){if(DnO===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Fc7===void 0&&(Fc7=document.createElement("template"));var T=Fc7;I.call(B,T.content.cloneNode(!0),E.content.firstChild);DnO=E}E=DnO;return E},{mode:2});var Kc8;var Rjt;_.QH("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Ua=function(){return _.r.apply(this,arguments)||this};
_.L(Ua,_.r);
Ua.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"}}}}};
Ua.prototype.computeFullWidthMode=function(E){return!(!E||!E.fullWidthMode)};
Ua.prototype.computeBorderlessMode=function(E){return!(!E||!E.borderlessMode)};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ua.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.t("design:type",Boolean)],Ua.prototype,"fullWidthMode",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.t("design:type",Boolean)],Ua.prototype,"borderlessMode",void 0);Ua=_.k([_.QE({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Ua);
_.A(Ua,"yt-offer-item-renderer",function(){if(Rjt===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Kc8===void 0&&(Kc8=document.createElement("template"));var T=Kc8;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Rjt=E}E=Rjt;return E},{mode:2});var EEm;var Be2;_.QH("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var kA=function(){return _.r.apply(this,arguments)||this};
_.L(kA,_.r);kA.prototype.computeAriaLevel_=function(E){return this.getLevelID_(E)};
kA.prototype.getLevelID_=function(E){return(E=E.match(/[0-9]+$/))&&E.length==1?E[0]:"1"};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],kA.prototype,"data",void 0);_.k([_.X({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.t("design:type",String)],kA.prototype,"ariaLevel",void 0);_.k([_.X({value:"heading",reflectToAttribute:!0}),_.t("design:type",String)],kA.prototype,"role",void 0);
_.k([_.X({value:-1,reflectToAttribute:!0}),_.t("design:type",Number)],kA.prototype,"tabindex",void 0);kA=_.k([_.QE({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],kA);
_.A(kA,"yt-subscription-product-header-renderer",function(){if(Be2===void 0){var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;EEm===void 0&&(EEm=document.createElement("template"));var T=EEm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Be2=E}E=Be2;return E},{mode:2});var $Lg;var Ie9;_.QH("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var t_=function(){return _.r.apply(this,arguments)||this};
_.L(t_,_.r);t_.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:_.dA("menuRenderer"),events:!0}}};
t_.prototype.onStampFinished_=function(){_.n(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
t_.prototype.onStampFinished_=t_.prototype.onStampFinished_;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],t_.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],t_.prototype,"data",void 0);_.k([_.RN("yt-rendererstamper-finished"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],t_.prototype,"onStampFinished_",null);
t_=_.k([_.QE({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],t_);
_.A(t_,"yt-subscription-product-renderer",function(){if(Ie9===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;$Lg===void 0&&($Lg=document.createElement("template"));var T=$Lg;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Ie9=E}E=Ie9;return E},{mode:2});var Te7;var e$L;_.QH("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var fy=function(){return _.r.apply(this,arguments)||this};
_.L(fy,_.r);fy.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
fy.prototype.imageScrimColorValuesChanged_=function(){var E,B=(E=this.data)==null?void 0:E.imageScrimColorValues;_.n(this.hostElement).querySelector("#scrim").style.backgroundColor=B?_.hR(B[0]):"transparent"};
fy.prototype.imageScrimColorValuesChanged_=fy.prototype.imageScrimColorValuesChanged_;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],fy.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],fy.prototype,"data",void 0);
_.k([_.EM("data.imageScrimColorValues"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fy.prototype,"imageScrimColorValuesChanged_",null);fy=_.k([_.QE({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],fy);
_.A(fy,"yt-subscription-product-upsell-offer-renderer",function(){if(e$L===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Te7===void 0&&(Te7=document.createElement("template"));var T=Te7;I.call(B,T.content.cloneNode(!0),E.content.firstChild);e$L=E}E=e$L;return E},{mode:2});var le2;var c7s;var iIT;var pJ7;var Y$g;var ae8;var Vt=function(){return _.r.apply(this,arguments)||this};
_.L(Vt,_.r);Vt.prototype.onYtServiceRequestError_=function(E){_.de(this.hostElement,E.detail.error.message)};
Vt.prototype.onYtServiceRequestError_=Vt.prototype.onYtServiceRequestError_;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Vt.prototype,"data",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],Vt.prototype,"collapsible",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],Vt.prototype,"isManageRed",void 0);
_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Vt.prototype,"onYtServiceRequestError_",null);Vt=_.k([_.QE({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Vt);
_.A(Vt,"yt-single-ypc-offer-renderer",function(){if(ae8===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Y$g===void 0&&(Y$g=document.createElement("template"));var T=Y$g;I.call(B,T.content.cloneNode(!0),E.content.firstChild);ae8=E}E=ae8;return E},{mode:2});var qb=function(){return _.r.apply(this,arguments)||this};
_.L(qb,_.r);qb.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],qb.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],qb.prototype,"isManageRed",void 0);qb=_.k([_.QE({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],qb);
_.A(qb,"yt-single-ypc-offer-list-renderer",function(){if(pJ7===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;iIT===void 0&&(iIT=document.createElement("template"));var T=iIT;I.call(B,T.content.cloneNode(!0),E.content.firstChild);pJ7=E}E=pJ7;return E},{mode:2});var vE8;var y7H;_.QH("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var FU=function(){return _.r.apply(this,arguments)||this};
_.L(FU,_.r);FU.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],FU.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],FU.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],FU.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],FU.prototype,"isManageRed",void 0);FU=_.k([_.QE({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],FU);
_.A(FU,"yt-ypc-offers-list-renderer",function(){if(y7H===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;vE8===void 0&&(vE8=document.createElement("template"));var T=vE8;I.call(B,T.content.cloneNode(!0),E.content.firstChild);y7H=E}E=y7H;return E},{mode:2});_.QH("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var DC=function(){return _.r.apply(this,arguments)||this};
_.L(DC,_.r);
DC.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}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],DC.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],DC.prototype,"data",void 0);DC=_.k([_.QE({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],DC);
_.A(DC,"yt-unlimited-manage-subscription-page-renderer",function(){if(c7s===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;le2===void 0&&(le2=document.createElement("template"));var T=le2;I.call(B,T.content.cloneNode(!0),E.content.firstChild);c7s=E}E=c7s;return E},{mode:2});var CkL;var wJL;var Ky=function(){return _.r.apply(this,arguments)||this};
_.L(Ky,_.r);_.l=Ky.prototype;_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.l.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.onKeypress_=function(E){E.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.l.handleHeaderTap_=function(E){E.preventDefault();E.stopPropagation();this.expandOffers_()};
_.l.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.l.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Ky.prototype.dataChanged_=Ky.prototype.dataChanged_;_.k([_.g(_.mG),_.t("design:type",Object)],Ky.prototype,"ironA11yKeysBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Ky.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ky.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Ky.prototype,"offersVisible_",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ky.prototype,"dataChanged_",null);Ky=_.k([_.QE({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Ky);
_.A(Ky,"yt-collapsible-ypc-offer-renderer",function(){if(wJL===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;CkL===void 0&&(CkL=document.createElement("template"));var T=CkL;I.call(B,T.content.cloneNode(!0),E.content.firstChild);wJL=E}E=wJL;return E},{mode:2});var ZIm;var Pkg;_.QH("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var R6=function(){return _.r.apply(this,arguments)||this};
_.L(R6,_.r);_.l=R6.prototype;_.l.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.l.dataChanged_=function(){if(this.data.backgroundImage){var E=_.Aa(this.data.backgroundImage.thumbnails,screen.width),B=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=B?"linear-gradient(180deg, "+B+"), url("+E+")":"url("+E+")";this.data.gtmId&&_.y5(this.data.gtmId,_.HA("GL",""))}};
_.l.onYtServiceRequestError_=function(E){_.de(this.hostElement,E.detail.error.message)};
_.l.getScrimLayerColorStops_=function(){var E,B,I=(E=this.data.unlimitedHeaderV2Data)==null?void 0:(B=E.unlimitedHeaderV2Data)==null?void 0:B.scrimLayerColors;if(!I)return null;var T=100/I.length;return I.map(function(e,c){c*=T;return _.hR(e)+" "+c+"%"}).join(",")};
_.l.computeLogoWithPadding=function(E){var B,I,T;return(E=(B=E.unlimitedLogoImage)==null?void 0:(I=B.thumbnails)==null?void 0:(T=I[0])==null?void 0:T.height)&&E%31===0?!0:!1};
R6.prototype.onYtServiceRequestError_=R6.prototype.onYtServiceRequestError_;R6.prototype.dataChanged_=R6.prototype.dataChanged_;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.k([_.X({computed:"computeLogoWithPadding(data)"}),_.t("design:type",Boolean)],R6.prototype,"logoWithPadding",void 0);
_.k([_.X(),_.t("design:type",Object)],R6.prototype,"data",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],R6.prototype,"dataChanged_",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],R6.prototype,"onYtServiceRequestError_",null);R6=_.k([_.QE({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],R6);
_.A(R6,"yt-unlimited-page-header-renderer",function(){if(Pkg===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;ZIm===void 0&&(ZIm=document.createElement("template"));var T=ZIm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Pkg=E}E=Pkg;return E},{mode:2});var z$2;var mLI;_.QH("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Et=function(){return _.r.apply(this,arguments)||this};
_.L(Et,_.r);Et.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Et.prototype,"data",void 0);Et=_.k([_.QE({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Et);
_.A(Et,"yt-unlimited-user-notification-renderer",function(){if(mLI===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;z$2===void 0&&(z$2=document.createElement("template"));var T=z$2;I.call(B,T.content.cloneNode(!0),E.content.firstChild);mLI=E}E=mLI;return E},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Agg=_.rp(function(E){var B=_.XS(E,{numberOfChips:5}).numberOfChips;return _.w("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.w(_.Zt,{each:function(){return Array(B==null?void 0:B())}},function(){return _.w("div",{class:"ytGhostChipShelfChip"})}))},"Uf");_.jk8=_.rp(function(E){var B=_.$4(),I=_.Q().resolve(_.NE);_.hA(function(){requestAnimationFrame(function(){var e;(e=B.lottieEl)==null||e.addEventListener("DOMLoaded",function(){var c;(c=E.onLottieLoaded)==null||c.call(E)})})});
var T={};return _.w("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var e;return((e=E.data)==null?void 0:e.call(E).targetId)||""}},_.w(_.E1,{className:_.RQ((T.ytChatLoadingViewModelRtl=I==="rtl",T)),
animationName:"YOUCHAT_LOADER",data:function(){var e;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((e=E.data)==null?void 0:e.call(E).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:B}))},"Vf");
}catch(e){_._DumpException(e)}
try{
var m8T,Q_1,d8H,hfg,s_I,uRs,LKt,A7,jB,GiO,Ob1,nrg,Hb2,bbm,U$,ri7,SxI,XMH,WK9,Jim,grg,ors,Ais,j_t,U8m,kE,ki9,tC8,fs9,KKT,D8I,FKg,VCI,qx8,Rfg,E97,B1I,$m1,IV9,cVs,Y7I,aVO,v9I,Ci7,Zxd,zdt,mmt,QaL,dm8,saH,us2,L3L,xmI,GMT,Ox7,n99,Hxs,JV9,S7d,N17,W3m,g9H,Xp8,AV7,o9d,rV9,bx2,Vb,ja1,tem,K3t,Rd7,EpO,BtI,$Sg,I0t,TtH,eBT,l08,cxO,phT,Y_s,a09,x8d,q77;
_.bk=function(E){var B=new _.P7("Error accessing DB");return _.HjD().then(function(I){return new Promise(function(T,e){try{var c=I.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(E);c.onsuccess=function(){var Y=c.result;T(Y?Y.value:null)};
c.onerror=function(){B.params={key:E,source:"onerror"};e(B)}}catch(Y){B.params={key:E,
thrownError:String(Y)},e(B)}})},function(){return null})};
_.zfH=function(E,B){var I=_.ZXF(B);I!=="javascript:"&&I!=="data:"&&E.setAttribute("href",B)};
m8T=function(E,B){return _.cP(E.entities,"flowStateEntity",B)};
Q_1=function(E){return(E=E.getOption("captions","track"))?!!E.displayName:!1};
d8H=function(E,B){B=B.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(B==null||!B.length)return E;var I=B.filter(function(Y){return Y});
B=E.filter(function(Y){return Y.languageCode.startsWith("en")});
I=_.p(I);for(var T=I.next();!T.done;T=I.next())if(T=T.value,B.length){var e=B[0],c=Object.assign({},e);e.languageCode!==T.languageCode&&(c.displayName=e.languageName+" >> "+T.languageName,c.translationLanguage=T,E.push(c))}return E};
hfg=function(E){var B,I=(B=E.getOption("captions","tracklist",{includeAsr:!0}))!=null?B:[];_.d("mweb_watch_captions_enable_auto_translate")&&(I=d8H(I,E));return I};
s_I=function(E){return _.Sd(E,function(B){return B.languageCode==="en"})};
uRs=function(E){var B=oc;if(Q_1(E))E.setOption("captions","stickyLoading",{}),E.setOption("captions","track",{});else{var I=_.Sd(hfg(E),function(T){return T.displayName===B});
E.setOption("captions","track",I)}};
LKt=function(E){if(!E)return 0;var B=E.getPresentingPlayerType(),I=E.getVideoData();return I&&I.isLive?(E=E.getProgressState(B),E.seekableEnd-E.seekableStart):E.getDuration(B)};
A7=function(E,B){_.Ns(B,E,function(){return x8d[B]},function(I){x8d[B]=I;
if(!_.d("mweb_player_ve_show_ks")){var T=_.nC(0);T&&I&&_.rY(T,I)}})};
jB=function(E){(E=x8d[E])&&_.lf(_.lu(),E)};
GiO=function(E,B){for(var I=_.p(Object.keys(E)),T=I.next();!T.done;T=I.next())if(T=T.value,E[T]!==B[T])return!1;return!0};
Ob1=function(){return document.getElementById("player-control-overlay")};
nrg=function(E){E!==-1&&!_.d("player_controls_log_creation_killswitch")&&Ob1()&&(_.nO("pcu_cs",E),_.nO("pcu_ce"))};
Hb2=function(E){return _.w("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(E.subscribeButton?[E.subscribeButton,E.channelAccess]:[E.channelAccess]).map(function(B){return _.w("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.w("div",{class:"yt-profile-identity-info-view-model-wiz--button"},MC7(B)))}))};
_.NMt=function(E){var B=E.data;E=E.hideDivider;var I={};I=(I["yt-profile-identity-info-view-model-wiz__frame"]=!0,I["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!B.channelBanner,I);I={class:_.B$(I)};var T,e={imageBannerViewModel:{image:(T=B.channelBanner)==null?void 0:T.image,style:"IMAGE_BANNER_STYLE_INSET"}};T=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},B.channelBanner?_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
MC7(e,{imageBannerViewModel:{isPositionRelative:!0}})):null);e=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},MC7(B.avatar));var c;var Y=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},B.channelDisplayName),B.verifiedOrOacBadge?_.w("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.w(_.Ja,{data:{thumbnails:[{url:(c=B.verifiedOrOacBadge)==null?void 0:c.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);c=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},Y,MC7(B.threeDotMenu));Y=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.w("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},B.channelHandle),B.channelPronouns&&B.channelHandle?_.w("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.w("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},B.channelPronouns)),_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},B.leftOfBulletInfo),B.leftOfBulletInfo&&B.rightOfBulletInfo?_.w("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},B.rightOfBulletInfo)));c=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},c,Y);return _.w("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.w("div",I,T,_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},e,c),B.channelDescription?_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},B.channelDescription):
null,Hb2(B),E?null:_.w("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
bbm=function(E,B){var I=_.Wl(E,{}),T=grg("top",B),e=grg("bottom",B),c=grg("left",B),Y=grg("right",B);return _.c$({top:function(){return U$(I().position,T)},
bottom:function(){return U$(I().position,e)},
left:function(){return U$(I().position,c)},
right:function(){return U$(I().position,Y)},
position:function(){return U$(I().positionType,SxI)},
height:function(){return U$(I().height,kE)},
width:function(){return U$(I().width,kE)},
"min-width":function(){return U$(I().minWidth,kE)},
"min-height":function(){return U$(I().minHeight,kE)},
"max-width":function(){return U$(I().maxWidth,kE)},
"max-height":function(){return U$(I().maxHeight,kE)},
"aspect-ratio":function(){return U$(I().aspectRatio,String)},
"margin-top":function(){return U$(I().margin,T)},
"margin-bottom":function(){return U$(I().margin,e)},
"margin-left":function(){return U$(I().margin,c)},
"margin-right":function(){return U$(I().margin,Y)},
"padding-top":function(){return U$(I().padding,T)},
"padding-bottom":function(){return U$(I().padding,e)},
"padding-left":function(){return U$(I().padding,c)},
"padding-right":function(){return U$(I().padding,Y)},
"flex-direction":function(){return U$(I().flexDirection,Jim)},
"justify-content":function(){return U$(I().justifyContent,WK9)},
"align-items":function(){return U$(I().alignItems,XMH)},
"flex-grow":function(){return U$(I().flexGrow,String)},
"flex-shrink":function(){return U$(I().flexShrink,String)},
"flex-basis":function(){return U$(I().flexBasis,kE)},
"align-self":function(){return U$(I().alignSelf,XMH)},
"flex-wrap":function(){return U$(I().flexWrap,ri7)},
"align-content":function(){return U$(I().alignContent,XMH)}})};
U$=function(E,B){return E!==void 0?B(E):void 0};
ri7=function(E){switch(E){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
SxI=function(E){switch(E){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
XMH=function(E){switch(E){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"}};
WK9=function(E){switch(E){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"}};
Jim=function(E){switch(E){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"}};
grg=function(E,B){var I=B==="rtl";switch(E){case "top":var T=ors;break;case "bottom":T=Ais;break;case "left":T=j_t;break;default:T=U8m}return function(e){return U$(T(e,I),kE)}};
ors=function(E){var B=E.top;var I=E.vertical;E=E.all;var T;return(T=B!=null?B:I)!=null?T:E};
Ais=function(E){var B=E.bottom;var I=E.vertical;E=E.all;var T;return(T=B!=null?B:I)!=null?T:E};
j_t=function(E,B){var I=E.left;var T=E.end;var e=E.start;var c=E.horizontal;E=E.all;var Y,v;return(v=(Y=I!=null?I:B?T:e)!=null?Y:c)!=null?v:E};
U8m=function(E,B){var I=E.right;var T=E.end;var e=E.start;var c=E.horizontal;E=E.all;var Y,v;return(v=(Y=I!=null?I:B?e:T)!=null?Y:c)!=null?v:E};
kE=function(E){var B=E.value;switch(E.unit){case "YPC_DIMENSION_UNIT_POINT":return B+"px";case "YPC_DIMENSION_UNIT_FRACTION":return B+"%";default:return""+B}};
ki9=function(E){switch(E){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"}};
tC8=function(E){var B=E!=null?E:{};E=B.fontRole;var I=B.fontSize;B=B.fontWeight;if(E!==null&&I!==null)switch(E){case "YPC_FONT_ROLE_DISPLAY":switch(I){case "YPC_FONT_SIZE_L":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(I){case "YPC_FONT_SIZE_L":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return B===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(I){case "YPC_FONT_SIZE_XL":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return B==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
fs9=function(E,B){return _.cP(E.entities,"pdpStateEntity",B)};
KKT=function(E,B,I){function T(Z){return Object.values(Z).map(function(P){var z=P.productId;P=P.pricingOptionIndex;return VCI(e(z).pricingOptions,P).pricingOptionId})}
function e(Z){return v().get(Z)}
function c(Z){Z=T(Z);I(Z)}
var Y=qx8([E,B],function(Z,P){var z=Z==null?void 0:Z.selectedPricingOptions;Z={};var m=!0;if(z&&P.length)for(var u=_.p(P),x=u.next();!x.done;x=u.next()){x=x.value;var M=FKg(x.pricingOptions,function(N){a:{N=N.pricingOptionId;for(var W=_.p(z),U=W.next();!U.done;U=W.next())if(U.value===N){N=!0;break a}N=!1}return N});
M>=0&&(m=!1,Z[x.groupId]={productId:x.productId,pricingOptionIndex:M})}m&&P.length&&(Z[P[0].groupId]={productId:P[0].productId,pricingOptionIndex:0});return Z}),v=qx8([B],function(Z){return new Map(Z.map(function(P){return[P.productId,
P]}))}),y=qx8([B],function(Z){var P=new Map;
Z=_.p(Z);for(var z=Z.next();!z.done;z=Z.next()){var m=z.value;z=m.groupId;var u=m.productId;m=_.p(D8I(m.pricingOptions));for(var x=m.next();!x.done;x=m.next()){var M=_.p(x.value);x=M.next().value;M=M.next().value;P.set(M.pricingOptionId,{groupId:z,productId:u,index:x,pricingOption:M})}}return P});
return{getProductById:e,isProductSelected:function(Z){var P=e(Z);if(!P)return!1;var z;return((z=Y()[P.groupId])==null?void 0:z.productId)===Z},
getSelectedPricingOptions:function(){return Object.values(Y()).map(function(Z){var P=Z.productId;Z=Z.pricingOptionIndex;return VCI(e(P).pricingOptions,Z)})},
getSelectedProductByGroupId:function(Z){var P;return(Z=(P=Y()[Z])==null?void 0:P.productId)?e(Z):void 0},
onProductSelected:function(Z){var P=e(Z);if(P){var z=Y(),m;if(((m=z[P.groupId])==null?void 0:m.productId)!==Z){var u,x;m=(x=(u=z[P.groupId])==null?void 0:u.pricingOptionIndex)!=null?x:0;u=0;for(x=P.pricingOptions[Symbol.iterator]();!x.next().done;)++u;u<=m&&(m=0);u={};c(Object.assign({},z,(u[P.groupId]={productId:Z,pricingOptionIndex:m},u)))}}},
onPricingOptionSelected:function(Z){var P=y().get(Z);if(P){Z=P.groupId;var z=P.productId;P=P.index;var m=Y(),u,x;if(((u=m[Z])==null?void 0:u.productId)!==z||((x=m[Z])==null?void 0:x.pricingOptionIndex)!==P)u={},c(Object.assign({},m,(u[Z]={productId:z,pricingOptionIndex:P},u)))}},
onClearGroupSelected:function(Z){var P=Y();P[Z]&&(P=Object.fromEntries(Object.entries(P).filter(function(z){return _.p(z).next().value!==Z})),c(P))}}};
D8I=function(E){return function I(){var T,e,c,Y,v;return _.j6c(I,function(y){switch(y.nextAddress){case 1:_.Dg(y,2),T=0,e=_.p(E),c=e.next();case 4:if(c.done){y.jumpTo(2);break}Y=c.value;v=_.UbQ;return _.C(y,[T++,Y],7);case 7:v(y.yieldResult);c=e.next();y.jumpTo(4);break;case 2:_.FL(y),_.Kr(y,0)}})}()};
FKg=function(E,B){E=_.p(D8I(E));for(var I=E.next();!I.done;I=E.next()){var T=_.p(I.value);I=T.next().value;T=T.next().value;if(B(T))return I}return-1};
VCI=function(E,B){E=_.p(D8I(E));for(var I=E.next();!I.done;I=E.next()){var T=_.p(I.value);I=T.next().value;T=T.next().value;if(I===B)return T}};
qx8=function(E,B){var I,T;return function(){for(var e=E.map(function(Y){return Y()}),c=0;c<e.length;c++)if(!I||e[c]!==I[c]){I=e;
T=B.apply(null,_.ad(e));break}return T}};
Rfg=function(E){var B;return!!(E.productId&&E.groupId&&((B=E.pricingOptions)==null?0:B.length)&&E.pricingOptions.every(function(I){return I.pricingOptionId}))};
E97=function(E,B,I){return KKT(E,qx8([B],function(T){return T.filter(Rfg)}),I)};
B1I=function(E,B){return B.length===0?[E]:[E.slice(0,B[0]),E.slice(B[0])].filter(function(I){return I.length>0})};
$m1=function(E){switch(E){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""}};
IV9=function(E,B,I,T){T=Object.assign({},T);_.PV(T,t7,{selectedOptionId:E,primaryButtonOverride:I});_.gp().dispatch(_.aL("flowStateEntity",B,T))};
_.lV9=function(){if(!T1m){var E=_.p(_.lQ(new Map,void 0,"UJImUe"));T1m=E.next().value;ed2=E.next().value}return T1m};
cVs=function(E){if(E)return _.lV9()().get(E)};
_.ixs=function(E,B){if(E&&B){var I=_.lV9();I().set(E,B);E=I();ed2(new Map(E))}};
_.pp2=function(E){return{onSubmit:function(){var B;(B=cVs(E()))==null||B.onSubmit()},
isValid:function(){var B=cVs(E());return B?B.isValid():!0},
isSubmitting:function(){var B,I;return!!((B=cVs(E()))==null?0:(I=B.isSubmitting)==null?0:I.call(B))}}};
Y7I=function(E,B){return _.cP(E.entities,"contextNoteFeedEntityPayload",B)};
aVO=function(E){E.style.height="auto";E.style.height=E.scrollHeight+"px"};
v9I=function(E){return[E.syncStep,E.asyncStep].filter(function(B){return B!==void 0})};
Ci7=function(E){var B,I,T;if(E=(B=E.structuredContextNoteFormSchema)==null?void 0:(I=B.fieldSchemas)==null?void 0:(T=I.noteBody)==null?void 0:T.validationSchema)for(B=_.p(v9I(E)),I=B.next();!I.done;I=B.next()){I=I.value.rules;if(!I)break;I=_.p(I);for(I=I.next();!I.done;I=I.next())return _.h(I.value,_.yVT)}};
Zxd=function(E){if(E){E=_.p(v9I(E));for(var B=E.next();!B.done;B=E.next()){B=B.value.rules;if(!B)break;B=_.p(B);for(B=B.next();!B.done;B=B.next())return _.h(B.value,wp1)}}};
zdt=function(E){if(E){E=_.p(v9I(E));for(var B=E.next();!B.done;B=E.next()){B=B.value.rules;if(!B)break;B=_.p(B);for(B=B.next();!B.done;B=B.next())return _.h(B.value,Pi1)}}};
mmt=function(E){E=/^https?:\/\//.test(E)?E:"http://"+E;try{var B=_.Se(E)}catch(I){return!1}if(B.toString()!==E)return!1;E=B.JSC$7917_domain_.split(".");return E.length>1&&E.every(function(I){return!!I})};
QaL=function(E,B,I,T){var e;T=(e=T.structuredContextNoteData)==null?void 0:e.createCommentEndpoint;if(e=_.h(T,_.kTU))return e.commentText=_.jj(E),e.videoPositionMention=B,e.sources=I,T};
dm8=function(E){return E==null?void 0:E.stringValue};
saH=function(E,B,I){E=E.map(function(T,e){return{listItemViewModel:{title:T.title,subtitle:T.subtitle,leadingImage:T.leadingImage,trailingImage:e===B?hd1:void 0,rendererContext:{commandContext:{onTap:T.onTap}}}}});
return Object.assign({},I&&{header:{panelHeaderViewModel:{title:I}}},{content:{listViewModel:{listItems:E}}})};
us2=function(E,B){if(E&&B)switch(B){case "SELECTION_TYPE_BOOL":return E.boolValue;case "SELECTION_TYPE_INT":return E.intValue;case "SELECTION_TYPE_STRING":return E.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return E.privacyStatusValue}};
L3L=function(E){var B;E=(B=E.options)==null?void 0:B.findIndex(function(I){return I.isSelected});
return E===void 0?-1:E};
xmI=function(E,B,I){var T=function(){return E().label},e={},c=_.RQ("ytDropdownViewModelLabel",(e.ytDropdownViewModelLabelError=B,e));
return _.w(_.wU,{cond:function(){return E().label&&!(I()===-1&&E().label&&!E().placeholderText)},
then:function(){return _.w("div",{class:c},_.w(_.aS,{text:T}))}})};
GMT=function(E,B){var I={};I=_.RQ("ytDropdownViewModelTitle",(I.ytDropdownViewModelTitlePlaceholder=function(){return B()===-1},I));
return _.w("div",{class:I},_.w(_.aS,{text:function(){var T=E();var e=B();if(e===-1)T=T.placeholderText?T.placeholderText:T.label;else{var c,Y;T=(c=T.options)==null?void 0:(Y=c[e])==null?void 0:Y.title}return T}}))};
Ox7=function(E,B){var I=function(){return E().hint};
return _.w(_.VS,null,_.w(_.wU,{cond:function(){return I()&&!B()},
then:function(){return _.w("div",{class:_.RQ("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.w(_.aS,{text:I,className:"ytDropdownViewModelSupportText"}))}}),_.w(_.wU,{cond:B,
then:function(){return _.w("div",{id:"dropdown-view-model-error",role:"alert",class:_.RQ("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.w(_.i0,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.w(_.aS,{text:B,className:"ytDropdownViewModelSupportText"}))}}))};
n99=function(E,B){var I=_.Q().resolve(_.dvt);_.uW(function(){var T=E().id;T&&I!=null&&I.dropdownMap.set(T,B)})};
Hxs=function(E){E=_.h(E.scheduleButton,Met);E=_.h(E==null?void 0:E.primaryButton,_.sO);E=_.h(E==null?void 0:E.onTap,_.dX);var B,I,T=((I=_.h(E,_.pO))==null?void 0:I.commands)||[E];I=_.p(T);for(E=I.next();!E.done&&!(B=_.h(E.value,_.jbl));E=I.next());var e;B=(e=B)==null?void 0:e.createBroadcastRequest;if(!B)throw Error("Hj");return B};
JV9=function(E,B,I){I=I===void 0?{}:I;var T,e;return _.a(function(c){if(T=N17(B))return c.return(T);(e=g9H(E,B,I))&&S7d(B,e);return c.return(e)})};
S7d=function(E,B){var I=W3m(E);I&&B.then(function(T){_.Q().resolve(_.Kz).put(I,new _.Re({innertubeResponse:T}))})};
N17=function(E){if(E=W3m(E)){var B=_.Q().resolve(_.Kz);if(B.has(E))return B.get(E).then(function(I){return I==null?void 0:_.c3(I)})}return null};
W3m=function(E){var B=_.h(E.endpoint,_.kh);if(B!=null&&B.videoId)return B={videoId:B.videoId},_.d("web_imp_player_mute_params")&&(B.mutedAtStart=E.startPlaybackInMutedState),_.Ui("inline_playback",B)};
g9H=function(E,B,I){E=_.NN(E,B.endpoint,Xp8(B,I)).then(function(T){return T});
return Promise.resolve(E)};
Xp8=function(E,B){B=_.d("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!E.startPlaybackInMutedState},B):Object.assign({},{vis:5,autonav:"1"},B);var I;B={contentPlaybackContext:_.Cq(B,(I=_.h(E.endpoint.commandMetadata,_.D$))==null?void 0:I.url,window.location.href)};_.d("web_imp_player_mute_params")&&(B.overrideMutedAtStart=!E.startPlaybackInMutedState);return B};
AV7=function(E,B){var I=window.MutationObserver;I&&(fI=new I(function(T,e){T=_.p(T);for(var c=T.next();!c.done;c=T.next()){c=c.value;var Y;if(Y=c.type==="childList"&&c.target)a:{Y=E;c=rV9(c.target);Y=rV9(Y);for(var v=null,y=0;y<c.length;y++)if(Y.includes(c[y])){if(y===0){Y=!1;break a}v=c[y];break}v?(c=bx2(c,v),Y=bx2(Y,v),Y=c<Y):Y=!1}if(Y){B();e.disconnect();break}}}),(I=o9d())&&fI.observe(I,{childList:!0,
subtree:!0}))};
o9d=function(){var E=document.getElementsByTagName("ytd-rich-grid-renderer");if(E.length>0)return E[0];E=document.getElementsByTagName("ytd-section-list-renderer");return E.length>0?E[0]:null};
rV9=function(E){for(var B=[];E;)B.push(E),E=E.parentElement;return B};
bx2=function(E,B){var I=Array.from(B.children);B=E.indexOf(B);return B>0?I.indexOf(E[B-1]):-1};
Vb=function(E,B,I){I=I===void 0?{}:I;return _.yu(E,I,B)};
ja1=function(E){return E==null?void 0:E.filter(function(B){return B.premiereTrailerBadgeRenderer})};
tem=function(E,B){var I="",T="";switch(E){case -1:case 0:I=B?"VOLUME_OFF":"VOLUME_OFF_FILLED";T=UmL;break;case 1:I=B?"VOLUME_UP_OUTLINE":"VOLUME_UP";T=kMO;break;default:_.E9(E)}return{iconName:I,ariaLabel:T}};
K3t=function(E,B){var I=fVO,T=_.p(_.lQ(Ve9(new q77(function(){},I,B)),void 0,"PAnyd")),e=T.next().value,c=T.next().value,Y=new q77(function(v){c(v)},I,B);
_.m$(function(){Promise.resolve().then(function(){var v,y=(v=E())!=null?v:{};Y.playerControlsData=y;_.d("player_controls_skip_double_signal_old")&&(Y.lastSeenPlayerApi=_.Jb(y.playerApi));_.d("player_controls_skip_double_signal_old")||(Y.lastSeenPlayerApi=_.Jb(y.playerApi));F37(Y)});
_.dt(function(){Dmg(Y)})});
_.dt(function(){Dmg(Y)});
return function(){return e()}};
Rd7=function(E){return function(B){var I=E(),T={playerState:B};if(B===1){var e;(e=I.playerApi)==null||e.loadModule("captions")}if(B===0){var c;(c=I.playerApi)==null||c.unloadModule("captions")}(B!==-1||_.d("web_imp_controls_set_player_state_killswitch"))&&I.setState(T)}};
EpO=function(E){return function(B){E().setState({playbackRate:B})}};
BtI=function(E){return function(B){var I=E(),T=I.playerApi,e=T==null?void 0:T.getVideoData(),c=(e==null?void 0:e.isLive)||!1;e=e==null?void 0:e.video_id;c={videoDuration:LKt(T||void 0),isLive:c,videoId:e};c.videoId!==I.videoId&&(c=Object.assign({},_.qtf(T),c));if(B==null?0:B.playertype)c.playerType=B.playertype;if(T){c.captionsAvailable=!!T.getOptions("captions");B=c;var Y;e=(Y=T.getStoryboardLevel(T.getNumberOfStoryboardLevels()-1))==null?void 0:Y.intervalMs;B.storyboardInterval=e?e/1E3:void 0;c.captionsAvailable&&
(c.captionsEnabled=Q_1(T))}c.volumeMuted=!(T==null||!T.isMuted());I.setState(c)}};
$Sg=function(E){return function(B){var I=E(),T=I.playerApi;if(T){var e=T.getPresentingPlayerType();B={playedTime:B||0,percentLoaded:T.getVideoLoadedFraction(),playerType:e};I.playerState===0&&(B.playedTime=I.videoDuration);I.isLive&&(e=T.getProgressState(e),B.playedTime-=e.seekableStart,B.videoDuration=LKt(T));if(I.playerType===1)T=!1;else{var c;if(_.d("embeds_emc3ds_dompaused_fix")&&((c=I.uxConfig)==null?0:c.showCuedOverlay)){var Y;T=!((Y=I.playerApi)==null?0:Y.getPlayerStateObject(I.playerType).isDomPaused)}else T=
!0}T&&delete B.playedTime;I.setState(B)}}};
I0t=function(E){return function(){var B=E(),I,T,e,c={volume:(e=(I=B.playerApi)==null?void 0:I.getVolume())!=null?e:0,volumeMuted:!((T=B.playerApi)==null||!T.isMuted())};B.setState(c)}};
TtH=function(E){return function(){var B=E(),I=B.playerApi;if(I){var T={captionsAvailable:!!I.getOptions("captions")};T.captionsAvailable&&(T.captionsEnabled=Q_1(I));B.setState(T)}}};
eBT=function(E){return function(){var B=E();if(B.playerApi&&!(B.volumeMuted||B.controlsVisible&&B.isProbablyAScreenreaderUser)){B.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var I;(I=document.querySelector(".player-control-play-pause-icon"))==null||I.focus()}}};
l08=function(E){return{appApi:Object.assign({},_.Aqi(),{showCaptionsToggleToast:function(B){var I,T;(T=(I=E()).showCaptionsToggleToast)==null||T.call(I,B)},
openInMiniplayer:function(){var B,I;(I=(B=E()).openInMiniplayer)==null||I.call(B)}})}};
cxO=function(E,B){var I,T,e;return!!(E==null?0:(I=E.playerResponse)==null?0:(T=I.playerConfig)==null?0:(e=T.inlinePlaybackConfig)==null?0:e.showScrubbingControls)&&!(B==null?0:B.hideScrubbingControls)};
_.idT=function(E){var B=!E.miniplayerIsActive;return[5,2,0].includes(E.miniplayerPlaybackState)||B};
phT={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Y_s=function(E,B){var I,T,e,c,Y;_.a(function(v){if(!B.length)return v.return([]);I=[];T=_.p(B);for(e=T.next();!e.done;e=T.next())c=e.value,(Y=E.resolveIcon(c))&&!E.iconCache[Y.url]&&I.push(_.Nr8(E,Y).then(function(){}).catch(function(){}));
return v.return(Promise.all(I))})};
a09=function(E,B){var I=[];B=(new Set(B)).values();B=_.p(B);for(var T=B.next();!T.done;T=B.next()){T=T.value;for(var e=_.p(Object.values(phT)),c=e.next();!c.done;c=e.next())I.push({iconName:T,iconStyle:c.value})}Y_s(E.iconManager,I)};
_.vpd=function(E,B,I){var T=I!=null?I:E.iconsToFetch;T!=null&&T.length?B!==void 0&&B>=0?_.PC(_.Ll,function(){a09(E,T)},B):a09(E,T):Promise.resolve()};
x8d={};
q77=function(E,B,I){var T=this;this.renderFn=E;this.listeners=B;this.context=I;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var e;this.lastSeenPlayerApi=_.Jb((e=this.playerControlsData)==null?void 0:e.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.qtf(),void 0);_.d("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Ve9(T).setState({playerState:-1});T.resetRecentlyNavigatedJobId&&_.Ll.cancelJob(T.resetRecentlyNavigatedJobId);T.recentlyNavigated=
!0;T.resetRecentlyNavigatedJobId=_.Ll.addJob(function(){T.recentlyNavigated=!1},8,1E4)})};
q77.prototype.setState=function(E){if(!_.d("mweb_player_skip_no_op_state_changes")||!GiO(E,this.state))if(this.state=Object.assign({},this.state,E),!_.d("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)E=-1,_.d("player_controls_log_creation_killswitch")||Ob1()||(E=(0,_.VZ)()),_.nO("pcu_s"),_.nO("pcu_se"),_.nO("pcu_rs"),this.renderFn(Ve9(this)),_.nO("pcu_re"),nrg(E),_.Ll.addJob(function(){_.nO("pcu_ap")},8)};
var Ve9=function(E){var B;var I=_.Jb((B=E.playerControlsData)==null?void 0:B.playerApi);return Object.assign({},E.state,{setState:E.boundSetState,domMeasurements:{progressBarLineRect:E.progressBarLineRect},playerApi:I,appApi:E.context.appApi,playerContainer:E.context.playerContainer,playerControlContainer:E.context.playerControlContainer,uxConfig:E.context.uxConfig})},F37=function(E){E.listeners.forEach(function(B){E.eventListenerCleanupFunctions.push(B.register(function(){return Ve9(E)},function(){return E.getData()}))})},
Dmg=function(E){E.eventListenerCleanupFunctions.forEach(function(B){B()});
E.eventListenerCleanupFunctions.length=0};
q77.prototype.getData=function(){return this.playerControlsData};
var qL=new _.F("abuseReportFlowState");var yx8=new _.F("feedbackFormFlowState");var CQg=new _.F("inputBoxViewModel");var wht=new _.F("flowNextStepCommand");var Zds=new _.F("flowPrevStepCommand");var PQs=new _.F("updateFlowCommand");_.zBT=new _.F("flowStepRenderer");_.yVT=new _.F("lengthValidationRule");var wp1=new _.F("regexValidationRule");var Pi1=new _.F("selectedValidationRule");var mSI=new _.F("talkToRecsViewModel");var QJ9=new _.F("creatorGoalSetUpFlowDropdownItemViewModel");var dST=new _.F("creatorGoalSetUpFlowDropdownViewModel");_.hB2=new _.F("radioButtonGroupViewModel");var Met=new _.F("panelFooterViewModel");var sJ8=new _.F("ypcCancelRecurrenceCommand");var uX7=new _.F("cancellationFlowState");var t7=new _.F("premiumPurchaseFlowState");var L$I=new _.F("surveyAnswerCardRenderer");var xSt=new _.F("showMoreButtonRenderer");var G58;var Od1,npI=function(){if(Od1!==void 0)return Od1;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;G58===void 0&&(G58=document.createElement("template"));var T=G58;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return Od1=E};var FB=function(){var E=_.r.apply(this,arguments)||this;E.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";E.goalDescription="";E.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";E.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";E.startButtonId="start-button";E.exampleButtonId="example-button";return E};
_.L(FB,_.r);_.l=FB.prototype;_.l.getGoalDropdownItems=function(){var E,B;return(B=_.h((E=this.data)==null?void 0:E.purchaseTargetDropdown,dST))==null?void 0:B.dropdownItems};
_.l.getTimerDropdownItems=function(){var E,B;return(B=_.h((E=this.data)==null?void 0:E.timerDropdown,dST))==null?void 0:B.dropdownItems};
_.l.getColorDropdownItems=function(){var E,B;return(B=_.h((E=this.data)==null?void 0:E.colorDropdown,dST))==null?void 0:B.dropdownItems};
_.l.getDropdownItemText=function(E){var B;return(B=_.h(E,QJ9))==null?void 0:B.itemLabel};
_.l.getDropdownItemValue=function(E){E=_.h(E,QJ9);return(E==null?void 0:E.timeLimit)||(E==null?void 0:E.purchaseTarget)||(E==null?void 0:E.eligiblePurchaseType)};
_.l.updateFlowState=function(E){_.I2(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:E}])};
_.l.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.l.updateGoalValue=function(E){this.goal=E.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.l.onTextValueChanged=function(E){this.goalDescription=E.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.l.updateTimerValue=function(E){this.timer=E.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.l.updateTierValue=function(E){this.tier=E.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.l.getButtonViewModel=function(E){E=(E==null?void 0:E.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var B,I=_.h((B=this.data)==null?void 0:B.startGoalButton,_.sO);return Object.assign({},I,{state:E})};
_.Up.Object.defineProperties(FB,{template:{configurable:!0,enumerable:!0,get:function(){return npI()}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],FB.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],FB.prototype,"goal",void 0);_.k([_.X(),_.t("design:type",Object)],FB.prototype,"goalDescription",void 0);_.k([_.X(),_.t("design:type",Object)],FB.prototype,"timer",void 0);_.k([_.X(),_.t("design:type",Object)],FB.prototype,"tier",void 0);
_.k([_.X(),_.t("design:type",Object)],FB.prototype,"startButtonId",void 0);_.k([_.X(),_.t("design:type",Object)],FB.prototype,"exampleButtonId",void 0);FB=_.k([_.QE({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],FB);_.A(FB,"yt-creator-goal-set-up-flow-view-model",function(){return npI()},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var M22;var HdL;var NtO;var De=function(){return _.r.apply(this,arguments)||this};
_.L(De,_.r);_.k([_.X(),_.t("design:type",Object)],De.prototype,"data",void 0);De=_.k([_.QE({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],De);
_.A(De,"yt-survey-answer-card-renderer",function(){if(NtO===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;HdL===void 0&&(HdL=document.createElement("template"));var T=HdL;I.call(B,T.content.cloneNode(!0),E.content.firstChild);NtO=E}E=NtO;return E},{mode:2});var gp9;var S_m;var KI=function(){return _.r.apply(this,arguments)||this};
_.L(KI,_.r);_.l=KI.prototype;_.l.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.l.selectedItemChanged=function(E){_.I2(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[E.feedbackToken||""]}])};
_.l.surveyAnswerCardRendererClicked=function(E){if(E.target&&_.h(E.model.item,L$I)){var B=E.target;E=_.h(E.model.item,L$I);E.onTapCommand?_.cN(B,[E.onTapCommand],B):this.data.onTapCommand&&_.cN(B,[this.data.onTapCommand],B);this.selectedItemChanged(E)}};
_.l.checkIsCancellationStyle=function(E){return E==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.l.updateSelectedItemFromBinding=function(E){this.selectedItem=E.detail.value};
KI.prototype.onSelectedItemChanged=KI.prototype.onSelectedItemChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],KI.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],KI.prototype,"selectedItem",void 0);_.k([_.X({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.t("design:type",Boolean)],KI.prototype,"isCancellationStyle",void 0);
_.k([_.EM("selectedItem"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KI.prototype,"onSelectedItemChanged",null);KI=_.k([_.QE({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],KI);
_.A(KI,"yt-survey-flow-step-renderer",function(){if(S_m===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;gp9===void 0&&(gp9=document.createElement("template"));var T=gp9;I.call(B,T.content.cloneNode(!0),E.content.firstChild);S_m=E}E=S_m;return E},{mode:2});var Rc=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return E};
_.L(Rc,_.r);Rc.prototype.handleSurveyFlowStepOptionChanged=function(E){this.ytdReduxBehavior.dispatch(_.BP({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:E}));_.I2(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:E}}])};
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Rc.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Rc.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Rc.prototype,"data",void 0);Rc=_.k([_.b({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Rc);
_.A(Rc,"ytd-survey-flow-step-renderer",function(){if(M22!==void 0)return M22;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return M22=E},{mode:1});var MC7;MC7=_.z8({avatarViewModel:_.sj,buttonViewModel:_.ne,subscribeButtonViewModel:_.vEu,imageBannerViewModel:_.Qv});_.Jx7=_.$3(_.NMt);_.qW(_.NMt);var W$d;var Ew=function(){return _.r.apply(this,arguments)||this};
_.L(Ew,_.r);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Ew.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ew.prototype,"data",void 0);Ew=_.k([_.b({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Ew);
_.A(Ew,"ytd-channel-history-renderer",function(){if(W$d!==void 0)return W$d;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return W$d=E},{mode:1});var Xh2;var B0=function(){return _.r.apply(this,arguments)||this};
_.L(B0,_.r);_.k([_.X(),_.t("design:type",Object)],B0.prototype,"data",void 0);B0=_.k([_.b({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],B0);
_.A(B0,"ytd-feature-enablement-info-renderer",function(){if(Xh2!==void 0)return Xh2;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Xh2=E},{mode:1});var rxI;var bdd;var $t=function(){var E=_.r.apply(this,arguments)||this;E.textBoxMaxLength=_.d("enable_tvod_campaign_code_integration")?15:12;return E};
_.L($t,_.r);_.l=$t.prototype;_.l.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.l.onSubmit=function(){var E=this.data.serviceEndpoint,B=_.h(E,_.Ej);B&&E&&(B.couponCode=this.userInput,_.d("web_ytd_ypc_coupon_renderer_command_resolver_ks")?_.l1(this.hostElement,[E]):_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}}))};
_.l.validate=function(){var E=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=E&&!this.data.errorMessage;this.showErrorMessage=E&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.d("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.l.computeStyle=function(E){return E};
_.l.computeShowValidationBelowInput=function(E){return E!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.l.updateUserInputFromBinding=function(E){this.userInput=E.currentTarget.value};
_.l.updateShowErrorMessageFromBinding=function(E){this.showErrorMessage=E.detail.value};
_.Up.Object.defineProperties($t.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
$t.prototype.dataChanged=$t.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],$t.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],$t.prototype,"userInput",void 0);_.k([_.X(),_.t("design:type",Boolean)],$t.prototype,"disableApplyButton",void 0);_.k([_.X(),_.t("design:type",Boolean)],$t.prototype,"hideApplyButton",void 0);
_.k([_.X(),_.t("design:type",Boolean)],$t.prototype,"hideErrorMessage",void 0);_.k([_.X(),_.t("design:type",Boolean)],$t.prototype,"showTick",void 0);_.k([_.X(),_.t("design:type",Boolean)],$t.prototype,"showErrorMessage",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.t("design:type",String)],$t.prototype,"couponStyle",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.t("design:type",Boolean)],$t.prototype,"showValidationBelowInput",void 0);_.k([_.X(),_.t("design:type",Object)],$t.prototype,"textBoxMaxLength",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$t.prototype,"dataChanged",null);
_.k([_.S("showTick","showErrorMessage","userInput"),_.t("design:type",String),_.t("design:paramtypes",[])],$t.prototype,"validationState",null);$t=_.k([_.b({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],$t);
_.A($t,"ytd-ypc-coupon-renderer",function(){if(bdd!==void 0)return bdd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return bdd=E},{mode:1});var Io=function(){return _.r.apply(this,arguments)||this};
_.L(Io,_.r);Io.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"}}}};
Io.prototype.computeStyle=function(E){return E};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Io.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Io.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.t("design:type",String)],Io.prototype,"buttonStyle",void 0);Io=_.k([_.b({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Io);
_.A(Io,"ytd-flow-bottom-bar-renderer",function(){if(rxI!==void 0)return rxI;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return rxI=E},{mode:1});var opt;var Axt;var jJm;var Td=function(){return _.r.apply(this,arguments)||this};
_.L(Td,_.r);Td.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Td.prototype.focus=function(E){this.title&&_.ox(this.title,E)};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Td.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Td.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Td.prototype,"data",void 0);_.k([_.$7("#title"),_.t("design:type",HTMLElement)],Td.prototype,"title",void 0);Td=_.k([_.b({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Td);
_.A(Td,"ytd-flow-top-bar-renderer",function(){if(jJm!==void 0)return jJm;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return jJm=E},{mode:1});var US8;var k5m;var t28;var eQ=function(){return _.r.apply(this,arguments)||this};
_.L(eQ,_.r);eQ.prototype.freeTextValueChanged=function(){_.I2(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
eQ.prototype.updateFreeTextValueFromBinding=function(E){this.freeTextValue=E.detail.value};
_.Up.Object.defineProperties(eQ.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var E,B,I=(B=(E=this.data)==null?void 0:E.responseMaxLength)!=null?B:500,T;return((T=this.freeTextValue)!=null?T:"").length>=I?"maxed-out":""}}});
eQ.prototype.freeTextValueChanged=eQ.prototype.freeTextValueChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],eQ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],eQ.prototype,"freeTextValue",void 0);_.k([_.$7("#user-input"),_.t("design:type",HTMLTextAreaElement)],eQ.prototype,"input",void 0);
_.k([_.S("freeTextValue"),_.t("design:type",Object),_.t("design:paramtypes",[])],eQ.prototype,"characterLimitClass",null);_.k([_.EM("freeTextValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],eQ.prototype,"freeTextValueChanged",null);eQ=_.k([_.QE({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],eQ);
_.A(eQ,"yt-free-text-input-flow-step-renderer",function(){if(t28===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;k5m===void 0&&(k5m=document.createElement("template"));var T=k5m;I.call(B,T.content.cloneNode(!0),E.content.firstChild);t28=E}E=t28;return E},{mode:2});var l4=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return E};
_.L(l4,_.r);l4.prototype.handleFreeTextFlowStepInputChanged=function(E){_.I2(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:E}}])};
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],l4.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],l4.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],l4.prototype,"data",void 0);l4=_.k([_.b({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],l4);
_.A(l4,"ytd-free-text-input-flow-step-renderer",function(){if(US8!==void 0)return US8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return US8=E},{mode:1});var f0O;var V2L;var c0=function(){return _.r.apply(this,arguments)||this};
_.L(c0,_.r);_.k([_.X(),_.t("design:type",Object)],c0.prototype,"data",void 0);c0=_.k([_.b({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],c0);
_.A(c0,"ytd-metadata-line-renderer",function(){if(V2L!==void 0)return V2L;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return V2L=E},{mode:1});var i4=function(){return _.r.apply(this,arguments)||this};
_.L(i4,_.r);i4.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],i4.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],i4.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],i4.prototype,"isMasthead",void 0);i4=_.k([_.b({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],i4);
_.A(i4,"ytd-media-product-renderer",function(){if(f0O!==void 0)return f0O;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return f0O=E},{mode:1});var q_I;var pP=function(){return _.r.apply(this,arguments)||this};
_.L(pP,_.r);pP.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
pP.prototype.onBillboardImageLoaded=function(){_.$O(this.hostElement,"yt-refit")};
pP.prototype.onBillboardImageLoaded=pP.prototype.onBillboardImageLoaded;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],pP.prototype,"data",void 0);_.k([_.$7("#billboardImage"),_.t("design:type",Object)],pP.prototype,"billboardImage",void 0);_.k([_.RN("yt-img-shadow-loaded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],pP.prototype,"onBillboardImageLoaded",null);
pP=_.k([_.b({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],pP);
_.A(pP,"ytd-billboard-masthead-renderer",function(){if(q_I!==void 0)return q_I;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return q_I=E},{mode:1});var F$L;var Yt=function(){var E=_.r.apply(this,arguments)||this;E.smallSize=!1;return E};
_.L(Yt,_.r);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Yt.prototype,"ytComponentBehaviorType",void 0);_.k([_.X(),_.t("design:type",Object)],Yt.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Yt.prototype,"smallSize",void 0);Yt=_.k([_.b({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Yt);
_.A(Yt,"ytd-bullet-formatted-string",function(){if(F$L!==void 0)return F$L;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return F$L=E},{mode:1});var DSI;var ao=function(){return _.r.apply(this,arguments)||this};
_.L(ao,_.r);ao.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ao.prototype,"data",void 0);ao=_.k([_.b({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],ao);
_.A(ao,"ytd-offer-detail-renderer",function(){if(DSI!==void 0)return DSI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return DSI=E},{mode:1});var K$d;var v0=function(){return _.r.apply(this,arguments)||this};
_.L(v0,_.r);v0.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"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],v0.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],v0.prototype,"data",void 0);v0=_.k([_.b({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],v0);
_.A(v0,"ytd-offer-detail-step-renderer",function(){if(K$d!==void 0)return K$d;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return K$d=E},{mode:1});var RB7;var yz=function(){var E=_.r.apply(this,arguments)||this;E.isInOfferModule=!1;return E};
_.L(yz,_.r);_.l=yz.prototype;_.l.computeHasEndpoint=function(){var E;return!((E=this.data)==null||!E.onClickCommand)};
_.l.dataChanged=function(){var E;if((E=this.data)==null?0:E.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")};
_.l.detached=function(){var E;if((E=this.data)==null?0:E.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.l.handleClickEvent=function(){var E;if((E=this.data)==null?0:E.onClickCommand){var B;this.componentBehavior.resolveCommand((B=this.data)==null?void 0:B.onClickCommand)}};
_.l.onContentKeyDown=function(E){E.key==="Enter"?this.handleClickEvent(E):E.key===" "&&E.preventDefault()};
_.l.onContentKeyUp=function(E){E.key===" "&&this.handleClickEvent(E)};
yz.prototype.dataChanged=yz.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],yz.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],yz.prototype,"data",void 0);_.k([_.X({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],yz.prototype,"hasEndpoint",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],yz.prototype,"isInOfferModule",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],yz.prototype,"dataChanged",null);yz=_.k([_.b({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],yz);
_.A(yz,"ytd-channel-masthead-renderer",function(){if(RB7!==void 0)return RB7;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return RB7=E},{mode:1});var EPg;var CP=function(){var E=_.r.apply(this,arguments)||this;E.thumbnailObjectFit="CONTAIN";E.thumbnailObjectPosition="LEFT";E.isExpanded=!1;return E};
_.L(CP,_.r);_.l=CP.prototype;_.l.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.l.dataChanged=function(){this.resetStates()};
_.l.computeisTapOnOfferInfoContainerEnabled=function(){var E;return((E=this.data)==null?void 0:E.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.l.onExpandBtnClick=function(){var E,B=_.h((E=this.data)==null?void 0:E.showMoreButtonRenderer,xSt);B&&_.cx(_.lu(),B.trackingParams);this.isExpanded=!this.isExpanded};
_.l.onOfferInfoClick=function(E){this.isTapOnOfferInfoContainerEnabled&&(_.XZ(_.W8(E)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.rA(_.W8(E)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.l.onBottomBarClick=function(){this.executeTapCommand()};
_.l.executeTapCommand=function(){var E,B=(E=this.data)==null?void 0:E.tapCommand;B&&this.ytComponentBehavior.resolveCommand(B)};
_.l.resetStates=function(){this.isExpanded=!1};
_.Up.Object.defineProperties(CP.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var E=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),B,I,T;return((B=this.data)==null?void 0:B.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&E&&!!((I=this.data)==null?0:(T=I.benefits)==null?0:T.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return((B=_.h((E=this.data)==null?void 0:E.showMoreButtonRenderer,xSt))==null?void 0:B.showMoreButtonTitle)||((I=this.data)==null?void 0:I.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return((B=_.h((E=this.data)==null?void 0:E.showMoreButtonRenderer,xSt))==null?void 0:B.showLessButtonTitle)||((I=this.data)==null?void 0:I.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var E;return(E=this.showLessButtonTitle)!=null?E:""}var B;return(B=this.showMoreButtonTitle)!=null?B:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return((E=this.data)==null?void 0:E.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((B=this.data)==null?0:B.footerTitle)||((I=this.data)==null?0:I.footerSubtitle))}}});
CP.prototype.dataChanged=CP.prototype.dataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],CP.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",String)],CP.prototype,"thumbnailObjectFit",void 0);
_.k([_.X(),_.t("design:type",String)],CP.prototype,"thumbnailObjectPosition",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.t("design:type",Boolean)],CP.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.k([_.X(),_.t("design:type",Object)],CP.prototype,"isExpanded",void 0);_.k([_.X(),_.t("design:type",Object)],CP.prototype,"data",void 0);_.k([_.X({computed:"computeIcon_(data.footerIcon)"}),_.t("design:type",String)],CP.prototype,"icon",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],CP.prototype,"dataChanged",null);_.k([_.S("data.thumbnail"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],CP.prototype,"hasThumbnail",null);_.k([_.S("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],CP.prototype,"enableExpandButton",null);
_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],CP.prototype,"enableOfferContentIcon",null);_.k([_.S("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.t("design:type",Object),_.t("design:paramtypes",[])],CP.prototype,"showMoreButtonTitle",null);_.k([_.S("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.t("design:type",Object),_.t("design:paramtypes",[])],CP.prototype,"showLessButtonTitle",null);
_.k([_.S("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.t("design:type",String),_.t("design:paramtypes",[])],CP.prototype,"expandedBtnText",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],CP.prototype,"enableBottomBar",null);CP=_.k([_.b({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],CP);
_.A(CP,"ytd-offer-card-renderer",function(){if(EPg!==void 0)return EPg;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return EPg=E},{mode:1});var BUs;var w3=function(){return _.r.apply(this,arguments)||this};
_.L(w3,_.r);w3.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"}}}};
w3.prototype.onClick=function(E){if(!_.XZ(E.composedPath()||[],this.hostElement,["A".toString()])){var B,I;if((E=(I=_.h((B=this.data)==null?void 0:B.actionButton,_.NT))==null?void 0:I.command)&&!this.ytComponentBehavior.resolveCommand(E)){var T;(T=_.lu())==null||T.clickCommand(E);_.d("web_ytd_offer_content_renderer_command_resolver_ks")?_.l1(this.hostElement,[E]):_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}})}}};
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],w3.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],w3.prototype,"data",void 0);w3=_.k([_.b({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],w3);
_.A(w3,"ytd-offer-content-renderer",function(){if(BUs!==void 0)return BUs;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return BUs=E},{mode:1});var $D1;var Zz=function(){return _.r.apply(this,arguments)||this};
_.L(Zz,_.r);Zz.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Up.Object.defineProperties(Zz.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var E,B;return!((E=this.data)==null||!E.title)||!((B=this.data)==null||!B.description)}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Zz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Zz.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Zz.prototype,"hasHeaderData",null);Zz=_.k([_.b({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Zz);
_.A(Zz,"ytd-offer-section-renderer",function(){if($D1!==void 0)return $D1;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return $D1=E},{mode:1});var ItI;var P0=function(){return _.r.apply(this,arguments)||this};
_.L(P0,_.r);
P0.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"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],P0.prototype,"data",void 0);P0=_.k([_.b({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],P0);
_.A(P0,"ytd-offer-selection-step-renderer",function(){if(ItI!==void 0)return ItI;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return ItI=E},{mode:1});var TUt;var zd=function(){return _.r.apply(this,arguments)||this};
_.L(zd,_.r);zd.prototype.computeStyle=function(E){return E};
zd.prototype.computeImageWidth=function(E){return E==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.k([_.X({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.t("design:type",String)],zd.prototype,"containerStyle",void 0);_.k([_.X({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.t("design:type",String)],zd.prototype,"imageWidth",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],zd.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],zd.prototype,"data",void 0);
zd=_.k([_.b({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],zd);
_.A(zd,"ytd-confirmation-masthead-renderer",function(){if(TUt!==void 0)return TUt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return TUt=E},{mode:1});var epm;var mb=function(){return _.r.apply(this,arguments)||this};
_.L(mb,_.r);mb.prototype.computeStyle=function(E){return E};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],mb.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.t("design:type",String)],mb.prototype,"containerStyle",void 0);mb=_.k([_.b({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],mb);
_.A(mb,"ytd-purchase-complete-detail-renderer",function(){if(epm!==void 0)return epm;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return epm=E},{mode:1});var lt7;var Qz=function(){var E=_.r.apply(this,arguments)||this;E.scriptsAppended=!1;return E};
_.L(Qz,_.r);Qz.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"}}}};
Qz.prototype.onDataChanged=function(){var E=this.get("data.gtmId");E&&(_.y5(E,_.HA("GL","")),this.setupConversionTracking())};
Qz.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var E=document.createElement("noscript");E.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(E);this.scriptsAppended=!0}};
Qz.prototype.onDataChanged=Qz.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Qz.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Qz.prototype,"scriptsAppended",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Qz.prototype,"onDataChanged",null);Qz=_.k([_.b({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Qz);
_.A(Qz,"ytd-purchase-complete-step-renderer",function(){if(lt7!==void 0)return lt7;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return lt7=E},{mode:1});var cAt;var d3=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(d3,_.r);d3.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],d3.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],d3.prototype,"darkerDarkTheme",void 0);d3=_.k([_.b({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],d3);
_.A(d3,"ytd-ypc-transaction-error-message-renderer",function(){if(cAt!==void 0)return cAt;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return cAt=E},{mode:1});var ics;var pAT;var hY=function(){var E=_.r.apply(this,arguments)||this;E.handlePhoneVerificationSuccess=function(B){if(E.isValidPhoneVerificationCompletionMessageEvent(B)){var I;((I=E.data)==null?0:I.nextStepCommand)&&E.ytComponentBehavior.resolveCommand(E.data.nextStepCommand)}};
return E};
_.L(hY,_.r);hY.prototype.isValidPhoneVerificationCompletionMessageEvent=function(E){if(E.data!=="yt-phone-verification-complete")return!1;E=_.tA(E.origin);return E!==null&&E.includes("youtube.com")};
hY.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
hY.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],hY.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],hY.prototype,"data",void 0);hY=_.k([_.QE({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],hY);
_.A(hY,"yt-feature-enablement-soft-entry-renderer",function(){if(pAT===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;ics===void 0&&(ics=document.createElement("template"));var T=ics;I.call(B,T.content.cloneNode(!0),E.content.firstChild);pAT=E}E=pAT;return E},{mode:1});var Yrs;var atT;var vPd;var yA1;var sw=function(){return _.r.apply(this,arguments)||this};
_.L(sw,_.r);_.k([_.X(),_.t("design:type",Object)],sw.prototype,"data",void 0);sw=_.k([_.QE({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],sw);
_.A(sw,"yt-benefits-item-renderer",function(){if(yA1===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;vPd===void 0&&(vPd=document.createElement("template"));var T=vPd;I.call(B,T.content.cloneNode(!0),E.content.firstChild);yA1=E}E=yA1;return E},{mode:2});var CWH;var wAI;var u4=function(){return _.r.apply(this,arguments)||this};
_.L(u4,_.r);u4.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
u4.prototype.computeisWithoutPadding=function(){var E;return((E=this.data)==null?void 0:E.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],u4.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.t("design:type",Boolean)],u4.prototype,"isWithoutPadding",void 0);u4=_.k([_.QE({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],u4);
_.A(u4,"yt-benefits-section-renderer",function(){if(wAI===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;CWH===void 0&&(CWH=document.createElement("template"));var T=CWH;I.call(B,T.content.cloneNode(!0),E.content.firstChild);wAI=E}E=wAI;return E},{mode:2});var LP=function(){return _.r.apply(this,arguments)||this};
_.L(LP,_.r);LP.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
LP.prototype.computeisUsingLargeWidth=function(){var E;return((E=this.data)==null?void 0:E.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],LP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],LP.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.t("design:type",Boolean)],LP.prototype,"isUsingLargeWidth",void 0);LP=_.k([_.QE({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],LP);
_.A(LP,"yt-benefits-flow-step-renderer",function(){if(atT===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;Yrs===void 0&&(Yrs=document.createElement("template"));var T=Yrs;I.call(B,T.content.cloneNode(!0),E.content.firstChild);atT=E}E=atT;return E},{mode:2});var Zcs;var PW1;var xt=function(){return _.r.apply(this,arguments)||this};
_.L(xt,_.r);xt.prototype.checkIsUsingLargeWidth=function(){var E;return((E=this.data)==null?void 0:E.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.k([_.X(),_.t("design:type",Object)],xt.prototype,"data",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.k([_.X({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.t("design:type",Boolean)],xt.prototype,"isUsingLargeWidth",void 0);xt=_.k([_.QE({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],xt);
_.A(xt,"yt-confirmation-flow-step-renderer",function(){if(PW1===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;Zcs===void 0&&(Zcs=document.createElement("template"));var T=Zcs;I.call(B,T.content.cloneNode(!0),E.content.firstChild);PW1=E}E=PW1;return E},{mode:2});var zpH;var mD8;var Gd=function(){return _.r.apply(this,arguments)||this};
_.L(Gd,_.r);_.k([_.X(),_.t("design:type",Object)],Gd.prototype,"data",void 0);Gd=_.k([_.QE({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Gd);
_.A(Gd,"yt-info-flow-step-renderer",function(){if(mD8===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;zpH===void 0&&(zpH=document.createElement("template"));var T=zpH;I.call(B,T.content.cloneNode(!0),E.content.firstChild);mD8=E}E=mD8;return E},{mode:2});var QI2;var dD7;var Ow=function(){return _.r.apply(this,arguments)||this};
_.L(Ow,_.r);_.k([_.X(),_.t("design:type",Object)],Ow.prototype,"data",void 0);Ow=_.k([_.QE({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Ow);
_.A(Ow,"yt-info-list-flow-step-renderer",function(){if(dD7===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;QI2===void 0&&(QI2=document.createElement("template"));var T=QI2;I.call(B,T.content.cloneNode(!0),E.content.firstChild);dD7=E}E=dD7;return E},{mode:2});var hp2=_.rp(function(E){var B=E.data;return _.w("styled-text-view-model",{class:_.RQ("ytStyledTextViewModelHost",function(){return tC8(B().fontAttributes)},function(){return ki9(B().color)})},_.w(_.aS,{text:function(){return B().text},
ariaLabel:function(){var I,T,e;return(e=(I=B().accessibility)==null?void 0:(T=I.accessibilityData)==null?void 0:T.label)!=null?e:""}}))},"Ie");
hp2.idomCompat=!0;var sIO=_.rp(function(E){var B=function(){var e,c,Y,v;return(v=(Y=(e=E.alt)==null?void 0:e.call(E))!=null?Y:(c=E.data().accessibilityData)==null?void 0:c.label)!=null?v:""},I=function(){return E.data().imageWidth},T=function(){return E.data().imageHeight};
return _.w("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.w(_.wU,{cond:function(){var e=E.data();if(e){var c,Y,v;var y=((c=_.Q().resolve(_.Fx(_.ME)))==null?0:c())?(Y=e.imageDark)!=null?Y:e.imageLight:(v=e.imageLight)!=null?v:e.imageDark}else y=void 0;return y},
then:function(e){return _.w(_.Ja,Object.assign({},E,{data:e,alt:B,targetWidth:I,targetHeight:T,preserveHeight:!0,preserveWidth:!0}))}}))},"Je");
sIO.idomCompat=!0;var nP=_.rp(function(E){var B=E.data;E=_.Wl(function(){return B().slots},[]);
var I=_.Wl(function(){return B().layoutProperties},{}),T=_.Q().resolve(_.NE);
return _.w("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:bbm(I,T)},_.w(_.Zt,{each:E,keyBy:"INDEX"},function(e){return _.w("div",{class:"ytContainerLayoutViewModelSlot",style:bbm(function(){return e().layoutProperties},T)},_.w(_.hM,{data:function(){return e().contents}},{containerLayoutViewModel:nP,
badgeViewModel:_.oM,buttonViewModel:_.ne,styledTextViewModel:hp2,contentPreviewImageViewModel:function(c){return _.w(_.AF,{data:c.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(c){return _.w(sIO,{data:c.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Ke");
nP.idomCompat=!0;var uxg=_.rp(function(E){var B=E.data;var I=E.stateFns;var T=function(){var Z=B(),P=Z.productId;return!(!Z.clearGroupId&&!P)},e=function(){var Z=B(),P=Z.clearGroupId;
return(Z=Z.productId)?I().isProductSelected(Z):P?I().getSelectedProductByGroupId(P)==null:!1},c=function(){var Z=B(),P=Z.clearGroupId;
if(Z=Z.productId)I().onProductSelected(Z);else if(P)I().onClearGroupSelected(P)},Y=function(){var Z=B(),P=Z.clearGroupId;
if(Z=Z.productId){var z;return"group:"+(((z=I().getProductById(Z))==null?void 0:z.groupId)||"")}return P?"group:"+P:""},v=_.Wl(function(){return B().header},[]),y=_.Wl(function(){return B().body},[]);
return _.w("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.w(_.wU,{cond:function(){return v().length>0||T()},
then:function(){return _.w("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.w("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.w(_.hM,{data:v},{containerLayoutViewModel:function(Z){return _.w("div",{class:"ytPdpCardSectionViewModelContentItem"},_.w(nP,{data:Z.data}))},
styledTextViewModel:function(Z){return _.w("div",{class:"ytPdpCardSectionViewModelContentItem"},_.w(hp2,{data:Z.data}))}})),_.w(_.wU,{cond:T,
then:function(){return _.w("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.w(_.w$,{checked:e,name:Y,onChange:c}))}}))}}),_.w(_.wU,{cond:function(){return y().length>0},
then:function(){return _.w("div",null,_.w(_.hM,{data:y},{containerLayoutViewModel:function(Z){return _.w("div",{class:"ytPdpCardSectionViewModelContentItem"},_.w(nP,{data:Z.data}))}}))}}))},"Le");
uxg.idomCompat=!0;var L4m=_.rp(function(E){var B=E.data;var I=E.stateFns;return _.w("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.w(_.wU,{cond:function(){return B().banner},
then:function(T){return _.w("div",{class:"ytPdpCardViewModelBanner"},_.w(_.aS,{text:T}))}}),_.w(_.hM,{data:function(){return B().sections}},{pdpCardSectionViewModel:function(T){T=T.data;
var e={};return _.w("div",{class:_.RQ("ytPdpCardViewModelSectionContainer",(e.ytPdpCardViewModelShowDividers=function(){return B().showDividers},e))},_.w(uxg,{data:T,
stateFns:I}))}}))},"Me");
L4m.idomCompat=!0;var xDm=_.rp(function(E){var B=E.data;var I=E.isOverlay;E={};return _.w("pdp-masthead-view-model",{class:_.RQ("ytPdpMastheadViewModelHost",(E.ytPdpMastheadViewModelIsOverlay=I,E))},_.w(_.hM,{data:function(){return B().image}},{contentPreviewImageViewModel:_.AF,
themedImageViewModel:function(T){return _.w(sIO,{data:T.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.w(_.wU,{cond:function(){return B().title},
then:function(T){return _.w("h1",{class:"ytPdpMastheadViewModelHeading"},_.w(_.aS,{text:T,isOverlay:I}))}}),_.w(_.Zt,{each:function(){var T;
return(T=B().finePrint)!=null?T:[]}},function(T){return _.w("div",{class:"ytPdpMastheadViewModelFinePrint"},_.w(_.aS,{text:T,
isOverlay:I}))}))},"Ne");
xDm.idomCompat=!0;var GbH=_.rp(function(E){var B=E.data;var I=E.stateFns;return _.w("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.w(_.Zt,{each:function(){var T=I().getSelectedPricingOptions().map(function(c){return c.pricingOptionId}),e=I().getSelectedProductByGroupId(B().groupId);
return e?e.pricingOptions.map(function(c){return{pricingOption:c,isSelected:T.includes(c.pricingOptionId)}}):(_.GF(Error("Gj`"+B().groupId)),[])},
keyBy:"INDEX"},function(T){return _.w("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.w("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.w(_.hM,{data:function(){return T().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:nP})),_.w("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.w(_.w$,{checked:function(){return T().isSelected},
onClick:function(){I().onPricingOptionSelected(T().pricingOption.pricingOptionId);var e=T().pricingOption.onSelectPricingOption;if(e=_.ha(e)){var c;(c=_.Q().resolve(_.Dt))==null||c.resolveCommand(e)}}})))}))},"Oe");
GbH.idomCompat=!0;var Oc7=_.rp(function(E){var B=E.data;var I=E.stateFns;return _.w("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.w(_.hM,{data:function(){var T,e;return(e=(T=I().getSelectedPricingOptions()[0])==null?void 0:T.primaryButton)!=null?e:B().emptyStateButton}},{buttonViewModel:_.ne}))},"Pe");
Oc7.idomCompat=!0;var nPt=_.rp(function(E){var B=E.stateFns;return _.w("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.w(_.hM,{data:function(){return B().getSelectedPricingOptions().flatMap(function(I){return I.summaryLines}).filter(function(I){return!!I})}},{containerLayoutViewModel:function(I){return _.w("div",{class:"ytPdpSummaryViewModelLineItem"},_.w(nP,{data:I.data}))}}))},"Qe");
nPt.idomCompat=!0;var MIL=_.rp(function(E){function B(N){var W=Y();_.Jd(_.x4("pdpStateEntity",W,{key:W,selectedPricingOptions:N}))}
var I=E.data;var T=E.internalScrolling;var e=E.stateFnsForTesting;var c=_.Wl(function(){return I().allProducts},[]),Y=_.Wl(function(){return I().pdpStateEntityKey},""),v=_.iO(fs9,Y),y=_.aJ(function(){_.s_(!0);
var N;return(N=e==null?void 0:e())!=null?N:E97(v,c,B)},void 0,"POBqwe"),Z=_.Wl(function(){return I().body},[]),P=_.Wl(function(){return I().columnBreakHints},[]),z=function(){return I().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},m=function(){return z()||I().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},u=_.aJ(function(){var N=_.VW(I().background),W;
if(N==null?0:(W=N.sources)==null?0:W.length){var U=U===void 0?!0:U;N=_.GuG(void 0,N.sources,void 0,U,U?1E3:void 0,U?void 0:1E3)}else N=null;return N},void 0,"BkCmEd");
E=_.c$({"--pdp-view-model-background":function(){return u()?"url("+u()+")":void 0}});
var x={};T=_.RQ("ytPdpViewModelHost",(x.ytPdpViewModelHasBackground=function(){return m()||!!u()},x.ytPdpViewModelHasDarkBackground=m,x.ytPdpViewModelHasScrim=z,x.ytPdpViewModelInternalScrolling=_.Wl(T,!1),x));
var M=function(N){var W={};return _.RQ("ytPdpViewModelItem",(W.ytPdpViewModelFullBleed=function(){return _.h$Q(N())==="dividerViewModel"||_.h$Q(N())==="sectionHeaderViewModel"},W.ytPdpViewModelNoVerticalPadding=function(){return _.h$Q(N())==="sectionHeaderViewModel"},W))};
_.uW(function(){var N=I().onStartCommand;if(N&&(N=_.ha(N))){var W;(W=_.Q().resolve(_.Dt))==null||W.resolveCommand(N)}});
return _.w("pdp-view-model",{class:T,style:E},_.w("div",{class:"ytPdpViewModelColumnContainer"},_.w(_.Zt,{each:function(){return B1I(Z(),P())},
keyBy:"INDEX"},function(N){return _.w("div",{class:"ytPdpViewModelColumn"},_.w(_.hM,{data:N},{containerLayoutViewModel:function(W,U){W=W.data;return _.w("div",{class:M(function(){return N()[U()]})},_.w(nP,{data:W}))},
dividerViewModel:function(W,U){W=W.data;return _.w("div",{class:M(function(){return N()[U()]})},_.w(_.thZ,{data:W}))},
pdpCardViewModel:function(W,U){W=W.data;return _.w("div",{class:M(function(){return N()[U()]})},_.w(L4m,{data:W,
stateFns:y}))},
pdpMastheadViewModel:function(W,U){W=W.data;return _.w("div",{class:M(function(){return N()[U()]})},_.w(xDm,{data:W,
isOverlay:m}))},
pdpPricingOptionSelectorViewModel:function(W,U){W=W.data;return _.w("div",{class:M(function(){return N()[U()]})},_.w(GbH,{data:W,
stateFns:y}))},
pdpPrimaryButtonViewModel:function(W,U){W=W.data;return _.w("div",{class:M(function(){return N()[U()]})},_.w(Oc7,{data:W,
stateFns:y}))},
pdpSummaryViewModel:function(W,U){W=W.data;return _.w("div",{class:M(function(){return N()[U()]})},_.w(nPt,{data:W,
stateFns:y}))},
sectionHeaderViewModel:function(W,U){W=W.data;return _.w("div",{class:M(function(){return N()[U()]})},_.w(_.VN,{data:W}))}}))})))},"Re");
MIL.idomCompat=!0;_.oQ(MIL,"pdp-view-model",{props:{data:_.Jh,stateFnsForTesting:_.bu,internalScrolling:_.bu}});var HcT=_.rp(function(E){var B=E.data;var I=E.className;var T=_.iO(_.B3,function(){return B().flowStateEntityKey});
return _.w("ytm-premium-purchase-button-renderer",{class:_.RQ("yt-premium-purchase-button-renderer",I)},_.w(_.hM,{data:function(){var e;return(e=_.h(T(),t7))==null?void 0:e.primaryButtonOverride}},{buttonRenderer:function(e){return _.w(_.nG,{data:e.data,
className:I})},
buttonViewModel:function(e){return _.w(_.ne,{data:e.data,className:I})}}))},"Se");
HcT.idomCompat=!0;var NUt=_.rp(function(E){var B=E.data;var I=function(){return $m1(B().style)},T=_.RQ("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I),e=_.RQ("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I);
return _.w("yt-flow-bottom-bar-renderer",{class:_.RQ("yt-flow-bottom-bar-renderer",E.className,I)},_.w(_.hM,{data:function(){return B().secondaryButton}},{buttonRenderer:function(c){return _.w(_.nG,{data:c.data,
className:e})},
buttonViewModel:function(c){return _.w(_.ne,{data:c.data,className:e})},
premiumPurchaseButtonRenderer:function(c){return _.w(HcT,{data:c.data,className:e})}}),_.w(_.hM,{data:function(){return B().primaryButton}},{buttonRenderer:function(c){return _.w(_.nG,{data:c.data,
className:T})},
buttonViewModel:function(c){return _.w(_.ne,{data:c.data,className:T})},
premiumPurchaseButtonRenderer:function(c){return _.w(HcT,{data:c.data,className:T})}}))},"Te");
NUt.idomCompat=!0;_.oQ(NUt,"yt-flow-bottom-bar-renderer",{props:{data:_.Jh,className:_.Jh}});var gPL=_.rp(function(E){return _.w("yt-offer-summary-renderer",{class:_.RQ(E.className,"ytOfferSummaryRendererHost")},_.w("div",{class:"ytOfferSummaryRendererTextContainer"},_.w("div",{class:"ytOfferSummaryRendererEyebrowText"},_.w(_.aS,{text:function(){return E.data().eyebrowText}})),_.w("div",{class:"ytOfferSummaryRendererTitle"},_.w(_.aS,{text:function(){return E.data().title}})),_.w("div",{class:"ytOfferSummaryRendererSubtitle"},_.w(_.aS,{text:function(){return E.data().subtitle}})),_.w("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.w(_.Zt,{each:function(){var B;
return(B=E.data().featureListData)!=null?B:[]}},function(B){var I;
return _.w("div",{class:"ytOfferSummaryRendererFeatureList"},_.w(_.i0,{icon:(I=B.icon)==null?void 0:I.iconType,className:B.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.w("div",{class:"ytOfferSummaryRendererFeatureListText"},_.w(_.aS,{text:B.text})))})),_.w("div",{class:"ytOfferSummaryRendererDescription"},_.w(_.aS,{text:function(){return E.data().description}}))))},"Ue");_.oQ(_.rp(function(E){var B={};B=_.RQ("ytOfferSummaryFlowStepRendererHost",(B.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=E.shouldDisableHeaderTopMargin,B));return _.w("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:B},_.w("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.w("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.w(_.aS,{text:function(){return E.data().header}})),_.w("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.w(_.aS,{text:function(){return E.data().subtitle}}))),_.w("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.w(_.hM,{data:function(){return E.data().offerSummary}},{offerSummaryRenderer:function(I){return _.w(gPL,{data:I.data,
className:E.flowClassName})}})))},"Ve"),"yt-offer-summary-flow-step-renderer",{props:{data:_.bu,
flowClassName:_.bu,flowStateEntityKey:_.bu,shouldDisableHeaderTopMargin:_.bu}});var Sr2=_.rp(function(E){var B=E.data;var I=E.className;var T=E.flowStateEntityKey;var e=E.selectionStepStyle;E=_.TI(function(y){var Z=B(),P=T==null?void 0:T();y.target&&(y.stopPropagation(),y=P||"",P=_.B3(_.gp().getState(),y),Z=Object.assign({},P,{premiumPurchaseFlowState:{selectedOptionId:Z.optionId,primaryButtonOverride:Z.primaryButtonOverride}}),_.gp().dispatch(_.aL("flowStateEntity",y,Z)));return!1});
var c=function(){return(T==null?void 0:T())||""},Y=_.iO(_.B3,c);
_.uW(function(){var y=B(),Z=c(),P=Y();!_.h(P,t7)&&y.defaultSelected&&Z!==""&&y.primaryButtonOverride&&IV9(y.optionId||"",Z,y.primaryButtonOverride,P)});
var v={};return _.w("ytm-option-item-renderer",{"on:click":E,class:_.RQ(I,"ytm-option-item-renderer",(v["ytm-option-item-renderer--lp2-style"]=function(){return(e==null?void 0:e())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},v))},_.w("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.w("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var y=B(),Z=c(),P=Y();P=_.h(P,t7);return(P?(P==null?void 0:P.selectedOptionId)||"":y.defaultSelected&&Z!==""?(y==null?void 0:y.optionId)||"":"")===B().optionId},
name:("input"+_.GN(_.Oj)).toString()})),_.w("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.w(_.wU,{cond:function(){return B().eyebrowText},
then:function(){return _.w("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.w(_.aS,{text:function(){return B().eyebrowText}}))}}),_.w("div",{class:"ytm-option-item-renderer__option-item-title"},_.w(_.aS,{text:function(){return B().title}})),_.w("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.w(_.aS,{text:function(){return B().subtitle}})),_.w("div",{class:"ytm-option-item-renderer__option-item-description"},_.w(_.aS,{text:function(){return B().description}}))))},
"We");var JA9=_.rp(function(E){var B=E.data;var I=E.flowClassName;var T=E.flowStateEntityKey;var e=E.selectionStepStyle;return _.w("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.w("div",{class:"yt-option-section-renderer__option-section-header-section"},_.w("div",{class:"yt-option-section-renderer__option-section-header"},_.w(_.aS,{text:function(){return B().title}}),_.w(_.hM,{data:function(){return B().titleBadge}},{badgeViewModel:function(c){return _.w(_.oM,
{data:c.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.w(_.wU,{cond:function(){return B().subtitle},
then:function(){return _.w("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.w(_.aS,{text:function(){return B().subtitle}}))}}),_.w(_.wU,{cond:function(){return B().featureListData},
then:function(c){return _.w("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.w(_.Zt,{each:c},function(Y){var v;return _.w("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.w(_.i0,{icon:(v=Y.icon)==null?void 0:v.iconType,className:Y.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.w("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.w(_.aS,{text:Y.text})))}))}}),_.w(_.Zt,{each:function(){return B().sectionDisclaimers||[]}},function(c){return _.w("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.w(_.aS,{text:c}))})),_.w(_.hM,{data:function(){return B().optionItems}},{optionItemRenderer:function(c){return _.w("div",{class:"yt-option-section-renderer__option-item"},_.w(Sr2,{data:c.data,
className:I,flowStateEntityKey:T,selectionStepStyle:e}))}}),_.w(_.wU,{cond:function(){return B().offerText},
then:function(){return _.w("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.w(_.aS,{text:function(){return B().offerText}}))}}))},"Xe");
JA9.idomCompat=!0;var W4t=_.rp(function(E){var B=E.data;var I=E.flowClassName;var T=E.flowStateEntityKey;E=E.isDesktop;var e=function(){var Z;return(Z=B().flowStateEntityKey)!=null?Z:T==null?void 0:T()},c=function(){return(e==null?void 0:e())||""},Y=function(){return B().style},v=_.iO(_.B3,c);
_.uW(function(){var Z=B(),P=c(),z=v();!_.h(z,t7)&&Z.noPreselect&&P!==""&&Z.defaultButtonOverride&&IV9("default",P,Z.defaultButtonOverride,z)});
var y={};return _.w("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.RQ("ytm-option-selection-flow-step-renderer",(y["ytm-option-selection-flow-step-renderer--desktop"]=E,y["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return B().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},y))},_.w("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"},
_.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.w(_.aS,{text:function(){return B().header}})),_.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.w(_.aS,{text:function(){return B().subtitle}}))),_.w(_.hM,{data:function(){return B().optionItems||[]}},{optionItemRenderer:function(Z){return _.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.w(Sr2,{data:Z.data,
className:I,flowStateEntityKey:e,selectionStepStyle:Y}))},
optionSectionRenderer:function(Z){return _.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.w(JA9,{data:Z.data,flowClassName:I,flowStateEntityKey:e,selectionStepStyle:Y}))}}))},"Ye");
W4t.idomCompat=!0;_.oQ(W4t,"yt-option-selection-flow-step-renderer",{props:{data:_.Jh,flowClassName:_.Jh,flowStateEntityKey:_.Jh,isDesktop:_.Jh}});var T1m,ed2;_.Mj=_.rp(function(E){var B=_.XS(E,{type:1,disablePadding:!1,disablePrimaryButton:!1}),I=B.data,T=B.type;E=B.disablePadding;var e=B.disablePrimaryButton,c=B.onClickPrimaryButton,Y=function(){return I().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},v=function(){return{disabled:e(),
state:e()?"disabled":"active"}},y=function(){return I().leadingLabel||I().trailingLabel};
B={};return _.w("yt-panel-footer-view-model",{class:_.RQ("yt-panel-footer-view-model-wiz",(B["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return I().shouldHideDivider},B["yt-panel-footer-view-model-wiz--disable-padding"]=E,B))},_.w(_.wU,{cond:y,
then:function(){var Z={},P={};return _.w("div",{class:_.RQ("yt-panel-footer-view-model-wiz__text-row",(Z["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var z=I();return!(!z.leadingLabel&&!z.trailingLabel||!z.primaryButton&&!z.secondaryButton)},Z))},_.w(_.aS,{text:function(){return I().leadingLabel},
className:_.RQ((P["yt-panel-footer-view-model-wiz--text-padding"]=y,P))}),_.w(_.aS,{text:function(){return I().trailingLabel}}))}}),_.w(_.wU,{cond:Y,
then:function(){var Z={};return _.w("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.w("div",{class:_.RQ("yt-panel-footer-view-model-wiz__primary-button",(Z["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return I().secondaryButton},Z))},_.w(_.hM,{data:function(){return I().primaryButton}},{buttonViewModel:function(P){return _.w(_.ne,{data:P.data,
buttonOverrides:v,onClick:c})}})),_.w(_.hM,{data:function(){return I().secondaryButton}},{buttonViewModel:_.ne}))}}),_.w(_.wU,{cond:function(){return!Y()},
then:function(){var Z={},P={},z={};return _.w("div",{class:_.RQ("yt-panel-footer-view-model-wiz__button-row",(Z["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===T()},Z))},_.w("div",{class:_.RQ("yt-panel-footer-view-model-wiz__button-row--left-button",(P["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===T()},P["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!I().secondaryButton||0===T()},P["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===T()},P))},_.w(_.hM,{data:function(){return I().secondaryButton}},{buttonViewModel:_.ne})),_.w("div",{class:_.RQ("yt-panel-footer-view-model-wiz__primary-button",(z["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===T()||1===T()},z["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===T()},z))},_.w(_.hM,{data:function(){return I().primaryButton}},{buttonViewModel:function(m){return _.w(_.ne,{data:m.data,
buttonOverrides:v,onClick:c})}})))}}))},"Ze");
_.Mj.idomCompat=!0;_.XAO=_.rp(function(E){E=_.XS(E,{disablePadding:!1});var B=E.data,I=E.disablePadding;E=_.pp2(function(){return B().formId});
var T=E.onSubmit,e=E.isValid,c=E.isSubmitting;return _.w("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.w(_.hM,{data:function(){return B().panelFooter}},{panelFooterViewModel:function(Y){return _.w(_.Mj,{data:Y.data,
onClickPrimaryButton:function(){T()},
disablePrimaryButton:function(){return!e()||c()},
disablePadding:I})}}))},"$e");_.oQ(_.XAO,"yt-form-footer-view-model",{props:{data:_.Jh,disablePadding:_.Jh}});_.oQ(_.rp(function(E){return _.w("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.w(_.wU,{cond:function(){var B;return(B=E.data())==null?void 0:B.image},
then:function(B){return _.w(_.Ja,{data:B,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.w(_.aS,{text:function(){var B;
return(B=E.data())==null?void 0:B.title}})),_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.w(_.aS,{text:function(){var B;
return(B=E.data())==null?void 0:B.subtitle}})),_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.w(_.hM,{data:function(){var B;
return(B=E.data())==null?void 0:B.viewTipsButton}},{buttonViewModel:_.ne}))))},"af"),"yt-contributor-zero-state-view-model",{props:{data:_.Jh}});var rA7=_.rp(function(E){var B=_.iO(Y7I,_.Wl(function(){var I;return(I=E.data())==null?void 0:I.noteFeedEntityKey},""));
return _.w("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.w(_.wU,{cond:function(){var I,T;return(I=E.data())==null?void 0:(T=I.noteData)==null?void 0:T.isPinned},
then:function(){return _.w(_.i0,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.w(_.aS,{text:function(){var I,T;
return(I=E.data())==null?void 0:(T=I.noteData)==null?void 0:T.headerText}}),_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.w(_.aS,{text:function(){var I,T;
return(I=E.data())==null?void 0:(T=I.noteData)==null?void 0:T.delimiter}})),_.w(_.aS,{text:function(){var I,T;
return(I=B())==null?void 0:(T=I.contributorNote)==null?void 0:T.publishedTimeText}})),_.w(_.hM,{data:function(){var I,T,e,c=(I=E.data())==null?void 0:I.noteData;
I=(T=B())==null?void 0:(e=T.contributorNote)==null?void 0:e.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:c.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:c.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:c.deleteDialogTitle}]},dialogMessages:[{runs:[{text:c.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:c.deleteActionText}]},command:{performCommentActionEndpoint:{action:I}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:c.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(I){return _.w(_.ne,{data:I.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.w("div",{class:"ytNoteViewModelNoteContent"},_.w(_.aS,{text:function(){var I,T;
return(I=B())==null?void 0:(T=I.contributorNote)==null?void 0:T.text}})))},"bf");
rA7.idomCompat=!0;_.oQ(rA7,"yt-note-view-model",{props:{data:_.Jh}});var H0=_.rp(function(E){var B=_.XS(E,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),I=B.label,T=B.text,e=B.placeholder,c=B.hint;E=B.rows;var Y=B.overflowStyle,v=B.outline,y=B.disabled,Z=B.disableNewLines,P=B.characterLimit,z=B.validation,m=B.onInput,u=_.oH();B=_.p(_.l0(function(){return T()}));
var x=B.next().value,M=B.next().value;B=_.p(_.lQ(!1,void 0,"fXvinf"));var N=B.next().value,W=B.next().value,U=function(){W(!0)},q=function(){W(!1)};
_.uW(function(){var rJ=u.value,Uc=Y(),CV=x();Uc==="expand-vertically"&&CV&&aVO(rJ);u.value.addEventListener("focusin",U);u.value.addEventListener("focusout",q)});
_.dt(function(){u.value.removeEventListener("focusin",U);u.value.removeEventListener("focusout",q)});
var f=function(){var rJ;return(rJ=z())==null?void 0:rJ.validate(x())},ed=function(){return P()&&!f()&&x().length>P().maxChars},K=function(){return!!f()||ed()};
B=_.TI(function(rJ){if(!rJ.currentTarget)return!1;rJ=rJ.currentTarget;M(rJ.value);Y()==="expand-vertically"&&aVO(rJ);m==null||m(rJ.value);return!0});
var p4=_.TI(function(rJ){Z()&&rJ.key==="Enter"&&rJ.preventDefault();return!1}),sc=_.TI(function(){u.value.focus()}),Gf=function(){return e()||I()},xi={},ki={},WG={};
return _.w("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.w("div",{class:_.RQ("ytStandardsTextareaShapeTextareaContainer",(xi.ytStandardsTextareaShapeTextareaContainerOutline=v,xi.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=y,xi.ytStandardsTextareaShapeTextareaContainerOutlineError=K,xi)),"on:click":sc},_.w("label",{class:_.RQ("ytStandardsTextareaShapeLabel",(ki.ytStandardsTextareaShapeLabelFocused=N,ki.ytStandardsTextareaShapeLabelDisabled=y,ki.ytStandardsTextareaShapeLabelError=
function(){return K()&&!y()},ki.ytStandardsTextareaShapeLabelHidden=function(){return!N()&&!x()&&!!Gf()},ki))},I),_.w("div",{class:_.RQ("ytStandardsTextareaShapePlaceholder",(WG.ytStandardsTextareaShapePlaceholderVisible=function(){return!N()&&!x()},WG)),
"aria-hidden":"true"},Gf),_.w("textarea",{el:u,class:"ytStandardsTextareaShapeTextarea",rows:E,disabled:y,placeholder:Gf,"on:input":B,"on:keydown":p4},x)),_.w(_.wU,{cond:function(){return c()&&!K()},
then:function(){var rJ={};return _.w("div",{class:_.RQ("ytStandardsTextareaShapeHint",(rJ.ytStandardsTextareaShapeHintDisabled=y,rJ))},_.w("div",{class:"ytStandardsTextareaShapeHintHintMessage"},c))}}),_.w(_.wU,{cond:f,
then:function(){return _.w(bc2,{disabled:y},_.w("div",{class:"ytStandardsTextareaShapeErrorMessage"},f))}}),_.w(_.wU,{cond:P,
then:function(rJ){return _.w(_.wU,{cond:ed,then:function(){return _.w(bc2,{disabled:y},_.w("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return rJ().errorMessage}),_.w("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return x().length+"/"+rJ().maxChars}))}})}}))},"cf");
H0.idomCompat={callbacks:{onInput:!0}};var bc2=_.rp(function(E){var B={};return _.w("div",{class:_.RQ("ytStandardsTextareaShapeError",(B.ytStandardsTextareaShapeErrorDisabled=E.disabled,B)),role:"alert"},_.w(_.i0,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),E.children)},"df");_.oPd=_.rp(function(E){var B=E.data;return _.w("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.w(H0,{text:E.text,label:function(){var I;return(I=B().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=B().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=B().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=B().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=B().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:E.disabled,disableNewLines:function(){var I;return(I=B().displayProperties)==null?void 0:I.disableNewLines},
onInput:E.onInput,characterLimit:E.characterLimit,validation:E.validation,rows:function(){var I;return(I=B().displayProperties)==null?void 0:I.rows}}))},"ef");_.AA2=_.rp(function(E){var B=E.data;return _.w("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.w(H0,{text:E.text,label:function(){var I;return(I=B().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=B().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=B().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=B().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=B().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var I;return(I=B().displayProperties)==null?void 0:I.disableNewLines},
onInput:E.onInput,characterLimit:E.characterLimit,validation:E.validation,rows:function(){var I;return(I=B().displayProperties)==null?void 0:I.rows}}))},"ff");var jId=_.rp(function(E){var B=_.p(_.l0(function(){var Gf,xi;return((Gf=E.data().structuredContextNoteFormSchema)==null?0:(xi=Gf.initialValues)==null?0:xi.noteBody)?E.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),I=B.next().value,T=B.next().value;
B=_.p(_.l0(function(){E.data();return!1}));
var e=B.next().value,c=B.next().value;B=_.p(_.l0(function(){E.data();return!1}));
var Y=B.next().value,v=B.next().value;B=_.p(_.l0(function(){var Gf,xi;return((Gf=E.data().structuredContextNoteFormSchema)==null?0:(xi=Gf.initialValues)==null?0:xi.timestamp)?E.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var y=B.next().value,Z=B.next().value;B=_.p(_.l0(function(){E.data();return!1}));
var P=B.next().value,z=B.next().value;B=_.p(_.l0(function(){var Gf,xi;return((Gf=E.data().structuredContextNoteFormSchema)==null?0:(xi=Gf.initialValues)==null?0:xi.sources)?[E.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var m=B.next().value,u=B.next().value;B=_.p(_.l0(function(){E.data();return!1}));
var x=B.next().value,M=B.next().value;B=_.p(_.l0(function(){return!1}));
var N=B.next().value,W=B.next().value;_.uW(function(){var Gf;_.ixs((Gf=E.data().structuredContextNoteFormSchema)==null?void 0:Gf.id,{isSubmitting:N,onSubmit:function(){W(!0);var xi=QaL(I(),y(),m(),E.data()),ki=_.Q().resolve(_.Dt);xi&&ki&&ki.resolveCommand(xi,{commandController:{onSuccess:function(){W(!1)}}})},
isValid:function(){return e()&&!Y()&&!P()&&!x()}})});
var U=function(Gf){if(Gf!==void 0&&(T(Gf),!e()&&Gf.length>0&&c(!0),e())){var xi=Ci7(E.data());if(xi){var ki=xi.minLength;xi=xi.maxLength;ki&&Gf.length<ki?v(!0):xi&&Gf.length>xi?v(!0):v(!1)}}},q=function(Gf){if(Gf!==void 0){Z(Gf);
if(Gf.length>0){var xi,ki,WG,rJ,Uc=Zxd((xi=E.data())==null?void 0:(ki=xi.structuredContextNoteFormSchema)==null?void 0:(WG=ki.fieldSchemas)==null?void 0:(rJ=WG.timestamp)==null?void 0:rJ.validationSchema);if(Uc&&(xi=Uc.regex)&&!(new RegExp(xi)).test(Gf)){z(!0);return}}z(!1)}},f=function(Gf){if(Gf!==void 0){var xi=Gf.split(/[ \n]/).map(function(ki){return ki.trim()});
u(xi);if(Gf.length>0)for(Gf=_.p(xi),xi=Gf.next();!xi.done;xi=Gf.next())if(!mmt(xi.value)){M(!0);return}M(!1)}},ed=function(){return{validate:function(Gf){if(e()){var xi=Ci7(E.data());
if(xi){var ki=xi.minLength;xi=xi.translations;if(ki&&Gf.length<ki)return xi==null?void 0:xi.minLengthErrorMessage}}}}},K=function(){var Gf=Ci7(E.data()),xi=Gf==null?void 0:Gf.maxLength,ki;
Gf=Gf==null?void 0:(ki=Gf.translations)==null?void 0:ki.maxLengthErrorMessage;if(xi&&Gf)return{maxChars:xi,errorMessage:Gf}},p4=function(){return{validate:function(Gf){if(Gf){var xi,ki,WG,rJ,Uc=Zxd((xi=E.data())==null?void 0:(ki=xi.structuredContextNoteFormSchema)==null?void 0:(WG=ki.fieldSchemas)==null?void 0:(rJ=WG.timestamp)==null?void 0:rJ.validationSchema);
if(Uc&&(xi=Uc.regex,Uc=Uc.translations,xi&&!(new RegExp(xi)).test(Gf)))return Uc==null?void 0:Uc.regexErrorMessage}}}},sc=function(){return{validate:function(Gf){if(Gf){var xi,ki,WG,rJ,Uc=zdt((xi=E.data())==null?void 0:(ki=xi.structuredContextNoteFormSchema)==null?void 0:(WG=ki.fieldSchemas)==null?void 0:(rJ=WG.sources)==null?void 0:rJ.validationSchema);
if(Uc&&(xi=Uc.translations,xi==null?0:xi.selectedErrorMessage))for(Gf=Gf.split(/[ \n]/).map(function(CV){return CV.trim()}),Gf=_.p(Gf),ki=Gf.next();!ki.done;ki=Gf.next())if(!mmt(ki.value))return Gf=void 0,(Gf=xi)==null?void 0:Gf.selectedErrorMessage}}}};
return _.w("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.w("div",{class:"ytStructuredContextNoteViewModelTextField"},_.w(_.hM,{data:function(){var Gf;return(Gf=E.data())==null?void 0:Gf.noteContents}},{textFormFieldViewModel:function(Gf){return _.w(_.AA2,{data:Gf.data,
onInput:U,validation:ed,characterLimit:K})},
textFieldViewModel:function(Gf){return _.w(_.oPd,{data:Gf.data,onInput:U,validation:ed,characterLimit:K})}})),_.w("div",{class:"ytStructuredContextNoteViewModelTextField"},_.w(_.hM,{data:function(){var Gf;
return(Gf=E.data())==null?void 0:Gf.noteTimestamp}},{textFormFieldViewModel:function(Gf){return _.w(_.AA2,{data:Gf.data,
onInput:q,validation:p4})},
textFieldViewModel:function(Gf){return _.w(_.oPd,{data:Gf.data,onInput:q,validation:p4})}})),_.w("div",{class:"ytStructuredContextNoteViewModelTextField"},_.w(_.hM,{data:function(){var Gf;
return(Gf=E.data())==null?void 0:Gf.noteSources}},{textFormFieldViewModel:function(Gf){return _.w(_.AA2,{data:Gf.data,
onInput:f,validation:sc})},
textFieldViewModel:function(Gf){return _.w(_.oPd,{data:Gf.data,onInput:f,validation:sc})}})))},"gf");
jId.idomCompat=!0;_.oQ(jId,"yt-structured-context-note-view-model",{props:{data:_.Jh}});var UDI=_.rp(function(E){var B=_.p(_.l0(function(){var c;if((c=E.controlled)==null?0:c.call(E))return[];var Y;return(((Y=E.data())==null?void 0:Y.chips)||[]).map(function(v){v=_.h(v,_.JB);if(v==null?0:v.selected)return dm8(v.chipValue)}).filter(function(v){return v!==void 0})})),I=B.next().value,T=B.next().value,e=function(c){var Y=dm8(c.chipValue);
if(Y!==void 0){var v;if((v=E.controlled)==null?0:v.call(E))return void E.controlled().onTap(Y);c=I().includes(Y)?[].concat(_.ad(I().filter(function(Z){return Z!==Y}))):[].concat(_.ad(I()),[Y]);
T(c);var y;if((y=E.uncontrolled)==null?0:y.call(E))E.uncontrolled().onUpdate(c)}};
return _.w("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.w(_.Zt,{each:function(){return E.data().chips||[]}},function(c){return _.w("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.w(_.kWX,{data:function(){return _.h(c,_.JB)},
selected:function(){var Y;if(Y=_.h(c,_.JB)){var v=dm8(Y.chipValue);if(v!==void 0){var y;Y=((y=E.controlled)==null?0:y.call(E))?E.controlled().selectedValues.includes(v):I().includes(v)}else Y=void 0}else Y=!1;return Y},
callback:e}))}))},"hf");var kbT=_.rp(function(E){var B=E.data;var I=function(){var v;return((v=B())==null?void 0:v.flowStateKey)||""},T=_.iO(_.B3,I),e=function(){var v;
return(v=_.h(T(),yx8))==null?void 0:v.chips},c=function(v){if(v!==void 0){var y=e()||[];
y=y.find(function(Z){return Z===v})?y.filter(function(Z){return Z!==v}):[].concat(_.ad(y),[v]);
y=Object.assign({},T(),{feedbackFormFlowState:Object.assign({},_.h(T(),yx8),{chips:y})});_.Jd(_.aL("flowStateEntity",I(),y))}},Y=function(){var v;
return _.h((v=B())==null?void 0:v.inputBox,CQg)};
E=_.zV(function(v){var y=Y();y=!(y==null?0:y.maxChars)||v.length<=y.maxChars;v=Object.assign({},T(),{feedbackFormFlowState:Object.assign({},_.h(T(),yx8),{detail:v}),abuseReportFlowState:Object.assign({},_.h(T(),qL),{navigationEnabled:y})});_.Jd(_.aL("flowStateEntity",I(),v))},150);
return _.w("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.w("div",{class:"ytFeedbackFormViewModelChips"},_.w(_.hM,{data:function(){var v;return(v=B())==null?void 0:v.chipSelection}},{chipSelectionFormFieldViewModel:function(v){return _.w(UDI,{data:v.data,
controlled:function(){return{selectedValues:e()||[],onTap:c}}})}})),_.w("div",{class:"ytFeedbackFormViewModelInputBox"},_.w(H0,{text:function(){var v;
return(v=_.h(T(),yx8))==null?void 0:v.detail},
placeholder:function(){var v;return((v=Y())==null?void 0:v.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var v=Y();if(v&&v.maxChars)return{maxChars:v.maxChars,errorMessage:v.maxCharsExceededErrorMessage||""}},
onInput:E})),_.w("div",{class:"ytFeedbackFormViewModelFooterText"},_.w(_.aS,{text:function(){return B().footerText}})))},"jf");
kbT.idomCompat=!0;_.oQ(kbT,"yt-feedback-form-view-model",{props:{data:_.Jh}});var tIT=_.rp(function(E){var B=E.data;var I=function(){return B().flowStateKey||""},T=_.iO(m8T,I),e=function(){return _.h(T(),qL)},c=function(){if(_.d("enable_gff_accessibility_fix")){var Y=!0,v;
if((v=e())==null?0:v.navigationEnabled){var y;_.xg((y=e())==null?void 0:y.navigationCommand);Y=!1}v=Object.assign({},T(),{abuseReportFlowState:Object.assign({},e(),{isReportFormDirty:Y})});_.Jd(_.aL("flowStateEntity",I(),v))}else _.xg((Y=e())==null?void 0:Y.navigationCommand)};
return _.w("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.w("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.w(_.hM,{data:function(){return B().cancelButton}},{buttonViewModel:function(Y){return _.w(_.ne,{data:Y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:c})}}),_.w(_.hM,{data:function(){var Y;
if(B().navButton){var v=Object;var y=v.assign,Z=_.h(B().navButton,_.sO),P=((Y=e())==null?0:Y.navigationEnabled)||_.d("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",z,m;Y=_.h((z=e())==null?void 0:z.navigationCommand,_.dX);z=(m=_.h(Y,_.JK))==null?void 0:m.url;v={buttonViewModel:y.call(v,{},Z,{state:P,iconName:z?"OPEN_IN_NEW":""})}}else v=void 0;return v}},{buttonViewModel:function(Y){return _.w(_.ne,{data:Y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:c})}})))},"kf");
tIT.idomCompat=!0;_.oQ(tIT,"yt-report-form-bottom-bar-view-model",{props:{data:_.Jh}});var ftm=_.rp(function(E){var B=E.nextStep;return _.w("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.w("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.w(_.i0,{icon:function(){return B().iconName||""}})),_.w("div",null,_.w(_.aS,{text:function(){return B().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"lf"),VId=_.rp(function(E){var B=E.data;
var I,T=(I=_.Q().resolve(_.Fx(_.ME)))==null?void 0:I(),e=_.iO(_.B3,function(){return B().flowStateKey||""});
return _.w("yt-report-form-confirmation-page-view-model",{class:function(){var c;return((c=_.h(e(),qL))==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.w("div",{class:function(){var c;
return((c=_.h(e(),qL))==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.w(_.Ja,{data:function(){return T&&B().imageDark?B().imageDark:B().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.w("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.w("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return B().confirmationHeader}),_.w("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.w(_.aS,{text:function(){return B().confirmationText}})),_.w("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.w(_.aS,{text:function(){return B().lawEnforcementText}})),
_.w("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return B().whatToExpectHeader}),_.w(_.wU,{cond:function(){return B().nextSteps},
then:function(c){return _.w("div",null,_.w(_.Zt,{each:c},function(Y){return _.w(ftm,{nextStep:Y})}))}}),_.w(_.wU,{cond:function(){return B().legalReportText},
then:function(c){return _.w("div",null,_.w(_.aS,{text:c,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"mf");
VId.idomCompat=!0;_.oQ(VId,"yt-report-form-confirmation-page-view-model",{props:{data:_.Jh}});var qr9=_.rp(function(E){var B=E.data;var I=function(){var c;return((c=_.h(B().inputBox,CQg))==null?void 0:c.maxChars)||500},T=function(){return B().flowStateKey||""},e=_.iO(_.B3,T);
E=_.zV(function(c){c=Object.assign({},e(),{flowFormState:{isValid:c.length<=I()},abuseReportFlowState:{userComments:c,navigationEnabled:!(c.length>I()),isReportFormDirty:!0}});_.gp().dispatch(_.x4("flowStateEntity",T(),c))},150);
_.uW(function(){var c=Object.assign({},e(),{flowFormState:{isValid:!0}});_.gp().dispatch(_.x4("flowStateEntity",T(),c))});
return _.w("yt-report-form-details-page-view-model",{class:function(){var c;return((c=_.h(e(),qL))==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.w("h1",{class:function(){var c;
return((c=_.h(e(),qL))==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return B().detailsPageHeader}),_.w("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.w(_.aS,{text:function(){return B().bodyText}})),_.w("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.w(H0,{label:function(){var c;
return((c=_.h(B().inputBox,CQg))==null?void 0:c.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var c;return{errorMessage:((c=_.h(B().inputBox,CQg))==null?void 0:c.maxCharsExceededErrorMessage)||"",maxChars:I()}},
onInput:E})))},"nf");
qr9.idomCompat=!0;_.oQ(qr9,"yt-report-form-details-page-view-model",{props:{data:_.Jh}});var F47=_.rp(function(E){var B=E.data;var I=E.selectedKey;var T=E.onSelected;var e=E.groupName;var c=function(){return B().text},Y=function(){return B().attributedText},v=function(){return B().subtext},y=function(){return B().attributedSubtext},Z=_.w("div",{class:"ytRadioButtonItemViewModelLabel"},_.w(_.wU,{cond:c,
then:function(){return _.w("div",null,c)}}),_.w(_.wU,{cond:Y,
then:function(){return _.w(_.aS,{text:Y})}}),_.w(_.wU,{cond:v,
then:function(){return _.w("div",{class:"ytRadioButtonItemViewModelSubText"},v)}}),_.w(_.wU,{cond:y,
then:function(){return _.w("div",{class:"ytRadioButtonItemViewModelSubText"},_.w(_.aS,{text:y}))}})),P=function(){if(Y()){var m;
return(m=Y())==null?void 0:m.content}return c()},z=function(){if(y()){var m;
return(m=y())==null?void 0:m.content}return v()};
E={};return _.w("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.w(_.w$,{name:e,checked:function(){return!(I==null||!I()||B().key!==(I==null?void 0:I()))},
onChange:function(m){T==null||T(m.target,B(),e==null?void 0:e())},
labelRenderable:function(){return Z},
ariaLabel:function(){return z()?P()+", "+z():P()},
className:_.RQ((E.ytRadioButtonItemViewModelSubTitle=function(){return!!B().subtext},E))}))},"of");_.DDm=_.rp(function(E){var B=E.data;var I=E.onSelected;var T=E.selectedKey;var e=E.groupName;return _.w("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.w("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.w(_.hM,{data:function(){return B().radioButtons}},{radioButtonItemViewModel:function(c){var Y=c.data;
return _.w(F47,{data:Y,onSelected:I,selectedKey:T,groupName:function(){var v;return(v=e==null?void 0:e())!=null?v:Y().key}})}})))},"pf");var K4H=_.rp(function(E){var B=E.data;var I=_.AK(),T=function(){return B().flowStateKey||""},e=_.iO(_.B3,T),c=function(){return _.h(e(),qL)};
_.m$(function(){var Y,v;if(((Y=c())==null?0:Y.isReportFormDirty)&&((v=c())==null||!v.navigationEnabled)&&_.d("enable_gff_accessibility_fix")){var y;if(((y=c())==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var Z;(Z=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||Z.scrollIntoView()}else{var P;(P=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||P.scrollIntoView()}}});
return _.w("yt-report-form-reason-select-page-view-model",{class:function(){var Y;return((Y=c())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.w("h1",{class:function(){var Y;
return((Y=c())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return B().pageHeader}),_.w("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.w(_.aS,{text:function(){return B().bodyText}})),_.w("div",{class:function(){var Y;
return((Y=c())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.w(_.wU,{cond:function(){var Y,v;
return((Y=c())==null?void 0:Y.isReportFormDirty)&&!((v=c())==null?0:v.navigationEnabled)&&_.d("enable_gff_accessibility_fix")},
then:function(){return _.w("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:I},_.w(_.i0,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.w("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return B().emptyReasonSelectErrorMessage}))}}),_.w(_.DDm,{data:function(){return _.h(B().radioButtonGroup,_.hB2)},
onSelected:function(Y,v){Y=Object.assign({},e(),{abuseReportFlowState:Object.assign({},c(),{reasonKey:v.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:v.command})});_.Jd(_.aL("flowStateEntity",T(),Y))},
selectedKey:function(){var Y;return(Y=c())==null?void 0:Y.reasonKey},
groupName:"report-form-reason-select-page"})))},"qf");
K4H.idomCompat=!0;_.oQ(K4H,"yt-report-form-reason-select-page-view-model",{props:{data:_.Jh}});var Rpt=_.rp(function(E){var B=E.data;var I,T=(I=_.Q().resolve(_.Fx(_.ME)))==null?void 0:I();return _.w("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.w("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.w(_.Ja,{data:function(){return T&&B().imageDark?B().imageDark:B().image},
alt:""})),_.w("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.w("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return B().header}),_.w(_.aS,{text:function(){return B().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"rf");
Rpt.idomCompat=!0;_.oQ(Rpt,"yt-report-form-sign-in-page-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;var I=function(){var Z;return(Z=B().textInputPlaceholder)==null?void 0:Z.content},T=function(Z){Z=Z.target.value.trim();
var P=B().onUpdateText;P&&_.xg(P,{form:{userQuery:Z}});B().userQuery=Z},e=_.zV(function(Z){T(Z)},150),c=_.TI(function(Z){e(Z);
return!1}),Y=_.TI(function(Z){Z.key==="Enter"&&(T(Z),(Z=B().onNextStepCommand)&&_.xg(Z,{}));
return!1}),v=_.oH(),y=function(){if(_.d("web_hide_explore_hub_until_user_navigates_back_to_home")){var Z,P,z;
(z=(P=(Z=v.value)==null?void 0:Z.closest("ytd-flow-step-renderer"))==null?void 0:P.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||z.click()}};
return _.w("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:v},_.w("div",{class:"ytwTalkToRecsTopCornerButton"},_.w(_.hM,{data:function(){return B().topCornerButton}},{buttonViewModel:_.ne})),_.w("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.w("div",{class:"ytwTalkToRecsTitle"},_.w(_.aS,{text:function(){return B().title}})),_.w("div",{class:"ytwTalkToRecsSubtitle"},_.w(_.aS,{text:function(){return B().subtitle}})),_.w("div",{class:"ytwTalkToRecsChipsShelf"},_.w(_.hM,{data:function(){return B().answersShelf}},
{chipsShelfViewModel:function(Z){return _.w(_.RYZ,{data:Z.data,
callback:y})}})),_.w(_.wU,{cond:function(){return B().showOpenTextInput&&!_.d("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.w("div",{class:"ytwTalkToRecsUserInputBox"},_.w("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:I,value:function(){return B().userQuery},
"on:input":c,"on:keyup":Y}))}})))},"sf"),"yt-talk-to-recs-view-model",{props:{data:_.Jh}});var hd1={sources:[{clientResource:{imageName:"CHECK"}}]};_.EaT=_.rp(function(E){var B=_.oH();E=_.XS(E,{error:void 0});var I=E.data,T=E.error,e=E.onSelected;E=_.p(_.l0(function(){return L3L(I())}));
var c=E.next().value,Y=E.next().value;n99(I,function(z){Y(z);var m,u,x=us2((m=I().options)==null?void 0:(u=m[z])==null?void 0:u.value,I().type);e==null||e(x);B.value.focus()});
E=_.TI(function(){if(!I().disabled){var z=I(),m=c(),u=B.value;z.options&&(z=saH(z.options,m,z.label),_.Q().resolve(_.ZT).openSheet({viewModel:z},u))}});
var v=_.SwF(),y=function(){return!!T()},Z=function(){return!!I().disabled},P={};
P=_.RQ("ytDropdownViewModelDropdownContainer",(P.ytDropdownViewModelDropdownContainerErrorBorder=y,P.ytDropdownViewModelDropdownContainerDisabled=Z,P));return _.w("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.w("div",{class:P,"on:click":E,el:B,role:"combobox",tabindex:0,"on:keydown":v,"aria-invalid":y,"aria-disabled":Z,"aria-describedby":function(){return y()?"dropdown-view-model-error":void 0}},_.w("div",{class:"ytDropdownViewModelText"},xmI(I,y,c),GMT(I,c)),_.w("div",{class:"ytDropdownViewModelChevronDown"},
_.w(_.i0,{icon:"CHEVRON_DOWN"}))),Ox7(I,T))},"tf");_.oQ(_.rp(function(E){var B=E.data;var I=function(e){var c=Hxs(B());c.videoMetadata||(c.videoMetadata={});c.videoMetadata.sponsorshipsMetadata||(c.videoMetadata.sponsorshipsMetadata={});c.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(e)},T=function(e){var c=Hxs(B());
c.scheduledRedirectMetadata||(c.scheduledRedirectMetadata={});c.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(e)};
return _.w("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.w("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.w("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.w(_.aS,{text:function(){return B().title}}),_.w(_.i0,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.w(_.aS,{text:function(){return B().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.w(_.hM,{data:function(){return B().tierChoices}},{dropdownViewModel:function(e){return _.w("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.w(_.EaT,{data:e.data,
onSelected:I}))}}),_.w(_.hM,{data:function(){return B().startTimeChoices}},{dropdownViewModel:function(e){return _.w("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.w(_.EaT,{data:e.data,
onSelected:T}))}}),_.w(_.aS,{text:function(){return B().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.w("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.w(_.hM,{data:function(){return B().scheduleButton}},{panelFooterViewModel:_.Mj})))},"uf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;E=E.className===void 0?"":E.className;var I=_.iO(m8T,function(){return B().flowStateEntityKey||""}),T={};
T=_.RQ("ytFlowBottomBarViewModelFlowBottomBarButtons",(T.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},T));
var e={},c=_.RQ("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",T,(e.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},e.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},e));
e={};var Y=_.RQ("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",T,(e.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},e.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},e));
T={};T=_.RQ("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(T.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},T.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},T.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return B().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
T));
return _.w("yt-flow-bottom-bar-view-model",{class:_.RQ("ytFlowBottomBarViewModelHost",E)},_.w(_.wU,{cond:function(){var v;return(v=B())==null?void 0:v.textSection},
then:function(v){return _.w("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.w(_.aS,{text:v}))}}),_.w("div",{class:T},_.w(_.hM,{data:function(){return B().secondaryButton}},{buttonViewModel:function(v){return _.w(_.ne,{data:v.data,
className:Y})}}),_.w(_.hM,{data:function(){return B().primaryButton}},{buttonViewModel:function(v){return _.w(_.ne,{data:v.data,
className:c,buttonOverrides:function(){var y;return{disabled:!((y=I())==null||!y.primaryButtonDisabled)}}})}})))},"vf"),"yt-flow-bottom-bar-view-model",{props:{data:_.Jh,
className:_.bu}});var B0d="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Nj=function(){var E=_.r.apply(this,arguments)||this;E.enableScrollingFix=!0;E.bottomBar=!1;E.hideBottomBar=!1;E.fitContent=!1;return E};
_.L(Nj,_.r);_.l=Nj.prototype;_.l.ready=function(){_.d("enable_pdp_icon_prefetch")&&_.vpd(_.Q().resolve(_.RC),0,B0d)};
_.l.focus=function(E){this.topBar?_.ox(this.topBar,E):this.paperDialog.focus(E)};
_.l.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16712_scroller&&(this.JSC$16712_scroller.dialogElement=this.paperDialog,this.JSC$16712_scroller.attached&&typeof this.JSC$16712_scroller.attached==="function"&&this.JSC$16712_scroller.attached())};
_.l.onDataChanged=function(){var E;this.fitContent=!((E=this.data)==null||!E.fitContent);var B;this.bottomBar=!((B=this.data)==null||!B.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.l.onProgressChanged=function(){var E,B,I=((B=(E=this.data)==null?void 0:E.progress)!=null?B:0)*100;this.progressElement.style.width=I+"%"};
_.l.isProgressHidden=function(){var E;return!((E=this.data)==null?0:E.progress)};
_.l.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(E){return _.d("enable_wiz_next_lp2_msof")&&E&&!E.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Up.Object.defineProperties(Nj.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var E;return _.d("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.h((E=this.data)==null?void 0:E.content,mSI)}}});
Nj.prototype.onProgressChanged=Nj.prototype.onProgressChanged;Nj.prototype.onDataChanged=Nj.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Nj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Nj.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Nj.prototype,"enableScrollingFix",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Nj.prototype,"bottomBar",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Nj.prototype,"hideBottomBar",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Nj.prototype,"containsExploreHub",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Nj.prototype,"fitContent",void 0);_.k([_.$7("#progress"),_.t("design:type",HTMLElement)],Nj.prototype,"progressElement",void 0);
_.k([_.$7("#scroller"),_.t("design:type",Object)],Nj.prototype,"JSC$16712_scroller",void 0);_.k([_.$7("ytd-flow-top-bar-renderer"),_.t("design:type",HTMLElement)],Nj.prototype,"topBar",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Nj.prototype,"onDataChanged",null);_.k([_.EM("data.progress"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Nj.prototype,"onProgressChanged",null);
Nj=_.k([_.b({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Nj);
_.A(Nj,"ytd-flow-step-renderer",function(){if(Axt!==void 0)return Axt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Axt=E},{mode:1});var $_O=function(E){this.resolveCommand=E;this.steps={}},IZ7=function(E,B){B=_.p(B||[]);
for(var I=B.next();!I.done;I=B.next()){I=I.value;var T=Object.values(I)[0],e=void 0;if((e=T)==null?0:e.stepId)E.steps[T.stepId]=I}},lZH=function(E,B){var I,T,e,c,Y;
return _.a(function(v){if((I=E.state)==null||!I.currentStepId)return v.return(void 0);T=T0t(E);if(!T)return v.return(e77(E));if(e=_.h(T,_.zBT)){var y;((y=e.screenLoggingData)==null?0:y.screenVeType)&&_.I5(_.lu(),e.screenLoggingData.screenVeType);((c=e)==null?0:c.onStepStartCommand)&&E.resolveCommand((Y=e)==null?void 0:Y.onStepStartCommand,{})}if(e&&B){y=e;var Z,P,z,m;((Z=B.flowLoggingData)==null?0:Z.eventNamespace)&&((P=y.flowEventData)==null?0:P.eventType)&&((z=y.flowEventData)==null?0:z.eventMetadata)&&
((m=B.flowLoggingData)==null?0:m.flowType)&&(Z=_.eP(B.flowLoggingData.eventNamespace,y.flowEventData.eventType,y.flowEventData.eventMetadata),_.lj(_.c8(),Z,B.flowLoggingData.flowType));B.steps&&!B.steps.includes(T)&&B.steps.push(T)}return v.return(T)})};
$_O.prototype.back=function(){var E;(E=this.state)!=null&&E.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
$_O.prototype.handleUpdateFlowCommand=function(E){E.steps&&IZ7(this,E.steps);E.entityUpdateCommand&&this.resolveCommand(E.entityUpdateCommand,{});E.flowContinuationCommand&&(E=E.flowContinuationCommand)&&(this.getFlowContinuationCommand=E);this.awaitFlowContinuation&&(this.awaitFlowContinuation(T0t(this)),this.awaitFlowContinuation=void 0)};
$_O.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var e77=function(E){return _.a(function(B){return E.getFlowContinuationCommand?B.return(new Promise(function(I){E.awaitFlowContinuation=I;E.getFlowContinuationCommand&&E.resolveCommand(E.getFlowContinuationCommand,{flow_state:E.state})})):B.return(Promise.resolve(void 0))})},T0t=function(E){var B;
if((B=E.state)!=null&&B.currentStepId)return E.steps[E.state.currentStepId]};var g3=function(){var E=_.r.apply(this,arguments)||this;E.flowState=new $_O(function(B,I){I=I===void 0?{}:I;_.BV.instance.resolveCommand(B,{form:{form:I,element:E.hostElement}})});
E.initialState=!0;E.isLoading=!1;E.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return E};
_.L(g3,_.r);_.l=g3.prototype;_.l.onPopupClosed=function(E){E&&this.hostElement!==E.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.l.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.l.focus=function(E){var B=this;_.Gg(function(){var I=_.n(B.hostElement).querySelector("ytd-flow-step-renderer");I.topBar?I.focus(E):B.topBar&&_.ox(B.topBar,E)},1)};
_.l.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.l.computeTopBarHidden=function(E){var B;return!((B=_.h(E,_.zBT))==null||!B.topBarOverride)};
_.l.dataChanged=function(){var E=this,B,I;return _.a(function(T){if(T.nextAddress==1){((B=E.data)==null?0:B.steps)&&IZ7(E.flowState,E.data.steps);if((I=E.data)==null?0:I.flowContinuationCommand){var e=E.flowState,c=E.data.flowContinuationCommand;c&&(e.getFlowContinuationCommand=c)}return _.C(T,lZH(E.flowState,E.data),2)}E.currentFlowStep=T.yieldResult;_.ER(T)})};
_.l.flowChanged=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1){if(!E.flow)return I.return();E.flowState.state=E.flow;E.isLoading=!0;return _.C(I,lZH(E.flowState,E.data),2)}B=I.yieldResult;if(!B||E.flow.isLoading)return I.return();E.currentFlowStep=B;E.initialState=!1;E.isLoading=!1;E.autofocusAndRefit();_.ER(I)})};
_.l.autofocusAndRefit=function(){var E=this,B=_.Q().resolve(_.Fx(_.ZR)),I=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),T=document.querySelector("yt-report-form-confirmation-page-view-model"),e=document.querySelector("yt-report-form-details-page-view-model"),c=document.querySelector("yt-report-form-reason-select-page-view-model"),Y=document.querySelector("yt-contributor-zero-state-view-model"),
v=document.querySelector("yt-structured-context-note-view-model"),y=document.querySelector("yt-note-view-model");(!I&&B&&B.isKeyBoardInUse()||T||!I&&e||!I&&c||Y||v||y)&&_.AI(this.hostElement);_.AJ(this,function(){_.$O(E.hostElement,"yt-refit")})};
_.l.handleUpdateFlowCommand=function(E){this.data&&(E=_.h(E,PQs),E.targetId===this.data.targetId&&(E.flowContinuationCommand&&(this.data.flowContinuationCommand=E.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(E),this.autofocusAndRefit()))};
_.l.handleFlowNextStepCommand=function(E){this.data&&this.flow&&this.flow.key&&(E=_.h(E,wht),E.targetId===this.data.targetId&&(E=E.stepId||"",this.ytdReduxBehavior.dispatch(_.x4("flowStateEntity",this.flow.key,{currentStepId:E,stepIdStack:(this.flow.stepIdStack||[]).concat(E)}))))};
_.l.handleFlowPrevStepCommand=function(E){if(this.data&&this.flow&&this.flow.key&&(E=_.h(E,Zds),E.targetId===this.data.targetId)){var B=[].concat(_.ad(this.flow.stepIdStack||[]));B.length>1?(B.pop(),this.ytdReduxBehavior.dispatch(_.x4("flowStateEntity",this.flow.key,{currentStepId:B[B.length-1],stepIdStack:B}))):E.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(E.onFirstStepCommand)}};
_.l.handleYpcCancelRecurrenceCommand=function(E){if(this.data&&this.flow&&this.flow.key&&(E=_.h(E,sJ8),E.targetId===this.data.targetId&&E.endpointCommand)){var B=_.h(this.flow,uX7);B&&_.h(E.endpointCommand,_.ZMh)&&(_.h(E.endpointCommand,_.ZMh).feedbackData=B.surveyFeedback);this.ytComponentBehavior.resolveCommand(E.endpointCommand)}};
_.l.handlePartialUpdateFlowStateEntity=function(E){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.x4("flowStateEntity",this.flow.key,E,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
g3.prototype.flowChanged=g3.prototype.flowChanged;g3.prototype.dataChanged=g3.prototype.dataChanged;g3.prototype.onPopupClosed=g3.prototype.onPopupClosed;_.k([_.g(_.Lz),_.t("design:type",Object)],g3.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],g3.prototype,"ytComponentBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],g3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],g3.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],g3.prototype,"initialState",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],g3.prototype,"isLoading",void 0);_.k([_.X(),_.t("design:type",Object)],g3.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],g3.prototype,"currentFlowStep",void 0);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],g3.prototype,"onPopupClosed",null);_.k([_.X({selectorArgs:["data.flowStateEntityKey"],selector:m8T}),_.t("design:type",Object)],g3.prototype,"flow",void 0);_.k([_.$7("ytd-flow-top-bar-renderer"),_.t("design:type",HTMLElement)],g3.prototype,"topBar",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype",Promise)],g3.prototype,"dataChanged",null);_.k([_.i6("flow"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype",Promise)],g3.prototype,"flowChanged",null);g3=_.k([_.b({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],g3);
_.cg8=_.VE()(g3,"ytd-flow-root-renderer",function(){if(opt!==void 0)return opt;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return opt=E},{mode:_.qi("kevlar_poly_si_batch_j025")?1:2});var iFt;var fI=null;_.oQ(_.rp(function(E){return _.w("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.w("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.w(_.aS,{text:function(){return E.data().text}}),_.w("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"wf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Jh}});var p7I=_.rp(function(E){var B=E.playerControlsProps;var I=E.isShortsPage;return _.w("yt-bigboard",null,_.w(_.wU,{cond:function(){return B().isDragging},
then:function(){return _.w("div",{class:"ytBigboardStoryboardHost"},_.w(_.Ig1,{progressBarProps:B,isShortsPage:I}))}}))},"xf");
p7I.idomCompat=!0;_.SQ={ACCOUNT_LABEL:Vb("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:Vb("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:Vb("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:Vb("AD_BADGE_HINT"),AD_BADGE_TEXT:Vb("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:Vb("ALL_CHANNELS_LABEL"),AMBIENT_MODE:Vb("AMBIENT_MODE"),AMBIENT_MODE_OFF:Vb("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:Vb("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:Vb("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:Vb("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:Vb("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:Vb("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:Vb("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:Vb("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:Vb("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:Vb("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:Vb("AUTOPLAY_UP_NEXT_IN"),BACK:Vb("BACK"),CANCEL:Vb("CANCEL"),CHANNEL_SWITCHER_LABEL:Vb("CHANNEL_SWITCHER_LABEL"),CLOSE:Vb("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:Vb("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:Vb("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:Vb("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:Vb("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:Vb("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:Vb("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:Vb("COMMENT_MODAL_CONTENT"),CONFIRM_OK:Vb("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:Vb("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:Vb("COPIED_TO_CLIPBOARD"),COPY:Vb("COPY"),COPY_DEBUG_INFO:Vb("COPY_DEBUG_INFO"),COPY_EMBED_CODE:Vb("COPY_EMBED_CODE"),COPY_LINK_LABEL:Vb("COPY_LINK_LABEL"),
COPY_VIDEO_URL:Vb("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:Vb("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:Vb("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:Vb("DELETE_FROM_DOWNLOADS"),DIALOG:Vb("DIALOG"),DONE:Vb("DONE"),DOWNLOAD:Vb("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:Vb("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:Vb("FLAG_CONFIRM"),FLAG_CONTENT:Vb("FLAG_CONTENT"),FLAG_LABEL:Vb("FLAG_LABEL"),FLAG_TITLE:Vb("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:Vb("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:Vb("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:Vb("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:Vb("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:Vb("HIDE_SEARCH_FILTERS_LABEL"),HOME:Vb("HOME","Home"),INVALID_RESPONSE_RECEIVED:Vb("INVALID_RESPONSE_RECEIVED"),LIBRARY:Vb("LIBRARY","Library"),LISTENING:Vb("LISTENING"),LOADING:Vb("LOADING"),LONG_PRESS_MIC_TO_SPEAK:Vb("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:Vb("LOOP"),MENU_DESKTOP:Vb("MENU_DESKTOP"),MENU_EXIT:Vb("MENU_EXIT"),
MENU_FEEDBACK:Vb("MENU_FEEDBACK"),MENU_HELP:Vb("MENU_HELP"),MENU_IMPRESSUM:Vb("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:Vb("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:Vb("MENU_SETTINGS"),MENU_SIGN_IN:Vb("MENU_SIGN_IN"),MENU_TITLE:Vb("MENU_TITLE"),MENU_YOUR_DATA:Vb("MENU_YOUR_DATA"),MORE_INFO:Vb("MORE_INFO"),MORE_OPTIONS:Vb("MORE_OPTIONS"),MUTE_VOLUME:Vb("MUTE_VOLUME"),NEW_PLAYLIST:Vb("NEW_PLAYLIST"),NEXT_VIDEO:Vb("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:Vb("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:Vb("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:Vb("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:Vb("NOT_FOUND_TITLE"),NO_DOWNLOADS:Vb("NO_DOWNLOADS"),NO_MIC_INPUT:Vb("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:Vb("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:Vb("OOPS_MESSAGE"),OPEN_APP:Vb("OPEN_APP"),OPEN_YOUTUBE:Vb("OPEN_YOUTUBE"),PAUSE:Vb("PAUSE"),PLAY:Vb("PLAY"),PLAYER_CAPTION:Vb("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:Vb("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:Vb("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:Vb("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:Vb("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:Vb("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:Vb("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:Vb("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:Vb("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:Vb("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:Vb("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:Vb("PLAYER_MINIMIZE"),PLAYER_NEXT:Vb("PLAYER_NEXT"),PLAYER_PAUSE:Vb("PLAYER_PAUSE"),PLAYER_PLAY:Vb("PLAYER_PLAY"),
PLAYER_PREVIOUS:Vb("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:Vb("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:Vb("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:Vb("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:Vb("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:Vb("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:Vb("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:Vb("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:Vb("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:Vb("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:Vb("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:Vb("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:Vb("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:Vb("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:Vb("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:Vb("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:Vb("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:Vb("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:Vb("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:Vb("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:Vb("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:Vb("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:Vb("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:Vb("PLAY_ALL"),PLEASE_FIX_ERRORS:Vb("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:Vb("PREVIOUS_VIDEO"),PRIVACY_POLICY:Vb("PRIVACY_POLICY"),RELOAD:Vb("RELOAD"),REQUIRED_LABEL:Vb("REQUIRED_LABEL"),SAVE_PLAYLIST:Vb("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:Vb("SCRUB_SLIDE_USER_EDU"),SEARCH:Vb("SEARCH","Search"),SEARCH_APPEND_LABEL:Vb("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:Vb("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:Vb("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:Vb("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:Vb("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:Vb("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:Vb("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:Vb("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:Vb("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:Vb("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:Vb("SEEK_SLIDER"),SETTINGS_LABEL:Vb("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:Vb("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:Vb("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:Vb("SHOW_LESS"),SHOW_MORE:Vb("SHOW_MORE"),SHOW_PLAYER_CONTROLS:Vb("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:Vb("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:Vb("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:Vb("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:Vb("SIGN_IN_ON_WEB"),STABLE_VOLUME:Vb("STABLE_VOLUME"),
STABLE_VOLUME_OFF:Vb("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:Vb("STABLE_VOLUME_ON"),STATS_FOR_NERDS:Vb("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:Vb("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:Vb("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:Vb("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:Vb("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:Vb("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:Vb("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:Vb("TIMESTAMP_SECONDS"),TOGGLE_OFF:Vb("TOGGLE_OFF"),
TOGGLE_ON:Vb("TOGGLE_ON"),TRENDING:Vb("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:Vb("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:Vb("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:Vb("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:Vb("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:Vb("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:Vb("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:Vb("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:Vb("VIDEO_LINK_LABEL")};var YFt=_.rp(function(E){var B=E.playerApi;E=_.oH(function(e){A7(e,36843)});
var I=Vb("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),T=_.TI(function(){jB(36843);B&&B().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.w("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.w("button",{el:E,class:"ytPlayerControlsJumpForwardButtonButton",title:I,"aria-label":I,"on:click":T},_.w("span",null,_.w(_.i0,{icon:"FAST_FORWARD"}))))},"yf");var aZL=_.rp(function(E){var B=E.appApi;E=_.oH(function(e){A7(e,62946)});
var I=Vb("OPEN_IN_MINIPLAYER"),T=_.TI(function(){jB(62946);var e,c;(c=(e=B()).openInMiniplayer)==null||c.call(e);return!1});
return _.w("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.w("button",{el:E,class:"ytMiniplayerButtonButton",title:I,"aria-label":I,"on:click":T},_.w(_.i0,{icon:"PICTURE_IN_PICTURE",active:!1})))},"zf");var vaI=_.rp(function(E){var B=E.playerApi;E=_.oH(function(Y){A7(Y,142812)});
var I=_.p(_.lQ(!1,void 0,"I3VCyb")),T=I.next().value,e=I.next().value;I=function(){return Vb("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(T()?1:2)})};
var c=_.TI(function(){jB(142812);if(B){var Y=B(),v=T();Y.setPlaybackRate(v?1:2);e(!T())}return!1});
return _.w("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.w("button",{el:E,class:"ytPlaybackSpeedButtonButton",title:I,"aria-label":I,"on:click":c},_.w("span",null,_.w(_.i0,{icon:function(){return T()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Af");var yg9=_.rp(function(E){var B=E.title;var I=E.ariaLabel;var T=E.icon;var e=E.command;var c=E.veType;E=_.oH(function(v){c&&A7(v,c())});
var Y=_.TI(function(){c&&jB(c());e&&_.Q().resolve(_.Dt).resolveCommand(e())});
return _.w("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.w("button",{el:E,class:"ytdThumbnailOverlayButtonButton",title:B,"aria-label":I,"on:click":Y},_.w(_.i0,{icon:T})))},"Bf");var CKt=["en-CA","en","es-MX","fr-CA"];var w7s=_.rp(function(E){var B=_.XS(E,{isOverlay:!1}),I=B.captionIconType,T=B.onClick;E=B.ariaLabel;var e=B.ariaPressed,c=B.isOverlay;B=_.oH(function(y){A7(y,127299)});
var Y=_.TI(function(y){jB(127299);T==null||T(y);return!1}),v={};
return _.w("ytm-closed-captioning-button",{class:_.RQ("ytmClosedCaptioningButtonHost",(v.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return I()===-1&&c()},v.ytmClosedCaptioningButtonIconDisabled=function(){return I()===-1&&!c()},v))},_.w("button",{el:B,
class:"ytmClosedCaptioningButtonButton",title:E,"aria-label":E,"aria-pressed":e,"on:click":Y},_.w(_.i0,{icon:function(){var y="";var Z=_.ZB().get("hl");Z=!Z||CKt.includes(Z)?"CLOSED_CAPTION":"SUBTITLES";var P=I();switch(P){case -1:case 0:y=Z;break;case 1:y=Z+"_FILLED";break;default:_.E9(P)}return y}})))},"Cf");
w7s.idomCompat={callbacks:{onClick:!0}};var oc="";var ZFT=_.rp(function(E){var B=E.playerControlsProps,I=E.onClickFn;E=_.aJ(function(){var c=B(),Y=-1;c.captionsAvailable&&(Y=c.captionsEnabled?1:0);return Y},void 0,"WecR8e");
var T=_.aJ(function(){var c=B();return c.captionsAvailable?_.yu(c.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.yu("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),e=_.aJ(function(){var c=B();
c=c.captionsAvailable?c.captionsEnabled:void 0;return c},void 0,"Q17ly");
return _.w("yt-closed-captions-toggle-button",null,_.w(w7s,{captionIconType:E,ariaLabel:T,ariaPressed:e,onClick:function(c){var Y=B();if(Y.captionsAvailable){var v=Y.playerApi;if(v){var y=Y.playerApi;if(y){var Z=oc;if(Z){y=y.getOption("captions","track");var P;oc=(P=y?y.displayName:null)!=null?P:Z}else y.getOptions("captions")?(Z=hfg(y),oc=Z.length?(P=s_I(Z))?P.displayName:Z[0].displayName:""):oc=""}uRs(v);_.d("mweb_disable_set_state_captions_killswitch")&&Y.setState({captionsEnabled:!Y.captionsEnabled})}}var z,
m;(m=(z=Y.appApi).showCaptionsToggleToast)==null||m.call(z,Y);I==null||I(c)},
isOverlay:!0}))},"Df");var PKI=_.rp(function(E){var B=E.data;return _.w("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.w(_.fe,{data:function(){return{type:16,text:_.Naf(B().label)}}}))},"Ef");var z7t=_.rp(function(E){var B=_.RQ("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return E.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return E.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return E.size()==="small"?E.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
E.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.w("animated-seek-arrows",{class:_.RQ("ytPlayerControlsAnimatedSeekArrowsHost")},_.w("span",{class:B}),_.w("span",{class:B}),_.w("span",{class:B}))},"Ff");
z7t.idomCompat=!0;var m_H=_.rp(function(){var E=_.yu("PLAYER_SECONDS",{seconds_placeholder:"30"}),B=_.p(_.lQ(!1,void 0,"Yj8msb")),I=B.next().value,T=B.next().value,e=_.p(_.lQ(!1,void 0,"r9Z50e"));B=e.next().value;var c=e.next().value;e={};var Y=_.RQ("jumpForwardOverlayOverlay",(e.jumpForwardOverlayOverlayHidden=B,e));_.uW(function(){var v=null,y=null,Z=function(){v!==null&&_.xm().cancelJob(v);y!==null&&_.xm().cancelJob(y);c(!0);T(!0);_.ta(_.xm(),function(){c(!1)});
v=_.ta(_.xm(),function(){c(!0);y=_.ta(_.xm(),function(){T(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",Z);_.dt(function(){window.removeEventListener("jump-forward-clicked",Z)})});
return _.w("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.w(_.wU,{cond:I,then:function(){return _.w("div",{class:Y},_.w(z7t,{direction:1,size:"large"}),_.w("div",null,E))}}))},"Gf");var kMO=_.SQ.MUTE_VOLUME,UmL=_.SQ.UNMUTE_VOLUME,Qk7=_.rp(function(E){var B=E.muteIconType;var I=E.onClick;var T=E.useOutlineIcon;E=_.oH(function(Y){A7(Y,28662)});
var e=function(){return tem(B(),T==null?void 0:T()).ariaLabel},c=_.TI(function(Y){jB(28662);
I==null||I(Y);return!1});
return _.w("ytm-mute-button",{class:"ytmMuteButtonHost"},_.w("button",{el:E,class:"ytmMuteButtonButton",title:e,"aria-label":e,"on:click":c},_.w("span",null,_.w(_.i0,{icon:function(){return tem(B(),T==null?void 0:T()).iconName}}))))},"Hf");var d_O=_.rp(function(E){var B=E.volumeProps;var I=E.onClickFn;var T=E.useOutlineIcon;return _.w("yt-mute-toggle-button",null,_.w(Qk7,{muteIconType:function(){var e=B(),c=!_.d("mweb_treat_zero_volume_as_muted_killswitch")&&e.volume===0;return e.volumeMuted||c?0:1},
onClick:function(e){var c=B().playerApi;c&&(c.isMuted()?c.unMute():c.mute(!1));I==null||I(e)},
useOutlineIcon:function(){return!(T==null||!T())}}))},"If");
d_O.idomCompat=!0;var h7I=_.rp(function(E){var B=E.data;var I=_.oH();E=_.TI(function(){I.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.w("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:I,"on:animationend":E},_.w(_.Y3,{command:function(){return B().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.w(_.wU,{cond:function(){var T;return(T=B().icon)==null?void 0:T.iconType},
then:function(){return _.w("span",null,_.w(_.i0,{icon:function(){var T;return(T=B().icon)==null?void 0:T.iconType}}))}}),_.w("div",{class:"ytmPaidContentOverlayText"},_.w(_.aS,{text:function(){return B().text}})),_.w(_.wU,{cond:function(){return B().navigationEndpoint},
then:function(){return _.w(_.i0,{icon:"CHEVRON_RIGHT"})}})))},"Jf");
h7I.idomCompat=!0;var fVO=[].concat(_.ad([{register:function(E){var B=I0t(E),I;(I=E().playerApi)==null||I.addEventListener("onVolumeChange",B);return function(){}}},
{register:function(E){var B=TtH(E);E=E().playerApi;E==null||E.addEventListener("captionschanged",B);E==null||E.addEventListener("captionssettingschanged",B);E==null||E.addEventListener("onCaptionsTrackListChanged",B);return function(){}}},
{register:function(E){if(!_.d("mweb_screenreader_accessible_player"))return function(){};
var B=eBT(E),I=document.querySelector("video");I==null||I.addEventListener("touchend",B);return function(){I==null||I.removeEventListener("touchend",B)}}},
{register:function(E){if(!_.d("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var B=eBT(E),I=document.querySelector("video");I==null||I.addEventListener("focus",B);return function(){I==null||I.removeEventListener("focus",B)}}}]),[{register:function(E){var B=Rd7(E),I;
(I=E().playerApi)==null||I.addEventListener("onStateChange",B);return function(){}}},
{register:function(E){var B=EpO(E),I;(I=E().playerApi)==null||I.addEventListener("onPlaybackRateChange",B);return function(){}}},
{register:function(E){var B=BtI(E),I;(I=E().playerApi)==null||I.addEventListener("onVideoDataChange",B);return function(){}}},
{register:function(E){var B=$Sg(E),I,T;(I=E())==null||(T=I.playerApi)==null||T.addEventListener("onVideoProgress",B);return function(){}}}]);var sk9=_.rp(function(E){var B=E.data;var I=function(){return _.yu("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+B().playbackRate})};
return _.w(_.wU,{cond:function(){return B().playbackRate&&B().playbackRate!==1},
then:function(){return _.w("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.w("div",{class:"ytPlaybackRateOverlayOverlay"},_.w(z7t,{direction:1,size:"small"}),_.w("div",{class:"ytPlaybackRateOverlayLabel"},I)))}})},"Kf");var uQ8=_.rp(function(E){var B=E.data;return _.w("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.w(_.wU,{cond:function(){var I,T=(I=B())==null?void 0:I.playerResponse,e;return T==null?void 0:(e=T.paidContentOverlay)==null?void 0:e.paidContentOverlayRenderer},
then:function(I){return _.w(h7I,{data:I})}}))},"Mf"),LzI=_.rp(function(E){var B=E.props;
var I=E.data;var T=E.options;var e=function(){var Z,P,z,m;return(Z=I())==null?void 0:(P=Z.playerResponse)==null?void 0:(z=P.playerConfig)==null?void 0:(m=z.inlinePlaybackConfig)==null?void 0:m.showAudioControls},c=function(){var Z,P;
if(e()&&((Z=T())==null?void 0:(P=Z.additionalButton)==null?void 0:P.button)!==void 0){var z,m,u;Z=(z=I())==null?void 0:(m=z.playerApi)==null?void 0:(u=m.getSize())==null?void 0:u.height;if(!(Z===void 0||Z<184)){var x,M;return(x=T())==null?void 0:(M=x.additionalButton)==null?void 0:M.button}}},Y=function(){var Z,P;
return(Z=T())==null?void 0:(P=Z.additionalButton)==null?void 0:P.thumbnailOverlayButtonRenderers},v=function(){var Z,P;
return(Z=T())==null?void 0:(P=Z.additionalButton)==null?void 0:P.thumbnailOverlayButtonViewModels},y=function(){var Z=[_.w(d_O,{volumeProps:B}),
_.w(ZFT,{playerControlsProps:B})];c()===1&&Z.push(_.w(YFt,{playerApi:function(){return B().playerApi}}));
c()===2&&Z.push(_.w(aZL,{appApi:function(){return B().appApi}}));
c()===3&&Z.push(_.w(vaI,{playerApi:function(){return B().playerApi}}));
var P=Y();if(c()===4&&P){P=_.p(P);for(var z=P.next(),m={};!z.done;m={tooltip$jscomp$2:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$55:void 0,command$jscomp$567:void 0},z=P.next()){z=z.value;m.tooltip$jscomp$2=z.tooltip;var u=void 0,x=void 0;m.ariaLabel$jscomp$21=((u=z.accessibility)==null?void 0:(x=u.accessibilityData)==null?void 0:x.label)||m.tooltip$jscomp$2;u=void 0;m.icon$jscomp$55=(u=z.icon)==null?void 0:u.iconType;m.command$jscomp$567=z.command;m.tooltip$jscomp$2&&m.ariaLabel$jscomp$21&&m.icon$jscomp$55&&
Z.push(_.w(yg9,{title:function(M){return function(){return M.tooltip$jscomp$2}}(m),
ariaLabel:function(M){return function(){return M.ariaLabel$jscomp$21}}(m),
icon:function(M){return function(){return M.icon$jscomp$55}}(m),
command:function(M){return function(){return M.command$jscomp$567}}(m)}))}}P=v();
if(c()===4&&P)for(P=_.p(P),z=P.next(),m={};!z.done;m={tooltip$jscomp$3:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$56:void 0,command$jscomp$568:void 0},z=P.next())z=z.value,m.tooltip$jscomp$3=z.title,m.ariaLabel$jscomp$22=z.accessibilityText||m.tooltip$jscomp$3,m.icon$jscomp$56=z.iconName,m.command$jscomp$568=_.ha(z.onTap),m.tooltip$jscomp$3&&m.ariaLabel$jscomp$22&&m.icon$jscomp$56&&Z.push(_.w(yg9,{title:function(M){return function(){return M.tooltip$jscomp$3}}(m),
ariaLabel:function(M){return function(){return M.ariaLabel$jscomp$22}}(m),
icon:function(M){return function(){return M.icon$jscomp$56}}(m),
command:function(M){return function(){return M.command$jscomp$568}}(m)}));
return Z};
return _.w(_.wU,{cond:e,then:function(){return _.w("div",{class:"ytInlinePlayerControlsTopRightControls"},_.w(_.Zt,{each:y},function(Z){return _.w("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.w("div",{class:"ytInlinePlayerControlsButtonIcon"},Z))}))}})},"Nf"),OFg=_.rp(function(E){var B=E.props;
var I=E.data;var T=E.options;E={};E=_.RQ("ytInlinePlayerControlsBottomRightControls",(E.ytInlinePlayerControlsBottomRightControlsHidden=function(){var e;return cxO(I(),T())&&((e=T())==null?void 0:e.insetProgressBar)&&(B().isHovering||B().isDragging)},E));
return _.w("div",{class:E},_.w(x_g,{data:I}),_.w(_.wU,{cond:function(){var e;return!((e=T())==null?0:e.hideTimeDisplay)},
then:function(){return _.w(GRg,{props:B})}}))},"Of"),x_g=_.rp(function(E){var B=E.data;
return _.w(_.hM,{data:function(){var I;return ja1((I=B())==null?void 0:I.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:PKI})},"Pf"),GRg=_.rp(function(E){var B=E.props;
return _.w(_.wU,{cond:function(){return B().isLive},
then:function(){return _.w(nad,null)},
else:function(){return _.w(MgO,{props:B})}})},"Qf"),MgO=_.rp(function(E){var B=E.props;
return _.w("div",{class:_.RQ("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.SQ.PLAYER_TIME_ELAPSED+" "+_.Pst(B().playedTime)}},_.w(_.fe,{data:function(){return{type:16,
text:_.Pst(B().videoDuration-B().playedTime)}}}))},"Rf"),nad=_.rp(function(){return _.w("div",{class:_.RQ("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.w(_.fe,{data:{type:17,
text:_.SQ.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Sf"),HFm=_.rp(function(E){var B=E.props;
var I=E.data;var T=E.options;return _.w(_.p1I,{progressBarProps:B,config:function(){var e,c=_.h((e=I())==null?void 0:e.multiMarkersPlayerBar,_.AoV),Y;e=((Y=T())==null?0:Y.insetProgressBar)?2:1;var v;Y=(v=T())==null?void 0:v.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:e,chapterData:c,isInlinePlayback:!0,doSeekOnClick:Y,playheadDotBehavior:Y?1:0}}})},"Tf");_.oQ(_.rp(function(E){var B=E.data;var I=E.appApi;var T=E.options;var e=K3t(B,l08(I));E={};I={};return _.w("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.w("div",{class:_.RQ("ytInlinePlayerControlsDarkenedOverlay",(E.ytInlinePlayerControlsDarkenedOverlayShow=function(){return e().isHovering},E))}),_.w(m_H,null),_.w(sk9,{data:e}),_.w(uQ8,{data:B}),_.w(p7I,{playerControlsProps:e,
isShortsPage:!1}),_.w("div",{class:_.RQ((I.ytInlinePlayerControlsControlsHidden=function(){return e().isDragging},I))},_.w(LzI,{props:e,
data:B,options:T}),_.w(OFg,{props:e,data:B,options:T})),_.w(_.wU,{cond:function(){return cxO(B(),T())},
then:function(){return _.w(HFm,{props:e,data:B,options:T})}}))},"Lf"),"yt-inline-player-controls",{props:{data:_.Jh,
appApi:_.bu,options:_.Jh}});var JY=function(){var E=_.r.apply(this,arguments)||this;E.opts=null;E.playerControlsData=null;E.playerControlsAppApi={openInMiniplayer:function(){E.openInMiniplayer()}};
E.playerControlsOptions={};E.noAnimation=!1;E.playbackIntentTriggered=!1;E.positionData=null;E.hidden=!0;E.active=!1;E.playing=!1;E.videoPreviewDataIndex=0;E.JSC$16767_playerPromise=null;E.player=null;E.enableAudioControls=!1;E.hasBeenUnmuted=!1;E.captionsHaveBeenTurnedOff=!1;E.JSC$16767_playerEvents=new Map;E.videoPreviewFetchRequest=null;E.scheduledPreviewEndJobId=null;E.JSC$16767_preventProgressSaveTimer=null;E.watchEndpointStartTimeUpdaterInterval=null;E.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};E.windowOnBlurFn=function(){E.deactivate()};
return E};
_.L(JY,_.r);_.l=JY.prototype;
_.l.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.d("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.l.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16767_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16767_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16767_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16767_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Kq(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Kq(this,this.onScroll))};
_.l.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Kq(this,this.onScroll))};
_.l.onPageTypeChange=function(){this.deactivate()};
_.l.onWindowResized=function(){this.deactivate()};
_.l.onCaptionsChanged=function(E){E=!!E.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!E);this.setCaptionSize()};
_.l.setCaptionSize=function(){var E;if(this.active&&!this.captionsHaveBeenTurnedOff&&((E=this.player)==null?0:E.getCaptionWindowContainerId())){var B;(B=this.player)==null||B.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.l.currentPageAllowed=function(){return!this.isWatchPage};
_.l.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var E=this.positionData,B=E.initialTopPosition,I=E.initialHorizontalPosition;_.Dk(this.hostElement,{"--ytd-video-preview-translate-left":E.finalHorizontalPosition-I+"px","--ytd-video-preview-translate-top":E.finalTopPosition-B+"px","--ytd-video-preview-original-top-position":B+"px","--ytd-video-preview-original-horizontal-position":I+"px",
"--ytd-video-preview-initial-scale":"scale("+E.initialScale+")","--ytd-video-preview-width":E.videoPreviewWidth+"px","--ytd-video-preview-height":E.videoPreviewHeight+"px"});return!0};
_.l.handleOpenVideoPreviewAction=function(E){var B=this,I;return _.a(function(T){if(!B.currentPageAllowed())return T.return(0);B.opts=E;return(I=B.alignVideoPreviewForAnimation(E.thumbnail))?T.return(B.activate()):T.return(0)})};
_.l.onMouseLeave=function(E){this.shouldDeactivateOnMouseLeave(E)&&this.deactivate()};
_.l.onScroll=function(){var E,B;((E=this.opts)==null?0:E.isAutoplay)&&((B=this.opts)==null?0:B.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.l.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Ll.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.l.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.l.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",JY.JSC$16766_DEFAULT_CLICK_LOCATION_BEHAVIOR,JY.JSC$16766_CLICK_LOCATION_ID_MAP)};
_.l.shouldDeactivateOnMouseLeave=function(E){E=E.relatedTarget;if(!E)return!0;var B;return(B=this.opts)!=null&&B.mediaRenderer?!_.fq(this.opts.mediaRenderer).contains(E):!0};
_.l.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.l.onPlaybackStart=function(){var E=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$16767_preventProgressSaveTimer=
_.ta(_.Ll,function(){E.resetPreventProgressSaveTimer()},1E4);
var B;if((B=this.opts)==null?0:B.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.ta(_.Ll,function(){E.hasMultipleVideoPreviews()?E.startPlaybackForNextVideo():E.deactivate()},this.opts.videoPreviewDurationMs);
var I;this.player.setGlobalCrop(((I=this.opts)==null?0:I.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.l.getRoundedCornersSize=function(){var E;if((E=this.opts)==null?0:E.roundedCornersSize){var B;return(B=this.opts)==null?void 0:B.roundedCornersSize}var I;if((I=this.opts)==null?0:I.enableRounding){var T;if(((T=this.opts)==null?void 0:T.thumbnailSize)==="small")return 1;var e;if(((e=this.opts)==null?void 0:e.thumbnailSize)==="medium")return 2;var c;if(((c=this.opts)==null?void 0:c.thumbnailSize)==="large")return 3}return _.d("web_imp_inset_progress_bar")?3:0};
_.l.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.l.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.l.onMediaContainerClick=function(E){this.isShortcutClick(E)||(this.navigateToWatch(E),E.preventDefault(),E.stopPropagation())};
_.l.activate=function(){var E=this,B,I,T,e,c,Y,v,y,Z;return _.a(function(P){switch(P.nextAddress){case 1:if(!E.currentPageAllowed())return P.return(0);I=(B=E.videoPreviewData)==null?void 0:B.inlinePlaybackEndpoint;T=_.MN.instance;if(!I||!T)return P.return(0);E.playbackIntentTriggered=!0;((e=E.opts)==null?0:e.mediaRenderer)&&((c=E.opts)==null||!c.isAutoplay)&&AV7(E.opts.mediaRenderer,function(){E.deactivate()});
_.AJ(E,function(){E.revealPreviewUi()});
Y={};_.d("enable_unknown_lact_fix_on_html5")&&(_.Q().resolve(_.P$),Y.lact=_.DD());E.videoPreviewFetchRequest=JV9(T,E.getInlinePlaybackRequestData(E.videoPreviewData),Y);_.q7(P,2);return _.C(P,E.videoPreviewFetchRequest,4);case 4:v=P.yieldResult;if(((y=v)==null?void 0:(Z=y.playabilityStatus)==null?void 0:Z.status)==="OK")return P.return(E.handlePlayerResponse(v));throw Error("Ij");case 2:_.RG(P),E.deactivate();case 3:return P.return(1)}})};
_.l.getInlinePlaybackRequestData=function(E){var B,I=_.d("web_imp_player_mute_params")?((B=this.opts)==null?void 0:B.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:E.inlinePlaybackEndpoint,startPlaybackInMutedState:I}};
_.l.handlePlayerResponse=function(E){var B=this,I,T,e,c,Y,v,y,Z,P,z;return _.a(function(m){if(m.nextAddress==1){I=B.getInlinePlaybackVideoId();if(!(((T=E)==null?0:(e=T.videoDetails)==null?0:e.videoId)&&B.currentPageAllowed()&&B.playbackIntentTriggered&&B.opts&&I))return B.deactivate(),m.return(0);if(E.videoDetails.videoId!==I)return m.return(0);B.enableAudioControls=!!((c=E.playerConfig)==null?0:(Y=c.inlinePlaybackConfig)==null?0:Y.showAudioControls);E.trackingParams=B.getInlinePlaybackTrackingParams();
if(!B.inlinePlayer)return m.return(0);v={};if(Z=_.h((y=B.videoPreviewData)==null?void 0:y.inlinePlaybackEndpoint,_.kh))v.watch_endpoint=Z;if(B.videoPreviewData){var u,x=(u=_.h(B.videoPreviewData.inlinePlaybackEndpoint,_.kh))==null?void 0:u.startTimeSeconds;x!==void 0&&(E.playerConfig||(E.playerConfig={}),E.playerConfig.playbackStartConfig||(E.playerConfig.playbackStartConfig={}),E.playerConfig.playbackStartConfig.startPosition||(E.playerConfig.playbackStartConfig.startPosition={}),E.playerConfig.playbackStartConfig.startSeconds=
x,E.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(x*1E3))}B.inlinePlayer.loadVideoWithPlayerResponse(E,v);if(B.JSC$16767_playerPromise)return m.jumpTo(2);B.JSC$16767_playerPromise=B.inlinePlayer.getPlayerPromise();return _.C(m,B.JSC$16767_playerPromise,3)}m.nextAddress!=2&&(P=m.yieldResult,P.setInlinePreview(!0),P.setSizeStyle(!1,!0),B.ytPlayerListenerBehavior.listenToPlayerEvents(P,B.JSC$16767_playerEvents),B.player=P,_.$O(B.hostElement,"player-api-ready"));((z=B.opts)==
null?0:z.showPlayerControls)&&B.videoPreviewData&&B.player&&(B.playerControlsData={playerResponse:E,isInlinePlayback:!0,thumbnailOverlays:B.videoPreviewData.thumbnailOverlays,playerApi:B.player},B.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!B.unroundCornersForPlayback,additionalButton:B.getAdditionalButtonType(B.videoPreviewData.thumbnailOverlays)});return m.return(2)})};
_.l.revealPreviewUi=function(){var E=this;this.playbackIntentTriggered&&_.NZD(this,function(){E.hasThumbnailPositionChangedSinceTriggered()||(E.updateActiveState(!0),E.noAnimation=!1)})};
_.l.hasThumbnailPositionChangedSinceTriggered=function(){var E=this.positionData,B=this.getThumbnailPositionData();return(E==null?void 0:E.initialTopPosition)!==(B==null?void 0:B.initialTopPosition)||(E==null?void 0:E.initialHorizontalPosition)!==(B==null?void 0:B.initialHorizontalPosition)};
_.l.getThumbnailPositionData=function(){var E,B;if((B=this.opts)==null||!B.thumbnail)return null;B=this.opts.thumbnail;var I=((E=this.opts)==null?0:E.cropPlayerToFillThumbnailHorizontally)?!1:!0;var T=B.getBoundingClientRect();E=T.width;B=T.height;var e=T.top+window.scrollY;T=T.left+window.scrollX;var c=I?Math.ceil(E):E;I=I?Math.ceil(B):B;var Y=E/c;E={initialScale:Y,initialTopPosition:e-12*Y,finalTopPosition:e-12-(I-B)/2,initialHorizontalPosition:T-(12+(c-E)/2),finalHorizontalPosition:T-12-(c-E)/
2,videoPreviewWidth:c,videoPreviewHeight:I};return E};
_.l.updateActiveState=function(E){this.active=E;this.ytdReduxBehavior.dispatch(_.BP({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:E}))};
_.l.stopPlayer=function(E){E=E.resetWatchEndpointStartTime===void 0?!1:E.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(E)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Ll.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.l.deactivate=function(E){E=E===void 0?{}:E;E=E.resetWatchEndpointStartTime===void 0?!1:E.resetWatchEndpointStartTime;fI&&(fI.disconnect(),fI=null);this.stopPlayer({resetWatchEndpointStartTime:E});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.l.isValidThumbnailOverlayButton=function(E,B){E=E.thumbnailOverlayButtonRenderer;var I;return!!E&&!!E.tooltip&&!((I=E.icon)==null||!I.iconType)&&B.includes(E.icon.iconType)};
_.l.isValidThumbnailOverlayButtonViewModel=function(E,B){var I;E=_.h((I=E.thumbnailOverlayButtonViewModel)==null?void 0:I.overlayButton,_.sO);return!!E&&!!E.title&&!!E.iconName&&B.includes(E.iconName)};
_.l.getAdditionalButtonType=function(E){var B=this;if(_.d("web_imp_fastforward_button"))return{button:1};if(_.d("web_imp_miniplayer_button"))return{button:2};if(_.d("web_imp_playback_speed_button"))return{button:3};var I=["AUTO_AWESOME"],T=(E||[]).filter(function(c){return B.isValidThumbnailOverlayButton(c,I)}).map(function(c){return c.thumbnailOverlayButtonRenderer});
if(T.length)return{button:4,thumbnailOverlayButtonRenderers:T};var e=["AUTO_AWESOME"];E=(E||[]).filter(function(c){return B.isValidThumbnailOverlayButtonViewModel(c,e)}).map(function(c){return _.h(c.thumbnailOverlayButtonViewModel.overlayButton,_.sO)});
if(E.length)return{button:4,thumbnailOverlayButtonViewModels:E}};
_.l.allowCaptions=function(){var E;return!((E=this.opts)==null?0:E.forceCaptionsOff)};
_.l.allowUnmuting=function(){var E;return this.enableAudioControls&&!((E=this.opts)==null?0:E.forceMutedVolume)};
_.l.beginStartTimeUpdater=function(){var E=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.eg(function(){E.updateWatchEndpointStartTime()},1E3)};
_.l.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.l.resetPreventProgressSaveTimer=function(){this.JSC$16767_preventProgressSaveTimer!==null&&(_.Ll.cancelJob(this.JSC$16767_preventProgressSaveTimer),this.JSC$16767_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.l.updateWatchEndpointStartTime=function(E){var B=this.videoPreviewData;if(this.player&&B!=null&&B.inlinePlaybackEndpoint&&!this.JSC$16767_preventProgressSaveTimer){E=E?0:Math.floor(this.player.getCurrentTime());var I=_.h(B.navigationEndpoint,_.kh);I&&(I.startTimeSeconds=E);if(B=_.h(B.inlinePlaybackEndpoint,_.kh))B.startTimeSeconds=E}};
_.l.isShortcutClick=function(E){return!!E&&(E.ctrlKey||E.shiftKey||E.metaKey)};
_.l.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.l.openInMiniplayer=function(){var E=this,B,I;return _.a(function(T){if(T.nextAddress==1){I=(B=E.videoPreviewData)==null?void 0:B.navigationEndpoint;if(!I)return T.return();_.vx().lockupActivation=!0;return _.C(T,_.A8N(_.Q().resolve(_.W3),I),2)}_.vx().userActivation=!0;_.ER(T)})};
_.l.navigateToWatch=function(E){var B,I=(B=this.videoPreviewData)==null?void 0:B.navigationEndpoint;if(I){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(I,E,!0);else{if(_.d("web_thumbnail_to_watch_transition")){var T,e;(T=this.opts)==null||(e=T.onNavigateToWatchCallback)==null||e.call(T)}_.$O(this.hostElement,"yt-navigate",{endpoint:I})}this.deactivate()}};
_.l.getInlinePlaybackVideoId=function(){var E,B;return(B=_.h((E=this.videoPreviewData)==null?void 0:E.inlinePlaybackEndpoint,_.kh))==null?void 0:B.videoId};
_.l.getInlinePlaybackTrackingParams=function(){var E,B;return(E=this.videoPreviewData)==null?void 0:(B=E.inlinePlaybackEndpoint)==null?void 0:B.clickTrackingParams};
_.l.hasMultipleVideoPreviews=function(){var E;return!!(((E=this.opts)==null?0:E.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.l.startPlaybackForNextVideo=function(){var E;(E=this.opts)!=null&&E.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())};
_.Up.Object.defineProperties(JY.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.opts)==null?0:E.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.opts)==null||!E.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 E;if(Array.isArray((E=this.opts)==null?void 0:E.videoPreviewData)){var B;return(B=this.opts)==null?void 0:B.videoPreviewData[this.videoPreviewDataIndex]}var I;return(I=this.opts)==null?void 0:I.videoPreviewData}}});
JY.prototype.onIsAdsVideoChange=JY.prototype.onIsAdsVideoChange;JY.prototype.onInlinePreviewIsEnabledChange=JY.prototype.onInlinePreviewIsEnabledChange;JY.prototype.optsChanged=JY.prototype.optsChanged;JY.prototype.onMouseLeave=JY.prototype.onMouseLeave;JY.JSC$16766_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);JY.JSC$16766_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"}];
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],JY.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],JY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",_.XK)],JY.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],JY.prototype,"componentBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],JY.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.k2.YtSparklesClickLocationBehavior),_.t("design:type",Object)],JY.prototype,"ytSparklesClickLocationBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],JY.prototype,"opts",void 0);_.k([_.X(),_.t("design:type",Object)],JY.prototype,"playerControlsData",void 0);
_.k([_.X(),_.t("design:type",Object)],JY.prototype,"playerControlsAppApi",void 0);_.k([_.X(),_.t("design:type",Object)],JY.prototype,"playerControlsOptions",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],JY.prototype,"noAnimation",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],JY.prototype,"hidden",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],JY.prototype,"active",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],JY.prototype,"playing",void 0);_.k([_.X({selector:_.hki}),_.t("design:type",Boolean)],JY.prototype,"inlinePreviewIsEnabled",void 0);_.k([_.X(),_.t("design:type",String)],JY.prototype,"pagePath",void 0);_.k([_.X({selector:_.n9}),_.t("design:type",Boolean)],JY.prototype,"isWatchPage",void 0);_.k([_.S("videoPreviewData"),_.t("design:type",Object),_.t("design:paramtypes",[])],JY.prototype,"thumbnailData",null);
_.k([_.S("opts","active"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],JY.prototype,"hidePlayerControls",null);_.k([_.S("opts"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],JY.prototype,"isAdsVideo",null);_.k([_.S("opts"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],JY.prototype,"roundedCornersSmall",null);
_.k([_.S("opts"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],JY.prototype,"roundedCornersMedium",null);_.k([_.S("opts"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],JY.prototype,"roundedCornersLarge",null);_.k([_.S("opts"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],JY.prototype,"unroundCornersForPlayback",null);
_.k([_.S("opts","videoPreviewDataIndex"),_.t("design:type",Object),_.t("design:paramtypes",[])],JY.prototype,"videoPreviewData",null);_.k([_.X(),_.t("design:type",Object)],JY.prototype,"videoPreviewDataIndex",void 0);_.k([_.$7("#inline-player"),_.t("design:type",Object)],JY.prototype,"inlinePlayer",void 0);_.k([_.RN("mouseleave"),_.t("design:type",Function),_.t("design:paramtypes",[MouseEvent]),_.t("design:returntype")],JY.prototype,"onMouseLeave",null);
_.k([_.i6("opts"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],JY.prototype,"optsChanged",null);_.k([_.i6("inlinePreviewIsEnabled"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],JY.prototype,"onInlinePreviewIsEnabledChange",null);_.k([_.EM("isAdsVideo"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],JY.prototype,"onIsAdsVideoChange",null);
JY=_.k([_.b({is:"ytd-video-preview",disableElementRegistration:!0})],JY);
_.A(JY,"ytd-video-preview",function(){if(iFt!==void 0)return iFt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return iFt=E},{mode:2});
}catch(e){_._DumpException(e)}
try{
var gBs;var SRT;/*

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
*/
_.wp({_template:function(){if(SRT!==void 0)return SRT;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;gBs===void 0&&(gBs=document.createElement("template"));var T=gBs;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return SRT=E},
is:"tp-yt-paper-checkbox",behaviors:[_.PJZ],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.AJ(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var E=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),B="px",I=E.match(/[A-Za-z]+$/);I!==null&&(B=I[0]);E=parseFloat(E);I=8/3*E;B==="px"&&(I=Math.floor(I),I%2!==E%2&&I++);this.updateStyles({"--paper-checkbox-ink-size":I+
B})}})},
_computeCheckboxClass:function(E,B){var I="";E&&(I+="checked ");B&&(I+="invalid");return I},
_computeCheckmarkClass:function(E){return E?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.wDt._createRipple.call(this)}});var Jvm=new _.F("radioButtonSurveyOptionRenderer"),WX8=new _.F("checkboxSurveyOptionRenderer");var XL2;var rv8;var bKm=0,LI=function(){var E=_.r.call(this)||this;E.selected=!1;E.isOverlay=!1;E.inputId="toggle-option-"+bKm;bKm++;return E};
_.L(LI,_.r);LI.prototype.onTap=function(){_.$O(this.hostElement,"ytd-toggle-option-clicked")};
_.k([_.X(),_.t("design:type",String)],LI.prototype,"label",void 0);_.k([_.X(),_.t("design:type",String)],LI.prototype,"inputId",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LI.prototype,"selected",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LI.prototype,"isOverlay",void 0);LI=_.k([_.b({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.t("design:paramtypes",[])],LI);
_.A(LI,"ytd-toggle-option-renderer",function(){if(rv8!==void 0)return rv8;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return rv8=E},{mode:1});var xE=function(){var E=_.r.apply(this,arguments)||this;E.isToggleOption=!1;E.isOverlay=!1;return E};
_.L(xE,_.r);xE.prototype.onTap=function(E){E.preventDefault();this.data&&(E=!this.data.checked,this.set("data.checked",E),_.$O(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:E,value:this.data.value}))};
_.Up.Object.defineProperties(xE.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
xE.prototype.onTap=xE.prototype.onTap;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],xE.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],xE.prototype,"isToggleOption",void 0);_.k([_.X(),_.t("design:type",Object)],xE.prototype,"isOverlay",void 0);_.k([_.S("data.responseText"),_.t("design:type",String),_.t("design:paramtypes",[])],xE.prototype,"label",null);
_.k([_.RN("ytd-toggle-option-clicked"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],xE.prototype,"onTap",null);xE=_.k([_.b({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],xE);
_.A(xE,"ytd-checkbox-survey-option-renderer",function(){if(XL2!==void 0)return XL2;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return XL2=E},{mode:1});var oBs;var Avd;var Go=function(){var E=_.r.apply(this,arguments)||this;E.checked=!1;E.isToggleOption=!1;return E};
_.L(Go,_.r);Go.prototype.onTap=function(){this.data&&(this.checked?_.I2(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.I2(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
Go.prototype.onTap=Go.prototype.onTap;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Go.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Go.prototype,"checked",void 0);_.k([_.X(),_.t("design:type",Object)],Go.prototype,"isToggleOption",void 0);_.k([_.RN("ytd-toggle-option-clicked"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],Go.prototype,"onTap",null);
Go=_.k([_.b({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],Go);
_.A(Go,"ytd-radio-button-survey-option-renderer",function(){if(Avd!==void 0)return Avd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Avd=E},{mode:1});var O$=function(){var E=_.r.apply(this,arguments)||this;E.disableAnimation=!1;E.isToggleOption=!0;E.followUpSurveyCommand=null;E.selectedRatingEndpoint=null;E.isSlimlineSurveyFollowUp=!1;E.isShortsStyle=!1;E.styleOverrideAttribute=!0;E.isDarkMode=!1;E.isSubmitted=!1;E.roundedContainer=!0;E.improveShortsResponseRate=_.d("web_improve_shorts_response_rate");E.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 E};
_.L(O$,_.r);_.l=O$.prototype;
_.l.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"}}}}};
_.l.attached=function(){var E=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(I){var T;if((T=I[0])!=null&&T.isIntersecting){_.TA().reportShown(E.hostElement);var e;(e=E.intersectionObserver)==null||e.unobserve(E.hostElement)}},{rootMargin:"0px",
threshold:.6});var B;(B=this.intersectionObserver)==null||B.observe(this.hostElement)};
_.l.onDarkModeToggledAction=function(E){this.isDarkMode=E};
_.l.dataChanged=function(){var E;if(((E=this.data)==null?void 0:E.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var B;((B=this.data)==null?void 0:B.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var I,T,e,c;this.darkColorPalette=(I=this.data)==null?void 0:(T=I.inlineContent)==null?void 0:(e=T.compactVideoRenderer)==null?void 0:(c=e.thumbnail)==null?
void 0:c.darkColorPalette;var Y,v,y,Z;this.lightColorPalette=(Y=this.data)==null?void 0:(v=Y.inlineContent)==null?void 0:(y=v.compactVideoRenderer)==null?void 0:(Z=y.thumbnail)==null?void 0:Z.lightColorPalette;var P,z;if(((P=this.data)==null?0:(z=P.inlineContent)==null?0:z.compactVideoRenderer)&&this.isShortsStyle){var m,u,x,M;E=_.jO((m=this.data)==null?void 0:(u=m.inlineContent)==null?void 0:(x=u.compactVideoRenderer)==null?void 0:(M=x.thumbnail)==null?void 0:M.thumbnails);_.Dk(this.hostElement,
{"--yt-background-url":"url("+E+")"})}};
_.l.handleRequestCompletion=function(){this.hostElement.hidden&&_.$O(this.hostElement,"yt-dismissible-item-dismissed")};
_.l.onPopupClosed=function(E){var B;((B=E.detail)==null?void 0:B.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.I2(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.l.handleInlineSurveyRatingSelect=function(E,B){var I=this;this.selectedRatingEndpoint=E;this.followUpSurveyCommand=B;this.expanded=!!E;this.getOptionRenderers().forEach(function(T,e){I.notifyPath("followUpSurveyCommand.followUpOptions."+e+".checkboxSurveyOptionRenderer.checked");I.set("followUpSurveyCommand.followUpOptions."+e+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),E=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.I2(this.hostElement,"yt-reel-non-video-content-dismissal-command",[E]))};
_.l.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.I2(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var E,B=(E=this.data)==null?void 0:E.dismissalEndpoint;B&&this.ytComponentBehavior.resolveCommand(B)}};
_.l.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.I2(this.hostElement,"yt-close-popup-action"))};
_.l.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var E=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{E=this.getOptionRenderers().filter(function(T){return T.checked});
if(E.length===0)return;E=E.map(function(T){return T.responseEndpoint})}var B=[];
E.forEach(function(T,e){e!==0&&(T=_.h(T,_.Ms))&&T.feedbackToken&&B.push(T.feedbackToken)});
if(E=E[0]){var I={};B.length>0&&(I.extra_feedback_tokens=B);this.ytComponentBehavior.resolveCommand(E,{form:I})}}};
_.l.getOptionRenderers=function(){var E=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(B){E.isSingleSelect=!!_.h(B,Jvm);return E.isSingleSelect?_.h(B,Jvm):_.h(B,WX8)}):[]};
_.l.handleInlineSurveyOptionSelect=function(E){E=this.optionSelector.indexOf(E);E!==-1&&this.optionSelector.selectIndex(E)};
_.l.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.l.maybeGetBackgroundColor=function(E){return this.isDarkMode?E.section2Color:E.section3Color};
_.l.colorPaletteChanged=function(){var E=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;E=E&&this.maybeGetBackgroundColor(E);this.dismissibleEl.style.backgroundColor=!E||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.dE(E)};
_.Up.Object.defineProperties(O$.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
O$.prototype.colorPaletteChanged=O$.prototype.colorPaletteChanged;O$.prototype.onPopupClosed=O$.prototype.onPopupClosed;O$.prototype.handleRequestCompletion=O$.prototype.handleRequestCompletion;O$.prototype.dataChanged=O$.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],O$.prototype,"actionHandlerBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],O$.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],O$.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.$7("#follow-up-survey-options"),_.t("design:type",Object)],O$.prototype,"optionSelector",void 0);_.k([_.X(),_.t("design:type",Object)],O$.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],O$.prototype,"disableAnimation",void 0);_.k([_.X(),_.t("design:type",Object)],O$.prototype,"isToggleOption",void 0);_.k([_.X(),_.t("design:type",Object)],O$.prototype,"followUpSurveyCommand",void 0);_.k([_.X(),_.t("design:type",Object)],O$.prototype,"selectedRatingEndpoint",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],O$.prototype,"expanded",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],O$.prototype,"isSlimlineSurveyFollowUp",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],O$.prototype,"isShortsStyle",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],O$.prototype,"styleOverrideAttribute",void 0);_.k([_.X(),_.t("design:type",Boolean)],O$.prototype,"isSingleSelect",void 0);_.k([_.X(),_.t("design:type",Object)],O$.prototype,"isDarkMode",void 0);
_.k([_.X(),_.t("design:type",Object)],O$.prototype,"lightColorPalette",void 0);_.k([_.X(),_.t("design:type",Object)],O$.prototype,"darkColorPalette",void 0);_.k([_.S("selectedRatingEndpoint","isShortsStyle"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],O$.prototype,"isOptionSelected",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],O$.prototype,"roundedContainer",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],O$.prototype,"improveShortsResponseRate",void 0);_.k([_.$7("#dismissible"),_.t("design:type",HTMLElement)],O$.prototype,"dismissibleEl",void 0);_.k([_.$7("#dismiss-button yt-icon-button"),_.t("design:type",HTMLElement)],O$.prototype,"dismissButtonEl",void 0);_.k([_.$7("#inline-survey-header yt-icon-button"),_.t("design:type",HTMLElement)],O$.prototype,"inlineHeaderDismissButtonEl",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],O$.prototype,"dataChanged",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],O$.prototype,"handleRequestCompletion",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],O$.prototype,"onPopupClosed",null);
_.k([_.EM("darkColorPalette","lightColorPalette","isDarkMode"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],O$.prototype,"colorPaletteChanged",null);O$=_.k([_.b({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],O$);
_.A(O$,"ytd-inline-survey-renderer",function(){if(oBs!==void 0)return oBs;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return oBs=E},{mode:1});
}catch(e){_._DumpException(e)}
try{
var cm7,iu7,pwg;cm7=function(E){return _.d("kevlar_watch_cinematics_invisible")||E.fullscreen&&_.d("kevlar_watch_cinematics_invisible_in_fullscreen")||E.theater&&!E.fullscreen&&_.d("kevlar_watch_cinematics_invisible_in_theater")};
iu7=function(){var E=document.createElement("canvas"),B=E.getContext("2d");if(!B)throw Error("Xl");_.gw(E,{position:"absolute",width:"100%",height:"100%"});return{element:E,context:B}};
pwg=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.d("kevlar_watch_cinematics_css_blur")};
_.YEd=function(E,B,I){return Math.abs(E-B)<=(I||1E-6)};
_.aE9=function(E,B){return E==B?!0:E&&B?E.width==B.width&&E.height==B.height:!1};_.vFO=new _.F("notificationActionRenderer");var ymI=function(E){var B=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Tv;this.element.addEventListener("load",function(){B.loaded=!0;B.resolver.resolve(B.element)});
this.element.addEventListener("error",function(){B.failed=!0});
this.element.src=E};var Cr7=function(E,B){this.image=E;this.frame=B};
Cr7.prototype.drawToCanvas=function(E,B){var I=this.frame.width/this.frame.columns,T=this.frame.height/this.frame.rows,e=B.offsetX,c=B.offsetY;cm7(B)?(E.fillStyle=B.fullscreen?"#000":"#0f0f0f",E.fillRect(e,c,(B==null?void 0:B.width)||I,(B==null?void 0:B.height)||T)):E.drawImage(this.image,this.frame.column*I,this.frame.row*T,I,T,e,c,(B==null?void 0:B.width)||I,(B==null?void 0:B.height)||T)};
var ww2=function(E){this.color=E};
ww2.prototype.drawToCanvas=function(E,B){var I=B.offsetX,T=B.offsetY,e=B.width,c=B.height;E.fillStyle=cm7(B)?B.fullscreen?"#000":"#0f0f0f":this.color;E.fillRect(I,T,e,c)};var KY=function(E,B){_.oo.call(this);this.playerApi=B;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.KK(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();ZuT(this,E);_.PrH(this);this.update()},QmO;
_.L(KY,_.oo);KY.prototype.addEventListeners=function(){var E=this,B=function(){E.update()},I=function(e){E.paused||(e.type==="newdata"&&(E.mosaics.clear(),zC9(E),RT(E)),_.PrH(E),E.update())},T=function(){E.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",B);this.playerApi.addEventListener("onVideoDataChange",I);this.playerApi.addEventListener("onStateChange",T);this.addOnDisposeCallback(function(){E.playerApi.removeEventListener("onVideoProgress",B);E.playerApi.removeEventListener("onVideoDataChange",I);E.playerApi.removeEventListener("onStateChange",T)})};
var ZuT=function(E,B){E.cinematicContainerRenderer!==B&&(E.cinematicContainerRenderer=B,zC9(E),RT(E),E.colorStoreUpdateJobId=_.Ll.addLowPriorityJob(function(){var I;if((I=E.cinematicContainerRenderer.colorStore)!=null&&I.sampledColors){I=Infinity;for(var T=_.p(E.cinematicContainerRenderer.colorStore.sampledColors),e=T.next();!e.done;e=T.next()){e=e.value;var c=Number(e.key);c!==0&&c<I&&(I=c);c=_.hR(e.value);E.colorStore.set(e.key,c)}E.colorStoreTimeInterval=I}}))},zC9=function(E){E.colorStoreUpdateJobId&&
(_.Ll.cancelJob(E.colorStoreUpdateJobId),E.colorStoreUpdateJobId=void 0);
E.colorStore.clear();E.currentStoryboardColor=void 0},m4m=function(E,B){var I;
return(I=E.getStoryboardFrame(B))==null?void 0:I.url};
KY.prototype.onPlayerStateChange=function(){this.update()};
KY.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.PrH=function(E){var B=E.getStoryboardFrame(0);B&&(B=new _.KK(B.width/B.columns,B.height/B.rows),_.aE9(E.currentStoryboardSize,B)||(E.currentStoryboardSize=B,E.publish("STORYBOARD_SIZE_CHANGED",E.currentStoryboardSize)))};
QmO=function(E,B){E.currentStoryboardIndex=B;E.pendingStoryboardIndex=NaN;B=E.getStoryboardFrame(E.currentStoryboardIndex);E.currentStoryboard=new Cr7(E.mosaics.get(B.url).element,B);E.publish("STORYBOARD_CHANGED",E.currentStoryboard);E.lastUpdateTime=(0,_.VZ)()};
KY.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var RT=function(E){E.currentStoryboardIndex=NaN;E.pendingStoryboardIndex=NaN;E.currentStoryboard&&(E.currentStoryboard=void 0,E.publish("STORYBOARD_CHANGED",void 0));E.lastUpdateTime=NaN};
KY.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)RT(this);else{var E=this.playerApi.getPlayerState(1);if(E===-1||E===5||E===0)RT(this);else if(isNaN(this.lastUpdateTime)||!((0,_.VZ)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(E=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){E=""+Math.round(E*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var B=this.colorStore.get(E);B?B!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=B,this.currentStoryboard=new ww2(B),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.VZ)()):(_.OG(new _.P7("Could not find color for timestamp: "+E,this.cinematicContainerRenderer)),RT(this))}else RT(this);else d48(this,E)}};
var d48=function(E,B){var I=E.getStoryboardFrameIndex(B);if(I!==E.currentStoryboardIndex&&I!==E.pendingStoryboardIndex){B=m4m(E,I);var T=E.mosaics.get(B);T?T.loaded&&QmO(E,I):(E.pendingStoryboardIndex=I,I=new ymI(B),E.mosaics.set(B,I),I.resolver.promise.then(function(){if(!E.isDisposed()&&!E.paused&&!isNaN(E.pendingStoryboardIndex)){var e=m4m(E,E.pendingStoryboardIndex);if(e){var c;(c=E.mosaics.get(e))!=null&&c.loaded&&QmO(E,E.pendingStoryboardIndex)}else RT(E)}}))}};
KY.prototype.getStoryboardFrameIndex=function(E){var B=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(E,B)};
KY.prototype.getStoryboardFrame=function(E){var B=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,I,T;return((T=(I=this.playerApi).getStoryboardFrame)==null?void 0:T.call(I,E,B))||null};
KY.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Bq=function(E,B,I,T){T=T===void 0?!1:T;_.Cx.call(this);this.cinematicContainerRenderer=B;this.playerApi=I;this.theater=this.fullscreen=!1;var e;this.ambientLightThemeEnabled=!T&&!!(B==null?0:(e=B.config)==null?0:e.enableInLightTheme);this.ambientFullscreenEnabled=T&&_.d("web_cinematic_fullscreen");this.container=document.createElement("div");E.appendChild(this.container);var c;if(_.d("web_cinematic_theater_mode")||_.d("web_cinematic_fullscreen")||(B==null?0:(c=B.config)==null?0:c.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);hCL(this);E=this.ambientV2Container||this.container;this.backCanvas=iu7();this.frontCanvas=iu7();E.appendChild(this.backCanvas.element);E.appendChild(this.frontCanvas.element);this.storyboardManager=new KY(B,this.playerApi);_.Bp(this,this.storyboardManager);this.addEventListeners();smL(this)?umT(this,100+ED(this)*3*2,100+ED(this)*3*2):L7H(this);x4d(this,this.storyboardManager.currentStoryboard)};
_.L(Bq,_.Cx);var hCL=function(E){E.ambientV2Container?GD7(E):(_.gw(E.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+Ous(E)+", "+nF2(E)+")"}),pwg()&&_.gw(E.container,"filter","blur("+_.RI("cinematic_watch_css_filter_blur_strength",40)+"px)"))},GD7=function(E){if(E.ambientV2Container){var B=E.playerApi.getVideoAspectRatio();
_.gw(E.container,{"aspect-ratio":""+B,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.gw(E.ambientV2Container,{"aspect-ratio":""+B,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+Ous(E)+", "+nF2(E)+")"});pwg()&&_.gw(E.ambientV2Container,"filter","blur("+_.RI("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
Bq.prototype.setFullscreen=function(E,B){this.fullscreen=E;this.theater=!!B;hCL(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),E=this.storyboardManager.currentStoryboard,MKd(this),E&&Hu7(this,E)};
Bq.prototype.addEventListeners=function(){var E=this,B=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(e){x4d(E,e)}),I=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){L7H(E)});
this.addOnDisposeCallback(function(){E.storyboardManager.unsubscribeByKey(B);E.storyboardManager.unsubscribeByKey(I)});
if(this.ambientV2Container){var T=function(){GD7(E)};
this.playerApi.addEventListener("onVideoDataChange",T);this.addOnDisposeCallback(function(){E.playerApi.removeEventListener("onVideoDataChange",T)})}};
var L7H=function(E){if(!smL(E)){var B=E.storyboardManager.currentStoryboardSize;isNaN(B.width)||isNaN(B.height)||umT(E,Number(B.width)+ED(E)*3*2,Number(B.height)+ED(E)*3*2)}},umT=function(E,B,I){E.backCanvas.element.width=B;
E.backCanvas.element.height=I;E.frontCanvas.element.width=B;E.frontCanvas.element.height=I},smL=function(E){return E.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},x4d=function(E,B){var I=E.frontCanvas.element.getAnimations()[0];
I?(I.pause(),E.backCanvas.context.globalAlpha=Number(getComputedStyle(E.frontCanvas.element).opacity),E.frontCanvas.element.style.opacity="0",I.finish()):E.backCanvas.context.globalAlpha=1;E.backCanvas.context.drawImage(E.frontCanvas.element,0,0,E.backCanvas.element.width,E.backCanvas.element.height);MKd(E);B&&Hu7(E,B);B=B?E.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.RI("cinematic_watch_fade_out_duration",500);I=_.RI("cinematic_watch_transition_frame_rate")/1E3;var T=
{};I&&(T={easing:"steps("+Math.round(B*I)+")"});E.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:B,iterations:1},T));E.frontCanvas.element.style.opacity="1"},MKd=function(E){var B=E.ambientLightThemeEnabled,I=E.ambientLightThemeEnabled||E.ambientFullscreenEnabled&&!_.d("web_cinematic_fullscreen_v2");
E.frontCanvas.context.fillStyle=E.theater&&B||E.fullscreen&&I?"#000":"#0f0f0f";pwg()||(E.frontCanvas.context.filter="blur(0)");E.frontCanvas.context.fillRect(0,0,E.frontCanvas.element.width,E.frontCanvas.element.height)},Hu7=function(E,B){pwg()||(E.frontCanvas.context.filter="blur("+ED(E)+"px)");
E.frontCanvas.context.globalAlpha=_.RI("cinematic_watch_effect_opacity",.4);var I={offsetX:ED(E)*3,offsetY:ED(E)*3,theater:E.theater,fullscreen:E.fullscreen};smL(E)&&(I.width=100,I.height=100);B.drawToCanvas(E.frontCanvas.context,I);E.frontCanvas.context.globalAlpha=1},ED=function(E){var B;
return(B=E.cinematicContainerRenderer.config.blurStrength)!=null?B:5},Ous=function(E){var B,I;
if((E.fullscreen||E.theater)&&((B=E.cinematicContainerRenderer.config)==null?0:(I=B.watchFullscreenConfig)==null?0:I.colorSourceWidthMultiplier))return E.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var T;return(T=E.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?T:E.cinematicContainerRenderer.config.colorSourceSizeMultiplier},nF2=function(E){var B,I;
if((E.fullscreen||E.theater)&&((B=E.cinematicContainerRenderer.config)==null?0:(I=B.watchFullscreenConfig)==null?0:I.colorSourceHeightMultiplier))return E.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var T;return(T=E.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?T:E.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
Bq.prototype.disposeInternal=function(){_.Cx.prototype.disposeInternal.call(this);this.container.remove()};
Bq.prototype.clear=function(){x4d(this)};
Bq.prototype.pause=function(){this.storyboardManager.pause()};var Nv1;Nv1=_.PT(function(){var E,B,I=!((B=(E=document.createElement("canvas")).getContext)==null||!B.call(E,"2d")),T;E=!((T=CSS)==null||!T.supports("filter: blur(0)"));T=!!Element.prototype.animate&&!!Element.prototype.getAnimations;B=_.d("web_cinematic_fullscreen")||_.d("web_cinematic_theater_mode")||_.d("web_cinematic_light_theme")||!1;var e;return I&&E&&T&&(!B||!((e=CSS)==null||!e.supports("aspect-ratio: 1 / 1")))});
_.$c=function(E,B){_.oo.call(this);this.container=E;this.playerApi=B;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=gF1(this);this.update()};
_.L(_.$c,_.oo);_.SE9=function(E){var B=document.documentElement.hasAttribute("dark");E.isDarkModeEnabled=B;E.update()};
_.JmL=function(E,B){E.settingEnabled=B;E.update()};
_.$c.prototype.setFullscreen=function(E,B){this.fullscreen=E;this.theater=!!B;this.update()};
_.W7t=function(E,B){E.cinematicContainerRenderer=B;E.cinematicContainerRenderer&&(E.cinematicsVe=_.wA(E.isShorts()?227858:159022),_.Ts(_.lu(),E.cinematicsVe),E.loggingClientData={watchCinematicContainerData:{presentationStyle:E.cinematicContainerRenderer.presentationStyle}});E.update()};
_.$c.prototype.isShorts=function(){var E,B;return((E=this.cinematicContainerRenderer)==null?void 0:(B=E.config)==null?void 0:B.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.$c.prototype.isAllowed=function(){var E;if(E=Nv1()){var B,I,T;E=((I=this.cinematicContainerRenderer)==null?void 0:I.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((T=this.cinematicContainerRenderer)==null||!T.colorStore)||((B=this.cinematicContainerRenderer)==null?void 0:B.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(E)if(_.d("web_cinematics_pausing")){var e,c;E=this.isDarkModeEnabled||!!((e=this.cinematicContainerRenderer)==
null?0:(c=e.config)==null?0:c.enableInLightTheme)}else{var Y,v;e=!!((Y=this.cinematicContainerRenderer)==null?0:(v=Y.config)==null?0:v.enableInLightTheme)&&(_.HA("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);E=this.isDarkModeEnabled||e}if(Y=E){var y,Z;Y=!((Z=(y=this.prefersReducedMotionQuery)==null?void 0:y.matches)!=null&&Z)}return Y};
_.$c.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var gF1=function(E){if(!_.d("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var B=window.matchMedia("(prefers-reduced-motion: reduce)"),I=function(){E.update()};
B.addListener(I);E.addOnDisposeCallback(function(){B.removeListener(I)});
return B}};
_.$c.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var E=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Bq(this.container,E,this.playerApi,this.isDarkModeEnabled),_.Bp(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var B=this.currentCinematicEffect;B.cinematicContainerRenderer!==
E&&(B.cinematicContainerRenderer=E,ZuT(B.storyboardManager,E),hCL(B));E=_.ZB();_.PN(0,194,!0);E.save();E=_.nC();this.cinematicsVe&&E&&_.b1(E,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(E=_.nC(),this.cinematicsVe&&E&&_.o2(E,[this.cinematicsVe],!1,this.loggingClientData),_.bl(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Up.Object.defineProperties(_.$c.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var WC1;var XKI;_.wp({_template:function(){if(XKI!==void 0)return XKI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=
E.content,I=B.insertBefore;WC1===void 0&&(WC1=document.createElement("template"));var T=WC1;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return XKI=E},
is:"tp-yt-iron-pages",behaviors:[_.OI,_.Mi],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var so7;_.uvO=function(){if(_.d("kevlar_home_skeleton")&&!so7){var E=document.querySelector("#home-page-skeleton");E&&(_.nO("hgcr"),_.ii(E),so7=!0)}};
so7=!1;_.Pt=new _.F("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var dLH,h$2,scd,uBH,L52,GoO,OId,HI2,gE9,S$8,NeI,nE9,MB9,XJH,r78;_.Qc7=function(E,B,I){B=B===void 0?5:B;if(B!==0){var T=typeof E==="function"?E():document.querySelector(E);T?(I==null?0:I.enableSmartFocus)?_.EPB(T):T.focus():setTimeout(function(){_.Qc7(E,B-1,I)},500)}};
dLH=function(E){return _.$96(_.BhF(E&16777215))<.5};
h$2=function(E,B,I){var T=I.minimumRowsOfVideosBetweenSections===void 0?1:I.minimumRowsOfVideosBetweenSections;return E<(I.minimumRowsOfVideosAtStart===void 0?2:I.minimumRowsOfVideosAtStart)||B!==null&&E-B<=T?!1:!0};
scd=function(E,B){var I=0,T=0;E=_.p(E);for(var e=E.next();!e.done;e=E.next()){var c=e.value;if(c.richItemRenderer)c.richItemRenderer.rowIndex=T,c.richItemRenderer.colIndex=I++,I===B&&(I=0,T++);else if(c.richGroupRenderer&&c.richGroupRenderer.numColumns!==void 0)c.richGroupRenderer.rowIndex=T,c.richGroupRenderer.colIndex=I,I+=c.richGroupRenderer.numColumns,I===B&&(I=0,T++);else if(c.richSectionRenderer){var Y=e=void 0;if(c=_.h((e=c)==null?void 0:(Y=e.richSectionRenderer)==null?void 0:Y.content,_.d0U))c.rowIndex=
T++}}};
uBH=function(E,B){var I=B.contentElement;B=B.rendererToTagNameMap;if(I&&B&&B.size!==0){for(var T=new Map,e=_.p(I.children),c=e.next();!c.done;c=e.next()){c=c.value;var Y=c.tagName.toLowerCase(),v=T.get(Y);v||(v=[],T.set(Y,v));v.push(c)}if(T.size!==0)for(e=Math.min(E.length,I.children.length),c=new Map,Y=0;Y<e;Y++){v=Object.keys(E[Y])[0];v=B.get(v);if(!v)break;var y=c.get(v);y===void 0&&(y=0,c.set(v,y));var Z=T.get(v);if(!Z||y>=Z.length)break;c.set(v,y+1);v=Z[y];y=I.children[Y];y!==v&&(_.lW4=!0,_.cUf.set(v,
!0),I.insertBefore(v,y),_.cUf.delete(v),_.lW4=!1)}}};
L52=function(E,B,I,T,e,c,Y){T=T===void 0?{}:T;if(!E||!E.length)return[];E=E.slice();var v=[],y=[];e=null;for(var Z=0,P=function(W){y.sort(function(f,ed){return ed.skippedOnRow-f.skippedOnRow});
for(var U,q=(U=y.shift())==null?void 0:U.content;q;)!q.richSectionRenderer&&W||v.push(q),U=void 0,q=(U=y.shift())==null?void 0:U.content},z=[];E.length>0||y.length>0;){for(var m=[],u=B;u>0;){var x=void 0,M=void 0,N=(M=y[0]&&y[0].skippedOnRow<Z?(x=y.shift())==null?void 0:x.content:void 0)!=null?M:E.shift();
if(!N)break;if(N.richItemRenderer)x=N.richItemRenderer.targetId,M=void 0,x&&((M=Y)==null?0:M.has(x))&&z.push(Y.get(x)),m.push(N),u--;else if(N.richGroupRenderer&&N.richGroupRenderer.numColumns!==void 0)N.richGroupRenderer.numColumns<=u?(m.push(N),u-=N.richGroupRenderer.numColumns):u===B&&N.richGroupRenderer.numColumns>B?(m.push({richGroupRenderer:Object.assign({},N.richGroupRenderer,{numColumns:B})}),u=0):y.push({content:N,skippedOnRow:Z});else if(N.richSectionRenderer)if(h$2(Z,e,T)&&u===B){v.push(N);
e=Z;Z++;continue}else y.push({content:N,skippedOnRow:Z});else if(N.continuationItemRenderer){P(!0);v.push(N);u=0;break}if(u===0)v.push.apply(v,_.ad(m));else if(!I&&E.length===0){P(!1);v.push.apply(v,_.ad(m));u=0;break}}Z++;z=_.p(z);for(m=z.next();!m.done;m=z.next())v.push(m.value),Z++;z=[]}scd(v,B);c&&uBH(v,c);return v};
GoO=function(E){var B=E.data;var I=E.uniqueId;E=E.overrides;var T,e=((T=B.timedAnimationData)==null?void 0:T.animationTiming)||[];return _.w("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.w(_.fef,{settings:{uniqueId:I,timings:e,experimentEnabled:e.length>0,enabled:e.length>0}},xLT(B.buttonRenderer,{buttonRenderer:{buttonOverrides:E}})))};
OId=function(E){return E.talkToRecs};
HI2=function(E,B){if(B){var I=_.t2().getState().entities.flowStateEntity,T=nE9(E),e=[B];T&&T!==B&&e.push(T);var c=!0,Y;if(I&&E.flowStateEntityKey&&((Y=I[E.flowStateEntityKey])==null?void 0:Y.primaryButtonDisabled)!==void 0){var v;c=!((v=I[E.flowStateEntityKey])==null||!v.primaryButtonDisabled)}MB9(E,T!=null?T:B,e,c)}};
gE9=function(E){return _.C_(_.t2(),function(B){return B.entities.flowStateEntity},function(B,I){if(E.flowStateEntityKey){var T,e=B==null?void 0:(T=B[E.flowStateEntityKey])==null?void 0:T.currentStepId,c;
I=I==null?void 0:(c=I[E.flowStateEntityKey])==null?void 0:c.currentStepId;c=_.t2().getState().talkToRecs;if(e&&e!==I){var Y;B=(B==null?void 0:(Y=B[E.flowStateEntityKey])==null?void 0:Y.stepIdStack)||Object.keys(c.stepStates);Y=!NeI(c==null?void 0:c.stepStates[e]);MB9(E,e,B,Y)}}})};
S$8=function(E){return _.C_(_.t2(),OId,function(B){var I=nE9(E);if(I){var T=Object.keys(B.stepStates);B=!NeI(B==null?void 0:B.stepStates[I]);MB9(E,I,T,B)}})};
NeI=function(E){var B=Object.keys((E==null?void 0:E.selectionStates)||{}).reduce(function(c,Y){return c||(E==null?void 0:E.selectionStates[Y].isSelected)},!1),I,T,e=!!(E==null?0:(I=E.userQuery)==null?0:(T=I.userQuery)==null?0:T.trim());
return B||e};
nE9=function(E){if(E.flowStateEntityKey){var B,I,T=(B=_.t2().getState().entities.flowStateEntity)==null?void 0:(I=B[E.flowStateEntityKey])==null?void 0:I.currentStepId;if(T)return T}};
MB9=function(E,B,I,T){_.t2().dispatch(_.aL("flowStateEntity",E.flowStateEntityKey,{currentStepId:B,stepIdStack:I,key:E.flowStateEntityKey,primaryButtonDisabled:T}))};
_.J7I=function(E,B){return _.cP(E.entities,"youchatPendingResponseEntity",B)};
_.W51=function(E){return function(B){_.Jd(_.aL("youchatPendingResponseEntity",E,{entityKey:E,isPendingResponse:B}))}};
XJH=function(E){E==null||E.addEventListener("DOMLoaded",function(){E.goToAndPlay(E.totalFrames-48,!0)})};var bIt;_.wp({_template:function(){if(bIt!==void 0)return bIt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
var B=E.content,I=B.insertBefore;r78===void 0&&(r78=document.createElement("template"));var T=r78;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return bIt=E},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var oEH=new _.F("talkToRecsFlowRenderer");var A7L=new _.F("flowRootRenderer");var jcH=new _.F("chipsShelfViewModel");var ULI=new _.F("horizontalShelfViewModel");_.kos=new _.F("engagementPanelSectionListRenderer");var tBs=new _.F("conversationResourceViewModel");var fe7=function(){this.horizontal=!1},VBd=function(E,B){E.horizontal=B};
fe7.prototype.position=function(E,B,I,T){T=T===void 0?1:T;E=this.delta(E)*T+B;T=Math.max(B,I);return E>=Math.min(B,I)&&E<=T?E:I};
fe7.prototype.axis=function(E){E=this.direction(E);return E==="up"||E==="down"?"Y":"X"};var Bt=function(E,B,I){B=B===void 0?_.e7():B;this.target=E;this.manager=B;this.touchAction=I;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Bt.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(_.ad(this.events)));for(var E=_.p(this.events),B=E.next();!B.done;B=E.next())this.listen(B.value)}};
Bt.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.ad(this.events)));for(var E=_.p(this.events),B=E.next();!B.done;B=E.next())this.unlisten(B.value)}};
Bt.prototype.listen=function(E){this.eventMap[E]&&this.target.addEventListener(E,this.eventMap[E])};
Bt.prototype.unlisten=function(E){this.eventMap[E]&&this.target.removeEventListener(E,this.eventMap[E])};var $5=function(){fe7.apply(this,arguments)};
_.L($5,fe7);$5.prototype.direction=function(E){var B=E.detail;E=B.deltaY;B=B.deltaX;return E&&!this.horizontal?E>0?"down":"up":B&&this.horizontal?B>0?"right":"left":"none"};
$5.prototype.distance=function(E){return Math.abs(this.delta(E))};
$5.prototype.delta=function(E){var B=this.direction(E),I=E.detail;E=I.deltaX;I=I.deltaY;return B==="up"||B==="down"?I||0:E||0};
$5.prototype.velocity=function(E){var B=this.direction(E),I=E.detail;E=I.velocityX;I=I.velocityY;return Math.abs(B==="up"||B==="down"?I||0:E||0)};_.Il=function(E,B,I,T,e,c){e=e===void 0?new $5:e;c=c===void 0?_.e7():c;Bt.call(this,B,c,T);var Y=this;this.element=E;this.target=B;this.config=I;this.input=e;this.manager=c;this.events=["panstart","panmove","panend"];this.onPanStart=function(){Y.config.draggingClass&&Y.element.classList.add(Y.config.draggingClass);Y.config.startAction&&Y.config.startAction()};
this.onPanMove=function(v){var y=q$I(Y,v);if(y){Y.move(v,y);y.fade&&Y.fade(v,y);var Z=Y.input.direction(v);y.moveAction&&y.moveAction(F5H(Y,v,y),Z)}};
this.onPanEnd=function(v){var y,Z,P,z,m,u;return _.a(function(x){if(x.nextAddress==1){Y.animationRequestId&&cancelAnimationFrame(Y.animationRequestId);Y.animationRequestId=void 0;y=q$I(Y,v);if(!y)return x.return();Z=y;P=Z.triggerAction;z=Z.fade;m=Z.disableFinish;u=Z.translateBack;var M=Y.input.velocity(v),N=Y.input.distance(v),W=Y.threshold(y);return M>.3&&N>10||N>W?m?x.jumpTo(6):z?_.C(x,DL7(Y,v),6):_.C(x,K5t(Y,v,y),6):u?_.C(x,Y.translateBack(v),3):x.jumpTo(3)}x.nextAddress!=3&&P&&P();Y.config.draggingClass&&
Y.element.classList.remove(Y.config.draggingClass);Y.reset();_.ER(x)})};
E=Object.keys(I.triggers);this.directions=new Set(E);VBd(this.input,this.directions.has("right")||this.directions.has("left"))};
_.L(_.Il,Bt);_.Il.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var q$I=function(E,B){B=E.input.direction(B);return E.config.triggers[B]};
_.Il.prototype.move=function(E,B){var I=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var T=I.input.axis(E),e=I.input.position(E,I.config.startPosition,B.endPosition,B.moveRatio||1);I.element.style.transform="translate"+T+"("+e+"px)";I.animationRequestId=void 0}))};
var F5H=function(E,B,I){var T=I.moveRatio||1;I=Math.abs(E.config.startPosition-I.endPosition);return Math.min(E.input.distance(B)*T,I)/I};
_.Il.prototype.fade=function(E,B){var I=B.endOpacity;E=F5H(this,E,B);E>0&&(this.element.style.opacity=""+(((I||0)-1)*E+1))};
_.Il.prototype.threshold=function(E){return E.threshold?E.threshold:Math.abs(E.endPosition-this.config.startPosition)/3};
var K5t=function(E,B,I){var T,e,c,Y,v,y,Z;return _.a(function(P){if(P.nextAddress==1)return T=E.input.delta(B)+E.config.startPosition,e=E.input.axis(B),c=I,Y=c.endPosition,v=c.transitionEndPosition,Z=(y=v)!=null?y:Y,_.C(P,E.element.animate([{transform:"translate"+e+"("+T+"px)"},{transform:"translate"+e+"("+Z+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);E.element.style.transform="translate"+e+"("+Z+"px)";_.ER(P)})};
_.Il.prototype.translateBack=function(E){var B=this,I,T;return _.a(function(e){if(e.nextAddress==1){if(!B.element.style.transform)return e.return();I=B.input.axis(E);T=B.config.startPosition;return _.C(e,B.element.animate([{transform:B.element.style.transform},{transform:"translate"+I+"("+T+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}B.element.style.transform="translate"+I+"("+T+"px)";_.ER(e)})};
var DL7=function(E,B){var I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return I=E.input.delta(B)+E.config.startPosition,T=E.input.axis(B),e=I+70,c=E.element.style.opacity===""?1:E.element.style.opacity,_.C(Y,E.element.animate([{transform:"translate"+T+"("+I+"px)",opacity:c},{transform:"translate"+T+"("+e+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);E.element.style.transform="translate"+T+"("+e+"px)";E.element.style.opacity="0";_.ER(Y)})};var Ty=function(){var E=_.l6.apply(this,arguments)||this;E._noAccessors=!0;E.scrollRate=3;E.autoScrollAnimationStart=0;E.autoScrollPaused=!1;E.autoScrollRafId=0;return E};
_.L(Ty,_.l6);_.l=Ty.prototype;_.l.created=function(){var E=this;this.boundAutoScrollHandler=function(B){E.autoScroll(B)}};
_.l.detached=function(){this.hostElement.removeEventListener("mouseout",_.Kq(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Kq(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Kq(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.l.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Kq(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Kq(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Kq(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Kq(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Kq(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Kq(this,this.endAutoScroll)),this.endAutoScroll())};
_.l.autoScroll=function(E){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=E);var B;if(B=!this.autoScrollPaused&&this.scrollTarget)B=this.scrollTarget,B=B.scrollHeight-B.scrollTop!==B.clientHeight;B&&(B=1E3/this.scrollRate,E-=this.autoScrollAnimationStart,E>B&&(this.scrollTarget.scrollTop+=Math.ceil(E/B),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.l.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.l.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
Ty.prototype.autoScrollEnabledChanged=Ty.prototype.autoScrollEnabledChanged;_.k([_.X(),_.t("design:type",Object)],Ty.prototype,"scrollRate",void 0);_.k([_.X(),_.t("design:type",Object)],Ty.prototype,"scrollTarget",void 0);_.k([_.X(),_.t("design:type",Boolean)],Ty.prototype,"autoScrollEnabled",void 0);_.k([_.EM("autoScrollEnabled"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ty.prototype,"autoScrollEnabledChanged",null);Ty=_.k([_.cl()],Ty);_.R$g=[Ty.prototype];var Etd;_.oQ(_.wi,"yt-avatar-stack-view-model",{props:{className:_.Jh,data:_.Jh,isOverlay:_.Jh,useMediumText:_.Jh,decorations:_.Jh,hideAvatar:_.Jh}});var xLT=_.z8({buttonRenderer:_.nG});_.qW(GoO);_.qE(GoO,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var ez=function(){var E=_.r.apply(this,arguments)||this;E.hideJoinButtonBeforeSubscribed=_.d("hide_join_button_before_subscribed");E.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return E};
_.L(ez,_.r);_.l=ez.prototype;
_.l.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"}}}};
_.l.updateJoinButtonOverrides=function(){var E,B;(E=_.n(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(B=E.polymerController)==null||B.set("overrides",this.joinButtonOverrides);if(E=_.n(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))E.overrides=this.joinButtonOverrides};
_.l.handleButtonRefreshAction=function(E){if(E=_.h(E,_.AsN))this.set("data.membershipButton",E.membershipButton),this.notifyPath("data.membershipButton")};
_.l.onYtServiceRequestError=function(E){_.de(this.hostElement,E.detail.error.message)};
_.l.handleUnsubscribeAction=function(){var E,B,I;((E=this.data)==null?void 0:(B=E.membershipButton)==null?void 0:(I=B.buttonRenderer)==null?void 0:I.style)==="STYLE_PRIMARY"&&_.n(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Up.Object.defineProperties(ez.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.subscriptionStateEntity)==null||!E.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var E,B=(E=this.data)==null?void 0:E.membershipButton,I;E=(B==null?void 0:B.buttonRenderer)||_.h(B==null?void 0:(I=B.timedAnimationButtonRenderer)==null?void 0:I.buttonRenderer,_.NT);return(E==null?void 0:E.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(E==null?void 0:E.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(E==null?void 0:E.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
ez.prototype.onYtServiceRequestError=ez.prototype.onYtServiceRequestError;ez.prototype.updateJoinButtonOverrides=ez.prototype.updateJoinButtonOverrides;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],ez.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ez.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.Lz),_.t("design:type",Object)],ez.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ez.prototype,"data",void 0);_.k([_.S("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.t("design:type",Object),_.t("design:paramtypes",[])],ez.prototype,"hideJoin",null);_.k([_.X(),_.t("design:type",String)],ez.prototype,"subscribeKey",void 0);_.k([_.X({selectorArgs:["subscribeKey"],selector:_.RS}),_.t("design:type",Object)],ez.prototype,"subscriptionStateEntity",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ez.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.k([_.S("subscriptionStateEntity"),_.X({reflectToAttribute:!0}),_.t("design:type",Object),_.t("design:paramtypes",[])],ez.prototype,"subscribed",null);_.k([_.S("subscribed","data.membershipButton"),_.t("design:type",Object),_.t("design:paramtypes",[])],ez.prototype,"joinButtonOverrides",null);
_.k([_.EM("joinButtonOverrides"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ez.prototype,"updateJoinButtonOverrides",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],ez.prototype,"onYtServiceRequestError",null);ez=_.k([_.b({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],ez);
_.A(ez,"ytd-video-owner-renderer",function(){if(Etd!==void 0)return Etd;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Etd=E},{mode:1});var B3L;var ln=function(){var E=_.r.apply(this,arguments)||this;E.buttonUpdate=_.d("web_button_rework");E.dismissButtonOverrides=_.d("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;E.forceDarkTheme=!1;E.forceLightTheme=!1;E.dynamicTextHeight=94;E.hasOverflowButton=!1;E.isInfeedModernization=!1;return E};
_.L(ln,_.r);_.l=ln.prototype;_.l.computeUrlImg=function(E){if(E)return _.jO(E.thumbnails)};
_.l.getLogoHeight=function(E){return this.logoWithPadding(E)?"31":"24"};
_.l.getLogoClassName=function(E){return this.logoWithPadding(E)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.l.logoWithPadding=function(E){var B,I;return(E=(B=E.thumbnails)==null?void 0:(I=B[0])==null?void 0:I.height)&&E%31===0?!0:!1};
_.l.sendImpressionEndpoints=function(E){E.impressionEndpoints&&_.l1(this.hostElement,E.impressionEndpoints)};
_.l.observeBasicPalette=function(){var E,B,I=(E=this.data)==null?void 0:(B=E.colorData)==null?void 0:B.basicColorPaletteData;I?_.zI(this.hostElement,I):_.zI(this.hostElement,{})};
_.l.observeDataChanged=function(){var E;this.dynamicTextHeight=((E=this.data)==null?0:E.supplementalText)?74:94;var B;this.hasSupplementalText=!((B=this.data)==null||!B.supplementalText);if(_.d("web_button_rework")){var I,T,e,c;E=(I=this.data)==null?void 0:(T=I.actionButton)==null?void 0:(e=T.buttonRenderer)==null?void 0:(c=e.colorData)==null?void 0:c.basicColorPaletteData;var Y,v,y;if(!((Y=this.data)==null?0:(v=Y.actionButton)==null?0:(y=v.buttonRenderer)==null?0:y.style)&&E){this.computeIsInfeedModernization(this.data)||
(E.borderColor=E.foregroundTitleColor);var Z,P;this.set("data.actionButton.buttonRenderer",_.a_.unsafeClone((Z=this.data)==null?void 0:(P=Z.actionButton)==null?void 0:P.buttonRenderer))}}};
_.l.observeDataForCounterfactual=function(){if(_.d("kevlar_banner_cf_extra_logging")){var E;((E=this.data)==null?0:E.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.l.computeSupplementalStyle=function(){var E;if((E=this.data)!=null&&E.supplementalText){var B,I,T;if((B=this.data)==null?0:(I=B.colorData)==null?0:(T=I.basicColorPaletteData)==null?0:T.foregroundActivatedColor)return E=_.dE(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+E+"; --yt-endpoint-hover-color:"+E+"; --yt-endpoint-visited-color:"+E+"; --yt-formatted-string-bold-font-weight:700;"}};
_.l.computeForcedDarkTheme=function(){var E,B,I,T=(E=this.data)==null?void 0:(B=E.actionButton)==null?void 0:(I=B.buttonRenderer)==null?void 0:I.style,e,c,Y;E=dLH(((e=this.data)==null?void 0:(c=e.colorData)==null?void 0:(Y=c.basicColorPaletteData)==null?void 0:Y.backgroundColor)||0);return T&&E};
_.l.computeForcedLightTheme=function(){var E,B,I,T=(E=this.data)==null?void 0:(B=E.actionButton)==null?void 0:(I=B.buttonRenderer)==null?void 0:I.style,e,c,Y;E=!dLH(((e=this.data)==null?void 0:(c=e.colorData)==null?void 0:(Y=c.basicColorPaletteData)==null?void 0:Y.backgroundColor)||0);return T&&E};
_.l.computeHasOverflowButton=function(E){return!!E.overflowButton};
_.l.computeHasTitle=function(E){return!!E.title};
_.l.computeTitleMaxFontSize=function(E){return this.computeHasOverflowButton(E)?28:64};
_.l.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.l.computeIsInfeedModernization=function(){var E,B,I,T,e=(E=this.data)==null?void 0:(B=E.actionButton)==null?void 0:(I=B.buttonRenderer)==null?void 0:(T=I.colorData)==null?void 0:T.basicColorPaletteData;return(e==null?void 0:e.backgroundColor)===452984831||(e==null?void 0:e.backgroundColor)===218103808};
ln.prototype.observeDataForCounterfactual=ln.prototype.observeDataForCounterfactual;ln.prototype.observeDataChanged=ln.prototype.observeDataChanged;ln.prototype.observeBasicPalette=ln.prototype.observeBasicPalette;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],ln.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],ln.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ln.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ln.prototype,"buttonUpdate",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],ln.prototype,"hasSupplementalText",void 0);_.k([_.X(),_.t("design:type",Object)],ln.prototype,"dismissButtonOverrides",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.t("design:type",Boolean)],ln.prototype,"hasTitle",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.t("design:type",Object)],ln.prototype,"forceDarkTheme",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.t("design:type",Object)],ln.prototype,"forceLightTheme",void 0);_.k([_.X(),_.t("design:type",Object)],ln.prototype,"dynamicTextHeight",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.t("design:type",Object)],ln.prototype,"hasOverflowButton",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.t("design:type",Object)],ln.prototype,"isInfeedModernization",void 0);_.k([_.EM("data.colorData.basicColorPaletteData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ln.prototype,"observeBasicPalette",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ln.prototype,"observeDataChanged",null);_.k([_.EM("data.isVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ln.prototype,"observeDataForCounterfactual",null);ln=_.k([_.b({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],ln);
_.A(ln,"ytd-banner-promo-renderer",function(){if(B3L!==void 0)return B3L;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return B3L=E},{mode:1});var $jm;var Iz7;var T38;var ct=function(){return _.r.apply(this,arguments)||this};
_.L(ct,_.r);_.k([_.X(),_.t("design:type",Object)],ct.prototype,"data",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);ct=_.k([_.b({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],ct);
_.A(ct,"ytd-hashtag-grid-tile-renderer",function(){if(T38!==void 0)return T38;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return T38=E},{mode:1});var pN=function(){return _.r.apply(this,arguments)||this};
_.L(pN,_.r);pN.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
pN.prototype.updateRichGridTrendingHashtagsVisibility=function(){var E,B;if(((E=this.data)==null||!E.isExpanded)&&(B=this.data)!=null&&B.tiles){E=this.data.tiles.length;B=E>this.richGridItemsPerRow?this.richGridItemsPerRow+1:E;var I=Math.ceil(E/B);this.fullyVisibleRows=E%B===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
pN.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
pN.prototype.updateRichGridTrendingHashtagsVisibility=pN.prototype.updateRichGridTrendingHashtagsVisibility;_.k([_.X(),_.t("design:type",Object)],pN.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Number)],pN.prototype,"fullyVisibleRows",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],pN.prototype,"isShowMoreVisible",void 0);_.k([_.X({selector:_.GP,value:0}),_.t("design:type",Number)],pN.prototype,"richGridItemsPerRow",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],pN.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],pN.prototype,"ytdReduxBehavior",void 0);_.k([_.EM("data","richGridItemsPerRow"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],pN.prototype,"updateRichGridTrendingHashtagsVisibility",null);
pN=_.k([_.b({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],pN);
_.A(pN,"ytd-hashtag-grid-shelf-renderer",function(){if(Iz7!==void 0)return Iz7;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Iz7=E},{mode:1});var eW9;var lz7;var Y5=function(){var E=_.r.apply(this,arguments)||this;E.visibleVideos=[];E.hiddenVideos=[];E.modern=_.d("web_modern_buttons");E.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return E};
_.L(Y5,_.r);_.l=Y5.prototype;_.l.attached=function(){var E=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",E);this.onDarkModeToggledAction(E)};
_.l.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"}}}};
_.l.dataChanged=function(){var E=this;this.requestElementsPerRow();var B,I;this.currentColorPalette=this.isDarkTheme?(B=this.data)==null?void 0:B.darkColorData:(I=this.data)==null?void 0:I.lightColorData;var T;if((T=this.currentColorPalette)==null?0:T.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.AJ(this,function(){E.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.l.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.l.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.l.computeIsFirstFeedItem=function(E){return E};
_.l.onDarkModeToggledAction=function(E){E!==this.isDarkTheme&&this.set("isDarkTheme",E);this.data&&(this.currentColorPalette=E?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.l.getCurrentLogo=function(E,B){if(E)return B?E.darkLogoImage:E.lightLogoImage};
_.l.computeTitleStyle=function(E){var B;if((B=this.data)!=null&&B.title&&E&&E.textPrimary!==void 0)return"color:"+_.dE(E.textPrimary)+";"};
_.l.computeSubtitleStyle=function(E){var B;if((B=this.data)!=null&&B.subtitle&&E&&E.textSecondary!==void 0)return"color:"+_.dE(E.textSecondary)+";"};
_.l.computeDismissIconStyle=function(E){if(this.data&&this.data.dismissButton&&E&&E.textPrimary!==void 0)return"--yt-button-color:"+_.dE(E.textPrimary)+";"};
_.l.computeOverflowButtonStyle=function(E){if(this.data&&this.data.overflowButton&&E&&E.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.dE(E.textPrimary)+";--yt-spec-icon-active-other:"+_.dE(E.textPrimary)+";"};
_.l.computeBackgroundStyle=function(E){if(E&&this.data){var B="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.jO((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&(B+='background-image:url("'+I+'");')}E.backgroundColor!==void 0&&(B+="background-color:"+_.hR(E.backgroundColor)+";");return B}};
_.l.computeButton=function(){var E,B=Object.assign({},_.h((E=this.data)==null?void 0:E.showMoreButton,_.NT));if(this.modern&&B){B.style="STYLE_MONO_OUTLINE";var I;if(E=(I=this.currentColorPalette)==null?void 0:I.textPrimary)B.colorData={basicColorPaletteData:{foregroundTitleColor:E,borderColor:E}}}return B};
_.l.shouldShowBottomButton=function(E,B){return!(E==null?0:E.header)&&!(E==null||!E.primaryButton)&&B<3};
_.l.checkExpanded=function(E){this.isExpanded=E&&E.content?this.hiddenVideos.length===0:!0};
_.l.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.l.getLogoHeight=function(E){return this.logoWithPadding(E)?"26":"20"};
_.l.getLogoImageId=function(E){return this.logoWithPadding(E)?"logo-image-with-padding":"logo-image"};
_.l.computeHasSectionHeader=function(E){return!!E.header};
_.l.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var E;if((E=this.data.primaryButton)==null?0:E.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 B;((B=this.data.dismissButton)==null?0:B.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var I,T;((I=this.data)==null?0:(T=I.primaryButton)==null?0:T.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.l.setVisibleVideos=function(E){if(this.data&&this.data.content)if(this.data.content.length){var B=this.data.content.length;this.data.header?E?(this.visibleVideos=this.data.content.slice(0,Math.min(B,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(B,this.slimItemsPerRow),B)):(this.visibleVideos=this.data.content.slice(0,Math.min(B,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(B,this.elementsPerRow),B)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(B,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(B,this.elementsPerRow),B)):(this.visibleVideos=this.data.content.slice(0,Math.min(B,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(B,this.elementsPerRow-1),B))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.l.setHasMovieRenderer=function(){var E;if((E=this.data)!=null&&E.content){var B;this.hasMovieRenderer=!!_.h((B=this.data)==null?void 0:B.content[0],_.Fn6)}else this.hasMovieRenderer=!1};
_.l.requestElementsPerRow=function(){_.$O(this.hostElement,"yt-request-elements-per-row")};
_.l.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var E=_.p(this.hiddenMediaRenderers),B=E.next();!B.done;B=E.next())B.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(E=_.n(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&E.focus()}};
_.l.updateTitleSpec=function(){var E;(E=this.data)!=null&&E.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.l.logoWithPadding=function(E){var B,I,T;return(E=(B=this.getCurrentLogo(E,this.isDarkTheme))==null?void 0:(I=B.thumbnails)==null?void 0:(T=I[0])==null?void 0:T.height)&&E%31===0?!0:!1};
_.l.onUpdateElementsPerRowAction=function(E,B,I){E&&this.elementsPerRow!==E&&(this.elementsPerRow=E);I&&this.slimItemsPerRow!==I&&(this.slimItemsPerRow=I)};
Y5.prototype.slimItemsPerRowChanged=Y5.prototype.slimItemsPerRowChanged;Y5.prototype.elementsPerRowChanged=Y5.prototype.elementsPerRowChanged;Y5.prototype.dataChanged=Y5.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Y5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],Y5.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Y5.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Y5.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Y5.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Y5.prototype,"currentColorPalette",void 0);_.k([_.X(),_.t("design:type",Array)],Y5.prototype,"visibleVideos",void 0);_.k([_.X(),_.t("design:type",Array)],Y5.prototype,"hiddenVideos",void 0);
_.k([_.X(),_.t("design:type",Object)],Y5.prototype,"primaryButton",void 0);_.k([_.X({reflectToAttribute:!0,value:3}),_.t("design:type",Number)],Y5.prototype,"elementsPerRow",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],Y5.prototype,"isDarkTheme",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],Y5.prototype,"isExpanded",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],Y5.prototype,"largeTitle",void 0);
_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],Y5.prototype,"hasMovieRenderer",void 0);_.k([_.X(),_.t("design:type",Number)],Y5.prototype,"slimItemsPerRow",void 0);_.k([_.X(),_.t("design:type",Boolean)],Y5.prototype,"showLightVideoMetadata",void 0);_.k([_.X(),_.t("design:type",Boolean)],Y5.prototype,"showDarkVideoMetadata",void 0);_.k([_.X(),_.t("design:type",Number)],Y5.prototype,"videoMetadataColor",void 0);
_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Boolean)],Y5.prototype,"miniMode",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.t("design:type",Boolean)],Y5.prototype,"isFirstFeedItem",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.t("design:type",Boolean)],Y5.prototype,"hasSectionHeader",void 0);
_.k([_.X({reflectToAttribute:!0,value:!0}),_.t("design:type",Boolean)],Y5.prototype,"roundedContainer",void 0);_.k([_.eV("#visible-video-container ytd-rich-grid-media"),_.t("design:type",Array)],Y5.prototype,"visibleMediaRenderers",void 0);_.k([_.eV("#hidden-video-container ytd-rich-grid-media"),_.t("design:type",Array)],Y5.prototype,"hiddenMediaRenderers",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Y5.prototype,"modern",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Y5.prototype,"dataChanged",null);_.k([_.EM("elementsPerRow"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Y5.prototype,"elementsPerRowChanged",null);_.k([_.EM("slimItemsPerRow"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Y5.prototype,"slimItemsPerRowChanged",null);
Y5=_.k([_.b({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Y5);
_.A(Y5,"ytd-brand-video-shelf-renderer",function(){if(lz7!==void 0)return lz7;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return lz7=E},{mode:1});var cYI;var al=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return E};
_.L(al,_.r);_.l=al.prototype;_.l.attached=function(){var E=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",E);this.onDarkModeToggledAction(E)};
_.l.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-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"}}}};
_.l.dataChanged=function(){this.requestElementsPerRow();var E,B;this.currentColorPalette=this.isDarkTheme?(E=this.data)==null?void 0:E.darkColorData:(B=this.data)==null?void 0:B.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.l.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.l.computeIsFirstFeedItem=function(E){return E};
_.l.onDarkModeToggledAction=function(E){E!==this.isDarkTheme&&this.set("isDarkTheme",E);this.data&&(this.currentColorPalette=E?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(E),this.updateButtonPalette())};
_.l.shouldShowThumbnailInMetadata=function(E){return E<=1};
_.l.getCurrentLogo=function(E,B){if(E)return B?E.darkLogoImage:E.lightLogoImage};
_.l.computeVideoMetadataColor=function(){if(this.data){var E;if((E=this.currentColorPalette)==null?0:E.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.l.computeTitleStyle=function(E){var B;if((B=this.data)!=null&&B.title&&E&&E.textPrimary!==void 0)return"color:"+_.dE(E.textPrimary)+";"};
_.l.computeSubtitleStyle=function(E){var B;if((B=this.data)!=null&&B.subtitle&&E&&E.textSecondary!==void 0)return"color:"+_.dE(E.textSecondary)+";"};
_.l.computeDismissIconStyle=function(E){if(this.data&&this.data.dismissButton){var B;if(E==null?0:(B=E.dismissButtonColorData)==null?0:B.foregroundTitleColor)return"--yt-button-color:"+_.dE(E.dismissButtonColorData.foregroundTitleColor)+";";var I,T,e,c;if((I=this.data.dismissButton)==null?0:(T=I.buttonRenderer)==null?0:(e=T.colorData)==null?0:(c=e.basicColorPaletteData)==null?0:c.foregroundTitleColor)return"--yt-button-color:"+_.dE(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.l.computeOverflowButtonStyle=function(E){var B;if(this.data&&this.data.overflowButton&&(E==null?0:(B=E.dismissButtonColorData)==null?0:B.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.dE(E.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.dE(E.dismissButtonColorData.foregroundTitleColor)+";"};
_.l.computeBackgroundStyle=function(E){if(E&&this.data){var B="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.jO((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&(B+='background-image:url("'+I+'");')}E.backgroundColor!==void 0&&(B+="background-color:"+_.hR(E.backgroundColor)+";");return B}};
_.l.computeHasOverflowButton=function(E){return!!E.overflowButton};
_.l.getLogoHeight=function(E){return this.logoWithPadding(E)?"26":"20"};
_.l.getLogoImageId=function(E){return this.logoWithPadding(E)?"logo-image-with-padding":"logo-image"};
_.l.updateButtonPalette=function(){if(this.data){var E;if((E=this.data.primaryButton)==null?0:E.buttonRenderer){var B;if((B=this.currentColorPalette)==null?0:B.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var I;if((I=this.currentColorPalette)==null?0:I.primaryButtonStyleType)this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}var T;if((T=this.data.dismissButton)==null?0:T.buttonRenderer){var e;if((e=this.currentColorPalette)==null?0:e.dismissButtonColorData)this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData}}}};
_.l.requestElementsPerRow=function(){_.$O(this.hostElement,"yt-request-elements-per-row")};
_.l.updateTitleSpec=function(){var E;(E=this.data)!=null&&E.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")};
_.l.logoWithPadding=function(E){var B,I,T;return(E=(B=this.getCurrentLogo(E,this.isDarkTheme))==null?void 0:(I=B.thumbnails)==null?void 0:(T=I[0])==null?void 0:T.height)&&E%31===0?!0:!1};
_.l.onUpdateElementsPerRowAction=function(E){E&&this.elementsPerRow!==E&&(this.elementsPerRow=E)};
al.prototype.elementsPerRowChanged=al.prototype.elementsPerRowChanged;al.prototype.dataChanged=al.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],al.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],al.prototype,"ytdDismissibleItemBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],al.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],al.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],al.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],al.prototype,"currentColorPalette",void 0);_.k([_.X(),_.t("design:type",Object)],al.prototype,"primaryButton",void 0);
_.k([_.X({reflectToAttribute:!0,value:3}),_.t("design:type",Number)],al.prototype,"elementsPerRow",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],al.prototype,"isDarkTheme",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],al.prototype,"titleSize",void 0);_.k([_.X(),_.t("design:type",Number)],al.prototype,"videoMetadataColor",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Boolean)],al.prototype,"miniMode",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.t("design:type",Boolean)],al.prototype,"isFirstFeedItem",void 0);_.k([_.X({reflectToAttribute:!0,value:!0}),_.t("design:type",Boolean)],al.prototype,"roundedContainer",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.t("design:type",Boolean)],al.prototype,"hasOverflowButton",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],al.prototype,"dataChanged",null);_.k([_.EM("elementsPerRow"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],al.prototype,"elementsPerRowChanged",null);al=_.k([_.b({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],al);
_.A(al,"ytd-brand-video-singleton-renderer",function(){if(cYI!==void 0)return cYI;var E=document.createElement("template");_.G(E,'\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" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" 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="header-container" hidden="[[data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n          </div>\n        </div>\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)]]" hidden="[[!data.overflowButton]]" 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="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return cYI=E},{mode:_.qi("kevlar_poly_si_batch_j070")?1:2});var iP2;var p07=_.rp(function(E){var B=E.data;return _.w(_.Ja,{data:function(){return B().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(B().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var I=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":I=88;break a;default:I=88}return I},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return B().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Uh"),azg=_.rp(function(E){var B=E.metadataRow;
var I=E.delimiter;return _.w(_.Zt,{each:function(){return B().textParts||[]},
keyBy:"INDEX"},function(T,e){return _.w(_.VS,null,_.w(_.aS,{text:T,noWrap:!0,userInput:!0}),_.w(YwI,{delimiter:I,max:function(){return B().textParts.length},
index:e}))})},"Vh"),YwI=_.rp(function(E){var B=E.delimiter;
var I=E.max;var T=E.index;return _.w(_.wU,{cond:function(){return(B==null?void 0:B())&&I()-1>T()},
then:function(){return _.w("span",null,B)}})},"Wh"),vtg=_.rp(function(E){var B=E.data;
E={};return _.w("yt-profile-page-header-information-view-model",{class:_.RQ("profile-page-header-information-view-model-wiz",(E["profile-page-header-information-view-model-wiz--mobile"]=!1,E))},_.w(_.wU,{cond:function(){return B().onTap},
then:function(){return _.w(_.Y3,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.ha(B().onTap)}},_.w(_.hM,{data:function(){return B().thumbnail}},{profilePageHeaderThumbnailViewModel:p07}))},
else:function(){return _.w("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.w(_.hM,{data:function(){return B().thumbnail}},{profilePageHeaderThumbnailViewModel:p07}))}}),_.w("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.w(_.wU,{cond:function(){return B().onTap},
then:function(){return _.w(_.hM,{data:function(){return B().title}},{profilePageHeaderTitleViewModel:function(I){var T=I.data;
return _.w(_.Y3,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.ha(T().onTap)}},_.w(_.aS,{text:function(){return T().title}}))}})},
else:function(){return _.w(_.hM,{data:function(){return B().title}},{profilePageHeaderTitleViewModel:function(I){var T=I.data;
return _.w(_.aS,{text:function(){return T().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.w(_.hM,{data:function(){return B().metadata}},{profilePageHeaderMetadataViewModel:function(I){var T=I.data;
return _.w(_.wU,{cond:function(){return T().metadataRows},
then:function(e){return _.w("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.w(_.Zt,{each:e,keyBy:"INDEX"},function(c,Y){return _.w(_.VS,null,_.w(azg,{metadataRow:c,delimiter:" \u2022 "}),_.w(YwI,{delimiter:" \u2022 ",max:function(){return e().length},
index:Y}))}))}})}})))},"Xh");
vtg.idomCompat=!0;_.oQ(vtg,"yt-profile-page-header-information-view-model",{props:{data:_.Jh}});var vt=function(){return _.r.apply(this,arguments)||this};
_.L(vt,_.r);vt.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],vt.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],vt.prototype,"data",void 0);vt=_.k([_.b({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],vt);
_.A(vt,"ytd-effect-pivot-header-view-model",function(){if(iP2!==void 0)return iP2;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return iP2=
E},{mode:1});var yY1;var yg=function(){return _.r.apply(this,arguments)||this};
_.L(yg,_.r);yg.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],yg.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],yg.prototype,"data",void 0);yg=_.k([_.b({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],yg);
_.A(yg,"ytd-source-pivot-header-renderer",function(){if(yY1!==void 0)return yY1;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return yY1=E},{mode:1});_.oQ(_.rp(function(E){var B={},I={},T={},e={};return _.w("yt-card-view-model",{class:_.RQ("ytCardViewModelHost",E.className,(B.ytCardViewModelOutline=function(){return E.data().cardStyle==="CARD_STYLE_OUTLINE"},B),(I.ytCardViewModelRaised=function(){return E.data().cardStyle==="CARD_STYLE_RAISED"||E.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},I),(T.ytCardViewModelTonal=function(){return E.data().cardStyle==="CARD_STYLE_TONAL"},T),(e.ytCardViewModelInverted=function(){return E.data().cardStyle===
"CARD_STYLE_INVERSE"},e))},_.w(_.hM,{data:function(){return E.data().background}},{cinematicContainerViewModel:function(c){return _.w(_.SaZ,{data:c.data})}}),_.w(_.hM,{data:function(){return E.data().dismissAction}},{buttonViewModel:function(c){return _.w(_.ne,{data:c.data})}}))},"Yh"),"yt-card-view-model",{props:{data:_.Jh,
className:_.Jh}});_.oQ(_.rp(function(E){var B=function(){return _.h(E.data().flowRoot,A7L)};
_.uW(function(){var I=B(),T=function(){},e=function(){};
if(I){var c,Y,v=(Y=_.h((c=I.steps)==null?void 0:c[0],_.zBT))==null?void 0:Y.stepId;HI2(I,v||"");T=gE9(I);e=S$8(I)}_.dt(function(){T();T=function(){};
e();e=function(){}})});
return _.w("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.w(_.lfl,{contentId:function(){return E.data().contentId}},function(){return _.w("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.w(_.wU,{cond:B,
then:function(I){return _.w(_.cg8,{data:I})}}))}))},"Zh"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Jh}});_.oQ(_.rp(function(){return _.w("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.w("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.w("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.w(_.Agg,null)),_.w(_.IEZ,{data:{rows:1},isExploreHub:!0}))},"$h"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.oQ(_.rp(function(E){var B=E.data;var I=E.standardUnitMinWidth;E=_.oH();var T=_.p((0,_.cmU)(B)),e=T.next().value,c=T.next().value,Y=function(){var y,Z=(y=e())==null?void 0:y.contents;return Z==null||Z.length===0},v=function(){c(Object.assign({},e(),{contents:[]}))};
_.VU(E,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var y=_.h(B().chipsShelf,jcH);if(y!=null&&y!=null&&y.autoselectChipOnVisible){var Z,P,z=_.h(y==null?void 0:(Z=y.contents)==null?void 0:Z[(P=y.autoselectedChipIndex)!=null?P:0],_.JB);z&&z.tapCommand&&_.xg(z.tapCommand)}}});
return _.w("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:E},_.w(_.lfl,{contentId:function(){return B().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.w("div",null,_.w("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.w(_.hM,{data:function(){return B().header}},{sectionHeaderViewModel:function(y){return _.w(_.VN,{data:y.data,
disableHorizontalPadding:!0})}})),_.w("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.w(_.hM,{data:function(){return B().chipsShelf}},{chipsShelfViewModel:function(y){return _.w(_.RYZ,{data:y.data,
callback:v,enableSingleChipSelection:!0})}})),_.w("div",null,_.w(_.wU,{cond:Y,
then:function(){return _.w("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.w(_.IEZ,{data:{rows:1},isExploreHub:!0}))}}),_.w(_.hM,{data:function(){var y;
return(y=e())==null?void 0:y.contents}},{richShelfRenderer:function(y){return _.w(_.loh,{data:y.data,
isInnerShelf:!0,standardUnitMinWidth:I})}})))}))},"ai"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Jh,
standardUnitMinWidth:_.Jh}});var CN=function(){return _.r.apply(this,arguments)||this};
_.L(CN,_.r);
CN.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
CN.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.k([_.g(_.Lz),_.t("design:type",Object)],CN.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.xo),_.t("design:type",Object)],CN.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],CN.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Number)],CN.prototype,"standardUnitMinWidth",void 0);CN=_.k([_.b({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],CN);
_.A(CN,"ytd-rich-section-renderer",function(){if(eW9!==void 0)return eW9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return eW9=E},{mode:_.qi("kevlar_poly_si_batch_j029")?
1:2});_.oQ(_.Jx7,"yt-profile-identity-info-view-model",{props:{data:_.Jh,hideDivider:_.Jh}});_.oQ(_.tWZ,"yt-page-header-view-model",{props:{data:_.Jh,noPadding:_.Jh,enableBanner:_.Jh,cinematicContainerTopbarOffset:_.Jh,allowCinematicContainerOverflow:_.Jh,displayAsSidebar:_.Jh,displayAsPanel:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;var I=function(){var e;return(e=B().numColumns)!=null?e:2},T=function(){return I()>1?3:2};
E={};return _.w("ytd-rich-grid-group",{class:_.RQ("ytdRichGridGroupHost",(E.ytdRichGridGroupHostFirstColumn=function(){return B().colIndex===0},E)),
style:_.c$({"--ytd-rich-grid-group-num-columns":I,"--ytd-rich-grid-items-per-group":T})},_.w("div",{class:"ytdRichGridGroupContents"},_.w(_.hM,{data:function(){var e;return(e=B().contents)==null?void 0:e.slice(0,T())}},{richItemRenderer:function(e){return _.w(_.T_$,{data:e.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"bi"),"ytd-rich-grid-group",{props:{data:_.Jh}});var wO=function(){var E=_.r.apply(this,arguments)||this;E.resizeOnObserverInit=!1;E.isInlinePreviewDisabled=_.d("web_disable_inline_preview");E.disableStickyFilterBar=!1;E.transparentBackgroundChipsBar=!1;E.hideChipsBar=!1;E.isWatchDefaultLayout=!0;E.continuationShowButton=!1;E.rowReducedHorizontalMargin=!1;E.useCompactList=!1;E.manualDownloadsPresent=!1;E.smartDownloadsPresent=!1;E.shouldRenderDownloadsBanner=!1;E.hasOptedIntoSmartDownloads=!1;E.elementsPerRow=4;E.typographyBump=!1;E.showGnomeContents=
!1;E.showExploreHubContents=!1;E.slimItemsPerRow=1;E.pageLoadingFromNavigation=!1;E.loggingRefactor=_.d("kevlar_rich_grid_logging_fix");E.resizeObserver=null;E.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"};E.rendererToTagNameMap=
new Map(Object.entries(E.contentMapping()).map(function(B){var I=_.p(B);B=I.next().value;I=I.next().value;return[B,I.component]}));
E.insertedContent=new Map;return E};
_.L(wO,_.r);_.l=wO.prototype;_.l.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var E=_.p(_.n(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),B=E.next();!B.done;B=E.next())B.value.useCompactList=this.useCompactList};
_.l.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var E=_.p(_.n(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),B=E.next();!B.done;B=E.next())B=B.value,B.sizing=this.sizing,B.typographyBump=this.typographyBump};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.l.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]]"},
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]]"}}}};
_.l.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}}};
_.l.attached=function(){document.addEventListener("yt-page-type-changed",_.Kq(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.qH(this.resizeObserved,_.RI("rich_grid_resize_delay_ms",50),this)};
_.l.detached=function(){var E;(E=this.resizeObserver)==null||E.disconnect();document.removeEventListener("yt-page-type-changed",_.Kq(this,this.onPageChange))};
_.l.insertRichSection=function(E){var B=E.richItemTargetId;E=E.richSectionRendererToInsert;B&&E&&(this.insertedContent.set(B,E),this.reflowContent())};
_.l.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.l.computeIsInlinePreviewEnabled=function(E,B,I){return _.d("web_disable_inline_preview")?!1:!I&&_.idT({miniplayerIsActive:E,miniplayerPlaybackState:B})};
_.l.computeSizing=function(){var E=_.pKJ(this.data);if(E||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return E?this.useCompactList?"COMPACT":E:this.miniMode?"COMPACT":_.d("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.l.updateItemMinAndMaxWidth=function(){var E=_.RI("rich_grid_max_item_width",500);E>0&&_.Dk(this.hostElement,{"--ytd-rich-grid-item-max-width":E+"px"});var B;E=this.getRichItemMinWidth((B=this.hostElement)==null?void 0:B.clientWidth);E>0&&_.Dk(this.hostElement,{"--ytd-rich-grid-item-min-width":E+"px"})};
_.l.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.l.resizeObserved=function(){_.Ta(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.l.navigateBackToHome=function(){_.d("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.d("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var E=_.Q().resolve(_.oS).isOnWatch(),B,I=((B=_.Y6i(location.pathname))==null?void 0:B.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(I)||E)&&this.gnomeContents&&_.d("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);E&&this.exploreHubContents&&_.d("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.t2().dispatch(_.BP({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.l.onPageChange=function(){var E=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.d("disable_chip_select_on_nav")||_.Ta(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Ll.addJob(function(){E.pageLoadingFromNavigation=!1;_.d("disable_chip_select_on_nav")&&_.d("h5_reset_cache_and_filter_before_update_masthead")&&E.resetCacheAndIsFilteredFeed();E.setMasthead();E.maybeSetBigYoodle();E.forceRefreshAndLog();E.terminateVideoPreview();_.d("web_hide_gnome_until_user_navigates_back_to_home")&&
(E.dataChanged(),_.AJ(E,function(){if(E.showGnomeContents){var B=Array.from(_.n(E.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(T){T=_.n(T).querySelector("ytd-rich-shelf-renderer");return!!T&&T.isGnomeShelf()});
if(B){B=B.offsetTop-E.contentsElement.offsetTop;var I=_.Q().resolve(_.oS).getCurrentPage();I&&I.getPageScrollingElement().scrollTo({top:B,behavior:"smooth"})}}}));
_.d("web_hide_explore_hub_until_user_navigates_back_to_home")&&(E.dataChanged(),_.AJ(E,function(){if(E.showExploreHubContents&&!_.d("web_explore_hub_no_scroll")){var B=Array.from(_.n(E.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(T){return!!T.querySelector("ytd-talk-to-recs-flow-renderer")});
if(B){B=B.offsetTop-E.contentsElement.offsetTop;var I=_.Q().resolve(_.oS).getCurrentPage();I&&I.getPageScrollingElement().scrollTo({top:B,behavior:"smooth"})}}}))},8)):((_.d("web_hide_gnome_until_user_navigates_back_to_home")||_.d("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.l.dataChanged=function(){var E=this,B=_.RI("web_rich_grid_row_margin",0);B>0&&_.Dk(this.hostElement,{"--ytd-rich-grid-row-margin":B+"px"});_.Ta(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.AJ(this,function(){E.updateRichItemGridPositions();E.contentsElement&&_.Dk(E.hostElement,{"--ytd-rich-grid-content-offset-top":E.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.l.initResizeObserver=function(){var E=this;if(window.ResizeObserver){var B;(B=this.resizeObserver)==null||B.disconnect();var I=!1;this.resizeObserver=new ResizeObserver(function(){if(I){var T;(T=E.resizeObserver)==null||T.disconnect();var e;(e=E.throttledOnResize)==null||e.fire();requestAnimationFrame(function(){var Y;(Y=E.throttledOnResize)==null||Y.fire();E.initResizeObserver()})}else if(I=!0,E.resizeOnObserverInit){var c;
(c=E.throttledOnResize)==null||c.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.l.contentLengthChanged=function(){if(_.d("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Ta(this.hostElement,"ytd-rich-item-index-update-action")};
_.l.updateElementsPerRow=function(){_.Ta(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.BP({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.BP({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.l.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.l.onRichShelfRendererCollapse=function(E){if(this.shownItems){var B=E.detail;E=this.shownItems.findIndex(function(T){var e,c;return((c=_.h(T==null?void 0:(e=T.richSectionRenderer)==null?void 0:e.content,_.d0U))==null?void 0:c.trackingParams)===B});
var I=E+1;E<0||I>=this.contentsElement.children.length||!this.shownItems[I].richItemRenderer||this.contentsElement.children[I].scrollIntoView({behavior:"smooth",block:"start"})}};
_.l.onSoftReloadPage=function(){this.scrollUpToTop()};
_.l.handleRerenderDownloadsData=function(){_.d("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.l.handlePlaylistRemoveVideosAction=function(E){var B;if(((B=_.h(E,_.AwN))==null?0:B.setVideoIds)&&this.data&&this.data.contents){E=_.h(E,_.AwN).setVideoIds;for(B=this.data.contents.length-1;B>=0;){var I=_.h(this.data.contents[B],_.xY);(I=I&&_.h(I.content,_.HW))&&I.setVideoId&&E.includes(I.setVideoId)&&this.splice("data.contents",B,1);B--}this.updateIndices()}};
_.l.updateIndices=function(){if(this.data&&this.data.contents)for(var E=0;E<this.data.contents.length;E++)this.set("data.contents."+E+".richItemRenderer.index",_.jj(String(E+1)))};
_.l.hasTopRowInlinePlayableVideoWithEndorsement=function(E){var B;return!((B=E.slice(0,this.getItemsPerRow()))==null||!B.some(function(I){var T;I=_.h(I==null?void 0:(T=I.richItemRenderer)==null?void 0:T.content,_.H2r);var e;return(I==null?void 0:I.inlinePlaybackEndpoint)&&(I==null?void 0:(e=I.thumbnailOverlays)==null?void 0:e.some(function(c){return c.thumbnailOverlayEndorsementRenderer}))}))};
_.l.refreshGridLayoutNew=function(E,B,I,T){var e=T.postsPerRow;var c=T.slimItemsPerRow;var Y=T.gameCardsPerRow;T=T.miniGameCardsPerRow;var v;if((v=this.data)==null||!v.contents||!this.containerWidth)return!1;var y;if((y=this.data.responsiveContainerConfiguration)==null?0:y.responsiveSize){var Z=_.TLc(this.data.responsiveContainerConfiguration,this.containerWidth),P;v=_.tM(Object.assign({},Z,{standardUnitMinWidth:(P=this.data)==null?void 0:P.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&Z.isCompactList)}else v=_.tM({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(Z=this.data)==null?void 0:Z.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=v.typographyBump;P=!1;if(E||this.elementsPerRow!==v.numItems||this.postsPerRow!==e||this.slimItemsPerRow!==c||this.gameCardsPerRow!==
Y||this.miniGameCardsPerRow!==T||this.gutter!==v.gutter)P=this.elementsPerRow!==v.numItems,this.elementsPerRow=v.numItems,this.postsPerRow=e,this.slimItemsPerRow=c,this.gameCardsPerRow=Y,this.miniGameCardsPerRow=T,this.gutter=v.gutter,this.itemWidth=v.itemWidth,this.reflowContent(B),_.Dk(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":v.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(I);this.ytdReduxBehavior.dispatch(_.BP({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:v.maxContainerWidth}));return P};
_.l.refreshGridLayout=function(E,B){var I,T=(I=this.hostElement)==null?void 0:I.clientWidth;this.containerWidth=this.adjustRichGridWidth(T,!0);var e;if((e=this.data)==null||!e.contents||!this.containerWidth)return E&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.d("rg_pending_reflow_ks")&&(E=!0,this.pendingForceReflow=!1);I=this.getRichItemMinWidth(T);var c=this.isShortsPanel?146:194,Y=this.getMiniGameCardMinWidth(),v=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
T=I=this.calcElementsPerRow(I,v);(e=I<=3&&this.miniModeAllowed())&&(I=this.calcElementsPerRow(240,4));var y=this.calcMaxSlimElementsPerRow(I,v,this.isDefaultGrid);v=this.calcElementsPerRow(c,y);var Z=this.calcElementsPerRow(this.isCompactGrid?c:154,y);c=this.calcElementsPerRow(this.isCompactGrid?c:Y,y);Y=!1;if(this.sizing)return this.refreshGridLayoutNew(E,B,e,{postsPerRow:T,slimItemsPerRow:v,gameCardsPerRow:Z,miniGameCardsPerRow:c});if(E||this.elementsPerRow!==I||this.postsPerRow!==T||this.slimItemsPerRow!==
v||this.gameCardsPerRow!==Z||this.miniGameCardsPerRow!==c)Y=this.elementsPerRow!==I,this.elementsPerRow=I,this.postsPerRow=T,this.slimItemsPerRow=v,this.gameCardsPerRow=Z,this.miniGameCardsPerRow=c,this.reflowContent(B),this.updateElementsPerRow(),_.Dk(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)&&_.Dk(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(e);_.Ta(this.hostElement,"yt-rich-grid-layout-refreshed");return Y};
_.l.getRichItemMinWidth=function(E){var B=_.RI("rich_grid_min_item_width",310);if(!_.d("kevlar_disable_min_width_override")){var I,T;B=(T=(I=this.data)==null?void 0:I.minItemWidth)!=null?T:B}return B+_.$aJ(E)};
_.l.calcMaxSlimElementsPerRow=function(E,B,I){return(I===void 0?0:I)?E===1?2:E%2===0?_.d("web_shorts_2_by_3_reduce_items_per_row")&&E>=4?E/2*3-1:E/2*3:_.d("web_shorts_2_by_3_reduce_items_per_row")&&E>=3?E+1:E+2:B*2};
_.l.adjustRichGridWidth=function(E,B){var I=_.d("disable_rich_grid_guide_compensation");if(!this.isWatch&&!I){I=_.Q().resolve(_.Fx(_.M9));var T=I==null?void 0:I.guideElement;if(!(!I||I.getData()||T!=null&&T.opened||I.getMiniGuideVisible()))if(I.canFitPersistentGuide(E)&&I.getGuideExpandsAutomatically()){var e,c,Y=Number((e=window.getComputedStyle(this.hostElement))==null?void 0:(c=e.getPropertyValue("--app-drawer-width"))==null?void 0:c.replace("px",""));E-=Y||0}else if(I.canFitMiniGuide(E)){var v;
e=Number((Y=window.getComputedStyle(this.hostElement))==null?void 0:(v=Y.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:v.replace("px",""));E-=e||0}}E>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(E-=B?32:48));return E};
_.l.calcElementsPerRow=function(E,B){var I=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),T=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((I+T)/(E+T))||1,B)};
_.l.reflowContent=function(E){var B=this;if(!this.isReflowing){this.isReflowing=!0;var I,T,e=!!((I=this.data)==null?0:(T=I.contents)==null?0:T.some(function(u){return _.h(u,_.IP)}));
I=this.getItemsPerRow();var c;T=(c=this.data)==null?void 0:c.reflowOptions;E&&(_.nO("rgr_s"),_.AJ(this,function(){_.nO("rgr_nrf")}));
E={};(c=_.n(this.hostElement).querySelector("#contents"))&&(E={contentElement:c,rendererToTagNameMap:this.rendererToTagNameMap});c=(c=this.data.contents)?c.slice():[];var Y=(_.d("web_hide_gnome_behind_feed_filter_chip")||_.d("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,v=_.d("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,y=-1,Z=-1;if(this.isHomePage&&v){for(v=0;v<c.length;v++){var P=void 0,z=void 0;_.h((P=c[v])==null?void 0:
(z=P.richSectionRenderer)==null?void 0:z.content,oEH)&&(Z=v)}Z>-1&&(this.exploreHubContents=c.splice(Z,1))}if(this.isHomePage&&Y){for(Z=0;Z<c.length;Z++)z=P=void 0,(v=_.h((P=c[Z])==null?void 0:(z=P.richSectionRenderer)==null?void 0:z.content,_.d0U))&&Y&&(z=P=void 0,v=_.h((P=v)==null?void 0:(z=P.contents)==null?void 0:z[0],_.xY),P=void 0,_.h((P=v)==null?void 0:P.content,_.swt)&&(y=Z));y>-1&&(this.gnomeContents=c.splice(y,1))}var m=L52(c,I,e,T,this.getRichGridStyle(),E,this.insertedContent);e=function(){B.shownItems=
m;B.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(m),_.AJ(this,e)):e()}};
_.l.getFirstRowItems=function(E){for(var B=[],I=0;I<E.length;I++){var T=void 0,e=void 0,c=void 0,Y=void 0,v=void 0,y=void 0;if(((T=E[I])==null?void 0:(e=T.richItemRenderer)==null?void 0:e.rowIndex)===0||((c=E[I])==null?void 0:(Y=c.richGroupRenderer)==null?void 0:Y.rowIndex)===0||((v=E[I])==null?void 0:(y=v.richSectionRenderer)==null?void 0:y.rowIndex)===0)B.push(E[I]);else break}return B};
_.l.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.l.handleChipCloudChipSelectAction=function(E,B){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.d("web_hide_gnome_behind_feed_filter_chip")&&(B?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.l.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.d("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.l.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.d("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.l.terminateVideoPreview=function(){_.Ta(this.hostElement,"yt-terminate-video-preview-action")};
_.l.updateRichItemGridPositions=function(){var E={gridData:{gridColumnCount:this.elementsPerRow}},B;if((B=this.data)==null?0:B.trackingParams)this.loggingRefactor?_.lu().stateChanged(this.data.trackingParams,E):(B=_.nC())&&_.UK(B,_.Yg(this.data.trackingParams),E);_.Ta(this.hostElement,"ytd-rich-item-index-update-action")};
_.l.miniModeAllowed=function(){return _.d("disable_channels_mini_mode")?!1:this.isChannelPage};
_.l.getMiniGameCardMinWidth=function(){return 154};
_.l.updateMiniMode=function(E){this.miniMode=this.miniModeAllowed()&&E;this.ytdReduxBehavior.dispatch(_.BP({type:"SET_RICH_GRID_MINI_MODE",payload:E}))};
_.l.isCurrentPage=function(){return location.pathname===this.pagePath};
_.l.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var E=_.Q().resolve(_.oS).getCurrentPage();E&&E.setScrollTop(0)}};
_.l.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.l.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.l.maybeSetBigYoodle=function(){var E,B=(E=this.data)==null?void 0:E.bigYoodle;this.bigYoodleData!==B&&(this.bigYoodleData=B)};
_.l.setMasthead=function(){var E;((E=this.data)==null?0:E.masthead)?this.mastheadData=this.data.masthead:_.d("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.l.getRichGridStyle=function(){var E,B;return(B=(E=this.data)==null?void 0:E.style)!=null?B:"RICH_GRID_STYLE_UNKNOWN"};
_.l.onIsShortsGridChange=function(){var E=this.ytdReduxBehavior,B=E.dispatch,I=this.getRichGridStyle();B.call(E,_.BP({type:"SET_RICH_GRID_STYLE",payload:I}))};
_.Up.Object.defineProperties(wO.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var E;return(((E=this.data)==null?void 0:E.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var E;return(((E=this.data)==null?void 0:E.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var E=_.Q().resolve(_.oS).getCurrentPage(),B,I,T;return(((B=this.data)==null?void 0:B.targetId)==="browse-feedFEsfv_audio_pivot"||_.d("web_enable_channel_pivot_panel")&&((I=this.data)==null?void 0:I.targetId)==="browse-feedFEsfv_channel_pivot"||_.d("web_enable_effect_pivot_panel")&&((T=this.data)==null?void 0:T.targetId)==="browse-feedFEsfv_effect_pivot")&&(E==null?void 0:E.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.d("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 E;return!((E=this.data)==null?0:E.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var E;return((E=_.Q().resolve(_.oS).getCurrentPage())==null?void 0:E.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var E;return((E=_.Q().resolve(_.oS).getCurrentPage())==null?void 0:E.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var E;return this.hideChipsBar||(((E=this.data)==null?void 0:E.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.d("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var E;return(((E=this.data)==null?void 0:E.targetId)||"")==="watch-next-feed"&&!_.d("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return((E=this.data)==null?0:E.enableContentSpecificAspectRatio)||((B=this.data)==null?0:(I=B.responsiveContainerConfiguration)==null?0:I.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.RI("web_continuation_handler_margin",0):0}}});
wO.prototype.onIsShortsGridChange=wO.prototype.onIsShortsGridChange;wO.prototype.onReloadContinuationFinish=wO.prototype.onReloadContinuationFinish;wO.prototype.reflowContent=wO.prototype.reflowContent;wO.prototype.handleRerenderDownloadsData=wO.prototype.handleRerenderDownloadsData;wO.prototype.onRichShelfRendererCollapse=wO.prototype.onRichShelfRendererCollapse;wO.prototype.onRequestElementsPerRow=wO.prototype.onRequestElementsPerRow;wO.prototype.contentLengthChanged=wO.prototype.contentLengthChanged;
wO.prototype.dataChanged=wO.prototype.dataChanged;wO.prototype.onSizingChange=wO.prototype.onSizingChange;wO.prototype.onUseCompactListChange=wO.prototype.onUseCompactListChange;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],wO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.OI),_.t("design:type",Object)],wO.prototype,"ironResizableBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],wO.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.xo),_.t("design:type",Object)],wO.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],wO.prototype,"componentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],wO.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],wO.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Boolean)],wO.prototype,"miniMode",void 0);_.k([_.X({value:[]}),_.t("design:type",Array)],wO.prototype,"shownItems",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],wO.prototype,"isReflowing",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],wO.prototype,"isFilteredFeed",void 0);_.k([_.X({selector:_.zkd}),_.t("design:type",Boolean)],wO.prototype,"guideIsExpanded",void 0);
_.k([_.X({selectorArgs:["entitySelectorType"],selector:function(E,B){if(_.d("kevlar_modern_downloads_page")&&B&&B!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(B){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var I=E.entities;B=_.s3(I);var T=_.um(I),e=_.WJQ(E),c=_.JB4(E);E=_.XW6(E);var Y=_.YSf(I),v=_.PP(B);I=_.L9(I);return _.D5d(B,T,Y,e,c,v,I,E);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return B=_.s3(E.entities),_.RcD(B);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return B=
_.l_G(E.entities),_.E16(B);default:_.OG(new _.P7("Error: entitySelectorType defined but not matched in selector.",E,B))}}}),
_.t("design:type",Object)],wO.prototype,"entityDrivenRichGridData",void 0);_.k([_.X(),_.t("design:type",Object)],wO.prototype,"resizeOnObserverInit",void 0);_.k([_.X(),_.t("design:type",Object)],wO.prototype,"bigYoodleData",void 0);_.k([_.X(),_.t("design:type",Object)],wO.prototype,"mastheadData",void 0);_.k([_.X(),_.t("design:type",Boolean)],wO.prototype,"isInlinePreviewDisabled",void 0);_.k([_.X(),_.t("design:type",Object)],wO.prototype,"disableStickyFilterBar",void 0);
_.k([_.X(),_.t("design:type",Object)],wO.prototype,"transparentBackgroundChipsBar",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wO.prototype,"hideChipsBar",void 0);_.k([_.X(),_.t("design:type",Object)],wO.prototype,"isWatchDefaultLayout",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wO.prototype,"continuationShowButton",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wO.prototype,"rowReducedHorizontalMargin",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wO.prototype,"useCompactList",void 0);_.k([_.X({selector:function(E){return _.um(E.entities).length>0}}),
_.t("design:type",Object)],wO.prototype,"manualDownloadsPresent",void 0);_.k([_.X({selector:function(E){return _.s3(E.entities).length>0}}),
_.t("design:type",Object)],wO.prototype,"smartDownloadsPresent",void 0);_.k([_.X({selector:_.JB4}),_.t("design:type",Object)],wO.prototype,"shouldRenderDownloadsBanner",void 0);_.k([_.X({selector:_.WJQ}),_.t("design:type",Object)],wO.prototype,"hasOptedIntoSmartDownloads",void 0);_.k([_.EM("useCompactList"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wO.prototype,"onUseCompactListChange",null);
_.k([_.EM("sizing","typographyBump"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wO.prototype,"onSizingChange",null);_.k([_.X({selector:_.spd}),_.t("design:type",Number)],wO.prototype,"miniplayerPlaybackState",void 0);_.k([_.X({selector:_.O3}),_.t("design:type",Boolean)],wO.prototype,"miniplayerIsActive",void 0);
_.k([_.X({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.t("design:type",Boolean)],wO.prototype,"isInlinePreviewEnabled",void 0);_.k([_.X({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.t("design:type",String)],wO.prototype,"sizing",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wO.prototype,"elementsPerRow",void 0);
_.k([_.X(),_.t("design:type",Object)],wO.prototype,"typographyBump",void 0);_.k([_.X(),_.t("design:type",Number)],wO.prototype,"itemWidth",void 0);_.k([_.$7("#header"),_.t("design:type",HTMLElement)],wO.prototype,"headerElement",void 0);_.k([_.$7("#contents"),_.t("design:type",HTMLElement)],wO.prototype,"contentsElement",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wO.prototype,"dataChanged",null);
_.k([_.i6("data.contents.length"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wO.prototype,"contentLengthChanged",null);_.k([_.RN("yt-request-elements-per-row"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wO.prototype,"onRequestElementsPerRow",null);
_.k([_.RN("yt-rich-shelf-renderer-collapse"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],wO.prototype,"onRichShelfRendererCollapse",null);_.k([_.i6("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wO.prototype,"handleRerenderDownloadsData",null);
_.k([_.S("data"),_.t("design:type",String),_.t("design:paramtypes",[])],wO.prototype,"entitySelectorType",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.targetId"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"isSub",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.targetId"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"isWatch",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data.targetId"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"isShortsPanel",null);_.k([_.X({reflectToAttribute:!0}),_.S("isWatch"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"reducedTopMargin",null);_.k([_.X({reflectToAttribute:!0}),_.S("data","isWatch","isWatchDefaultLayout"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"noTopMargin",null);
_.k([_.X({reflectToAttribute:!0}),_.S("isInlinePreviewEnabled","shownItems"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"topRowEndorsement",null);_.k([_.S("data.header"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"hideHeader",null);_.k([_.RN("yt-rich-grid-reflow"),_.t("design:type",Function),_.t("design:paramtypes",[Boolean]),_.t("design:returntype")],wO.prototype,"reflowContent",null);
_.k([_.RN("yt-reload-continuation-finish"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wO.prototype,"onReloadContinuationFinish",null);_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"isSlimGrid",null);_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"isShortsGrid",null);
_.k([_.S("data","isSlimGrid","isShortsGrid"),_.X(),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"noRichItemGutterMargins",null);_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"isShortsGridSlim",null);_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"isCompactGrid",null);
_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"isDefaultGrid",null);_.k([_.S("data.targetId"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"hideChipsBarOnHome",null);_.k([_.S("data.targetId"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"hideChipsBarOnWatch",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wO.prototype,"onIsShortsGridChange",null);_.k([_.S("data.enableContentSpecificAspectRatio"),_.X(),_.t("design:type",Boolean),_.t("design:paramtypes",[])],wO.prototype,"force16By9ThumbnailAspectRatio",null);_.k([_.S("data"),_.t("design:type",Number),_.t("design:paramtypes",[])],wO.prototype,"continuationTriggerOffset",null);wO=_.k([_.b({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],wO);
_.A(wO,"ytd-rich-grid-renderer",function(){if($jm!==void 0)return $jm;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return $jm=E},{mode:2});var C49=_.rp(function(E){var B=E.thumbsUp;E=E.thumbsDown;var I=_.p(_.lQ(!1,void 0,"OxPsH")),T=I.next().value,e=I.next().value;I=_.p(_.lQ(!1,void 0,"V5vWne"));var c=I.next().value,Y=I.next().value;return _.w("div",{class:"ytwThumbsUpDownThumbs"},_.w(_.Le,{data:B,onToggle:function(v){e(v);c()&&Y(!1)},
buttonShapeOverrides:function(){return{toggled:T()}}}),_.w(_.Le,{data:E,
onToggle:function(v){Y(v);T()&&e(!1)},
buttonShapeOverrides:function(){return{toggled:c()}}}))},"ci");
C49.idomCompat=!0;var ZPd=_.rp(function(E){var B=function(){return E.data().pendingStateEntityKey||""},I=_.iO(_.J7I,B),T=function(){var e;
if(!(e=E.disabled())){var c;e=!((c=I())==null||!c.isPendingResponse)}return e};
return _.w("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.w(_.Zt,{each:function(){return E.data().chipData||[]},
keyBy:"REFERENCE"},function(e){return _.w(w07,{data:e,disabled:T,pendingStateKey:B,onError:E.onError})}))},"di"),w07=_.rp(function(E){var B=_.oH(),I=_.p(_.lQ(!0,void 0,"HBREAe")),T=I.next().value,e=I.next().value,c=function(){return E.data().text.content},Y=_.TI(function(v){var y,Z,P,z,m,u,x,M;
return _.a(function(N){switch(N.nextAddress){case 1:v.stopPropagation();if(E.disabled())return N.return();Z=String(Math.floor(((y=_.BE())==null?void 0:y.getCurrentTime())||0)*1E3);P="youchat-"+Date.now();z=function(){_.se(E.data().onClick||{});var W={continuationCommand:{token:E.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},U={inputComposerFormData:{clientMessageId:P,playerOffsetMs:Z}};return new Promise(function(q,f){_.se(W,{form:{formData:U},commandController:{onSuccess:function(ed,
K){q(K)},
onServerError:function(ed,K){f(K.error)}}})})};
m=_.W51(E.pendingStateKey());m(!0);_.Qc7("#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");e(!1);_.q7(N,2);return _.C(N,z(),4);case 4:_.W7(N,3);break;case 2:u=_.RG(N),(M=(x=E).onError)==null||M.call(x,u);case 3:m(!1),_.ER(N)}})});
return _.w(_.wU,{cond:T,then:function(){return _.w("div",{class:"ytwYouChatChipsDataChipWrapper"},_.w("button",{el:B,class:"ytwYouChatChipsDataChip","data-disabled":E.disabled,"on:click":Y,tabindex:0},c))}})},"ei");var P4O=_.rp(function(E){var B=E.data;return _.w("yt-conversation-resource-view-model",{class:_.RQ("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.w(_.wU,{cond:function(){var I;return(I=B().conversationResourceData)==null?void 0:I.learningGuideData},
then:function(I){return _.w(_.Zt,{each:function(){return I().sectionData||[]}},function(T){return _.w("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.w(_.aS,{text:function(){return T.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.w("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.w(_.aS,{text:function(){return T.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.w(_.aS,{text:function(){return T.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"fi");
P4O.idomCompat=!0;var zW1=_.rp(function(E){var B=function(){var W;return(W=E.data().text)==null?void 0:W.content},I=function(){var W,U;
return(W=E.data().webData)==null?void 0:(U=W.textResult)==null?void 0:U.content},T=_.Q().resolve(_.NE),e=_.$4(),c=function(){return E.data().chatResponseStyle},Y=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:E.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},v=function(){var W;
return E.data().webData||((W=E.data().text)==null?void 0:W.content)||E.data().videoResultsData||E.data().conversationResourceViewModel},y=function(){var W;
return(W=E.data().videoResultsData)==null?void 0:W.videoShelf},Z=function(){var W;
return _.h(((W=E.data().videoResultsData)==null?void 0:W.videoShelf)||{},ULI)},P=function(){var W;
return(W=E.data().webData)==null?void 0:W.sourcesShelf},z=function(){var W;
return _.h(((W=E.data().webData)==null?void 0:W.sourcesShelf)||{},ULI)},m=function(){return _.h(E.data().conversationResourceViewModel||{},tBs)},u=function(){return c()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||c()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:E.data().thumbsDownViewModel&&E.data().thumbsUpViewModel},x=function(){return _.h(E.data().thumbsUpViewModel,_.uO)},M=function(){return _.h(E.data().thumbsDownViewModel,_.uO)};
_.hA(function(){requestAnimationFrame(function(){var W;(W=E.shouldAnimateIcon)!=null&&W.call(E)&&XJH(e.lottieEl)})});
var N={};return _.w("you-chat-item-view-model",{class:_.RQ("ytwYouChatItemViewModelYouChatItemViewModel",(N.ytwYouChatItemViewModelHostNoPadding=function(){return!1},N)),
"data-target-id":function(){return E.data().id||""}},_.w(_.wU,{cond:v,
then:function(){var W={};return _.w("div",{"aria-hidden":"true"},_.w(_.E1,{className:_.RQ("ytwYouChatItemViewModelIcon",(W.ytwYouChatItemViewModelRtl=T==="rtl",W.ytwYouChatItemViewModelHidden=function(){return!(E.data().hideIcon||c()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||c()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:v())},W)),
animationName:"YOUCHAT_ICON",data:Y,animationRef:e}))}}),_.w(_.wU,{cond:v,
then:function(){var W={};return _.w("div",{class:_.RQ("ytwYouChatItemViewModelHost",(W.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return c()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},W.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return c()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},W.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return c()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},W)),
role:"alert"},_.w(_.wU,{cond:B,then:function(U){return _.w(_.d$,{text:U})}}),_.w(_.wU,{cond:I,
then:function(U){return _.w(_.d$,{text:U})}}),_.w(_.wU,{cond:y,
then:function(){return _.w("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.w(_.mw,{data:Z,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.w(_.wU,{cond:P,
then:function(){return _.w("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.w(_.mw,{data:z,hasPeek:!0,disableArrows:!1}))}}),_.w(_.wU,{cond:m,
then:function(){return _.w(P4O,{data:m})}}),_.w(_.wU,{cond:u,
then:function(){return _.w(C49,{thumbsUp:x,thumbsDown:M})}}))}}),_.w(_.wU,{cond:function(){return E.data().chipsData},
then:function(W){return _.w(ZPd,{data:W,disabled:E.pending,onError:E.onError})}}))},"gi");
zW1.idomCompat={callbacks:{onError:!0,onSend:!0}};var mjT=_.rp(function(E){var B=function(){return E.data().choiceSelectedText};
return _.w("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.w(_.wU,{cond:B,then:function(){return _.w("div",{class:"ytYouChatUserTurnChoiceSelected"},_.w(_.aS,{text:B}))}}),_.w("div",{class:"ytYouChatUserTurnUserMessage"},function(){return E.data().text}))},"hi");var QoO=_.rp(function(E){var B=_.p((0,_.YEh)(E.data)).next().value;return _.w("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return E.data().targetId||""}},_.w(_.hM,{data:function(){return B().contents}},{accordionViewModel:_.Oy6,
chatLoadingViewModel:_.jk8,chatUserTurnViewModel:mjT,learningJourneyLoaderViewModel:_.uUt,lockupViewModel:_.tF,youChatItemViewModel:function(I){return _.w(zW1,{data:I.data,pending:!1})}}))},"ii");_.oQ(_.rp(function(E){var B=_.p((0,_.YEh)(E.data)).next().value;return _.w("yt-section-list-renderer",{class:_.RQ("ytSectionListRendererHost",E.className),"data-target-id":function(){return E.data().targetId||""}},_.w(_.hM,{data:function(){return B().contents}},{itemSectionRenderer:QoO}))},"ji"),"yt-section-list-renderer",{props:{data:_.Jh,
className:_.bu}});var djs;var hW7;var ZI=function(){return _.r.apply(this,arguments)||this};
_.L(ZI,_.r);_.k([_.X(),_.t("design:type",Object)],ZI.prototype,"data",void 0);ZI=_.k([_.QE({is:"yt-alert-renderer",disableElementRegistration:!0})],ZI);
_.A(ZI,"yt-alert-renderer",function(){if(hW7===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;djs===void 0&&(djs=document.createElement("template"));var T=djs;I.call(B,T.content.cloneNode(!0),E.content.firstChild);hW7=E}E=hW7;return E},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Qd2=function(E,B){var I,T;B=B===void 0?{}:B;var e,c,Y,v,y,Z,P,z,m,u,x,M;return _.a(function(N){switch(N.nextAddress){case 1:e=B;c=e.shouldWrap===void 0?!0:e.shouldWrap;Y=e.skipTransitionTimeoutMs===void 0?300:e.skipTransitionTimeoutMs;v=e.beforeTransition;y=e.afterTransition;if(!c||!document.startViewTransition||document.visibilityState==="hidden")return N.return(E());I=window.innerWidth;T=window.innerHeight;Z=!1;(P=v)==null||P();_.q7(N,2);z=document.startViewTransition(E);m=setTimeout(function(){z.skipTransition();
Z=!0},Y);
return _.C(N,z.ready,4);case 4:return clearTimeout(m),_.C(N,z.finished,5);case 5:clearTimeout(m);(u=y)==null||u();_.W7(N,0);break;case 2:x=_.RG(N),(M=y)==null||M(),x&&!Z&&document.visibilityState!=="hidden"&&I===window.innerWidth&&T===window.innerHeight&&_.xV(x),_.ER(N)}})};
_.Ze=function(E){return E.watch.isTheaterMode};
_.dhm=function(E){var B=_.li("DIV");E&&(B.className=E);B.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";E=_.li("DIV");_.bTZ(E,"200px","200px");B.appendChild(E);document.body.appendChild(B);E=B.offsetWidth-B.clientWidth;_.ii(B);return E};
_.PJ=function(){for(var E=Array(36),B=0,I,T=0;T<36;T++)T==8||T==13||T==18||T==23?E[T]="-":T==14?E[T]="4":(B<=2&&(B=33554432+Math.random()*16777216|0),I=B&15,B>>=4,E[T]=_.X$l[T==19?I&3|8:I]);return E.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 h9I=_.km(['<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>']),
sdH=_.LrX(h9I);sdH.setAttribute("style","display: none;");document.head.appendChild(sdH.content);_.zo=_.mDF(_.dhm);var uWs;var LXs;var m5=function(){var E=_.r.apply(this,arguments)||this;E.icon=null;return E};
_.L(m5,_.r);m5.prototype.dismiss=function(){_.$O(this.hostElement,"yt-live-chat-error-message-dismiss")};
m5.prototype.computeIcon=function(E){return E&&E.iconType?"yt-icons:"+E.iconType.toLowerCase():"yt-icons:close"};
_.k([_.X(),_.t("design:type",Object)],m5.prototype,"data",void 0);_.k([_.X({computed:"computeIcon(data.icon)"}),_.t("design:type",Object)],m5.prototype,"icon",void 0);m5=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],m5);
_.A(m5,"yt-live-chat-error-message-renderer",function(){if(LXs===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;uWs===void 0&&(uWs=document.createElement("template"));var T=uWs;I.call(B,T.content.cloneNode(!0),E.content.firstChild);LXs=E}E=LXs;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var OAd,nXg,ML7,HAT,hW,XX8,rtt,bAg,oX8,AtO,Ln,jXg,U5m,xc,k$7,tLL,f68,VLO,q2g,FLt,D5t,KLm,RcH,E1d,BLm,$FI,Ing,TL9,evT,lnT,cjL,iQI,paO,GQ,YBI,anI,v12,wa2,ZQT,PR7,zvI,mFs,Qs2,yjd,CRH,hvs,ssg,uom,LZ7,xFL,dFd,n1m;OAd=function(E,B){return _.cP(E.entities,"timedMarkersListSyncEntity",B)};
nXg=function(E,B){return _.cP(E.entities,"liveReactionsDataEntity",B)};
ML7=function(E,B){E=_.cP(E.entities,"booleanEntity",B);return!(!E||!E.value)};
HAT=function(E,B){var I=_.nC();I&&E&&_.XD(I,_.Yg(E),B)};
_.Na7=function(){_.d("web_watch_log_theater_mode")&&_.hWf("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.gXt=function(E,B,I){if(!E.includes("START_TIME_PLACEHOLDER")||!E.includes("END_TIME_PLACEHOLDER"))return E;var T=new Date(0),e=new Date(0);T.setUTCMilliseconds(B);e.setUTCMilliseconds(I);return E.replace("START_TIME_PLACEHOLDER",_.rK(T,7)).replace("END_TIME_PLACEHOLDER",_.rK(e,7))};
hW=function(E){return E.watch.isWatchActive};
_.sD=function(E){return E!=null&&E.watch?E.watch.isWatchFullscreen:!1};
_.S27=function(E){return E.watch.watchWindowSize};
_.Jtd=function(E){return _.Ze(E)||_.sD(E)||_.GdG(E)};
_.WLs=function(E){return!_.Jtd(E)};
_.ue=function(E){return E.watch.watchScrollTop};
XX8=function(E){return E.watch.isLiveChatCollapsed};
rtt=function(E){return E.watch.openEngagementPanels};
bAg=function(E,B){return _.cP(E.entities,"booleanEntity",B)};
oX8=function(){return function(E){_.Jd(_.aL("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:E}))}};
AtO=function(E){switch(E){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}};
Ln=function(E,B,I){var T=_.ha(I);E&&B&&T&&E.getPlayerPromise().then(function(e){_.Sbi(T)&&_.Li();(new _.iY(e)).executeCommand(T,B);_.d("continue_playback_on_desktop_companion_click")||e.pauseVideo()})};
jXg=function(E){var B=_.jx(),I;if(I=_.WA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var T;I=(T=I())==null?void 0:T.layoutId}else I=null;Ln(B,I,E)};
U5m=function(E){var B=_.jx(),I;if(I=_.WA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var T;I=(T=I())==null?void 0:T.layoutId}else I=null;Ln(B,I,E)};
xc=function(E,B){var I=E<0?"-":"";E=Math.abs(E);var T=Math.floor(E/3600),e=Math.floor(E)%3600,c=Math.floor(e/60);e=Math.floor(e)%60;var Y="";(B===void 0?0:B)&&(Y="."+Math.round((E-Math.floor(E))*10));return T>0?I+T+":"+(c<10?"0"+c:""+c)+":"+(e<10?"0"+e:""+e)+Y:I+c+":"+(e<10?"0"+e:""+e)+Y};
k$7=function(E){var B=E.match(/[^0-9:\.]/g);if(B&&B.length>0)return null;E=E.split(":");if(E.length===0||E.length>3)return null;B=1;for(var I=0;E.length>0;){var T=E.pop();if(T===void 0)break;var e=Number(T);if(T===""||isNaN(e))return null;I+=e*B;B*=60}return I};
tLL=function(E,B,I,T){E=Math.max(I,E);B=Math.min(B,T-I);E+B>T?(I=T,E=I-B):I=E+B;return{start:E,end:I}};
f68=function(E,B,I,T,e,c){E<I?E=I:E+e>T&&(E=T-e);B>T&&(B=T);B=Math.min(E+c,Math.max(E+e,B));return{start:E,end:B}};
VLO=function(E,B,I,T,e,c){B>T?B=T:B-e<I&&(B=I+e);E<I&&(E=I);E=Math.min(B-e,Math.max(B-c,E));return{start:E,end:B}};
q2g=function(E){return _.d("web_transcript_cue_id_killswitch")?String(E):"ytd-transcript-renderer_"+E};
FLt=function(E){return _.d("web_transcript_cue_id_killswitch")?!0:E.startsWith("ytd-transcript-renderer")};
D5t=function(E){var B=_.jx(),I;if(I=_.WA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var T;I=(T=I())==null?void 0:T.layoutId}else I=null;Ln(B,I,E)};
KLm=function(E){E.style.height="auto";E.style.height=Math.min(E.scrollHeight||20,80)+"px"};
RcH=function(E,B){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:B}}],insertByPositionInSection:{sectionTargetId:E,position:"INSERTION_POSITION_LAST"}}}]}}}};
E1d=function(E){var B=_.jx(),I;I=(I=_.WA("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;Ln(B,I,E)};
BLm=function(E){var B=_.jx(),I;I=(I=_.WA("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;Ln(B,I,E)};
$FI=function(E,B){B=B===void 0?!1:B;if(E.simpleText)E=[{text:E.simpleText}];else{var I;E=((I=E.runs)!=null?I:[]).map(function(T){return Object.assign({},T)})}if(B)for(B=_.p(E),I=B.next();!I.done;I=B.next())I.value.bold=!0;
return E};
Ing=function(E){var B=E.startEndTimeTemplate,I=E.startTimeUtcMillis;E=E.endTimeUtcMillis;if(B&&I&&E)return _.jj(_.gXt(_.U3(B),Number(I),Number(E)))};
TL9=function(E,B){var I,T,e=E==null?void 0:(I=E.viewCount)==null?void 0:(T=I.videoViewCountRenderer)==null?void 0:T.shortViewCount;if(!B&&e)return e;var c,Y;return E==null?void 0:(c=E.viewCount)==null?void 0:(Y=c.videoViewCountRenderer)==null?void 0:Y.viewCount};
evT=function(E,B){var I=E==null?void 0:E.relativeDateText;return!B&&I?[I,!0]:[E==null?void 0:E.dateText,!1]};
lnT=function(E,B,I,T,e){T=T===void 0?!0:T;e=e===void 0?"":e;var c=TL9(E,B),Y=_.p(evT(E,B)),v=Y.next().value;Y=Y.next().value;B=B?E==null?void 0:E.sponsorsOnlyFirstTimeLongText:E==null?void 0:E.sponsorsOnlyFirstTimeShortText;var y=[];I&&c&&y.push(c);!I&&Y||!v||y.push(v);E=[].concat(_.ad(y),[B,E==null?void 0:E.stationName,E==null?void 0:E.rating,E?Ing(E):void 0,E==null?void 0:E.upNextProgramText,E==null?void 0:E.superTitleLink]).filter(function(Z){return!!Z});
I={runs:[]};for(c=0;c<E.length;c++)I.runs.push.apply(I.runs,_.ad($FI(E[c],T))),c<E.length-1&&I.runs.push({text:" "+e+" ",bold:T});return I};
cjL=function(E){if(E)return{runs:[{text:E,bold:!0}]}};
iQI=function(E){var B,I,T,e;if(E=E==null?void 0:(B=E.contents)==null?void 0:(I=B.twoColumnWatchNextResults)==null?void 0:(T=I.results)==null?void 0:(e=T.results)==null?void 0:e.contents){var c,Y;return(Y=(c=E.find(function(v){return!!v.videoPrimaryInfoRenderer}))==null?void 0:c.videoPrimaryInfoRenderer)==null?void 0:Y.updatedMetadataEndpoint}};
paO=function(E,B){var I;return(I=E.sourceConfigs)==null?void 0:I.find(function(T){return T.videoId===B})};
GQ=function(E){return E==="End of video"||E==="End of playlist"};
YBI=function(E){var B,I,T,e;return(B=E.getWatchNextResponse())==null?void 0:(I=B.contents)==null?void 0:(T=I.twoColumnWatchNextResults)==null?void 0:(e=T.playlist)==null?void 0:e.playlist};
anI=function(E){var B,I,T,e,c,Y;return(B=YBI(E))==null?void 0:(I=B.playlistButtons)==null?void 0:(T=I.menuRenderer)==null?void 0:(e=T.topLevelButtons)==null?void 0:(c=e[0])==null?void 0:(Y=c.playlistLoopButtonRenderer)==null?void 0:Y.playlistLoopStateEntityKey};
v12=function(E){var B=_.Q().resolve(_.Hx),I;return(B=(I=_.h(B.getAutoplayEndpoint(),_.kh))==null?void 0:I.playlistId)&&B===E};
wa2=function(E,B,I,T,e){function c(){_.Ll.cancelJob(OD);var Y=yjd(B,I/E.getPlaybackRate()),v=Y.hours,y=Y.minutes;Y=(Y.seconds*1E3||6E4)/E.getPlaybackRate();E.setVideoTimeLeft(CRH(v,y));T&&E.getPlayerState()!==0&&E.setSleepTimerTimeLeft(CRH(v,y,!0));(v>0||y>0)&&!e&&(OD=_.wT(_.Ll,c,Y))}
_.Ll.cancelJob(OD);OD=_.wT(_.Ll,c)};
ZQT=function(E,B,I){function T(){_.Ll.cancelJob(nn);var e=yjd(B,I),c=e.hours;e=e.minutes;var Y=6E4/E.getPlaybackRate();if(c>0||e>0)E.setSleepTimerTimeLeft(CRH(c,e,!0)),nn=_.wT(_.Ll,T,Y)}
_.Ll.cancelJob(nn);nn=_.wT(_.Ll,T)};
PR7=function(E,B){var I=E.getVolume()/(B/500),T=function(e){_.Ll.cancelJob(Mx);var c=Math.floor(e-I);E.setVolume(c,!1);c>0&&(Mx=_.wT(_.Ll,function(){T(c)},500))};
_.Ll.cancelJob(Mx);Mx=_.wT(_.Ll,function(){T(E.getVolume())})};
zvI=function(E,B){_.Ll.cancelJob(Mx);B&&E.syncVolume()};
mFs=function(){var E={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.yu("SLEEP_TIMER_DISRUPTED")}}}}};_.Q().resolve(_.Dt).resolveCommand(E)};
Qs2=function(E){return(E.getDuration()-E.getProgressState().current)*1E3};
yjd=function(E,B){E=E+B-(0,_.VZ)();if(E<=0)return{hours:0,minutes:0,seconds:0};var I=new dFd(0,0,0,0,0,0,E);E=I.getHours();B=I.getMinutes();I=I.getSeconds();I!==0&&B++;B!==0&&B%60===0&&(E++,B=0);return{hours:E,minutes:B,seconds:I}};
CRH=function(E,B,I){return E>0&&B>0?I?_.yu("TIME_LEFT_HOURS_MINUTES",{hours:E.toString(),minutes:B.toString()}):_.yu("TIME_HOURS_MINUTES",{hours:E.toString(),minutes:B.toString()}):E>0?I?_.CO("TIME_LEFT_HOURS",E):_.CO("TIME_HOURS",E):I?_.yu("TIME_LEFT_MINUTES",{minutes:B.toString()}):_.yu("TIME_MINUTES",{minutes:B.toString()})};
hvs=function(E,B){if(E.timelyActions)return E.timelyActions.find(function(I){var T;return((T=_.h(I,Hq))==null?void 0:T.cueRangeId)===B})};
ssg=function(E){var B=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.lI(E);E.keyMap_.forEach(function(I,T){_.AD(B,T)||this.remove(T)},E)};
uom=function(E,B){E.reloadContinuationItemsCommandMatcher=B};
_.Nx=function(E,B){E.insertBefore(B,E.childNodes[0]||null)};
LZ7=function(E){if(E>=48&&E<=57||E>=96&&E<=106||E>=65&&E<=90||_.pa&&E==0)return!0;switch(E){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 _.iq;default:return!1}};
xFL=function(E){if(E.altKey&&!E.ctrlKey||E.metaKey||E.keyCode>=112&&E.keyCode<=123)return!1;if(LZ7(E.keyCode))return!0;switch(E.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!_.iq;default:return E.keyCode<166||E.keyCode>183}};
dFd=function(E,B,I,T,e,c,Y){this.date=typeof E==="number"?new Date(E,B||0,I||1,T||0,e||0,c||0,Y||0):new Date(E&&E.getTime?E.getTime():_.Bf())};
_.$U(dFd,_.QO);_.l=dFd.prototype;_.l.getHours=function(){return this.date.getHours()};
_.l.getMinutes=function(){return this.date.getMinutes()};
_.l.getSeconds=function(){return this.date.getSeconds()};
_.l.getMilliseconds=function(){return this.date.getMilliseconds()};
_.l.getUTCDay=function(){return this.date.getUTCDay()};
_.l.getUTCHours=function(){return this.date.getUTCHours()};
_.l.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.l.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.l.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.l.setHours=function(E){this.date.setHours(E)};
_.l.setMinutes=function(E){this.date.setMinutes(E)};
_.l.setSeconds=function(E){this.date.setSeconds(E)};
_.l.setMilliseconds=function(E){this.date.setMilliseconds(E)};
_.l.setUTCHours=function(E){this.date.setUTCHours(E)};
_.l.setUTCMinutes=function(E){this.date.setUTCMinutes(E)};
_.l.setUTCSeconds=function(E){this.date.setUTCSeconds(E)};
_.l.setUTCMilliseconds=function(E){this.date.setUTCMilliseconds(E)};
_.l.add=function(E){_.QO.prototype.add.call(this,E);E.hours&&this.setUTCHours(this.date.getUTCHours()+E.hours);E.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+E.minutes);E.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+E.seconds)};
_.l.JSC$9123_toIsoString=function(E){var B=_.QO.prototype.JSC$9123_toIsoString.call(this,E);return E?B+"T"+_.Es(this.getHours(),2)+":"+_.Es(this.getMinutes(),2)+":"+_.Es(this.getSeconds(),2):B+"T"+_.Es(this.getHours(),2)+_.Es(this.getMinutes(),2)+_.Es(this.getSeconds(),2)};
_.l.equals=function(E){return this.getTime()==E.getTime()};
_.l.toString=function(){return this.JSC$9123_toIsoString()};
_.l.clone=function(){var E=new dFd(this.date);E.firstDayOfWeek_=this.firstDayOfWeek_;E.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return E};
_.GZL=function(E){return _.BP({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:E}})};
_.OQg=function(E){return _.BP({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:E}})};
n1m=new _.F("imageTileRenderer");var Mbt=new _.F("adGridCardCollectionViewModel");var HQ9=new _.F("carouselTitleViewModel");var NLT=new _.F("ctaCarouselItemViewModel");var g11=new _.F("textFieldViewModel");_.SBI=new _.F("engagementPanelHeaderShowNavigationButtonCommand");var JjI=new _.F("hideEngagementPanelScrimAction");var WZO=new _.F("setActivePanelItemAction");var Xa2=new _.F("showEngagementPanelScrimAction");var rjd=new _.F("updateEngagementPanelAction");var bQI=new _.F("updateSearchInVideoResultsAction");var o1d=new _.F("transcriptCueGroupRenderer");var AjO=new _.F("transcriptCueRenderer");var jsm=new _.F("transcriptFooterRenderer");var UF8=new _.F("engagementPanelAdSubtitleRenderer");var kZd=new _.F("videoDescriptionFantasySectionViewModel");var tbm=new _.F("deleteClipEngagementPanelCommand");var fnd=new _.F("loopCommand");var Vb8=new _.F("changeCreatorEndscreenVisibilityCommand");var qBH=new _.F("liveChatCallForQuestionsRenderer");var FZ1=new _.F("updateTimedMarkersSyncObserverCommand");var Hq=new _.F("timelyActionViewModel");var DFL=new _.F("timelyActionsOverlayViewModel");var KZ9=new _.F("repeatChapterCommand");var Rvm=new _.F("watchPlayerOverflowMenuCommand");var EKg=new _.F("compositeVideoOverlayRenderer");var Bqs=new _.F("sortFilterSubMenuRenderer");var $wd=new _.F("switchListItemViewModel");var Ih2=new _.F("inputComposerViewModel");var Tqm=new _.F("transcriptEditSegmentCommand");var eq1=new _.F("transcriptUpdateSegmentTextCommand");var lhs=new _.F("transcriptSearchBoxRenderer");var c38=new _.F("transcriptSegmentListRenderer");var iw2=new _.F("transcriptSegmentRenderer");_.pQd=new _.F("updateDateTextAction");var YPO=new _.F("updateTitleAction");var ahI=new _.F("updateViewershipAction");var vK7=new _.F("carouselLockupRenderer");var y3s=new _.F("expandableVideoDescriptionBodyRenderer");var C21=new _.F("videoDescriptionYouchatSectionViewModel");_.gD=_.RI("kevlar_watch_page_horizontal_margin",24);_.wQs=_.RI("kevlar_watch_page_columns_top_padding",24);_.Zw7=426+_.gD*2;_.Sq=_.RI("kevlar_watch_two_column_width_threshold",1E3);_.JW=_.gD*2;_.Wq=_.RI("kevlar_watch_secondary_width",402);_.P2T=_.RI("kevlar_watch_secondary_max_width",600);_.zq9=_.RI("kevlar_watch_max_player_width",1280);_.mws=_.RI("kevlar_watch_flexy_metadata_height",136);_.QE9=_.JW+310+_.gD;_.dwT=_.JW+360+_.gD;var hq8={PAUSE_CHAT:18};var sEm;var uHO;var Xf=function(){return _.r.apply(this,arguments)||this};
_.L(Xf,_.r);Xf.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Xf.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var E=_.h(this.data.button,_.sO);E&&(E.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Up.Object.defineProperties(Xf,{template:{configurable:!0,enumerable:!0,get:function(){if(uHO===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;sEm===void 0&&(sEm=document.createElement("template"));var T=sEm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);uHO=E}E=uHO;return E}}});
_.k([_.g(_.LM),_.t("design:type",Object)],Xf.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X({selectorArgs:["data.enabledEntityKey"],selector:ML7,observer:"onEnabledChange"}),_.t("design:type",Boolean)],Xf.prototype,"enabled",void 0);_.k([_.X(),_.t("design:type",Object)],Xf.prototype,"data",void 0);Xf=_.k([_.QE({is:"yt-disableable-button-view-model",noInjection:!0})],Xf);var LDm;var xwI;var Gr1=["transVert01","transVert02","transVert03"],Ows="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),rD=function(){var E=_.r.apply(this,arguments)||this;E.emojiManager=_.Gm;E.isDarkTheme=document.documentElement.hasAttribute("dark");E.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};E.reactionBuckets=[];E.noEmojiIdentifier="NO_EMOJI";return E};
_.L(rD,_.r);_.l=rD.prototype;_.l.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.l.desktopFountainEmojiSizePxChanged=function(){_.Dk(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.l.createUserReactionAnimation=function(E){this.createEmojiAnimation(E,!0)};
_.l.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var E;((E=this.data)==null?0:E.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.aL("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.ad(this.emojiContainer.children)).forEach(function(B){B.remove()})};
_.l.detached=function(){this.cleanupFountain()};
_.l.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var E;this.reactionBuckets=_.a_.unsafeClone((E=this.emojiFountainData)==null?void 0:E.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.l.processEmojiBucket=function(E){var B=this;if(this.reactionBuckets&&!(E>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var I=this.reactionBuckets[E];this.generateEmojiAnimations(I);if(E<this.reactionBuckets.length-1){var T;if(I==null?0:(T=I.duration)==null?0:T.seconds)this.emojiBucketTimerId=setTimeout(function(){B.processEmojiBucket(E+1)},Number(I.duration.seconds)*1E3)}}};
_.l.generateEmojiAnimations=function(E){var B=this,I=this.getRandomEmojiIdFromBucketWithOverride(E);if(I&&I!==this.noEmojiIdentifier){var T=0;E.targetEps?(T=this.linearInterpolateBounded(1,20,100,12,E.emojiSizeIndex||0),this.createEmojiAnimation(I,!1,E.emojiAnimationMs,T),T=this.getEmojiDelayMsFromTargetEps(E.targetEps)):(this.createEmojiAnimation(I),T=this.getEmojiDelayMsFromDistribution(E.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){B.generateEmojiAnimations(E)},T)}};
_.l.getRandomEmojiIdFromBucketWithOverride=function(E){if(!(E&&E.reactionsData&&E.reactionsData.length&&E.totalReactions))return this.noEmojiIdentifier;for(var B=E.totalReactions,I=1,T=_.p(E.reactionsData),e=T.next();!e.done;e=T.next())e=e.value,(e.reactionWeightOverride||e.reactionWeightOverride===0)&&e.reactionCount&&(B-=e.reactionCount,I-=e.reactionWeightOverride);T=!0;I<0&&(T=!1,B=E.totalReactions,I=1);if(T&&I>0&&B===0)if(I===1){e=0;for(var c=_.p(E.reactionsData),Y=c.next();!Y.done;Y=c.next())Y=
Y.value,Y.reactionCount&&Y.reactionCount>0&&e++;e=1/e;c=_.p(E.reactionsData);for(Y=c.next();!Y.done;Y=c.next())Y.value.reactionWeightOverride=e}else for(e=1/(1-I),c=_.p(E.reactionsData),Y=c.next();!Y.done;Y=c.next())Y=Y.value,Y.reactionWeightOverride&&(Y.reactionWeightOverride*=e);e=Math.random();c=0;Y=_.p(E.reactionsData);for(var v=Y.next();!v.done;v=Y.next())if(v=v.value,v.reactionCount&&(c=(v.reactionWeightOverride||v.reactionWeightOverride===0)&&T?c+v.reactionWeightOverride:c+I*v.reactionCount/
B,c>e&&(v.reactionCount--,E.totalReactions--,v=this.reactionItemToEmojiString(v),v!==this.noEmojiIdentifier)))return v;return this.noEmojiIdentifier};
_.l.reactionItemToEmojiString=function(E){if(E.unicodeEmojiId)return E.unicodeEmojiId;if(E.emoteId)return E.emoteId;if(E.videoReactionType)switch(E.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.l.createEmojiAnimation=function(E,B,I,T){B=B===void 0?!1:B;this.lastEmojiRequestedForTesting=E;var e=E.startsWith("yt-icons:"),c=_.Lj(this.emojiManager,E);if(c||e){var Y=document.createElement("emoji");Y.classList.add("yt-emoji-fountain-view-model");Y.classList.add(Gr1[Math.floor(Math.random()*Gr1.length)]);var v=document.createElement("div");v.classList.add("yt-emoji-fountain-view-model");v.classList.add("horizontal-container");v.classList.add(Ows[Math.floor(Math.random()*Ows.length)]);B?(I=document.createElement("div"),
I.classList.add("user-reaction-bubble"),I.classList.add("yt-emoji-fountain-view-model"),v.appendChild(I)):(I&&(Y.style.animationDuration=I+"ms",v.style.animationDuration=I+"ms"),T&&(Y.style.width=T+"px",Y.style.height=T+"px"));e?(e=document.createElement("yt-icon"),e.polymerController.icon=E,T&&(e.style.width=T+"px",e.style.height=T+"px"),E=e):E=this.emojiManager.createEmoji(c,!1);E.classList.add("yt-emoji-fountain-view-model");v.appendChild(E);Y.appendChild(v);this.emojiContainer.appendChild(Y);
Y.addEventListener("animationend",function(){Y.remove()});
var y,Z;if((y=this.data)==null?0:(Z=y.loggingDirectives)==null?0:Z.trackingParams)B=B?_.wA(183501):_.wA(183500),HAT(this.data.loggingDirectives.trackingParams,B),_.UQG(B);setTimeout(function(){Y&&Y.remove()},2E3)}};
_.l.getEmojiDelayMsFromDistribution=function(E){return Math.random()*(E||1)*1E3};
_.l.getEmojiDelayMsFromTargetEps=function(E){return Math.random()*2*(1/E)*1E3};
_.l.linearInterpolateBounded=function(E,B,I,T,e){e=Math.min(Math.max(e,E),I);return(B*(I-e)+T*(e-E))/(I-E)};
rD.prototype.onEmojiFountainDataEntityUpdate=rD.prototype.onEmojiFountainDataEntityUpdate;rD.prototype.desktopFountainEmojiSizePxChanged=rD.prototype.desktopFountainEmojiSizePxChanged;rD.prototype.isActiveChanged=rD.prototype.isActiveChanged;_.k([_.X(),_.t("design:type",_.uF)],rD.prototype,"emojiManager",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.LM),_.t("design:type",Object)],rD.prototype,"ytLiveChatReduxBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],rD.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],rD.prototype,"data",void 0);_.k([_.X({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(E,B){return _.cP(E.entities,"emojiFountainDataEntity",B)}}),
_.t("design:type",Object)],rD.prototype,"emojiFountainData",void 0);_.k([_.X(),_.t("design:type",Boolean)],rD.prototype,"isActive",void 0);_.k([_.EM("isActive"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],rD.prototype,"isActiveChanged",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],rD.prototype,"isDarkTheme",void 0);_.k([_.X(),_.t("design:type",String)],rD.prototype,"lastEmojiRequestedForTesting",void 0);
_.k([_.X({value:function(){return _.RI("desktop_fountain_emoji_size_px",20)}}),
_.t("design:type",Number)],rD.prototype,"desktopFountainEmojiSizePx",void 0);_.k([_.EM("desktopFountainEmojiSizePx"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],rD.prototype,"desktopFountainEmojiSizePxChanged",null);_.k([_.$7("#emoji-container"),_.t("design:type",HTMLElement)],rD.prototype,"emojiContainer",void 0);
_.k([_.EM("emojiFountainData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],rD.prototype,"onEmojiFountainDataEntityUpdate",null);rD=_.k([_.QE({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],rD);
_.A(rD,"yt-emoji-fountain-view-model",function(){if(xwI===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;LDm===void 0&&(LDm=document.createElement("template"));var T=LDm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);xwI=E}E=xwI;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var nKI;var MG2;var be=function(){return _.r.apply(this,arguments)||this};
_.L(be,_.r);be.prototype.onChoiceChanged=function(){this.data&&_.Dk(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
be.prototype.onChoiceChanged=be.prototype.onChoiceChanged;_.k([_.X(),_.t("design:type",Object)],be.prototype,"data",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],be.prototype,"onChoiceChanged",null);be=_.k([_.b({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],be);
_.A(be,"yt-live-chat-banner-poll-choice",function(){if(MG2===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;nKI===void 0&&(nKI=document.createElement("template"));var T=nKI;I.call(B,T.content.cloneNode(!0),E.content.firstChild);MG2=E}E=MG2;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var Hw7;var Nqg;var oU=function(){var E=_.r.apply(this,arguments)||this;E.modern=_.d("web_button_rework_with_live");E.small=!1;return E};
_.L(oU,_.r);oU.prototype.computeIsSmall=function(){var E;return((E=this.buttonOverrides)==null?void 0:E.size)==="S"};
oU.prototype.computeId=function(){return this.data&&this.data.targetId};
_.k([_.g(_.xC.YtLiveChatTooltipTargetingBehavior),_.t("design:type",Object)],oU.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.k([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.t("design:type",String)],oU.prototype,"id",void 0);_.k([_.X(),_.t("design:type",Object)],oU.prototype,"buttonOverrides",void 0);_.k([_.X(),_.t("design:type",Object)],oU.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],oU.prototype,"modern",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.t("design:type",Object)],oU.prototype,"small",void 0);oU=_.k([_.b({disableElementRegistration:!0,is:"yt-live-chat-button"})],oU);
_.A(oU,"yt-live-chat-button",function(){if(Nqg===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Hw7===void 0&&(Hw7=document.createElement("template"));var T=Hw7;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Nqg=E}E=Nqg;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var gKT;var SPO;var AW=function(){var E=_.r.apply(this,arguments)||this;E.inCollapsedBanner=!1;E.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};E.questionButtonOverrides={style:"mono",type:"filled"};return E};
_.L(AW,_.r);_.l=AW.prototype;_.l.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]]"}}}}}};
_.l.onContextMenuButtonClick=function(E){this.ytLiveChatItemBehavior.showContextMenu(E)};
_.l.onYtRendererstamperFinished=function(){this.menuButton=_.n(this.hostElement).querySelector("#menu-button")};
_.l.dataChanged=function(){var E,B;if((B=_.h((E=this.data)==null?void 0:E.overflowMenuButton,_.NT))==null?0:B.command)this.data.contextMenuEndpoint=_.h(this.data.overflowMenuButton,_.NT).command};
_.l.onButtonClick=function(){var E,B=_.h((E=this.data)==null?void 0:E.askQuestionButton,_.NT);if(B){if(B.trackingParams&&(E=_.Yg(B.trackingParams))){var I=_.nC();I&&_.Al(I,E)}_.$O(this.hostElement,"innertube-command",B.command)}};
AW.prototype.onYtRendererstamperFinished=AW.prototype.onYtRendererstamperFinished;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],AW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.LM),_.t("design:type",Object)],AW.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],AW.prototype,"ytLiveChatItemBehavior",void 0);_.k([_.X({observer:"dataChanged"}),_.t("design:type",Object)],AW.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],AW.prototype,"inCollapsedBanner",void 0);_.k([_.X(),_.t("design:type",Object)],AW.prototype,"buttonOverrides",void 0);_.k([_.X(),_.t("design:type",Object)],AW.prototype,"questionButtonOverrides",void 0);_.k([_.RN("yt-rendererstamper-finished"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],AW.prototype,"onYtRendererstamperFinished",null);
AW=_.k([_.b({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],AW);
_.A(AW,"yt-live-chat-call-for-questions-renderer",function(){if(SPO===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;gKT===void 0&&(gKT=document.createElement("template"));var T=gKT;I.call(B,T.content.cloneNode(!0),E.content.firstChild);SPO=E}E=SPO;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var J3H={};J3H.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 E=this;window.requestAnimationFrame(function(){E.restoreFocusNode_||(E.restoreFocusNode_=document.activeElement);var B=_.FVN(E.hostElement);B.length&&B[B.length-1].focus()})},
isAttachedChanged_:function(E,B){E?this.focusChild_():B&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(E){this.hidden||_.W8(E).indexOf(this.hostElement)!==-1||(E.stopPropagation(),this.focusChild_())}};var WDg;var XQL;var jq=function(){return _.r.apply(this,arguments)||this};
_.L(jq,_.r);jq.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
jq.prototype.onClick=function(E){E.target!==this.confirmButton&&E.target!==this.cancelButton&&(this.hidden=!0)};
_.k([_.$7("#confirm_button"),_.t("design:type",Object)],jq.prototype,"confirmButton",void 0);_.k([_.$7("#cancel_button"),_.t("design:type",Object)],jq.prototype,"cancelButton",void 0);_.k([_.X(),_.t("design:type",r3m)],jq.prototype,"data",void 0);_.k([_.X({value:!0,reflectToAttribute:!0}),_.t("design:type",Boolean)],jq.prototype,"hidden",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],jq.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(J3H.YtLiveChatDialogBehavior),_.t("design:type",Object)],jq.prototype,"ytLiveChatDialogBehavior",void 0);jq=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],jq);
var r3m=_.A(jq,"yt-live-chat-dialog-renderer",function(){if(XQL===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;WDg===void 0&&(WDg=document.createElement("template"));var T=WDg;I.call(B,T.content.cloneNode(!0),E.content.firstChild);XQL=E}E=XQL;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var bwg;var oKI,A3d=function(){if(oKI!==void 0)return oKI;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;bwg===void 0&&(bwg=document.createElement("template"));var T=bwg;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return oKI=E};var jET;var Uw7;var UD=function(){var E=_.r.apply(this,arguments)||this;E.tooltip=null;E.data=null;E.id="";E.active=!1;E.icon="";E.disabled=!1;E.showTooltip=!1;E.useToggledActiveState=!0;E.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return E};
_.L(UD,_.r);_.l=UD.prototype;
_.l.dataChanged=function(){var E;((E=this.data)==null?0:E.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,_.FN)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var B;if((B=this.data)==null?0:B.disabled)this.disabled=!0};
_.l.computeId=function(E){return E};
_.l.computeIcon=function(E,B){if(!E)return"";if(this.useToggledActiveState)return"yt-icons:"+E.toLowerCase();var I,T;return B&&((I=this.data)==null?0:(T=I.toggledIcon)==null?0:T.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+E.toLowerCase()};
_.l.logPDGEntryPoint=function(){_.llJ(_.eP("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")};
_.l.immediatelyShowTooltip=function(){var E=_.n(this.hostElement).querySelector("#tooltip");E.animationDelay=0;E.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};E.show()};
_.l.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.l.onClick=function(E){var B;((B=this.data)==null?0:B.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(),E.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.$O(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.l.computeShowTooltip=function(E,B){return!!(E&&E.tooltip&&B)};
_.l.maybeUpdateTooltipText=function(){var E=this,B;if((B=this.data)==null?0:B.tooltip){var I=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.FN)(E.tooltip).textContent=I},250)}};
_.l.handleLiveChatActions=function(E){var B=this;E.length&&(this.id!=="creator"&&this.id!=="product-picker"||E.forEach(function(I){(I=B.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",I))&&I.durationSec===I.fullDurationSec&&B.startBubble(B.colorFromDecimal(I.startBackgroundColor))}))};
_.l.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.l.startBubble=function(E){_.Dk(this.hostElement,{"--yt-live-chat-monetization-button-glow":E});this.hostElement.setAttribute("bubble","")};
_.l.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.l.colorFromDecimal=function(E){typeof E==="string"&&(E=Number(E));return"rgba("+[E>>16&255,E>>8&255,E&255,(E>>24&255)/255].join()+")"};
UD.prototype.onAnimationEnd=UD.prototype.onAnimationEnd;UD.prototype.disabledChanged=UD.prototype.disabledChanged;UD.prototype.dataChanged=UD.prototype.dataChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],UD.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.xC.YtLiveChatTooltipTargetingBehavior),_.t("design:type",Object)],UD.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],UD.prototype,"data",void 0);_.k([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.t("design:type",Object)],UD.prototype,"id",void 0);_.k([_.X({notify:!0,reflectToAttribute:!0}),_.t("design:type",Object)],UD.prototype,"active",void 0);
_.k([_.X({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.t("design:type",Object)],UD.prototype,"icon",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],UD.prototype,"disabled",void 0);_.k([_.X({computed:"computeShowTooltip(data, disabled)"}),_.t("design:type",Object)],UD.prototype,"showTooltip",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],UD.prototype,"useToggledActiveState",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],UD.prototype,"dataChanged",null);_.k([_.EM("disabled"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],UD.prototype,"disabledChanged",null);_.k([_.RN("animationend"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],UD.prototype,"onAnimationEnd",null);
UD=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],UD);
_.A(UD,"yt-live-chat-icon-toggle-button-renderer",function(){if(Uw7===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;jET===void 0&&(jET=document.createElement("template"));var T=jET;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Uw7=E}E=Uw7;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var krm;var tGT;var kc=function(){return _.r.apply(this,arguments)||this};
_.L(kc,_.r);kc.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.k([_.X(),_.t("design:type",Object)],kc.prototype,"data",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],kc.prototype,"ytRendererstamperBehavior",void 0);kc=_.k([_.b({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],kc);
_.A(kc,"yt-live-chat-message-input-prompt-header-renderer",function(){if(tGT===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;krm===void 0&&(krm=document.createElement("template"));var T=krm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);tGT=E}E=tGT;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var fhm;var VG8;var qPI;var FD7;var Dwt;var KD1;var tW=function(){return _.r.apply(this,arguments)||this};
_.L(tW,_.r);_.k([_.X(),_.t("design:type",Object)],tW.prototype,"data",void 0);tW=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],tW);
_.A(tW,"yt-live-chat-message-subtext-renderer",function(){if(KD1===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Dwt===void 0&&(Dwt=document.createElement("template"));var T=Dwt;I.call(B,T.content.cloneNode(!0),E.content.firstChild);KD1=E}E=KD1;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var fn=function(){var E=_.r.apply(this,arguments)||this;E.subtextOnBottom=!1;E.buttonOverrides={style:"mono",type:"tonal"};return E};
_.L(fn,_.r);fn.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"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],fn.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],fn.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],fn.prototype,"subtextOnBottom",void 0);_.k([_.X(),_.t("design:type",Object)],fn.prototype,"buttonOverrides",void 0);
fn=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],fn);
_.A(fn,"yt-live-chat-message-renderer",function(){if(FD7===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;qPI===void 0&&(qPI=document.createElement("template"));var T=qPI;I.call(B,T.content.cloneNode(!0),E.content.firstChild);FD7=E}E=FD7;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var RqI;var EuT;var Vy=function(){var E=_.r.apply(this,arguments)||this;E.isRemovable=!1;E.hasPrefilledText=!1;E.isInputDirty=!1;E.overCharacterLimit=!1;E.underCharacterLimit=!1;E.showErrorMessage=!1;return E};
_.L(Vy,_.r);_.l=Vy.prototype;_.l.computeId=function(){return this.data.id};
_.l.computeInputData=function(){return this.data.inputData};
_.l.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.l.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.l.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.l.getLiveChatRichMessageInput=function(){return _.n(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.l.clearInput=function(){_.n(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.l.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.l.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.l.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.l.handleTextInputCharCountChanged=function(E){E=E.detail&&E.detail.characterCount;E!==void 0&&(this.characterCount=E,E!==0&&(this.isInputDirty=!0))};
_.l.onInputFocusOut=function(){this.isInputDirty=!0};
_.l.onClickCloseButton=function(){_.$O(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Vy.prototype.handleTextInputCharCountChanged=Vy.prototype.handleTextInputCharCountChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Vy.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Vy.prototype,"data",void 0);_.k([_.X({computed:"computeId(data.id)"}),_.t("design:type",String)],Vy.prototype,"id",void 0);_.k([_.X({computed:"computeInputData(data.inputData)"}),_.t("design:type",Object)],Vy.prototype,"inputData",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.t("design:type",Object)],Vy.prototype,"isRemovable",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.t("design:type",Object)],Vy.prototype,"hasPrefilledText",void 0);_.k([_.X({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.t("design:type",Number)],Vy.prototype,"charactersRemaining",void 0);
_.k([_.X(),_.t("design:type",Number)],Vy.prototype,"characterCount",void 0);_.k([_.X(),_.t("design:type",Object)],Vy.prototype,"isInputDirty",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.t("design:type",Object)],Vy.prototype,"overCharacterLimit",void 0);_.k([_.X({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.t("design:type",Object)],Vy.prototype,"underCharacterLimit",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.t("design:type",Object)],Vy.prototype,"showErrorMessage",void 0);_.k([_.RN("yt-live-chat-text-input-field-renderer-character-count-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Vy.prototype,"handleTextInputCharCountChanged",null);
Vy=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Vy);
_.A(Vy,"yt-live-chat-poll-editor-input",function(){if(EuT===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;RqI===void 0&&(RqI=document.createElement("template"));var T=RqI;I.call(B,T.content.cloneNode(!0),E.content.firstChild);EuT=E}E=EuT;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var B_g;var $pL;var Io7={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},qx=function(){var E=_.r.apply(this,arguments)||this;E.modern=_.d("web_button_rework_with_live");E.closeButtonOverrides={iconPosition:"icon-only"};E.startButtonOverrides={style:"mono",type:"filled"};E.addOptionButtonOverrides={style:"mono",type:"text"};return E};
_.L(qx,_.r);_.l=qx.prototype;
_.l.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"}}}}};
_.l.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var E;_.h((E=this.data)==null?void 0:E.startButton,_.NT)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.l.computeId=function(){return this.data&&this.data.id||""};
_.l.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.l.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.l.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.l.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.l.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var E=0;E<this.pollEditorInfoWithDefaults.minPollOptions;E++)this.addPollOptionData()};
_.l.getIsValidPoll=function(){var E=this;if(!this.pollEditorInfoWithDefaults)return!1;var B=this.pollEditorInfoWithDefaults,I=B.minPollOptionChars,T=B.maxPollOptionChars,e=B.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>B.maxPollQuestionChars)return!1;B=_.n(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(B).every(function(c,Y){c=c.characterCount;!c&&e[Y]&&(c=E.ytRendererBehavior.getSimpleString(e[Y]).length);return c!==void 0&&c>=I&&c<=T})};
_.l.isValidPollChanged=function(){var E;_.h((E=this.data)==null?void 0:E.startButton,_.NT)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.l.addPollOptionData=function(){var E=this.pollEditorInfoWithDefaults,B=E.maxPollOptionChars,I=E.optionPlaceholderText,T=E.customOptionPlaceholderText,e=E.pollOptionData;this.currentNumPollOptions>=E.maxPollOptions||(E={liveChatPollOptionInput:{inputData:{placeholder:T[this.currentNumPollOptions]||I,maxCharacterLimit:B},maxCharacterLimit:B,minCharacterLimit:E.minPollOptionChars,hasPrefilledText:!!T[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=E.minPollOptions}},e.charCountErrorText&&
(E.liveChatPollOptionInput.charCountErrorText=e.charCountErrorText),e.charsRemainingAltLabel&&(E.liveChatPollOptionInput.charsRemainingAltLabel=e.charsRemainingAltLabel),e.removeOptionAltText&&(E.liveChatPollOptionInput.removeOptionAltText=e.removeOptionAltText),this.push("pollOptionsData",E),e=Array.from(_.n(_.n(this.hostElement).querySelector("#poll-options")).children),e.forEach(function(c,Y){c.polymerController.set("data.id",Y)}),_.n(e[e.length-1]).querySelector("#input").focus())};
_.l.getPollOptionInputValues=function(){var E=this,B=[],I=_.n(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),T=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(I).forEach(function(e,c){var Y=null;e=e.getLiveChatRichMessageInput();var v;(e==null?0:(v=e.textSegments)==null?0:v.length)?Y=_.GI(e):T[c]&&(Y=E.formattedStringToLiveChatRichMessageInput(T[c]));B.push(Y)});
return B};
_.l.requestCreateAndStartPoll=function(E){var B=this.getPollOptionInputValues();if(!B.some(function(T){return!T})){B={optionText:B};
var I=_.n(_.n(this.hostElement).querySelector("#poll-question")).firstChild;I&&I.liveChatRichMessageInput&&(B.questionText=_.GI(I.liveChatRichMessageInput));_.l1(this.hostElement,[E,B])}};
_.l.selectedChanged=function(){if(this.selected){var E=_.n(_.n(this.hostElement).querySelector("#start-button")).firstElementChild;if(E){var B;(B=_.n(E).querySelector("#button")||_.fq(E).querySelector("button"))==null||B.focus()}}};
_.l.handleTextInputChanged=function(E){var B;((B=E.target)==null?void 0:B.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=E.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.l.handleStartButtonAction=function(E){E.detail.actionName==="yt-service-request"&&(E.stopPropagation(),(E=E.detail.args[1])&&this.requestCreateAndStartPoll(E))};
_.l.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.l.handleServiceRequestCompleted=function(E){this.createPollRequestInFlight=!1;(E=E.detail&&E.detail.data)&&E.success&&(_.$O(this.hostElement,"picker-cancelled"),_.I2(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.l.onCloseClick=function(){_.$O(this.hostElement,"picker-cancelled");_.I2(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.l.handlePollEditorInputClosed=function(E){var B=this.pollOptionsData.findIndex(function(I){return I.liveChatPollOptionInput.id===E.detail.id});
this.splice("pollOptionsData",B,1);this.isValidPoll=this.getIsValidPoll()};
_.l.onPickerCancelled=function(){this.reset()};
_.l.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var E=_.n(_.n(this.hostElement).querySelector("#poll-question")).firstChild;E&&E.setLiveChatRichMessageInput(null);if(E=_.n(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){E=_.p(Array.from(E));for(var B=E.next();!B.done;B=E.next())B.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.l.formattedStringToLiveChatRichMessageInput=function(E){return E.simpleText?{text_segments:[E.simpleText]}:{text_segments:E.runs}};
_.Up.Object.defineProperties(qx.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(Io7,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
qx.prototype.onPickerCancelled=qx.prototype.onPickerCancelled;qx.prototype.handlePollEditorInputClosed=qx.prototype.handlePollEditorInputClosed;qx.prototype.handleServiceRequestCompleted=qx.prototype.handleServiceRequestCompleted;qx.prototype.handleServiceRequestSent=qx.prototype.handleServiceRequestSent;qx.prototype.handleTextInputChanged=qx.prototype.handleTextInputChanged;qx.prototype.selectedChanged=qx.prototype.selectedChanged;qx.prototype.isValidPollChanged=qx.prototype.isValidPollChanged;
qx.prototype.shouldInitializePollChanged=qx.prototype.shouldInitializePollChanged;qx.prototype.dataChanged=qx.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],qx.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],qx.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],qx.prototype,"modern",void 0);
_.k([_.X(),_.t("design:type",Object)],qx.prototype,"closeButtonOverrides",void 0);_.k([_.X(),_.t("design:type",Object)],qx.prototype,"startButtonOverrides",void 0);_.k([_.X(),_.t("design:type",Object)],qx.prototype,"addOptionButtonOverrides",void 0);_.k([_.X({computed:"computeId(data.id)",reflectToAttribute:!0}),_.t("design:type",String)],qx.prototype,"id",void 0);_.k([_.X({value:function(){return[]}}),
_.t("design:type",Array)],qx.prototype,"pollOptionsData",void 0);_.k([_.S("pollEditorInfoWithDefaults"),_.t("design:type",Object),_.t("design:paramtypes",[])],qx.prototype,"pollQuestionData",null);_.k([_.X({value:0}),_.t("design:type",Number)],qx.prototype,"pollQuestionCharacterCount",void 0);_.k([_.S("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.t("design:type",Object),_.t("design:paramtypes",[])],qx.prototype,"pollQuestionCharactersRemaining",null);
_.k([_.X({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.t("design:type",Boolean)],qx.prototype,"overQuestionCharacterLimit",void 0);_.k([_.S("data.pollEditorInfo"),_.t("design:type",Object),_.t("design:paramtypes",[])],qx.prototype,"pollEditorInfoWithDefaults",null);_.k([_.X({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.t("design:type",Number)],qx.prototype,"currentNumPollOptions",void 0);
_.k([_.X({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.t("design:type",Boolean)],qx.prototype,"hasMaxNumPollOptions",void 0);_.k([_.S("pollEditorInfoWithDefaults","pollOptionsData"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],qx.prototype,"shouldInitializePoll",null);_.k([_.X(),_.t("design:type",Object)],qx.prototype,"isValidPoll",void 0);
_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],qx.prototype,"createPollRequestInFlight",void 0);_.k([_.X(),_.t("design:type",Object)],qx.prototype,"selected",void 0);_.k([_.X({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.t("design:type",Boolean)],qx.prototype,"showQuestionErrorMessage",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qx.prototype,"dataChanged",null);_.k([_.EM("shouldInitializePoll"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qx.prototype,"shouldInitializePollChanged",null);_.k([_.EM("isValidPoll"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qx.prototype,"isValidPollChanged",null);
_.k([_.EM("selected"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qx.prototype,"selectedChanged",null);_.k([_.RN("yt-live-chat-text-input-field-renderer-character-count-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],qx.prototype,"handleTextInputChanged",null);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qx.prototype,"handleServiceRequestSent",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],qx.prototype,"handleServiceRequestCompleted",null);
_.k([_.RN("yt-live-chat-poll-editor-input-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],qx.prototype,"handlePollEditorInputClosed",null);_.k([_.RN("picker-cancelled"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qx.prototype,"onPickerCancelled",null);qx=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],qx);
_.A(qx,"yt-live-chat-poll-editor-panel-renderer",function(){if($pL===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;B_g===void 0&&(B_g=document.createElement("template"));var T=B_g;I.call(B,T.content.cloneNode(!0),E.content.firstChild);$pL=E}E=$pL;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var T_g;var eNT;var Ff=function(){return _.r.apply(this,arguments)||this};
_.L(Ff,_.r);Ff.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Ff.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Up.Object.defineProperties(Ff.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var E,B;return(E=this.data)==null?void 0:(B=E.title)==null?void 0:B.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var E;return _.ha((E=this.data)==null?void 0:E.onTapCommand)}}});
_.k([_.g(_.BF.YtEndpointBehavior),_.t("design:type",Object)],Ff.prototype,"ytEndpointBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ff.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ff.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Ff.prototype,"itemId",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Ff.prototype,"hasPromotion",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Ff.prototype,"innertubeCommand",null);Ff=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Ff);
_.A(Ff,"yt-live-chat-product-picker-panel-item-view-model",function(){if(eNT===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;T_g===void 0&&(T_g=document.createElement("template"));var T=T_g;I.call(B,T.content.cloneNode(!0),E.content.firstChild);eNT=E}E=eNT;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var lod;var c82;var Dj=function(){var E=_.r.apply(this,arguments)||this;E.id="product-picker";E.selected=!1;E.closeButtonId="close-button";E.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return E};
_.L(Dj,_.r);_.l=Dj.prototype;_.l.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.l.observeSelected=function(){this.selected&&this.hostElement.focus();var E=_.n(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");E.length&&E[0].focus()};
_.l.onCloseBuyFlow=function(){_.$O(this.hostElement,"picker-cancelled")};
_.l.onCloseClick=function(){_.$O(this.hostElement,"picker-cancelled");var E;((E=this.data)==null?0:E.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.h(this.data.closeButton,_.sO))};
_.l.onCloseEngageWithAudienceEditorPanels=function(){_.$O(this.hostElement,"picker-cancelled")};
Dj.prototype.observeSelected=Dj.prototype.observeSelected;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Dj.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Dj.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Dj.prototype,"id",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Dj.prototype,"selected",void 0);_.k([_.X(),_.t("design:type",Object)],Dj.prototype,"closeButtonId",void 0);_.k([_.EM("selected"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Dj.prototype,"observeSelected",null);
Dj=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Dj);
_.A(Dj,"yt-live-chat-product-picker-panel-view-model",function(){if(c82===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;lod===void 0&&(lod=document.createElement("template"));var T=lod;I.call(B,T.content.cloneNode(!0),E.content.firstChild);c82=E}E=c82;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var ism;var pYm;var Kn=function(){var E=_.r.apply(this,arguments)||this;E.iconId="";E.icon="";E.disabled=!1;E.systemIcons=_.d("kevlar_system_icons");return E};
_.L(Kn,_.r);_.l=Kn.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.l.computeIconId=function(E){return E&&E.icon&&E.icon.iconType?E.icon.iconType.toLowerCase():""};
_.l.computeIcon=function(E){return E&&E.icon&&E.icon.iconType?(E=E.icon.iconType.toLowerCase(),(E.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+E):""};
_.l.computeDisabled=function(E){return!!E};
_.l.computeCommand=function(E,B){return B?void 0:E};
_.l.computeTooltip=function(E,B){return B&&E?E:""};
_.l.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.k([_.g(_.BF.YtEndpointBehavior),_.t("design:type",Object)],Kn.prototype,"ytEndpointBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Kn.prototype,"data",void 0);_.k([_.X({computed:"computeIconId(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Kn.prototype,"iconId",void 0);
_.k([_.X({computed:"computeIcon(data)",reflectToAttribute:!0}),_.t("design:type",Object)],Kn.prototype,"icon",void 0);_.k([_.X({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.t("design:type",Object)],Kn.prototype,"disabled",void 0);_.k([_.X({computed:"computeCommand(data.command, disabled)"}),_.t("design:type",Object)],Kn.prototype,"command",void 0);_.k([_.X({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.t("design:type",String)],Kn.prototype,"tooltip",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Kn.prototype,"systemIcons",void 0);Kn=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Kn);
_.A(Kn,"yt-live-chat-product-button-renderer",function(){if(pYm===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;ism===void 0&&(ism=document.createElement("template"));var T=ism;I.call(B,T.content.cloneNode(!0),E.content.firstChild);pYm=E}E=pYm;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var YhI;var aot;var RU=function(){var E=_.r.apply(this,arguments)||this;E.selected=!1;E.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return E};
_.L(RU,_.r);_.l=RU.prototype;_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.computeId=function(E){return E.id||""};
_.l.onCloseClick=function(){_.$O(this.hostElement,"picker-cancelled")};
_.l.observeSelected=function(){this.selected&&this.hostElement.focus();var E=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");E.length&&E[0].focus()};
_.l.onCloseBuyFlow=function(){_.$O(this.hostElement,"picker-cancelled")};
_.l.onCloseEngageWithAudienceEditorPanels=function(){_.$O(this.hostElement,"picker-cancelled")};
RU.prototype.observeSelected=RU.prototype.observeSelected;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],RU.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],RU.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],RU.prototype,"data",void 0);
_.k([_.X({computed:"computeId(data)",reflectToAttribute:!0}),_.t("design:type",String)],RU.prototype,"id",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RU.prototype,"selected",void 0);_.k([_.EM("selected"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],RU.prototype,"observeSelected",null);RU=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],RU);
_.A(RU,"yt-live-chat-product-picker-renderer",function(){if(aot===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;YhI===void 0&&(YhI=document.createElement("template"));var T=YhI;I.call(B,T.content.cloneNode(!0),E.content.firstChild);aot=E}E=aot;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var vuO;var y89;var CVm;var wYm;var EJ=function(){return _.r.apply(this,arguments)||this};
_.L(EJ,_.r);EJ.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()};
EJ.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
EJ.prototype.created=function(){this.ids={background:_.PJ(),maskOne:_.PJ(),maskTwo:_.PJ(),gradient:_.PJ(),largeBackground:_.PJ(),largeGradientOne:_.PJ(),largeGradientTwo:_.PJ(),largeGradientPath:_.PJ()}};
EJ.prototype.maybeLoadAnimationBackground=EJ.prototype.maybeLoadAnimationBackground;_.k([_.X({value:!1}),_.t("design:type",Boolean)],EJ.prototype,"useLargeBackground",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],EJ.prototype,"useAnimationBackground",void 0);_.k([_.X({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.t("design:type",Boolean)],EJ.prototype,"useRegularBackground",void 0);
_.k([_.X(),_.t("design:type",Object)],EJ.prototype,"ids",void 0);_.k([_.X(),_.t("design:type",Object)],EJ.prototype,"lottieAnimation",void 0);_.k([_.$7("#animation-background"),_.t("design:type",HTMLDivElement)],EJ.prototype,"animationBackground",void 0);_.k([_.EM("useAnimationBackground"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],EJ.prototype,"maybeLoadAnimationBackground",null);
EJ=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],EJ);
_.A(EJ,"yt-live-interactivity-component-background",function(){if(wYm===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;CVm===void 0&&(CVm=document.createElement("template"));var T=CVm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);wYm=E}E=wYm;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var Bi=function(){var E=_.r.apply(this,arguments)||this;E.characterCount=0;E.showInputErrorMessage=!1;E.startQnaRequestInFlight=!1;E.modern=_.d("web_button_rework_with_live");E.buttonOverrides={style:"mono",type:"filled"};E.closeButtonOverrides={iconPosition:"icon-only"};E.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return E};
_.L(Bi,_.r);_.l=Bi.prototype;
_.l.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]]"}}}}}};
_.l.onCharacterCountChanged=function(E){var B,I,T,e,c=(I=_.h(this==null?void 0:(B=this.data)==null?void 0:B.creatorCallForQuestions,qBH))==null?void 0:(T=I.inputField)==null?void 0:(e=T.liveChatTextInputFieldRenderer)==null?void 0:e.maxCharacterLimit,Y,v;c!=null&&(E==null?void 0:(Y=E.detail)==null?void 0:Y.characterCount)!=null&&_.h(this==null?void 0:(v=this.data)==null?void 0:v.startButton,_.NT)&&(B=E.detail.characterCount>c,this.set("data.startButton.buttonRenderer.isDisabled",E.detail.characterCount===
0||B),this.showInputErrorMessage=B)};
_.l.onCloseClick=function(){_.$O(this.hostElement,"picker-cancelled");_.I2(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.onPickerCancelled=function(){var E=_.n(this.hostElement).querySelector("#qna-creator-text-input-field");E&&E.setLiveChatRichMessageInput(null)};
_.l.handleOpenQnaStartPanel=function(){var E=_.n(this.hostElement).querySelector("#qna-creator-text-input-field");E&&E.focus()};
_.l.handleStartButtonAction=function(E){var B=this;if(E.detail.actionName==="yt-service-request"&&(E.stopPropagation(),E=E.detail.args[1])){var I=_.n(this.hostElement).querySelector("#qna-creator-text-input-field"),T;(I==null?0:(T=I.liveChatRichMessageInput)==null?0:T.textSegments)&&I.liveChatRichMessageInput.textSegments.length!==0&&(T={rich_message:_.GI(I.liveChatRichMessageInput)},_.l1(this.hostElement,[E,T]).then(function(){_.$O(B.hostElement,"picker-cancelled")}))}};
_.l.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.l.handleServiceRequestCompleted=function(E){var B;E=E==null?void 0:(B=E.detail)==null?void 0:B.data;(E==null?0:E.actions)&&E.actions.length>0?this.startQnaRequestInFlight=!1:_.I2(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Bi.prototype.handleServiceRequestError=Bi.prototype.handleServiceRequestError;Bi.prototype.handleServiceRequestCompleted=Bi.prototype.handleServiceRequestCompleted;Bi.prototype.handleServiceRequestSent=Bi.prototype.handleServiceRequestSent;Bi.prototype.onPickerCancelled=Bi.prototype.onPickerCancelled;Bi.prototype.onCharacterCountChanged=Bi.prototype.onCharacterCountChanged;_.k([_.X(),_.t("design:type",Object)],Bi.prototype,"characterCount",void 0);
_.k([_.X(),_.t("design:type",Object)],Bi.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Bi.prototype,"showInputErrorMessage",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Bi.prototype,"startQnaRequestInFlight",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Bi.prototype,"modern",void 0);_.k([_.X(),_.t("design:type",Object)],Bi.prototype,"buttonOverrides",void 0);
_.k([_.X(),_.t("design:type",Object)],Bi.prototype,"closeButtonOverrides",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.LM),_.t("design:type",Object)],Bi.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.g(_.O6.YtLiveChatItemBehavior),_.t("design:type",_.nj)],Bi.prototype,"ytLiveChatItemBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Bi.prototype,"ytActionHandlerBehavior",void 0);_.k([_.RN("yt-live-chat-text-input-field-renderer-character-count-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Bi.prototype,"onCharacterCountChanged",null);_.k([_.RN("picker-cancelled"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Bi.prototype,"onPickerCancelled",null);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Bi.prototype,"handleServiceRequestSent",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Bi.prototype,"handleServiceRequestCompleted",null);
_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Bi.prototype,"handleServiceRequestError",null);Bi=_.k([_.b({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Bi);
_.A(Bi,"yt-live-chat-qna-start-panel-renderer",function(){if(y89===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;vuO===void 0&&(vuO=document.createElement("template"));var T=vuO;I.call(B,T.content.cloneNode(!0),E.content.firstChild);y89=E}E=y89;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var Zss;var PV9;var $0=function(){return _.r.apply(this,arguments)||this};
_.L($0,_.r);$0.prototype.dismiss=function(){_.$O(this.hostElement,"yt-live-chat-error-message-dismiss")};
$0.prototype.edit=function(){_.$O(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.k([_.X(),_.t("design:type",Object)],$0.prototype,"data",void 0);$0=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],$0);
_.A($0,"yt-live-chat-text-actions-error-message-renderer",function(){if(PV9===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Zss===void 0&&(Zss=document.createElement("template"));var T=Zss;I.call(B,T.content.cloneNode(!0),E.content.firstChild);PV9=E}E=PV9;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var zN7;var mpd;var QRO;var dpd;var Iq=function(){var E=_.r.apply(this,arguments)||this;E.isDarkTheme=document.documentElement.hasAttribute("dark");E.newnessDotEligible=!1;return E};
_.L(Iq,_.r);Iq.prototype.sendReaction=function(){var E,B,I=((E=this.data)==null?void 0:E.emojiId)||((B=this.data)==null?void 0:B.emoteId),T;I&&((T=this.data)==null?0:T.shouldTriggerAnimation)&&_.I2(this.hostElement,"yt-create-user-reaction-animation",[I]);var e;(E=_.ha((e=this.data)==null?void 0:e.onTap))&&_.$g(E,this.hostElement);this.showNewnessDot&&_.I2(this.hostElement,"yt-hide-newness-dot")};
Iq.prototype.onClick=function(E){(!E||E.clientX||E.clientY)&&this.sendReaction()};
Iq.prototype.onKeyDown=function(E){E.key!=="Enter"&&E.key!==" "||E.repeat||this.sendReaction()};
_.Up.Object.defineProperties(Iq.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var E,B;return!!(((E=this.data)==null?0:E.emojiId)||((B=this.data)==null?0:B.emoteId))}}});
_.k([_.X(),_.t("design:type",Object)],Iq.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Iq.prototype,"isDarkTheme",void 0);_.k([_.X(),_.t("design:type",Object)],Iq.prototype,"newnessDotEligible",void 0);_.k([_.S("data.maybeShowNewnessDot"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Iq.prototype,"showNewnessDot",null);_.k([_.S("data.emojiId","data.emoteId"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Iq.prototype,"useYtImage",null);
Iq=_.k([_.QE({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Iq);
_.A(Iq,"yt-reaction-control-panel-button-view-model",function(){if(dpd===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;QRO===void 0&&(QRO=document.createElement("template"));var T=QRO;I.call(B,T.content.cloneNode(!0),E.content.firstChild);dpd=E}E=dpd;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var hNT;var sRt;var T4=function(){var E=_.r.apply(this,arguments)||this;E.reactionControlPanelExpanded=!1;E.isDarkTheme=document.documentElement.hasAttribute("dark");E.newnessDotEligible=!1;return E};
_.L(T4,_.r);_.l=T4.prototype;_.l.expandedButtonsChanged=function(){var E,B;_.Dk(this.hostElement,{"--expanded-buttons-height":((B=(E=this.expandedButtonsData)==null?void 0:E.length)!=null?B:0)*36+"px"})};
_.l.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}}};
_.l.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.l.onMouseLeave=function(){var E=this;this.collapseTimer=setTimeout(function(){E.reactionControlPanelExpanded=!1},500)};
_.l.onFocusIn=function(){this.onMouseEnter()};
_.l.onFocusOut=function(){this.onMouseLeave()};
_.l.onCollapsedButtonFocusIn=function(){var E=this;setTimeout(function(){var B;(B=E.expandedButtons.querySelector("button"))==null||B.focus()},100)};
_.l.onCollapsedButtonFocusOut=function(E){E.stopPropagation()};
_.Up.Object.defineProperties(T4.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var E,B;return _.a_.unsafeClone((E=this.liveReactionsData)==null?void 0:E.emojiButtonData)||((B=this.data)==null?void 0:B.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var E;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((E=this.data)==null||!E.maybeShowNewnessDot)}}});
T4.prototype.expandedButtonsChanged=T4.prototype.expandedButtonsChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.LM),_.t("design:type",Object)],T4.prototype,"ytLiveChatReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],T4.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],T4.prototype,"reactionControlPanelExpanded",void 0);_.k([_.X({selectorArgs:["data.liveReactionsDataEntityKey"],selector:nXg}),_.t("design:type",Object)],T4.prototype,"liveReactionsData",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],T4.prototype,"isDarkTheme",void 0);_.k([_.X(),_.t("design:type",Object)],T4.prototype,"newnessDotEligible",void 0);
_.k([_.S("liveReactionsData","data.expandedButtons"),_.t("design:type",Object),_.t("design:paramtypes",[])],T4.prototype,"expandedButtonsData",null);_.k([_.S("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.X({reflectToAttribute:!0}),_.t("design:type",Object),_.t("design:paramtypes",[])],T4.prototype,"showNewnessDot",null);_.k([_.$7("#expanded-buttons"),_.t("design:type",HTMLElement)],T4.prototype,"expandedButtons",void 0);
_.k([_.EM("expandedButtonsData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],T4.prototype,"expandedButtonsChanged",null);T4=_.k([_.QE({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],T4);
_.A(T4,"yt-reaction-control-panel-view-model",function(){if(sRt===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;hNT===void 0&&(hNT=document.createElement("template"));var T=hNT;I.call(B,T.content.cloneNode(!0),E.content.firstChild);sRt=E}E=sRt;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var eH=new _.M3("yt-live-chat"),urd=Date.parse("2024-7-24"),la=function(){var E=_.r.apply(this,arguments)||this;E.emojiManager=_.Gm;E.newnessDotEligible=!1;E.newnessDotImpressionCounted=!1;E.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return E};
_.L(la,_.r);_.l=la.prototype;_.l.emojiCustomizationEnabledChanged=function(){var E;((E=this.data)==null?0:E.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((E=eH.getCreationTime("emoji-customization-count"))&&E<urd&&eH.set("emoji-customization-count","0"),E=Number(eH.get("emoji-customization-count"))||0,E<3&&(this.newnessDotEligible=!0,eH.set("emoji-customization-count",(E+1).toString())),this.newnessDotImpressionCounted=!0)};
_.l.hideNewnessDot=function(){this.newnessDotEligible=!1;eH.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.l.handleReactionsMute=function(E){var B=_.nC(),I=_.wA(206221),T={checkboxData:{state:E?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};B&&_.Al(B,I,T);this.reactionsMuted=E};
_.l.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.l.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}}};
_.Up.Object.defineProperties(la.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var E;return(!((E=this.liveReactionsData)==null||!E.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
la.prototype.liveReactionsSettingChanged=la.prototype.liveReactionsSettingChanged;la.prototype.emojiCustomizationEnabledChanged=la.prototype.emojiCustomizationEnabledChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],la.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],la.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.LM),_.t("design:type",Object)],la.prototype,"ytLiveChatReduxBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],la.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],la.prototype,"data",void 0);_.k([_.X(),_.t("design:type",_.uF)],la.prototype,"emojiManager",void 0);_.k([_.X(),_.t("design:type",Object)],la.prototype,"newnessDotEligible",void 0);_.k([_.X(),_.t("design:type",Object)],la.prototype,"newnessDotImpressionCounted",void 0);
_.k([_.X({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:ML7}),_.t("design:type",Boolean)],la.prototype,"liveReactionsSetting",void 0);_.k([_.X({selectorArgs:["data.liveReactionsDataEntityKey"],selector:nXg}),_.t("design:type",Object)],la.prototype,"liveReactionsData",void 0);_.k([_.X({value:function(){var E=_.d("enable_lwe_web_mute"),B=eH.get("allow-reactions");return B===void 0?!1:!B&&E}}),
_.t("design:type",Boolean)],la.prototype,"reactionsMuted",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],la.prototype,"liveReactionsEnabled",null);_.k([_.EM("data.emojiCustomizationEnabled"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],la.prototype,"emojiCustomizationEnabledChanged",null);
_.k([_.EM("liveReactionsEnabled"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],la.prototype,"liveReactionsSettingChanged",null);la=_.k([_.QE({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],la);
_.A(la,"yt-reaction-control-panel-overlay-view-model",function(){if(mpd===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;zN7===void 0&&(zN7=document.createElement("template"));var T=zN7;I.call(B,T.content.cloneNode(!0),E.content.firstChild);mpd=E}E=mpd;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var LyH={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(E){var B=this.$.pickers.selected;if(B){_.n(this.hostElement).removeAttribute(B+"-open");var I="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(I="#picker-buttons",B==="emoji"&&_.n(this.hostElement).querySelector("#emoji-picker-button")&&(I="#emoji-picker-button"));if(I=_.n(this.hostElement).querySelector(I).querySelector("#"+B))I.active=!1}I=E;B==E&&(I=null);B!=E&&
_.n(this.hostElement).setAttribute(E+"-open","");this.$.pickers.selected=I;_.I2(this.hostElement,"yt-live-chat-picker-changed",[I])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var ci=function(){var E=_.r.apply(this,arguments)||this;E.numSentMessages=0;E.timeoutDurationMs=0;E.timeoutMs=0;E.lastTimeoutTimeMs=0;E.pendingMessageId="";E.hasFiredInitialFocusActions=!1;E.isBeforeFocusEnabled=!0;E.id="";E.characterCount=0;E.maxCharacterLimit=0;E.remainingCharacterCount=0;E.inputExpanded=!1;E.buttonOverrides={iconPosition:"icon-only"};E.inReplyPanel=!1;E.countdownRatio=0;E.isTooltipVisible=!1;E.tooltipTimeout=1E4;E.systemIcons=_.d("kevlar_system_icons");E.tallerEmojiPicker=_.d("live_chat_taller_emoji_picker");
E.blockSendMessageWithCountdown=!_.d("live_chat_enable_send_button_in_slow_mode");E.sendReplyMessageInFlight=!1;E.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"};E.onResize=function(){E.maybeToggleCharacterCount()};
return E};
_.L(ci,_.r);_.l=ci.prototype;
_.l.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"}}}};
_.l.attached=function(){window.addEventListener("resize",this.onResize)};
_.l.detached=function(){window.removeEventListener("resize",this.onResize)};
_.l.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.l.sendMessage=function(){var E=this,B,I,T,e;return _.a(function(c){if(E.sendDisabled)return c.return();E.isTooltipVisible&&_.I2(E.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(E.data.sendButton&&E.data.sendButton.buttonRenderer){E.input.completeEmojis();B=E.data.sendButton.buttonRenderer.serviceEndpoint;if(!B)return c.return();T=((I=_.h(B,_.fr$))==null?void 0:I.clientIdPrefix)||"";e={client_message_id:T+String(E.numSentMessages++),rich_message:_.GI(E.input.liveChatRichMessageInput)};
E.pendingMessageId=e.client_message_id;E.inReplyPanel&&(E.sendReplyMessageInFlight=!0);_.l1(E.hostElement,[B,e]);E.input.setLiveChatRichMessageInput(null)}_.ER(c)})};
_.l.handleSendButtonAction=function(E){E.detail.actionName==="yt-service-request"&&(E.stopPropagation(),this.sendMessage())};
_.l.onSendCompleted=function(E,B){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(E=this.get("timeoutDurationUsec",B.data))&&this.handleTimeout(Number(E)/1E3);this.errorMessage=this.get("errorMessage",B.data);this.pendingMessageId=""};
_.l.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.I2(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.l.handlePickerButtonToggle=function(E){E=E.detail.targetId;this.ytPickerBehavior.togglePicker_(E);if(E==="emoji")this.input.focus();else if(E==="qna-start-panel"){var B,I;(B=_.n(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(I=B.querySelector("#qna-creator-text-input-field"))==null||I.focus()}};
_.l.onComponentReplaced=function(E){var B,I;E.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((B=E.replacement.liveChatMessageInputRenderer)==null?0:(I=B.headerRenderer)==null?0:I.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.l.onEmojiSelect=function(E){this.input.focus();this.input.insertEmoji(E.detail)};
_.l.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.l.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.I2(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.I2(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.l.onOpenPopupAction=function(E,B){var I=this;B===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.I2(I.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.l.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.l.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.l.focusChanged=function(){this.maybeToggleCharacterCount()};
_.l.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var E=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",E>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.l.computeId=function(){return this.data&&this.data.targetId||""};
_.l.computeSendDisabled=function(E,B,I,T){E=!!(this.blockSendMessageWithCountdown&&I||!E||B&&E>B||T);(B=_.n(this.hostElement).querySelector("#send-button"))&&B.children.length&&(B.children[0].disabled=E);return E};
_.l.handleTimeout=function(E){this.timeoutDurationMs=this.timeoutMs=E;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.l.updateTimeout=function(E){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(E-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=E,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.l.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.l.onErrorMessageEdit=function(E){this.input.setLiveChatRichMessageInput(E.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.l.errorMessageChanged=function(){var E=this;_.Gg(function(){_.I2(E.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.l.computeAuthorNameColor=function(E){var B;if(_.d("live_chat_author_name_color_usernames")&&(E==null?0:(B=E.authorName)==null?0:B.simpleText))return _.OEJ(_.nsf(E.authorName.simpleText));if(_.d("live_chat_seed_color_usernames")&&(E==null?0:E.authorSeedColorArgb))return _.OEJ(_.DN(E.authorSeedColorArgb));if(_.d("live_chat_colored_usernames"))return"#cc0000";var I;return _.d("live_chat_simple_color_usernames")&&(E==null?0:(I=E.authorName)==null?0:I.simpleText)&&(E==null?0:E.authorUsernameColorLight)&&
(E==null?0:E.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.DN(E.authorUsernameColorDark):_.DN(E.authorUsernameColorLight):""};
_.l.onIsTooltipVisibleChanged=function(){var E=_.n(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){E.hidden=!1;E.setAttribute("role","alert")},0):(E.hidden=!0,E.removeAttribute("role"))};
_.l.onFocusedChanged=function(E){this.inputFocused=E.detail.value};
_.Up.Object.defineProperties(ci.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 E;return!((E=this.data)==null||!E.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?void 0:(B=E.pickers)==null?void 0:B.find(function(I){return I.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var E=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return E?this.ytRendererBehavior.getSimpleString(E):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
ci.prototype.onIsTooltipVisibleChanged=ci.prototype.onIsTooltipVisibleChanged;ci.prototype.errorMessageChanged=ci.prototype.errorMessageChanged;ci.prototype.onErrorMessageEdit=ci.prototype.onErrorMessageEdit;ci.prototype.onErrorMessageDismiss=ci.prototype.onErrorMessageDismiss;ci.prototype.focusChanged=ci.prototype.focusChanged;ci.prototype.characterCountChanged=ci.prototype.characterCountChanged;ci.prototype.onEmojiSelect=ci.prototype.onEmojiSelect;ci.prototype.handlePickerButtonToggle=ci.prototype.handlePickerButtonToggle;
ci.prototype.onSendError=ci.prototype.onSendError;ci.prototype.onSendCompleted=ci.prototype.onSendCompleted;ci.prototype.sendMessage=ci.prototype.sendMessage;ci.prototype.dataChanged=ci.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],ci.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(LyH.YtPickerBehavior),_.t("design:type",Object)],ci.prototype,"ytPickerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.xC.YtLiveChatTooltipTargetingBehavior),_.t("design:type",Object)],ci.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ci.prototype,"hasFiredInitialFocusActions",void 0);
_.k([_.X(),_.t("design:type",Object)],ci.prototype,"isBeforeFocusEnabled",void 0);_.k([_.X(),_.t("design:type",Object)],ci.prototype,"data",void 0);_.k([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.t("design:type",Object)],ci.prototype,"id",void 0);_.k([_.X(),_.t("design:type",Object)],ci.prototype,"characterCount",void 0);_.k([_.X(),_.t("design:type",Object)],ci.prototype,"maxCharacterLimit",void 0);
_.k([_.X(),_.t("design:type",Object)],ci.prototype,"remainingCharacterCount",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ci.prototype,"inputExpanded",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],ci.prototype,"inputFocused",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],ci.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.k([_.X(),_.t("design:type",_.Nk)],ci.prototype,"participantsManager",void 0);
_.k([_.X(),_.t("design:type",Object)],ci.prototype,"buttonOverrides",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ci.prototype,"inReplyPanel",void 0);_.k([_.S("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ci.prototype,"sendDisabled",null);_.k([_.X(),_.t("design:type",Object)],ci.prototype,"countdownRatio",void 0);
_.k([_.S("countdownRatio"),_.t("design:type",Number),_.t("design:paramtypes",[])],ci.prototype,"countdownStrokeDashOffset",null);_.k([_.S("countdownRatio"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ci.prototype,"countdownActive",null);_.k([_.S("data.interactionMessage"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ci.prototype,"hasInteractionMessage",null);
_.k([_.S("data.emojiPickerButton"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ci.prototype,"hasEmojiPickerButton",null);_.k([_.S("data, characterCount"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ci.prototype,"showAvatar",null);_.k([_.S("data.pickers"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ci.prototype,"hasProductPickerPanelViewModel",null);
_.k([_.X(),_.t("design:type",Object)],ci.prototype,"errorMessage",void 0);_.k([_.X(),_.t("design:type",Object)],ci.prototype,"genericErrorMessage",void 0);_.k([_.X(),_.t("design:type",Object)],ci.prototype,"isTooltipVisible",void 0);_.k([_.X(),_.t("design:type",Object)],ci.prototype,"tooltipTimeout",void 0);_.k([_.S("data.onInitialFocusCommand"),_.t("design:type",String),_.t("design:paramtypes",[])],ci.prototype,"tooltipMessage",null);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ci.prototype,"systemIcons",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ci.prototype,"tallerEmojiPicker",void 0);_.k([_.S("data"),_.t("design:type",String),_.t("design:paramtypes",[])],ci.prototype,"authorNameColor",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ci.prototype,"blockSendMessageWithCountdown",void 0);_.k([_.X(),_.t("design:type",Object)],ci.prototype,"sendReplyMessageInFlight",void 0);
_.k([_.$7("#input"),_.t("design:type",_.$QD)],ci.prototype,"input",void 0);_.k([_.$7("#count"),_.t("design:type",HTMLElement)],ci.prototype,"count",void 0);_.k([_.$7("#input-container"),_.t("design:type",HTMLElement)],ci.prototype,"inputContainer",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ci.prototype,"dataChanged",null);
_.k([_.RN("yt-live-chat-send-message"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype",Promise)],ci.prototype,"sendMessage",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[Event,_.W$]),_.t("design:returntype")],ci.prototype,"onSendCompleted",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ci.prototype,"onSendError",null);
_.k([_.RN("yt-live-chat-icon-toggle-button-renderer-toggle"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],ci.prototype,"handlePickerButtonToggle",null);_.k([_.RN("yt-emoji-select"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],ci.prototype,"onEmojiSelect",null);
_.k([_.EM("characterCount"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ci.prototype,"characterCountChanged",null);_.k([_.EM("inputFocused"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ci.prototype,"focusChanged",null);_.k([_.RN("yt-live-chat-error-message-dismiss"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ci.prototype,"onErrorMessageDismiss",null);
_.k([_.RN("yt-live-chat-error-message-edit"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],ci.prototype,"onErrorMessageEdit",null);_.k([_.EM("errorMessage"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ci.prototype,"errorMessageChanged",null);_.k([_.EM("isTooltipVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ci.prototype,"onIsTooltipVisibleChanged",null);
ci=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],ci);
_.A(ci,"yt-live-chat-message-input-renderer",function(){if(VG8===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;fhm===void 0&&(fhm=document.createElement("template"));var T=fhm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);VG8=E}E=VG8;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var xp9;var GEI;var ia=function(){var E=_.r.apply(this,arguments)||this;E.systemIcons=_.d("kevlar_system_icons");E.firedOnClickCommand=!1;E.inReplyPanel=!1;return E};
_.L(ia,_.r);
ia.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"}}}};
ia.prototype.onButtonToggle=function(E){E.target.disabled||this.ytPickerBehavior.togglePicker_(E.detail.targetId)};
ia.prototype.onClick=function(){var E=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.I2(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return E.firedOnClickCommand=!1},5E3))};
_.Up.Object.defineProperties(ia.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?void 0:(B=E.panels)==null?void 0:B.find(function(I){return I.liveChatProductPickerPanelViewModel}))!==void 0}}});
ia.prototype.onButtonToggle=ia.prototype.onButtonToggle;_.k([_.g(LyH.YtPickerBehavior),_.t("design:type",Object)],ia.prototype,"ytPickerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ia.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ia.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ia.prototype,"systemIcons",void 0);_.k([_.X({reflectToAttribute:!1}),_.t("design:type",Object)],ia.prototype,"firedOnClickCommand",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ia.prototype,"inReplyPanel",void 0);_.k([_.S("data.pickers"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ia.prototype,"hasProductPickerPanelViewModel",null);
_.k([_.RN("yt-live-chat-icon-toggle-button-renderer-toggle"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],ia.prototype,"onButtonToggle",null);ia=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],ia);
_.A(ia,"yt-live-chat-restricted-participation-renderer",function(){if(GEI===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;xp9===void 0&&(xp9=document.createElement("template"));var T=xp9;I.call(B,T.content.cloneNode(!0),E.content.firstChild);GEI=E}E=GEI;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var pv=function(){var E=_.r.apply(this,arguments)||this;E.genericErrorMessage=_.jj("Error, try again.");E.inReplyPanel=!1;E.hideBorder=!1;return E};
_.L(pv,_.r);pv.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}}}}}};
_.Up.Object.defineProperties(pv,{template:{configurable:!0,enumerable:!0,get:function(){return A3d()}}});
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],pv.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],pv.prototype,"genericErrorMessage",void 0);_.k([_.X(),_.t("design:type",Object)],pv.prototype,"inReplyPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],pv.prototype,"hideBorder",void 0);
pv=_.k([_.QE({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],pv);_.A(pv,"yt-live-chat-engagement-panel-input-renderer",function(){return A3d()},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var OsH,nu1;OsH=_.wA(115994);nu1=_.wA(115993);_.Y0=function(E,B,I){var T=this;var e=I.dragDownAction;this.layer=0;this.JSC$19792_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return T.dragDownAction()}}}};
this.JSC$19792_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return T.dragDownAction()}}}};
this.fullscreen=!1;var c=_.lu();_.eu(c,OsH,this.layer);_.eu(c,nu1,this.layer);this.dragDownAction=function(){e();_.np(c,{visualElement:T.fullscreen?OsH:nu1})};
this.gesture=new _.Il(E,B,this.JSC$19792_watchConfig,"pandown");this.attach()};
_.Y0.prototype.attach=function(){this.gesture.attach()};
_.Y0.prototype.detach=function(){this.gesture.detach()};
_.Y0.prototype.update=function(E){this.fullscreen=E;this.gesture.config=E?this.JSC$19792_watchFullScreenConfig:this.JSC$19792_watchConfig};var MAO={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(E){if(E&&E.length==1&&Array.isArray(E[0].loggingUrls)){E=_.a_.unsafeClone(E[0]);var B=this.macros||{},I=this.getAdModuleClient_();if(!I)return _.i1();E.loggingUrls.forEach(function(T){if(T.baseUrl){var e=T.baseUrl;var c=B;c=c===void 0?{}:c;e=I.getOptions().includes("replaceUrlMacros")?_.HWV(I,"replaceUrlMacros",{url:e,additionalMapping:c}):e;T.baseUrl=e}},this);
E=[E]}return _.l1(this.hostElement,E)},
getAdModuleClient_:function(){var E=_.jx(this);return E?(E=E.getPlayer())?new _.iY(E):null:null}}]};var Hs8;var aq=function(){var E=_.r.apply(this,arguments)||this;E.isCollapsed=!1;E.modernPanels=_.d("kevlar_watch_modern_panels");E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return E};
_.L(aq,_.r);_.l=aq.prototype;_.l.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.onDonateTap=function(){var E=this.get("data.donateButton.buttonRenderer.command");if(E){var B=_.nC(),I=this.get("data.donateButton.buttonRenderer.trackingParams");B&&I&&_.Al(B,_.Yg(I));this.ytOpenPopupBehavior.openPopup(E)}};
_.l.onShowMore=function(){this.isCollapsed=!1;var E=_.nC(),B=this.get("data.expandButton.buttonRenderer.trackingParams");E&&B&&_.Al(E,_.Yg(B))};
_.l.onShowLess=function(){this.isCollapsed=!0};
_.l.dataChanged=function(){_.Dk(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.l.onDarkModeToggledAction=function(E){this.isDarkTheme=E};
_.l.handleUpdate=function(E){if(E=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",E))this.set("data.startLabel",E.startLabel),this.set("data.endLabel",E.endLabel),this.set("data.progress",E.progress),this.set("data.amountRaisedLabel",E.amountRaisedLabel),this.dataChanged()};
_.l.handleOpenPopupAction=function(E){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",E)&&_.I2(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.l.computeHeaderBackgroundUrl=function(E,B){if(E)return B?E.headerBackgroundDarkUrl:E.headerBackgroundUrl};
_.l.isProgressBarVisible=function(E){return!(!E||E.progress===void 0)};
_.l.headerBackgroundClass=function(){return _.HA("HTML_DIR")==="rtl"?"flip":""};
aq.prototype.dataChanged=aq.prototype.dataChanged;_.k([_.g(_.E6.YtOpenPopupBehavior),_.t("design:type",Object)],aq.prototype,"ytOpenPopupBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],aq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],aq.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],aq.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],aq.prototype,"isCollapsed",void 0);_.k([_.X({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.t("design:type",String)],aq.prototype,"headerBackgroundUrl",void 0);_.k([_.X(),_.t("design:type",Boolean)],aq.prototype,"isDarkTheme",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aq.prototype,"modernPanels",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aq.prototype,"dataChanged",null);aq=_.k([_.b({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],aq);
_.A(aq,"ytd-donation-shelf-renderer",function(){if(Hs8!==void 0)return Hs8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Hs8=E},{mode:1});var N_8;var vi=function(){return _.r.apply(this,arguments)||this};
_.L(vi,_.r);_.k([_.X(),_.t("design:type",Object)],vi.prototype,"data",void 0);vi=_.k([_.b({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],vi);
_.A(vi,"ytd-donation-unavailable-renderer",function(){if(N_8!==void 0)return N_8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return N_8=E},{mode:1});var gug;var y7=function(){return _.r.apply(this,arguments)||this};
_.L(y7,_.r);y7.prototype.computeIconType=function(E){return E?"yt-icons:"+E.toLowerCase():null};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],y7.prototype,"data",void 0);y7=_.k([_.b({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],y7);
_.A(y7,"ytd-limited-state-message-renderer",function(){if(gug!==void 0)return gug;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return gug=E},{mode:1});var Sht;var Cv=function(){return _.r.apply(this,arguments)||this};
_.L(Cv,_.r);Cv.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Cv.prototype.onTap=function(E){var B=this.data&&this.data.endpoint;B&&!_.XZ(_.W8(E),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.$O(this.hostElement,"yt-navigate",{endpoint:B})};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Cv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Cv.prototype,"data",void 0);Cv=_.k([_.b({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Cv);
_.A(Cv,"ytd-autotagging-metadata-renderer",function(){if(Sht!==void 0)return Sht;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Sht=E},{mode:1});var J8d;var wR=function(){return _.r.apply(this,arguments)||this};
_.L(wR,_.r);wR.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],wR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],wR.prototype,"data",void 0);wR=_.k([_.b({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],wR);
_.A(wR,"ytd-autotagging-metadata-row-renderer",function(){if(J8d!==void 0)return J8d;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return J8d=E},{mode:1});var Wyd;var XY8;var ZH=function(){var E=_.r.apply(this,arguments)||this;E.engagementPanelContent=!1;return E};
_.L(ZH,_.r);ZH.prototype.computeHasDividerLine=function(E,B){return E&&!B};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ZH.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.t("design:type",Boolean)],ZH.prototype,"hasDividerLine",void 0);_.k([_.X(),_.t("design:type",Object)],ZH.prototype,"engagementPanelContent",void 0);
ZH=_.k([_.b({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],ZH);
_.A(ZH,"ytd-metadata-row-header-renderer",function(){if(XY8!==void 0)return XY8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return XY8=E},{mode:1});var r8T;var Pi=function(){return _.r.apply(this,arguments)||this};
_.L(Pi,_.r);Pi.prototype.computeHasDividerLine=function(E){return E};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Pi.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.t("design:type",Boolean)],Pi.prototype,"hasDividerLine",void 0);Pi=_.k([_.b({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Pi);
_.A(Pi,"ytd-metadata-row-renderer",function(){if(r8T!==void 0)return r8T;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return r8T=E},{mode:1});var bsT;var z4=function(){return _.r.apply(this,arguments)||this};
_.L(z4,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],z4.prototype,"data",void 0);z4=_.k([_.b({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],z4);
_.A(z4,"ytd-metadata-with-image-row-renderer",function(){if(bsT!==void 0)return bsT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return bsT=E},{mode:1});var ouI;var me=function(){var E=_.r.apply(this,arguments)||this;E.rounded=!0;E.fixie=!1;E.fullWidth=!1;return E};
_.L(me,_.r);_.l=me.prototype;_.l.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.onDataChanged=function(){var E=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(B){E.onEndpointLinkKeyPress(B)}))};
_.l.onEndpointLinkKeyPress=function(E){E.target===this.endpointLink&&E.keyCode===13&&_.$O(this.hostElement,"click")};
_.l.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var E;if((E=this.data)==null?0:E.endpoint)_.cN(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.l.onYtNavigate=function(E){this.endpointHref||(E.stopPropagation(),E.preventDefault())};
_.l.onInformationButtonContainerClick=function(E){E.target.id!=="information-button-container"&&(E.stopPropagation(),E.preventDefault())};
_.l.computeStyle=function(E){return E};
_.l.computeIsThumbnailStyle=function(E){return E==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.l.computeThumbnailWidth=function(E){switch(E){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}};
_.l.computeThumbnailObjectFit=function(E){switch(E){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Up.Object.defineProperties(me.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?0:E.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
me.prototype.onYtNavigate=me.prototype.onYtNavigate;me.prototype.onClick=me.prototype.onClick;me.prototype.onDataChanged=me.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],me.prototype,"componentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],me.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],me.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.t("design:type",String)],me.prototype,"componentStyle",void 0);_.k([_.X({computed:"computeIsThumbnailStyle(data.style)"}),_.t("design:type",Boolean)],me.prototype,"isThumbnailStyle",void 0);_.k([_.X({computed:"computeThumbnailObjectFit(data.style)"}),_.t("design:type",String)],me.prototype,"thumbnailObjectFit",void 0);
_.k([_.X({computed:"computeThumbnailWidth(data.style)"}),_.t("design:type",Number)],me.prototype,"thumbnailWidth",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],me.prototype,"rounded",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],me.prototype,"fixie",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],me.prototype,"fullWidth",void 0);_.k([_.$7("#endpoint-link"),_.t("design:type",HTMLAnchorElement)],me.prototype,"endpointLink",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],me.prototype,"onDataChanged",null);_.k([_.S("data.endpoint"),_.t("design:type",Object),_.t("design:paramtypes",[])],me.prototype,"endpointHref",null);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],me.prototype,"onClick",null);
_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],me.prototype,"onYtNavigate",null);me=_.k([_.b({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],me);
_.A(me,"ytd-rich-metadata-renderer",function(){if(ouI!==void 0)return ouI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ouI=E},{mode:_.qi("kevlar_poly_si_batch_j075")?1:2});var A8t;var Q7=function(){var E=_.r.apply(this,arguments)||this;E.fixie=!1;E.fullWidth=!1;return E};
_.L(Q7,_.r);Q7.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Q7.prototype.computeHasDividerLine=function(E){return E};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Q7.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Q7.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.t("design:type",Boolean)],Q7.prototype,"hasDividerLine",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Q7.prototype,"fixie",void 0);_.k([_.X(),_.t("design:type",Object)],Q7.prototype,"fullWidth",void 0);
Q7=_.k([_.b({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Q7);
_.A(Q7,"ytd-rich-metadata-row-renderer",function(){if(A8t!==void 0)return A8t;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return A8t=E},{mode:1});var dR=function(){var E=_.r.apply(this,arguments)||this;E.engagementPanelContent=!1;E.fixie=!1;E.fullWidth=!1;return E};
_.L(dR,_.r);
dR.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"}}}};
dR.prototype.computeCollapsibleItems=function(E,B,I){return E===void 0||B===void 0||I===void 0||I?[]:E.slice(B)};
dR.prototype.computeAlwaysShownItems=function(E,B){return E&&E.length?E.slice(0,B):[]};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],dR.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],dR.prototype,"collapsed",void 0);
_.k([_.X({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.t("design:type",Array)],dR.prototype,"alwaysShownItems",void 0);_.k([_.X({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.t("design:type",Array)],dR.prototype,"collapsibleItems",void 0);_.k([_.X(),_.t("design:type",Object)],dR.prototype,"engagementPanelContent",void 0);_.k([_.X(),_.t("design:type",Object)],dR.prototype,"fixie",void 0);
_.k([_.X(),_.t("design:type",Object)],dR.prototype,"fullWidth",void 0);dR=_.k([_.b({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],dR);
_.A(dR,"ytd-metadata-row-container-renderer",function(){if(Wyd!==void 0)return Wyd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Wyd=E},{mode:1});var jRm;var hp=function(){var E=_.r.apply(this,arguments)||this;E.currentPageUrl="";E.baseUrl="";E.isHiddenByUser=null;E.hidden=!1;E.showAboveScrim=!1;E.watchNextGrid=_.d("kevlar_watch_grid");E.modernButtons=_.d("web_modern_buttons");E.roundedContainer=!0;E.noBorder=!1;E.roundBackground=!_.d("live_chat_round_background_killswitch");E.overflowHideChat=_.d("live_chat_overflow_hide_chat");E.forceDarkTheme=!1;E.theaterWatchWhile=!1;E.isListeningForPlayerProgress=!1;E.JSC$19828_playerEvents=new Map;E.isFrameReady=
!1;E.player=null;E.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 E};
_.L(hp,_.r);_.l=hp.prototype;_.l.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Ta(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.l.created=function(){var E=this;this.handleIframeEventListener=function(B){E.handleIframeEvent(B)};
this.handleKeyboardEventListener=function(B){E.handleKeyboardEvent(B)};
this.JSC$19828_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19828_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19828_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19828_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19828_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.l.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()};
_.l.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};
_.l.computeBaseUrl=function(E){var B="/live_chat";this.isChatReplay()&&(B="/live_chat_replay");return _.Bd(_.Ez(_.R8(_.Se(E),B),null),"").toString()};
_.l.dataChanged=function(){_.d("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.l.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var E=this.url;if(this.isChatReplay()&&this.player){var B=Math.floor(this.player.getProgressState().current*1E3);E=_.Wp(_.Se(E),"playerOffsetMs",B.toString()).toString()}B=this.chatframe;try{var I=E==="about:blank"?_.jBz:_.pr(E),T=B.contentDocument.location,e=_.yC(I);e!==void 0&&T.replace(e)}catch(c){B.src=E}}};
_.l.collapsedChanged=function(){_.$O(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.l.handleIframeEvent=function(E){if(E&&this.baseUrl.startsWith(E.origin)&&E.source===this.chatframe.contentWindow&&_.B6(E.data))if(E.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(E);else if(E.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(E.data["yt-show-feedback-dialog"]){var B=_.Q().resolve(_.Fx(_.v0X));if(B){var I=E.ports,T;I&&I.length&&(T=function(){I[0].postMessage({})});
E=E.data["yt-show-feedback-dialog"];B.showFeedbackDialog(E.customProductData,E.feedbackContent,T,E.bucket)}}else if(E.data["yt-show-survey"])_.$O(this.hostElement,"yt-show-survey",E.data["yt-show-survey"]);else if(E.data["yt-purchase-membership"])_.Q().resolve(_.Dt).resolveCommand(E.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(E.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(E.data["yt-tunnel-out-live-service-request"]);else if(E.data["yt-user-activity"])_.Fg();
else if(E.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(E.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(E.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(E.data["yt-open-popup"]);else if(E.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(E.data["yt-log-flow-logging-event-command"]);else if(E.data["yt-hide-live-chat"])this.onShowHideChat();else E.data["yt-report-moderation-state-log"]&&
this.player&&(B={cpn:this.player.getVideoData().cpn},_.hK("liveChatBeingModerated",B))};
_.l.attachLiveChatResponseVeTrackingParams=function(E){E=_.Yg(E);var B=_.nC(),I=_.WA("liveChatRenderer.trackingParams",this.data);B&&I&&_.XD(B,_.Yg(I),E)};
_.l.handleBuyflowMessages=function(E){var B=E.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,I=E.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,T=E.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.UZB(_.eD(_.JR),B.replace(/-/g,"+").replace(/_/g,"/"),function(e){E.ports[0].postMessage({success:!0,buyFlowResponse:e})},void 0,function(e){E.ports[0].postMessage({success:!1,
error:e&&e.message||"Buyflow rejected without error."})},_.ZB().get("hl"),void 0,function(){E.ports[0].postMessage({closed:!0})},I,T)};
_.l.setupPlayerProgressRelay=function(){var E=this;if(!this.isListeningForPlayerProgress){var B=_.k3();B!=null&&B.getPlayerPromise&&(B.getPlayerPromise().then(function(I){E.playerApiReady(I)}),this.isListeningForPlayerProgress=!0)}};
_.l.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.l.playerApiReady=function(E){this.setPlayer(E)};
_.l.playerProgressHandler=function(){if(this.player){var E=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":E.current})}};
_.l.playerAdStartHandler=function(E){this.postToContentWindow({"yt-player-ad-start":E})};
_.l.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.l.playerStateChangeHandler=function(E){this.postToContentWindow({"yt-player-state-change":E})};
_.l.setPlayer=function(E){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19828_playerEvents);E&&(this.player=E,this.ytPlayerListenerBehavior.listenToPlayerEvents(E,this.JSC$19828_playerEvents),_.$O(this.hostElement,"player-api-ready"))};
_.l.liveChatPageUrl=function(E,B,I,T){return!I||B?"about:blank":I.liveChatRenderer?(B=_.Se(this.currentPageUrl).JSC$7917_queryData_,ssg(B),E=_.Se(E),B.add("continuation",I.liveChatRenderer.continuations[0].reloadContinuationData.continuation),I=_.Oq()==="USER_INTERFACE_THEME_DARK",(T||I)&&B.add("dark_theme","true"),_.Ez(E,B),T=_.Se(E.toString()),I=T.JSC$7917_queryData_,"SESSION_INDEX"in _.nc&&(I.add("authuser",_.HA("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.nc&&I.add("pageId",_.HA("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.nc&&I.add("sdc",_.HA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),T.toString()):""};
_.l.isCollapsed=function(E,B){return B!==null?B:this.isChatReplay()||E&&E.conversationBarRenderer&&E.conversationBarRenderer.availabilityMessage?!0:E?E.liveChatRenderer?E.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.d("live_chat_hide_premiere_replay_message")||E.conversationBarRenderer&&E.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.l.isHidden=function(E,B,I){var T=B&&B.conversationBarRenderer&&B.conversationBarRenderer.availabilityMessage,e=B&&B.liveChatRenderer&&B.liveChatRenderer.showHideButton,c=B&&B.liveChatRenderer&&B.liveChatRenderer.showButton;return I&&E&&!T&&!c||!I&&E&&!T&&!e?!0:B&&B.liveChatRenderer&&B.liveChatRenderer.initialDisplayState?B.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.l.computeButtonOverride=function(E,B){if(E&&B)return{type:"outline"}};
_.l.setCollapsedState=function(E){_.h(E,_.NCV)&&(this.isHiddenByUser=!!_.h(E,_.NCV).collapsed,!this.isHiddenByUser&&_.d("enable_teaser_framework_web_client")&&_.I2(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.l.forwardReduxActionToIframe=function(E){this.postToContentWindow({"yt-live-chat-forward-redux-action":E})};
_.l.onLoopRangeChange=function(E){this.showAboveScrim=!(E==null||!E.postId)};
_.l.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.l.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.l.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.l.sendDarkThemePostMessage=function(E){this.postToContentWindow({"yt-live-chat-set-dark-theme":E})};
_.l.onLiveChatBuyFlowCallback=function(E){this.postToContentWindow({"yt-live-chat-buy-flow-callback":E})};
_.l.handleKeyboardEvent=function(E){(0,_.a_.containsValue)(hq8,E.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:E.type,keyCode:E.keyCode}})};
_.l.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.l.postToContentWindow=function(E){if(this.isFrameReady)try{var B=window.location.protocol+"//"+window.location.host,I;(I=this.chatframe)!=null&&I.contentWindow?this.chatframe.contentWindow.postMessage(E,B):_.OG(new _.P7("Tried posting a message to an iframe with no content window",E))}catch(T){_.xV(T)}};
_.l.shouldHideChatFrame=function(E){return E&&_.d("hide_live_chat_button_when_collapsed")};
_.Up.Object.defineProperties(hp.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.d("live_chat_overflow_hide_chat")||_.d("web_watch_chat_hide_button_killswitch"))return _.d("live_chat_overflow_hide_chat");var E,B,I,T;return!!((E=this.data)==null?0:(B=E.liveChatRenderer)==null?0:(I=B.header)==null?0:(T=I.liveChatHeaderRenderer)==null?0:T.collapseButton)}}});
hp.prototype.collapsedChanged=hp.prototype.collapsedChanged;hp.prototype.urlChanged=hp.prototype.urlChanged;hp.prototype.dataChanged=hp.prototype.dataChanged;hp.prototype.onShowHideChat=hp.prototype.onShowHideChat;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],hp.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],hp.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",_.XK)],hp.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.g(_.E6.YtOpenPopupBehavior),_.t("design:type",Object)],hp.prototype,"ytOpenPopupBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],hp.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],hp.prototype,"currentPageUrl",void 0);
_.k([_.X({computed:"computeBaseUrl(currentPageUrl,data)"}),_.t("design:type",Object)],hp.prototype,"baseUrl",void 0);_.k([_.X({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.t("design:type",String)],hp.prototype,"url",void 0);_.k([_.X(),_.t("design:type",Object)],hp.prototype,"isHiddenByUser",void 0);_.k([_.X({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.t("design:type",Object)],hp.prototype,"hidden",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.t("design:type",Boolean)],hp.prototype,"collapsed",void 0);_.k([_.X({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.t("design:type",Boolean)],hp.prototype,"hideChatFrame",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],hp.prototype,"showAboveScrim",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],hp.prototype,"watchNextGrid",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],hp.prototype,"modernButtons",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],hp.prototype,"roundedContainer",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],hp.prototype,"noBorder",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],hp.prototype,"roundBackground",void 0);
_.k([_.X({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.t("design:type",Object)],hp.prototype,"toggleButtonOverride",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],hp.prototype,"overflowHideChat",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],hp.prototype,"forceDarkTheme",void 0);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],hp.prototype,"enableShowWithoutHideChatButton",null);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],hp.prototype,"theaterWatchWhile",void 0);_.k([_.$7("#chatframe"),_.t("design:type",HTMLIFrameElement)],hp.prototype,"chatframe",void 0);_.k([_.RN("yt-toggle-button"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],hp.prototype,"onShowHideChat",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],hp.prototype,"dataChanged",null);
_.k([_.EM("url"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],hp.prototype,"urlChanged",null);_.k([_.EM("collapsed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],hp.prototype,"collapsedChanged",null);hp=_.k([_.b({is:"ytd-live-chat-frame",disableElementRegistration:!0})],hp);
_.A(hp,"ytd-live-chat-frame",function(){if(jRm!==void 0)return jRm;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return jRm=E},{mode:1});var Upm;var sJ=function(){var E=_.r.apply(this,arguments)||this;E.modern=_.d("web_modern_buttons");E.buttonOverrides={style:"call-to-action",type:"filled"};return E};
_.L(sJ,_.r);sJ.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=_.dE(this.data.backgroundColor)))};
sJ.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var E=this.getFormattedStringLoggingDirectives(this.data.headline);E&&this.rendererBehavior.logExplicitClick(E)}};
sJ.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var E=this.getFormattedStringLoggingDirectives(this.data.description);E&&this.rendererBehavior.logExplicitClick(E)}};
sJ.prototype.getFormattedStringLoggingDirectives=function(E){return E&&E.runs&&E.runs.length>0&&E.runs[0]&&E.runs[0].loggingDirectives?E.runs[0].loggingDirectives:null};
sJ.prototype.dataChanged=sJ.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],sJ.prototype,"rendererBehavior",void 0);_.k([_.g(MAO.YtMacroReplacementBehavior),_.t("design:type",Object)],sJ.prototype,"macroReplacementBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],sJ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],sJ.prototype,"navigationEndpoint",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],sJ.prototype,"enableColors",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],sJ.prototype,"modern",void 0);_.k([_.X(),_.t("design:type",Object)],sJ.prototype,"buttonOverrides",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sJ.prototype,"dataChanged",null);sJ=_.k([_.b({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],sJ);
_.A(sJ,"ytd-action-basic-immersive-content-renderer",function(){if(Upm!==void 0)return Upm;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Upm=E},{mode:1});var kEH;var tAg;var ua=function(){return _.r.apply(this,arguments)||this};
_.L(ua,_.r);ua.prototype.dataChanged=function(){var E;((E=this.data)==null?void 0:E.backgroundColor)!==void 0&&_.Dk(this.hostElement,{"--bgu-color":_.dE(this.data.backgroundColor)})};
ua.prototype.onImageTileClick=function(){var E;((E=this.data)==null?0:E.navigationEndpoint)&&_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var B;((B=this.data)==null?0:B.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Up.Object.defineProperties(ua.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var E;if(((E=this.data)==null?void 0:E.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 E;return((E=this.data)==null?void 0:E.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var E,B,I;if(((E=this.data)==null?void 0:(B=E.detailsLine)==null?void 0:B.texts)!=null&&((I=this.data)==null?void 0:I.detailsLine.texts.length)>0){var T;return(T=this.data)==null?void 0:T.detailsLine.texts.map(function(e){return e.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var E,B,I;if(((E=this.data)==null?void 0:(B=E.optionalDetailsLine)==null?void 0:B.texts)!=null&&((I=this.data)==null?void 0:I.optionalDetailsLine.texts.length)>0){var T;return(T=this.data)==null?void 0:T.optionalDetailsLine.texts.map(function(e){return e.text}).join("")}return null}}});
ua.prototype.dataChanged=ua.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ua.prototype,"rendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],ua.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ua.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data.backgroundColor"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ua.prototype,"hasBackgroundColor",null);
_.k([_.S("data.objectFit"),_.t("design:type",Object),_.t("design:paramtypes",[])],ua.prototype,"getObjectFit",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.tileRenderingStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ua.prototype,"hasTileMetadata",null);_.k([_.S("data.detailsLine"),_.t("design:type",Object),_.t("design:paramtypes",[])],ua.prototype,"getSecondaryDetails",null);
_.k([_.S("data.optionalDetailsLine"),_.t("design:type",Object),_.t("design:paramtypes",[])],ua.prototype,"getOptionalDetails",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ua.prototype,"dataChanged",null);ua=_.k([_.b({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],ua);
_.A(ua,"ytd-image-tile-renderer",function(){if(tAg!==void 0)return tAg;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return tAg=E},{mode:1});var foH;var Lv=function(){return _.r.apply(this,arguments)||this};
_.L(Lv,_.r);Lv.prototype.getOpenLinkIcon=function(){return _.d("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Lv.prototype.onSitelinkTap=function(){_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.d("kevlar_command_handler_migration_killswitch"))_.cN(this.hostElement,this.data.clickCommands,this.hostElement);else for(var E=_.p(this.data.clickCommands),B=E.next();!B.done;B=E.next())this.ytComponentBehavior.resolveCommand(B.value)};
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Lv.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Lv.prototype,"rendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Lv.prototype,"data",void 0);Lv=_.k([_.b({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Lv);
_.A(Lv,"ytd-sitelink-renderer",function(){if(foH!==void 0)return foH;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return foH=E},{mode:1});var x0=function(){var E=_.r.apply(this,arguments)||this;E.paddingFix=_.d("enable_ads_web_ep_buenos_aires_and_padding_fix");return E};
_.L(x0,_.r);x0.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"}}}};
x0.prototype.dataChanged=function(){var E=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(B){B.clickTrackingParams&&delete B.clickTrackingParams;E.ytMacroReplacementBehavior.sendServiceRequestAction([B])})};
x0.prototype.shouldHideFooter=function(E){return!(E&&_.d("use_ads_engagement_panel_desktop_footer_cta"))};
_.Up.Object.defineProperties(x0.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?void 0:E.imageTileRenderers)===void 0||((B=this.data)==null?void 0:B.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var T;return(T=_.h(I,n1m))==null?void 0:T.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?void 0:E.imageTileRenderers)===void 0||((B=this.data)==null?void 0:B.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var T;return((T=_.h(I,n1m))==null?void 0:T.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
x0.prototype.dataChanged=x0.prototype.dataChanged;_.k([_.g(MAO.YtMacroReplacementBehavior),_.t("design:type",Object)],x0.prototype,"ytMacroReplacementBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],x0.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],x0.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],x0.prototype,"paddingFix",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data.imageTileRenderers"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],x0.prototype,"removeBorderFromImageTiles",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.imageTileRenderers"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],x0.prototype,"useFooteredMetadataRenderingStyle",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],x0.prototype,"dataChanged",null);x0=_.k([_.b({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],x0);
_.A(x0,"ytd-action-engagement-panel-content-renderer",function(){if(kEH!==void 0)return kEH;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return kEH=E},{mode:1});var VA2;var qh2=_.rp(function(E){var B=E.data;var I=E.customCommandResolver;E=_.oH();_.k4(E,function(){return B().interaction},I);
_.VU(E,{visibilityCallback:function(T){var e,c=(e=B().interaction)==null?void 0:e.onFirstVisible;T&&c&&_.xg(c)},
showOption:_.Xt});return _.w("ad-grid-card-image-full-metadata-view-model",{class:function(){var T;return((T=B().interaction)==null?0:T.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:E,"aria-label":function(){var T,e;return(T=B().interaction)==null?void 0:(e=T.accessibility)==null?void 0:e.label}},_.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.w(_.hM,{data:function(){return B().adImage}},{adImageViewModel:function(T){return _.w(_.Km,{data:T.data,
customCommandResolver:I})}})),_.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.w(_.wU,{cond:function(){return B().headline},
then:function(T){return _.w(_.aS,{text:T,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.w(_.wU,{cond:function(){return B().detailsLine},
then:function(T){return _.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.w(_.hM,{data:T},{adDetailsLineViewModel:function(e){return _.w(_.kk,{data:e.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.w(_.wU,{cond:function(){return B().secondaryDetailsLine},
then:function(T){return _.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.w(_.hM,{data:T},{adDetailsLineViewModel:function(e){return _.w(_.kk,{data:e.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"pi");var Fy8=_.rp(function(E){var B=E.data;var I=E.customCommandResolver;E=_.oH();_.k4(E,function(){return B().interaction},I);
_.VU(E,{visibilityCallback:function(T){var e,c=(e=B().interaction)==null?void 0:e.onFirstVisible;T&&c&&_.xg(c)},
showOption:_.Xt});return _.w("ad-grid-card-image-view-model",{class:function(){var T;return((T=B().interaction)==null?0:T.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:E,"aria-label":function(){var T,e;return(T=B().interaction)==null?void 0:(e=T.accessibility)==null?void 0:e.label}},_.w(_.hM,{data:function(){return B().adImage}},{adImageViewModel:function(T){return _.w(_.Km,{data:T.data,
customCommandResolver:I})}}),_.w("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.w(_.hM,{data:function(){return B().adCardBadge}},{adCardBadgeViewModel:_.D4z})))},"qi");var Dp7=_.rp(function(E){var B=E.data;var I=E.customCommandResolver;E=_.oH();_.k4(E,function(){return B().interaction},I);
_.VU(E,{visibilityCallback:function(T){var e,c=(e=B().interaction)==null?void 0:e.onFirstVisible;T&&c&&_.xg(c)},
showOption:_.Xt});return _.w("ad-grid-card-text-view-model",{class:function(){var T;return((T=B().interaction)==null?0:T.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:E,"aria-label":function(){var T,e;return(T=B().interaction)==null?void 0:(e=T.accessibility)==null?void 0:e.label}},_.w("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.w(_.wU,{cond:function(){return B().title},
then:function(T){return _.w(_.aS,{text:T,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.w("div",{class:function(){return _.d("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.w(_.Zt,{each:function(){var T;
return((T=B())==null?void 0:T.descriptions)||[]},
keyBy:"INDEX"},function(T){return _.w(_.aS,{text:T,className:function(){return _.d("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.w("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.w(_.hM,{data:function(){return B().moreInfoButton}},{adButtonViewModel:function(T){return _.w(_.bg,{data:T.data,
customCommandResolver:I})}})))},"ri");var Kys=_.rp(function(E){var B=E.data;var I=E.customCommandResolver;var T=E.adGridCardCollectionStyle;E=_.oH();_.VU(E,{visibilityCallback:function(e){var c,Y=(c=B().interaction)==null?void 0:c.onFirstVisible;e&&Y&&_.xg(Y)},
showOption:_.Xt});return _.w("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:E,style:function(){return"grid-template-columns: repeat("+AtO(T?T():B().style)+", minmax(0, 1fr));"}},_.w(_.hM,{data:function(){var e;
return(e=B())==null?void 0:e.gridCards}},{adGridCardImageViewModel:function(e){return _.w(Fy8,{data:e.data,
customCommandResolver:I})},
adGridCardImageFullMetadataViewModel:function(e){return _.w(qh2,{data:e.data,customCommandResolver:I})},
adGridCardTextViewModel:function(e){return _.w(Dp7,{data:e.data,customCommandResolver:I})}}))},"si");_.oQ(_.rp(function(E){var B=E.data;E=_.oH();_.k4(E,function(){return B().interaction},jXg);
_.VU(E,{visibilityCallback:function(I){var T,e=(T=B().interaction)==null?void 0:T.onFirstVisible;I&&e&&_.xg(e)},
showOption:_.Xt});return _.w("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:E},_.w("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.w(_.wU,{cond:_.dw4("(min-width: "+((0,_.zo)()+_.Sq)+"px)"),then:function(){return _.w(_.hM,{data:function(){return B().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.w(Kys,{data:I.data,
customCommandResolver:jXg})}})},
else:function(){return _.w(_.hM,{data:function(){return B().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.w(Kys,{data:I.data,
customCommandResolver:jXg,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.w("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.w(_.hM,{data:function(){return B().adButton}},{adButtonViewModel:function(I){return _.w(_.bg,{data:I.data,
customCommandResolver:jXg})}})))},"ti"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;E=_.oH();_.k4(E,function(){return B().interaction},U5m);
_.VU(E,{visibilityCallback:function(I){var T,e=(T=B().interaction)==null?void 0:T.onFirstVisible;I&&e&&_.xg(e)},
showOption:_.Xt});return _.w("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:E},_.w("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.w(_.hM,{data:function(){if(_.dw4("(min-width: "+((0,_.zo)()+_.Sq)+"px)")())var I=B().adGridCardCollection;else{I=Object.assign({},_.h(B().adGridCardCollection,Mbt));var T;I.gridCards!==void 0&&((T=I.gridCards)==null?void 0:T.length)>1?I.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":I.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";I={adGridCardCollectionViewModel:I}}return I}},{adGridCardCollectionViewModel:function(I){return _.w(Kys,{data:I.data,
customCommandResolver:U5m})}})),_.w("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.w(_.hM,{data:function(){return B().adButton}},{adButtonViewModel:function(I){return _.w(_.bg,{data:I.data,
customCommandResolver:U5m})}})))},"ui"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Jh}});var G4=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return E};
_.L(G4,_.r);_.l=G4.prototype;_.l.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"}}}};
_.l.attached=function(){this.getDataFromPlayerAndRender()};
_.l.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.l.getDataFromPlayerAndRender=function(){var E=this,B=_.jx(this.hostElement);B&&B.getPlayerPromise().then(function(I){E.getCachedDataAndListen(I)})};
_.l.getCachedDataAndListen=function(E){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(E,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(E,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=E)};
_.l.resolveCachedActions=function(){var E=_.WA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(E=E&&E())&&!_.a_.isEmpty(E)&&this.sendUpdateEngagementPanelAction(E);(E=(E=_.WA("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&E())&&!_.a_.isEmpty(E)&&this.sendChangeEngagementPanelVisibilityAction(E);(E=(E=_.WA("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&E())&&!_.a_.isEmpty(E)&&this.sendScrollToEngagementPanelCommand(E)};
_.l.sendUpdateEngagementPanelAction=function(E){var B;_.I2(this.hostElement,"yt-update-engagement-panel-action",[(B=_.a_.get(E,"action"))!=null?B:E])};
_.l.sendChangeEngagementPanelVisibilityAction=function(E){_.I2(this.hostElement,"yt-change-engagement-panel-visibility-action",[E])};
_.l.sendScrollToEngagementPanelCommand=function(E){_.I2(this.hostElement,"yt-scroll-to-engagement-panel-command",[E])};
_.l.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.d("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.OG(Error("gm"))};
G4.prototype.dataChanged=G4.prototype.dataChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],G4.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],G4.prototype,"componentBehavior",void 0);_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",_.XK)],G4.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],G4.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],G4.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],G4.prototype,"player",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],G4.prototype,"dataChanged",null);G4=_.k([_.b({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],G4);
_.A(G4,"ytd-ads-engagement-panel-content-renderer",function(){if(VA2!==void 0)return VA2;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
return VA2=E},{mode:1});var RN7;var OJ=function(){var E=_.r.apply(this,arguments)||this;E.player=null;E.JSC$19865_playerEvents=new Map;E.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return E};
_.L(OJ,_.r);_.l=OJ.prototype;_.l.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]]"}}}}}};
_.l.created=function(){this.player=null;this.JSC$19865_playerEvents=new Map;this.JSC$19865_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19865_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19865_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19865_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.l.attached=function(){var E=this,B=_.jx();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));B&&B.getPlayerPromise().then(function(I){E.setPlayer(I);E.set("isPageLoad",!1)})};
_.l.setPlayer=function(E){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19865_playerEvents);this.set("player",E);E&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(E,this.JSC$19865_playerEvents),E.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.l.onLoopRangeChange=function(E){var B=_.Q().resolve(_.Fx(_.oS));if((!B||B.isOnWatch())&&this.hostElement.clientHeight){var I;!E&&((I=this.data)==null?0:I.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.l.onVideoProgress=function(E){var B,I,T=((B=this.player)==null?void 0:(I=B.getPresentingPlayerType)==null?void 0:I.call(B))===2;this.isAdPlaying!==T&&this.set("isAdPlaying",T);var e;if(!T&&(e=this.player)!=null&&e.getLoopRange()){I=this.player.getLoopRange();B=I.startTimeMs;I=I.endTimeMs;T=this.player.getProgressState(1).seekableStart;var c;B<T*1E3&&((c=this.data)==null?0:c.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
E=I<E*1E3;var Y;((Y=this.player)==null?0:Y.getLoopRange())&&E&&this.player.seekTo(B/1E3)}};
_.l.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.l.onYtDeleteClipEngagementPanelCommand=function(E){_.h(E,tbm).command&&this.ytComponentBehavior.resolveCommand(_.h(E,tbm).command)};
_.Up.Object.defineProperties(OJ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.voteCount)||_.jj("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],OJ.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],OJ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],OJ.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",_.XK)],OJ.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],OJ.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],OJ.prototype,"isAdPlaying",void 0);_.k([_.X({reflectToAttribute:!0,value:!0}),_.t("design:type",Boolean)],OJ.prototype,"isPageLoad",void 0);_.k([_.X({reflectToAttribute:!0,value:!0}),_.t("design:type",Boolean)],OJ.prototype,"isDarkTheme",void 0);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],OJ.prototype,"voteCount",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],OJ.prototype,"channelEndpoint",null);_.k([_.S("channelEndpoint"),_.t("design:type",Object),_.t("design:paramtypes",[])],OJ.prototype,"channelHref",null);OJ=_.k([_.b({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],OJ);
_.A(OJ,"ytd-clip-attribution-renderer",function(){if(RN7!==void 0)return RN7;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return RN7=E},{mode:1});var E$O;var nv=function(){var E=_.r.apply(this,arguments)||this;E.player=null;E.JSC$19870_playerEvents=new Map;return E};
_.L(nv,_.r);_.l=nv.prototype;_.l.created=function(){this.player=null;this.JSC$19870_playerEvents=new Map;this.JSC$19870_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19870_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19870_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.l.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.l.attached=function(){var E=this,B=_.jx();B&&B.getPlayerPromise().then(function(I){E.setPlayer(I);E.set("isPageLoad",!1)})};
_.l.setPlayer=function(E){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19870_playerEvents);this.set("player",E);if(E){this.ytPlayerListenerBehavior.listenToPlayerEvents(E,this.JSC$19870_playerEvents);var B;(E==null?void 0:(B=E.getPresentingPlayerType)==null?void 0:B.call(E))===2&&this.playerAdStartHandler()}};
_.l.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.l.onVideoProgress=function(){var E,B,I=((E=this.player)==null?void 0:(B=E.getPresentingPlayerType)==null?void 0:B.call(E))===2;this.isAdPlaying!==I&&this.set("isAdPlaying",I)};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],nv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",_.XK)],nv.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],nv.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],nv.prototype,"isAdPlaying",void 0);
_.k([_.X({reflectToAttribute:!0,value:!0}),_.t("design:type",Boolean)],nv.prototype,"isPageLoad",void 0);nv=_.k([_.b({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],nv);
_.A(nv,"ytd-clip-section-footer-renderer",function(){if(E$O!==void 0)return E$O;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return E$O=E},{mode:1});var BN7;var $ZO;var MO=function(){return _.r.apply(this,arguments)||this};
_.L(MO,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],MO.prototype,"data",void 0);MO=_.k([_.b({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],MO);
_.A(MO,"ytd-clip-ad-state-renderer",function(){if($ZO!==void 0)return $ZO;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return $ZO=E},{mode:1});var IwL;var Hi=function(){var E=_.r.apply(this,arguments)||this;E.value="";E.valid=!1;E.userChangedValue=!1;E.disabled=!1;E.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return E};
_.L(Hi,_.r);_.l=Hi.prototype;_.l.detached=function(){this.userChangedValue=!1};
_.l.handleKeyDown=function(E){if(_.iq)var B=13;else _.$OG&&_.pa?B=13:B=13;E.keyCode===B&&E.preventDefault()};
_.l.handleInput=function(){var E=_.n(this.hostElement).querySelector("#title");if(E){var B=(E.value||"").replace(/\r|\n/g," ");this.set("value",B);E.value=B;this.valid=E.validate();this.userChangedValue=!0}};
_.l.handleBlur=function(){this.valid=_.n(this.hostElement).querySelector("#title").validate()};
_.l.onValueChanged=function(){_.$O(this.hostElement,"title-changed",{title:this.value})};
_.l.onValidChanged=function(){_.$O(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.l.setInput=function(E,B){var I=_.n(this.hostElement).querySelector("#title");I&&(I.value=E,this.handleInput(),B&&(I.invalid=!1,this.valid=!0))};
_.l.onClipCreationDisable=function(){this.set("disabled",!0)};
_.l.onClipCreationEnable=function(){this.set("disabled",!1)};
_.l.onClipCreationVisibilityChange=function(E){var B=this;E.visible?requestAnimationFrame(function(){var I;((I=_.n(B.hostElement).querySelector("#title"))==null?void 0:I.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Hi.prototype.onValidChanged=Hi.prototype.onValidChanged;Hi.prototype.onValueChanged=Hi.prototype.onValueChanged;Hi.prototype.handleBlur=Hi.prototype.handleBlur;Hi.prototype.handleInput=Hi.prototype.handleInput;Hi.prototype.handleKeyDown=Hi.prototype.handleKeyDown;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Hi.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],Hi.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Hi.prototype,"value",void 0);_.k([_.X(),_.t("design:type",Object)],Hi.prototype,"valid",void 0);_.k([_.X(),_.t("design:type",Object)],Hi.prototype,"userChangedValue",void 0);_.k([_.X(),_.t("design:type",Object)],Hi.prototype,"disabled",void 0);_.k([_.RN("keydown"),_.t("design:type",Function),_.t("design:paramtypes",[KeyboardEvent]),_.t("design:returntype")],Hi.prototype,"handleKeyDown",null);
_.k([_.RN("input"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Hi.prototype,"handleInput",null);_.k([_.RN("blur"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Hi.prototype,"handleBlur",null);_.k([_.EM("value"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Hi.prototype,"onValueChanged",null);
_.k([_.EM("valid"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Hi.prototype,"onValidChanged",null);Hi=_.k([_.b({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Hi);
_.A(Hi,"ytd-clip-creation-text-input-renderer",function(){if(IwL!==void 0)return IwL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return IwL=E},{mode:1});var TNg;var eYI;var lwm;var c07;var i58;var NO=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};E.pendingStoryboardImages_={};E.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];E.tickLabelInterval=30;E.mediumTickInterval=5;E.largeTickInterval=15;E.aboveRulerHeight=32;E.rulerHeight=50;E.smallTickHeight=4;E.mediumTickHeight=8;E.largeTickHeight=16;E.mediaListeners_=
{};return E};
_.L(NO,_.r);_.l=NO.prototype;_.l.attached=function(){var E=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(B){B=_.p(["screen and (min-resolution: "+B+")","screen and (max-resolution: "+B+")"]);for(var I=B.next();!I.done;I=B.next()){I=I.value;var T=window.matchMedia(I);T&&(E.mediaListeners_[I]=E.updatePixelRatio_.bind(E),T.addEventListener?T.addEventListener("change",E.mediaListeners_[I]):T.addListener?T.addListener(E.mediaListeners_[I]):delete E.mediaListeners_[I])}})};
_.l.detached=function(){this.setPlayer(null);for(var E=_.p(Object.keys(this.mediaListeners_)),B=E.next();!B.done;B=E.next()){var I=B.value;B=this.mediaListeners_[I];(I=window.matchMedia(I))&&(I.removeEventListener?I.removeEventListener("change",B):I.removeListener&&I.removeListener(B))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.l.onVisibilityChangedAction_=function(E){var B=this;E.visible&&!this.player_&&(E=_.jx())&&E.getPlayerPromise().then(function(I){B.setPlayer(I)})};
_.l.setPlayer=function(E){E&&this.set("player_",E)};
_.l.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.l.setUpCanvas_=function(){var E=this.rulerWidth,B=this.devicePixelRatio_,I=this.visible;this.set("canvasReady_",!1);if(I&&B!==0){I=this.aboveRulerHeight+this.rulerHeight;var T=_.n(this.hostElement).querySelector("#ticks");T.width=E*B;T.height=I*B;T.style.width=E+"px";T.style.height=I+"px";T.getContext("2d").scale(B,B);this.set("canvasReady_",!0)}};
_.l.drawRuler_=function(E,B,I,T,e,c,Y,v,y,Z,P,z){E&&I&&B&&(E=_.n(this.hostElement).querySelector("#ticks"),B=E.getContext("2d"),B.clearRect(0,0,E.width,E.height),B.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),B.lineWidth=2,B.beginPath(),B.moveTo(0,this.aboveRulerHeight),B.lineTo(E.width,this.aboveRulerHeight),B.moveTo(0,E.height),B.lineTo(E.width,E.height),B.stroke(),this.drawRulerTicks_(E,c,e,T),this.drawStoryboardImages_(E,I,c,e,T),B.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
B.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(Y-c,T,!1),this.rulerHeight),I=this.timeToPixels_(v-c,T,!1),B.fillRect(I,this.aboveRulerHeight,E.width-I,this.rulerHeight),this.drawSpeedLines_(E,c,z))};
_.l.drawRulerTicks_=function(E,B,I,T){var e=E.getContext("2d");e.save();e.lineWidth=1;for(var c=Math.floor(Math.max(0,B-this.tickLabelInterval));c<B+I;c++){e.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var Y=(c-B)*T;e.beginPath();e.moveTo(Y,E.height);var v=this.smallTickHeight;c%this.largeTickInterval===0?v=this.largeTickHeight:c%this.mediumTickInterval===0&&(v=this.mediumTickHeight);e.lineTo(Y,E.height-v);e.stroke();c%this.tickLabelInterval===0&&(e.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),e.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),e.fillText(xc(c),Y+4,12),e.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),e.moveTo(Y,0),e.lineTo(Y,this.aboveRulerHeight),e.stroke())}e.restore()};
_.l.percentToHex_=function(E){E=Math.round(E*255).toString(16);E.length<2&&(E="0"+E);return E};
_.l.drawSpeedLines_=function(E,B,I){var T=E.getContext("2d");T.save();var e=Math.min(25,Math.abs(I)-15)/25,c=E.width*.3*e,Y=E.width*-.3,v=E.width*1.3,y=this.aboveRulerHeight;E=E.height;var Z=Math.round(4*e),P=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");P.length<7&&(P="#"+P.substring(1,4).repeat(2));var z=this.percentToHex_(.5+e/2);z=P+z;P+="00";if(e>0)for(e=0;e<Z;e++){var m=Y+Math.random()*(v-Y),u=y+Math.random()*(E-y),x=c+B%c,M=T.createLinearGradient(m,u,m+x,u);
I<0?(M.addColorStop(0,z),M.addColorStop(.4,z),M.addColorStop(.9,P)):(M.addColorStop(.1,P),M.addColorStop(.6,z),M.addColorStop(1,z));T.strokeStyle=M;T.lineWidth=1;T.beginPath();T.moveTo(m,u);T.lineTo(m+x,u);T.stroke()}T.restore()};
_.l.getStoryboardForTime_=function(E,B,I){I===void 0&&(I=B.getNumberOfStoryboardLevels()-1);E=B.getStoryboardFrameIndex(E,I);return B.getStoryboardFrame(E,I)};
_.l.drawStoryboardImages_=function(E,B,I,T,e){if(!this.disabled){E=E.getContext("2d");var c=this.getStoryboardForTime_(0,B);if(c){var Y=c.width/c.columns;c=c.height/c.rows;var v=Y/c,y=this.rulerHeight*v;y=this.tickLabelInterval*(v<this.tickLabelInterval*e/this.rulerHeight?1/Math.floor(this.tickLabelInterval*e/y):Math.round(y/(this.tickLabelInterval*e)));var Z=y*e,P=this.rulerHeight,z=Z/this.rulerHeight,m=Math.floor(Math.max(0,I-y));for(m-=m%y;m<I+T;m+=y){var u=this.getStoryboardForTime_(m,B),x=this.getPreloadedStoryboard_(u.url);
if(x){var M=(m-I)*e,N=this.aboveRulerHeight,W=u.column*Y,U=u.row*c;if(v<z){var q=P/(Z/v);u=Y;q*=c;U+=(c-q)/2}else u=Z/(P*v)*Y,q=c,W+=(Y-u)/2;E.drawImage(x,W,U,u,q,M,N,Z,P)}else this.fetchStoryboardImage_(u)}}}};
_.l.getPreloadedStoryboard_=function(E){return this.storyboardImages_.find(function(B){if(B.src==E)return!0;var I=B.src.indexOf(E);return I!=-1&&I==B.src.length-E.length})};
_.l.fetchStoryboardImage_=function(E){var B=this,I=this.getPreloadedStoryboard_(E.url),T=this.pendingStoryboardImages_[E.url];I||T!==void 0||(I=new Promise(function(e){var c=new Image(E.width,E.height);c.src=E.url;c.onload=function(){e(c)};
c.onerror=function(){e(null)}}),this.pendingStoryboardImages_[E.url]=I,I.then(function(e){e&&B.push("storyboardImages_",e);
return e}).finally(function(){delete B.pendingStoryboardImages_[E.url]}))};
_.l.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.l.timeToPixels_=function(E,B,I){E*=B;return I===void 0||I?E+"px":E};
_.l.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
NO.prototype.drawRuler_=NO.prototype.drawRuler_;NO.prototype.setUpCanvas_=NO.prototype.setUpCanvas_;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],NO.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],NO.prototype,"start",void 0);_.k([_.X({value:30}),_.t("design:type",Number)],NO.prototype,"end",void 0);
_.k([_.X({value:!1}),_.t("design:type",Boolean)],NO.prototype,"visible",void 0);_.k([_.X(),_.t("design:type",Object)],NO.prototype,"player_",void 0);_.k([_.X(),_.t("design:type",Number)],NO.prototype,"tickSpacing",void 0);_.k([_.X(),_.t("design:type",Number)],NO.prototype,"windowSizeSec",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],NO.prototype,"rulerWidth",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],NO.prototype,"rulerShift",void 0);
_.k([_.X({value:!1}),_.t("design:type",Boolean)],NO.prototype,"canvasReady_",void 0);_.k([_.X({value:function(){return[]}}),
_.t("design:type",Array)],NO.prototype,"storyboardImages_",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],NO.prototype,"disabled",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],NO.prototype,"forceRender_",void 0);_.k([_.X({value:1}),_.t("design:type",Number)],NO.prototype,"devicePixelRatio_",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],NO.prototype,"windowSpeed",void 0);
_.k([_.EM("visible","devicePixelRatio_","rulerWidth"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],NO.prototype,"setUpCanvas_",null);
_.k([_.EM("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.t("design:type",Function),_.t("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.t("design:returntype")],NO.prototype,"drawRuler_",null);NO=_.k([_.QE({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],NO);
_.A(NO,"yt-clip-creation-scrubber-canvas",function(){if(i58===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);i58=E}E=i58;return E},
{mode:2});var poI;var YV2;var gR=function(){var E=_.r.apply(this,arguments)||this;E.start=0;E.end=30;E.visible=!1;E.draggingLeft_=!1;E.draggingRight_=!1;E.draggingRuler_=!1;E.draggingWindow_=!1;E.seekableStart=0;E.seekableEnd=0;E.rulerWidth_=0;E.rulerShift_=0;E.windowSlideSpeed=0;E.disabled=!1;E.initialized=!1;E.durationAccessibilityLabel="";E.activeLoopRange_=!1;E.rulerDragMouseStart_=0;E.rulerDragRulerStart_=0;E.rulerDragStartTime_=0;E.rulerDragEndTime_=0;E.dragMouseLastX_=0;E.scrollInterval_=null;E.scrubberVe_=null;E.boundHandlers_=
{};E.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return E};
_.L(gR,_.r);_.l=gR.prototype;
_.l.created=function(){var E=this;this.JSC$19883_playerEvents=new Map;this.JSC$19883_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19883_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19883_playerEvents.set("onStateChange",this.onStateChange_);var B={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(B).forEach(function(I){E.boundHandlers_[I]=B[I].bind(E)})};
_.l.attached=function(){this.activeLoopRange_=!1;_.n(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.n(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.wA(156731)};
_.l.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.n(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.n(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.l.onVisibilityChangedAction_=function(E){var B=this;E.visible&&!this.player_&&(E=_.jx())&&E.getPlayerPromise().then(function(I){B.setPlayer(I)})};
_.l.setPlayer=function(E){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19883_playerEvents);E&&(this.set("player_",E),this.ytPlayerListenerBehavior.listenToPlayerEvents(E,this.JSC$19883_playerEvents))};
_.l.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.l.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.l.beginHandleDrag_=function(E){this.disabled||(E.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=E.clientX,E.target===_.n(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():E.target===_.n(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.l.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.l.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.l.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.l.beginRulerDrag_=function(E){this.disabled||(E.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=E.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.l.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.l.beginWindowScroll_=function(){var E=this;this.scrollInterval_=setInterval(function(){var B=E.windowSlideSpeed;if(B=_.YEd(E.start,E.boundedRulerStartLimit_())?B-.1:_.YEd(E.end,E.boundedRulerEndLimit_())?B+.1:0){var I=E.capRulerOffset_(E.rulerShift_+B);I==E.rulerShift_?B=0:(E.set("rulerShift_",I),_.$O(E.hostElement,"set-fixed-length-range",{start:E.start+B,duration:E.end-E.start}))}E.set("windowSlideSpeed",B)},33)};
_.l.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.l.endDrag_=function(){this.logClick();var E=void 0;this.draggingRight_?E=this.end-1:this.draggingLeft_&&(E=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,E);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))};
_.l.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.l.updateRulerSize_=function(){this.set("rulerWidth_",_.n(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.l.handleMouseDrag_=function(E){E.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(E):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(E):this.draggingWindow_&&this.handleWindowDrag_(E))};
_.l.handleRulerDrag_=function(E){E=this.pixelsToTime_(E.clientX-this.rulerDragMouseStart_);E=this.capRulerOffset_(this.rulerDragRulerStart_-E);this.set("rulerShift_",E);var B=this.rulerDragStartTime_-(this.rulerDragRulerStart_-E);_.$O(this.hostElement,"set-fixed-length-range",{start:B,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-E)-B})};
_.l.handleWindowDrag_=function(E){var B=E.clientX-this.dragMouseLastX_;this.dragMouseLastX_=E.clientX;E=this.pixelsToTime_(B);_.$O(this.hostElement,"set-fixed-length-range",{start:this.start+E,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.l.capRulerOffset_=function(E){var B=this.seekableStart-this.pixelsToTime_(16),I=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(B,E),I)};
_.l.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.l.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.l.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.l.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.l.handleWindowHandleDrag_=function(E){var B=E.clientX-this.dragMouseLastX_;this.dragMouseLastX_=E.clientX;E=this.pixelsToTime_(B);if(this.draggingLeft_){var I=this.start+E;var T=this.end}else this.draggingRight_&&(I=this.start,T=this.end+E);_.$O(this.hostElement,"set-range",{start:I,end:T,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.l.onVideoProgress_=function(E){this.disabled||(E=this.timeToPixels_(E-this.rulerShift_,this.tickSpacing_),_.n(this.hostElement).querySelector("#playhead").style.transform="translateX("+E+")")};
_.l.onClipCreationDisable_=function(){this.endDrag_()};
_.l.timeToPixels_=function(E,B,I){E*=B;return I===void 0||I?E+"px":E};
_.l.pixelsToTime_=function(E){return E/this.tickSpacing_};
_.l.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.l.centerRuler_=function(E,B,I){this.set("rulerShift_",this.capRulerOffset_(E+(B-E)/2-I/2))};
_.l.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.l.updateLoopRange_=function(E,B,I,T,e,c,Y){E&&(B&&T&&!I?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(E.pauseVideo(),E.seekTo(e,!1,void 0,void 0,50)):this.draggingRight_?(E.pauseVideo(),E.seekTo(c-.1,!1,void 0,void 0,50)):(Y!==void 0?E.seekTo(Y,!0,void 0,void 0,50):(B=E.getCurrentTime(),B<e||B>c?E.seekTo(e,!0,void 0,void 0,50):E.seekTo(B,!0,void 0,void 0,50)),E.playVideo()),E.setLoopRange({startTimeMs:e*1E3,endTimeMs:c*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(E.getCurrentTime())):
this.activeLoopRange_&&(E.setLoopRange(null),this.activeLoopRange_=!1))};
_.l.updateHandles_=function(){_.n(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.n(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.l.updateRuler_=function(){var E=this.end,B=this.start,I=this.draggableStartLimit_(),T=this.draggableEndLimit_();(B<I-.001||E>T+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.l.computeDurationLabel_=function(E,B){return E?E.replace("$clip_length",parseFloat(B).toFixed(1)):""};
_.l.computeDuration_=function(E,B){return this.isValidTime_(E)&&this.isValidTime_(B)&&E<B?B-E:0};
_.l.isValidTime_=function(E){return isNaN(parseFloat(E))||E<0?!1:this.player_?E>=this.seekableStart&&E<=this.seekableEnd:!0};
_.l.computeWindowSizeSec_=function(E,B,I){return Math.min((E||12E4)/1E3,I-B)};
_.l.computeTickSpacing_=function(E,B){return B?B/E:1};
_.l.onDragStateChanged_=function(){_.$O(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.l.centerRangeOnTime_=function(E){var B=this.duration;E=tLL(E-B/2,B,this.seekableStart,this.seekableEnd);_.$O(this.hostElement,"set-fixed-length-range",{start:E.start,duration:E.end-E.start})};
_.l.nearlyLessThan_=function(E,B,I){return E+(I===void 0?1E-6:I)<B};
_.l.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var E=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(E,this.start)||this.nearlyLessThan_(this.end,E))&&this.centerRangeOnTime_(E)}};
_.l.onStateChange_=function(E){this.visible&&!this.disabled&&E==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.l.computeDragState_=function(E,B,I,T){return E?"left":B?"right":I?"ruler":T?"window":"none"};
_.l.logClick=function(){var E=_.nC(),B=_.Oi();E&&B&&this.scrubberVe_&&(_.d("combine_ve_grafts")?_.Ts(_.lu(),this.scrubberVe_,B):_.XD(E,B,this.scrubberVe_),_.Al(E,this.scrubberVe_))};
gR.prototype.onDragStateChanged_=gR.prototype.onDragStateChanged_;gR.prototype.updateRuler_=gR.prototype.updateRuler_;gR.prototype.updateHandles_=gR.prototype.updateHandles_;gR.prototype.onUpdateLoopRange=gR.prototype.onUpdateLoopRange;gR.prototype.onInitializedChanged_=gR.prototype.onInitializedChanged_;gR.prototype.onVisibleChanged_=gR.prototype.onVisibleChanged_;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],gR.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",Object)],gR.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],gR.prototype,"start",void 0);_.k([_.X(),_.t("design:type",Object)],gR.prototype,"end",void 0);_.k([_.X({computed:"computeDuration_(start, end)"}),_.t("design:type",Number)],gR.prototype,"duration",void 0);
_.k([_.X(),_.t("design:type",String)],gR.prototype,"lengthTemplate",void 0);_.k([_.X({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.t("design:type",String)],gR.prototype,"durationLabel",void 0);_.k([_.X(),_.t("design:type",Object)],gR.prototype,"visible",void 0);_.k([_.X(),_.t("design:type",Object)],gR.prototype,"player_",void 0);_.k([_.X(),_.t("design:type",Object)],gR.prototype,"draggingLeft_",void 0);_.k([_.X(),_.t("design:type",Object)],gR.prototype,"draggingRight_",void 0);
_.k([_.X(),_.t("design:type",Object)],gR.prototype,"draggingRuler_",void 0);_.k([_.X({value:!1}),_.t("design:type",Object)],gR.prototype,"draggingWindow_",void 0);_.k([_.X({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.t("design:type",Number)],gR.prototype,"tickSpacing_",void 0);_.k([_.X(),_.t("design:type",Object)],gR.prototype,"seekableStart",void 0);_.k([_.X(),_.t("design:type",Object)],gR.prototype,"seekableEnd",void 0);
_.k([_.X(),_.t("design:type",Number)],gR.prototype,"windowSizeMs",void 0);_.k([_.X({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.t("design:type",Number)],gR.prototype,"windowSizeSec_",void 0);_.k([_.X(),_.t("design:type",Object)],gR.prototype,"rulerWidth_",void 0);_.k([_.X(),_.t("design:type",Object)],gR.prototype,"rulerShift_",void 0);_.k([_.X(),_.t("design:type",Object)],gR.prototype,"windowSlideSpeed",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],gR.prototype,"disabled",void 0);_.k([_.X(),_.t("design:type",Object)],gR.prototype,"initialized",void 0);_.k([_.X(),_.t("design:type",Object)],gR.prototype,"durationAccessibilityLabel",void 0);_.k([_.X({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.t("design:type",String)],gR.prototype,"dragState",void 0);
_.k([_.EM("visible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gR.prototype,"onVisibleChanged_",null);_.k([_.EM("initialized"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gR.prototype,"onInitializedChanged_",null);_.k([_.EM("player_","visible","disabled","initialized","start","end"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gR.prototype,"onUpdateLoopRange",null);
_.k([_.EM("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gR.prototype,"updateHandles_",null);_.k([_.EM("start","end"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gR.prototype,"updateRuler_",null);
_.k([_.EM("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],gR.prototype,"onDragStateChanged_",null);gR=_.k([_.QE({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],gR);
_.A(gR,"yt-clip-creation-scrubber-view",function(){if(YV2===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;poI===void 0&&(poI=document.createElement("template"));var T=poI;I.call(B,T.content.cloneNode(!0),E.content.firstChild);YV2=E}E=YV2;return E},{mode:2});var SH=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};E.startHighlightTimeout=0;E.endHighlightTimeout=0;return E};
_.L(SH,_.r);_.l=SH.prototype;_.l.attached=function(){var E=this;this.startInput.addEventListener("input",function(B){return E.handleStartInput_(B)});
this.endInput.addEventListener("input",function(B){return E.handleEndInput_(B)});
this.startInput.addEventListener("focusout",function(B){return E.handleStartBlur_(B)});
this.endInput.addEventListener("focusout",function(B){return E.handleEndBlur_(B)})};
_.l.setPlayer=function(E){this.set("player_",E)};
_.l.onSetFixedLengthRange_=function(E){var B=E.detail;E=B.start;var I=B.duration,T=B.startLimit;B=B.endLimit;T||(T=this.seekableStart_);B||(B=this.seekableEnd_);E=tLL(E,I,T,B);this.start=E.start;this.end=E.end};
_.l.onSetRange_=function(E){var B=E.detail;E=B.start;var I=B.end,T=B.startLimit;B=B.endLimit;T||(T=this.seekableStart_);B||(B=this.seekableEnd_);if(E=f68(E,I,T,B,this.minLengthSec,this.maxLengthSec))this.start=E.start,this.end=E.end};
_.l.updateInputs_=function(){var E=this.end,B=this.start;this.startInput.focused||(this.startInput.value=xc(B,!0));this.endInput.focused||(this.endInput.value=xc(E,!0))};
_.l.handleStartInput_=function(E){E=k$7(E.target.value);if(E===null)this.set("startValid",!1);else{var B=this.end,I=f68(E,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("endWillUpdate",I.end!==B),this.set("startValid",I.start===E)):this.set("startValid",!1)}};
_.l.handleEndInput_=function(E){E=k$7(E.target.value);if(E===null)this.set("endValid",!1);else{var B=this.start,I=VLO(this.start,E,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("startWillUpdate",I.start!==B),this.set("endValid",I.end===E)):this.set("endValid",!1)}};
_.l.handleStartBlur_=function(E){E=k$7(E.target.value);E===null?this.startInput.value=xc(this.start,!0):this.forceUpdateInputs_(f68(E,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.l.handleEndBlur_=function(E){E=k$7(E.target.value);E===null?this.endInput.value=xc(this.end,!0):this.forceUpdateInputs_(VLO(this.start,E,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.l.forceUpdateInputs_=function(E){E&&(this.start=E.start,this.end=E.end);this.startInput.value=xc(this.start,!0);this.endInput.value=xc(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.l.initializeClipRange_=function(){var E=this.seekableEnd_,B=this.seekableStart_,I=this.visible_,T=this.player_;if(!T||!I||B===null||!E)this.set("initialized",!1);else if(!this.initialized){var e=T.getCurrentTime(),c=this.getDefaultLengthSec_();I=T.getVideoData();var Y=T.getPlayerState()==1,v=I.isLive;c=Math.min(c,E-B);e=Math.max(0,e);E=v?VLO(e-c,e,B,E,this.minLengthSec,this.maxLengthSec):Y?tLL(e-c/2,c,B,E):tLL(e,c,B,E);this.start=E.start;this.end=E.end;this.set("initialized",!0);I.isLive&&T.seekTo(E.start);
this.startInput.value=xc(this.start,!0);this.endInput.value=xc(this.end,!0)}};
_.l.onStartChanged_=function(){var E=this;_.$O(this.hostElement,"start-changed",{start:this.start});var B;isNaN((B=this.oldStart)!=null?B:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){E.set("highlightStart",!1);E.startHighlightTimeout=0;E.oldStart=E.start},3E3))};
_.l.onEndChanged_=function(){var E=this;_.$O(this.hostElement,"end-changed",{end:this.end});var B;isNaN((B=this.oldEnd)!=null?B:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){E.set("highlightEnd",!1);E.endHighlightTimeout=0;E.oldEnd=E.end},3E3))};
_.l.onVisibilityChangedAction_=function(E){var B=this;this.set("visible_",E.visible);this.visible_&&!this.player_&&(E=_.jx())&&E.getPlayerPromise().then(function(I){B.setPlayer(I)})};
_.l.computeMinLengthSec_=function(E){return E/1E3||5};
_.l.computeMaxLengthSec_=function(E){return E/1E3||60};
_.l.computeDefaultLengthSec_=function(E){return E/1E3};
_.l.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.l.computeSeekableStart_=function(E,B){return E&&B?E.getProgressState(1).seekableStart:0};
_.l.computeSeekableEnd_=function(E,B){return E&&B?E.getProgressState(1).seekableEnd:0};
_.l.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.l.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.l.onDragState_=function(E){this.set("highlightStart",E.detail.startChanging);this.set("highlightEnd",E.detail.endChanging)};
SH.prototype.onDragState_=SH.prototype.onDragState_;SH.prototype.onEndChanged_=SH.prototype.onEndChanged_;SH.prototype.onStartChanged_=SH.prototype.onStartChanged_;SH.prototype.initializeClipRange_=SH.prototype.initializeClipRange_;SH.prototype.updateInputs_=SH.prototype.updateInputs_;SH.prototype.onSetRange_=SH.prototype.onSetRange_;SH.prototype.onSetFixedLengthRange_=SH.prototype.onSetFixedLengthRange_;
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],SH.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],SH.prototype,"data",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],SH.prototype,"start",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],SH.prototype,"startValid",void 0);
_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],SH.prototype,"startWillUpdate",void 0);_.k([_.X({value:30}),_.t("design:type",Number)],SH.prototype,"end",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],SH.prototype,"endValid",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],SH.prototype,"endWillUpdate",void 0);_.k([_.X({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.t("design:type",Number)],SH.prototype,"minLengthSec",void 0);
_.k([_.X({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.t("design:type",Number)],SH.prototype,"maxLengthSec",void 0);_.k([_.X({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.t("design:type",Number)],SH.prototype,"defaultLengthSec",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],SH.prototype,"visible_",void 0);_.k([_.X(),_.t("design:type",Object)],SH.prototype,"player_",void 0);
_.k([_.X({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.t("design:type",Number)],SH.prototype,"seekableStart_",void 0);_.k([_.X({computed:"computeSeekableEnd_(player_, visible_)"}),_.t("design:type",Number)],SH.prototype,"seekableEnd_",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],SH.prototype,"initialized",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],SH.prototype,"disabled",void 0);
_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],SH.prototype,"highlightStart",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],SH.prototype,"highlightEnd",void 0);_.k([_.$7("#start"),_.t("design:type",HTMLInputElement)],SH.prototype,"startInput",void 0);_.k([_.$7("#end"),_.t("design:type",HTMLInputElement)],SH.prototype,"endInput",void 0);
_.k([_.RN("set-fixed-length-range"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],SH.prototype,"onSetFixedLengthRange_",null);_.k([_.RN("set-range"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],SH.prototype,"onSetRange_",null);_.k([_.EM("start","end"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],SH.prototype,"updateInputs_",null);
_.k([_.EM("player_","visible_","seekableStart_","seekableEnd_"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],SH.prototype,"initializeClipRange_",null);_.k([_.EM("start"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],SH.prototype,"onStartChanged_",null);_.k([_.EM("end"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],SH.prototype,"onEndChanged_",null);
_.k([_.RN("clips-drag-state"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],SH.prototype,"onDragState_",null);SH=_.k([_.QE({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],SH);
_.A(SH,"yt-clip-creation-scrubber-renderer",function(){if(c07===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;lwm===void 0&&(lwm=document.createElement("template"));var T=lwm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);c07=E}E=c07;return E},{mode:2});var Jp=function(){var E=_.r.apply(this,arguments)||this;E.player_=null;E.JSC$19897_playerEvents=new Map;E.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return E};
_.L(Jp,_.r);_.l=Jp.prototype;_.l.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"}}}};
_.l.created=function(){this.JSC$19897_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19897_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19897_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19897_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.l.detached=function(){this.setPlayer(null)};
_.l.onVisibilityChangedAction_=function(E){var B=this,I;if((I=this.data)==null?0:I.externalVideoId){var T;this.videoId=(T=this.data)==null?void 0:T.externalVideoId}this.getPlayer().then(function(e){if(E.visible)B.returnTime=e.getCurrentTime(),B.isAtLiveHead=e.getProgressState().isAtLiveHead;else{var c=B.returnTime;B.isAtLiveHead&&(c=Number.POSITIVE_INFINITY);e.seekTo(c,void 0,void 0,void 0,51)}})};
_.l.getPlayer=function(){var E=this;if(!this.player_){var B=_.jx();if(B)return B.getPlayerPromise().then(function(I){E.setPlayer(I);return I})}return Promise.resolve(this.player_)};
_.l.setPlayer=function(E){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19897_playerEvents);if(E){this.player_=E;var B;((B=this.data)==null?0:B.externalVideoId)||this.set("videoId",E.getVideoData().video_id||"");var I;(E==null?void 0:(I=E.getPresentingPlayerType)==null?void 0:I.call(E))===2&&(this.set("isAdPlaying",!0),_.I2(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(E,this.JSC$19897_playerEvents)}};
_.l.ready=function(){_.n(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.l.onTitleChanged_=function(E){this.set("titleValue",E.detail.title)};
_.l.onStartChanged_=function(E){this.set("start",E.detail.start)};
_.l.onEndChanged_=function(E){this.set("end",E.detail.end)};
_.l.onTitleValidChanged_=function(E){this.set("titleValid",E.detail.valid)};
_.l.onStartValidChanged_=function(E){this.set("startValid",E.detail.valid)};
_.l.onEndValidChanged_=function(E){this.set("endValid",E.detail.valid)};
_.l.onVideoDataChange_=function(){var E;if((E=this.data)==null||!E.externalVideoId){var B;this.set("videoId",((B=this.player_)==null?void 0:B.getVideoData().video_id)||"")}};
_.l.computeFormValid_=function(E,B,I,T){return!!(E&&B&&I&&T)};
_.l.computeCancelButton_=function(E,B,I){return E&&_.h(E,_.NT)?{buttonRenderer:Object.assign({},_.h(E,_.NT),{isDisabled:B||I})}:null};
_.l.computeSubmitButton_=function(E,B,I){return E&&_.h(E,_.NT)?{buttonRenderer:Object.assign({},_.h(E,_.NT),{command:void 0,isDisabled:!this.formValid||B||I})}:null};
_.l.computeSubmitCommand_=function(E){return E||null};
_.l.onSubmit_=function(E){var B=this;E.stopPropagation();E.preventDefault();this.submitCommand_&&(E={},E.comment_text=this.titleValue,E.clip_external_video_id=this.videoId,E.clip_offset_ms=parseInt(this.start*1E3,10),E.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.l1(this.hostElement,[this.submitCommand_,E]).then(function(){B.set("isLoading_",!1)},function(){B.set("isLoading_",!1)}))};
_.l.playerAdStartHandler_=function(){_.I2(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler_=function(){_.I2(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.l.onVideoProgress_=function(){var E=this;this.getPlayer().then(function(B){var I,T=(B==null?void 0:(I=B.getPresentingPlayerType)==null?void 0:I.call(B))===2;E.isAdPlaying!==T&&(T?E.playerAdStartHandler_():E.playerAdEndHandler_())})};
Jp.prototype.onEndValidChanged_=Jp.prototype.onEndValidChanged_;Jp.prototype.onStartValidChanged_=Jp.prototype.onStartValidChanged_;Jp.prototype.onTitleValidChanged_=Jp.prototype.onTitleValidChanged_;Jp.prototype.onEndChanged_=Jp.prototype.onEndChanged_;Jp.prototype.onStartChanged_=Jp.prototype.onStartChanged_;Jp.prototype.onTitleChanged_=Jp.prototype.onTitleChanged_;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Jp.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",Object)],Jp.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Jp.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Jp.prototype,"data",void 0);_.k([_.X({value:""}),_.t("design:type",String)],Jp.prototype,"titleValue",void 0);
_.k([_.X({value:!1}),_.t("design:type",Boolean)],Jp.prototype,"titleValid",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],Jp.prototype,"start",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],Jp.prototype,"startValid",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],Jp.prototype,"end",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],Jp.prototype,"endValid",void 0);_.k([_.X({value:""}),_.t("design:type",String)],Jp.prototype,"videoId",void 0);
_.k([_.X({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.t("design:type",Boolean)],Jp.prototype,"formValid",void 0);_.k([_.X({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.t("design:type",Object)],Jp.prototype,"submitButton_",void 0);_.k([_.X({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.t("design:type",Object)],Jp.prototype,"submitCommand_",void 0);
_.k([_.X({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.t("design:type",Object)],Jp.prototype,"cancelButton_",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],Jp.prototype,"isLoading_",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],Jp.prototype,"isAdPlaying",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],Jp.prototype,"returnTime",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],Jp.prototype,"isAtLiveHead",void 0);
_.k([_.RN("title-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Jp.prototype,"onTitleChanged_",null);_.k([_.RN("start-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Jp.prototype,"onStartChanged_",null);_.k([_.RN("end-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Jp.prototype,"onEndChanged_",null);
_.k([_.RN("title-valid-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Jp.prototype,"onTitleValidChanged_",null);_.k([_.RN("start-valid-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Jp.prototype,"onStartValidChanged_",null);_.k([_.RN("end-valid-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Jp.prototype,"onEndValidChanged_",null);
Jp=_.k([_.QE({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Jp);
_.A(Jp,"yt-clip-creation-renderer",function(){if(eYI===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;TNg===void 0&&(TNg=document.createElement("template"));var T=TNg;I.call(B,T.content.cloneNode(!0),E.content.firstChild);eYI=E}E=eYI;return E},{mode:2});var Wi=function(){return _.r.apply(this,arguments)||this};
_.L(Wi,_.r);Wi.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"}}}};
Wi.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(E){return E.hasOwnProperty("clipCreationRenderer")})&&_.I2(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Wi.prototype.onPanelContentVisibleChanged=Wi.prototype.onPanelContentVisibleChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Wi.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Ml.YtVisibilityBehavior),_.t("design:type",Object)],Wi.prototype,"ytVisibilityBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Wi.prototype,"ytdReduxBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],Wi.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Wi.prototype,"panelContentVisible",void 0);_.k([_.EM("panelContentVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wi.prototype,"onPanelContentVisibleChanged",null);Wi=_.k([_.b({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Wi);
_.A(Wi,"ytd-clip-section-renderer",function(){if(BN7!==void 0)return BN7;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return BN7=E},{mode:1});var aw2;var Xq=function(){return _.r.apply(this,arguments)||this};
_.L(Xq,_.r);_.l=Xq.prototype;
_.l.onKeyDown=function(E){if(this.snippetElements.length!==0&&(E=E.keyCode,E===38||E===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);E===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.H3(this.highlightedIndex,-1,this.snippetElements.length);E=this.snippetElements.length;var B=this.highlightedIndex%E;this.highlightedIndex=B*E<0?B+E:B;E=this.snippetElements[this.highlightedIndex];this.highlightSnippet(E);this.ensureVisible(E)}};
_.l.onKeyUp=function(E){var B=this;xFL(E)&&(E.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Ll.cancelJob(this.inputTimerId),this.inputTimerId=_.Ll.addLowPriorityJob(function(){B.typedValue&&(B.fetchSnippets(B.typedValue),B.logInputGesture(B.data))},1E3))};
_.l.onClick=function(E){(E=_.JHr(E.target,null,"snippet-item"))&&this.selectSnippet(E)};
_.l.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.l.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.l.ready=function(){var E=this;this.inputElement.addEventListener("focus",function(){E.snippetsWrapper.style.removeProperty("display")})};
_.l.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.l.getSourceTimelines=function(){if(!this.data)return[];var E=[];if(this.data.searchInVideoSources)for(var B=_.p(this.data.searchInVideoSources),I=B.next();!I.done;I=B.next())I=I.value,I==="SEARCH_IN_VIDEO_SOURCE_ASR"?E.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):I==="SEARCH_IN_VIDEO_SOURCE_OCR"&&E.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return E};
_.l.fetchSnippets=function(E){var B=_.I2(this.hostElement,"yt-get-current-video-id-action")[0],I=this.getSourceTimelines();E={getSearchInVideoCommand:{externalVideoId:B,query:E!=null?E:"",sourceTimelines:I},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}})};
_.l.filterSnippets=function(E,B){var I=this;if(B){this.filteredSnippets=(0,_.a_.unsafeClone)(E);var T=RegExp(_.baQ(B),"i");this.filteredSnippets=this.filteredSnippets.filter(function(Y){return T.test(I.ytRendererBehavior.getSimpleString(Y.snippet))});
E=_.p(this.filteredSnippets);for(var e=E.next();!e.done;e=E.next()){e=e.value;var c=this.ytRendererBehavior.getSimpleString(e.snippet);e.snippet={runs:[{text:c.substring(0,c.toLowerCase().indexOf(B))},{text:c.substring(c.toLowerCase().indexOf(B),c.toLowerCase().indexOf(B)+B.length),bold:!0},{text:c.substring(c.toLowerCase().indexOf(B)+B.length,c.length)}]}}}else this.filteredSnippets=E};
_.l.onUpdateSearchInVideoResults=function(E){if(!(this.snippets.length>0)){var B,I,T;if((T=(B=_.h(E,bQI))==null?void 0:(I=B.results)==null?void 0:I.length)!=null&&T){var e;this.filteredSnippets=this.snippets=((e=_.h(E,bQI))==null?void 0:e.results).map(function(c){var Y,v,y;return{startMs:c==null?void 0:(Y=c.searchInVideoResultRenderer)==null?void 0:Y.startMs,startTimeText:c==null?void 0:(v=c.searchInVideoResultRenderer)==null?void 0:v.startTimeText,snippet:c==null?void 0:(y=c.searchInVideoResultRenderer)==
null?void 0:y.snippet}})}}};
_.l.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};
_.l.highlightSnippet=function(E){E.classList.add("highlighted")};
_.l.removeSnippetHighlight=function(E){E.classList.remove("highlighted")};
_.l.selectSnippet=function(E){this.typedValue=String(E.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(E);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.l.ensureVisible=function(E){var B=this.snippetsWrapper.scrollTop,I=B+this.snippetsWrapper.clientHeight,T=E.offsetTop-this.snippetsWrapper.offsetTop;E=T+E.clientHeight;T<B?this.snippetsWrapper.scrollTop-=B-T:E>I&&(this.snippetsWrapper.scrollTop+=E-I)};
_.l.seekPlayer=function(E){var B,I;return _.a(function(T){if(T.nextAddress==1){if(!E)return T.jumpTo(0);B=Number(E.dataset.startOffset);return _.C(T,_.k3().getPlayerPromise(),3)}I=T.yieldResult;I.seekTo(B/1E3,!0);I.wakeUpControls();_.ER(T)})};
_.l.logInputGesture=function(E){var B=_.nC();B&&(E==null?0:E.trackingParams)&&_.jY(B,_.Yg(E.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.l.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("typed-value-changed",this.typedValue))};
_.l.updateTypedValueFromBinding=function(E){this.typedValue=E.currentTarget.value};
Xq.prototype.typedValueChangedForBinding=Xq.prototype.typedValueChangedForBinding;Xq.prototype.dataChanged=Xq.prototype.dataChanged;Xq.prototype.panelContentVisibleChanged=Xq.prototype.panelContentVisibleChanged;Xq.prototype.onClick=Xq.prototype.onClick;Xq.prototype.onKeyUp=Xq.prototype.onKeyUp;Xq.prototype.onKeyDown=Xq.prototype.onKeyDown;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Xq.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Xq.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Xq.prototype,"data",void 0);_.k([_.X({value:[]}),_.t("design:type",Array)],Xq.prototype,"snippets",void 0);_.k([_.X({value:[]}),_.t("design:type",Array)],Xq.prototype,"filteredSnippets",void 0);_.k([_.X({value:[]}),_.t("design:type",Array)],Xq.prototype,"snippetElements",void 0);
_.k([_.$7("#siv-input"),_.t("design:type",HTMLElement)],Xq.prototype,"inputElement",void 0);_.k([_.$7("#siv-snippets-wrapper"),_.t("design:type",HTMLElement)],Xq.prototype,"snippetsWrapper",void 0);_.k([_.X(),_.t("design:type",String)],Xq.prototype,"typedValue",void 0);_.k([_.X({value:-1}),_.t("design:type",Number)],Xq.prototype,"highlightedIndex",void 0);_.k([_.RN("keydown"),_.t("design:type",Function),_.t("design:paramtypes",[_.wI]),_.t("design:returntype")],Xq.prototype,"onKeyDown",null);
_.k([_.RN("keyup"),_.t("design:type",Function),_.t("design:paramtypes",[_.wI]),_.t("design:returntype")],Xq.prototype,"onKeyUp",null);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],Xq.prototype,"onClick",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Xq.prototype,"panelContentVisible",void 0);
_.k([_.EM("panelContentVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Xq.prototype,"panelContentVisibleChanged",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Xq.prototype,"dataChanged",null);_.k([_.EM("typedValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Xq.prototype,"typedValueChangedForBinding",null);
Xq=_.k([_.b({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Xq);
_.A(Xq,"ytd-search-in-video-renderer",function(){if(aw2!==void 0)return aw2;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return aw2=E},{mode:1});var v$8;var rR=function(){return _.r.apply(this,arguments)||this};
_.L(rR,_.r);rR.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
rR.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]]"}}}}}};
rR.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var E,B,I,T,e=(B=_.h((E=this.data)==null?void 0:E.onClickCommand,_.baR))==null?void 0:(I=B.item)==null?void 0:(T=I.notificationTextRenderer)==null?void 0:T.successResponseText;e&&_.iuf(this.hostElement,e)}};
_.Up.Object.defineProperties(rR.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T;return this.isProductPlaceholder&&((E=this.data)==null?void 0:(B=E.hiddenProductOptions)==null?void 0:B.showDropCountdown)&&!!((I=this.data)==null?0:(T=I.hiddenProductOptions)==null?0:T.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var E;return!this.isProductPlaceholder&&!((E=this.data)==null?0:E.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var E,B;return!((E=this.data)==null?0:E.priceReplacementText)&&!((B=this.data)==null||!B.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],rR.prototype,"componentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],rR.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("isProductPlaceholder"),_.t("design:type",Object),_.t("design:paramtypes",[])],rR.prototype,"useCenterLayoutContainer",null);_.k([_.X({computed:"computeButtonOverride(data)"}),_.t("design:type",Object)],rR.prototype,"buttonOverride",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],rR.prototype,"isProductPlaceholder",null);
_.k([_.S("isProductPlaceholder"),_.t("design:type",Object),_.t("design:paramtypes",[])],rR.prototype,"showDropCountdown",null);_.k([_.S("isProductPlaceholder","data"),_.t("design:type",Object),_.t("design:paramtypes",[])],rR.prototype,"showBrandName",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],rR.prototype,"showPriceReplacementText",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],rR.prototype,"showPrice",null);
_.k([_.S("isProductPlaceholder"),_.t("design:type",Object),_.t("design:paramtypes",[])],rR.prototype,"showMetadata",null);rR=_.k([_.b({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],rR);
_.A(rR,"ytd-product-list-item-renderer",function(){if(v$8!==void 0)return v$8;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return v$8=E},{mode:1});var y08;var ba=function(){return _.r.apply(this,arguments)||this};
_.L(ba,_.r);ba.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
ba.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
ba.prototype.panelContentVisibleChanged=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return E.playerApi?I.jumpTo(2):_.C(I,_.k3().getPlayerPromise(),3);I.nextAddress!=2&&(E.playerApi=I.yieldResult);(B=E.playerApi)==null||B.productsInVideoVisibilityUpdated(!!E.panelContentVisible);_.ER(I)})};
ba.prototype.panelContentVisibleChanged=ba.prototype.panelContentVisibleChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ba.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ba.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],ba.prototype,"panelContentVisible",void 0);_.k([_.X(),_.t("design:type",Object)],ba.prototype,"data",void 0);
_.k([_.EM("panelContentVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype",Promise)],ba.prototype,"panelContentVisibleChanged",null);ba=_.k([_.b({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],ba);
_.A(ba,"ytd-product-list-renderer",function(){if(y08!==void 0)return y08;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return y08=E},{mode:1});var C5s;var oq=function(){var E=_.r.apply(this,arguments)||this;E.hideTimestamps=!!_.cc("hide-transcript-timestamps");E.currentCueIndex=-1;E.flatCues=[];E.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};E.TEST_ONLY={getFlatCues:function(){return E.flatCues}};
return E};
_.L(oq,_.r);_.l=oq.prototype;_.l.hideTimestampsChanged=function(){_.l9("hide-transcript-timestamps",this.hideTimestamps)};
_.l.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.l.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.l.dataChanged=function(){var E;if((E=this.data)!=null&&E.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;E=_.p(this.data.cueGroups);for(var B=E.next();!B.done;B=E.next()){B=_.p(_.h(B.value,o1d).cues);for(var I=B.next();!I.done;I=B.next())this.flatCues.push(Number(_.h(I.value,AjO).startOffsetMs))}}};
_.l.onYtPlayerTimeChanged=function(E){if(!(E<0)){for(var B=this.currentCueIndex,I=B;;){var T=I>=0?this.flatCues[I]/1E3:-1;if(E+.5<T)--I;else if(T=I+1<this.flatCues.length?this.flatCues[I+1]/1E3:Infinity,E+.5>T)I+=1;else break}I!==B&&(B>=0&&((E=this.getCueElement(B))&&E.classList.remove("active"),(B=this.getCueGroupElement(B))&&B.classList.remove("active")),(B=this.getCueElement(I))&&B.classList.add("active"),(B=this.getCueGroupElement(I))&&B.classList.add("active"),this.currentCueIndex=I,this.isHovered||
this.scrollElementToTop(I))}};
_.l.scrollElementToTop=function(E){E=this.getCueElement(E>=3?E-3:0);this.hostElement.scrollTop=Math.min(E.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.l.getCueElement=function(E){return _.n(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[E]+'"]')};
_.l.getCueGroupElement=function(E){return(E=this.getCueElement(E))&&E.parentElement?E.parentElement.parentElement:null};
_.l.onTap=function(E){var B=_.XN(E);E.target.classList.contains("cue")&&this.seekCueElement(B)};
_.l.onKeyPress=function(E){E.keyCode==13&&(E=_.JHr(E.target,null,"cue"))&&this.seekCueElement(E)};
_.l.seekCueElement=function(E){E=Number(E.getAttribute("start-offset"));_.I2(this.hostElement,"yt-transcript-player-seek",[E/1E3])};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
oq.prototype.onMouseLeave=oq.prototype.onMouseLeave;oq.prototype.onMouseEnter=oq.prototype.onMouseEnter;oq.prototype.onKeyPress=oq.prototype.onKeyPress;oq.prototype.onTap=oq.prototype.onTap;oq.prototype.dataChanged=oq.prototype.dataChanged;oq.prototype.hideTimestampsChanged=oq.prototype.hideTimestampsChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],oq.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],oq.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],oq.prototype,"hideTimestamps",void 0);_.k([_.X(),_.t("design:type",Boolean)],oq.prototype,"isHovered",void 0);_.k([_.EM("hideTimestamps"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oq.prototype,"hideTimestampsChanged",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oq.prototype,"dataChanged",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],oq.prototype,"onTap",null);_.k([_.RN("keypress"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],oq.prototype,"onKeyPress",null);
_.k([_.RN("mouseenter"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oq.prototype,"onMouseEnter",null);_.k([_.RN("mouseleave"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oq.prototype,"onMouseLeave",null);oq=_.k([_.b({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],oq);
_.A(oq,"ytd-transcript-body-renderer",function(){if(C5s!==void 0)return C5s;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return C5s=E},{mode:1});var wos;var Ap=function(){var E=_.r.apply(this,arguments)||this;E.darkerPanels=_.d("web_watch_darker_panels");return E};
_.L(Ap,_.r);Ap.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Ap.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ap.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Ap.prototype,"darkerPanels",void 0);Ap=_.k([_.b({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Ap);
_.A(Ap,"ytd-transcript-footer-renderer",function(){if(wos!==void 0)return wos;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return wos=E},{mode:1});var Z5g;var P5L;var jH=function(){var E=_.r.apply(this,arguments)||this;E.systemIcons=_.d("kevlar_system_icons");E.showClearButton=!1;return E};
_.L(jH,_.r);_.l=jH.prototype;_.l.handleInput=function(E){var B=this;E.target.value.length?_.OM(this,"ytdTranscriptSearchBoxSearch",function(){B.emitSearchEvent(E)},500):(_.JNc(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=E.target.value.length>0};
_.l.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.l.handleClick=function(){var E,B=(E=this.data)==null?void 0:E.trackingParams;B&&_.cx(_.lu(),B)};
_.l.handleClear=function(){_.JNc(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var E,B,I=(B=_.h((E=this.data)==null?void 0:E.clearButton,_.NT))==null?void 0:B.trackingParams;I&&_.cx(_.lu(),I);this.clear()};
_.l.emitSearchEvent=function(E){_.$O(this.hostElement,"yt-transcript-search-box-search",{query:E.target.value});var B,I;(E=(I=_.h((B=this.data)==null?void 0:B.searchButton,_.NT))==null?void 0:I.trackingParams)&&_.cx(_.lu(),E)};
_.l.emitClearEvent=function(){_.$O(this.hostElement,"yt-transcript-search-box-clear")};
_.Up.Object.defineProperties(jH.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.n(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],jH.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],jH.prototype,"systemIcons",void 0);jH=_.k([_.b({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],jH);
_.A(jH,"ytd-transcript-search-box-renderer",function(){if(P5L!==void 0)return P5L;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return P5L=E},{mode:1});var zYH;var mZ7;var UJ=function(){return _.r.apply(this,arguments)||this};
_.L(UJ,_.r);UJ.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var E,B;this.sectionHeaderAriaLabel=(E=this.data)==null?void 0:(B=E.accessibility)==null?void 0:B.accessibilityData.label}};
UJ.prototype.fireSelectedEvent=function(E){_.$O(this.hostElement,"ytd-transcript-section-header",{startMs:E})};
UJ.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
UJ.prototype.handleKeyPress=function(E){this.data&&E.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Up.Object.defineProperties(UJ.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var E,B;return(B=(E=this.data)==null?void 0:E.enableTappableTranscriptHeader)!=null?B:!1}}});
UJ.prototype.dataChanged=UJ.prototype.dataChanged;_.k([_.X(),_.t("design:type",Object)],UJ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],UJ.prototype,"sectionHeaderAriaLabel",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],UJ.prototype,"enableTappableTranscriptHeader",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],UJ.prototype,"dataChanged",null);
UJ=_.k([_.b({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],UJ);
_.A(UJ,"ytd-transcript-section-header-renderer",function(){if(mZ7!==void 0)return mZ7;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return mZ7=E},{mode:1});var Q19;var dZ1;var k0=function(){var E=_.r.apply(this,arguments)||this;E.isEditMode=!1;E.touchCaptionsEnabled=!1;E.deleteCaptionCorrectionPopupCommand=null;E.voteCaptionCorrectionPopupCommand=null;E.roundedContainer=!0;E.mouseOver=!1;E.textChanged=!1;E.messages={suggest_correction:_.yu("suggest_correction",void 0,"Edit caption"),suggested_caption:_.yu("suggested_caption",void 0,"Suggested caption"),submit_correction:_.yu("submit_correction",void 0,"Submit for review"),cancel_correction:_.yu("cancel_correction",
void 0,"Cancel"),replay_segment:_.yu("replay_segment",void 0,"Re-play segment"),delete_correction:_.yu("delete_correction",void 0,"Delete correction")};E.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return E};
_.L(k0,_.r);_.l=k0.prototype;_.l.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)};
_.l.handleDelete=function(E){if(this.deleteCaptionCorrectionPopupCommand){var B=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);B&&this.ytdOpenPopupBehavior.openPopup(B);E.stopPropagation()}};
_.l.handleSubmit=function(E){if(this.data&&this.data.submitCaptionCorrectionCommand&&(E.stopPropagation(),this.textChanged)){var B;E=(B=_.h(this.data.submitCaptionCorrectionCommand,_.g8N))==null?void 0:B.params;B=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:E,correctionText:String(this.ironTextAreaElement.value),originalText:_.U3(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(B);this.isEditMode=!1}};
_.l.handleUpdateSegmentText=function(E){(E=_.h(E,eq1))&&E.targetId&&this.data&&E.targetId===this.data.targetId&&(E.userCorrection&&(this.editedText=E.userCorrection),E.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.U3(this.data.snippet)),E.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=E.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=E.voteCaptionCorrectionPopupCommand?
E.voteCaptionCorrectionPopupCommand:null,E.accessibility&&(this.segmentAriaLabel=E.accessibility.accessibilityData.label))};
_.l.handleCancel=function(E){this.isEditMode=!1;E.stopPropagation();this.logClientVe(159409)};
_.l.handleEditSegmentCommand=function(E){(E=_.h(E,Tqm))&&E.targetId&&this.data&&E.targetId===this.data.targetId&&this.handleEdit()};
_.l.handleEditButtonClick=function(E){this.data&&(this.handleEdit(),E.stopPropagation())};
_.l.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var E;(E=this.ironTextAreaElement.textarea)==null||E.focus();this.logClientVe(159407)}};
_.l.handleMouseEnter=function(){this.mouseOver=!0};
_.l.handleMouseLeave=function(){this.mouseOver=!1};
_.l.handleReplay=function(E){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),E.stopPropagation(),this.logClientVe(159408))};
_.l.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()))};
_.l.handleKeypress=function(E){this.data&&(this.isEditMode?E.stopPropagation():this.isEnterPress(E)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(E)&&this.logClientVe(138758))};
_.l.handleTextboxClick=function(E){E.stopPropagation()};
_.l.handleTextboxKeydown=function(E){this.isControlEnterPress(E)?this.handleSubmit(E):E.key==="Escape"&&this.handleCancel(E)};
_.l.handleTextboxKeyup=function(){this.textChanged=_.U3(this.latestText)!==String(this.ironTextAreaElement.value)};
_.l.fireSelectedEvent=function(E){_.$O(this.hostElement,"yt-transcript-segment-selected",{startMs:E})};
_.l.fireReplayEvent=function(E,B){_.$O(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(E-100,0),endMs:B})};
_.l.fireEditEvent=function(E,B){_.$O(this.hostElement,"yt-transcript-segment-edit",{startMs:E,endMs:B})};
_.l.isEnterPress=function(E){return E.key==="Enter"||E.code==="Enter"||E.code==="NumpadEnter"||E.keyCode===13?!0:!1};
_.l.isControlEnterPress=function(E){var B=E.key==="Enter"||E.code==="Enter"||E.code==="NumpadEnter"||E.keyCode===13;return(E.ctrlKey||E.metaKey)&&B};
_.l.isCopyPress=function(E){var B=E.ctrlKey;return E.key==="c"&&B};
_.l.logClick=function(){var E,B=(E=this.data)==null?void 0:E.trackingParams;B&&_.cx(_.lu(),B)};
_.l.logClientVe=function(E){_.lf(_.lu(),_.wA(E))};
_.Up.Object.defineProperties(k0.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}}});
k0.prototype.handleMouseLeave=k0.prototype.handleMouseLeave;k0.prototype.handleMouseEnter=k0.prototype.handleMouseEnter;k0.prototype.dataChanged=k0.prototype.dataChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],k0.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.X_),_.t("design:type",Object)],k0.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],k0.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],k0.prototype,"isEditMode",void 0);_.k([_.X(),_.t("design:type",Object)],k0.prototype,"touchCaptionsEnabled",void 0);_.k([_.X(),_.t("design:type",Object)],k0.prototype,"editedText",void 0);_.k([_.X(),_.t("design:type",Object)],k0.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.k([_.X(),_.t("design:type",Object)],k0.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.k([_.X(),_.t("design:type",String)],k0.prototype,"segmentAriaLabel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],k0.prototype,"roundedContainer",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],k0.prototype,"mouseOver",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],k0.prototype,"textChanged",void 0);_.k([_.X(),_.t("design:type",Object)],k0.prototype,"messages",void 0);
_.k([_.$7("#suggestion"),_.t("design:type",Object)],k0.prototype,"ironTextAreaElement",void 0);_.k([_.S("data","editedText"),_.t("design:type",Object),_.t("design:paramtypes",[])],k0.prototype,"latestText",null);_.k([_.S("touchCaptionsEnabled","isEditMode"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],k0.prototype,"enableEditButton",null);
_.k([_.S("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],k0.prototype,"enableUndoButton",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],k0.prototype,"dataChanged",null);_.k([_.RN("mouseenter"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],k0.prototype,"handleMouseEnter",null);
_.k([_.RN("mouseleave"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],k0.prototype,"handleMouseLeave",null);k0=_.k([_.b({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],k0);
_.A(k0,"ytd-transcript-segment-renderer",function(){if(dZ1!==void 0)return dZ1;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return dZ1=E},{mode:1});var tp=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};E.isError=!1;E.darkerPanels=_.d("web_watch_darker_panels");E.segmentOffsets=[];E.segmentIndex=-1;return E};
_.L(tp,_.r);_.l=tp.prototype;_.l.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"}}}}};
_.l.segmentsChanged=function(){this.updateOffsets()};
_.l.onYtPlayerTimeChanged=function(E){for(var B=this.segmentIndex,I=B;;){if(I>=0){var T=this.segmentOffsets[I].start;var e=this.segmentOffsets[I].isAutoScrollable}else T=-1,e=!0;var c=E+.5;if(!e){T=I+1<this.segmentOffsets.length?this.segmentOffsets[I+1].start:Infinity;if(c>=T){I+=1;continue}I=-1;break}if(c<T)T=I-1>=0&&this.segmentOffsets[I-1].isAutoScrollable,e=I===0||T?1:2,I-=e;else if(e=I+1<this.segmentOffsets.length&&this.segmentOffsets[I+1].isAutoScrollable?1:2,T=I+e<this.segmentOffsets.length?
this.segmentOffsets[I+e].start:Infinity,c>T)I+=e;else{if(I<0)break;I<this.segmentOffsets.length&&c>this.segmentOffsets[I].end&&(I=-1);break}}if(B!==I){if(B>=0){var Y;(Y=this.getSegmentElement(B))==null||Y.classList.remove("active")}this.segmentIndex=I;if(!(I<0)){var v;(v=this.getSegmentElement(I))==null||v.classList.add("active");this.isHovered||this.scrollElementToTop(I)}}};
_.l.handleSegmentEdit=function(E){E.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=E.target,_.I2(this.hostElement,"yt-transcript-player-edit",[E.detail.startMs/1E3,E.detail.endMs/1E3]))};
_.l.handleSegmentSelected=function(E){_.I2(this.hostElement,"yt-transcript-player-seek",[E.detail.startMs/1E3])};
_.l.handleSegmentReplay=function(E){_.I2(this.hostElement,"yt-transcript-player-replay",[E.detail.startMs/1E3,E.detail.endMs/1E3])};
_.l.handleSectionHeaderSelected=function(E){_.I2(this.hostElement,"yt-transcript-player-seek",[E.detail.startMs/1E3])};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
_.l.onRetryButtonClick=function(){_.$O(this.hostElement,"transcript-retry-button-click")};
_.l.getSegmentElement=function(E){return _.n(this.hostElement).querySelector(":nth-child("+(E+1)+")")};
_.l.scrollElementToTop=function(E){E=this.getSegmentElement(E>=2?E-2:0);this.hostElement.scrollTop=Math.min(E.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.l.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(E){var B,I=(B=E.transcriptSegmentRenderer)!=null?B:E.transcriptSectionHeaderRenderer;return{start:Number(I.startMs)/1E3,end:Number(I.endMs)/1E3,isAutoScrollable:E.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.l.clearHighlightedSegments=function(){var E=_.n(this.hostElement);E=_.p(E.querySelectorAll("ytd-transcript-segment-renderer"));for(var B=E.next();!B.done;B=E.next())B.value.classList.remove("active")};
_.Up.Object.defineProperties(tp.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?void 0:E.searchResultSegments)||((B=this.data)==null?void 0:B.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
tp.prototype.onMouseLeave=tp.prototype.onMouseLeave;tp.prototype.onMouseEnter=tp.prototype.onMouseEnter;tp.prototype.handleSectionHeaderSelected=tp.prototype.handleSectionHeaderSelected;tp.prototype.handleSegmentReplay=tp.prototype.handleSegmentReplay;tp.prototype.handleSegmentSelected=tp.prototype.handleSegmentSelected;tp.prototype.handleSegmentEdit=tp.prototype.handleSegmentEdit;tp.prototype.segmentsChanged=tp.prototype.segmentsChanged;
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],tp.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],tp.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],tp.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],tp.prototype,"isError",void 0);
_.k([_.X(),_.t("design:type",Object)],tp.prototype,"noResultLabel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],tp.prototype,"darkerPanels",void 0);_.k([_.S("data"),_.t("design:type",Array),_.t("design:paramtypes",[])],tp.prototype,"segments",null);_.k([_.S("segments","noResultLabel"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],tp.prototype,"displayNoResults",null);
_.k([_.EM("segments"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],tp.prototype,"segmentsChanged",null);_.k([_.RN("yt-transcript-segment-edit"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],tp.prototype,"handleSegmentEdit",null);_.k([_.RN("yt-transcript-segment-selected"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],tp.prototype,"handleSegmentSelected",null);
_.k([_.RN("yt-transcript-segment-replay"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],tp.prototype,"handleSegmentReplay",null);_.k([_.RN("ytd-transcript-section-header"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],tp.prototype,"handleSectionHeaderSelected",null);_.k([_.RN("mouseenter"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],tp.prototype,"onMouseEnter",null);
_.k([_.RN("mouseleave"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],tp.prototype,"onMouseLeave",null);tp=_.k([_.b({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],tp);
_.A(tp,"ytd-transcript-segment-list-renderer",function(){if(Q19!==void 0)return Q19;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Q19=E},{mode:1});var fv=function(){var E=_.r.apply(this,arguments)||this;E.hideTimestamps=!!_.cc("hide-transcript-timestamps");E.isLoadingTranscripts=!1;E.darkerPanels=_.d("web_watch_darker_panels");E.isError=!1;E.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return E};
_.L(fv,_.r);_.l=fv.prototype;_.l.headerChanged=function(){var E,B;this.baseGetTranscriptsCommand=(B=_.h((E=this.data)==null?void 0:E.header,lhs))==null?void 0:B.onTextChangeCommand};
_.l.bodyChanged=function(){var E=this.getBodyRenderer();E&&(E.initialSegments&&(this.initialTranscriptsRenderer=E),E.noResultLabel&&(this.noResultLabel=E.noResultLabel),E.retryLabel&&(this.retryLabel=E.retryLabel))};
_.l.detached=function(){this.clearSearchBoxText()};
_.l.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.l.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"}}}};
_.l.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.l.fireSearch=function(E){var B=this;if(E){var I=E.detail.query;if(this.baseGetTranscriptsCommand){var T;E=(T=_.h(this.baseGetTranscriptsCommand,_.OSZ))==null?void 0:T.params;var e;T=_.h((e=this.data)==null?void 0:e.footer,jsm);var c;if((e=(c=_.h(T==null?void 0:T.languageMenu,Bqs))==null?void 0:c.subMenuItems)&&e.length>0&&(c=e.find(function(y){return y.selected}))){var Y,v;
E=(Y=c.continuation)==null?void 0:(v=Y.reloadContinuationData)==null?void 0:v.continuation}Y=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:E,searchQuery:I}});this.ytComponentBehavior.resolveCommand(Y,{commandController:{onServerError:function(){B.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});uom(this.ytContinuationHandlerBehavior,function(){return I===B.getCurrentSearchBoxText()})}}};
_.l.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.l.onRetryButtonClick=function(){this.isError=!1;var E={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:E}))};
_.l.hideTimestampsChanged=function(){_.l9("hide-transcript-timestamps",this.hideTimestamps)};
_.l.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.l.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.l.handleSignalActionCopyTranscript=function(){var E=this,B=this.getBodyRenderer();B&&(B=((B==null?void 0:B.searchResultSegments)||(B==null?void 0:B.initialSegments)||[]).map(function(I){return _.h(I,iw2)}).filter(function(I){return!!I}).map(function(I){return{snippet:I.snippet||{runs:[{text:""}]},
startTimeText:I.startTimeText||{simpleText:""}}}).map(function(I){var T=(I.snippet.runs||[]).reduce(function(e,c){return e+c.text},"");
return E.hideTimestamps?T:I.startTimeText.simpleText+" "+T}).join("\n"),this.copyToClipboard(B))};
_.l.copyToClipboard=function(E){navigator.clipboard&&navigator.clipboard.writeText(E)};
_.l.getCurrentSearchBoxText=function(){var E;return(E=this.searchBox)==null?void 0:E.value};
_.l.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.l.getBodyRenderer=function(){var E;return _.h((E=this.data)==null?void 0:E.body,c38)};
_.l.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Up.Object.defineProperties(fv.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.n(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
fv.prototype.hideTimestampsChanged=fv.prototype.hideTimestampsChanged;fv.prototype.searchCleared=fv.prototype.searchCleared;fv.prototype.fireSearch=fv.prototype.fireSearch;fv.prototype.onReloadContinuationFinish=fv.prototype.onReloadContinuationFinish;fv.prototype.bodyChanged=fv.prototype.bodyChanged;fv.prototype.headerChanged=fv.prototype.headerChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],fv.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.xo),_.t("design:type",Object)],fv.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],fv.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],fv.prototype,"hideTimestamps",void 0);
_.k([_.X(),_.t("design:type",Object)],fv.prototype,"isLoadingTranscripts",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],fv.prototype,"darkerPanels",void 0);_.k([_.X(),_.t("design:type",Object)],fv.prototype,"isError",void 0);_.k([_.EM("data.header"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fv.prototype,"headerChanged",null);
_.k([_.i6("data.body"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fv.prototype,"bodyChanged",null);_.k([_.RN("yt-reload-continuation-finish"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fv.prototype,"onReloadContinuationFinish",null);_.k([_.RN("yt-transcript-search-box-search"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],fv.prototype,"fireSearch",null);
_.k([_.RN("yt-transcript-search-box-clear"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fv.prototype,"searchCleared",null);_.k([_.EM("hideTimestamps"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fv.prototype,"hideTimestampsChanged",null);fv=_.k([_.b({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],fv);
_.A(fv,"ytd-transcript-search-panel-renderer",function(){if(zYH!==void 0)return zYH;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return zYH=E},{mode:1});var V7=function(){var E=_.r.apply(this,arguments)||this;E.player=null;E.playerPollJobId=0;return E};
_.L(V7,_.r);_.l=V7.prototype;_.l.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.l.onLoadReloadContinuation=function(E){_.d("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:E.target.data.continuation}}):(E={clickTrackingParams:E.target.data.clickTrackingParams,getTranscriptEndpoint:{params:E.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}}))};
_.l.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"}}}};
_.l.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.l.attached=function(){this.updatePlayerListening()};
_.l.detached=function(){this.updatePlayerListening()};
_.l.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.l.startPlayerListening=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return(B=_.jx())?_.C(I,B.getPlayerPromise(),2):I.return();E.player=I.yieldResult;E.playerPollJobId=_.Ll.addLowPriorityJob(function(){E.getPlayerVideoProgress()},1E3);
E.player.addEventListener("onCueRangeEnter",function(T){E.onCueRangeEnter(T)});
E.player.addEventListener("onCueRangeExit",function(T){E.onCueRangeExit(T)});
E.player.addEventListener("onStateChange",function(T){E.onPlayerStateChange(T)});
E.player.addEventListener("SEEK_TO",function(T){E.onPlayerSeek(T)});
_.ER(I)})};
_.l.getPlayerVideoProgress=function(){var E=this;_.Ll.cancelJob(this.playerPollJobId);if(this.player){var B=this.player.getCurrentTime();_.I2(this.hostElement,"yt-player-time-changed",[B])}this.playerPollJobId=_.Ll.addLowPriorityJob(function(){E.getPlayerVideoProgress()},1E3)};
_.l.stopPlayerListening=function(){this.player=null;_.Ll.cancelJob(this.playerPollJobId)};
_.l.onPlayerStateChange=function(E){E===2&&this.removePendingCue()};
_.l.onPlayerSeek=function(E){var B;if(B=this.pendingReplayCueId)B=this.pendingReplayCueId,B=E===(_.d("web_transcript_cue_id_killswitch")?Number(B):Number(B.split("_")[1]));B||this.removePendingCue()};
_.l.onCueRangeEnter=function(E){FLt(E)&&(this.pendingReplayCueId=E)};
_.l.onCueRangeExit=function(E){FLt(E)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.l.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.l.onYtTranscriptPlayerSeek=function(E){this.player&&this.player.seekTo(E,!0)};
_.l.onYtTranscriptPlayerReplay=function(E,B){this.player&&(this.player.addCueRange(q2g(E),E,B),this.player.seekTo(E,!0),this.player.playVideo())};
_.l.onYtTranscriptPlayerEdit=function(E,B){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(q2g(E),E,B),this.player.seekTo(E,!0))};
V7.prototype.onLoadReloadContinuation=V7.prototype.onLoadReloadContinuation;V7.prototype.panelContentVisibleChanged=V7.prototype.panelContentVisibleChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],V7.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],V7.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],V7.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],V7.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],V7.prototype,"panelContentVisible",void 0);_.k([_.EM("panelContentVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],V7.prototype,"panelContentVisibleChanged",null);
_.k([_.RN("yt-load-reload-continuation"),_.t("design:type",Function),_.t("design:paramtypes",[Object]),_.t("design:returntype")],V7.prototype,"onLoadReloadContinuation",null);V7=_.k([_.b({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],V7);
_.A(V7,"ytd-transcript-renderer",function(){if(Z5g!==void 0)return Z5g;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Z5g=E},{mode:1});var hYm;var s1s;var qO=function(){return _.r.apply(this,arguments)||this};
_.L(qO,_.r);qO.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.cN(this.hostElement,[this.data.clickCommand],this.hostElement))};
qO.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.zo)()+_.Sq)+"px)"};
qO.prototype.updateShouldHideFromBinding=function(E){this.shouldHide=E.detail.value};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],qO.prototype,"rendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],qO.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],qO.prototype,"shouldHide",void 0);qO=_.k([_.b({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],qO);
_.A(qO,"ytd-ad-engagement-panel-banner-renderer",function(){if(s1s!==void 0)return s1s;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return s1s=E},{mode:_.qi("kevlar_poly_si_batch_j070")?1:2});var ujL;var Fq=function(){var E=_.r.apply(this,arguments)||this;E.modernPanels=_.d("kevlar_watch_modern_panels");E.buttonUpdate=_.d("web_modern_buttons");E.adsSemanticText=_.d("enable_ads_web_ep_buenos_aires_and_padding_fix");return E};
_.L(Fq,_.r);Fq.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.k([_.X(),_.t("design:type",Object)],Fq.prototype,"data",void 0);_.k([_.X({computed:"computeHideDefaultAdBadge(data)"}),_.t("design:type",Boolean)],Fq.prototype,"hideDefaultAdBadge",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Fq.prototype,"modernPanels",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Fq.prototype,"buttonUpdate",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Fq.prototype,"adsSemanticText",void 0);
Fq=_.k([_.b({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Fq);
_.A(Fq,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(ujL!==void 0)return ujL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ujL=E},{mode:1});var Lkg;var DH=function(){var E=_.r.apply(this,arguments)||this;E.darkerPanels=_.d("web_watch_darker_panels");E.enableSqueezebackPanels=_.d("web_shorts_enable_squeezeback_panels");E.enableAnchoredPanel=_.d("desktop_shorts_v2_anchored_panel");E.modernPanels=_.d("kevlar_watch_modern_panels");E.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return E};
_.L(DH,_.r);_.l=DH.prototype;_.l.computeAdsInfoButton=function(){if(_.d("web_modern_buttons")){var E,B;return(B=_.h((E=this.data)==null?void 0:E.subtitleComplex,UF8))==null?void 0:B.adInfoRenderer}};
_.l.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}}}}}};
_.l.collapsedChanged=function(){var E;(E=this.data)!=null&&E.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.d("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.l.focus=function(E){this.titleElement&&_.ox(this.titleElement,E)};
_.l.computeTitleAriaLabel=function(E){var B=[];if(E.title){var I,T;B.push(this.ytRendererBehavior.getSimpleString(E.title)||((I=E.title.accessibility)==null?void 0:(T=I.accessibilityData)==null?void 0:T.label))}E.contextualInfo&&B.push(this.ytRendererBehavior.getSimpleString(E.contextualInfo));return B.join(" ")};
_.l.onHeaderClick=function(E){this.shouldTriggerHeaderClick(E)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.cN(this.hostElement,[this.data.onClickCommand],this.hostElement)):(E=this.getVisibilityToggleButton())&&E.click())};
_.l.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var E=_.h(this.data.visibilityButton,_.NT)||_.h(this.data.visibilityButton,_.g8);E&&this.ytRendererBehavior.logExplicitClick(E)}};
_.l.getVisibilityToggleButton=function(){var E=_.n(this.hostElement).querySelector("#visibility-button").firstElementChild;return(E==null?void 0:E.is)==="ytd-toggle-button-renderer"?E:null};
_.l.shouldTriggerHeaderClick=function(E){return!_.XZ(_.W8(E),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.l.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(E){E=_.h(E,_.SBI);this.targetId&&(E==null?void 0:E.targetId)===this.targetId&&(E=E.navigationButton)&&this.set("data.navigationButton",E)};
_.Up.Object.defineProperties(DH.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.d("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var E;return!!(((E=this.entity)==null?0:E.isActionButtonHidden)||this.hideActionButton)}}});
DH.prototype.collapsedChanged=DH.prototype.collapsedChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],DH.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],DH.prototype,"ytdReduxBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],DH.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],DH.prototype,"targetId",void 0);_.k([_.X(),_.t("design:type",Boolean)],DH.prototype,"collapsed",void 0);_.k([_.X(),_.t("design:type",Boolean)],DH.prototype,"hideActionButton",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],DH.prototype,"shortsPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],DH.prototype,"liveChatEngagementPanel",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DH.prototype,"darkerPanels",void 0);_.k([_.$7("#title"),_.t("design:type",HTMLElement)],DH.prototype,"titleElement",void 0);_.k([_.X({computed:"computeAdsInfoButton(data)"}),_.t("design:type",Object)],DH.prototype,"adsInfoButton",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DH.prototype,"enableSqueezebackPanels",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DH.prototype,"enableAnchoredPanel",void 0);_.k([_.X({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(E,B){return _.cP(E.entities,"engagementPanelTitleHeaderEntity",B)}}),
_.t("design:type",Object)],DH.prototype,"entity",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DH.prototype,"modernPanels",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("targetId"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],DH.prototype,"adsSemanticText",null);_.k([_.i6("collapsed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],DH.prototype,"collapsedChanged",null);
_.k([_.S("entity","hideActionButton"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],DH.prototype,"isActionButtonHidden",null);DH=_.k([_.b({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],DH);
_.A(DH,"ytd-engagement-panel-title-header-renderer",function(){if(Lkg!==void 0)return Lkg;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Lkg=E},{mode:1});var xZd;var Kv=function(){return _.r.apply(this,arguments)||this};
_.L(Kv,_.r);Kv.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Kv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Kv.prototype,"data",void 0);Kv=_.k([_.b({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Kv);
_.A(Kv,"ytd-macro-markers-info-item-renderer",function(){if(xZd!==void 0)return xZd;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return xZd=E},{mode:1});var GW7;var Mhg=function(E,B,I,T,e,c){_.Cx.call(this);var Y=this;this.JSC$19999_containerElement=E;this.hostElement=B;this.supportedSyncItems=I;this.syncEntityKey=T;this.options=e;this.renderLazyListItems=c;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;O5T(this);n$O(this);this.JSC$19999_scrollAnimation=new _.sW(function(v){E.scrollTop=v});
_.Bp(this,this.JSC$19999_scrollAnimation);this.addOnDisposeCallback(function(){Y.exitBrowsingMode(!1);Y.activeItem&&Y.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.L(Mhg,_.Cx);var O5T=function(E){var B=_.C_(_.Q().resolve(_.sy),function(I){return I.entities.markersEngagementPanelSyncEntity||{}},function(I,T){var e;
I[E.syncEntityKey]!==T[E.syncEntityKey]&&((e=I[E.syncEntityKey])==null?void 0:e.activeItemIndex)!==void 0&&E.updatePanelActiveItem(I[E.syncEntityKey].activeItemIndex)});
E.unsubscribeFromTimedMarkersListSyncEntity=B;E.addOnDisposeCallback(B);H5L(E)},H5L=function(E){var B=_.Q().resolve(_.sy);
B=_.WPB(B.getState(),E.syncEntityKey);(B==null?void 0:B.activeItemIndex)!==void 0&&(B=E.getItemByIndex(B.activeItemIndex))&&E.setActiveItem(B)},n$O=function(E){var B=new _.qH(E.onScroll,50,E);
_.Bp(E,B);var I=function(){B.fire()};
E.JSC$19999_containerElement.addEventListener("scroll",I);E.addOnDisposeCallback(function(){E.JSC$19999_containerElement.removeEventListener("scroll",I)})};
_.l=Mhg.prototype;
_.l.updatePanelActiveItem=function(E){var B=this.getItemByIndex(E);if(B){if(this.setActiveItem(B),this.contentVisible)if(this.browsingMode){var I;((I=this.options)==null?void 0:I.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(E=NN9(this),B.offsetTop<this.JSC$19999_containerElement.clientHeight+this.JSC$19999_containerElement.scrollTop&&E&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));g$2(this)}else this.scrollToItem(B)}else _.OG(new _.P7("Could not find "+this.supportedSyncItems+
" sync child to set active.",E,this.JSC$19999_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.l.getItemByIndex=function(E){var B;(B=this.renderLazyListItems)==null||B.call(this,E);B=this.JSC$19999_containerElement.querySelectorAll(this.supportedSyncItems);if(B.length>E)return B[E]};
_.l.setActiveItem=function(E){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));E.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=E};
_.l.scrollToItem=function(E){E=this.getScrollPositionForItem(E);this.JSC$19999_containerElement.scrollTop!==E&&this.JSC$19999_scrollAnimation.start(this.JSC$19999_containerElement.scrollTop,E,300)};
_.l.getScrollPositionForItem=function(E){if(this.JSC$19999_containerElement.querySelectorAll(this.supportedSyncItems)[0]===E)return 0;var B,I=((B=this.options)==null?0:B.percentOffset)?this.JSC$19999_containerElement.clientHeight*this.options.percentOffset:0;E=_.zi(E).y+this.JSC$19999_containerElement.scrollTop-(_.zi(this.JSC$19999_containerElement).y+I);return Math.max(0,Math.min(E,this.JSC$19999_containerElement.scrollHeight-this.JSC$19999_containerElement.offsetHeight))};
_.l.onScroll=function(){this.activeItemBelowSyncPosition=NN9(this);if(this.activeItem&&!this.JSC$19999_scrollAnimation.isAnimating()&&Math.abs(this.JSC$19999_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var E;switch((E=this.options)==null?void 0:E.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!SV1(this));g$2(this);break;default:this.enterBrowsingMode(!0)}}};
_.l.enterBrowsingMode=function(E){var B=this,I,T;return _.a(function(e){if(e.nextAddress==1){if(B.browsingMode)return e.return();B.browsingMode=!0;E&&B.hostElement.classList.add("browsing-mode");B.playerExitBrowsingModeListener=function(){B.exitBrowsingMode(!1)};
return _.C(e,_.EO(),2)}I=e.yieldResult;(T=I)==null||T.addEventListener("SEEK_TO",B.playerExitBrowsingModeListener);_.ER(e)})};
_.l.exitBrowsingMode=function(E){E=E===void 0?!0:E;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),E&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.l.removePlayerSeekListener=function(){var E=this,B,I;return _.a(function(T){if(T.nextAddress==1)return E.playerExitBrowsingModeListener?_.C(T,_.EO(),3):T.jumpTo(0);B=T.yieldResult;(I=B)==null||I.removeEventListener("SEEK_TO",E.playerExitBrowsingModeListener);E.playerExitBrowsingModeListener=void 0;_.ER(T)})};
var g$2=function(E){var B;((B=E.options)==null?void 0:B.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(SV1(E)?E.hostElement.classList.remove("browsing-mode"):E.activeItem&&E.hostElement.classList.add("browsing-mode"))},NN9=function(E){if(!E.activeItem)return!1;
var B,I=((B=E.options)==null?0:B.percentOffset)?E.JSC$19999_containerElement.clientHeight*E.options.percentOffset:0;return E.activeItem.offsetTop>=E.JSC$19999_containerElement.scrollTop+I},SV1=function(E){if(!E.activeItem)return!1;
var B=E.activeItem.offsetTop+14<=E.JSC$19999_containerElement.scrollTop+E.JSC$19999_containerElement.clientHeight;return E.activeItem.offsetTop+E.activeItem.clientHeight-14>=E.JSC$19999_containerElement.scrollTop&&B};
Mhg.prototype.panelContentVisibleChanged=function(E){(this.contentVisible=E)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var J0g=function(E,B){E.syncEntityKey=B;var I;(I=E.unsubscribeFromTimedMarkersListSyncEntity)==null||I.call(E);O5T(E)},WkT=function(E,B){E.options=B};var Rq=function(){var E=_.r.apply(this,arguments)||this;E.browsingMode=!1;E.modern=_.d("web_button_rework");E.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return E};
_.L(Rq,_.r);_.l=Rq.prototype;_.l.activeItemChanged=function(){if(!_.d("synced_panel_scrolling_controller")){var E;((E=this.syncEntity)==null?void 0:E.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.l.created=function(){var E=this;_.d("synced_panel_scrolling_controller")||(this.JSC$20003_scrollAnimation=new _.sW(function(B){E.contents.scrollTop=B}),this.boundExitBrowsingMode=function(){E.exitBrowsingMode(!1)})};
_.l.detached=function(){if(_.d("synced_panel_scrolling_controller")){var E;(E=this.scrollController)==null||E.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.l.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"}}}};
_.l.dataChanged=function(){var E=this;_.d("synced_panel_scrolling_controller")?_.AJ(this,function(){if(E.scrollController){var B;(B=E.scrollController)==null||B.exitBrowsingMode(!1);var I,T,e;(T=E.scrollController)==null||J0g(T,(e=(I=E.data)==null?void 0:I.syncModelEntityKey)!=null?e:"default-macro-markers-list-renderer-entity-key");var c,Y,v;(v=E.scrollController)==null||WkT(v,{percentOffset:(c=E.data)==null?void 0:c.selectedItemAlignmentPercentOffset,floatingPillType:(Y=E.data)==null?void 0:Y.floatingPillType})}else{var y,
Z,P,z;E.scrollController=new Mhg(E.contents,E.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(z=(y=E.data)==null?void 0:y.syncModelEntityKey)!=null?z:"default-macro-markers-list-renderer-entity-key",{percentOffset:(Z=E.data)==null?void 0:Z.selectedItemAlignmentPercentOffset,floatingPillType:(P=E.data)==null?void 0:P.floatingPillType},function(m){E.renderLazyListItems(m)})}E.scrollController.panelContentVisibleChanged(!!E.panelContentVisible)}):this.exitBrowsingMode()};
_.l.computeButtonShape=function(){var E=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){E.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.l.computeSyncEnabled=function(E){return!(E==null||!E.syncButtonLabel)};
_.l.renderLazyListItems=function(E){for(var B=this.contents.children,I=0,T=0;T<B.length;T++){var e=void 0;(e=B[T].ytLazyListBehavior)==null||e.fillRemainingListItems();var c=void 0,Y=void 0;e=_.h((c=this.data)==null?void 0:(Y=c.contents)==null?void 0:Y[T],_.GWf);Y=c=void 0;if((c=e)==null?0:(Y=c.contents)==null?0:Y.length)I+=e.contents.length;if(I>=E)break}};
_.l.getItemByIndex=function(E){this.renderLazyListItems(E);var B=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(B.length>E)return B[E]};
_.l.setActiveItem=function(E){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);E.active!==void 0&&(E.active=!0);this.currentActiveItem=E};
_.l.handleSetActivePanelItemAction=function(E){if((E=_.h(E,WZO))&&this.panelTargetId===E.panelTargetId){E=E.itemIndex;if(_.d("synced_panel_scrolling_controller")){var B,I;var T=(I=(B=this.data)==null?void 0:B.syncModelEntityKey)!=null?I:"default-macro-markers-list-renderer-entity-key"}else{var e;T=(e=this.data)==null?void 0:e.syncModelEntityKey}if(T){var c;((c=this.syncEntity)==null?void 0:c.activeItemIndex)!==E&&this.ytdReduxBehavior.dispatch(_.aL("markersEngagementPanelSyncEntity",T,{key:T,activeItemIndex:E}))}else this.updatePanelActiveItem(E)}};
_.l.updatePanelActiveItem=function(E){var B=this.getItemByIndex(E);B?(this.setActiveItem(B),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(B)):_.OG(new _.P7("Could not find ytd-macro-markers-list-renderer sync child to set active.",E,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.l.scrollToItem=function(E){E=this.getScrollPositionForItem(E);this.contents.scrollTop!==E&&this.JSC$20003_scrollAnimation.start(this.contents.scrollTop,E,300)};
_.l.getScrollPositionForItem=function(E){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===E)return 0;E=_.zi(E).y+this.contents.scrollTop-_.zi(this.contents).y-this.getStickyHeaderHeight(E);return Math.min(E,this.contents.scrollHeight-this.contents.offsetHeight)};
_.l.getStickyHeaderHeight=function(E){if(E.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var B,I,T;return(T=(B=E.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(I=B.header)==null?void 0:I.offsetHeight)!=null?T:0}return 0};
_.l.onScroll=function(){_.d("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20003_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.l.enterBrowsingMode=function(){var E=this;return _.a(function(B){if(B.nextAddress==1){if(E.browsingMode)return B.return();E.browsingMode=!0;return _.C(B,_.k3().getPlayerPromise(),2)}E.player=B.yieldResult;E.player.addEventListener("SEEK_TO",E.boundExitBrowsingMode);_.ER(B)})};
_.l.exitBrowsingMode=function(E){this.browsingMode&&(this.browsingMode=!1,(E===void 0||E)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.l.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.l.onSyncClick=function(){if(_.d("synced_panel_scrolling_controller")){var E;(E=this.scrollController)==null||E.exitBrowsingMode()}else this.exitBrowsingMode()};
_.l.panelContentVisibleChanged=function(){if(_.d("synced_panel_scrolling_controller")){var E;(E=this.scrollController)==null||E.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Rq.prototype.panelContentVisibleChanged=Rq.prototype.panelContentVisibleChanged;Rq.prototype.dataChanged=Rq.prototype.dataChanged;Rq.prototype.activeItemChanged=Rq.prototype.activeItemChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Rq.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Rq.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Rq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Rq.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Rq.prototype,"data",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],Rq.prototype,"useCustomColors",void 0);_.k([_.X({computed:"computeSyncEnabled(data)"}),_.t("design:type",Boolean)],Rq.prototype,"syncEnabled",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],Rq.prototype,"panelTargetId",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Rq.prototype,"panelContentVisible",void 0);_.k([_.$7("#contents"),_.t("design:type",HTMLElement)],Rq.prototype,"contents",void 0);_.k([_.$7("#sync-container"),_.t("design:type",HTMLElement)],Rq.prototype,"syncContainer",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Rq.prototype,"browsingMode",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Rq.prototype,"modern",void 0);_.k([_.X({selectorArgs:["data.syncModelEntityKey"],selector:_.WPB}),_.t("design:type",Object)],Rq.prototype,"syncEntity",void 0);_.k([_.EM("syncEntity.activeItemIndex"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Rq.prototype,"activeItemChanged",null);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Rq.prototype,"dataChanged",null);_.k([_.EM("panelContentVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Rq.prototype,"panelContentVisibleChanged",null);Rq=_.k([_.b({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Rq);
_.A(Rq,"ytd-macro-markers-list-renderer",function(){if(GW7!==void 0)return GW7;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return GW7=E},{mode:1});var Xo7;var EQ=function(){return _.r.apply(this,arguments)||this};
_.L(EQ,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],EQ.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],EQ.prototype,"data",void 0);EQ=_.k([_.b({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],EQ);
_.A(EQ,"ytd-error-corrections-section-item-renderer",function(){if(Xo7!==void 0)return Xo7;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Xo7=E},{mode:1});var r0I;var Bg=function(){return _.r.apply(this,arguments)||this};
_.L(Bg,_.r);Bg.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Bg.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Bg.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Bg.prototype,"data",void 0);Bg=_.k([_.b({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Bg);
_.A(Bg,"ytd-error-corrections-section-renderer",function(){if(r0I!==void 0)return r0I;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return r0I=E},{mode:1});var b5T;var $d=function(){return _.r.apply(this,arguments)||this};
_.L($d,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],$d.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],$d.prototype,"data",void 0);$d=_.k([_.b({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],$d);
_.A($d,"ytd-topic-link-renderer",function(){if(b5T!==void 0)return b5T;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return b5T=E},{mode:1});var o$t;var IK=function(){var E=_.r.apply(this,arguments)||this;E.modern=_.d("kevlar_modern_sd_v2");E.modernLockupV2=_.d("modernize_structured_description_playlist_lockups_v2");E.modernTypography=_.d("web_modern_typography");return E};
_.L(IK,_.r);IK.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"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],IK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],IK.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],IK.prototype,"modern",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],IK.prototype,"modernLockupV2",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],IK.prototype,"modernTypography",void 0);IK=_.k([_.b({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],IK);
_.A(IK,"ytd-video-description-course-section-renderer",function(){if(o$t!==void 0)return o$t;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return o$t=E},{mode:1});var A0d;var Tp=function(){var E=_.r.apply(this,arguments)||this;E.modern=_.d("kevlar_modern_sd_v2");E.modernTypography=_.d("web_modern_typography");return E};
_.L(Tp,_.r);Tp.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"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Tp.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Tp.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Tp.prototype,"modern",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Tp.prototype,"modernTypography",void 0);
Tp=_.k([_.b({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Tp);
_.A(Tp,"ytd-video-description-files-section-renderer",function(){if(A0d!==void 0)return A0d;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return A0d=E},{mode:1});var j1H;var eE=function(){return _.r.apply(this,arguments)||this};
_.L(eE,_.r);eE.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"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],eE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],eE.prototype,"data",void 0);eE=_.k([_.b({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],eE);
_.A(eE,"ytd-video-description-gaming-section-renderer",function(){if(j1H!==void 0)return j1H;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return j1H=E},{mode:1});var UZg;var lH=function(){var E=_.r.apply(this,arguments)||this;E.isExpanded=!1;return E};
_.L(lH,_.r);lH.prototype.computeHasDefaultMetadataEndpoint=function(E){var B;E=E==null?void 0:(B=E.defaultMetadata)==null?void 0:B.runs;return!(!E||E.length!==1||!E[0].navigationEndpoint)};
lH.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Up.Object.defineProperties(lH.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],lH.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],lH.prototype,"isExpanded",void 0);_.k([_.X({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],lH.prototype,"hasDefaultMetadataEndpoint",void 0);
_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],lH.prototype,"isExpandable",null);_.k([_.S("data","isExpandable","isExpanded"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],lH.prototype,"showExpandedMetadata",null);lH=_.k([_.b({is:"ytd-info-row-renderer",disableElementRegistration:!0})],lH);
_.A(lH,"ytd-info-row-renderer",function(){if(UZg!==void 0)return UZg;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return UZg=E},{mode:1});var kW1;var cg=function(){var E=_.r.apply(this,arguments)||this;E.currentIndex=0;E.supportComponentResize=!0;E.modern=_.d("kevlar_modern_sd_v2");E.JSC$20029_lastScrollContainerWidth=NaN;return E};
_.L(cg,_.r);_.l=cg.prototype;
_.l.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"}}}};
_.l.getItemsPath=function(){return"videoLockups"};
_.l.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.l.onIronResize=function(){this.updateVideoLockupStyles()};
_.l.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.l.updateVideoLockupStyles=function(){var E;this.JSC$20029_scrollContainer!==void 0&&(E=this.videoLockups)!=null&&E.length&&(E=this.JSC$20029_scrollContainer.clientWidth,E!==this.JSC$20029_lastScrollContainerWidth&&(this.JSC$20029_lastScrollContainerWidth=E,_.Dk(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(E*.8,415)+"px"}),_.$O(this.hostElement,"iron-resize")))};
_.Up.Object.defineProperties(cg.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var E=[],B;if((B=this.data)==null||!B.carouselLockups)return E;B=_.p(this.data.carouselLockups);for(var I=B.next();!I.done;I=B.next()){I=I.value;var T=void 0;((T=_.h(I,vK7))==null?0:T.videoLockup)&&E.push(_.h(I,vK7).videoLockup)}return E}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.videoLockups)==null||!E.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var E=[],B;if((B=this.data)==null||!B.carouselLockups)return E;var I;return(I=_.h(this.data.carouselLockups[this.scrollCount],vK7))==null?void 0:I.infoRows}}});
cg.prototype.dataChanged=cg.prototype.dataChanged;cg.prototype.onIronResize=cg.prototype.onIronResize;cg.prototype.hiddenChanged=cg.prototype.hiddenChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],cg.prototype,"componentBehavior",void 0);_.k([_.g(_.fz.YtdHorizontalListBehavior),_.t("design:type",Object)],cg.prototype,"ytdHorizontalListBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],cg.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],cg.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],cg.prototype,"inlineStructuredDescription",void 0);_.k([_.X({value:2}),_.t("design:type",Number)],cg.prototype,"initialCount",void 0);_.k([_.X(),_.t("design:type",Object)],cg.prototype,"currentIndex",void 0);
_.k([_.X(),_.t("design:type",Number)],cg.prototype,"scrollCount",void 0);_.k([_.X(),_.t("design:type",Object)],cg.prototype,"supportComponentResize",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],cg.prototype,"contentHidden",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cg.prototype,"modern",void 0);_.k([_.$7("#scroll-container"),_.t("design:type",HTMLDivElement)],cg.prototype,"JSC$20029_scrollContainer",void 0);
_.k([_.EM("contentHidden"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cg.prototype,"hiddenChanged",null);_.k([_.S("data"),_.t("design:type",Array),_.t("design:paramtypes",[])],cg.prototype,"videoLockups",null);_.k([_.S("videoLockups"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],cg.prototype,"hasVideoLockups",null);
_.k([_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cg.prototype,"onIronResize",null);_.k([_.S("data","scrollCount"),_.t("design:type",Object),_.t("design:paramtypes",[])],cg.prototype,"infoRows",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cg.prototype,"dataChanged",null);cg=_.k([_.b({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],cg);
_.A(cg,"ytd-video-description-music-section-renderer",function(){if(kW1!==void 0)return kW1;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return kW1=E},{mode:_.qi("kevlar_poly_si_batch_j081")?1:2});var thO;var iH=function(){var E=_.r.apply(this,arguments)||this;E.modern=_.d("kevlar_modern_sd_v2");E.modernTypography=_.d("web_modern_typography");return E};
_.L(iH,_.r);iH.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.k([_.X({}),_.t("design:type",Object)],iH.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],iH.prototype,"modern",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],iH.prototype,"modernTypography",void 0);
iH=_.k([_.b({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],iH);
_.A(iH,"ytd-video-description-transcript-section-renderer",function(){if(thO!==void 0)return thO;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return thO=E},{mode:1});var fwd;_.oQ(_.rp(function(E){var B=_.iO(_.p0f,function(){return E.data().firstProviderLinkStatusEntityKey}),I=_.iO(_.p0f,function(){return E.data().secondProviderLinkStatusEntityKey}),T=function(){var e,c;
return((e=B())==null?void 0:e.linked)||((c=I())==null?void 0:c.linked)};
return _.w("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.w(_.aS,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return E.data().sectionTitle}}),_.w(_.aS,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return T()?E.data().connectedMessage:E.data().notConnectedMessage}}),_.w(_.wU,{cond:T,
then:function(){return _.w(_.hM,{data:function(){return E.data().connectedButton}},{buttonViewModel:function(e){return _.w(_.ne,{data:e.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.w(_.wU,{cond:function(){return!T()},
then:function(){return _.w(_.hM,{data:function(){return E.data().notConnectedButton}},{buttonViewModel:function(e){return _.w(_.ne,{data:e.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"vi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;return _.w("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.w("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.w(_.aS,{text:function(){return B().sectionTitle}})),_.w("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.w(_.aS,{text:function(){return B().bodyHeader}})),_.w("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.w(_.aS,{text:function(){return B().bodyText}})),_.w(_.wU,
{cond:function(){return B().attributionText},
then:function(){return _.w("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.w(_.aS,{text:function(){return B().attributionText}}))}}))},"wi"),"how-this-was-made-section-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){return _.w("yt-video-description-youchat-section-view-model",{class:_.RQ("ytVideoDescriptionYouchatSectionViewModelHost")},_.w("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.w(_.aS,{text:function(){return E.data().sectionTitle}})),_.w("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.w(_.aS,{text:function(){return E.data().subHeaderText}})),_.w("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.w(_.ne,{data:function(){return _.h(E.data().primaryButton,
_.sO)}})))},"xi"),"yt-video-description-youchat-section-view-model",{props:{data:_.Jh}});var pZ=function(){var E=_.r.apply(this,arguments)||this;E.modern=_.d("kevlar_modern_sd_v2");E.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return E};
_.L(pZ,_.r);_.l=pZ.prototype;
_.l.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}}}}}};
_.l.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.l.dataChanged=function(){var E,B;this.hasDescriptionOnly=!(((E=this.data)==null?void 0:(B=E.items)==null?void 0:B.length)!==1||!_.h(this.data.items[0],y3s))};
_.l.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.l.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.l.autoFocusDescription=function(){var E;((E=_.Q().resolve(_.Fx(_.ZR)))==null?0:E.isKeyBoardInUse())&&this.description&&_.AI(this.description)};
_.l.resize=function(){if(_.d("kevlar_disable_sd_resize"))this.JSC$20037_cardList&&_.$O(this.JSC$20037_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.$O(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.$O(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.l.scrollToSection=function(E){if(E=this.getSectionElement(E))_.I2(this.hostElement,"yt-scroll-to-watch-element",[E]),E.focus()};
_.l.getSectionElement=function(E){switch(E){case "infocards-item-section":var B;return(B=this.infocardsSection)!=null?B:null;case "transcript-item-section":var I;return(I=this.transcriptSection)!=null?I:null;case "how-this-was-made-section-item-section":var T;return(T=this.howThisWasMadeSection)!=null?T:null;case "files-item-section":var e;return(e=this.filesSection)!=null?e:null;default:return null}};
_.l.handleSetActiveItemAction=function(E){var B=_.h(E,WZO),I=B&&(B==null?void 0:B.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20037_cardList;if(B&&I){E=this.currentActiveChapter;var T=this.currentActiveProblem;B=I==null?void 0:I.getItemByIndex(B.itemIndex);var e=I=!0;B&&(B.active=!0,B.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(I=E!==B,e=!1,this.currentActiveChapter=B):(B==null?void 0:B.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(I=!1,e=T!==B,this.currentActiveProblem=B));E&&I&&(E.active=!1);T&&e&&(T.active=!1)}};
_.Up.Object.defineProperties(pZ.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.d("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
pZ.prototype.onYtExpanderMoreTapped=pZ.prototype.onYtExpanderMoreTapped;pZ.prototype.onHiddenChanged=pZ.prototype.onHiddenChanged;pZ.prototype.dataChanged=pZ.prototype.dataChanged;pZ.prototype.panelContentVisibleChanged=pZ.prototype.panelContentVisibleChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],pZ.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],pZ.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.OI),_.t("design:type",Object)],pZ.prototype,"ironResizableBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],pZ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],pZ.prototype,"panelContentVisible",void 0);_.k([_.X(),_.t("design:type",Boolean)],pZ.prototype,"hasDescriptionOnly",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],pZ.prototype,"inlineStructuredDescription",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],pZ.prototype,"hidden",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],pZ.prototype,"shortsPanel",void 0);_.k([_.X(),_.t("design:type",Object)],pZ.prototype,"videoSummary",void 0);_.k([_.X(),_.t("design:type",Object)],pZ.prototype,"merchShelf",void 0);
_.k([_.S("videoSummary"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],pZ.prototype,"showVideoSummary",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],pZ.prototype,"modern",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],pZ.prototype,"engagementPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],pZ.prototype,"watchWhileSdp",void 0);
_.k([_.$7("ytd-expandable-video-description-body-renderer"),_.t("design:type",Object)],pZ.prototype,"description",void 0);_.k([_.$7("ytd-horizontal-card-list-renderer"),_.t("design:type",Object)],pZ.prototype,"JSC$20037_cardList",void 0);_.k([_.$7("ytd-horizontal-card-list-renderer[center-items]"),_.t("design:type",Object)],pZ.prototype,"problemWalkthroughCardList",void 0);_.k([_.$7("ytd-shelf-renderer"),_.t("design:type",Object)],pZ.prototype,"shelfSection",void 0);
_.k([_.$7("ytd-video-description-music-section-renderer"),_.t("design:type",Object)],pZ.prototype,"musicMetadataSection",void 0);_.k([_.$7("ytd-video-description-infocards-section-renderer"),_.t("design:type",Object)],pZ.prototype,"infocardsSection",void 0);_.k([_.$7("ytd-video-description-transcript-section-renderer"),_.t("design:type",Object)],pZ.prototype,"transcriptSection",void 0);
_.k([_.$7("how-this-was-made-section-view-model"),_.t("design:type",Object)],pZ.prototype,"howThisWasMadeSection",void 0);_.k([_.$7("ytd-video-description-files-section-renderer"),_.t("design:type",Object)],pZ.prototype,"filesSection",void 0);_.k([_.EM("panelContentVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],pZ.prototype,"panelContentVisibleChanged",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],pZ.prototype,"dataChanged",null);_.k([_.EM("hidden"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],pZ.prototype,"onHiddenChanged",null);_.k([_.RN("yt-expander-more-tapped"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],pZ.prototype,"onYtExpanderMoreTapped",null);
pZ=_.k([_.b({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],pZ);
_.A(pZ,"ytd-structured-description-content-renderer",function(){if(fwd!==void 0)return fwd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return fwd=E},{mode:2});var Vht;var qVm;var Yd=function(){return _.r.apply(this,arguments)||this};
_.L(Yd,_.r);Yd.prototype.computeAriaLabel=function(E){var B,I;return(E==null?void 0:(B=E.accessibility)==null?void 0:(I=B.accessibilityData)==null?void 0:I.label)||_.yu("LOADING",void 0,"Loading")};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Yd.prototype,"data",void 0);_.k([_.X({computed:"computeAriaLabel(data)"}),_.t("design:type",String)],Yd.prototype,"ariaLabel",void 0);Yd=_.k([_.QE({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Yd);
_.A(Yd,"yt-content-loading-renderer",function(){if(qVm===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Vht===void 0&&(Vht=document.createElement("template"));var T=Vht;I.call(B,T.content.cloneNode(!0),E.content.firstChild);qVm=E}E=qVm;return E},{mode:_.qi("kevlar_poly_si_batch_j043")?1:2});var Fkd=_.rp(function(E){var B=E.data;E=_.oH();_.rT(E,function(){return B().rendererContext});
var I=function(){var T;return _.WE((T=B())==null?void 0:T.rendererContext)};
return _.w("content-list-item-view-model",{el:E,class:"ytContentListItemViewModelHost",role:function(){return I()?"listitem":void 0},
tabindex:function(){return I()?0:void 0}},_.w("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.w("div",{class:"ytContentListItemViewModelImageContainer"},_.w(_.wU,{cond:function(){return B().image},
then:function(T){return _.w(_.Ja,{data:T,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.w(_.hM,{data:function(){var T;
return(T=B())==null?void 0:T.avatar}},{avatarViewModel:_.yf})),_.w("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.w("div",{class:"ytContentListItemViewModelTitle"},_.w(_.aS,{text:function(){return B().title}})),_.w("div",{class:"ytContentListItemViewModelMetadata"},_.w(_.hM,{data:function(){return B().metadata}},{contentMetadataViewModel:function(T){return _.w(_.Bnl,{data:T.data,
layout:1})}})))),_.w("div",{class:"ytContentListItemViewModelActionButton"},_.w(_.hM,{data:function(){var T;
return(T=B())==null?void 0:T.actionButton}},{buttonViewModel:_.ne,
toggleButtonViewModel:_.Le})))},"yi");_.oQ(_.rp(function(E){var B=_.p(_.lQ(!1,void 0,"WbYeXc")),I=B.next().value,T=B.next().value;B=_.p(_.lQ(!1,void 0,"msXkzc"));var e=B.next().value,c=B.next().value;_.uW(function(){var y=_.h(E.data().collaboratePlaylistCollaborationSetting,$wd);y&&T(y.switchedOnByDefault);var Z=_.h(E.data().allowNewCollaboratorsPlaylistCollaborationSetting,$wd);Z&&c(Z.switchedOnByDefault);if(!y&&!Z||!y&&E.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")T(!0),c(!0)});
var Y=function(y){T(y);c(y);var Z=E.data().playlistCollaborationEntityKey||"";var P=_.gp().getState();(P=_.cP(P.entities,"playlistCollaborationEntity",Z))&&(P==null?void 0:P.isCollaborative)===y||_.gp().dispatch(_.aL("playlistCollaborationEntity",Z,Object.assign({},P,{isCollaborative:y})))},v=function(y){c(y)};
return _.w("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.w("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.w(_.hM,{data:function(){return E.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(y){return _.w(_.Pz,{data:y.data,
onSwitch:Y})}})),_.w(_.wU,{cond:I,
then:function(){return _.w("div",null,_.w("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.w(_.hM,{data:function(){return E.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(y){return _.w(_.Pz,{data:y.data,
onSwitch:v,overrideDisabled:!1})}})),_.w(_.wU,{cond:e,
then:function(){return _.w("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.w(_.hM,{data:function(){return E.data().copyLinkButton}},{buttonViewModel:_.ne}))}}),_.w("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.w(_.hM,{data:function(){return E.data().playlistCollaborators}},{contentListItemViewModel:Fkd})))}}))},"zi"),"playlist-collaboration-view-model",{props:{data:_.Jh}});var DZg=_.rp(function(E){var B=E.data;var I=E.customCommandResolver;return _.w(_.VS,null,_.w("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.w(_.hM,{data:function(){return B().adAvatar}},{adAvatarViewModel:function(T){return _.w(_.cEr,{data:T.data,
customCommandResolver:I})}})),_.w("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.w(_.wU,{cond:function(){return B().headline},
then:function(T){return _.w(_.aS,{text:T,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.w("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.w(_.hM,{data:function(){return B().adBadge}},{adBadgeViewModel:function(T){return _.w(_.UC,{data:T.data,
hasDot:function(){return B().primaryDetailsLine!==void 0},
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.w(_.hM,{data:function(){return B().primaryDetailsLine}},{adDetailsLineViewModel:function(T){return _.w(_.kk,{data:T.data,
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Ai"),KkH=_.rp(function(E){var B=E.data;
var I=E.customCommandResolver;E=_.oH();_.k4(E,function(){return B().interaction},I);
_.VU(E,{visibilityCallback:function(T){var e,c=(e=B().interaction)==null?void 0:e.onFirstVisible;T&&c&&_.xg(c)},
showOption:_.Xt});return _.w("ad-avatar-lockup-view-model",{class:function(){var T;return((T=B().interaction)==null?0:T.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:E,"aria-label":function(){var T,e;return(T=B().interaction)==null?void 0:(e=T.accessibility)==null?void 0:e.label}},_.w(_.m4,null,_.w(_.PA,{when:function(){return B().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.w(DZg,{data:B,
customCommandResolver:I})}),_.w(_.zb,null,function(){return null})))},"Bi");_.oQ(_.rp(function(E){var B=E.data;var I=E.panelContentVisibility;E=_.oH();_.k4(E,function(){return B().interaction},D5t);
_.VU(E,{visibilityCallback:function(e){var c,Y=(c=B().interaction)==null?void 0:c.onFirstVisible;e&&Y&&_.xg(Y)},
showOption:_.Xt});_.QS(function(){var e,c;if(c=_.WA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Y;c=(Y=c())==null?void 0:Y.onLayoutVisibleCallback}else c=null;(e=c)==null||e()});
var T=function(){return I()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.w("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:E},_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.w(_.wU,{cond:_.dw4("(min-width: "+((0,_.zo)()+_.Sq)+"px) or (max-width: 600px)"),then:function(){return _.w(_.hM,{data:function(){return B().adImage}},{adImageViewModel:function(e){return _.w(_.Km,{data:e.data,
targetHeight:80,customCommandResolver:D5t})}})}})),_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.w(_.hM,{data:function(){return B().adAvatarLockup}},{adAvatarLockupViewModel:function(e){return _.w(KkH,{data:e.data,
customCommandResolver:D5t})}})),_.w(_.wU,{cond:T,
then:function(){return _.w(_.hM,{data:function(){return B().adButton}},{adButtonViewModel:function(e){return _.w(_.bg,{data:e.data,
customCommandResolver:D5t})}})},
else:function(){return _.w(_.hM,{data:function(){return B().menu}},{buttonViewModel:_.ne})}}),_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.w(_.hM,{data:function(){var e=_.h(B().toggleButton,_.uO);
return{toggleButtonViewModel:Object.assign({},e,{isTogglingDisabled:!0,isToggled:T()})}}},{toggleButtonViewModel:_.Le})))))},"Ci"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Jh,
panelContentVisibility:_.Jh}});_.oQ(_.rp(function(E){var B=function(){return _.h(E.data().inputComposerViewModel,Ih2)},I=function(){var N;
return((N=B())==null?void 0:N.youchatPendingResponseEntityKey)||""},T=_.iO(_.J7I,I),e=function(){var N;
return!((N=T())==null||!N.isPendingResponse)},c=_.p(_.lQ(!0,void 0,"DR0q1d")),Y=c.next().value,v=c.next().value,y=function(){return B().sectionTargetId||"youchat_messages_section"};
c=_.AK();var Z=_.oH(),P=_.iO(bAg,"chat_input_view_model_state"),z=oX8(),m=function(){var N;return!((N=P())==null||!N.value)};
_.uW(function(){var N;!m()&&((N=B())==null?0:N.welcomeFeatureContinuation)&&(N={continuationCommand:{token:B().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.se(N),z(!0));var W=y(),U;(U=_.Q().resolve(_.Fx(_.Iy)))==null||U.addEventListener("yt-navigate-start",function(){_.mV.remove(W);z(!1)},{once:!0})});
var u=_.TI(function(N){var W=e()||!1;KLm(Z.value);W||N.key!=="Enter"||N.shiftKey||(N.preventDefault(),M());return!1}),x=_.TI(function(){v(Z.value.value.length===0);
return!1}),M=function(){var N,W,U,q,f,ed,K,p4,sc;
return _.a(function(Gf){N=Z.value.value;Z.value.value="";KLm(Z.value);W=RcH(y(),N);_.se(W);U=_.W51(I());_.xg(((q=B())==null?void 0:q.onSubmitCommand)||{});U(!0);ed=String(Math.floor(((f=_.BE())==null?void 0:f.getCurrentTime())||0)*1E3);p4={continuationCommand:{token:(K=B())==null?void 0:K.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};sc={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:N,playerOffsetMs:ed}};_.se(p4,{form:{formData:sc},commandController:{onSuccess:function(){U(!1)},
onServerError:function(){var xi=y();_.se({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:xi}}]}}});U(!1)}}});
_.ER(Gf)})};
return _.w("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:c},_.w("div",{class:"chatInputViewModelChatInputWrapper"},_.w("form",{class:"chatInputViewModelChatInputForm"},_.w("textarea",{class:"chatInputViewModelChatInput",el:Z,"on:keydown":u,"on:keyup":x,placeholder:function(){var N,W;var U=_.h((W=B())==null?void 0:W.inputFormField,g11);return U==null?void 0:(N=U.contentProperties)==null?void 0:N.placeholderText},
rows:1}),_.w(_.ne,{data:function(){return _.h(E.data().sendButton,_.sO)},
onClick:function(N){N.preventDefault();M();v(Z.value.value.length===0)},
buttonOverrides:function(){return{disabled:Y()||e()}}})),_.w(_.aS,{className:"chatInputViewModelChatDisclaimer",
text:function(){var N;return(N=_.h(E.data().disclaimer,_.nfD))==null?void 0:N.text}})))},"Di"),"yt-chat-input-view-model",{props:{data:_.Jh}});var RY9=["engagement-panel-clip-create","engagement-panel-clip-view"],EAg=0,aK=function(){var E=_.r.apply(this,arguments)||this;var B;E.headerData=(B=E.data)==null?void 0:B.header;E.darkerPanels=_.d("web_watch_darker_panels");E.matchContentTheme=_.d("web_watch_panel_content_match_theme");E.disableAutoFill=!1;E.isFullscreen=!1;E.modernPanels=_.d("kevlar_watch_modern_panels");E.liveChatReplyPanel=!1;E.enableAnchoredPanel=_.d("desktop_shorts_v2_anchored_panel");E.disableBackdropFilter=_.d("web_disable_backdrop_filter");
E.trackEngagementPanelVisibility=_.d("web_watch_track_engagement_panel_visibility");E.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 E};
_.L(aK,_.r);_.l=aK.prototype;
_.l.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(E){var B;
if((E==null?void 0:(B=E.webComponentHint)==null?void 0:B.componentVersion)==="WEB_COMPONENT_VERSION_SHARED")return"yt-section-list-renderer";E=E==null?void 0:E.contents;if(!E||E.length<1)return"ytd-section-list-renderer";var I,T;E=(I=E[0])==null?void 0:(T=I.itemSectionRenderer)==null?void 0:T.contents;if(!E||E.length<1)return"ytd-section-list-renderer";var e;return((e=E[0])==null?0:e.youChatItemViewModel)?"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"}}}};
_.l.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var E;if((E=this.hostElement.parentElement)==null?0:E.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.l.detached=function(){this.updateTheaterDisablement()};
_.l.showPanel=function(){var E=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Ll.addJob(function(){E.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.l.maybeScrollToItemSection=function(E){var B=this,I,T=E==null?void 0:(I=E.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;T&&_.Ll.addJob(function(){var e;(e=B.sectionListRendererElement)==null||e.scrollToItemSection(T)},8)};
_.l.hidePanel=function(){var E=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Ll.addJob(function(){E.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.l.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.l.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.l.updatePanel=function(E,B,I,T){var e=this;if((E=E==null?void 0:E.engagementPanelSectionListRenderer)||T){if(E){T=E.header;var c=E.content,Y=E.footer;(E=E.targetId)&&this.set("data.targetId",E);T&&this.set("data.header",T);c&&this.set("data.content",c);Y&&this.set("data.footer",Y)}else T&&(E=T.content,c=T.secondaryHeaderContent,(T=T.targetId)&&this.set("data.targetId",T),E&&this.set("data.content",E),c&&(this.secondaryHeaderData=c));this.updateChildVisibilityProperties();if(B){var v;_.d("kevlar_update_panel_focus_scroll_killswitch")||
(v={preventScroll:!0});this.focus(v)}_.AJ(this,function(){_.$O(e.hostElement,"yt-refit");e.maybeScrollToItemSection(I)})}};
_.l.computeHeaderData=function(){var E,B=(0,_.a_.unsafeClone)((E=this.data)==null?void 0:E.header);if(B){E=new _.F(Object.keys(B)[0]);var I=_.h(B,E),T=_.h(this.secondaryHeaderData,E);T&&_.PV(B,E,Object.assign({},T,I))}return B};
_.l.getReloadContinuation=function(){var E,B,I,T=_.p(((E=this.data)==null?void 0:(B=E.content)==null?void 0:(I=B.sectionListRenderer)==null?void 0:I.continuations)||[]);for(E=T.next();!E.done;E=T.next())if(E=E.value,E.reloadContinuationData)return E.reloadContinuationData.continuation};
_.l.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var E;((E=this.data)==null?0:E.targetId)&&(E=this.contentElement.firstElementChild)&&E.setAttribute("panel-target-id",this.data.targetId)};
_.l.forwardPopupClosedToFlowRootRenderer=function(){var E=_.n(this.hostElement).querySelector("ytd-flow-root-renderer");if(E)E.onPopupClosed()};
_.l.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));if(_.d("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"){var E;this.visibility=(E=this.data)==null?void 0:E.visibility;var B;this.trackEngagementPanelVisibility&&((B=this.data)==null?void 0:B.visibility)===
"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var I,T,e,c;this.contentEmpty=!!(((I=this.data)==null?0:(T=I.content)==null?0:T.structuredDescriptionContentRenderer)&&Object.keys((e=this.data)==null?void 0:(c=e.content)==null?void 0:c.structuredDescriptionContentRenderer).length===0);(E=_.Q().resolve(_.wQ))&&E.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",
this.visibility=this.data.visibility};
_.l.isFullscreenChanged=function(){this.isFullscreen&&_.d("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.l.focus=function(E){if(this.header)this.header.focus(E);else{var B;(B=_.n(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||B.focus(E)}};
_.l.visibilityChanged=function(){if(!_.d("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var E=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",B=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",I=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",T=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e=T||!this.lastVisibility,c,Y,v=(c=this.data)==null?void 0:(Y=c.identifier)==null?void 0:Y.tag,
y;if(((y=this.data)==null?0:y.onShowCommands)&&E&&e)_.cN(this.hostElement,this.data.onShowCommands,this.hostElement),v&&_.t2().dispatch(_.BP({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:v}}));else{var Z;((Z=this.data)==null?0:Z.onHideCommands)&&B&&I&&(_.cN(this.hostElement,this.data.onHideCommands,this.hostElement),v&&_.t2().dispatch(_.BP({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:v}})))}E&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*EAg++));_.d("kevlar_watch_focus_on_engagement_panels")&&
E&&T&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.l.notifyVisibilityChanged=function(E){var B;_.Ta(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,E,(B=this.data)==null?void 0:B.targetId])};
_.l.updateTheaterDisablement=function(){if(!_.d("kevlar_watch_theater_disablement_killswitch")){var E=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&RY9.includes(E)&&!_.d("watch_next_grid_ignore_disallowed_panels")){var B=_.Ze(_.t2().getState()),I=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";E!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():I?(this.originalTheaterState===void 0&&(this.originalTheaterState=B,this.theaterDisablementPanelIdentifier=
E),B&&_.I2(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.l.clearTheaterDisablement=function(){_.I2(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.l.updateChildVisibilityProperties=function(){this.hostElement||_.d("kevlar_panel_property_init_killswitch")||this._enableProperties();var E=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=E);var B,I=(B=this.headerElement)==null?void 0:B.firstElementChild;if(I&&!this.adHeaderImageLockupViewModel){B=E==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";I.collapsed=B;I=_.n(I).querySelector("#visibility-button");if(!I)return;(I=I.firstElementChild)&&
I.polymerController.is==="ytd-toggle-button-renderer"&&I.polymerController.data.isToggled!==B&&I.polymerController.set("data.isToggled",B)}var T;if(B=(T=this.contentElement)==null?void 0:T.firstElementChild)if(E&&E!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")B.removeAttribute("panel-content-visible");else{B.setAttribute("panel-content-visible","");var e;(e=B.markDirty)==null||e.call(B)}};
_.l.onYtChangeEngagementPanelVisibilityAction=function(E){var B=this,I,T=(I=this.data)==null?void 0:I.targetId,e,c,Y;I=((e=this.data)==null?void 0:(c=e.identifier)==null?void 0:c.tag)||((Y=this.data)==null?void 0:Y.panelIdentifier);var v=_.h(E,_.rw$),y;E=T&&(v==null?void 0:v.targetId)===T||I&&(v==null?void 0:(y=v.panelIdentifier)==null?void 0:y.tag)===I;this.dialog&&E&&(v==null?void 0:v.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(T==="engagement-panel-comments-section"?_.I2(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.I2(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",I]));T=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";y=this.isFullscreen&&_.d("kevlar_single_panel_fullscreen");T=!E&&(v==null?void 0:v.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!T&&y;_.d("kevlar_use_engagement_panel_management_component")||(E?(T=v.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!T?_.Ll.addJob(function(){B.visibility=v.visibility},2,this.hideDelayMs):this.visibility=v.visibility,v.visibility&&this.notifyVisibilityChanged(v.visibility)):T&&this.hidePanel())};
_.l.onYtScrollToEngagementPanelCommand=function(E){var B,I=(B=this.data)==null?void 0:B.targetId,T,e,c;B=((T=this.data)==null?void 0:(e=T.identifier)==null?void 0:e.tag)||((c=this.data)==null?void 0:c.panelIdentifier);E=_.h(E,_.FY$);var Y;(I&&(E==null?void 0:E.targetId)===I||B&&(E==null?void 0:(Y=E.panelIdentifier)==null?void 0:Y.tag)===B)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.I2(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.l.attachVEs=function(E){var B,I;(E==null?0:(B=E.content)==null?0:(I=B.productListRenderer)==null?0:I.trackingParams)&&_.lu().graftServerVe(E.content.productListRenderer.trackingParams);var T,e;(E==null?0:(T=E.content)==null?0:(e=T.transcriptRenderer)==null?0:e.trackingParams)&&_.lu().graftServerVe(E.content.transcriptRenderer.trackingParams)};
_.l.onYtUpdateEngagementPanelAction=function(E){var B,I=(B=this.data)==null?void 0:B.targetId;E=_.h(E,rjd);I&&(E==null?void 0:E.targetId)===I&&(this.updatePanel({engagementPanelSectionListRenderer:{header:E==null?void 0:E.header,content:E==null?void 0:E.content}},!1),this.attachVEs(E))};
_.l.onYtShowEngagementPanelScrimAction=function(E){var B,I=(B=this.data)==null?void 0:B.targetId;E=_.h(E,Xa2);I&&(E==null?void 0:E.engagementPanelTargetId)===I&&(this.scrimmed=!0)};
_.l.onYtHideEngagementPanelScrimAction=function(E){var B,I=(B=this.data)==null?void 0:B.targetId;E=_.h(E,JjI);I&&(E==null?void 0:E.engagementPanelTargetId)===I&&(this.scrimmed=!1)};
_.l.getIdentifier=function(){var E,B,I;return((E=this.data)==null?void 0:E.panelIdentifier)||((B=this.data)==null?void 0:(I=B.identifier)==null?void 0:I.tag)};
_.l.getSurface=function(){var E,B;return(E=this.data)==null?void 0:(B=E.identifier)==null?void 0:B.surface};
_.Up.Object.defineProperties(aK.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var E=this.getIdentifier();return E==="engagement-panel-youchat"||E==="PAyouchat"}}});
aK.prototype.visibilityChanged=aK.prototype.visibilityChanged;aK.prototype.isFullscreenChanged=aK.prototype.isFullscreenChanged;aK.prototype.dataChanged=aK.prototype.dataChanged;aK.prototype.forwardPopupClosedToFlowRootRenderer=aK.prototype.forwardPopupClosedToFlowRootRenderer;aK.prototype.onYtRendererstamperFinished=aK.prototype.onYtRendererstamperFinished;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],aK.prototype,"actionHandlerBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],aK.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],aK.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],aK.prototype,"ytEventForwardingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],aK.prototype,"data",void 0);
_.k([_.X({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.t("design:type",Object)],aK.prototype,"headerData",void 0);_.k([_.X(),_.t("design:type",Object)],aK.prototype,"secondaryHeaderData",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aK.prototype,"visibility",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],aK.prototype,"contentEmpty",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],aK.prototype,"scrimmed",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],aK.prototype,"dialog",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],aK.prototype,"dropdown",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aK.prototype,"darkerPanels",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aK.prototype,"matchContentTheme",void 0);_.k([_.X(),_.t("design:type",Object)],aK.prototype,"disableAutoFill",void 0);
_.k([_.X({reflectToAttribute:!0,value:_.d("optimal_reading_width_comments_ep")}),_.t("design:type",Boolean)],aK.prototype,"optimalReadingWidthComments",void 0);_.k([_.X(),_.t("design:type",Number)],aK.prototype,"hideDelayMs",void 0);_.k([_.X({selector:_.sD,reflectToAttribute:!0}),_.t("design:type",Object)],aK.prototype,"isFullscreen",void 0);_.k([_.X(),_.t("design:type",Number)],aK.prototype,"showDelayMs",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data.targetId"),_.t("design:type",Object),_.t("design:paramtypes",[])],aK.prototype,"targetId",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],aK.prototype,"webSize",null);_.k([_.X(),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],aK.prototype,"hideFooterBorder",null);_.k([_.X(),_.t("design:type",Object)],aK.prototype,"isWatch",void 0);
_.k([_.X(),_.t("design:type",Object)],aK.prototype,"originalTheaterState",void 0);_.k([_.X(),_.t("design:type",Object)],aK.prototype,"theaterDisablementPanelIdentifier",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aK.prototype,"modernPanels",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],aK.prototype,"isWatchWhilePanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],aK.prototype,"shortsPanel",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],aK.prototype,"liveChatEngagementPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aK.prototype,"liveChatReplyPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aK.prototype,"enableAnchoredPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aK.prototype,"disableBackdropFilter",void 0);
_.k([_.X(),_.t("design:type",Object)],aK.prototype,"trackEngagementPanelVisibility",void 0);_.k([_.$7("#header"),_.t("design:type",HTMLElement)],aK.prototype,"headerElement",void 0);_.k([_.$7("#header > *"),_.t("design:type",HTMLElement)],aK.prototype,"header",void 0);_.k([_.$7("ytd-section-list-renderer"),_.t("design:type",Object)],aK.prototype,"sectionListRendererElement",void 0);
_.k([_.$7("panel-ad-header-image-lockup-view-model"),_.t("design:type",HTMLElement)],aK.prototype,"adHeaderImageLockupViewModel",void 0);_.k([_.$7("#content"),_.t("design:type",HTMLElement)],aK.prototype,"contentElement",void 0);_.k([_.RN("yt-rendererstamper-finished"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aK.prototype,"onYtRendererstamperFinished",null);
_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aK.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aK.prototype,"dataChanged",null);_.k([_.EM("isFullscreen"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aK.prototype,"isFullscreenChanged",null);
_.k([_.EM("visibility"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aK.prototype,"visibilityChanged",null);aK=_.k([_.b({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],aK);
_.A(aK,"ytd-engagement-panel-section-list-renderer",function(){if(hYm!==void 0)return hYm;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return hYm=E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var Bb8;var vg=function(){var E=_.r.apply(this,arguments)||this;E.lastRenderedPanelIds=new Set;E.visiblePanels=[];E.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return E};
_.L(vg,_.r);_.l=vg.prototype;_.l.dataChanged=function(){if(this.data){for(var E=[],B=_.p(this.data),I=B.next();!I.done;I=B.next()){I=I.value;var T=void 0,e=void 0,c=(T=I)==null?void 0:(e=T.engagementPanelSectionListRenderer)==null?void 0:e.visibility;e=T=void 0;((T=I)==null?0:(e=T.engagementPanelSectionListRenderer)==null?0:e.targetId)&&c!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&E.push(I)}this.visiblePanels=E}else this.visiblePanels=[]};
_.l.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}}};
_.l.withoutVisiblePanelById=function(E){return this.visiblePanels.filter(function(B){var I;return((I=B.engagementPanelSectionListRenderer)==null?void 0:I.targetId)!==E})};
_.l.onYtChangeEngagementPanelVisibilityAction=function(E){var B=this,I=_.h(E,_.rw$);if(this.data&&(I==null?0:I.targetId)&&(I==null?0:I.visibility)){var T,e=(T=this.data.find(function(Y){var v;return((v=Y.engagementPanelSectionListRenderer)==null?void 0:v.targetId)===I.targetId}))==null?void 0:T.engagementPanelSectionListRenderer;
if(e){var c=this.withoutVisiblePanelById(I.targetId);I.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(E=this.data.find(function(Y){var v;return((v=Y.engagementPanelSectionListRenderer)==null?void 0:v.targetId)===I.targetId}))&&(c=[E].concat(_.ad(c)));
this.hideDelayMs&&I.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&c.length===0?_.Ll.addJob(function(){e.visibility=I.visibility;B.visiblePanels=c},10,this.hideDelayMs):(e.visibility=I.visibility,this.visiblePanels=c);
_.Ta(this.hostElement,"yt-engagement-panels-visible-changed",[c])}}};
_.l.onRendererstamperFinished=function(){var E=new Set(this.visiblePanels.map(function(B){var I;return(I=B.engagementPanelSectionListRenderer)==null?void 0:I.targetId}));
this.handlePanelVisibilityChange(E,this.lastRenderedPanelIds);this.lastRenderedPanelIds=E};
_.l.handlePanelVisibilityChange=function(E,B){E=E===void 0?new Set:E;B=B===void 0?new Set:B;if(this.data)for(var I=_.p(this.data),T=I.next();!T.done;T=I.next()){T=T.value;var e=void 0,c=void 0,Y=(e=T)==null?void 0:(c=e.engagementPanelSectionListRenderer)==null?void 0:c.targetId;if(Y&&(e=B.has(Y),c=E.has(Y),Y=void 0,!e&&c?(c=e=void 0,Y=(e=T)==null?void 0:(c=e.engagementPanelSectionListRenderer)==null?void 0:c.onShowCommands):e&&!c&&(c=e=void 0,Y=(e=T)==null?void 0:(c=e.engagementPanelSectionListRenderer)==
null?void 0:c.onHideCommands),Y))for(T=_.p(Y),Y=T.next();!Y.done;Y=T.next())this.ytComponentBehavior.resolveCommand(Y.value)}};
vg.prototype.onRendererstamperFinished=vg.prototype.onRendererstamperFinished;vg.prototype.dataChanged=vg.prototype.dataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],vg.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],vg.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],vg.prototype,"lastRenderedPanelIds",void 0);_.k([_.X(),_.t("design:type",Number)],vg.prototype,"hideDelayMs",void 0);_.k([_.X(),_.t("design:type",Array)],vg.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Array)],vg.prototype,"visiblePanels",void 0);_.k([_.X(),_.t("design:type",Boolean)],vg.prototype,"isWatchWhilePanel",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vg.prototype,"dataChanged",null);_.k([_.RN("yt-rendererstamper-finished"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vg.prototype,"onRendererstamperFinished",null);vg=_.k([_.b({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],vg);
_.A(vg,"ytd-watch-engagement-panels",function(){if(Bb8!==void 0)return Bb8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Bb8=E},{mode:1});var $bm;var yR=function(){return _.r.apply(this,arguments)||this};
_.L(yR,_.r);yR.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.M7(_.n(this.hostElement).querySelector("#text"),_.FRt(_.RZu,this.data.companionLegalText))};
yR.prototype.computeAutoScrollEnabled=function(E,B){return E&&!B};
yR.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
yR.prototype.onToggleTap=function(){this.expanded=!this.expanded};
yR.prototype.expandedChanged=yR.prototype.expandedChanged;yR.prototype.dataChanged=yR.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.R$g),_.t("design:type",Object)],yR.prototype,"ytdAutoScrollBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],yR.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],yR.prototype,"expanded",void 0);
_.k([_.X({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.t("design:type",Boolean)],yR.prototype,"autoScrollEnabled",void 0);_.k([_.X(),_.t("design:type",String)],yR.prototype,"expanderIcon",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],yR.prototype,"dataChanged",null);
_.k([_.EM("expanded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],yR.prototype,"expandedChanged",null);yR=_.k([_.b({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],yR);
_.A(yR,"ytd-companion-legal-text-renderer",function(){if($bm!==void 0)return $bm;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return $bm=E},{mode:1});var IC8;var CZ=function(){var E=_.r.apply(this,arguments)||this;E.buttonUpdate=_.d("web_modern_buttons");E.kevlarWatchGrid=_.d("kevlar_watch_grid");E.centerAlignDescription=_.d("action_companion_center_align_description");E.truncateDomain=_.d("action_companion_truncate_domain");return E};
_.L(CZ,_.r);_.l=CZ.prototype;_.l.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.l.getOnLayoutVisibleCallback=function(){var E=_.WA("yt.www.ads.eventcache.getLastCompanionData");return E?(E=E())&&E.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var E=_.WA("yt.www.ads.eventcache.getLastCompanionData");return E?(E=E())&&E.layoutId:null};
_.l.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",CZ.JSC$20083_DEFAULT_AD_BADGE_RENDERER);var E=this.getOnLayoutVisibleCallback();E&&E()}};
_.l.getButtonRenderer=function(E){return E.actionButton&&_.h(E.actionButton,_.NT)?(delete _.h(E.actionButton,_.NT).navigationEndpoint,_.h(E.actionButton,_.NT)):{}};
_.l.onClick=function(E){var B=this;if((!_.d("web_modern_buttons")||!_.XZ(_.W8(E),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){E=_.jx();var I=this.getLayoutId();E&&I&&_.d("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?E.getPlayerPromise().then(function(T){(new _.iY(T)).executeCommand(B.data.navigationEndpoint,I)}):_.d("kevlar_companion_resolve_command_killswitch")?_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.I2(this.hostElement,"yt-companion-ad-clicked",["action-companion",I])}};
_.Up.Object.defineProperties(CZ.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return((E=this.data)==null?0:(B=E.detailsLine)==null?0:(I=B.adRating)==null?0:I.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 E,B,I,T;return((E=this.data)==null?0:(B=E.detailsLine)==null?0:(I=B.adRating)==null?0:(T=I.ratingIcon)==null?0:T.iconType)?_.R3(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T;return((E=this.data)==null?0:(B=E.detailsLine)==null?0:(I=B.texts)==null?0:(T=I[0])==null?0:T.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 E,B;return((E=this.data)==null?0:(B=E.description)==null?0:B.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var E=_.WA("yt.www.ads.eventcache.getLastCompanionData");return E?(E=E())&&E.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var E=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return E?E.indexOf("/default_banner")!==-1:!0}}});
CZ.prototype.onClick=CZ.prototype.onClick;CZ.prototype.dataChanged=CZ.prototype.dataChanged;CZ.JSC$20083_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.yu("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],CZ.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],CZ.prototype,"rendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],CZ.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],CZ.prototype,"buttonUpdate",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],CZ.prototype,"kevlarWatchGrid",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],CZ.prototype,"centerAlignDescription",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],CZ.prototype,"truncateDomain",void 0);
_.k([_.X({computed:"computeButtonOverride(buttonUpdate)"}),_.t("design:type",Object)],CZ.prototype,"buttonOverride",void 0);_.k([_.S("data.detailsLine.adRating.ratingText"),_.t("design:type",Object),_.t("design:paramtypes",[])],CZ.prototype,"getRating",null);_.k([_.S("getRating"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],CZ.prototype,"computeRatingHidden",null);
_.k([_.S("data.detailsLine.adRating.ratingIcon.iconType"),_.t("design:type",Object),_.t("design:paramtypes",[])],CZ.prototype,"iconType",null);_.k([_.S("data.detailsLine.texts.0.text"),_.t("design:type",Object),_.t("design:paramtypes",[])],CZ.prototype,"getDetailsLine",null);_.k([_.S("getDetailsLine"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],CZ.prototype,"computeDetailsLineHidden",null);
_.k([_.S("data.description.text"),_.t("design:type",Object),_.t("design:paramtypes",[])],CZ.prototype,"getDescriptionText",null);_.k([_.S("getDescriptionText"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],CZ.prototype,"computeDescriptionTextHidden",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],CZ.prototype,"interactionLoggingClientData",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],CZ.prototype,"hideBanner",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],CZ.prototype,"dataChanged",null);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],CZ.prototype,"onClick",null);CZ=_.k([_.b({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],CZ);
_.A(CZ,"ytd-action-companion-ad-renderer",function(){if(IC8!==void 0)return IC8;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return IC8=E},{mode:_.qi("kevlar_poly_si_batch_j067")?1:2});var TbI;var eXm;var wc=function(){var E=_.r.apply(this,arguments)||this;E.buttonUpdate=_.d("web_modern_buttons");E.hideLegacyBanner=_.d("enable_dsa_one_click_ata_translators_infeed_elements");E.adInfoButtonStyle="mono";E.adInfoButtonType="text";E.noDotAdBadge=!0;return E};
_.L(wc,_.r);_.l=wc.prototype;_.l.getOnLayoutVisibleCallback=function(){var E=_.WA("yt.www.ads.eventcache.getLastCompanionData");return E?(E=E())&&E.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var E=_.WA("yt.www.ads.eventcache.getLastCompanionData");return E?(E=E())&&E.layoutId:null};
_.l.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 E=this.data.image.thumbnail.thumbnails[0];this.imageSrc=E.url?_.pr(E.url):void 0;this.imageWidth=E.width||0;this.imageHeight=E.height||0}this.data.clickthroughEndpoint&&_.h(this.data.clickthroughEndpoint,_.JK)&&(E=_.h(this.data.clickthroughEndpoint,_.JK).url,_.d("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
E||"":E?(E=_.pr(E),this.clickThroughUrl=_.e6(E)):this.clickThroughUrl=void 0);(E=this.getOnLayoutVisibleCallback())&&E()}};
_.l.onClick=function(E){_.XZ(_.W8(E),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(E)};
_.l.handleClick=function(){var E=this;this.data&&this.data.clickthroughEndpoint&&(_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(B){E.macroReplacementBehavior.sendServiceRequestAction([B])}),_.I2(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.l.onLoad=function(){_.Ta(this.hostElement,"yt-refit-popups-action")};
_.Up.Object.defineProperties(wc.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var E=_.WA("yt.www.ads.eventcache.getLastCompanionData");return E?(E=E())&&E.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var E=_.WA("yt.www.ads.eventcache.getLastCompanionData");return E?(E=E())&&E.interactionLoggingClientData:null}}});
wc.prototype.onLoad=wc.prototype.onLoad;wc.prototype.onClick=wc.prototype.onClick;wc.prototype.dataChanged=wc.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wc.prototype,"rendererBehavior",void 0);_.k([_.g(MAO.YtMacroReplacementBehavior),_.t("design:type",Object)],wc.prototype,"macroReplacementBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],wc.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wc.prototype,"buttonUpdate",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wc.prototype,"hideLegacyBanner",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wc.prototype,"adInfoButtonStyle",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wc.prototype,"adInfoButtonType",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],wc.prototype,"macros",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],wc.prototype,"interactionLoggingClientData",null);_.k([_.X(),_.t("design:type",String)],wc.prototype,"clickThroughUrl",void 0);_.k([_.X(),_.t("design:type",_.$M)],wc.prototype,"imageSrc",void 0);_.k([_.X(),_.t("design:type",Number)],wc.prototype,"imageWidth",void 0);_.k([_.X(),_.t("design:type",Number)],wc.prototype,"imageHeight",void 0);_.k([_.X(),_.t("design:type",Object)],wc.prototype,"noDotAdBadge",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wc.prototype,"dataChanged",null);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],wc.prototype,"onClick",null);_.k([_.RN("load"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wc.prototype,"onLoad",null);wc=_.k([_.b({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],wc);
_.A(wc,"ytd-image-companion-renderer",function(){if(eXm!==void 0)return eXm;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return eXm=E},{mode:_.qi("kevlar_poly_si_batch_j067")?1:2});var lCt;var ZJ=function(){return _.r.apply(this,arguments)||this};
_.L(ZJ,_.r);_.l=ZJ.prototype;_.l.dataChanged=function(){this.set("data.adBadge",ZJ.JSC$20092_DEFAULT_AD_BADGE_RENDERER);if(this.data){var E=this.getOnLayoutVisibleCallback();E&&E()}};
_.l.getOnLayoutVisibleCallback=function(){var E=_.WA("yt.www.ads.eventcache.getLastCompanionData");return E?(E=E())&&E.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var E=_.WA("yt.www.ads.eventcache.getLastCompanionData");return E?(E=E())&&E.layoutId:null};
_.l.onCompanionClicked=function(E){this.data&&(E.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.I2(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.l.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var E=_.jx(),B=this.getLayoutId(),I=this.data.clickToAdvSiteEndpoint;E&&B&&_.d("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?E.getPlayerPromise().then(function(T){(new _.iY(T)).executeCommand(I,B)}):_.$O(this.hostElement,"yt-navigate",{endpoint:I})}};
_.l.sendTrackingPings=function(E){if(E&&E.length!==0&&E[0].loggingUrls&&(E=E[0].loggingUrls.map(this.getBaseUrl)))for(var B=0;B<E.length;B++)_.JI(E[B])};
_.l.getBaseUrl=function(E){return E.baseUrl||""};
_.Up.Object.defineProperties(ZJ.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var E=_.WA("yt.www.ads.eventcache.getLastCompanionData");return E?(E=E())&&E.interactionLoggingClientData:null}}});
ZJ.prototype.onCompanionClicked=ZJ.prototype.onCompanionClicked;ZJ.prototype.dataChanged=ZJ.prototype.dataChanged;ZJ.JSC$20092_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.yu("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ZJ.prototype,"data",void 0);_.k([_.$7("#title"),_.t("design:type",HTMLElement)],ZJ.prototype,"shopTitle",void 0);
_.k([_.i6("data.impressionEndpoints"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ZJ.prototype,"dataChanged",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],ZJ.prototype,"interactionLoggingClientData",null);_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],ZJ.prototype,"onCompanionClicked",null);
ZJ=_.k([_.b({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],ZJ);
_.A(ZJ,"ytd-shopping-companion-renderer",function(){if(lCt!==void 0)return lCt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return lCt=E},{mode:1});_.oQ(_.rp(function(E){var B=E.data;var I=_.oH();_.k4(I,function(){return B().interaction},E1d);
_.VU(I,{visibilityCallback:function(T){var e,c=(e=B().interaction)==null?void 0:e.onFirstVisible;T&&c&&_.xg(c)},
showOption:_.Xt});_.QS(function(){var T,e;e=(e=_.WA("yt.www.ads.eventcache.getLastCompanionData"))?(e=e())&&e.onLayoutVisibleCallback:null;(T=e)==null||T()});
E=_.TI(function(){_.Ta(I.value,"yt-refit-popups-action")});
return _.w("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":E,el:I,"aria-label":function(){var T,e;return(T=B().interaction)==null?void 0:(e=T.accessibility)==null?void 0:e.label}},_.w("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.w(_.hM,{data:function(){return B().adImage}},{adImageViewModel:function(T){return _.w(_.Km,{data:T.data,
targetHeight:80,customCommandResolver:E1d})}})),_.w("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.w("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.w(_.hM,{data:function(){return B().adBadge}},{adBadgeViewModel:function(T){return _.w(_.UC,{data:T.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.w("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.w(_.hM,{data:function(){return B().menu}},{buttonViewModel:_.ne}))))},"Ei"),"banner-image-layout-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;E=_.oH();_.k4(E,function(){return B().interaction},BLm);
_.VU(E,{visibilityCallback:function(I){var T,e=(T=B().interaction)==null?void 0:T.onFirstVisible;I&&e&&_.xg(e)},
showOption:_.Xt});_.QS(function(){var I,T;T=(T=_.WA("yt.www.ads.eventcache.getLastCompanionData"))?(T=T())&&T.onLayoutVisibleCallback:null;(I=T)==null||I()});
return _.w("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:E},_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.w(_.hM,{data:function(){return B().adImage}},{adImageViewModel:function(I){return _.w(_.Km,{data:I.data,
targetHeight:80,customCommandResolver:BLm})}})),_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.w(_.hM,{data:function(){return B().adAvatarLockup}},{adAvatarLockupViewModel:function(I){return _.w(KkH,{data:I.data,
customCommandResolver:BLm})}})),_.w(_.hM,{data:function(){return B().adButton}},{adButtonViewModel:function(I){return _.w(_.bg,{data:I.data,
customCommandResolver:BLm})}}),_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.w(_.hM,{data:function(){return B().menu}},{buttonViewModel:_.ne}))))},"Fi"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Jh}});var c_m={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"},Pg=function(){var E=_.r.apply(this,arguments)||this;E.updateCompanionDataJobId=0;E.contentVideoId=null;E.player=null;E.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return E};
_.L(Pg,_.r);_.l=Pg.prototype;_.l.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:c_m}}};
_.l.attached=function(){var E=this,B=_.jx();B&&B.getPlayerPromise().then(function(I){E.getCachedDataAndListen(I)})};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.l.updateRendererStamper=function(){var E={};if(this.data)for(var B in c_m)if(this.data[B]){E[B]=this.data[B];break}if(this.oneofRenderer!=void 0||Object.keys(E).length)this.oneofRenderer=E};
_.l.getCachedDataAndListen=function(E){var B=this.retrieveCachedCompanionData();B&&Object.keys(B).length&&this.receiveCompanionData(B);this.ytPlayerListenerBehavior.listenToPlayerEvent(E,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=E};
_.l.retrieveCachedCompanionData=function(){return _.$i.yt&&_.$i.yt.www&&_.$i.yt.www.ads&&_.$i.yt.www.ads.eventcache&&_.$i.yt.www.ads.eventcache.getLastCompanionData?_.$i.yt.www.ads.eventcache.getLastCompanionData():null};
_.l.receiveCompanionData=function(E){E&&Object.keys(E).length?(this.contentVideoId=E.contentVideoId,this.setCompanionData(E)):this.setCompanionData(E)};
_.l.setCompanionData=function(E){this.cancelPendingCompanionAdJobs();if(E){this.updateCompanionDataJobId=0;for(var B in c_m)c_m.hasOwnProperty(B)&&(this.data[B]=void 0);E.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",E.shoppingCompanionCarouselRenderer):E.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",E.imageCompanionAdRenderer):E.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",E.actionCompanionAdRenderer),_.Ta(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Ta(this.hostElement,"yt-hide-tvfilm-offer-module")):E.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",E.bannerImageLayoutViewModel):E.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",E.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.l.dataChanged=function(){var E=this,B=_.jx();B?B.getPlayerPromise().then(function(I){E.contentVideoId&&I.getVideoUrl().includes("v="+E.contentVideoId)||(E.cancelPendingCompanionAdJobs(),E.updateRendererStamper())}):_.Xx(Error("hm"))};
_.l.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Ll.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.l.handleCompanionAdClicked=function(E,B){this.player.onAdUxClicked(E,B);this.player.pauseVideo()};
Pg.prototype.dataChanged=Pg.prototype.dataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Pg.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Pg.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Pg.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",_.XK)],Pg.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Pg.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Pg.prototype,"oneofRenderer",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Pg.prototype,"dataChanged",null);Pg=_.k([_.b({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Pg);
_.A(Pg,"ytd-companion-slot-renderer",function(){if(TbI!==void 0)return TbI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return TbI=E},{mode:_.qi("kevlar_poly_si_batch_j067")?
1:2});var iyI;var zp=function(){return _.r.apply(this,arguments)||this};
_.L(zp,_.r);zp.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
zp.prototype.dataChanged=zp.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],zp.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],zp.prototype,"companionSlotData",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],zp.prototype,"dataChanged",null);
zp=_.k([_.b({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],zp);
_.A(zp,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(iyI!==void 0)return iyI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return iyI=E},{mode:1});var p2d;var m9=function(){var E=_.r.apply(this,arguments)||this;E.skinnyMode=!1;E.COMPACT_EVENT_COUNT=4;E.onShelfToggleButtonTap=function(){E.logTap(E.data);E.showingMore=!E.showingMore};
E.onShelfToggleButtonFocus=function(){E.showingMore||(E.logTap(E.data),E.showingMore=!0,_.AJ(E,function(){var B=E.COMPACT_EVENT_COUNT-1,I;(I=_.n(E.hostElement).querySelector("#event-"+B))==null||I.focus()}))};
return E};
_.L(m9,_.r);_.l=m9.prototype;_.l.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.l.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.l.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Kq(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Kq(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Kq(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Kq(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Kq(this.infoTooltip,this.infoTooltip.hide))};
_.l.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Kq(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Kq(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Kq(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Kq(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Kq(this.infoTooltip,this.infoTooltip.hide))};
_.l.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)};
_.l.onShowingMoreChanged=function(){var E;this.showingMoreChanged((E=this.showingMore)!=null?E:!1)};
_.l.showingMoreChanged=function(E){var B=this.get("data.events")||[];this.set("restEvents",B.slice(1,E?B.length:this.COMPACT_EVENT_COUNT).map(function(I){return I.ticketEventRenderer}));
B.slice(0,E?B.length:this.COMPACT_EVENT_COUNT).forEach(function(I){var T=_.nC();I=I.ticketEventRenderer.trackingParams;_.Oi()&&T&&I&&(I=_.Yg(I),T&&_.rY(T,I))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.l.computeAriaLabel=function(E){return E.subtitle1+", "+E.subtitle2};
_.l.logTap=function(E){_.Oi()&&this.ytRendererBehavior.logExplicitClick(E)};
_.l.isKeyboardAction=function(E){return this.get("detail.x",E)===0&&this.get("detail.y",E)===0};
_.l.onFirstEventTap=function(E){E.target&&this.handleTap(E.target,this.firstEvent,this.isKeyboardAction(E))};
_.l.onTicketLinkTap=function(E){E.target&&this.handleTap(E.target,E.model.item,this.isKeyboardAction(E))};
_.l.handleTap=function(E,B,I){if(B.buttonCommand)if(B.hasMultipleOffers)Object.assign(_.h(B.buttonCommand,_.uU),{properties:{source:I?"keyboard":"tap"}}),this.logTap(B),this.popupPositionTarget=E,_.cN(this.hostElement,[B.buttonCommand],this.hostElement);else{var T;if((T=_.h(B.buttonCommand,_.JK))==null?0:T.url)this.logTap(B),_.sf(window,_.h(B.buttonCommand,_.JK).url)}};
m9.prototype.onShowingMoreChanged=m9.prototype.onShowingMoreChanged;m9.prototype.dataChanged=m9.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],m9.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],m9.prototype,"firstEvent",void 0);_.k([_.X(),_.t("design:type",Object)],m9.prototype,"restEvents",void 0);_.k([_.X(),_.t("design:type",String)],m9.prototype,"imageUrl",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],m9.prototype,"showingMore",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],m9.prototype,"canShowMore",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],m9.prototype,"skinnyMode",void 0);_.k([_.X(),_.t("design:type",HTMLElement)],m9.prototype,"popupPositionTarget",void 0);_.k([_.$7("#banner-info-tooltip"),_.t("design:type",Object)],m9.prototype,"infoTooltip",void 0);
_.k([_.$7("#info-container"),_.t("design:type",HTMLElement)],m9.prototype,"infoContainer",void 0);_.k([_.$7("#shelf-toggler"),_.t("design:type",HTMLElement)],m9.prototype,"shelfToggleButton",void 0);_.k([_.$7("#separator"),_.t("design:type",HTMLDivElement)],m9.prototype,"separator",void 0);_.k([_.X(),_.t("design:type",String)],m9.prototype,"shelfTogglerLabelText",void 0);_.k([_.X(),_.t("design:type",String)],m9.prototype,"shelfTogglerIcon",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],m9.prototype,"dataChanged",null);_.k([_.i6("showingMore"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],m9.prototype,"onShowingMoreChanged",null);m9=_.k([_.b({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],m9);
_.A(m9,"ytd-ticket-shelf-renderer",function(){if(p2d!==void 0)return p2d;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return p2d=E},{mode:1});var Yat;var aCd;var QR=function(){return _.r.apply(this,arguments)||this};
_.L(QR,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],QR.prototype,"data",void 0);QR=_.k([_.b({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],QR);
_.A(QR,"ytd-comments-entry-point-message-renderer",function(){if(aCd!==void 0)return aCd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return aCd=E},{mode:1});var vAd;var dc=function(){return _.r.apply(this,arguments)||this};
_.L(dc,_.r);_.Up.Object.defineProperties(dc.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.teaserAvatar)}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],dc.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],dc.prototype,"hasAvatar",null);dc=_.k([_.b({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],dc);
_.A(dc,"ytd-comments-entry-point-teaser-renderer",function(){if(vAd!==void 0)return vAd;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return vAd=E},{mode:1});var y_s;var hO=function(){return _.r.apply(this,arguments)||this};
_.L(hO,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],hO.prototype,"data",void 0);hO=_.k([_.b({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],hO);
_.A(hO,"ytd-comments-simplebox-renderer",function(){if(y_s!==void 0)return y_s;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return y_s=E},{mode:1});var sQ=function(){var E=_.r.apply(this,arguments)||this;E.fullHeight=!_.d("comment_teaser_full_height_kill_switch")&&_.d("kevlar_watch_grid");return E};
_.L(sQ,_.r);sQ.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"}}}};
sQ.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
sQ.prototype.onTap=function(){var E=this.tapCommand;E&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(E))};
sQ.prototype.onKeyUp=function(E){if(E.keyCode===13)this.onTap()};
_.Up.Object.defineProperties(sQ.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)==null?0:E.onTap)return this.data.onTap;var B,I;if(((B=this.data)==null?0:B.teaserContent)||((I=this.data)==null?0:I.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)!=null&&E.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
sQ.prototype.onKeyUp=sQ.prototype.onKeyUp;sQ.prototype.onTap=sQ.prototype.onTap;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],sQ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],sQ.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],sQ.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],sQ.prototype,"fullHeight",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],sQ.prototype,"tapCommand",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],sQ.prototype,"simpleboxPlaceholder",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sQ.prototype,"hasSimpleboxPlaceholder",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],sQ.prototype,"simpleboxAvatar",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],sQ.prototype,"teaserContent",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sQ.prototype,"hasTeaserContent",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],sQ.prototype,"teaserAvatar",null);
_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sQ.prototype,"hasTeaserAvatar",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],sQ.prototype,"messageText",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],sQ.prototype,"contentRenderer",null);_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sQ.prototype,"hasContents",null);
_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],sQ.prototype,"hasContentRenderer",null);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sQ.prototype,"onTap",null);_.k([_.RN("keypress"),_.t("design:type",Function),_.t("design:paramtypes",[_.wI]),_.t("design:returntype")],sQ.prototype,"onKeyUp",null);sQ=_.k([_.b({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],sQ);
_.A(sQ,"ytd-comments-entry-point-header-renderer",function(){if(Yat!==void 0)return Yat;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Yat=E},{mode:1});var C3s;_.qE(_.IS,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var w2I=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),Zy2={numberText:"",heightPx:2*w2I,shouldAnimate:!1},uH=function(){var E=_.r.apply(this,arguments)||this;E.usingAnimatedComponents=!0;E.wasDetailed=!1;E.JSC$20129_browserSupportsAnimation=_.d("web_supports_animations_api");E.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};E.detailed=!1;E.shouldAnimate=!1;E.viewCountProps=Zy2;E.dateTextProps=
Zy2;E.metadataBadgesInDescription=_.d("web_metadata_badges_in_description");return E};
_.L(uH,_.r);_.l=uH.prototype;_.l.resetAnimationState=function(){this.shouldAnimate=!1};
_.l.updateDynamicMetadata=function(){if(this.JSC$20129_browserSupportsAnimation){if(!this.detailed){var E,B,I,T;var e=(E=this.videoPrimaryInfoRenderer)==null?void 0:(B=E.viewCount)==null?void 0:(I=B.videoViewCountRenderer)==null?void 0:(T=I.extraShortViewCount)==null?void 0:T.simpleText;var c,Y,v,y;var Z=(c=this.videoPrimaryInfoRenderer)==null?void 0:(Y=c.viewCount)==null?void 0:(v=Y.videoViewCountRenderer)==null?void 0:(y=v.shortViewCount)==null?void 0:y.simpleText}if(!Z){var P,z,m,u;e=(P=this.videoPrimaryInfoRenderer)==
null?void 0:(z=P.viewCount)==null?void 0:(m=z.videoViewCountRenderer)==null?void 0:(u=m.unlabeledViewCountValue)==null?void 0:u.simpleText;var x,M,N,W;Z=(x=this.videoPrimaryInfoRenderer)==null?void 0:(M=x.viewCount)==null?void 0:(N=M.videoViewCountRenderer)==null?void 0:(W=N.viewCount)==null?void 0:W.simpleText}var U,q,f;E=Number((U=this.videoPrimaryInfoRenderer)==null?void 0:(q=U.viewCount)==null?void 0:(f=q.videoViewCountRenderer)==null?void 0:f.originalViewCount);var ed,K;U=(ed=this.videoPrimaryInfoRenderer)==
null?void 0:(K=ed.relativeDateText)==null?void 0:K.simpleText;var p4;ed=!((p4=this.videoPrimaryInfoRenderer)==null||!p4.relativeDateText);if(e&&Z&&E&&(U||!ed)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;p4=Z.split(new RegExp("("+e+")"));e=cjL(p4[0]);var sc;Z={numberText:(sc=p4[1])!=null?sc:"",numberValue:E,heightPx:2*w2I,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Gf;sc=((Gf=p4[2])!=null?Gf:"")+"  ";this.setViewCount(Z,e,cjL(sc));
if(!this.detailed&&ed){e=U.split(/(\d+)/);Gf=cjL(e[0]);var xi;sc={numberText:(xi=e[1])!=null?xi:"",heightPx:2*w2I,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var ki;xi=((ki=e[2])!=null?ki:"")+"  ";this.setDateText(sc,Gf,cjL(xi))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.l.setViewCount=function(E,B,I){_.U3(B)!==_.U3(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=B);this.viewCountProps.numberText!==(E==null?void 0:E.numberText)&&(this.viewCountProps=E||Zy2);_.U3(I)!==_.U3(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=I)};
_.l.setDateText=function(E,B,I){_.U3(B)!==_.U3(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=B);this.dateTextProps.numberText!==(E==null?void 0:E.numberText)&&(this.dateTextProps=E||Zy2);_.U3(I)!==_.U3(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=I)};
_.l.onYtUpdateViewershipAction=function(E){this.videoPrimaryInfoRenderer&&(_.h(E,ahI).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.h(E,ahI).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.h(E,ahI).viewCount)))};
_.l.onYtUpdateDateTextAction=function(E){if(this.videoPrimaryInfoRenderer){E=_.h(E,_.pQd).dateText;this.shouldAnimate=!0;var B;((B=this.videoPrimaryInfoRenderer)==null?0:B.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",E):this.set("videoPrimaryInfoRenderer.dateText",E)}};
_.Up.Object.defineProperties(uH.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return lnT(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.U3(lnT(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.U3(this.viewCountPreNumberText),this.viewCountProps.numberText,_.U3(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.U3(this.dateTextPreNumberText),this.dateTextProps.numberText,_.U3(this.dateTextPostNumberText)].join("")}}});
uH.prototype.updateDynamicMetadata=uH.prototype.updateDynamicMetadata;uH.prototype.resetAnimationState=uH.prototype.resetAnimationState;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],uH.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],uH.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],uH.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],uH.prototype,"videoPrimaryInfoRenderer",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],uH.prototype,"detailed",void 0);_.k([_.X(),_.t("design:type",Object)],uH.prototype,"shouldAnimate",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],uH.prototype,"viewCountPreNumberText",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],uH.prototype,"viewCountProps",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],uH.prototype,"viewCountPostNumberText",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],uH.prototype,"dateTextPreNumberText",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],uH.prototype,"dateTextProps",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],uH.prototype,"dateTextPostNumberText",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],uH.prototype,"metadataBadgesInDescription",void 0);_.k([_.S("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.t("design:type",Object),_.t("design:paramtypes",[])],uH.prototype,"infoText",null);
_.k([_.S("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.t("design:type",String),_.t("design:paramtypes",[])],uH.prototype,"descriptionInfoTooltipText",null);_.k([_.S("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.t("design:type",String),_.t("design:paramtypes",[])],uH.prototype,"animatedViewCountAccessibilityLabel",null);
_.k([_.S("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.t("design:type",String),_.t("design:paramtypes",[])],uH.prototype,"animatedDateTextAccessibilityLabel",null);_.k([_.EM("videoPrimaryInfoRenderer"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],uH.prototype,"resetAnimationState",null);
_.k([_.EM("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],uH.prototype,"updateDynamicMetadata",null);uH=_.k([_.b({disableElementRegistration:!0,is:"ytd-watch-info-text"})],uH);
_.A(uH,"ytd-watch-info-text",function(){if(C3s!==void 0)return C3s;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return C3s=E},{mode:1});var P31;var zX8=_.rp(function(E){var B=E.data;var I=E.setTapCommand;_.m$(function(){var T=_.ha(B().onTap);I(T)});
return _.w("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.w(_.hM,{data:function(){return B().avatar}},{avatarViewModel:_.yf}),_.w("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.w("span",null,function(){return B().simpleboxText})))},"Gi");var mbO=_.rp(function(E){return _.w("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.w(_.wU,{cond:function(){return _.h(E.data().avatar,_.jf)},
then:function(B){return _.w(_.yf,{data:B,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.w("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.w(_.aS,{text:function(){return E.data().teaserText}})))},"Hi");var Q62=_.rp(function(E){var B=E.data;var I=E.setTapCommand;_.m$(function(){var T=_.ha(B().onTap);I(T)});
return _.w("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.w(_.hM,{data:function(){return B().teasers}},{commentsEntryPointTeaserViewModel:mbO}))},"Ii");var db2=_.rp(function(E){var B=E.data;var I=E.setTapCommand;_.m$(function(){var T=_.ha(B().onTap);I(T)});
return _.w("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.w(_.aS,{text:function(){return B().messageText}}))},"Ji");var hX9=_.rp(function(E){var B=E.data;var I=E.setTapCommand;var T=E.isDisabled;_.m$(function(){var e=(T==null?0:T())?void 0:_.ha(B().onTap);I(e)});
return _.w("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.w(_.i0,{icon:function(){return B().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.w(_.wU,{cond:function(){return B().image},
then:function(e){return _.w(_.Ja,{data:e,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.w(_.aS,{text:function(){return B().text},
className:function(){return B().image||B().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.w(_.hM,{data:function(){return B().button}},{buttonViewModel:function(e){return _.w(_.ne,{data:e.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:T==null?void 0:T()}}})}}))},"Ki");var s6I=_.rp(function(E){var B=E.data;var I=E.itemIndex;var T=E.selectedIndex;var e=E.indexUpdatedCallback;var c=E.observer;E=E.title;var Y=_.oH(),v=function(z){I()===T()&&e(z)},y=_.hk(XX8),Z=_.hk(rtt),P=function(){var z,m,u;
return((z=B())==null?void 0:z.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!y()||((m=B())==null?void 0:m.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&Z().includes("PAposts_by_host")||((u=B())==null?void 0:u.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&Z().includes("PAyouchat")};
_.uW(function(){c&&c().observe(Y.value)});
return _.w("yt-carousel-item-view-model",{el:Y,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":E},_.w(_.hM,{data:function(){var z,m;return(m=(z=_.h(B().carouselItem,NLT))==null?void 0:z.textCarousel)!=null?m:B().carouselItem}},{textCarouselItemViewModel:function(z){return _.w(hX9,{data:z.data,
setTapCommand:v,isDisabled:P})},
commentTeaserCarouselItemViewModel:function(z){return _.w(Q62,{data:z.data,setTapCommand:v})},
commentInputBoxCarouselItemViewModel:function(z){return _.w(zX8,{data:z.data,setTapCommand:v})},
commentsEntryPointMessageViewModel:function(z){return _.w(db2,{data:z.data,setTapCommand:v})}}))},"Li");var uUI=_.rp(function(E){var B=E.numDots;var I=E.activeIndex;return _.w("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.w(_.Zt,{each:function(){return Array.from({length:B()})},
keyBy:"INDEX"},function(T,e){return _.w("div",{class:function(){var c={};return _.B$("ytCarouselDotsShapeDot",(c.ytCarouselDotsShapeDotActive=e===I(),c))}})}))},"Mi");var LdL=_.rp(function(E){var B=E.data;var I=E.handleCarouselNavigation;var T=E.numItems;var e=E.selectedIndex;var c=function(){return{disabled:e()===0}},Y=function(){return{disabled:e()===T()-1}};
return _.w("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.w("div",null,_.w("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return B().title}),_.w(_.wU,{cond:function(){return B().subtitle},
then:function(v){return _.w("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return B().subtitleAccessibilityText}},v)}})),_.w(_.wU,{cond:function(){return T()>1},
then:function(){return _.w("div",{class:"ytCarouselTitleViewModelNavigation"},_.w(uUI,{numDots:T,activeIndex:e}),_.w(_.wU,{cond:function(){return B().previousButton},
then:function(v){return _.w(_.hM,{data:v},{buttonViewModel:function(y){return _.w(_.ne,{data:y.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(-1)},
buttonOverrides:c})}})}}),_.w(_.wU,{cond:function(){return B().nextButton},
then:function(v){return _.w(_.hM,{data:v},{buttonViewModel:function(y){return _.w(_.ne,{data:y.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(1)},
buttonOverrides:Y})}})}}))}}))},"Ni");_.oQ(_.rp(function(E){var B=E.data;var I=_.oH(),T=_.oH(),e=_.HA("HTML_DIR")==="rtl",c=!1,Y=0,v=0;E=_.p(_.lQ(0,void 0,"m0dtIf"));var y=E.next().value,Z=E.next().value;E=_.p(_.lQ(0,void 0,"fL6I6"));var P=E.next().value,z=E.next().value;E=_.p(_.lQ(!1,void 0,"ZPrwNb"));var m=E.next().value,u=E.next().value,x=function(){var p4,sc,Gf;return(Gf=(p4=B())==null?void 0:(sc=p4.carouselTitles)==null?void 0:sc.length)!=null?Gf:0},M=function(){T.value&&T.value.scrollLeft!==Y&&Z((e?T.value.scrollLeft<Y:T.value.scrollLeft>
Y)?Math.min(y()+1,x()-1):Math.max(y()-1,0))},N;
window.IntersectionObserver&&(N=new IntersectionObserver(function(p4){p4=_.p(p4);for(var sc=p4.next();!sc.done;sc=p4.next())if(sc.value.isIntersecting){if(c){c=!1;break}M()}else Z(v)},{threshold:.2}));
_.m$(function(){if(T.value){var p4=(e?-1:1)*(P()/x()+12)*(m()&&N?v:y());typeof T.value.scrollTo==="function"?T.value.scrollTo({left:p4,behavior:"smooth"}):T.value.scrollLeft=p4;Y=p4;v=m()&&N?v:y()}});
var W,U=function(p4){W=p4};
_.uW(function(){var p4=function(){var Gf=T.value.offsetWidth*x(),xi=24*(x()-1);z(Gf+xi)};
p4();if(window.ResizeObserver){var sc=new ResizeObserver(p4);sc.observe(T.value);_.dt(function(){sc.disconnect();N&&N.disconnect()})}});
E=_.TI(function(p4){if(_.JYf(_.Sf(p4),I.value,["BUTTON".toString()])||!W)return!1;_.Q().resolve(_.Dt).resolveCommand(W,{forceClickLogging:!0});return!1});
var q=function(p4){p4=y()+p4;p4>=0&&p4<x()&&(c=!0,Z(p4))},f=_.TI(function(){u(!0);
return!1}),ed=_.TI(function(){N||M();
u(!1);return!1}),K={};
return _.w("yt-video-metadata-carousel-view-model",{class:_.RQ("ytVideoMetadataCarouselViewModelHost",(K.ytVideoMetadataCarouselViewModelShortMode=_.d("mweb_video_metadata_carousel_short_mode"),K)),el:I,"on:click":E,"on:touchstart":f,"on:touchend":ed,hidden:function(){var p4,sc;return!((p4=B())==null?0:(sc=p4.carouselItems)==null?0:sc.length)}},_.w("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.w(_.wU,{cond:function(){return B().carouselTitles},
then:function(p4){return _.w(_.hM,{data:function(){return p4()[m()&&N?v:y()]}},{carouselTitleViewModel:function(sc){return _.w(LdL,{data:sc.data,
handleCarouselNavigation:q,numItems:x,selectedIndex:y})}})}})),_.w("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:T},_.w("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+P()+"px;"}},_.w(_.wU,{cond:function(){return B().carouselItems},
then:function(p4){return _.w(_.Zt,{each:p4},function(sc,Gf){return _.w(_.hM,{data:function(){return sc}},{carouselItemViewModel:function(xi){return _.w(s6I,{data:xi.data,
itemIndex:Gf,selectedIndex:y,indexUpdatedCallback:U,observer:N,title:function(){a:{var ki=Gf();var WG,rJ=(WG=B())==null?void 0:WG.carouselTitles;if(rJ&&(ki=rJ[ki])){var Uc;ki=(Uc=_.h(ki,HQ9))==null?void 0:Uc.title;break a}ki=void 0}return ki}})}})})}}))))},"Oi"),"yt-video-metadata-carousel-view-model",{props:{data:_.Jh}});var xbd=_.d("web_action_buttons_update_owner_width")?32:12,LZ=function(){var E=_.r.apply(this,arguments)||this;E.metadataBadgesInDescription=_.d("web_metadata_badges_in_description");E.descriptionCollapsed=!0;E.useFadedScrimDescription=_.d("kevlar_enable_faded_scrim_on_description");E.skinnyMode=!1;E.playlist=!1;E.isDark=document.documentElement.hasAttribute("dark");E.disableVideoOwnerOnTap=_.d("swatchie_video_owner_on_tap_ks");E.swatcherooDelayLoad=_.d("swatcheroo_enable_ghost_cards");E.primaryMenuWidth=
0;E.videoId="";E.titleHeadlineXs=_.d("web_watch_typography_title_headline_xs");E.titleHeadlineS=_.d("web_watch_typography_title_headline_s");E.titleHeadlineM=_.d("web_watch_typography_title_headline_m");E.titleHashtagBlackLinkified=_.d("web_title_hashtag_black_linkified");E.titleHashtagGreyLinkified=_.d("web_title_hashtag_grey_linkified");E.actionButtonsUpdateOwnerWidth=_.d("web_action_buttons_update_owner_width");E.shouldForceIconOnly=!1;E.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};return E};
_.L(LZ,_.r);_.l=LZ.prototype;_.l.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.l.updateOwnerAndDescriptionPosition=function(){_.d("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.Nx(this.bottomRowElement,this.ownerElement)):(_.Nx(this.bottomRowElement,this.descriptionElement),_.Nx(this.topRowElement,this.ownerElement)))};
_.l.titleOnTap=function(E){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.XZ(_.W8(E)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var B;((B=window.getSelection())==null?0:B.toString().length)||this.handleExpandDescriptionCommands()}};
_.l.videoOwnerOnTap=function(E){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.XZ(_.W8(E)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.l.detached=function(){var E=this,B;return _.a(function(I){(B=E.resizeObserver)==null||B.disconnect();_.ER(I)})};
_.l.maybeAttachResizeObserver=function(){var E=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.qH(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){E.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.l.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var E=this.hostElement.clientWidth,B=Math.max(this.largerItemWrap?400:350,E/2-xbd);if(_.d("web_action_buttons_update_owner_width")){var I;B=(((I=document.getElementById("owner"))==null?void 0:I.clientWidth)||0)+xbd}this.actionsOnSeparateLine=this.primaryMenuWidth>E-B?!0:!1}};
_.l.stripAttributedDescription=function(E){return{content:E.content.replace(/[\r\n]{2,}/g,"\n")}};
_.l.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.d("web_modern_buttons"),forceIconButton:!_.d("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:_.d("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"}}}};
_.l.videoPrimaryInfoRendererChanged=function(){var E;if((E=this.videoPrimaryInfoRenderer)==null?0:E.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.l.videoSecondaryInfoRendererChanged=function(){var E,B;(B=(E=this.descriptionInlineExpander).collapse)==null||B.call(E);this.descriptionExpandClientVe=_.wA(110509);this.descriptionCollapseClientVe=_.wA(110510);E=_.nC();B=_.Oi();E&&B&&(_.d("combine_ve_grafts")?(_.Ts(_.lu(),this.descriptionExpandClientVe,B),_.Ts(_.lu(),this.descriptionCollapseClientVe,B)):_.r3(E,B,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.l.structuredDescriptionContentRendererChanged=function(){_.d("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.l.updateTopLevelIconsOnly=function(){var E=this;_.d("top_level_update_killswitch")||this.menu&&_.Ll.addLowPriorityJob(function(){E.menu.topLevelIconsOnly=E.skinnyMode},_.RI("swathceroo_delay_flexible_menu_update",100))};
_.l.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.d("web_action_buttons_minimize_subscribe")};
_.l.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.l.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.l.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.l.onYtTextInlineExpanderExpandedChanged=function(){if(!_.d("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var E,B;(B=(E=this.structuredDescriptionContentRendererElement).resize)==null||B.call(E)}};
_.l.onRenderStamperFinished=function(E){(E==null?void 0:E.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.l.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.l.onYtExpanderLessTapped=function(){var E,B=(E=this.videoSecondaryInfoRenderer)==null?void 0:E.showLessCommand;B&&this.ytComponentBehavior.resolveCommand(B)};
_.l.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.l.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.l.onDescriptionClick=function(E){if(!_.XZ(_.W8(E)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var B;((B=window.getSelection())==null?0:B.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.d("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.l.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.l.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.l.logCollapseClick=function(){var E=_.nC();E&&this.descriptionCollapseClientVe&&_.Al(E,this.descriptionCollapseClientVe)};
_.l.logExpandClick=function(){var E=_.nC();E&&this.descriptionExpandClientVe&&_.Al(E,this.descriptionExpandClientVe)};
_.l.collapseDescription=function(){this.descriptionCollapsed=!0};
_.l.scrollToTopOfContainer=function(){_.I2(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.l.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.l.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.l.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.l.resize=function(){if(this.descriptionInlineExpander){var E,B;(B=(E=this.descriptionInlineExpander).resize)==null||B.call(E)}else _.OG(new _.P7("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var I;(I=this.menu)==null||I.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.d("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.l.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var E,B,I,T,e=_.d("web_action_buttons_update_owner_width")?(I=(E=_.n(this.menu).querySelector("#button-shape"))==null?void 0:E.clientWidth)!=null?I:0:(T=(B=_.n(this.menu).querySelector("#button"))==null?void 0:B.clientWidth)!=null?T:0,c,Y;E=((Y=(c=_.n(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:c.clientWidth)!=null?Y:0)+8+e;var v,y;e=(y=(v=_.n(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:v.children.length)!=null?y:2;E<=8*e||(this.primaryMenuWidth=E)}};
_.l.onYtUpdateTitleAction=function(E){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.h(E,YPO).title)};
_.l.onYtUpdateDescriptionAction=function(E){if(E=_.h(E,_.ror)){var B,I=!((B=this.videoSecondaryInfoRenderer)==null||!B.attributedDescription);E.isEmpty||!E.description&&!E.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):E.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",E.attributedDescription):E.description&&(I?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.zA(E.description)):this.set("videoSecondaryInfoRenderer.description",E.description))}};
_.l.onYtDarkModeToggledAction=function(E){this.isDark=E};
_.l.registerPanel=function(){if(!_.d("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var E=_.Q().resolve(_.wQ);E&&E.registerPanel("engagement-panel-structured-description",this)}};
_.l.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.l.showPanel=function(E){this.expandDescription();var B=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;B.resize();var I,T=E==null?void 0:(I=E.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;T?_.Ll.addJob(function(){B==null||B.scrollToSection(T)},8):this.scrollToTopOfContainer()};
_.l.isVisible=function(){return!this.descriptionCollapsed};
_.l.getReloadContinuation=function(){};
_.l.hidePanel=function(){};
_.l.updatePanel=function(){};
_.Up.Object.defineProperties(LZ.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.structuredDescriptionContentRenderer)!=null&&E.items){var B;E=_.p((B=this.structuredDescriptionContentRenderer)==null?void 0:B.items);for(B=E.next();!B.done;B=E.next())if(B=_.h(B.value,_.VJt))return B}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.videoPrimaryInfoRenderer)==null?0:E.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return!!((E=this.videoSecondaryInfoRenderer)==null?0:(B=E.owner)==null?0:(I=B.videoOwnerRenderer)==null?0:I.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.d("swatchie_sd_new_line_strip_ks")){var E,B;if((E=this.videoSecondaryInfoRenderer)==null?0:(B=E.attributedDescription)==null?0:B.content){var I,T;return(T=this.stripAttributedDescription((I=this.videoSecondaryInfoRenderer)==null?void 0:I.attributedDescription))!=null?T:{runs:[]}}}var e,c,Y,v;return(v=(Y=(e=this.videoSecondaryInfoRenderer)==null?void 0:e.description)!=null?Y:(c=this.videoSecondaryInfoRenderer)==null?
void 0:c.attributedDescription)!=null?v:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var E,B;return(B=(E=this.videoSecondaryInfoRenderer)==null?void 0:E.headerRuns)!=null?B:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.commentsEntryPointHeaderRenderer)==null||!E.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.videoMetadataCarousel)==null||!E.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.RI("swatchie_desc_lines",3):this.hasTeaserCarousel?_.RI("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var E,B,I=Object.assign({},(E=this.videoSecondaryInfoRenderer)==null?void 0:(B=E.metadataRowContainer)==null?void 0:B.metadataRowContainerRenderer);if(I&&I.rows&&I.collapsedItemCount!==void 0&&!(I.rows.length<=I.collapsedItemCount))return I.rows=I.rows.slice(I.collapsedItemCount),I.collapsedItemCount=0,I}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var E,B,I=Object.assign({},(E=this.videoSecondaryInfoRenderer)==null?void 0:(B=E.metadataRowContainer)==null?void 0:B.metadataRowContainerRenderer);if(I&&I.rows&&I.collapsedItemCount!==void 0)return I.rows=I.rows.slice(0,I.collapsedItemCount),I.collapsedItemCount=I.rows.length,I}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var E,B;return!!((E=this.structuredDescriptionContentRenderer)==null?0:(B=E.items)==null?0:B.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var E;return(E=this.videoSecondaryInfoRenderer)==null?void 0:E.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return((E=this.videoSecondaryInfoRenderer)==null?0:(B=E.owner)==null?0:(I=B.videoOwnerRenderer)==null?0:I.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T;return!!((E=this.videoPrimaryInfoRenderer)==null?0:(B=E.videoActions)==null?0:(I=B.menuRenderer)==null?0:(T=I.flexibleItems)==null?0:T.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.HV(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.HV(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var E=this;if(_.d("web_title_hashtag_grey_delinkified")){var B,I=_.a_.unsafeClone((B=this.videoPrimaryInfoRenderer)==null?void 0:B.title);(B=I==null?void 0:I.runs)&&B.forEach(function(T){if(T==null?0:T.navigationEndpoint)T.textColor=4284506208,E.isDark&&(T.textColor=4289374890)});
return I}return(I=this.videoPrimaryInfoRenderer)==null?void 0:I.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.d("web_title_hashtag_black_delinkified")||_.d("web_title_hashtag_grey_delinkified")}}});
LZ.prototype.resetDescriptionState=LZ.prototype.resetDescriptionState;LZ.prototype.registerPanel=LZ.prototype.registerPanel;LZ.prototype.onYtExpanderLessTapped=LZ.prototype.onYtExpanderLessTapped;LZ.prototype.onYtExpanderMoreTapped=LZ.prototype.onYtExpanderMoreTapped;LZ.prototype.onRenderStamperFinished=LZ.prototype.onRenderStamperFinished;LZ.prototype.onYtTextInlineExpanderExpandedChanged=LZ.prototype.onYtTextInlineExpanderExpandedChanged;LZ.prototype.onYtTextInlineExpanderCollapseClicked=LZ.prototype.onYtTextInlineExpanderCollapseClicked;
LZ.prototype.onYtTextInlineExpanderExpandClicked=LZ.prototype.onYtTextInlineExpanderExpandClicked;LZ.prototype.moveActionsElement=LZ.prototype.moveActionsElement;LZ.prototype.updateShouldForceIconOnly=LZ.prototype.updateShouldForceIconOnly;LZ.prototype.updateTopLevelIconsOnly=LZ.prototype.updateTopLevelIconsOnly;LZ.prototype.structuredDescriptionContentRendererChanged=LZ.prototype.structuredDescriptionContentRendererChanged;LZ.prototype.videoSecondaryInfoRendererChanged=LZ.prototype.videoSecondaryInfoRendererChanged;
LZ.prototype.videoPrimaryInfoRendererChanged=LZ.prototype.videoPrimaryInfoRendererChanged;LZ.prototype.maybeUpdateActionsOnSeparateLine=LZ.prototype.maybeUpdateActionsOnSeparateLine;LZ.prototype.updateOwnerAndDescriptionPosition=LZ.prototype.updateOwnerAndDescriptionPosition;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],LZ.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],LZ.prototype,"ytComponentBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],LZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.$7("#above-the-fold"),_.t("design:type",HTMLElement)],LZ.prototype,"aboveTheFoldContainer",void 0);_.k([_.$7("#menu ytd-menu-renderer"),_.t("design:type",Object)],LZ.prototype,"menu",void 0);
_.k([_.$7("#description-inline-expander"),_.t("design:type",Object)],LZ.prototype,"descriptionInlineExpander",void 0);_.k([_.$7("#faded-structured-description"),_.t("design:type",Object)],LZ.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.k([_.$7("#structured-description"),_.t("design:type",Object)],LZ.prototype,"structuredDescriptionContentRendererElement",void 0);_.k([_.$7("#title"),_.t("design:type",HTMLElement)],LZ.prototype,"titleElement",void 0);
_.k([_.$7("#description"),_.t("design:type",HTMLElement)],LZ.prototype,"descriptionElement",void 0);_.k([_.$7("#description-interaction"),_.t("design:type",Object)],LZ.prototype,"descriptionInteraction",void 0);_.k([_.$7("#owner"),_.t("design:type",HTMLElement)],LZ.prototype,"ownerElement",void 0);_.k([_.$7("#top-row"),_.t("design:type",HTMLElement)],LZ.prototype,"topRowElement",void 0);_.k([_.$7("#bottom-row"),_.t("design:type",HTMLElement)],LZ.prototype,"bottomRowElement",void 0);
_.k([_.$7("#actions"),_.t("design:type",HTMLElement)],LZ.prototype,"actionsElement",void 0);_.k([_.$7("#bottom-actions"),_.t("design:type",HTMLElement)],LZ.prototype,"bottomActionsElement",void 0);_.k([_.$7("#ytd-watch-info-text"),_.t("design:type",Object)],LZ.prototype,"watchInfoTextElement",void 0);_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"videoPrimaryInfoRenderer",void 0);
_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"videoSecondaryInfoRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"commentsEntryPointHeaderRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"videoMetadataCarousel",void 0);_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"structuredDescriptionContentRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"videoSummary",void 0);
_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"merchShelf",void 0);_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"infoPanelBelowMetadata",void 0);_.k([_.S("structuredDescriptionContentRenderer"),_.t("design:type",Object),_.t("design:paramtypes",[])],LZ.prototype,"productShelf",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LZ.prototype,"metadataBadgesInDescription",void 0);
_.k([_.S("videoPrimaryInfoRenderer"),_.t("design:type",Object),_.t("design:paramtypes",[])],LZ.prototype,"shouldHideBadges",null);_.k([_.S("productShelf","descriptionCollapsed"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],LZ.prototype,"shouldShowProductShelf",null);_.k([_.X(),_.t("design:type",Boolean)],LZ.prototype,"isWatchFlexy",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LZ.prototype,"descriptionCollapsed",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],LZ.prototype,"useFadedScrimDescription",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LZ.prototype,"skinnyMode",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("videoSecondaryInfoRenderer"),_.t("design:type",Object),_.t("design:paramtypes",[])],LZ.prototype,"largerItemWrap",null);_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"playlist",void 0);_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"clarifyBox",void 0);
_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"playerAds",void 0);_.k([_.X(),_.t("design:type",Boolean)],LZ.prototype,"isDark",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],LZ.prototype,"actionsOnSeparateLine",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LZ.prototype,"disableVideoOwnerOnTap",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LZ.prototype,"swatcherooDelayLoad",void 0);
_.k([_.X(),_.t("design:type",Boolean)],LZ.prototype,"suppressTopLevelMetadataRows",void 0);_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"primaryMenuWidth",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LZ.prototype,"videoId",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LZ.prototype,"titleHeadlineXs",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LZ.prototype,"titleHeadlineS",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LZ.prototype,"titleHeadlineM",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LZ.prototype,"titleHashtagBlackLinkified",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LZ.prototype,"titleHashtagGreyLinkified",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],LZ.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.k([_.X(),_.t("design:type",Object)],LZ.prototype,"shouldForceIconOnly",void 0);_.k([_.i6("skinnyMode"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"updateOwnerAndDescriptionPosition",null);_.k([_.i6("skinnyMode"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.k([_.S("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.t("design:type",Object),_.t("design:paramtypes",[])],LZ.prototype,"descriptionText",null);_.k([_.S("videoSecondaryInfoRenderer.headerRuns"),_.t("design:type",Array),_.t("design:paramtypes",[])],LZ.prototype,"headerRuns",null);_.k([_.X({value:!1}),_.S("commentsEntryPointHeaderRenderer"),_.t("design:type",Object),_.t("design:paramtypes",[])],LZ.prototype,"hasTeaser",null);
_.k([_.X({value:!1,reflectToAttribute:!0}),_.S("videoMetadataCarousel"),_.t("design:type",Object),_.t("design:paramtypes",[])],LZ.prototype,"hasTeaserCarousel",null);_.k([_.X({value:3}),_.S("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.t("design:type",Object),_.t("design:paramtypes",[])],LZ.prototype,"descriptionMaxLines",null);_.k([_.S("videoSecondaryInfoRenderer.metadataRowContainer"),_.t("design:type",Object),_.t("design:paramtypes",[])],LZ.prototype,"collapsibleMetadataRows",null);
_.k([_.S("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.t("design:type",Object),_.t("design:paramtypes",[])],LZ.prototype,"alwaysVisibleMetadataRows",null);_.k([_.S("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],LZ.prototype,"hasInlineStructuredDescription",null);
_.k([_.S("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],LZ.prototype,"showInlineStructuredDescription",null);_.k([_.S("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.t("design:type",Object),_.t("design:paramtypes",[])],LZ.prototype,"descriptionExpandCommand",null);
_.k([_.S("videoSecondaryInfoRenderer.owner"),_.t("design:type",Object),_.t("design:paramtypes",[])],LZ.prototype,"videoOwnerCommand",null);_.k([_.X({reflectToAttribute:!0}),_.S("videoPrimaryInfoRenderer.videoActions"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],LZ.prototype,"flexMenuEnabled",null);_.k([_.S("descriptionText","useFadedScrimDescription"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],LZ.prototype,"showAttributedStringDescription",null);
_.k([_.S("descriptionText","useFadedScrimDescription"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],LZ.prototype,"showFormattedStringDescription",null);_.k([_.S("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],LZ.prototype,"showFadedStructuredDescription",null);
_.k([_.i6("videoPrimaryInfoRenderer"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"videoPrimaryInfoRendererChanged",null);_.k([_.S("videoPrimaryInfoRenderer.title"),_.t("design:type",Object),_.t("design:paramtypes",[])],LZ.prototype,"videoTitle",null);_.k([_.S("videoPrimaryInfoRenderer"),_.t("design:type",Object),_.t("design:paramtypes",[])],LZ.prototype,"noEndpoints",null);
_.k([_.i6("videoSecondaryInfoRenderer"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"videoSecondaryInfoRendererChanged",null);_.k([_.EM("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"structuredDescriptionContentRendererChanged",null);
_.k([_.EM("skinnyMode"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"updateTopLevelIconsOnly",null);_.k([_.EM("skinnyMode"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"updateShouldForceIconOnly",null);_.k([_.EM("skinnyMode"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"moveActionsElement",null);
_.k([_.RN("yt-text-inline-expander-expand-clicked"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"onYtTextInlineExpanderExpandClicked",null);_.k([_.RN("yt-text-inline-expander-collapse-clicked"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.k([_.RN("yt-text-inline-expander-expanded-changed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.k([_.RN("yt-rendererstamper-finished"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],LZ.prototype,"onRenderStamperFinished",null);
_.k([_.RN("yt-expander-more-tapped"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"onYtExpanderMoreTapped",null);_.k([_.RN("yt-expander-less-tapped"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"onYtExpanderLessTapped",null);
_.k([_.EM("videoPrimaryInfoRenderer","hasInlineStructuredDescription"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"registerPanel",null);_.k([_.EM("videoSecondaryInfoRenderer"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],LZ.prototype,"resetDescriptionState",null);LZ=_.k([_.b({disableElementRegistration:!0,is:"ytd-watch-metadata"})],LZ);
_.A(LZ,"ytd-watch-metadata",function(){if(P31!==void 0)return P31;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return P31=E},{mode:2});var SaO=function(E){_.Cx.call(this);this.JSC$20152_watchApi=E;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;GlT(this);Oym(this);nAL(this);MW9(this);Hyt(this);Nb7(this);gAI(this)};
_.L(SaO,_.Cx);var nAL=function(E){var B=function(){_.d("kevlar_is_pupi_enabled")||xd(E)};
E.JSC$20152_watchApi.getRoot().addEventListener("yt-player-updated",B);E.addOnDisposeCallback(function(){E.JSC$20152_watchApi.getRoot().removeEventListener("yt-player-updated",B)})},Hyt=function(E){if(_.d("kevlar_endscreen_auto_theater_mode")){var B=_.C_(_.t2(),hW,function(){J_I(E)});
E.addOnDisposeCallback(B)}},GlT=function(E){var B,I,T,e,c;
_.a(function(Y){if(Y.nextAddress==1)return _.C(Y,E.JSC$20152_watchApi.playerApi,2);B=Y.yieldResult;I=function(v){v=!!v;Gp(E)&&(v=v?2:1,_.fU.getInstance().setState(v,!0,!1))};
T=function(v){v&&_.WLs(_.t2().getState())&&(_.I2(E.JSC$20152_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),E.temporaryTheaterMode=!0)};
e=function(v){_.d("kevlar_player_update_autonav_on_new_data")&&v.type==="newdata"&&(_.d("kevlar_is_pupi_enabled")||xd(E))};
c=function(v){E.onPlayerStateChange(v)};
_.d("kevlar_endscreen_auto_theater_mode")&&B.addEventListener("onAutonavCancelled",T);B.addEventListener("onAutonavChangeRequest",I);B.addEventListener("onVideoDataChange",e);B.addEventListener("onStateChange",c);E.addOnDisposeCallback(function(){B.removeEventListener("onAutonavChangeRequest",I);B.removeEventListener("onVideoDataChange",e);B.removeEventListener("onStateChange",c);_.d("kevlar_endscreen_auto_theater_mode")&&B.removeEventListener("onAutonavCancelled",T)});
_.ER(Y)})},Oym=function(E){E.JSC$20152_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){E.autonavCancelledBySignal=!0;
_.d("kevlar_is_pupi_enabled")||xd(E)});
E.JSC$20152_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(B,I,T){I&&xd(E,T)});
E.JSC$20152_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){Gp(E)&&_.fU.getInstance().setState(2,!0,!0)});
E.JSC$20152_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){Gp(E)&&_.fU.getInstance().setState(1,!0,!0)});
E.addOnDisposeCallback(function(){OQ(E.JSC$20152_watchApi,"yt-signal-action-cancel-autonav");OQ(E.JSC$20152_watchApi,"yt-autonav-state-changed-action");OQ(E.JSC$20152_watchApi,"yt-enable-autoplay-command");OQ(E.JSC$20152_watchApi,"yt-disable-autoplay-command")})},MW9=function(E){var B=E.JSC$20152_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){gAI(E)}),I=E.JSC$20152_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Nb7(E)});
E.addOnDisposeCallback(function(){E.JSC$20152_watchApi.unsubscribeByKey(B);E.JSC$20152_watchApi.unsubscribeByKey(I)})},gAI=function(E){E.autonavCancelledBySignal=!1;
_.d("kevlar_is_pupi_enabled")||xd(E)},Nb7=function(E){var B=E.JSC$20152_watchApi.getWatchNextResponse(),I,T;
var e=(B=(T=_.h(B==null?void 0:(e=B.playerOverlays)==null?void 0:(I=e.playerOverlayRenderer)==null?void 0:I.autonavToggle,_.o8D))==null?void 0:T.enabled)?2:1;_.d("kevlar_is_pupi_enabled")?_.fU.getInstance().setState(e,!1,!1):xd(E);_.d("web_persist_server_autonav_state_on_client")&&typeof B==="boolean"&&_.swG(e===2)},Gp=function(E){if(E.autonavCancelledBySignal)return!1;
var B,I,T,e;return!!((B=E.JSC$20152_watchApi.getWatchNextResponse())==null?0:(I=B.contents)==null?0:(T=I.twoColumnWatchNextResults)==null?0:(e=T.autoplay)==null?0:e.autoplay)};
SaO.prototype.onPlayerStateChange=function(E){if(E===0){E=!_.fU.getInstance().isAutoplaySetExplicitly();var B=this.JSC$20152_watchApi.getWatchNextResponse(),I,T,e,c;B=_.h(B==null?void 0:(I=B.contents)==null?void 0:(T=I.twoColumnWatchNextResults)==null?void 0:(e=T.autoplay)==null?void 0:(c=e.autoplay)==null?void 0:c.autoplayExplicitChoiceDialogRenderer,_.QAN);Gp(this)&&E&&B&&_.BV.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:B},popupType:"DIALOG"}})}else J_I(this)};
var J_I=function(E){E.temporaryTheaterMode&&(E.temporaryTheaterMode=!1,_.I2(E.JSC$20152_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},xd=function(E,B){B=B===void 0?!1:B;
var I;_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20152_watchApi.playerApi,2);I=T.yieldResult;Gp(E)?I.setAutonavState(_.fU.getInstance().getState(),B):I.setAutonavState(1,B);_.ER(T)})};var WdH={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"};var r_d=function(E){_.Cx.call(this);var B=this;this.JSC$20157_watchApi=E;var I=this.JSC$20157_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){X2s(B)});
this.addOnDisposeCallback(function(){B.JSC$20157_watchApi.unsubscribeByKey(I)});
X2s(this)};
_.L(r_d,_.Cx);var X2s=function(E){var B=E.JSC$20157_watchApi.getPlayerResponse(),I=E.JSC$20157_watchApi.getWatchNextResponse();if(!_.oA4(B==null?void 0:B.playabilityStatus,I==null?void 0:I.playerOverlays)){var T;var e=B==null?void 0:(T=B.playabilityStatus)==null?void 0:T.errorScreen}E.JSC$20157_watchApi.provideRenderingData("ERROR_SCREEN",e)};var bym=_.rp(function(E){var B=E.data;return _.w("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.w("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.w(_.aS,{text:function(){return B().title}})),_.w("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.w(_.hM,{data:function(){return B().channelAvatar}},{avatarViewModel:_.yf}),_.w(_.aS,{text:function(){return B().subtitle}})))},"Pi");var oAT=_.rp(function(E){return _.w("yt-player-quick-action-buttons",{class:_.RQ("ytPlayerQuickActionButtonsHost")},_.w(_.Zt,{each:E.data},function(B){return _.w(_.hM,{data:function(){return B}},{buttonViewModel:_.ne,
likeButtonViewModel:function(I){return _.w(_.dLz,{data:I.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.mLl})}))},"Qi");var j6L=function(E){_.Cx.call(this);var B=this;this.JSC$20160_watchApi=E;E=_.p(_.lQ({},void 0,"ufFdVc"));this.quickActionsViewModel=E.next().value;this.setQuickActionsViewModel=E.next().value;E=_.p(_.lQ({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=E.next().value;this.setPlayerOverlayVideoDetailsRenderer=E.next().value;var I=this.JSC$20160_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){A_s(B)});
this.addOnDisposeCallback(function(){B.JSC$20160_watchApi.unsubscribeByKey(I)});
A_s(this)};
_.L(j6L,_.Cx);
var A_s=function(E){var B,I,T,e,c,Y,v,y,Z,P,z,m,u,x;_.a(function(M){if(M.nextAddress==1)return _.C(M,E.JSC$20160_watchApi.playerApi,2);B=M.yieldResult;I=E.JSC$20160_watchApi.getWatchNextResponse();c=(T=I)==null?void 0:(e=T.playerOverlays)==null?void 0:e.playerOverlayRenderer;v=_.h((Y=c)==null?void 0:Y.fullscreenQuickActionsBar,_.B4N);(Z=(y=E).setQuickActionsViewModel)==null||Z.call(y,v||{});v&&Ub2(E,B);m=(P=c)==null?void 0:(z=P.videoDetails)==null?void 0:z.playerOverlayVideoDetailsRenderer;(x=(u=
E).setPlayerOverlayVideoDetailsRenderer)==null||x.call(u,m||{});m&&kl7(E,B);_.ER(M)})},Ub2=function(E,B){if(!E.quickActionButtonsContainer){E.quickActionButtonsContainer=document.createElement("div");
B.setFullscreenQuickActions(E.quickActionButtonsContainer);var I=function(){return E.quickActionsViewModel().quickActionButtons||[]},T=_.dU(E.quickActionButtonsContainer,function(){return _.w(oAT,{data:I})});
E.addOnDisposeCallback(function(){B.setFullscreenQuickActions(void 0);T()})}},kl7=function(E,B){if(!E.playerOverlayVideoDetailsRendererContainer){E.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
B.setPlayerOverlayVideoDetailsRenderer(E.playerOverlayVideoDetailsRendererContainer);var I=_.dU(E.playerOverlayVideoDetailsRendererContainer,function(){return _.w(bym,{data:E.playerOverlayVideoDetailsRenderer})});
E.addOnDisposeCallback(function(){B.setPlayerOverlayVideoDetailsRenderer(void 0);I()})}};var nZ=function(E){_.Cx.call(this);var B=this;this.JSC$20165_watchApi=E;this.JSC$20165_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;E=_.C_(_.t2(),_.sD,function(I){tW9(B,I)});
this.addOnDisposeCallback(E);E=_.C_(_.t2(),_.ue,function(I){B.onWatchScroll(I)});
this.addOnDisposeCallback(E);_.d("kevlar_watch_while_v2")&&(E=_.C_(_.t2(),_.O3,function(I){fC9(B,I)}),this.addOnDisposeCallback(E));
VWL(this);qat(this);Fdm();this.onWatchScroll(_.ue(_.t2().getState()));_.gU("START_IN_FULL_WINDOW_MODE")&&this.JSC$20165_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.L(nZ,_.Cx);var VWL=function(E){E.JSC$20165_watchApi.registerActionHandler("yt-fullscreen-change-action",function(B){var I=hW(_.t2().getState());B&&!I||_.t2().dispatch(_.BP({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!B}}))});
E.addOnDisposeCallback(function(){OQ(E.JSC$20165_watchApi,"yt-fullscreen-change-action")})},qat=function(E){var B,I;
_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20165_watchApi.playerApi,2);B=T.yieldResult;I=function(){E.onFullerscreenEduClicked()};
B.addEventListener("onFullerscreenEduClicked",I);E.addOnDisposeCallback(function(){B.removeEventListener("onFullerscreenEduClicked",I)});
_.ER(T)})},tW9=function(E,B){var I;
_.a(function(T){if(T.nextAddress==1)return E.isFullscreen=!!_.KC(),_.C(T,E.JSC$20165_watchApi.playerApi,2);I=T.yieldResult;E.JSC$20165_miniplayerActive||I.setFauxFullscreen(E.isFullscreen);if(B&&(E.JSC$20165_watchApi.focusOnPlayer(),!E.fullerscreenEduButtonShownThisPlayback)){E.fullerscreenEduButtonShownThisPlayback=!0;var e=_.cc("yt-fullerscreen-edu-button-shown-count")||0;_.l9("yt-fullerscreen-edu-button-shown-count",e+1,31536E3);E.updateFullerscreenEduButtonSubtleModeState()}_.ER(T)})},fC9=function(E,
B){var I;
_.a(function(T){if(T.nextAddress==1)return E.JSC$20165_miniplayerActive=B,_.C(T,E.JSC$20165_watchApi.playerApi,2);I=T.yieldResult;I.setFauxFullscreen(!E.JSC$20165_miniplayerActive&&E.isFullscreen);_.ER(T)})};
nZ.prototype.onWatchScroll=function(E){var B=this,I,T;return _.a(function(e){if(e.nextAddress==1)return _.d("external_fullscreen_with_edu")?_.C(e,B.JSC$20165_watchApi.playerApi,2):e.return();I=e.yieldResult;T=E<=0;B.shouldShowFullerscreenEdu!==T&&(B.shouldShowFullerscreenEdu=T,I.updateFullerscreenEduButtonVisibility(!B.shouldShowFullerscreenEdu));_.ER(e)})};
nZ.prototype.onFullerscreenEduClicked=function(){this.JSC$20165_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var E=_.cc("yt-fullerscreen-edu-button-click-count")||0;_.l9("yt-fullerscreen-edu-button-click-count",E+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
nZ.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var E=this,B,I,T,e,c,Y;return _.a(function(v){if(v.nextAddress==1)return B=_.cc("yt-fullerscreen-edu-button-click-count")||0,I=_.cc("yt-fullerscreen-edu-button-shown-count")||0,T=_.RI("external_fullscreen_button_click_threshold"),e=_.RI("external_fullscreen_button_shown_threshold"),c=B>=T||I>=e,_.C(v,E.JSC$20165_watchApi.playerApi,2);Y=v.yieldResult;Y.updateFullerscreenEduButtonSubtleModeState(c);_.ER(v)})};
nZ.prototype.disposeInternal=function(){_.Cx.prototype.disposeInternal.call(this);var E=_.KC();_.d("kevlar_exit_fullscreen_leaving_watch")&&E&&_.RO(E)};
var Fdm=function(){if(_.d("web_watch_add_viewport_meta_tag")){var E=document.querySelector("meta[name=viewport]"),B=document.head;B&&!E&&(E=document.createElement("meta"),E.name="viewport",E.content="width=device-width, initial-scale=1.0, viewport-fit=cover",B.appendChild(E))}};var KdI=function(E){_.Cx.call(this);var B=this;this.JSC$20169_watchApi=E;this.jobId=0;this.pendingRequestId=void 0;var I=this.JSC$20169_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Dbd(B)});
this.addOnDisposeCallback(function(){B.JSC$20169_watchApi.unsubscribeByKey(I)});
Dbd(this)};
_.L(KdI,_.Cx);var RXs=function(E){_.Ll.cancelJob(E.jobId);E.pendingRequestId=void 0},Dbd=function(E){RXs(E);
var B=iQI(E.JSC$20169_watchApi.getWatchNextResponse());if(B){var I=250,T,e=(T=_.h(B,_.I3r))==null?void 0:T.initialDelayMs;_.d("web_watch_updated_metadata_server_initial_delay")&&e&&(I=e);E.jobId=_.Ll.addLowPriorityJob(function(){return E.fetchUpdatedMetadata(B)},I)}};
KdI.prototype.fetchUpdatedMetadata=function(E,B){var I=this,T,e,c,Y,v,y,Z,P,z,m,u,x,M,N,W;return _.a(function(U){switch(U.nextAddress){case 1:B&&(T={continuation:B});if(!_.d("web_get_updated_metadata_fantasy_panel_continuation_params")){U.jumpTo(2);break}e=_.Q().resolve(_.wQ);c="PAsports_fantasy";return _.C(U,e.isVisible(c,!0),3);case 3:U.yieldResult&&(Z=(v=(Y=e).getUpdatePanelContinuationData)==null?void 0:(y=v.call(Y,c))==null?void 0:y.updatePanelContinuationRequest)&&(T||(T={}),T.clientParams=
{panelContinuationParams:{panelContinuation:Z}});case 2:P=_.Q().resolve(_.P8);if(!P)return _.xV(Error("im")),U.return();z={};I.pendingRequestId=z;return _.C(U,_.NN(P,E,T),4);case 4:m=U.yieldResult;if(z!==I.pendingRequestId)return U.return();M=(u=m)==null?void 0:(x=u.continuation)==null?void 0:x.timedContinuationData;((N=M)==null?0:N.continuation)&&((W=M)==null?0:W.timeoutMs)&&(I.jobId=_.Ll.addLowPriorityJob(function(){return I.fetchUpdatedMetadata(E,M.continuation)},M.timeoutMs));
_.ER(U)}})};
KdI.prototype.disposeInternal=function(){_.Cx.prototype.disposeInternal.call(this);RXs(this)};var E5t=_.rp(function(E){var B=_.TI(function(){var T=E.data().videoId;if(E.active())T=_.DB(T),_.Q().resolve(_.Dt).resolveCommand(T);else{var e=E.playerApi(),c=e.getAvailableAudioTracks(),Y,v,y=(Y=E.sourceVideoConfig().audioTracks)==null?void 0:(v=Y.find(function(Z){return Z.isDefaultForSource}))==null?void 0:v.id;
if(c=c.find(function(Z){return Z.getLanguageInfo().getId()===y}))e.setAudioTrack(c,!0),e.setCompositeParam({activeVideoId:T}),E.setActiveSourceId(T)}}),I={};
return _.w("ytw-composite-source-video-overlay",{class:_.RQ("ytwCompositeSourceVideoOverlayHost",(I.ytwCompositeSourceVideoOverlayActive=E.active,I.ytwCompositeSourceVideoOverlayInteracting=E.interacting,I)),style:_.c$({left:function(){var T;return((T=E.data().topLeftCornerX)!=null?T:0)*100+"%"},
top:function(){var T;return((T=E.data().topLeftCornerY)!=null?T:0)*100+"%"},
width:function(){var T;return((T=E.data().width)!=null?T:0)*100+"%"},
height:function(){var T;return((T=E.data().height)!=null?T:0)*100+"%"}}),
"on:click":B},_.w("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Ri");var BOs=_.rp(function(E){var B=_.p(_.l0(function(){var v,y=(v=E.data().sources)==null?void 0:v.find(function(Z){return Z.isActive});
if(y)return y.videoId})),I=B.next().value,T=B.next().value;
B=_.p(_.lQ(!1,void 0,"WI4BUb"));var e=B.next().value,c=B.next().value;B=_.TI(function(){c(!0)});
var Y=_.TI(function(){c(!1)});
return _.w("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":B,"on:mouseout":Y},_.w(_.wU,{cond:function(){return E.data().sources},
then:function(v){return _.w(_.Zt,{each:v},function(y){return _.w(E5t,{data:y,active:function(){return y.videoId===I()},
setActiveSourceId:T,interacting:e,playerApi:E.playerApi,sourceVideoConfig:function(){return paO(E.compositeVideoConfig(),y.videoId)}})})}}))},"Si");var TO9=function(E){_.Cx.call(this);this.JSC$20185_watchApi=E;E=_.p(_.lQ({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=E.next().value;this.setCompositeVideoOverlayRenderer=E.next().value;E=_.p(_.lQ({},void 0,"U5hcq"));this.compositeVideoConfig=E.next().value;this.setCompositeVideoConfig=E.next().value;$Ps(this);II7(this)};
_.L(TO9,_.Cx);var $Ps=function(E){var B=E.JSC$20185_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){II7(E)});
E.addOnDisposeCallback(function(){E.JSC$20185_watchApi.unsubscribeByKey(B)})},er1=function(E){var B;
return _.a(function(I){if(I.nextAddress==1)return _.C(I,E.JSC$20185_watchApi.playerApi,2);B=I.yieldResult;B.setCompositeVideoOverlayRendererComponent(E.container);_.ER(I)})},lI7=function(E){var B;
return _.a(function(I){if(I.nextAddress==1)return _.C(I,E.JSC$20185_watchApi.playerApi,2);B=I.yieldResult;B.setCompositeVideoOverlayRendererComponent(void 0);_.ER(I)})},cqL=function(E){var B,I;
return _.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20185_watchApi.playerApi,2);B=T.yieldResult;E.container=document.createElement("div");I=_.dU(E.container,function(){return _.w(BOs,{data:E.compositeVideoOverlayRenderer,compositeVideoConfig:E.compositeVideoConfig,playerApi:B})});
E.addOnDisposeCallback(I);_.ER(T)})},II7=function(E){var B,I,T,e,c,Y,v,y;
_.a(function(Z){return Z.nextAddress==1?(B=E.JSC$20185_watchApi.getPlayerResponse(),c=_.h((I=B)==null?void 0:(T=I.overlay)==null?void 0:(e=T.playerControlsOverlayRenderer)==null?void 0:e.compositeVideoOverlay,EKg),y=(Y=B)==null?void 0:(v=Y.playerConfig)==null?void 0:v.compositeVideoConfig,c&&E.setCompositeVideoOverlayRenderer(c),y&&E.setCompositeVideoConfig(y),c&&y?E.container?Z.jumpTo(6):_.C(Z,cqL(E),6):iNL(E)?_.C(Z,lI7(E),0):Z.jumpTo(0)):iNL(E)?Z.jumpTo(0):_.C(Z,er1(E),0)})},iNL=function(E){var B;
return!((B=E.container)==null||!B.parentElement)};
TO9.prototype.disposeInternal=function(){iNL(this)&&lI7(this);_.Cx.prototype.disposeInternal.call(this)};var yq1=function(E){_.Cx.call(this);var B=this;this.JSC$20191_watchApi=E;var I=this.JSC$20191_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var T=B.JSC$20191_watchApi.getPlayerResponse();if(T){var e,c;if(T=_.h((e=T.endscreen)==null?void 0:(c=e.endscreenRenderer)==null?void 0:c.hideButton,_.uO)){var Y;(Y=B.setEndscreenHideButton)==null||Y.call(B,T);ptI(B)}}});
this.addOnDisposeCallback(function(){B.JSC$20191_watchApi.unsubscribeByKey(I)});
E=_.p(_.lQ({},void 0,"PPHRb"));this.endscreenHideButton=E.next().value;this.setEndscreenHideButton=E.next().value;Yts(this);aIm(this);v5I(this)};
_.L(yq1,_.Cx);var ptI=function(E){var B,I;_.a(function(T){if(T.nextAddress==1)return E.creatorEndscreenHideButtonContainer?T.return():_.C(T,E.JSC$20191_watchApi.playerApi,2);B=T.yieldResult;E.creatorEndscreenHideButtonContainer=document.createElement("div");_.Xs(E.creatorEndscreenHideButtonContainer,!1);B.setCreatorEndscreenHideButton(E.creatorEndscreenHideButtonContainer);I=_.dU(E.creatorEndscreenHideButtonContainer,function(){return _.w(_.Le,{data:E.endscreenHideButton,useOutlinedIcon:!0})});
E.addOnDisposeCallback(function(){I();B.setCreatorEndscreenHideButton(void 0)});
_.ER(T)})},Yts=function(E){var B,I;
_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20191_watchApi.playerApi,2);B=T.yieldResult;I=function(){E.creatorEndscreenHideButtonContainer&&_.Xs(E.creatorEndscreenHideButtonContainer,!0)};
B.addEventListener("endscreenelementshown",I);E.addOnDisposeCallback(function(){B.removeEventListener("endscreenelementshown",I)});
_.ER(T)})},aIm=function(E){var B=function(){E.creatorEndscreenHideButtonContainer&&_.Xs(E.creatorEndscreenHideButtonContainer,!1)},I=E.JSC$20191_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",B),T=E.JSC$20191_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",B);
E.addOnDisposeCallback(function(){E.JSC$20191_watchApi.unsubscribeByKey(I);E.JSC$20191_watchApi.unsubscribeByKey(T)})},v5I=function(E){E.JSC$20191_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(B){var I=_.h(B,Vb8);
E.JSC$20191_watchApi.playerApi.then(function(T){T==null||T.setCreatorEndscreenVisibility(!!I.hide)})});
E.addOnDisposeCallback(function(){OQ(E.JSC$20191_watchApi,"yt-change-creator-endscreen-visibility-command")})};var wt7=function(E){_.Cx.call(this);this.JSC$20197_watchApi=E;CnI(this)};
_.L(wt7,_.Cx);var CnI=function(E){var B,I;_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20197_watchApi.playerApi,2);B=T.yieldResult;I=function(e){_.t2().dispatch(_.BP({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:e}}))};
B.addEventListener("onRetroModeChanged",I);E.addOnDisposeCallback(function(){B.removeEventListener("onRetroModeChanged",I)});
_.ER(T)})};var nn=0,OD=0,Mx=0;var ZNt=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),Mv=function(E){_.Cx.call(this);this.JSC$20210_watchApi=E;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Pn1(this)};
_.L(Mv,_.Cx);
var Pn1=function(E){var B,I,T;_.a(function(e){if(e.nextAddress==1)return _.C(e,E.JSC$20210_watchApi.playerApi,2);B=e.yieldResult;if(E.isDisposed())return e.return();E.sessionStorage=_.dIL("yt-sleep-timer");E.sessionStorage||_.OG(new _.P7("SessionStorage for Sleep Timer is undefined."));((I=E.sessionStorage)==null?void 0:I.get("yt-sleep-timer"))==="true"&&(mFs(),(T=E.sessionStorage)==null||T.remove("yt-sleep-timer"),B.syncVolume());zr8(E,B);mPI(E,B);Ql9(E,B);_.ER(e)})},zr8=function(E,B){var I=function(Z){E.onSleepTimerSettingsChanged(Z,
B)},T=function(Z){E.onPlayerStateChange(Z,B)},e=function(){E.onLoopChange(B)},c=function(){E.onCloseMiniplayer(B)},Y=function(){wa2(B,(0,_.VZ)(),Qs2(B),E.selectedOption==="End of video",B.getPlayerState()!==1)},v=function(){E.onSeekComplete(B)},y=function(){_.Ll.cancelJob(OD);
var Z=B.getCurrentTime()>=B.getDuration(),P=E.selectedOption==="End of video"||E.selectedOption==="End of playlist"&&!v12(E.playlistId);Z&&P&&dPL(E,B)};
B.addEventListener("onSleepTimerSettingsChanged",I);B.addEventListener("onLoopChange",e);B.addEventListener("onLoopRangeChange",e);B.addEventListener("onStateChange",T);B.addEventListener("onCloseMiniplayer",c);B.addEventListener("onSleepTimerFeatureAvailable",Y);B.addEventListener("SEEK_COMPLETE",v);B.addEventListener("onAdStart",y);E.addOnDisposeCallback(function(){B.removeEventListener("onSleepTimerSettingsChanged",I);B.removeEventListener("onLoopChange",e);B.removeEventListener("onLoopRangeChange",
e);B.removeEventListener("onStateChange",T);B.removeEventListener("onCloseMiniplayer",c);B.removeEventListener("onSleepTimerFeatureAvailable",Y);B.removeEventListener("SEEK_COMPLETE",v);B.removeEventListener("onAdStart",y)})},mPI=function(E,B){var I=E.JSC$20210_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var T=B.getVideoData().video_id,e,c=(e=YBI(E.JSC$20210_watchApi))==null?void 0:e.playlistId;
E.pauseAutonavPlayback&&(B.pauseVideo(),B.syncVolume(),E.pauseAutonavPlayback=!1);if(E.selectedOption==="End of video"&&T!==E.videoId)Hg(E,B);else{if(E.selectedOption==="End of playlist"){e=v12(E.playlistId);if(c!==E.playlistId){Hg(E,B);break a}e?e&&hrI(E,B):slI(E,B)}E.videoId=T;E.playlistId=c}}});
E.addOnDisposeCallback(function(){E.JSC$20210_watchApi.unsubscribeByKey(I)})},Ql9=function(E,B){var I=_.Q().resolve(_.sy),T=_.C_(I,_.Qpd,function(c){c&&E.selectedOption!=="Off"&&Hg(E,B)}),e=_.C_(I,hW,function(c){var Y,v;
return _.a(function(y){if(y.nextAddress==1)return _.C(y,_.vx().navigationFinishPromise,2);Y=!_.BQZ();v=_.Q().resolve(_.W3).isMiniplayerActive();c||!GQ(E.selectedOption)||v||Y||Hg(E,B);_.ER(y)})});
I=_.C_(I,function(c){return c.entities.playlistLoopStateEntity||{}},function(c){c=c===void 0?{}:c;
var Y=anI(E.JSC$20210_watchApi);if(Y){var v;((v=c[Y])==null?void 0:v.state)==="PLAYLIST_LOOP_STATE_ALL"&&GQ(E.selectedOption)&&Hg(E,B)}});
E.addOnDisposeCallback(T);E.addOnDisposeCallback(I);E.addOnDisposeCallback(e)};
Mv.prototype.onSleepTimerSettingsChanged=function(E,B){switch(E){case "Off":this.selectedOption!=="Off"&&Hg(this,B);break;case "End of video":case "End of playlist":uE9(this,E,B);break;default:uE9(this,E,B,ZNt.get(E))}};
Mv.prototype.onLoopChange=function(E){(E.getLoopVideo()||E.getLoopRange())&&GQ(this.selectedOption)&&Hg(this,E)};
Mv.prototype.onCloseMiniplayer=function(E){GQ(this.selectedOption)&&Hg(this,E)};
var uE9=function(E,B,I,T){LIg(E,I);E.selectedOption=B;E.videoId=I.getVideoData().video_id;E.playlistId="";var e;(e=E.sessionStorage)==null||e.set("yt-sleep-timer","true");E.adjustmentsCount++;wa2(I,(0,_.VZ)(),Qs2(I),E.selectedOption==="End of video");if(E.selectedOption==="End of video")slI(E,I),xPI(E,I);else if(E.selectedOption==="End of playlist"){xPI(E,I);var c,Y;E.playlistId=(Y=(c=YBI(E.JSC$20210_watchApi))==null?void 0:c.playlistId)!=null?Y:"";v12(E.playlistId)||slI(E,I)}else T&&(E.presetFadeSchedulerId=
_.wT(_.Ll,function(){PR7(I,15E3)},T-15E3),E.presetPauseSchedulerId=_.wT(_.Ll,function(){dPL(E,I)},T),ZQT(I,(0,_.VZ)(),T))},dPL=function(E,B){if(hW(_.Q().resolve(_.sy).getState())){var I={dismissDialogEndpoint:{}};
var T={commandExecutorCommand:{commands:[I,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};I={buttonViewModel:{title:_.yu("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:I}}};T={buttonViewModel:{title:_.yu("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:T}}};var e={dialogHeaderViewModel:{headline:{content:_.yu("SLEEP_TIMER_ENDED_TITLE")}}},
c={basicContentViewModel:{paragraphs:[{text:{content:_.yu("SLEEP_TIMER_ENDED_TEXT")}}]}};I={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:e,content:c,footer:{panelFooterViewModel:{primaryButton:I,secondaryButton:T,shouldHideDivider:!0}}}}}}};_.Q().resolve(_.Dt).resolveCommand(I,{form:{element:E}})}else mFs();GyT(E,!1);ONt(E,B);B.pauseVideo();_.fU.getInstance().getState()===2&&B.getPlayerState()===5&&(E.pauseAutonavPlayback=!0)},Hg=function(E,B){GyT(E,!0);
ONt(E,B);mFs()},ONt=function(E,B){LIg(E,B);
E.selectedOption="Off";E.videoId="";E.playlistId="";E.adjustmentsCount=0;var I;(I=E.sessionStorage)==null||I.remove("yt-sleep-timer");_.Ll.cancelJob(nn);B.resetSleepTimerMenuSettings()},GyT=function(E,B){B={timer_length_adjustment_times_during_session:E.adjustmentsCount-1,
is_session_cancelled:B};switch(E.selectedOption){case "Off":B.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":B.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":B.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:B.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",B.option_duration_in_minutes=ZNt.get(E.selectedOption)/6E4}_.hK("sleepTimerSessionFinishEvent",B)};
Mv.prototype.onPlayerStateChange=function(E,B){E===1?wa2(B,(0,_.VZ)(),Qs2(B),this.selectedOption==="End of video"):E===0?(_.Ll.cancelJob(OD),B.setVideoTimeLeft(CRH(0,0))):E===2&&_.Ll.cancelJob(OD);this.selectedOption==="End of video"?E===0?dPL(this,B):E===2&&zvI(B):this.selectedOption!=="End of playlist"||v12(this.playlistId)||(E===0?dPL(this,B):E===2&&zvI(B))};
Mv.prototype.onSeekComplete=function(E){E.getPlayerState()===2&&wa2(E,(0,_.VZ)(),Qs2(E),this.selectedOption==="End of video",!0)};
Mv.prototype.onCueRangeEnter=function(E,B){E==="sleep-timer-fade-audio"&&PR7(B,(B.getDuration()-B.getProgressState().current)*1E3)};
Mv.prototype.onCueRangeExit=function(E,B){E==="sleep-timer-fade-audio"&&B.getPlayerState()!==0&&zvI(B,!0)};
var slI=function(E,B){B.addCueRange("sleep-timer-fade-audio",B.getDuration()-15,B.getDuration());B.addEventListener("onCueRangeEnter",function(I){E.onCueRangeEnter(I,B)});
B.addEventListener("onCueRangeExit",function(I){E.onCueRangeExit(I,B)})},hrI=function(E,B){B.removeCueRange("sleep-timer-fade-audio");
B.removeEventListener("onCueRangeEnter",function(I){E.onCueRangeEnter(I,B)});
B.removeEventListener("onCueRangeExit",function(I){E.onCueRangeExit(I,B)})},LIg=function(E,B){GQ(E.selectedOption)?hrI(E,B):(_.Ll.cancelJob(E.presetPauseSchedulerId),_.Ll.cancelJob(E.presetFadeSchedulerId),E.presetPauseSchedulerId=0,E.presetFadeSchedulerId=0);
zvI(B,!0)},xPI=function(E,B){B.setLoop(!1);
B.setLoopVideo(!1);B.setLoopRange(null);(E=anI(E.JSC$20210_watchApi))&&_.Q().resolve(_.sy).dispatch(_.aL("playlistLoopStateEntity",E,{key:E,state:"PLAYLIST_LOOP_STATE_NONE"}))};var NOI=function(E){_.Cx.call(this);this.JSC$20213_watchApi=E;n5d(this);MzH(this);HNm(this);E=E.getRoot();if(E.is==="ytd-watch-flexy"||E.is==="ytd-watch-grid")E.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.Na7();_.d("web_watch_log_theater_mode_cookie_state")&&_.v7.get("wide","0")==="1"&&_.hWf("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.L(NOI,_.Cx);var n5d=function(E){var B,I;_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20213_watchApi.playerApi,2);B=T.yieldResult;I=function(e){g58(E,!!e)};
B.addEventListener("SIZE_CLICKED",I);E.addOnDisposeCallback(function(){B.removeEventListener("SIZE_CLICKED",I)});
_.ER(T)})},MzH=function(E){E.JSC$20213_watchApi.registerActionHandler("yt-toggle-theater-mode",function(B,I){g58(E,B,I===void 0?!0:I)});
E.addOnDisposeCallback(function(){OQ(E.JSC$20213_watchApi,"yt-toggle-theater-mode")})};
NOI.prototype.getState=function(){return _.Ze(_.t2().getState())};
var g58=function(E,B,I){I=I===void 0?!0:I;var T,e,c,Y=_.d("enable_player_resize_transition")&&!!E.JSC$20213_watchApi.getWatchNextResponse()&&!((T=E.JSC$20213_watchApi.getWatchNextResponse())==null?0:(e=T.contents)==null?0:(c=e.twoColumnWatchNextResults)==null?0:c.conversationBar);_.Qd2(function(){_.t2().dispatch(_.BP({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:B}}));_.d("theater_mode_scroll_to_top_killswitch")||E.JSC$20213_watchApi.scrollWatchTo(0,!1);_.KC()&&_.d("external_fullscreen")&&_.RO(document.documentElement);
HNm(E);I&&_.yZ("wide",B?"1":"0",-1);_.I2(E.JSC$20213_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);E.JSC$20213_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:B});B&&_.Na7()},{shouldWrap:Y})},HNm=function(E){var B;
_.a(function(I){if(I.nextAddress==1)return _.C(I,E.JSC$20213_watchApi.playerApi,2);B=I.yieldResult;B.setSizeStyle(!0,E.getState());_.ER(I)})};var WIO=function(E){_.Cx.call(this);var B=this;this.playerApi=E;this.timeToPanelSyncKeyMap={};var I;if(E==null?0:(I=E.isReady)==null?0:I.call(E)){I=_.C_(_.Q().resolve(_.sy),function(e){return e.entities.timedMarkersListSyncEntity||{}},function(e,c){e=e===void 0?{}:e;
c=c===void 0?{}:c;for(var Y=_.p(Object.keys(c)),v=Y.next();!v.done;v=Y.next())v=v.value,e[v]!==c[v]&&StO(B,c[v]);c=_.p(Object.keys(e));for(Y=c.next();!Y.done;Y=c.next())Y=Y.value,v=e[Y],B.timeToPanelSyncKeyMap[Y]&&Jqm(B,v)});
this.addOnDisposeCallback(I);var T=function(e){B.onCueRangeEnter(e)};
E.addEventListener("onCueRangeEnter",T);this.addOnDisposeCallback(function(){var e;(e=E.removeEventListener)==null||e.call(E,"onCueRangeEnter",T)})}};
_.L(WIO,_.Cx);
var Jqm=function(E,B){var I,T;if((I=E.playerApi)==null?0:(T=I.isReady)==null?0:T.call(I)){var e;if((I=B==null?void 0:(e=B.timedListData)==null?void 0:e.sections)&&B!=null&&B.key)for(e=_.p(I),I=e.next();!I.done;I=e.next())if(I=I.value,I.timedSyncDataList&&I.sectionId)for(T=0;T<I.timedSyncDataList.length;T++){var c=I.timedSyncDataList[T];c.syncItemId&&E.playerApi.addCueRange(I.sectionId+"_"+B.key+"_"+c.syncItemId,Number(c.videoTimeMs)/1E3,T===I.timedSyncDataList.length-1?0x8000000000000:Number(I.timedSyncDataList[T+
1].videoTimeMs)/1E3)}}},StO=function(E,B){var I,T;
if((I=E.playerApi)==null?0:(T=I.isReady)==null?0:T.call(I)){var e;if((I=B==null?void 0:(e=B.timedListData)==null?void 0:e.sections)&&B!=null&&B.key)for(e=_.p(I),I=e.next();!I.done;I=e.next())if(I=I.value,I.timedSyncDataList&&I.sectionId){T=_.p(I.timedSyncDataList);for(var c=T.next();!c.done;c=T.next())c=c.value,c.syncItemId&&E.playerApi.removeCueRange(I.sectionId+"_"+B.key+"_"+c.syncItemId)}}};
WIO.prototype.onCueRangeEnter=function(E){for(var B=_.p(Object.keys(this.timeToPanelSyncKeyMap)),I=B.next();!I.done;I=B.next()){I=I.value;var T=_.p(E.split("_"+I+"_")),e=T.next().value;T=T.next().value;if(e&&T){E=_.Q().resolve(_.sy);B=this.timeToPanelSyncKeyMap[I];var c=_.WPB(E.getState(),B);I=Xtt(I,e,T);if(I===-1)break;I={activeSyncId:T,activeItemIndex:I,activeSectionInfo:{sectionIdentifier:e}};c?E.dispatch(_.x4("markersEngagementPanelSyncEntity",B,I)):E.dispatch(_.aL("markersEngagementPanelSyncEntity",
B,Object.assign({},{key:B},I)));break}}};
var Xtt=function(E,B,I){var T=_.Q().resolve(_.sy),e,c;E=(e=OAd(T.getState(),E))==null?void 0:(c=e.timedListData)==null?void 0:c.sections;if(!E)return-1;e=0;c=_.p(E);for(E=c.next();!E.done;E=c.next()){E=E.value;T=E.timedSyncDataList||[];if(E.sectionId===B)return B=T.findIndex(function(Y){return Y.syncItemId===I}),B===-1?B:e+B;
e+=T.length}return-1};var o59=function(E){_.Cx.call(this);var B=this;this.JSC$20225_watchApi=E;this.unresolvedCommands=[];this.JSC$20225_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(I){rqm(B,I)});
this.addOnDisposeCallback(function(){OQ(B.JSC$20225_watchApi,"yt-update-timed-markers-sync-observer-command")});
bNt(this)};
_.L(o59,_.Cx);var bNt=function(E){var B;_.a(function(I){if(I.nextAddress==1)return _.C(I,E.JSC$20225_watchApi.playerApi,2);B=I.yieldResult;if(E.isDisposed())return I.return();E.timedSyncObserver=new WIO(B);E.unresolvedCommands.length&&(E.unresolvedCommands.forEach(function(T){return rqm(E,T)}),E.unresolvedCommands=[]);
_.Bp(E,E.timedSyncObserver);_.ER(I)})},rqm=function(E,B){if(E.timedSyncObserver){var I=_.h(B,FZ1);
if(I&&I.timedSyncEntityKey&&I.panelSyncEntityKey){E=E.timedSyncObserver;B=I.timedSyncEntityKey;var T=I.panelSyncEntityKey;I=!!I.isEnabled;I=I===void 0?!0:I;var e=_.Q().resolve(_.sy);e=OAd(e.getState(),B);I?E.timeToPanelSyncKeyMap[B]||(E.timeToPanelSyncKeyMap[B]=T,Jqm(E,e)):(delete E.timeToPanelSyncKeyMap[B],StO(E,e))}}else E.unresolvedCommands.push(B)};var Aq1=_.rp(function(E){var B=E.data,I=E.maybeLogSmartSkipClientData,T=_.oH();_.rT(T,function(){return B().rendererContext},{onTap:function(P,z){z({disableClickTracking:!0})}});
var e=null,c=null,Y=_.d("web_enable_auto_focus_for_timely_action_button"),v=function(){e=document.activeElement},y=function(){B().smartSkipMetadata&&(e=document.activeElement,_.Qc7(function(){return c}))},Z=function(P){if(B().smartSkipMetadata&&(!P||P.key!=="Enter")){e&&e.isConnected&&(_.Qc7(function(){return e}),e=null);
var z;(z=c)==null||z.blur()}};
E=_.TI(function(){I==null||I(!0,B());return!1});
_.VU(T,{visibilityCallback:function(P){if(Y)P?c&&B().smartSkipMetadata&&(y(),document.addEventListener("focusin",v)):(document.removeEventListener("focusin",v),Z());else if(P&&_.d("web_ephemeral_actions")){P=_.JM(B().rendererContext);var z=Number(B().maxVisibleDurationMilliseconds),m,u=(m=_.h(B().rendererContext,_.bO))==null?void 0:m.label;P&&z&&u&&(m={label:u,command:P,durationMs:z},_.Q().resolve(_.BJ).enqueue(m))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.hA(function(){if(Y){var P;if((c=(P=T.value)==null?void 0:P.querySelector("button"))&&B().smartSkipMetadata){var z;(z=T.value)==null||z.addEventListener("keydown",Z)}}});
_.dt(function(){Y&&(c&&B().smartSkipMetadata&&c.removeEventListener("keydown",Z),document.removeEventListener("focusin",v),Z())});
return _.w("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:T,"on:click":E},_.w(_.hM,{data:function(){return B().content}},{buttonViewModel:_.ne}))},"Ti");var jlT=_.rp(function(E){var B=E.data,I=E.playerApi,T=_.Q().resolve(_.OZh);E=_.p(_.l0(function(){B()}));
var e=E.next().value,c=E.next().value,Y=function(){return hvs(B(),e())},v=function(Z,P){var z,m,u=(z=_.h(P==null?void 0:P.rendererContext,_.Vkc))==null?void 0:(m=z.loggingDirectives)==null?void 0:m.trackingParams;
if((P=P==null?void 0:P.smartSkipMetadata)&&P.loggingData&&(m=P.loggingData,P=m.algorithmId,z=m.startMilliseconds,m=m.endMilliseconds,P&&z!==void 0&&m!==void 0)){var x,M;Z={smartSkipData:Object.assign({},{versionName:P,startMediaTimeMs:z,endMediaTimeMs:m},Z&&{userInteractionMediaTimeMs:(Math.floor(((x=_.jx())==null?void 0:(M=x.getPlayer())==null?void 0:M.getCurrentTime())||0)*1E3).toString()})};x=_.nC();var N;u&&(N=_.Yg(u));x&&N&&_.UK(x,N,Z)}},y=function(Z,P){var z=hvs(B(),Z);
if(z){var m=_.h(z,Hq),u;if(u=P)u=I(),z=_.h(z,Hq),u=z!=null&&z.smartSkipMetadata?!(u==null?0:u.isSameMarkerTypeVisible((z==null?void 0:z.smartSkipMetadata.markerKey)||"")):!0;if(u){var x,M;(m==null?0:(x=m.smartSkipMetadata)==null?0:(M=x.loggingData)==null?0:M.isCounterfactual)||(v(!1,m),c(Z))}else P||e()!==Z||c(void 0)}};
_.m$(function(){var Z=B().timelyActions;if(Z){Z=_.p(Z);for(var P=Z.next();!P.done;P=Z.next()){P=_.h(P.value,Hq);var z=void 0;(z=P)!=null&&z.cueRangeId&&T.timelyActionsMap.set(P.cueRangeId,y)}_.dt(function(){T.timelyActionsMap.clear()})}});
return _.w("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.w(_.hM,{data:Y},{timelyActionViewModel:function(Z){return _.w(Aq1,{data:Z.data,maybeLogSmartSkipClientData:function(){v(!0,_.h(Y(),Hq))}})}}))},"Ui");var kyt=function(E){_.Cx.call(this);this.JSC$20237_watchApi=E;E=_.p(_.lQ({},void 0,"pLDp2"));this.timelyActionsOverlay=E.next().value;this.setTimelyActionsOverlay=E.next().value;UPm(this)};
_.L(kyt,_.Cx);var UPm=function(E){var B,I,T,e;_.a(function(c){if(c.nextAddress==1)return tzT(E),fIT(E),E.timelyActionsContainer=document.createElement("div"),_.C(c,E.JSC$20237_watchApi.playerApi,2);B=c.yieldResult;(T=(I=B).insertTimelyActionUi)==null||T.call(I,E.timelyActionsContainer);e=_.dU(E.timelyActionsContainer,function(){return _.w(jlT,{data:E.timelyActionsOverlay,playerApi:B})});
E.addOnDisposeCallback(e);_.ER(c)})},fIT=function(E){var B=E.JSC$20237_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){tzT(E)});
E.addOnDisposeCallback(function(){E.JSC$20237_watchApi.unsubscribeByKey(B)})},tzT=function(E){var B=E.JSC$20237_watchApi.getWatchNextResponse();
if(B){var I,T;if(B=_.h((I=B.playerOverlays)==null?void 0:(T=I.playerOverlayRenderer)==null?void 0:T.timelyActionsOverlayViewModel,DFL)){var e;(e=E.setTimelyActionsOverlay)==null||e.call(E,B)}}};var qt7=function(E){_.Cx.call(this);this.JSC$20241_watchApi=E;Vz2(this)};
_.L(qt7,_.Cx);var Vz2=function(E){var B,I;_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20241_watchApi.playerApi,2);B=T.yieldResult;I=function(e){_.BV.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.h(e,_.vFO)},popupType:"TOAST"}})};
B.addEventListener("onYtShowToast",I);E.addOnDisposeCallback(function(){B.removeEventListener("onYtShowToast",I)});
_.ER(T)})};var FI1=!1,ESd=function(E){_.Cx.call(this);this.JSC$20244_watchApi=E;this.fullscreen=this.theater=!1;DP1(this);KI1(this);RrH(this)};
_.L(ESd,_.Cx);var RrH=function(E){var B,I,T;_.a(function(e){if(e.nextAddress==1)return _.C(e,E.JSC$20244_watchApi.playerApi,2);B=e.yieldResult;if(E.isDisposed())return e.return();I=E.JSC$20244_watchApi.getElement("CINEMATICS");if(!I)return e.return();E.JSC$20244_cinematicController=new _.$c(I,B);_.Bp(E,E.JSC$20244_cinematicController);_.SE9(E.JSC$20244_cinematicController);Bjt(E,_.QvD());T=E.JSC$20244_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(c){$2H(E,c)});
E.addOnDisposeCallback(function(){E.JSC$20244_watchApi.unsubscribeByKey(T)});
I2m(E);$2H(E,E.JSC$20244_cinematicController.isAllowed());Tjg(E,E.fullscreen,E.theater);esd(E);_.ER(e)})},DP1=function(E){var B=E.JSC$20244_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){I2m(E)});
E.addOnDisposeCallback(function(){E.JSC$20244_watchApi.unsubscribeByKey(B)})},KI1=function(E){var B,I;
_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20244_watchApi.playerApi,2);B=T.yieldResult;I=function(e){Bjt(E,e)};
B.addEventListener("cinematicSettingsToggleChange",I);E.addOnDisposeCallback(function(){B.removeEventListener("cinematicSettingsToggleChange",I)});
_.ER(T)})},I2m=function(E){var B=E.JSC$20244_watchApi.getWatchNextResponse(),I;
B=_.h(B==null?void 0:(I=B.pageVisualEffects)==null?void 0:I[0],_.Pt);var T;(T=E.JSC$20244_cinematicController)==null||_.W7t(T,B)},Bjt=function(E,B){var I;
(I=E.JSC$20244_cinematicController)==null||_.JmL(I,B);l2d(E)},$2H=function(E,B){var I;
_.a(function(T){if(T.nextAddress==1)return _.d("kevlar_watch_cinematics_invisible")&&(B=!1),_.C(T,E.JSC$20244_watchApi.playerApi,2);I=T.yieldResult;I.updateCinematicSettings(B);l2d(E);_.ER(T)})},esd=function(E){var B=_.ZB();
if(_.d("kevlar_measure_ambient_mode_idle")&&!B.getFlag(192)&&!FI1){FI1=!0;var I=_.PC(_.Ll,function(){_.Q().resolve(_.mI7).start(1E4)},5E3);
E.addOnDisposeCallback(function(){_.Ll.cancelJob(I);_.Q().resolve(_.mI7).stop()})}},Tjg=function(E,B,I){E.fullscreen=B;
E.theater=I;var T;(T=E.JSC$20244_cinematicController)==null||T.setFullscreen(E.fullscreen,E.theater);if(_.d("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(E.theater||E.fullscreen){var e;(e=E.JSC$20244_cinematicController)!=null&&(e=e.currentCinematicEffect)!=null&&(e=e.storyboardManager,e.paused=!1,_.PrH(e),e.update())}else(E=E.JSC$20244_cinematicController)==null||(e=E.currentCinematicEffect)!=null&&e.pause()},l2d=function(E){if(_.d("web_cinematic_theater_mode")||_.d("web_cinematic_fullscreen")){var B;
E.JSC$20244_watchApi.getRoot().toggleCinematicsActive(!((B=E.JSC$20244_cinematicController)==null||!B.isEnabled()))}};var YYs=function(E){_.Cx.call(this);var B=this;this.JSC$20247_watchApi=E;this.commentsReady=!1;this.setCommentsJobId=0;E=_.C_(_.t2(),_.ue,function(){cfg(B)});
this.addOnDisposeCallback(E);var I=this.JSC$20247_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){iYm(B)}),T=this.JSC$20247_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){iYm(B)});
this.addOnDisposeCallback(function(){B.JSC$20247_watchApi.unsubscribeByKey(I);B.JSC$20247_watchApi.unsubscribeByKey(T)});
var e=function(){_.d("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&pS2(B,"false")};
this.JSC$20247_watchApi.getRoot().addEventListener("yt-page-data-will-update",e);this.addOnDisposeCallback(function(){B.JSC$20247_watchApi.getRoot().removeEventListener("yt-page-data-will-update",e)});
iYm(this)};
_.L(YYs,_.Cx);var iYm=function(E){E.commentsReady=!1;_.Ll.cancelJob(E.setCommentsJobId);E.setCommentsJobId=_.PC(_.Ll,function(){cfg(E)},1E3)},cfg=function(E){if(!E.commentsReady){_.nO("cmi");
_.Ll.cancelJob(E.setCommentsJobId);var B,I,T,e,c=(B=E.JSC$20247_watchApi.getWatchNextResponse())==null?void 0:(I=B.contents)==null?void 0:(T=I.twoColumnWatchNextResults)==null?void 0:(e=T.results)==null?void 0:e.results.contents;B=void 0;if(c&&c.length)for(c=_.p(c),I=c.next();!I.done;I=c.next())if(I=I.value,e=T=void 0,((T=I)==null?void 0:(e=T.itemSectionRenderer)==null?void 0:e.sectionIdentifier)==="comment-item-section"){_.d("web_watch_provide_undefined_comments")?B=I.itemSectionRenderer:E.JSC$20247_watchApi.provideRenderingData("COMMENTS",
I.itemSectionRenderer);pS2(E,"true");break}_.d("web_watch_provide_undefined_comments")&&E.JSC$20247_watchApi.provideRenderingData("COMMENTS",B);E.commentsReady=!0;E.JSC$20247_watchApi.dispatchEvent("yt-watch-comments-ready")}},pS2=function(E,B){var I;
(I=E.JSC$20247_watchApi.getElement("COMMENTS"))==null||I.setAttribute("canScheduleJobs",B)};var Csg=function(E){_.Cx.call(this);var B=this;this.JSC$20250_watchApi=E;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.d("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.d("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.d("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.RI("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)a2I(this);
else{var I=this.JSC$20250_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Nv(B);SE(B)}),T=this.JSC$20250_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JO(B);
SE(B)});
this.JSC$20250_watchApi.getRoot().is==="ytd-watch-grid"&&_.d("swatcheroo_pbs_load_grid")&&(vST(this),yfT(this));this.addOnDisposeCallback(function(){B.JSC$20250_watchApi.unsubscribeByKey(I);B.JSC$20250_watchApi.unsubscribeByKey(T);_.Ll.cancelJob(B.provideRichGridJobId)});
Nv(this);JO(this)}};
_.L(Csg,_.Cx);var a2I=function(E){var B=E.JSC$20250_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){E.providePlayerJobId=_.dT(_.Ll,function(){Nv(E);SE(E)},E.provideAllDataDelayMs)}),I=E.JSC$20250_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){E.provideWatchNextJobId=_.dT(_.Ll,function(){JO(E);
SE(E)},E.provideAllDataDelayMs)}),T=E.JSC$20250_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){E.provideWatchNextJobId=_.dT(_.Ll,function(){JO(E);
SE(E)},E.provideAllDataDelayMs)});
E.JSC$20250_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.PC(_.Ll,function(){Nv(E);JO(E);SE(E)},100)});
wSt(E.JSC$20250_watchApi,function(){_.Ll.cancelJob(E.provideWatchNextJobId);_.Ll.cancelJob(E.providePlayerJobId)});
E.addOnDisposeCallback(function(){OQ(E.JSC$20250_watchApi,"yt-pending-navigation-cancelled");E.JSC$20250_watchApi.unsubscribeByKey(B);E.JSC$20250_watchApi.unsubscribeByKey(I);E.JSC$20250_watchApi.unsubscribeByKey(T);_.Ll.cancelJob(E.providePlayerJobId);_.Ll.cancelJob(E.provideWatchNextJobId)});
Nv(E);JO(E)},Nv=function(E){var B=E.JSC$20250_watchApi.getPlayerResponse(),I,T,e=(T=B==null?void 0:(I=B.playabilityStatus)==null?void 0:I.messageRenderers)!=null?T:[],c,Y;
B=(Y=B==null?void 0:(c=B.playabilityStatus)==null?void 0:c.messages)!=null?Y:[];c=_.p(B);for(Y=c.next();!Y.done;Y=c.next())e.push({alertRenderer:{text:_.jj(Y.value),type:"WARNING"}});E.JSC$20250_watchApi.provideRenderingData("ALERTS",e)},JO=function(E){var B=[],I,T,e,c=E.JSC$20250_watchApi.getWatchNextResponse(),Y,v,y,Z,P=c==null?void 0:(Y=c.contents)==null?void 0:(v=Y.twoColumnWatchNextResults)==null?void 0:(y=v.results)==null?void 0:(Z=y.results)==null?void 0:Z.contents;
if(P)for(Y=_.p(P),v=Y.next();!v.done;v=Y.next())if(v=v.value,v.videoPrimaryInfoRenderer)var z=v;else if(v.videoSecondaryInfoRenderer){var m=v;Z=y=void 0;v=Object.assign({},(y=v.videoSecondaryInfoRenderer)==null?void 0:(Z=y.metadataRowContainer)==null?void 0:Z.metadataRowContainerRenderer);if(v.rows&&v.collapsedItemCount!==void 0){v.rows=v.rows.slice(0,v.collapsedItemCount).filter(function(kl){return!!kl.richMetadataRowRenderer});
v.collapsedItemCount=v.rows.length;var u={metadataRowContainerRenderer:v}}}else if(v.merchandiseShelfRenderer)var x=v;else if(v.ticketShelfRenderer)var M=v;else if(v.expandableMetadataRenderer)var N=v;else if(v.itemSectionRenderer)if(y=v.itemSectionRenderer.contents,Z=void 0,E.directlyProvideComments&&((Z=v.itemSectionRenderer)==null?void 0:Z.sectionIdentifier)==="comment-item-section")_.nO("cmi"),E.JSC$20250_watchApi.provideRenderingData("COMMENTS",v.itemSectionRenderer);else if(y)for(v=_.p(y),y=
v.next();!y.done;y=v.next())if(y=y.value,y.commentsEntryPointHeaderRenderer)var W=y;else if(y.clarificationRenderer||y.infoPanelContainerRenderer||y.infoPanelContentRenderer||y.emergencyOneboxRenderer){B.push(y);var U=U||!!m}else y.limitedStateMessageRenderer?T=y:y.videoMetadataCarouselViewModel&&(e=y);if(_.d("web_watch_merch_in_sd_when_ticket_shelf_present")&&x&&M){var q=x;x=void 0}if(E.provideWatchNextSecondaryResults){var f,ed,K;E.JSC$20250_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
c==null?void 0:(f=c.contents)==null?void 0:(ed=f.twoColumnWatchNextResults)==null?void 0:(K=ed.secondaryResults)==null?void 0:K.secondaryResults)}if(E.JSC$20250_watchApi.getRoot().is==="ytd-watch-grid"){var p4,sc;E.JSC$20250_watchApi.provideRenderingData("LIVE_CHAT",c==null?void 0:(p4=c.contents)==null?void 0:(sc=p4.twoColumnWatchNextResults)==null?void 0:sc.conversationBar)}var Gf,xi,ki,WG;(f=c==null?void 0:(Gf=c.contents)==null?void 0:(xi=Gf.twoColumnWatchNextResults)==null?void 0:(ki=xi.secondaryResults)==
null?void 0:(WG=ki.secondaryResults)==null?void 0:WG.offerModule)&&(f.donationShelfRenderer||f.donationUnavailableRenderer)&&E.JSC$20250_watchApi.getRoot().is!=="ytd-watch-grid"&&(I=f);Gf=E.JSC$20250_watchApi.getPlayerResponse();if(!Gf||!_.oA4(Gf.playabilityStatus,c==null?void 0:c.playerOverlays)){var rJ;if(c==null?0:(rJ=c.contents)==null?0:rJ.singleColumnWatchNextResults){var Uc,CV;var Bm=c==null?void 0:(Uc=c.contents.singleColumnWatchNextResults.results)==null?void 0:(CV=Uc.results)==null?void 0:
CV.contents}else{var LV,I$,bc,hz;rJ=!!(P==null?0:(LV=P[0])==null?0:(I$=LV.itemSectionRenderer)==null?0:(bc=I$.contents)==null?0:(hz=bc[0])==null?0:hz.backgroundPromoRenderer);var TU,Wm;LV=!!(c==null?0:(TU=c.contents)==null?0:(Wm=TU.twoColumnWatchNextResults)==null?0:Wm.secondaryResults);rJ&&!LV&&(Bm=P)}}P=B[0];TU=B[1];U&&B.length===1&&(TU=P,P=void 0);E.JSC$20250_watchApi.provideRenderingData("PRIMARY_INFO",z);E.JSC$20250_watchApi.provideRenderingData("SECONDARY_INFO",m);E.JSC$20250_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
W);E.JSC$20250_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",e);E.JSC$20250_watchApi.provideRenderingData("CLARIFICATION",P);E.JSC$20250_watchApi.provideRenderingData("RICH_METADATA",u);E.JSC$20250_watchApi.provideRenderingData("MERCH_SHELF",x);_.d("web_watch_merch_in_sd_when_ticket_shelf_present")&&E.JSC$20250_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",q);E.JSC$20250_watchApi.provideRenderingData("TICKET_SHELF",M);E.JSC$20250_watchApi.provideRenderingData("LIMITED_STATE",T);E.JSC$20250_watchApi.getRoot().is!==
"ytd-watch-grid"&&E.JSC$20250_watchApi.provideRenderingData("DONATION_SHELF",I);E.JSC$20250_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Bm);E.JSC$20250_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",TU);E.JSC$20250_watchApi.provideRenderingData("EXPANDABLE_METADATA",N);if(E.swatcherooProvideAllDataOnScheduledJob){var z2,cG,$I,tz,pX,OZ;z=c==null?void 0:(z2=c.contents)==null?void 0:(cG=z2.twoColumnWatchNextResults)==null?void 0:($I=cG.secondaryResults)==null?void 0:(tz=$I.secondaryResults)==
null?void 0:(pX=tz.results)==null?void 0:(OZ=pX[0])==null?void 0:OZ.richGridRenderer;E.JSC$20250_watchApi.provideRenderingData("RICH_GRID_RENDERER",z)}};
Csg.prototype.hasCompanionAds=function(E){var B,I;return(I=E==null?void 0:(B=E.adPlacements)==null?void 0:B.some(function(T){var e,c,Y,v;return(T==null?void 0:(e=T.adPlacementRenderer)==null?void 0:(c=e.renderer)==null?void 0:c.actionCompanionAdRenderer)||(T==null?void 0:(Y=T.adPlacementRenderer)==null?void 0:(v=Y.renderer)==null?void 0:v.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?I:!1};
var SE=function(E){if(!_.d("swaterdoo_ps_wn_handle_ks")){E.swatcherooProvideAllDataOnScheduledJob||yfT(E,3E3);var B=E.JSC$20250_watchApi.getPlayerResponse(),I,T,e,c,Y,v=(I=E.JSC$20250_watchApi.getWatchNextResponse())==null?void 0:(T=I.contents)==null?void 0:(e=T.twoColumnWatchNextResults)==null?void 0:(c=e.secondaryResults)==null?void 0:(Y=c.secondaryResults)==null?void 0:Y.offerModule;B=E.hasCompanionAds(B);var y,Z;I=(v==null?void 0:(y=v.tvfilmOfferModuleRenderer)==null?void 0:y.clientShouldSuppressIfCompanionAdDisplayed)||
(v==null?void 0:(Z=v.unlimitedOfferModuleRenderer)==null?void 0:Z.suppressIfCompanionAds);y=B&&I;E.JSC$20250_watchApi.getRoot().is==="ytd-watch-grid"&&E.JSC$20250_watchApi.provideRenderingData("OFFER_MODULE",y?void 0:v)}},yfT=function(E,B){_.d("swatcheroo_pbs_load_grid")&&(E.provideRichGridJobId&&_.Ll.cancelJob(E.provideRichGridJobId),E.provideRichGridJobId=_.dT(_.Ll,function(){E.provideRichGridJobId=0;
var I,T,e,c,Y,v,y,Z=(I=E.JSC$20250_watchApi.getWatchNextResponse())==null?void 0:(T=I.contents)==null?void 0:(e=T.twoColumnWatchNextResults)==null?void 0:(c=e.secondaryResults)==null?void 0:(Y=c.secondaryResults)==null?void 0:(v=Y.results)==null?void 0:(y=v[0])==null?void 0:y.richGridRenderer;Z&&E.JSC$20250_watchApi.provideRenderingData("RICH_GRID_RENDERER",Z)},B))},vST=function(E){var B,I;
_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20250_watchApi.playerApi,2);B=T.yieldResult;I=function(){E.onPlaybackStart()};
B.addEventListener("onPlaybackStartExternal",I);E.addOnDisposeCallback(function(){B.removeEventListener("onPlaybackStartExternal",I)});
_.ER(T)})};
Csg.prototype.onPlaybackStart=function(){yfT(this)};var PsO=function(E){_.Cx.call(this);var B=this;this.JSC$20260_watchApi=E;E.playerApi.then(function(I){B.player=I});
this.gestures=new _.Y0(this.JSC$20260_watchApi.getRoot(),E.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(hW(_.t2().getState())&&_.ue(_.t2().getState())<=0)if(_.sD(_.t2().getState())){var I;(I=B.player)==null||I.toggleFullscreen()}else _.I2(B.JSC$20260_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
ZYg(this)};
_.L(PsO,_.Cx);var ZYg=function(E){var B=_.C_(_.t2(),_.sD,function(I){E.gestures&&E.gestures.update(I)});
E.addOnDisposeCallback(B);B=_.C_(_.t2(),_.ue,function(I){E.gestures&&(I>0?E.gestures.detach():E.gestures.attach())});
E.addOnDisposeCallback(B)};var m2I=function(E){_.Cx.call(this);var B=this;this.JSC$20263_watchApi=E;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
E=_.C_(_.t2(),hW,function(I){B.onActiveChanged(I)});
this.addOnDisposeCallback(E);zs1(this);this.onActiveChanged(hW(_.t2().getState()))};
_.L(m2I,_.Cx);var QT8=function(E){if(_.d("swatcheroo_page_dispose_all_watch_data"))E.pageDisposalDataTypes=Object.values(WdH).filter(function(I){return I!=="PLAYLIST"});
else if(_.d("swatcheroo_page_dispose_rich_grid")){var B;(B=E.pageDisposalDataTypes)==null||B.push("RICH_GRID_RENDERER")}},zs1=function(E){_.d("swatcheroo_enable_ghost_cards")&&(QT8(E),E.JSC$20263_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Ll.cancelJob(E.clearDataJobId);
E.clearDataJobId=0}),E.runPageDisposeJob=function(){var B=_.Q().resolve(_.oS).getDestinationPageType()==="watch";
E.clearDataJobId=_.dT(_.Ll,E.runClearDataJob,B?0:_.RI("web_watch_delay_page_dispose_ms",1E4))},E.runClearDataJob=function(){d28(E)},E.runOnYtNavigateAwayFinish=function(){E.clearDataJobId&&(_.Ll.cancelJob(E.clearDataJobId),E.clearDataJobId=0,d28(E))},document.addEventListener("yt-navigate-finish",E.runOnYtNavigateAwayFinish),wSt(E.JSC$20263_watchApi,E.runPageDisposeJob),E.addOnDisposeCallback(function(){var B=E.JSC$20263_watchApi;
B.rootElement.pageDisposeJobs&&_.f4(B.rootElement.pageDisposeJobs,E.runPageDisposeJob);OQ(E.JSC$20263_watchApi,"yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",E.runOnYtNavigateAwayFinish)}))},d28=function(E){E.pageDisposalDataTypes.forEach(function(B){E.JSC$20263_watchApi.provideRenderingData(B,void 0)});
E.clearDataJobId=0};
m2I.prototype.onActiveChanged=function(E){E&&((E=document.querySelector("#watch-page-skeleton"))&&_.ii(E),hs9(this),document.body.removeAttribute("no-y-overflow"),_.gU("IS_SHELL_LOAD")&&_.uvO())};
var hs9=function(E){_.a(function(B){if(B.nextAddress==1)return _.C(B,E.JSC$20263_watchApi.playerApi,2);_.k6();_.ER(B)})};var sT7=_.d("kevlar_watch_while_counterfactual")?0:.25,Gcg=function(E){_.Cx.call(this);this.JSC$20266_watchApi=E;this.JSC$20266_watchWhileEnabled=_.d("kevlar_watch_while_v2");this.pipEnabled=_.d("web_enable_pip_on_miniplayer");uJs(this);LlI(this);x29(this)};
_.L(Gcg,_.Cx);var uJs=function(E){E.JSC$20266_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){OYd(E)});
E.addOnDisposeCallback(function(){OQ(E.JSC$20266_watchApi,"yt-activate-miniplayer-from-watch-action")})},LlI=function(E){var B,I;
_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20266_watchApi.playerApi,2);B=T.yieldResult;I=function(){OYd(E)};
B.addEventListener("onCollapseMiniplayer",I);E.addOnDisposeCallback(function(){B.removeEventListener("onCollapseMiniplayer",I)});
_.ER(T)})},x29=function(E){var B=E.JSC$20266_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&B&&E.JSC$20266_watchWhileEnabled&&(E.playerIntersectionObserver=new IntersectionObserver(function(I){E.handleIntersect(I)},{threshold:[sT7]}),E.playerIntersectionObserver.observe(B),E.addOnDisposeCallback(function(){var I;
(I=E.playerIntersectionObserver)==null||I.disconnect()}))},OYd=function(E){var B,I,T;
_.a(function(e){if(e.nextAddress==1){B=_.Q().resolve(_.oS);I=B.data;T=_.bNd(I.response,I.playerResponse);_.vx().miniplayerButtonActivation=!0;if(E.pipEnabled)return _.vx().watchPipActivation=!0,e.jumpTo(2);_.Q().resolve(_.W3).collapse();return _.C(e,_.vx().navigationFinishPromise,2)}if(e.nextAddress!=4)return _.vx().currentEndpoint=T.watchEndpoint||null,_.C(e,_.Q().resolve(_.W3).activate(E.JSC$20266_watchApi.getElement("PLAYER"),T,I),4);_.vx().userActivation=!0;_.ER(e)})};
Gcg.prototype.handleIntersect=function(E){nSs(this,E[E.length-1])};
var nSs=function(E,B){E.watchWhileJobId&&_.Ll.cancelJob(E.watchWhileJobId);E.watchWhileJobId=_.Ll.addLowPriorityJob(function(){var I,T;return _.a(function(e){if(e.nextAddress==1)return E.watchWhileJobId=void 0,I=_.Q().resolve(_.W3),B.intersectionRatio>sT7?I.isMiniplayerActive()?_.C(e,I.deactivate(),0):e.jumpTo(0):(T=!I.isMiniplayerActive())?_.C(e,MZ1(E),5):e.jumpTo(4);e.nextAddress!=4&&(T=e.yieldResult);if(!T)return e.jumpTo(0);_.vx().watchWhileActivation=!0;return _.C(e,HYL(E),0)})},100)},MZ1=function(E){return _.a(function(B){return B.nextAddress==
1?_.d("kevlar_watch_while_paused")?B.return(!0):_.C(B,E.isPlayerPlaying(),2):B.return(B.yieldResult)})};
Gcg.prototype.isPlayerPlaying=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,E.JSC$20266_watchApi.playerApi,2);B=I.yieldResult;return I.return(B.getPlayerStateObject().isPlaying)})};
var HYL=function(E){var B,I;return _.a(function(T){B=_.Q().resolve(_.oS).data;I=_.bNd(B.response,B.playerResponse);_.vx().currentEndpoint=I.watchEndpoint||null;return _.C(T,_.Q().resolve(_.W3).activate(E.JSC$20266_watchApi.getElement("PLAYER"),I,B),0)})};var SY9=function(E){_.Cx.call(this);this.JSC$20270_watchApi=E;NjT(this);gS9(this)};
_.L(SY9,_.Cx);var gS9=function(E){var B,I;_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20270_watchApi.playerApi,2);B=T.yieldResult;I=function(e){var c;e.sessionData&&e.sessionData.itct&&(c=e.sessionData.itct);var Y=e.watchEndpoint;if(Y&&e.sessionData&&e.sessionData.autonav)Y=_.FHc(Y,c);else{var v;Y=_.DB(e.videoId,(v=e.listId)!=null?v:void 0,c)}c={endpoint:Y};e.sessionData&&(c.tempData=e.sessionData);E.JSC$20270_watchApi.dispatchEvent("yt-navigate",c)};
B.addEventListener("onPlayVideo",I);E.addOnDisposeCallback(function(){B.removeEventListener("onPlayVideo",I)});
_.ER(T)})},NjT=function(E){var B=function(I){E.onYtNavigate(I)};
E.JSC$20270_watchApi.getRoot().addEventListener("yt-navigate",B);E.addOnDisposeCallback(function(){E.JSC$20270_watchApi.getRoot().removeEventListener("yt-navigate",B)})};
SY9.prototype.onYtNavigate=function(E){var B=this,I,T,e,c,Y,v,y,Z,P;return _.a(function(z){if(z.nextAddress==1){if(!((I=E.detail)==null?0:(T=I.endpoint)==null?0:T.watchEndpoint))return z.return();e=E.detail.endpoint.watchEndpoint;c=B.JSC$20270_watchApi.getWatchNextResponse();v=_.h((Y=c)==null?void 0:Y.currentVideoEndpoint,_.kh);if(!v)return z.return();if(e.videoId!==v.videoId||e.playlistId&&e.playlistId!==v.playlistId||typeof e.startTimeSeconds!=="number")return z.jumpTo(0);E.stopPropagation();(y=
_.d("kevlar_watch_while_v2")&&!_.d("kevlar_watch_while_counterfactual"))&&_.Q().resolve(_.W3).isMiniplayerActive()||B.JSC$20270_watchApi.scrollWatchTo(0,!0);return _.C(z,B.JSC$20270_watchApi.playerApi,3)}Z=z.yieldResult;P=e.startTimeSeconds;Z.seekTo(P,void 0,void 0,void 0,84);Z.wakeUpControls();P<Z.getDuration()&&Z.playVideo();_.ER(z)})};var bYs=function(E){_.Cx.call(this);var B=this;this.JSC$20273_watchApi=E;E=_.C_(_.t2(),_.GdG,function(){Jf7(B)});
this.addOnDisposeCallback(E);E=_.C_(_.t2(),_.S27,function(){Jf7(B)});
this.addOnDisposeCallback(E);WlT(this);XS8(this);rfL()};
_.L(bYs,_.Cx);var WlT=function(E){var B=function(T){_.t2().dispatch(_.OQg(T.matches))},I=window.matchMedia("(max-width: "+(999+_.zo())+"px)");
I.addListener(B);E.addOnDisposeCallback(function(){I.removeListener(B)});
B(I)},XS8=function(E){E.JSC$20273_watchApi.registerActionHandler("yt-window-resized",function(){rfL()});
E.addOnDisposeCallback(function(){OQ(E.JSC$20273_watchApi,"yt-window-resized")})},rfL=function(){var E=_.v8();
_.t2().dispatch(_.BP({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:E.width,height:E.height}}}))},Jf7=function(E){var B;
_.a(function(I){if(I.nextAddress==1)return _.C(I,E.JSC$20273_watchApi.playerApi,2);B=I.yieldResult;B.setSize(NaN,NaN);_.ER(I)})};var Af2=function(E){_.Cx.call(this);var B=this;this.JSC$20277_watchApi=E;var I=this.JSC$20277_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){oS8(B)});
this.addOnDisposeCallback(function(){B.JSC$20277_watchApi.unsubscribeByKey(I)});
oS8(this)};
_.L(Af2,_.Cx);var oS8=function(E){var B=E.JSC$20277_watchApi.getWatchNextResponse();if(B){var I,T=[].concat(_.ad((I=B==null?void 0:B.engagementPanels)!=null?I:[]));T.unshift.apply(T,_.ad(jT2(B)));E.JSC$20277_watchApi.provideRenderingData("ENGAGEMENT_PANELS",T)}},U2I=function(){var E;
return(E=_.Nm(window.location.href,"list"))==null?void 0:E.startsWith("LJ")},kc8=function(E){var B,I,T,e=(B=E.engagementPanels)==null?void 0:(I=B.find(function(u){var x;
return((x=u.engagementPanelSectionListRenderer)==null?void 0:x.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(T=I.engagementPanelSectionListRenderer.content)==null?void 0:T.structuredDescriptionContentRenderer,c;
if(_.h(e==null?void 0:(c=e.items)==null?void 0:c.find(function(u){return!!_.h(u,C21)}),C21))return!0;
var Y,v,y,Z;if(E=(((Y=E.contents)==null?void 0:(v=Y.twoColumnWatchNextResults)==null?void 0:(y=v.results)==null?void 0:(Z=y.results)==null?void 0:Z.contents)||[]).find(function(u){return u.videoPrimaryInfoRenderer})){var P,z,m;
return(((P=E.videoPrimaryInfoRenderer)==null?void 0:(z=P.videoActions)==null?void 0:(m=z.menuRenderer)==null?void 0:m.flexibleItems)||[]).some(function(u){u=_.h(u,_.hhU);if(!u)return!1;var x,M;u=(x=u.topLevelButton)==null?void 0:(M=x.buttonViewModel)==null?void 0:M.onTap;if(!u)return!1;x=_.ha(u);if(!x)return!1;var N;return((N=_.h(x,_.nJ))==null?void 0:N.panelIdentifier)==="PAyouchat"})}return!1},jT2=function(E){var B=[];
if(!_.d("web_watch_inject_placeholder_fantasy_panel_killswitch")){var I,T,e,c=(I=E.engagementPanels)==null?void 0:(T=I.find(function(v){var y;return((y=v.engagementPanelSectionListRenderer)==null?void 0:y.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(e=T.engagementPanelSectionListRenderer.content)==null?void 0:e.structuredDescriptionContentRenderer,Y;
_.h(c==null?void 0:(Y=c.items)==null?void 0:Y.find(function(v){return!!_.h(v,kZd)}),kZd)&&(I=_.TX("PAsports_fantasy"),I.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",B.push(I))}kc8(E)&&(E=_.TX("PAyouchat"),E.engagementPanelSectionListRenderer.targetId="PAyouchat",E.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",B.push(E));
U2I()&&(E=_.TX("PAlearning_chat"),E.engagementPanelSectionListRenderer.targetId="PAlearning_chat",E.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",B.push(E));return B};var f2d=function(E){_.Cx.call(this);this.JSC$20280_watchApi=E;tZO(this)};
_.L(f2d,_.Cx);var tZO=function(E){E.JSC$20280_watchApi.registerActionHandler("yt-loop-command",function(B){VZH(E,B)});
E.JSC$20280_watchApi.registerActionHandler("yt-repeat-chapter-command",function(B){qY2(E,B)});
E.addOnDisposeCallback(function(){OQ(E.JSC$20280_watchApi,"yt-loop-command");OQ(E.JSC$20280_watchApi,"yt-repeat-chapter-command")})},VZH=function(E,B){var I;
_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20280_watchApi.playerApi,2);I=T.yieldResult;_.h(B,fnd).loop?(I.setLoopRange({startTimeMs:Number(_.h(B,fnd).startTimeMs),endTimeMs:Number(_.h(B,fnd).endTimeMs),postId:_.h(B,fnd).postId,type:"clips"}),I.playVideo()):I.setLoopRange(null);_.ER(T)})},qY2=function(E,B){var I,T;
_.a(function(e){if(e.nextAddress==1)return _.C(e,E.JSC$20280_watchApi.playerApi,2);I=e.yieldResult;T=_.h(B,KZ9).repeat;T==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(I.setLoopRange({startTimeMs:Number(_.h(B,KZ9).startTimeMs),endTimeMs:Number(_.h(B,KZ9).endTimeMs),type:"repeatChapter"}),I.playVideo()):T==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&I.setLoopRange(null);_.ER(e)})};var D2m=function(E){_.Cx.call(this);this.JSC$20285_watchApi=E;FlL(this)};
_.L(D2m,_.Cx);var FlL=function(E){E.JSC$20285_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(B){KlH(E,B)});
E.addOnDisposeCallback(function(){OQ(E.JSC$20285_watchApi,"yt-watch-player-overflow-menu-command")})},KlH=function(E,B){var I,T,e,c,Y,v,y,Z,P,z,m;
_.a(function(u){if(u.nextAddress==1)return _.C(u,E.JSC$20285_watchApi.playerApi,2);I=u.yieldResult;if(c=(e=(T=_.h(B,Rvm))==null?void 0:T.highlightedMenuItemKey)!=null?e:"")(v=(Y=I).highlightSettingsMenuItem)==null||v.call(Y,c);if(P=(Z=(y=_.h(B,Rvm))==null?void 0:y.openMenuItemKey)!=null?Z:"")(m=(z=I).openSettingsMenuItem)==null||m.call(z,P);_.ER(u)})};var RsL=_.lm("/youtube/app/watch/player_state","playerStateEntity");var BDd=function(E){_.Cx.call(this);this.JSC$20288_watchApi=E;EcO(this)};
_.L(BDd,_.Cx);var $x8=function(E){switch(E){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"}},EcO=function(E){var B,I;
_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20288_watchApi.playerApi,2);B=T.yieldResult;I=function(e){E.onPlayerStateChange(e)};
B.addEventListener("onStateChange",I);E.addOnDisposeCallback(function(){B.removeEventListener("onStateChange",I)});
_.ER(T)})};
BDd.prototype.onPlayerStateChange=function(E){var B=this,I,T;return _.a(function(e){if(e.nextAddress==1)return _.C(e,B.JSC$20288_watchApi.playerApi,2);I=e.yieldResult;T=I.getVideoData().video_id;_.gp().dispatch(_.aL("playerStateEntity",RsL,{key:RsL,playerState:$x8(E),videoId:T}));_.ER(e)})};var IjH=function(E){_.Cx.call(this);var B=this;this.JSC$20292_watchApi=E;E=_.t2();var I=_.C_(E,hW,function(T){B.onActiveChanged(T)});
this.addOnDisposeCallback(I);_.Q().resolve(_.Hx).setPlayer(this.JSC$20292_watchApi.getElement("PLAYER"));this.onActiveChanged(hW(E.getState()))};
_.L(IjH,_.Cx);IjH.prototype.onActiveChanged=function(E){var B=this,I=_.Q().resolve(_.Hx),T=function(){TD1(B)};
E?(E=this.JSC$20292_watchApi.getElement("PLAYLIST_PANEL"))?(I.setPlaylistComponent(E),I.addEventListener("yt-playlist-data-updated",T),this.addOnDisposeCallback(function(){I.removeEventListener("yt-playlist-data-updated",T)}),TD1(this)):_.Xx(Error("jm")):(I.removeEventListener("yt-playlist-data-updated",T),I.cancelVideoSkip())};
var TD1=function(E){var B=_.Q().resolve(_.Hx);E.JSC$20292_watchApi.provideRenderingData("PLAYLIST",B.getPlaylistData())};var Wg=function(E){_.Cx.call(this);var B=this;this.JSC$20295_watchApi=E;this.onPageScroll=function(){B.scrollThrottle.fire();B.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.qH(this.onThrottledScroll,200,this);_.Bp(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.qH(this.onMastheadThrottledScroll,50,this);_.Bp(this,this.mastheadScrollThrottle);this.animation=new _.sW(function(I){B.JSC$20295_watchApi.getRoot().setScrollTop(I)});
E=_.C_(_.t2(),_.sD,function(){eIT(B)});
this.addOnDisposeCallback(E);lj8(this);cWd(this);this.onThrottledScroll()};
_.L(Wg,_.Cx);
var eIT=function(E){var B=E.JSC$20295_watchApi.getRoot();!E.pageScrollElement&&B.pageScrollElement?(E.pageScrollElement=B.pageScrollElement,B.pageScrollElement.addEventListener("scroll",E.onPageScroll),E.addOnDisposeCallback(function(){E.pageScrollElement&&E.pageScrollElement.removeEventListener("scroll",E.onPageScroll)})):E.pageScrollElement&&!B.pageScrollElement&&(E.pageScrollElement.removeEventListener("scroll",E.onPageScroll),E.pageScrollElement=void 0)},lj8=function(E){window.addEventListener("scroll",E.onPageScroll);
E.addOnDisposeCallback(function(){window.removeEventListener("scroll",E.onPageScroll)})},cWd=function(E){E.JSC$20295_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(B){a:{var I;
if(I=E.JSC$20295_watchApi.getRoot().contains(B)&&!E.animation.isAnimating()){I=B.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var T,e,c=(B==null?void 0:(T=B.parentElement)==null?void 0:(e=T.parentElement)==null?void 0:e.id)==="fixed-secondary";I=!(I&&c)}if(I){if(_.d("kevlar_watch_scroll_manager_absolute_offset_killswitch"))T=B.offsetTop;else for(T=0,e=B;e!==null;)T+=e.offsetTop,T-=e.scrollTop,e=e.offsetParent;e=T;T=e-24;B=e+B.offsetHeight+24;e=E.JSC$20295_watchApi.getRoot().getPageScrollingElement();
I=E.JSC$20295_watchApi.getRoot().getScrollTop();c=I+e.clientHeight-56;if(T<I+56)B=T-56;else if(B>c)B-=e.clientHeight;else break a;E.scrollWatchTo(Math.max(0,B),!0)}}});
E.addOnDisposeCallback(function(){OQ(E.JSC$20295_watchApi,"yt-scroll-to-watch-element")})};
Wg.prototype.onThrottledScroll=function(){var E=_.t2(),B=E.dispatch,I=this.JSC$20295_watchApi.getRoot().getScrollTop();B.call(E,_.BP({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:I}}))};
Wg.prototype.onMastheadThrottledScroll=function(){this.JSC$20295_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20295_watchApi.getRoot().getScrollTop())};
Wg.prototype.scrollWatchTo=function(E,B){(B===void 0?0:B)?this.animation.start(this.JSC$20295_watchApi.getRoot().getScrollTop(),Math.max(0,E),500):this.JSC$20295_watchApi.getRoot().setScrollTop(E)};var YDm=function(E){_.Cx.call(this);var B=this;this.JSC$20298_watchApi=E;var I=this.JSC$20298_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){in9(B)}),T=this.JSC$20298_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){pqT(B)});
this.addOnDisposeCallback(function(){B.JSC$20298_watchApi.unsubscribeByKey(I);B.JSC$20298_watchApi.unsubscribeByKey(T)});
in9(this);pqT(this)};
_.L(YDm,_.Cx);
var in9=function(E){var B,I,T,e=(T=(B=E.JSC$20298_watchApi.getPlayerResponse())==null?void 0:(I=B.videoDetails)==null?void 0:I.title)!=null?T:"";E.JSC$20298_watchApi.dispatchEvent("yt-update-title",e)},pqT=function(E){var B,I,T,e,c,Y,v,y=(v=((Y=(B=E.JSC$20298_watchApi.getWatchNextResponse())==null?void 0:(I=B.contents)==null?void 0:(T=I.twoColumnWatchNextResults)==null?void 0:(e=T.results)==null?void 0:(c=e.results)==null?void 0:c.contents)!=null?Y:[]).find(function(Z){return!!Z.videoPrimaryInfoRenderer}))==null?
void 0:v.videoPrimaryInfoRenderer;
(B=_.U3(y==null?void 0:y.title))&&E.JSC$20298_watchApi.dispatchEvent("yt-update-title",B)};var vc2=function(E){_.Cx.call(this);this.JSC$20301_watchApi=E;ajO(this)};
_.L(vc2,_.Cx);var ajO=function(E){var B,I;_.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$20301_watchApi.playerApi,2);B=T.yieldResult;I=function(){E.onYpcContentRequest()};
B.addEventListener("onYpcContentRequest",I);E.addOnDisposeCallback(function(){B.removeEventListener("onYpcContentRequest",I)});
_.ER(T)})};
vc2.prototype.onYpcContentRequest=function(){var E,B,I,T,e,c=(E=this.JSC$20301_watchApi.getWatchNextResponse())==null?void 0:(B=E.contents)==null?void 0:(I=B.twoColumnWatchNextResults)==null?void 0:(T=I.secondaryResults)==null?void 0:(e=T.secondaryResults)==null?void 0:e.offerModule,Y,v,y,Z;E=(Z=(y=(v=(Y=c==null?void 0:c.episodeOfferModuleRenderer)!=null?Y:c==null?void 0:c.movieOfferModuleRenderer)!=null?v:c==null?void 0:c.unlimitedOfferModuleRenderer)!=null?y:c==null?void 0:c.liveOfferModuleRenderer)!=
null?Z:c==null?void 0:c.tvfilmOfferModuleRenderer;var P,z,m;c=(m=c==null?void 0:(P=c.tvfilmOfferModuleRenderer)==null?void 0:(z=P.actionButtons)==null?void 0:z.length)!=null?m:0;z=Math.max(c-1,0);var u,x,M;P=(M=E==null?void 0:(u=E.offerButton)==null?void 0:u.buttonRenderer)!=null?M:E==null?void 0:(x=E.actionButtons)==null?void 0:x[z].buttonRenderer;var N,W;(u=(W=(N=P==null?void 0:P.navigationEndpoint)!=null?N:P==null?void 0:P.serviceEndpoint)!=null?W:P==null?void 0:P.command)&&_.BV.instance.resolveCommand(u)};_.Xb=function(E){_.oo.call(this);var B=this;this.rootElement=E;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return B.activeModules}};
yWO(this);E=_.C_(_.t2(),hW,function(I){B.initOrDisposeActiveModules(I)});
this.addOnDisposeCallback(E);this.initOrDisposeActiveModules(hW(_.t2().getState()));this.onAttached()};
_.L(_.Xb,_.oo);_.Xb.prototype.getRoot=function(){return this.rootElement};
_.Xb.prototype.getElement=function(E){return this.rootElement.getElement(E)};
_.rc=function(E,B){E.playerResponse=B;E.publish("PLAYER_RESPONSE_UPDATED",B)};
_.Xb.prototype.getPlayerResponse=function(){return this.playerResponse};
_.bH=function(E,B){E.watchNextResponse===B?E.publish("WATCH_NEXT_RESPONSE_RELOADED"):(E.watchNextResponse=B,E.publish("WATCH_NEXT_RESPONSE_UPDATED",B))};
_.Xb.prototype.getWatchNextResponse=function(){return this.watchNextResponse};
_.Xb.prototype.registerActionHandler=function(E,B){var I=this;if(_.d("web_watch_controller_reg_multiple_handlers_killswitch")){var T={};_.X4(_.WC.getInstance(),(T[E]=B,T),this.getRoot())}else this.actionHandlers.has(E)||(this.actionHandlers.set(E,[]),T={},_.X4(_.WC.getInstance(),(T[E]=function(){var e=_.aG.apply(0,arguments);return(I.actionHandlers.get(E)||[]).map(function(c){return c.apply(null,_.ad(e))})},T),this.getRoot())),this.actionHandlers.get(E).push(B)};
var OQ=function(E,B){if(_.d("web_watch_controller_reg_multiple_handlers_killswitch")){var I={};_.r9(_.WC.getInstance(),(I[B]=!0,I),E.getRoot())}else(I=E.actionHandlers.get(B))?(I.pop(),I.length===0&&(I={},_.r9(_.WC.getInstance(),(I[B]=!0,I),E.getRoot()),E.actionHandlers.delete(B))):_.OG(new _.P7("Attempted to unregister an action handler which is not registered.",B))},wSt=function(E,B){E.rootElement.pageDisposeJobs||(E.rootElement.pageDisposeJobs=[]);
_.ztc(E.rootElement.pageDisposeJobs,B)};
_.Xb.prototype.dispatchEvent=function(E,B){_.$O(this.rootElement,E,B)};
_.Xb.prototype.provideRenderingData=function(E,B){this.rootElement.provideRenderingData(E,B)};
_.Xb.prototype.scrollWatchTo=function(E,B){var I;(I=this.watchScrollManager)==null||I.scrollWatchTo(E,B)};
_.Xb.prototype.focusOnPlayer=function(){var E=this.getElement("PLAYER");_.AJ(E,function(){if(E&&E.firstElementChild){var B=E.querySelector(".html5-video-player");B&&(_.SbX(_.Q().resolve(_.P$)),B.focus())}else _.OG(Error("km"))})};
_.Cet=function(E){var B=!!E.rootElement.theater,I=!!E.rootElement.fullscreen,T;(T=E.watchCinematicManager)==null||Tjg(T,I,B)};
_.Xb.prototype.onAttached=function(){var E=_.d("external_fullscreen");_.d("use_unified_flag_accessor")&&(E=_.Q().resolve(_.$IO).retriever.getFlag(_.PiX));(E||_.gU("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var wqL=function(E){return E.getRoot().is==="ytd-watch-flexy"||E.getRoot().is==="ytd-watch-grid"},oK=function(E){return E.getRoot().is==="ytd-watch-fixie"},yWO=function(E){if(oK(E)||wqL(E)&&_.d("kevlar_watch_flexy_theater_manager")){var B=new NOI(E);
_.Bp(E,B)}B=new m2I(E);_.Bp(E,B);B=new nZ(E);_.Bp(E,B);B=new Csg(E);_.Bp(E,B);B=new BDd(E);_.Bp(E,B);B=new Mv(E);_.Bp(E,B);if(oK(E)||wqL(E)&&_.d("kevlar_watch_flexy_playlist_manager"))B=new IjH(E),_.Bp(E,B)};
_.Xb.prototype.initOrDisposeActiveModules=function(E){E?(this.watchScrollManager=new Wg(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new SY9(this)),this.activeModules.push(new SaO(this)),oK(this)&&this.activeModules.push(new bYs(this)),this.activeModules.push(new YDm(this)),this.activeModules.push(new Gcg(this)),(oK(this)||_.d("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new r_d(this)),this.activeModules.push(new f2d(this)),(oK(this)||
_.d("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new vc2(this)),(oK(this)||_.d("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new qt7(this)),_.d("kevlar_watch_cinematics")&&(this.watchCinematicManager=new ESd(this),this.activeModules.push(this.watchCinematicManager),_.Cet(this)),_.d("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new D2m(this)),_.d("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new PsO(this)),E=_.d("swatcheroo_directly_provide_comments")&&
this.getRoot().is==="ytd-watch-grid",_.d("kevlar_watch_flexy_comments_manager")&&!E&&this.activeModules.push(new YYs(this)),_.d("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new KdI(this)),this.activeModules.push(new o59(this)),this.activeModules.push(new Af2(this)),_.d("web_enable_timely_actions")&&this.activeModules.push(new kyt(this)),_.d("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new yq1(this)),_.d("web_watch_enable_multiview_manager")&&this.activeModules.push(new TO9(this)),
_.d("web_fullscreen_video_action_bar")&&this.activeModules.push(new j6L(this)),_.d("web_player_rtr_ctrls")&&this.activeModules.push(new wt7(this))):(_.o_(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Xb.prototype.disposeInternal=function(){_.oo.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Up.Object.defineProperties(_.Xb.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var N02;N02=function(E){switch(E){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:_.E9(E,"unknown result type")}};
_.gaI=function(E,B,I){B=_.TSc[B];I={detected:E===0,source:B.tkq,detectionResult:N02(E),contentCpn:I};_.hK("biscottiBasedDetection",I);_.kKD.increment(B.tkq,E);B.onD!==void 0&&_.MD("CATSTAT",_.$kf(E,B))};
_.W0=function(E,B){var I={};I.key=E;I.value=B;return _.HjD().then(function(T){return new Promise(function(e,c){try{var Y=T.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(I);Y.onsuccess=function(){e()};
Y.onerror=function(){c()}}catch(v){c(v)}})})};
_.Jg9=function(){var E=_.RI("user_engagement_experiments_rate_limit_ms"),B=SF1.get("last-user-engagement-exp-trigger-timestamp");return!B||(0,_.VZ)()>=B+E?(SF1.set("last-user-engagement-exp-trigger-timestamp",(0,_.VZ)()),!0):!1};
_.Xv=function(E,B,I,T,e){B=B===void 0?null:B;I=I===void 0?null:I;T=T===void 0?null:T;e=e===void 0?null:e;E={youThereEventType:E};I&&(E.lactThresholdMs=I.lactThresholdMs,E.mediaPosSec=I.promptDelaySec,E.lactServerRequestMs=I.lactServerRequestMs,E.triggerReason=I.triggerReason);e!=null&&(E.renderingMediaPosSec=Math.round(e));B||(B=_.nC());B&&(E.clientScreenNonce=B);T&&(E.clientPlaybackNonce=T);_.hK("youThere",E)};var SF1=new _.M3("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.Pl7=function(E){return _.BP({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:E})};
}catch(e){_._DumpException(e)}
try{
var xxd,GQ7,OnT,dxI,QUm,Hns;_.PeO=function(){var E=window.location.hash;E.charAt(0)==="#"&&(E=E.charAt(1)==="!"?E.substring(2):E.substring(1));return _.oI(E)};
_.zII=function(E){var B;_.a(function(I){B=["b.f_","j.s_","r.s_","e.h_"];_.d("ab_det_sc_inj")&&B.push("s.i_");_.d("ab_deg_unex_thr")||B.push("a.o_");_.d("ks_get_o_pp")||B.push("g.o_");_.d("ks_det_gpbl")||B.push("p.i_");B.push("f.i_");B.push("a.b_");B.push("p.m_");_.d("ab_det_el_h_v2")&&B.push("n.h_");B.push("o.p_");_.d("ab_det_apm")&&B.push("o.a_");B.forEach(function(T){var e;return _.a(function(c){if(c.nextAddress==1)return _.C(c,_.okl[T](),2);e=c.yieldResult;E(e,T);_.ER(c)})});
_.ER(I)})};
_.mxd=function(E,B){E={videoId:E};B&&(E.playlistId=B);return E};
_.hIL=function(){if(_.BCi()){var E=_.HA("PLAYER_VARS",{});if(_.a_.get(E,"privembed",!1)!="1"&&!_.TCJ(E)){var B=function(){QUm=!0;"google_ad_status"in window?_.MD("DCLKSTAT",1):_.MD("DCLKSTAT",2)};
try{_.Sc("//static.doubleclick.net/instream/ad_status.js",B)}catch(I){}dxI.push(_.Ll.addLowPriorityJob(function(){if(!(QUm||"google_ad_status"in window)){try{_.U0G("//static.doubleclick.net/instream/ad_status.js",B)}catch(I){}QUm=!0;_.MD("DCLKSTAT",3)}},5E3))}}};
_.sU2=function(E,B){E=E.width-_.dhm();return Math.max(_.Wq,Math.min(_.P2T,_.Wq+(E-(_.JW+_.Wq+_.gD+2*_.gD+B))))};
_.jE=function(E,B,I){I=I===void 0?!1:I;var T=Math.max(E.width,_.Zw7);if(_.d("kevlar_watch_feed_big_thumbs")&&E.width>=1550-_.zo()&&E.height>=800)T-=_.dwT;else if(E.width>=_.Sq){var e=_.JW+_.Wq+_.gD;_.d("kevlar_watch_feed_big_thumbs")&&(e=_.QE9);T-=e}else T-=_.JW;T=Math.min(T,_.zq9);e=240;I&&(e=380);B<.5624||(!_.d("kevlar_watch_flexy_disable_small_window_sizing")&&(E.height<630&&E.width>=657||E.height>=630&&E.width>=_.Sq&&E.width<1327)?e=360:!_.d("kevlar_watch_flexy_disable_large_window_sizing")&&
E.height>=630&&E.width>=1327&&(e=480));var c=Math.min(T*B,E.height-(56+_.wQs+_.mws));c=Math.max(c,e);B<1?T=c/B:E.width>=_.Sq&&(T=_.jE(E,.5625,I).width);return new _.KK(Math.round(T),Math.round(c))};
_.ufO=function(E){var B=0;E.indexOf("h")!=-1&&(E=E.split("h"),B=E[0]*60*60,E=E[1]);E.indexOf("m")!=-1&&(E=E.split("m"),B=E[0]*60+B,E=E[1]);E.indexOf("s")!=-1?(E=E.split("s"),B=E[0]*1+B):B=E*1+B;return B};
_.Lu1=function(){_.RI("service_worker_push_logged_out_prompt_watches")!=-1&&_.bk("WatchCount").then(function(E){E>=100||_.W0("WatchCount",E+1)})};
xxd=function(E){var B=E.externalVideoId||"";return B?(_.d("webfe_watch_shorts_canonical_url_fix")||_.HA("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&E.isShortsEligible?"https://www.youtube.com/shorts/"+B:"https://www.youtube.com/watch?v="+B:""};
GQ7=function(E){var B=[];E.viewCount&&B.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:E.viewCount});E.likeCount&&B.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:E.likeCount});return B};
OnT=function(E){var B,I,T={"@context":"https://schema.org","@type":"VideoObject",description:_.U3(E.description),duration:"PT"+(E.lengthSeconds||"0")+"S",embedUrl:E.embed?E.embed.iframeUrl:"",name:_.U3(E.title),thumbnailUrl:((B=E.thumbnail)==null?void 0:(I=B.thumbnails)==null?void 0:I.map(function(P){return P&&P.url||""}))||[],
uploadDate:E.publishDate};_.d("mweb_video_schema_id_killswitch")||(T["@id"]=xxd(E));B=GQ7(E);B.length&&(T.interactionStatistic=B);E.category&&(T.genre=E.category);E.ownerChannelName&&(T.author=E.ownerChannelName);E.liveBroadcastDetails&&(T.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:E.liveBroadcastDetails.startTimestamp,endDate:E.liveBroadcastDetails.endTimestamp}]);if(E.learningResource){E=E.learningResource;T["@type"]=["VideoObject","LearningResource"];var e;if((e=E.learningResourceType)==
null?0:e.length)T.learningResourceType=E.learningResourceType[0];var c;if((c=E.educationalAlignment)==null?0:c.length)T.educationalAlignment={"@type":"AlignmentObject",targetName:E.educationalAlignment[0]};var Y;if((Y=E.educationalLevel)==null?0:Y.length){e=E.educationalLevel[0];var v;if((v=E.educationalLevelCountry)==null?0:v.length)e+=" ("+E.educationalLevelCountry+")";T.educationalLevel=e}var y,Z;if(((y=E.learningResourceType)==null?0:y.length)&&E.learningResourceType[0]==="Problem walkthrough"&&
((Z=E.problemDescriptions)==null?0:Z.length))for(T.hasPart=[],v=_.p(E.problemDescriptions),y=v.next();!y.done;y=v.next())e=y.value,y=e.problemDescriptionText,Z=e.startOffset,e=e.url,y&&Z!==void 0&&e&&T.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:y,text:y,startOffset:Z,url:e})}return T};
_.ncd=function(E){return _.BP({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:E}})};
dxI=[];QUm=!1;_.MqO=["engagement-panel-ads"];Hns=new _.F("updateSentimentBarStateCommand");_.ND2=new _.F("showSurveyCommand");_.UQ=new _.F("changeMarkersVisibilityCommand");var SD2,JWI,bnI,rW2,XqI,kd;_.gcT=function(E,B){this.playerProvider_=E;this.actionSenderElement_=B;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.gcT.prototype.reset=function(){SD2(this);this.isUserPredictedAbsent_=!1};
SD2=function(E,B){!E.youThereData_||E.showWarningJob_||B!==void 0&&B||(_.Xv("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.nC(),E.youThereData_,E.clientPlaybackNonce_),_.Li());_.Ll.cancelJob(E.showWarningJob_);E.showWarningJob_=0;_.Ll.cancelJob(E.showBlockingWarningJob_);E.showBlockingWarningJob_=0;_.Ll.cancelJob(E.pausePlaybackJob_);E.pausePlaybackJob_=0;E.youThereData_=null;E.clientPlaybackNonce_=void 0;E.inYouThereFlow_=!1};
_.Wum=function(E,B){var I,T,e;_.a(function(c){if(c.nextAddress==1)return E.reset(),_.C(c,E.playerProvider_().getPlayerPromise(),2);I=c.yieldResult;E.clientPlaybackNonce_=I.getVideoData().cpn;E.youThereData_=B.configData.youThereData;if(!E.youThereData_)return c.return();if(E.youThereData_.triggerReason&&E.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.Jg9())return _.Xv("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.nC(),E.youThereData_,E.clientPlaybackNonce_),c.return();T=E.youThereData_.promptDelaySec;
e=I.getCurrentTime();E.showWarningJob_=_.Ll.addLowPriorityJob(function(){return _.a(function(Y){E.showWarningJob_=0;return _.C(Y,JWI(E),0)})},Math.max(T-e,0)*1E3);
_.ER(c)})};
JWI=function(E){var B,I,T,e,c,Y;return _.a(function(v){if(v.nextAddress==1)return _.C(v,E.playerProvider_().getPlayerPromise(),2);if(v.nextAddress!=3)return B=v.yieldResult,I=B.getCurrentTime(),_.C(v,XqI(E),3);T=v.yieldResult;if(!T||!E.youThereData_)return v.return();if(_.d("check_user_lact_at_prompt_shown_time_on_web")&&(e=parseInt(E.youThereData_.lactThresholdMs,10),_.DD()<e))return _.Xv("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.nC(),E.youThereData_,E.clientPlaybackNonce_),v.return();if(E.youThereData_.playbackPauseDelayMs<=
0)return rW2(E),v.return();!_.d("external_fullscreen")&&(c=_.KC())&&(E.ignoreFullscreenExitUserActivity_=!0,_.Ll.addLowPriorityJob(function(){E.ignoreFullscreenExitUserActivity_=!1},2E3),_.RO(c));
E.youThereData_.showToastWarningPrompt&&(kd(E,E.youThereData_.showWarningActions),E.inYouThereFlow_=!0,_.Xv("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.nC(),E.youThereData_,E.clientPlaybackNonce_,I),_.Xv("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.nC(),E.youThereData_,E.clientPlaybackNonce_,I));Y=0;E.youThereData_.blockingPromptDelayMs&&(Y=E.youThereData_.blockingPromptDelayMs);E.showBlockingWarningJob_=_.Ll.addLowPriorityJob(function(){return _.a(function(y){E.showBlockingWarningJob_=0;return _.C(y,
bnI(E),0)})},Y);
_.ER(v)})};
bnI=function(E){var B,I,T;return _.a(function(e){if(e.nextAddress==1)return _.C(e,XqI(E),2);B=e.yieldResult;if(!E.youThereData_)return e.return();B&&(E.youThereData_.showBlockingWarningAction&&(_.Xv("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.nC(),E.youThereData_,E.clientPlaybackNonce_),(I=_.h(E.youThereData_.showBlockingWarningAction,_.pO))?kd(E,I.commands):kd(E,[E.youThereData_.showBlockingWarningAction]),E.inYouThereFlow_=!0),T=E.youThereData_.playbackPauseDelayMs,E.pausePlaybackJob_=
_.Ll.addLowPriorityJob(function(){return _.a(function(c){E.pausePlaybackJob_=0;return _.C(c,rW2(E),0)})},T));
_.ER(e)})};
rW2=function(E){var B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,XqI(E),2);B=I.yieldResult;if(!E.youThereData_)return I.return();B&&(_.Xv("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.nC(),E.youThereData_,E.clientPlaybackNonce_),kd(E,E.youThereData_.showPausedActions),E.inYouThereFlow_=!0);_.ER(I)})};
_.gcT.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var E=_.h(this.youThereData_.userActiveDuringFlowAction,_.pO);E?kd(this,E.commands):kd(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Xv("YOU_THERE_EVENT_TYPE_LACT_RESET",_.nC(),this.youThereData_,this.clientPlaybackNonce_),_.Li());SD2(this,!0)}_.oct(this,!1)};
_.AW8=function(E){_.Xv("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.nC(),E.youThereData_,E.clientPlaybackNonce_)};
XqI=function(E){var B,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,E.playerProvider_().getPlayerPromise(),2);B=T.yieldResult;I=B.getPlayerState();return T.return(I==-1||I==1||I==3)})};
_.oct=function(E,B){var I;_.a(function(T){if(T.nextAddress==1){if(E.isUserPredictedAbsent_==B)return T.jumpTo(0);E.isUserPredictedAbsent_=B;return _.C(T,E.playerProvider_().getPlayerPromise(),3)}I=T.yieldResult;I.setUserEngagement(B);B&&_.Xv("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.nC(),E.youThereData_,E.clientPlaybackNonce_);_.ER(T)})};
kd=function(E,B){if(_.d("handle_service_request_actions")||_.d("kevlar_youthere_service_endpoint_actions_killswitch"))_.cN(E.actionSenderElement_,B,E.actionSenderElement_);else{B=_.p(B);for(var I=B.next();!I.done;I=B.next())I=I.value,I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.sendPost?_.l1(E.actionSenderElement_,[I]):_.cN(E.actionSenderElement_,[I],E.actionSenderElement_)}};var jUt;var Uxd;var tO=function(){var E=_.r.apply(this,arguments)||this;E.systemIcons=_.d("kevlar_system_icons");E.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return E};
_.L(tO,_.r);tO.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var E=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(E=this.data.percentIfLiked||0,this.activated=!0):(E=this.data.percentIfIndifferent||0,this.activated=!1);_.n(this.hostElement).querySelector("#like-bar").style.width=E+"%"}};
tO.prototype.handleUpdateSentimentBarStateCommand=function(E){this.data&&this.set("data.likeStatus",_.h(E,Hns).likeStatus)};
tO.prototype.observeLikeStatus=tO.prototype.observeLikeStatus;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],tO.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],tO.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],tO.prototype,"activated",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],tO.prototype,"systemIcons",void 0);_.k([_.EM("data.likeStatus"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],tO.prototype,"observeLikeStatus",null);tO=_.k([_.b({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],tO);
_.A(tO,"ytd-sentiment-bar-renderer",function(){if(Uxd!==void 0)return Uxd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Uxd=E},{mode:1});var kQ9;var fZ=function(){var E=_.r.apply(this,arguments)||this;E.small=!0;return E};
_.L(fZ,_.r);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],fZ.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],fZ.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],fZ.prototype,"small",void 0);fZ=_.k([_.b({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],fZ);
_.A(fZ,"ytd-video-view-count-renderer",function(){if(kQ9!==void 0)return kQ9;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return kQ9=E},{mode:_.qi("kevlar_poly_si_batch_j080")?1:2});var VR=function(){var E=_.r.apply(this,arguments)||this;E.infoFormattedStrings=[];E.wrapVideoActions=_.d("kevar_watch_wrap_video_actions");E.hideSentimentBar=_.d("kevlar_watch_hide_sentiment_bar");E.actionMap={};return E};
_.L(VR,_.r);_.l=VR.prototype;_.l.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.d("web_modern_buttons"),forceIconButton:!_.d("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.l.dataChanged=function(){_.d("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.l.computeInfoFormattedStrings=function(E){if(!E)return[];var B=[];E.dateText&&B.push(E.dateText);E.stationName&&B.push(E.stationName);E.rating&&B.push(E.rating);E.startEndTimeTemplate&&E.startTimeUtcMillis&&E.endTimeUtcMillis&&B.push(_.jj(_.gXt(_.U3(E.startEndTimeTemplate),Number(E.startTimeUtcMillis),Number(E.endTimeUtcMillis))));E.upNextProgramText&&B.push(E.upNextProgramText);return B};
_.l.scheduleInitialUpdatedMetadataRequest=function(){var E,B=(E=this.data)==null?void 0:E.updatedMetadataEndpoint;if(B){var I;E=Number((I=_.h(B,_.I3r))==null?void 0:I.initialDelayMs);I=isNaN(E)?250:E;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),I)}};
_.l.setSentimentBarWidth=function(){var E=this;_.AJ(this,function(){var B=_.n(E.hostElement).querySelector("ytd-menu-renderer");if(B){B=B.topLevelButtons;for(var I=0,T=0;T<B.length;T++){var e=B[T],c=E.get("toggleButtonSupportedData.toggleButtonIdData.id",e.data);if(c==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||c==="TOGGLE_BUTTON_ID_TYPE_LIKE")I+=e.clientWidth+8;else break}I&&(E.sentiment.style.width=I-8+" px")}})};
_.l.fetchUpdatedMetadata=function(E){var B;E&&(B={continuation:E});var I;(E=(I=this.data)==null?void 0:I.updatedMetadataEndpoint)&&_.Q().resolve(_.Dt).resolveCommand(E,{form:Object.assign({},B,{element:this.hostElement})})};
_.l.onYtServiceRequestSent=function(E,B){B.endpoint&&_.h(B.endpoint,_.AC)&&(this.hasUpdateSentimentBarStateCommands()&&!_.d("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.h(B.endpoint,_.AC).status),this.setSentimentBarWidth())};
_.l.hasUpdateSentimentBarStateCommands=function(){var E,B,I,T,e=(T=(E=this.data)==null?void 0:(B=E.videoActions)==null?void 0:(I=B.menuRenderer)==null?void 0:I.topLevelButtons)!=null?T:[];E=_.p(e);for(B=E.next();!B.done;B=E.next()){B=B.value;e=T=I=void 0;var c=(I=B.toggleButtonRenderer)==null?void 0:(T=I.toggleButtonSupportedData)==null?void 0:(e=T.toggleButtonIdData)==null?void 0:e.id;if(c==="TOGGLE_BUTTON_ID_TYPE_LIKE"||c==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){T=I=void 0;B=(T=_.h((I=B.toggleButtonRenderer)==
null?void 0:I.defaultServiceEndpoint,_.pO))==null?void 0:T.commands;if(!B)break;B=_.p(B);for(I=B.next();!I.done;I=B.next())if(_.h(I.value,Hns))return!0}}return!1};
_.l.onYtServiceRequestCompleted=function(E,B){var I;(E=(I=B.data)==null?void 0:I.loggingDirectives)&&_.lzf(_.lu(),E);this.get("continuation.timedContinuationData",B.data)&&this.data&&this.data.updatedMetadataEndpoint&&(B=B.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,B.continuation),B.timeoutMs))};
_.l.computeHasDateText=function(E){return!!E&&!!E.dateText};
_.Up.Object.defineProperties(VR.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T;return!((T=(E=this.data)==null?void 0:(B=E.videoActions)==null?void 0:(I=B.menuRenderer)==null?void 0:I.flexibleItems)==null||!T.length)}}});
VR.prototype.onYtServiceRequestCompleted=VR.prototype.onYtServiceRequestCompleted;VR.prototype.onYtServiceRequestSent=VR.prototype.onYtServiceRequestSent;VR.prototype.dataChanged=VR.prototype.dataChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],VR.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.oy.YtTaskEmitterBehavior),_.t("design:type",Object)],VR.prototype,"ytTaskEmitterBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],VR.prototype,"data",void 0);_.k([_.X({computed:"computeInfoFormattedStrings(data)"}),_.t("design:type",Array)],VR.prototype,"infoFormattedStrings",void 0);
_.k([_.X({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],VR.prototype,"hasDateText",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],VR.prototype,"wrapVideoActions",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],VR.prototype,"hideSentimentBar",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],VR.prototype,"flexMenuEnabled",null);
_.k([_.$7("#sentiment"),_.t("design:type",Object)],VR.prototype,"sentiment",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],VR.prototype,"dataChanged",null);_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],VR.prototype,"onYtServiceRequestSent",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],VR.prototype,"onYtServiceRequestCompleted",null);
_.A(VR,"ytd-video-primary-info-renderer",function(){if(jUt===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);jUt=E}E=jUt;return E},{mode:1});var tqT;var qv=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return E};
_.L(qv,_.r);_.l=qv.prototype;_.l.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"}}}};
_.l.dataChanged=function(){var E;this.descriptionToggled=!((E=this.data)==null||!E.defaultExpanded);var B;this.collapsed=this.descriptionAlwaysCollapsed||!((B=this.data)==null?0:B.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.wA(110509);this.showLessClientVe=_.wA(110510);E=_.nC();B=_.Oi();E&&B&&_.r3(E,B,[this.showMoreClientVe,this.showLessClientVe])};
_.l.onYtExpanderMoreTapped=function(){var E,B=(E=this.data)==null?void 0:E.showMoreCommand;B&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(B);(E=_.nC())&&this.showMoreClientVe&&_.Al(E,this.showMoreClientVe)};
_.l.onYtExpanderLessTapped=function(){var E=_.nC();E&&this.showLessClientVe&&_.Al(E,this.showLessClientVe);var B;(E=(B=this.data)==null?void 0:B.showLessCommand)&&this.componentBehavior.resolveCommand(E)};
_.l.handleUpdateDateTextAction=function(E){this.data&&this.data.dateText&&this.set("data.dateText",_.h(E,_.pQd).dateText)};
_.l.handleUpdateDescriptionAction=function(E){if(E=_.h(E,_.ror))E.isEmpty||!E.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.zA(E.description)):this.set("data.description",E.description)};
_.l.onYtChangeEngagementPanelVisibilityAction=function(E){if(_.d("web_structured_description_show_more")||_.d("web_engagement_panel_open_description")){var B,I=(B=_.h(E,_.rw$))==null?void 0:B.targetId,T;E=((T=_.h(E,_.rw$))==null?void 0:T.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";I==="engagement-panel-structured-description"&&E&&(this.descriptionToggled=!0)}};
_.l.updateCollapsedFromBinding=function(E){this.collapsed=E.detail.value};
_.l.updateDescriptionToggledFromBinding=function(E){this.descriptionToggled=E.detail.value};
_.l.updateCanCollapseFromBinding=function(E){this.canCollapse=E.detail.value};
_.Up.Object.defineProperties(qv.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var E,B,I=(E=this.data)==null?void 0:(B=E.metadataRowContainer)==null?void 0:B.metadataRowContainerRenderer;return!!I&&!!I.rows&&I.rows.length>I.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.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}}});
qv.prototype.onYtExpanderLessTapped=qv.prototype.onYtExpanderLessTapped;qv.prototype.onYtExpanderMoreTapped=qv.prototype.onYtExpanderMoreTapped;qv.prototype.dataChanged=qv.prototype.dataChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],qv.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],qv.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],qv.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],qv.prototype,"collapsed",void 0);_.k([_.X(),_.t("design:type",Boolean)],qv.prototype,"descriptionToggled",void 0);
_.k([_.X(),_.t("design:type",Boolean)],qv.prototype,"canCollapse",void 0);_.k([_.X(),_.t("design:type",Object)],qv.prototype,"subscribeButtonData",void 0);_.k([_.X(),_.t("design:type",Number)],qv.prototype,"descriptionCollapsedHeight",void 0);_.k([_.X(),_.t("design:type",Object)],qv.prototype,"structuredDescriptionContentRenderer",void 0);_.k([_.X({value:function(){return _.d("web_watch_description_always_collapsed")}}),
_.t("design:type",Boolean)],qv.prototype,"descriptionAlwaysCollapsed",void 0);_.k([_.$7("#description"),_.t("design:type",HTMLDivElement)],qv.prototype,"description",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qv.prototype,"dataChanged",null);_.k([_.RN("yt-expander-more-tapped"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qv.prototype,"onYtExpanderMoreTapped",null);
_.k([_.RN("yt-expander-less-tapped"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qv.prototype,"onYtExpanderLessTapped",null);_.k([_.S("data.metadataRowContainer"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],qv.prototype,"metadataCollapsible",null);_.k([_.S("data","structuredDescriptionContentRenderer"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],qv.prototype,"hasInlineStructuredDescription",null);
_.k([_.S("data.attributedDescription"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],qv.prototype,"hasAttributedDescription",null);_.k([_.S("hasInlineStructuredDescription","collapsed"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],qv.prototype,"loadStructuredDescription",null);_.k([_.S("data","structuredDescriptionContentRenderer","collapsed"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],qv.prototype,"showInlineStructuredDescription",null);
_.k([_.S("data","hasInlineStructuredDescription","metadataCollapsible"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],qv.prototype,"descriptionAlwaysCollapsible",null);
_.A(qv,"ytd-video-secondary-info-renderer",function(){if(tqT===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);tqT=E}E=tqT;return E},{mode:2});var fj8;var Fb=function(){return _.r.apply(this,arguments)||this};
_.L(Fb,_.r);Fb.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:_.d("web_modern_buttons"),forceIconButton:!_.d("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Fb.prototype.activate=function(E){E.appendTo(this.player);E.getPlayerPromise().then(function(B){B.setMinimized(!0)});
this.active=!0};
Fb.prototype.deactivate=function(){var E=this.player.firstElementChild;E.getPlayerPromise().then(function(B){B.setMinimized(!1)});
this.active=!1;return E};
Fb.prototype.onScrollUpTap=function(){var E=_.Q().resolve(_.oS).getCurrentPage();E&&E.setScrollTop(0)};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Fb.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Fb.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Fb.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Fb.prototype,"active",void 0);
_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.t("design:type",Boolean)],Fb.prototype,"darkLaunch",void 0);_.k([_.$7("#player"),_.t("design:type",HTMLDivElement)],Fb.prototype,"player",void 0);Fb=_.k([_.b({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Fb);
_.A(Fb,"ytd-miniplayer-bar-renderer",function(){if(fj8!==void 0)return fj8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return fj8=E},{mode:1});_.oQ(_.rp(function(E){var B=_.oH();_.m$(function(){var I;if(I=JSON)I=OnT(E.data()),I=_.xM(JSON.stringify(I).replace(/</g,"\\u003C"));var T=E.data(),e=_.U3(T.title).trim().length===0,c=!T.publishDate||T.publishDate.trim().length===0,Y,v,y,Z,P=!((Y=T.thumbnail)==null?0:(v=Y.thumbnails)==null?0:v.length)||!((y=T.thumbnail)==null?0:y.thumbnails[0].url)||((Z=T.thumbnail)==null?void 0:Z.thumbnails[0].url.trim().length)===0;B.value&&I&&!(e||c||P)&&_.Of(B.value,I)});
return _.w("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.w("script",{el:B,type:"application/ld+json"}))},"Vi"),"player-microformat-renderer",{props:{data:_.bu}});
}catch(e){_._DumpException(e)}
try{
var xjd,mI,Gdm,OPI,MQ9,HP7,ntI,N3g;xjd=function(){var E=_.za();E.info||(E.info={});return E.info};
mI=function(E){return Math.round(_.Qu()+E)};
Gdm=function(){var E;if(_.d("csi_use_performance_navigation_timing")||_.d("csi_use_performance_navigation_timing_tvhtml5")){var B,I,T,e=_.mr==null?void 0:(E=_.mr.getEntriesByType)==null?void 0:(B=E.call(_.mr,"navigation"))==null?void 0:(I=B[0])==null?void 0:(T=I.toJSON)==null?void 0:T.call(I);e?(e.requestStart=mI(e.requestStart),e.responseEnd=mI(e.responseEnd),e.redirectStart=mI(e.redirectStart),e.redirectEnd=mI(e.redirectEnd),e.domainLookupEnd=mI(e.domainLookupEnd),e.connectStart=mI(e.connectStart),
e.connectEnd=mI(e.connectEnd),e.responseStart=mI(e.responseStart),e.secureConnectionStart=mI(e.secureConnectionStart),e.domainLookupStart=mI(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,E=e):E=_.mr.timing}else E=_.d("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.mr.timing)):_.mr.timing;return E};
OPI=function(){if(_.mr.getEntriesByType){var E=_.mr.getEntriesByType("paint");if(E=_.Sd(E,function(I){return I.name==="first-paint"}))return mI(E.startTime)}var B;
_.d("csi_use_performance_navigation_timing")||_.d("csi_use_performance_navigation_timing_tvhtml5")?B=_.mr.getEntriesByType("first-paint")[0].startTime:B=_.mr.timing.msFirstPaint;return B?Math.max(0,B):0};
MQ9=function(){var E=window.location.protocol,B=_.mr.getEntriesByType("resource");B=_.ei(B,function(I){return I.name.indexOf(E+"//fonts.gstatic.com/s/")===0});
(B=ntI(B,function(I,T){return T.duration>I.duration?T:I}))&&B.startTime>0&&B.responseEnd>0&&(_.dY("wffs",mI(B.startTime)),_.dY("wffe",mI(B.responseEnd)))};
HP7=function(E,B){E=document.querySelector(E);if(!E)return!1;var I="",T=E.nodeName;T==="SCRIPT"?(I=E.src,I||(I=E.getAttribute("data-timing-href"))&&(I=window.location.protocol+I)):T==="LINK"&&(I=E.href);_.uv(document)&&E.setAttribute("nonce",_.uv(document));return I?(E=_.mr.getEntriesByName(I))&&E[0]&&(E=E[0],I=_.Qu(),_.dY("rsf_"+B,I+Math.round(E.fetchStart)),_.dY("rse_"+B,I+Math.round(E.responseEnd)),E.transferSize!==void 0&&E.transferSize===0)?!0:!1:!1};
_.Qg=function(E,B){_.JA(function(){_.Szt("").info.actionType=E;B&&_.MD("TIMING_AFT_KEYS",B);_.MD("TIMING_ACTION",E);var I=_.D6c(_.HA("TIMING_INFO",{}));Object.keys(I).length>0&&_.hl(I);I={isNavigation:!0,actionType:_.Xdi(_.HA("TIMING_ACTION"))};var T=_.HA("PREVIOUS_ACTION");T&&(I.previousAction=_.Xdi(T));if(T=_.HA("CLIENT_PROTOCOL"))I.httpProtocol=T;if(T=_.HA("CLIENT_TRANSPORT"))I.transportProtocol=T;(T=_.nC())&&T!=="UNDEFINED_CSN"&&(I.clientScreenNonce=T);T=_.FU6();if(T===1||T===-1)I.isVisible=!0;
T=_.Gji().loadType==="cold";var e=xjd();T||(T=e.yt_lt==="cold");if(T){I.loadType="cold";T=xjd();e=Gdm();var c=_.Qu(),Y=_.HA("CSI_START_TIMESTAMP_MILLIS",0);Y>0&&!_.d("embeds_web_enable_csi_start_override_killswitch")&&(c=Y);c&&(_.dY("srt",e.responseStart),T.prerender!==1&&_.jw6(c));T=OPI();T>0&&_.dY("fpt",T);T=Gdm();T.isPerformanceNavigationTiming&&_.hl({performanceNavigationTiming:!0},void 0);_.dY("nreqs",T.requestStart,void 0);_.dY("nress",T.responseStart,void 0);_.dY("nrese",T.responseEnd,void 0);
T.redirectEnd-T.redirectStart>0&&(_.dY("nrs",T.redirectStart,void 0),_.dY("nre",T.redirectEnd,void 0));T.domainLookupEnd-T.domainLookupStart>0&&(_.dY("ndnss",T.domainLookupStart,void 0),_.dY("ndnse",T.domainLookupEnd,void 0));T.connectEnd-T.connectStart>0&&(_.dY("ntcps",T.connectStart,void 0),_.dY("ntcpe",T.connectEnd,void 0));T.secureConnectionStart>=_.Qu()&&T.connectEnd-T.secureConnectionStart>0&&(_.dY("nstcps",T.secureConnectionStart,void 0),_.dY("ntcpe",T.connectEnd,void 0));_.mr&&"getEntriesByType"in
_.mr&&MQ9();T=[];if(document.querySelector&&_.mr&&_.mr.getEntriesByName)for(var v in N3g)N3g.hasOwnProperty(v)&&(e=N3g[v],HP7(v,e)&&T.push(e));if(T.length>0)for(I.resourceInfo=[],v=_.p(T),T=v.next();!T.done;T=v.next())I.resourceInfo.push({resourceCache:T.value})}_.hl(I);I=_.neQ();I.preLoggedGelInfos||(I.preLoggedGelInfos=[]);v=I.preLoggedGelInfos;I=_.MMJ();T=void 0;for(e=0;e<v.length;e++)if(c=v[e],c.loadType){T=c.loadType;break}if(_.Gji().loadType==="cold"&&(I.loadType==="cold"||T==="cold")){T=_.O0D();
e=_.neQ();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var y in T)if(!(y in e))if(typeof T[y]==="number")_.dY(y,_.sK(y));else if(_.d("log_repeated_ytcsi_ticks"))for(c=_.p(T[y]),Y=c.next();!Y.done;Y=c.next())Y=Y.value,_.dY(y.slice(1),Y);y={};T=!1;v=_.p(v);for(e=v.next();!e.done;e=v.next())T=e.value,_.u6Q(I,T),_.u6Q(y,T),T=!0;T&&_.hl(y)}_.RoQ(!0);y=_.HA("TIMING_ACTION");_.WA("ytglobal.timingready_")&&y&&_.pkF()&&_.KUB()&&_.VMc()})()};
ntI=function(E,B){return Array.prototype.reduce.call(E,B,{duration:0})};
N3g={'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 gtd={};gtd.YtVisibilityRootBehavior=[_.SND.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.bl(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.HA("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var E=_.HA("INNERTUBE_CLIENT_NAME")!=="WEB";_.d("kevlar_use_vimio_behavior")&&E&&_.r6Z()}}];_.dO={};_.dO.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(E){E.detail.contextProvider=this;E.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
gtd.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.gA();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(E){var B=this;this.pageCount+=1;_.d("kevlar_use_vimio_behavior")&&(_.HA("INNERTUBE_CLIENT_NAME")==="WEB"?_.Ll.addJob(function(){B.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(E)},
loadPage_:function(E){this.data=E},
ytPageBehaviorActiveObserver_:function(E){var B=this;_.d("kevlar_use_vimio_behavior")&&(E?_.HA("INNERTUBE_CLIENT_NAME")==="WEB"?_.Ll.addJob(function(){B.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(E){if(!this.setScrollTopJobId_){var B=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){B.setScrollTopJobId_=0;var I=_.Q().resolve(_.Fx(_.P$));I&&_.SbX(I);this.getPageScrollingElement().scrollTop=E}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.ss(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var Lb9;var zy=function(){var E=_.r.apply(this,arguments)||this;E.playerListenerConfig=null;E.actionMap={"yt-show-watch-page-survey":"openSurvey"};return E};
_.L(zy,_.r);_.l=zy.prototype;_.l.dataChanged=function(){var E=this,B=_.jx();B&&B.getPlayerPromise().then(function(T){E.maybeRemovePlayerListeners(T)});
var I=this.data&&this.data.survey;I&&((I=(I=I.singleOptionSurveyRenderer||I.checkboxSurveyRenderer||I.multiStageSurveyRenderer)&&I.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(B,I):this.openSurvey())};
_.l.triggerWatchPageSurvey=function(E,B){var I=this,T,e,c,Y,v,y,Z,P,z;return _.a(function(m){if(m.nextAddress==1)return E?_.C(m,E.getPlayerPromise(),2):m.return();I.player=m.yieldResult;if(!I.player)return m.return();T={};e=_.p(B);for(c=e.next();!c.done;c=e.next())Y=c.value,v=_.p(I.createEventListenerPair(Y)),y=v.next().value,Z=v.next().value,P=y,z=Z,P&&z&&(T[P]=z,I.ytPlayerListenerBehavior.listenToPlayerEvent(I.player,P,z));I.playerListenerConfig=T;_.ER(m)})};
_.l.createEventListenerPair=function(E){var B=E.playbackEventTrigger;return B?this.handlePlaybackTrigger(B):(E=E.watchTimeTrigger)?this.handleWatchTimeTrigger(E):[void 0,void 0]};
_.l.handleWatchTimeTrigger=function(E){var B=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var I=E.videoWatchFraction,T=E.watchTimeSec;return T&&I?["onVideoProgress",function(){B.player&&B.isWatchTimeConditionMet(B.player,I,T)&&B.showSurvey()}]:[void 0,
void 0]};
_.l.isWatchTimeConditionMet=function(E,B,I){var T=E.getProgressState(),e=T.current-this.lastKnownPlaybackPosition;e<5&&(this.accumulatedMediaTime+=e);this.lastKnownPlaybackPosition=T.current;T=Math.round(this.accumulatedMediaTime/T.duration*1E3)/1E3;return E.getPresentingPlayerType&&E.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>I||T>B)};
_.l.handlePlaybackTrigger=function(E){var B=this;E=E.playbackEvent;if(E==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var I="onStateChange";var T=function(e){e===0&&B.showSurvey()}}else E==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(I="onVideoProgress",T=function(e){B.player&&B.player.getPresentingPlayerType&&B.player.getPresentingPlayerType()===1&&e&&B.showSurvey()}):E==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(I="onAdEnd",T=this.showSurvey);
return[I,T]};
_.l.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.l.openSurvey=function(){var E=this,B=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.Pl7(!!B));_.Ll.addJob(function(){E.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:B}})},0,0)};
_.l.maybeRemovePlayerListeners=function(E){if(this.playerListenerConfig){for(var B=_.p(Object.keys(this.playerListenerConfig)),I=B.next();!I.done;I=B.next())I=I.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(E,I,this.playerListenerConfig[I]);this.playerListenerConfig=null}};
zy.prototype.dataChanged=zy.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.X_),_.t("design:type",Object)],zy.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",_.XK)],zy.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],zy.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(_.Lz),_.t("design:type",Object)],zy.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],zy.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],zy.prototype,"playerListenerConfig",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],zy.prototype,"lastKnownPlaybackPosition",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],zy.prototype,"accumulatedMediaTime",void 0);_.k([_.X(),_.t("design:type",Object)],zy.prototype,"player",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],zy.prototype,"dataChanged",null);zy=_.k([_.b({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],zy);
_.A(zy,"ytd-survey-trigger-renderer",function(){if(Lb9!==void 0)return Lb9;var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Lb9=E},{mode:1});
}catch(e){_._DumpException(e)}
try{
var ZA8=new _.F("promotedSparklesWebRenderer");var P$g=new _.F("relatedChipCommand");var zcO;var m5d;var yy=function(){return _.r.apply(this,arguments)||this};
_.L(yy,_.r);yy.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],yy.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],yy.prototype,"data",void 0);yy=_.k([_.b({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],yy);
_.A(yy,"ytd-compact-tvfilm-entry-point-renderer",function(){if(m5d!==void 0)return m5d;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return m5d=E},{mode:1});var QX2;var d59;var hc7;var Cn=function(){return _.r.apply(this,arguments)||this};
_.L(Cn,_.r);Cn.prototype.ready=function(){this.initializeDefs()};
Cn.prototype.initializeDefs=function(){var E=this.meta.byKey("yt-icons"),B=_.n(E).querySelector("#star"),I=_.n(E).querySelector("#star_half");E=_.n(E).querySelector("#star_border");B&&this.defs.appendChild(B.cloneNode(!0));I&&this.defs.appendChild(I.cloneNode(!0));E&&this.defs.appendChild(E.cloneNode(!0))};
Cn.prototype.percentChanged=function(){for(var E=this.rating;E.firstChild;)E.removeChild(E.firstChild);var B=Math.round(this.percent/10);E=Math.floor(B/2);B%=2;var I=5-E-B;this.appendStars("star",E,0);this.appendStars("star_half",B,E);this.appendStars("star_border",I,E+B)};
Cn.prototype.appendStars=function(E,B,I){for(var T=0;T<B;T++){var e=(18+this.spacing)*(T+I),c=document.createElementNS("http://www.w3.org/2000/svg","use");_.zfH(c,"#"+E);c.setAttribute("x",""+e);c.setAttribute("y","0");this.rating.appendChild(c)}};
Cn.prototype.percentChanged=Cn.prototype.percentChanged;_.k([_.$7("#defs"),_.t("design:type",HTMLElement)],Cn.prototype,"defs",void 0);_.k([_.$7("#rating"),_.t("design:type",HTMLElement)],Cn.prototype,"rating",void 0);_.k([_.X(),_.t("design:type",Number)],Cn.prototype,"percent",void 0);_.k([_.X({value:6}),_.t("design:type",Number)],Cn.prototype,"spacing",void 0);_.k([_.X({value:_.mA.create("iron-meta",{type:"iconset"})}),_.t("design:type",_.uo)],Cn.prototype,"meta",void 0);
_.k([_.EM("percent"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Cn.prototype,"percentChanged",null);Cn=_.k([_.b({disableElementRegistration:!0,is:"ytd-ratings"})],Cn);
_.A(Cn,"ytd-ratings",function(){if(hc7!==void 0)return hc7;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return hc7=E},{mode:1});var wD=function(){return _.r.apply(this,arguments)||this};
_.L(wD,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],wD.prototype,"data",void 0);wD=_.k([_.b({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],wD);
_.A(wD,"ytd-offer-review-renderer",function(){if(d59!==void 0)return d59;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return d59=E},{mode:1});var Zj=function(){var E=_.r.apply(this,arguments)||this;E.badges=[{textBadge:{label:_.jj("CC")}}];return E};
_.L(Zj,_.r);_.l=Zj.prototype;_.l.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.l.dataChanged=function(){var E=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(E&&E.commandMetadata&&_.h(E.commandMetadata,_.LU)&&_.h(E.commandMetadata,_.LU).fireAutomatically)_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}});else{var B;E&&((B=_.h(E,_.LU))==null?0:B.fireAutomatically)&&_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}})}};
_.l.isEmptyContent=function(E){return this.isStorefrontEntryPointEmpty(E)&&this.shouldHideOfferModule(E)};
_.l.isStorefrontEntryPointEmpty=function(E){return!E||!E.storefrontEntryPoint};
_.l.shouldHideOfferModule=function(E){return!!E.hideVideoDetails};
_.l.isOfferModuleNavigationInactive=function(E){return!E.navigationEndpoint&&!E.serviceEndpoint};
_.l.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.Q().resolve(_.Dt).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Zj.prototype.dataChanged=Zj.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Zj.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.t("design:type",Boolean)],Zj.prototype,"hidden",void 0);
_.k([_.X(),_.t("design:type",Object)],Zj.prototype,"badges",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Zj.prototype,"dataChanged",null);Zj=_.k([_.b({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Zj);
_.A(Zj,"ytd-movie-offer-module-renderer",function(){if(QX2!==void 0)return QX2;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return QX2=E},{mode:1});var sX9;var Pq=function(){return _.r.apply(this,arguments)||this};
_.L(Pq,_.r);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Pq.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Pq.prototype,"data",void 0);Pq=_.k([_.b({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Pq);
_.A(Pq,"ytd-media-masthead-renderer",function(){if(sX9!==void 0)return sX9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return sX9=E},{mode:1});var uat;_.oQ(_.by6,"course-metadata-view-model",{props:{data:_.bu,isOverlay:_.bu}});var zQ=function(){var E=_.r.apply(this,arguments)||this;E.isMetadataVisible=!1;E.modernPanels=_.d("kevlar_watch_modern_panels");E.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return E};
_.L(zQ,_.r);_.l=zQ.prototype;
_.l.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"}}}}};
_.l.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.l.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.l.expanderChanged=function(){var E;if((E=this.data)==null?0:E.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.l.isExpandButtonToggled=function(){var E,B;return(B=_.h((E=this.data)==null?void 0:E.expandMetadataButton,_.uO))==null?void 0:B.isToggled};
_.l.onVisibilityButtonClick=function(){var E;if((E=this.data)==null?0:E.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.l.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
zQ.prototype.expanderChanged=zQ.prototype.expanderChanged;zQ.prototype.dataChanged=zQ.prototype.dataChanged;zQ.prototype.descriptionChanged=zQ.prototype.descriptionChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g([_.th.YtActionHandlerBehavior]),_.t("design:type",Object)],zQ.prototype,"actionHandlerBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],zQ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],zQ.prototype,"isMetadataVisible",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zQ.prototype,"modernPanels",void 0);_.k([_.$7("#expander"),_.t("design:type",Object)],zQ.prototype,"expander",void 0);_.k([_.EM("data.description"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],zQ.prototype,"descriptionChanged",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],zQ.prototype,"dataChanged",null);_.k([_.EM("isMetadataVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],zQ.prototype,"expanderChanged",null);zQ=_.k([_.b({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],zQ);
_.A(zQ,"ytd-tvfilm-offer-module-renderer",function(){if(uat!==void 0)return uat;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return uat=E},{mode:2});var LLI;var mu=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return E};
_.L(mu,_.r);mu.prototype.dataChanged=function(){this.hostElement.hidden=!1};
mu.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
mu.prototype.onThumbnailTap=function(E){this.data&&this.data.serviceEndpoint&&(_.Q().resolve(_.Dt).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),E.stopPropagation())};
mu.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
mu.prototype.dataChanged=mu.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],mu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],mu.prototype,"rendererBehaviors",void 0);_.k([_.g([_.th.YtActionHandlerBehavior]),_.t("design:type",Object)],mu.prototype,"actionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],mu.prototype,"data",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],mu.prototype,"dataChanged",null);mu=_.k([_.b({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],mu);
_.A(mu,"ytd-unlimited-offer-module-renderer",function(){if(LLI!==void 0)return LLI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return LLI=E},{mode:1});var x5s;var G$d;var Qy=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return E};
_.L(Qy,_.r);Qy.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Qy.prototype.handleRelatedChipCommand=function(E){E=_.h(E,P$g);var B=E.contents;B?_.Ta(this.hostElement,"yt-item-section-replace-action",[B,E.targetSectionIdentifier]):_.Ta(this.hostElement,"yt-item-section-continuation-action",[E.continuationData,E.targetSectionIdentifier])};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Qy.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Qy.prototype,"actionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Qy.prototype,"data",void 0);Qy=_.k([_.QE({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Qy);
_.A(Qy,"yt-related-chip-cloud-renderer",function(){if(G$d===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;x5s===void 0&&(x5s=document.createElement("template"));var T=x5s;I.call(B,T.content.cloneNode(!0),E.content.firstChild);G$d=E}E=G$d;return E},{mode:2});var dD=function(){var E=_.r.apply(this,arguments)||this;E.isTwoColumns=!0;E.hideOfferModules=!1;E.watchFeedBigThumbs=_.d("kevlar_watch_feed_big_thumbs");E.watchNextGridHideChips=_.d("kevlar_watch_grid_hide_chips");E.eligibleToSwitchToGrid=_.d("web_watch_eligible_to_switch_to_grid");E.disableShortsShelfHeightOverride=_.d("web_shorts_wn_shelf_ratio_tuning");E.isWatchNextGrid=!1;E.reuseComponents=!_.d("kevlar_watch_grid");E.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return E};
_.L(dD,_.r);_.l=dD.prototype;
_.l.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.d("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}}};
_.l.getItemsPath=function(){return"data.results"};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.l.created=function(){this.ytLazyListBehavior.initialCount=1};
_.l.ready=function(){_.Dk(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%"})};
_.l.resultsChanged=function(){if(this.data&&this.data.results){for(var E=this.data.results,B=null,I=null,T=0;T<E.length;T++)E[T].relatedChipCloudRenderer?B=E[T].relatedChipCloudRenderer:E[T].itemSectionRenderer&&(I=E[T].itemSectionRenderer);if(B&&I)for(this.set("data.continuations",[]),E=_.h(B.content,_.LGX).chips,B=0;B<E.length;B++)if(T=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",E[B]),T.loadCached||!T.contents){T.contents=I.contents;break}}};
_.l.dataChanged=function(){var E=this,B;if((B=this.data)!=null&&B.results&&this.hasAllowedInstreamAd(this.playerData)){if(B=this.data.results.filter(function(v){return!!v.promotedSparklesWebRenderer})){for(var I=0;I<B.length;I++){var T=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",B[I]);
if(T)for(var e=0;e<T.length;e++)T[e]&&T[e].baseUrl&&_.JI(T[e].baseUrl)}this.set("data.results",this.data.results.filter(function(v){return!v.promotedSparklesWebRenderer}))}if(B=this.data.results.filter(function(v){return!!E.getSparklesAd(v)})){B=_.p(B);
for(e=B.next();!e.done;e=B.next())if(T=I=void 0,e=(I=this.getSparklesAd(e.value))==null?void 0:(T=I.errorCommand)==null?void 0:T.loggingUrls)for(I=_.p(e),T=I.next();!T.done;T=I.next())(T=T.value)&&T.baseUrl&&_.JI(T.baseUrl);var c,Y;this.set("data.results",(c=this.data)==null?void 0:(Y=c.results)==null?void 0:Y.filter(function(v){return!v.adSlotRenderer}))}}};
_.l.getSparklesAd=function(E){var B,I;E=_.h((B=E.adSlotRenderer)==null?void 0:(I=B.fulfillmentContent)==null?void 0:I.fulfilledLayout,_.fcV);return _.h(E==null?void 0:E.renderingContent,ZA8)};
_.l.hasAllowedInstreamAd=function(E){E=this.get("adPlacements",E)||[];for(var B=0;B<E.length;B++){var I=this.get("adPlacementRenderer.config.adPlacementConfig",E[B]);if(I&&I.suppressDisplayAd)return!0}return!1};
_.l.computeHideUnlimitedOfferModule=function(E,B){return E&&E.offerModule&&B&&E.offerModule.unlimitedOfferModuleRenderer&&E.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(B)?!0:!1};
_.l.hideUnlimitedOfferModuleChanged=function(){var E=_.n(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");E&&(E.hidden=this.hideUnlimitedOfferModule)};
_.l.updateLockupContainerTypes=function(E){if(this.eligibleToSwitchToGrid){var B;(B=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||B.forEach(function(I){I.containerType=E})}};
_.l.computeHideTvfilmOfferModule=function(E,B){var I,T;return!!((E==null?0:(I=E.offerModule)==null?0:(T=I.tvfilmOfferModuleRenderer)==null?0:T.clientShouldSuppressIfCompanionAdDisplayed)&&B&&this.hasCompanionAds(B))};
_.l.hideTvfilmOfferModuleChanged=function(){var E=_.n(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");E&&(E.hidden=this.hideTvfilmOfferModule)};
_.l.hasCompanionAds=function(E){E=this.get("adPlacements",E)||[];for(var B=0;B<E.length;B++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",E[B]))return!0;var I=void 0,T=void 0,e=void 0;if(!_.d("web_watch_top_banner_companion_check_killswitch")&&((I=E[B])==null?0:(T=I.adPlacementRenderer)==null?0:(e=T.renderer)==null?0:e.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.l.hasSuppressedResults=function(E){return E==null?!0:E.filter(function(B){return!B.continuationItemRenderer&&!B.compactPromotedVideoRenderer&&!B.promotedSparklesWebRenderer}).length===0};
_.l.computeShowButton=function(E,B){return this.isWatchNextGrid?E:E||this.hasSuppressedResults(B)};
_.l.showButtonChanged=function(){if(this.isWatchNextGrid){var E=_.n(this.hostElement).querySelector("ytd-rich-grid-renderer");E&&this.showButton!==null&&(E.continuationShowButton=this.showButton)}else{E=_.n(this.hostElement).querySelector("yt-next-continuation");var B=_.n(this.hostElement).querySelector("ytd-continuation-item-renderer"),I=_.n(this.hostElement).querySelector("ytd-item-section-renderer");E&&(E.showButton=this.showButton);B&&(B.showButton=this.showButton);I&&(I.continuationShowButton=
this.showButton)}};
_.l.continuationTap=function(E){var B;if(((B=this.data)==null?void 0:B.continuations)!=null&&E.target.tagName==="TP-YT-PAPER-BUTTON")for(E=this.data.continuations,B=0;B<E.length;B++)E[B].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(E[B].nextContinuationData||{})};
_.l.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("shown-items-changed",this.shownItems))};
_.Up.Object.defineProperties(dD.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid&&this.containsLockupViewModel?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.shownItems)==null||!E.some(function(B){return!!B.lockupViewModel}))}}});
dD.prototype.shownItemsChangedForBinding=dD.prototype.shownItemsChangedForBinding;dD.prototype.showButtonChanged=dD.prototype.showButtonChanged;dD.prototype.hideTvfilmOfferModuleChanged=dD.prototype.hideTvfilmOfferModuleChanged;dD.prototype.updateLockupContainerTypes=dD.prototype.updateLockupContainerTypes;dD.prototype.hideUnlimitedOfferModuleChanged=dD.prototype.hideUnlimitedOfferModuleChanged;dD.prototype.dataChanged=dD.prototype.dataChanged;dD.prototype.resultsChanged=dD.prototype.resultsChanged;
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],dD.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.t6.YtLazyListBehavior),_.t("design:type",Object)],dD.prototype,"ytLazyListBehavior",void 0);_.k([_.g(_.Gt.YtNextContinuationBehavior),_.t("design:type",Object)],dD.prototype,"ytNextContinuationBehavior",void 0);
_.k([_.g(_.xo),_.t("design:type",Object)],dD.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],dD.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],dD.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],dD.prototype,"playerData",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],dD.prototype,"autoFill",void 0);_.k([_.X({value:60}),_.t("design:type",Number)],dD.prototype,"targetFramerate",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],dD.prototype,"isTwoColumns",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],dD.prototype,"hideOfferModules",void 0);_.k([_.X(),_.t("design:type",Object)],dD.prototype,"shownItems",void 0);_.k([_.X({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.t("design:type",Boolean)],dD.prototype,"hideUnlimitedOfferModule",void 0);
_.k([_.X({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.t("design:type",Boolean)],dD.prototype,"hideTvfilmOfferModule",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],dD.prototype,"watchFeedBigThumbs",void 0);_.k([_.X(),_.t("design:type",Object)],dD.prototype,"watchNextGridHideChips",void 0);_.k([_.X(),_.t("design:type",Object)],dD.prototype,"eligibleToSwitchToGrid",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],dD.prototype,"disableShortsShelfHeightOverride",void 0);_.k([_.X({selector:_.HE}),_.t("design:type",Object)],dD.prototype,"isGridViewEnabled",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],dD.prototype,"showMoreButton",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],dD.prototype,"isWatchNextGrid",void 0);
_.k([_.X({computed:"computeShowButton(showMoreButton, data.results)"}),_.t("design:type",Boolean)],dD.prototype,"showButton",void 0);_.k([_.i6("data.results.*"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dD.prototype,"resultsChanged",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dD.prototype,"dataChanged",null);
_.k([_.EM("hideUnlimitedOfferModule"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dD.prototype,"hideUnlimitedOfferModuleChanged",null);_.k([_.S("isGridViewEnabled","containsLockupViewModel","data"),_.X({reflectToAttribute:!0}),_.t("design:type",Number),_.t("design:paramtypes",[])],dD.prototype,"lockupContainerType",null);
_.k([_.EM("lockupContainerType","data"),_.t("design:type",Function),_.t("design:paramtypes",[Number]),_.t("design:returntype")],dD.prototype,"updateLockupContainerTypes",null);_.k([_.EM("hideTvfilmOfferModule"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dD.prototype,"hideTvfilmOfferModuleChanged",null);_.k([_.EM("showButton"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dD.prototype,"showButtonChanged",null);
_.k([_.EM("shownItems"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dD.prototype,"shownItemsChangedForBinding",null);_.k([_.S("shownItems"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],dD.prototype,"containsLockupViewModel",null);
_.A(dD,"ytd-watch-next-secondary-results-renderer",function(){if(zcO===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);zcO=E}E=zcO;return E},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.VqO={};
_.VqO.YtdWatchBehavior=[_.R.YtRendererBehavior,_.Wy.YtPlayerListenerBehavior,_.kC.YtRendererstamperBehavior,_.th.YtActionHandlerBehavior,_.dO.YtPageBehavior,_.BF.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.gU("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.d("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 _.gU("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.d("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded, fullscreen)"},richItemMinWidth:{type:Number,value:function(){return _.RI("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.RI("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.d("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.d("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.d("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("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)"},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 _.d("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.d("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.d("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("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 _.d("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("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 _.d("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var E={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:_.h7(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.h7(["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"||_.d("swa_prov_panels_ks")?E.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(E.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},E.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return E},
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 E=this;this.watchController=void 0;this.pageDisposeJobs=[function(){E.showMetadataPlaceholder_()},
function(){_.d("web_watch_dont_clear_comments")||E.clearComments_()},
function(){E.clearPlayerAds_()},
function(){E.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;_.d("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.d("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.gcT(function(){return _.Ak(E)},this.hostElement);
this.pageDisposeJobs.push(function(){E.youThereManager_.reset()});
_.d("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){E.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.lo;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;_.d("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.d("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));_.d("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Kq(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(E){E&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:E}),E.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(E){_.d("kevlar_watch_flexy_theater_manager")&&(this.theater=E,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(E){!_.d("kevlar_watch_while_v2")&&!_.d("web_watch_pip")||E||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(E){this.active!==void 0&&(this.fullscreen=E,_.d("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(E){this.active!==void 0&&(_.$O(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.d("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.d("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(E>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(E){this.initCsi_();this.updatePageData_(E)},
updatePageData_:function(E){var B=this;if(E)if(this.data===E){this.onPageLoadWithSameData_();var I;(I=this.watchController)==null||_.bH(I,this.data)}else this.data=E;this.playlist&&_.LO({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.nO("nw");this.loading=!1;_.PC(_.Ll,function(){B.initDclkstatus_();var T,e=((T=B.player)==null?void 0:T.getVideoData().cpn)||"";_.zII(function(c,Y){_.gaI(c,Y,e)})})},
onPageLoadWithSameData_:function(){_.d("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 E=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!E);this.set("loadingData.playlistLoading",E&&E!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),E=this.watchNextSkeletonEl_.firstElementChild;E;)E.classList.remove("hidden"),E=E.nextElementSibling;if(_.d("kevlar_watch_frame0_loading_state")){var B,I,T;E=(B=this.loadingData)==null?void 0:(I=B.endpoint)==null?void 0:(T=I.watchEndpoint)==null?void 0:T.videoId;var e;E&&(e="https://i.ytimg.com/vi/"+E+"/frame0.jpg");_.n(this.hostElement).querySelector("#player").style.backgroundImage=e?"url("+e+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var E=_.n(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&E&&(E.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var B,I;(I=(B=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(B);var T,e;(e=(T=this.watchMetadata).resize)==null||e.call(T)}_.d("kevlar_watch_frame0_loading_state")&&(_.n(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(E){var B=_.n(this.hostElement).querySelector(E);B?_.EK(B,!1):_.OG(new _.P7("Overscroll monitor not found for component: ",E))},
removeSplitScrollMouseTrap:function(E){var B=_.n(this.hostElement).querySelector(E);B?_.BN(B):_.OG(new _.P7("Disposal component for  overscroll monitoring not found: ",E))},
onLoadingChanged_:function(E){E?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(E){var B=this;E?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Ll.addLowPriorityJob(function(){B.onWindowResized_(_.v8(!0))})},
updateTheaterModeState_:function(E){if(!_.d("kevlar_watch_flexy_theater_manager")){E=E||this.fullWindowMode_;if(this.theater!==void 0||E)this.theater=E;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();E&&_.Na7()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var E=this.theater;_.d("external_fullscreen")&&this.fullscreen&&(E=!0);E=E?_.n(this.hostElement).querySelector("#player-full-bleed-container"):_.n(this.hostElement).querySelector("#player-container-inner");var B=this.getPlayerContainer(),I=_.d("kevlar_watch_while_v2")||_.d("web_watch_pip");B.parentElement!==E&&(I&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Ak(this).appendTo(E,B),E.appendChild(_.n(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var E=this;return _.a(function(B){if(B.nextAddress==1)return _.C(B,_.Q().resolve(_.W3).deactivate(),2);E.updatePlayerLocation();_.ER(B)})},
updateCinematicsLocation:function(){var E=this.getElement("CINEMATICS");if(E){var B=this.getCinematicsLocationContainer();E.parentElement!==B&&B.appendChild(E);var I;(I=this.watchController)==null||_.Cet(I)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.n(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.n(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(E,B){var I=document.documentElement.hasAttribute("dark"),T=I&&_.d("web_cinematic_theater_mode"),e=I&&_.d("web_cinematic_fullscreen");I=!I&&this.cinematicLightTheme;return E&&T||B&&e||(B||E)&&I},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var E=this,B;(B=this.watchController)==null||_.bH(B,this.data);_.d("kevlar_watch_flexy_comments_manager")||this.initComments_();_.d("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Q().resolve(_.Hx).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,_.d("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Ll.addLowPriorityJob(function(){_.Ta(E.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.d("web_watch_start_chat_in_theater_mode")){var I,T,e;if((I=this.data)==null?0:(T=I.contents)==null?0:(e=T.twoColumnWatchNextResults)==null?0:e.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var c,Y;((c=this.data)==null?0:(Y=c.contents)==null?0:Y.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(E){var B;(B=this.watchController)==null||_.rc(B,this.playerData);E&&E.playabilityStatus&&(B=this.isVideoPlayable_(E.playabilityStatus,this.getPlayerOverlays_(this.data)),E=this.isLiveStreamOffline_(E.playabilityStatus),B&&!E||_.AJ(this,function(){_.nO("pbu")}));
this.setPlayerAds_();_.Ta(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(E,B){if((_.d("kevlar_watch_while_v2")||_.d("web_watch_pip"))&&this.playerData&&B)return this.playerData.videoDetails},
watchPageActiveChanged_:function(E){_.t2().dispatch(_.GZL(this.active));E?this.activate_():this.deactivate_()},
attached:function(){var E=this;this.watchController=new _.Xb(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.rc(this.watchController,this.playerData);this.data&&_.bH(this.watchController,this.data);_.d("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var B=_.Ak(this);_.d("kevlar_disable_prepare_player")||B.preparePlayer();
_.d("kevlar_watch_flexy_playlist_manager")||_.Q().resolve(_.Hx).setPlayer(B);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();B={"--ytd-watch-flexy-scrollbar-width":_.zo()+"px"};this.is==="ytd-watch-grid"&&(B["--ytd-watch-flexy-sidebar-width"]=_.Wq+"px",B["--ytd-watch-grid-horizontal-page-margins"]=_.gD+"px",B["--ytd-watch-grid-columns-top-margins"]=_.wQs+"px",B["--ytd-watch-grid-min-player-height-medium"]="360px");!_.RI("kv_pl_mx_sz_ks")&&_.RI("kevlar_watch_max_player_width")&&
(B["--ytd-watch-flexy-max-player-width-wide-screen"]=_.zq9+"px");_.RI("kevlar_watch_flexy_metadata_height")&&(B["--ytd-watch-flexy-space-below-player"]=_.mws+"px");this.safeUpdateStyles(B);_.d("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Y0(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return E.onPlayerTouchPanDown_()}}));
_.d("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.n(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var E=_.zo(),B=_.Sq+E,I=B;this.fixedPanels&&(B+=_.Wq);var T=657+E;E=1327+E;_.n(this.hostElement).querySelector("#two-column-query").query="(min-width: "+B+"px)";_.n(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(T+"px), (min-height: 630px) and (min-width: ")+(B+"px) and (max-width: ")+(E+"px)");_.n(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(E+"px)");_.n(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+I+"px)"},
calculateCurrentPlayerSize_:function(){var E=_.n(this.hostElement).querySelector("#miniplayer-bar").firstChild;return E&&E.active||this.theater||_.d("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.KK(NaN,NaN):_.jE(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.jE(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.bl(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var E=this;this.onWindowResized_(_.v8());_.d("browse_skeleton_removal_on_watch_killswitch")||_.gU("IS_SHELL_LOAD")&&_.uvO();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var B=_.Ak(this);B.addEventListener("yt-player-updated",_.Kq(this,this.onPlayerUpdated_));B.getPlayerPromise().then(function(I){E.playerApiReady_(I)});
_.d("kevlar_watch_flexy_playlist_manager")||(B=_.Q().resolve(_.Hx),_.d("kevlar_watch_observe_playlist_navigations_killswitch")&&B.addEventListener("yt-navigate",_.Kq(this,this.onYtNavigate_)),B.setPlaylistComponent(_.n(this.hostElement).querySelector("#playlist")),B.addEventListener("yt-playlist-data-updated",_.Kq(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Ll.addLowPriorityJob(function(){_.$O(E.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Ak(this).removeEventListener("yt-player-updated",_.Kq(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.d("kevlar_watch_flexy_playlist_manager")){var E=_.Q().resolve(_.Hx);_.d("kevlar_watch_observe_playlist_navigations_killswitch")&&E.removeEventListener("yt-navigate",_.Kq(this,this.onYtNavigate_));
E.cancelVideoSkip();E.removeEventListener("yt-playlist-data-updated",_.Kq(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.d("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.$O(this.hostElement,"yt-autonav-pause-player",!1);E=_.KC();_.d("kevlar_exit_fullscreen_leaving_watch")&&E&&_.RO(E)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(E){this.player&&this.player.updateVideoData({rvs:E.rvs})},
getPageContents:function(E){return E&&E.contents&&E.contents.twoColumnWatchNextResults&&E.contents.twoColumnWatchNextResults.results&&E.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(E){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",E)},
onRetrieveLocation_:function(E,B){B.hasComments?B.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):B.locationRetrieved("/related_ajax",void 0);E.stopPropagation()},
onSubscriptionChanged_:function(E,B){this.player&&(B?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Qg("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.n(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.n(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(E){this.player=E;this.setPlayerState(E.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.d("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.d("kevlar_unified_player")||_.d("kevlar_player_new_bootstrap_adoption"))&&_.k6()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(E,B){B=B===void 0?!0:B;_.KC()&&_.d("external_fullscreen")&&_.RO(document.documentElement);this.theaterRequested_=E;B&&_.yZ("wide",E?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.I2(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.$O(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(E){_.ni(E,typeof this.player),this.player&&_.ni(E,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var E;((E=this.player)==null?0:E.isFullscreen())?this.player.toggleFullscreen():_.I2(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(E,B){return this.loading?B:!!Object.keys(E).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(E){if(E){E=_.p(E);for(var B=E.next();!B.done;B=E.next())B=B.value,B.youThereRenderer&&_.Wum(this.youThereManager_,B.youThereRenderer)}},
setPlaylistData_:function(E){return E||{}},
userEngagementConfigDataChanged_:function(E){if(E)if(E.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var B=this.youThereManager_;_.DD()<E.lowEngagementThresholdMs||_.oct(B,!0)}else E.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.I2(this.hostElement,"yt-autonav-pause-user-engagement",[E])},
isPlayerUnavailable_:function(E,B,I){return!!E&&!this.isVideoPlayable_(E,I)&&!B},
getPlayerOverlays_:function(E){return(E==null?void 0:E.playerOverlays)||null},
isVideoPlayable_:function(E,B){if(!E)return!1;var I=E.status==="OK"||E.status==="LIVE_STREAM_OFFLINE",T=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",E)||this.get("errorScreen.ypcTrailerRenderer",E);E=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",E);var e;B=B==null?void 0:(e=B.playerOverlayRenderer)==null?void 0:e.gatedActionsOverlayRenderer;return!!I||!!T||!!E||!!B},
hasWatchNextResponseErrorRenderer:function(E){var B=this.getPageContents(E),I,T,e,c,Y;return!(E==null?0:(I=E.contents)==null?0:(T=I.twoColumnWatchNextResults)==null?0:T.secondaryResults)&&!!((e=B[0])==null?0:(c=e.itemSectionRenderer)==null?0:(Y=c.contents[0])==null?0:Y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(E){return E?E.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(E,B,I){var T=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",B),e=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];e=_.d("web_no_skip_video_on_verification_checks")?(E==null?void 0:E.status)&&e.includes(E.status):E&&E.status==="AGE_CHECK_REQUIRED";var c=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",E);c==void 0&&(c=!0);!I||this.isVideoPlayable_(E,this.getPlayerOverlays_(B))||
T||e||!c||_.Q().resolve(_.Hx).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Lu1()},
onPlayerFeedbackStartRequest_:function(E){_.I2(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:E}])},
onPlayerFeedbackArticleRequest_:function(E){_.I2(this.hostElement,"yt-help-dialog-requested",[E])},
onPlayerYpcContentRequest_:function(){var E,B,I,T,e,c,Y,v,y=((E=this.data)==null?NaN:(B=E.contents)==null?NaN:(I=B.twoColumnWatchNextResults)==null?NaN:(T=I.secondaryResults)==null?NaN:(e=T.secondaryResults)==null?NaN:(c=e.offerModule)==null?NaN:(Y=c.tvfilmOfferModuleRenderer)==null?NaN:(v=Y.actionButtons)==null?NaN:v.length)-1;E=[".offerButton.buttonRenderer.",".actionButtons."+(y>=0?y:0)+".buttonRenderer."];B=_.p(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=B.next();!I.done;I=B.next())for(I=I.value,T=_.p(E),e=T.next();!e.done;e=T.next())if(e="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+e.value,e=this.get(e+"navigationEndpoint",this.data)||this.get(e+"serviceEndpoint",this.data)||this.get(e+"command",this.data)){_.$g(e,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(E){_.$O(this.hostElement,"yt-autonav-pause-player",E)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(E){E()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(E){switch(E){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(E){switch(E){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.$O(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(E)},
setPlayerState:function(E){_.t2().dispatch(_.Dr6(E))},
onPlayerSubscribe_:function(E){_.I2(this.hostElement,"yt-player-subscribe",[E])},
onPlayerUnsubscribe_:function(E){_.I2(this.hostElement,"yt-player-unsubscribe",[E])},
onPlayerAdYtShowToast_:function(E){_.I2(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:E.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(E){if(E)return E},
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(E){return!_.d("web_watch_move_summary_to_sd")&&!!E},
computeWatchMetadataRefresh:function(){return _.d("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.d("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var E,B,I,T;this.watchNextSecondaryResults=(E=this.data)==null?void 0:(B=E.contents)==null?void 0:(I=B.twoColumnWatchNextResults)==null?void 0:(T=I.secondaryResults)==null?void 0:T.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.d("swatcheroo_pbs_load_grid")&&!_.d("swatcheroo_provide_all_data_on_scheduled_job")){_.Ll.cancelJob(this.setRichGridJobId_);var E,B,I,T,e,c,Y;this.setRichGridRendererData((E=this.data)==null?void 0:(B=E.contents)==null?void 0:(I=B.twoColumnWatchNextResults)==null?void 0:(T=I.secondaryResults)==null?void 0:(e=T.secondaryResults)==null?void 0:(c=e.results)==null?void 0:(Y=c[0])==null?
void 0:Y.richGridRenderer)}},
setRichGridRendererData:function(E){this.richGridRendererData=E},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var E,B=(E=this.data)==null?void 0:E.engagementPanels;if(B==null?0:B.length){E=null;B=_.p(B);for(var I=B.next();!I.done;I=B.next()){I=I.value;var T=void 0;if(((T=I.engagementPanelSectionListRenderer)==null?void 0:T.targetId)==="engagement-panel-structured-description"){E=I;break}}var e,c,Y;E=(e=E)==null?void 0:(c=e.engagementPanelSectionListRenderer)==null?void 0:(Y=c.content)==null?void 0:Y.structuredDescriptionContentRenderer;if(E==null?0:E.items){e=
[];c=_.p(E.items);for(Y=c.next();!Y.done;Y=c.next()){Y=Y.value;if(!_.d("sd_horizontal_list_show_nav_killswitch")){var v=T=I=B=E=void 0,y=void 0,Z=(E=Y.horizontalCardListRenderer)==null?void 0:(B=E.header)==null?void 0:(I=B.richListHeaderRenderer)==null?void 0:(T=I.navigationButton)==null?void 0:(v=T.buttonRenderer)==null?void 0:(y=v.command)==null?void 0:y.commandExecutorCommand;Z&&Z.commands&&(Z.commands=Z.commands.filter(function(P){return!_.h(P,_.SBI)}))}Y.expandableVideoDescriptionBodyRenderer||
Y.videoDescriptionHeaderRenderer||e.push(Y)}return{items:e}}}},
constructWarning_:function(E){return{text:_.jj(E),type:"WARNING"}},
isPlaShelfEnabled_:function(E){if((this.get("adPlacements",E)||[]).length)return!0;E=this.get("playerAds",E)||[];return!(!E.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",E[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var E=this;_.$O(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.d("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var B=this.getScrollTop()>0;this.gestures_&&(B?this.gestures_.detach():this.gestures_.attach());B!==this.showFullerscreenEdu_&&_.d("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=B,_.Ak(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(E.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.$O(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var E=this;this.commentsReady=!1;_.Ll.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.PC(_.Ll,function(){E.setComments_()},1E3)},
setComments_:function(){if(!_.d("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.nO("cmi");_.Ll.cancelJob(this.setCommentsJobId_);var E=this.getPageContents(this.data);if(E&&E.length){E=_.p(E);for(var B=E.next();!B.done;B=E.next())if(B=B.value,this.get("itemSectionRenderer.sectionIdentifier",B)==="comment-item-section"){this.comments=B.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.$O(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.d("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.d("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.nO("cmc")},
doRemoveComments_:function(){this.comments={};_.d("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Ll.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Ll.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(E,B){var I=_.h(B.endpoint,_.kh);I&&(!(B=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==B.videoId||I.playlistId&&I.playlistId!==B.playlistId||I.index!==void 0&&I.index!==B.index||typeof I.startTimeSeconds!=="number"||(E.stopPropagation(),this.setScrollTop(0),_.Ak(this).getPlayerPromise().then(function(T){var e=I.startTimeSeconds;T.seekTo(e);T.wakeUpControls();e<T.getDuration()&&T.playVideo()})))},
updatePlayerStartTime_:function(){var E=_.PeO();"t"in E&&(E=_.ufO(E.t),this.player.seekTo(E,!0))},
updateTitleFromWatchNext:function(E){E=this.getPageContents(E);var B,I;(E=_.U3(E==null?void 0:(B=E[0])==null?void 0:(I=B.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.$O(this.hostElement,"yt-update-title",E)},
updateTitle_:function(E){E=this.get("videoDetails.title",E)||"";_.$O(this.hostElement,"yt-update-title",E)},
syncWithRemoteVideo_:function(E,B,I){if(this.active&&this.player){var T=this.player.getVideoData();if(T.video_id===I&&(I=T.list,_.d("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),T.video_id!==E||I!=B)){var e;_.d("kevlar_player_watch_endpoint_navigation")?e=_.FHc(_.mxd(E,B)):e=this.buildWatchEndpoint_(E,B);_.$O(this.hostElement,"yt-navigate",{endpoint:e,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(E,B,I){return _.DB(E,B,I)},
initDclkstatus_:function(){_.hIL()},
attachWatchPageSkeleton_:function(){var E=document.querySelector("#watch-page-skeleton");if(E){var B=E.querySelector("#primary-info"),I=E.querySelector("#secondary-info"),T=E.querySelector("#related");B&&_.n(this.hostElement).querySelector("#info-skeleton").appendChild(B);I&&_.n(this.hostElement).querySelector("#meta-skeleton").appendChild(I);T&&(_.n(this.hostElement).querySelector("#related-skeleton").appendChild(T),this.watchNextSkeletonEl_=T);_.ii(E)}},
handlePlayerUpdated_:function(){_.Ak(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(E,B){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof B!=="undefined"){var I=this.watchNextSkeletonEl_.children,T=E&&E.indexSplices.length?E.indexSplices[0].index:0;E=Math.min(this.watchNextShownItems.length,I.length);B||(T=0,E=I.length);for(B=T;B<E;B++)I[B].classList.add("hidden")}},
onPlayerFullscreenChange_:function(E){_.d("external_fullscreen")||_.I2(this.hostElement,"yt-player-fullscreen",[E.fullscreen])},
onFullscreenChange_:function(E){this.fullscreen=E;this.gestures_&&this.gestures_.update(this.fullscreen);var B=_.Ak(this);B.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.KC())});
this.updateFullBleedElementLocations();E&&(B.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(E,B){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!B},
computeIsDonationShelfCollapsed_:function(E){return E},
computeShouldShowMerchShelf:function(E,B){return B&&!!E},
computeResponseHasComments:function(E){var B,I,T,e,c;return!!(E==null?0:(B=E.contents)==null?0:(I=B.twoColumnWatchNextResults)==null?0:(T=I.results)==null?0:(e=T.results)==null?0:(c=e.contents)==null?0:c.some(function(Y){var v;return(Y==null?void 0:(v=Y.itemSectionRenderer)==null?void 0:v.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(E,B,I,T){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&T?!1:!!E&&!!Object.keys(E).length&&!B},
identity:_.JD,onWindowResized_:function(E){this.windowSize_=E;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.d("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(E){var B=this;E&&E.type!=="dataloaded"&&E.type!=="dataupdated"||_.Ak(this).getPlayerPromise().then(function(I){var T=I.getPlayerState();T!==5&&T!==0&&(I=1/I.getVideoAspectRatio(),B.videoHeightToWidthRatio_!==I&&(B.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(E){var B=this,I=_.d("kevlar_watch_while_v2")||_.d("web_watch_pip"),T=function(){if(B.watchMetadata){var e,c;(c=(e=B.watchMetadata).resize)==null||c.call(e)}_.Ak(B).getPlayerPromise().then(function(Y){if(_.d("kevlar_set_internal_player_size")){if(!I||!B.isMiniplayerActive()){var v=B.calculateCurrentPlayerSize_();Y.setInternalSize(v.width,v.height)}}else Y.setSize(NaN,NaN);_.d("kevlar_watch_while")&&B.updateWatchWhileScrollThreshold_()})};
E?T():_.dT(_.Ll,T)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(E){this.set("data.survey",E.detail)},
onYtShowSurveyCommand_:function(E){this.set("data.survey",_.h(E,_.ND2).survey)},
onDownloadedVideoDeleted:function(E){var B=this,I,T;return _.a(function(e){if(e.nextAddress==1){if(!B.active||(I=B.playerData)==null||!I.offlineState||B.videoId!==E)return e.return();(T=B.player)==null||T.stopVideo();_.vx().navigatingAwayFromWatchDeletedVideo=!0;_.$g(_.oXF,B.hostElement);return _.C(e,_.vx().navigationFinishPromise,2)}_.vx().navigatingAwayFromWatchDeletedVideo=!1;_.ER(e)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var E;this.theater?E=_.H3(.5625*this.windowSize_.width,480,this.windowSize_.height-185):E=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==E&&(this.watchWhileScrollThreshold_=E,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var E=_.n(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&E){var B=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!E.active&&B&&I>=this.watchWhileScrollThreshold_?(E.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):E.active&&(!B||I<this.watchWhileScrollThreshold_&&!_.KC())&&(E.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var E=_.n(this.hostElement).querySelector("#secondary-inner");if(E){var B=_.n(this.hostElement).querySelector("#below"),I=_.n(this.hostElement).querySelector("#secondary"),T=_.n(this.hostElement).querySelector("#comments");T&&I&&B&&(this.defaultTwoColumnLayout?(E.appendChild(T),I.appendChild(E)):(B.appendChild(T),_.Nx(B,E)))}}},
isTwoColumnsChanged_:function(E,B){if(E!==!0||B!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(E=_.n(this.hostElement).querySelector("#secondary-inner"))){B=_.n(this.hostElement).querySelector("#below");var I=_.n(this.hostElement).querySelector("#secondary"),T=_.n(this.hostElement).querySelector("#comments");T&&I&&B&&(this.isTwoColumns_?(E.appendChild(T),I.appendChild(E)):(B.appendChild(T),_.Nx(B,E)))}}else{E=!_.d("live_chat_over_engagement_panels");B=_.n(this.hostElement).querySelector("#chat-container");
I=_.n(this.hostElement).querySelector("#panels");var e=_.n(this.hostElement).querySelector("#alerts");T=_.n(this.hostElement).querySelector("#playlist");var c=_.n(this.hostElement).querySelector("#related"),Y=_.n(this.hostElement).querySelector("#donation-shelf"),v=_.n(this.hostElement).querySelector("#comments");this.isTwoColumns_?(e=_.n(this.hostElement).querySelector("#secondary-inner"),E&&e.appendChild(I),e.appendChild(T),_.d("web_watch_theater_chat")||e.appendChild(B),E||e.appendChild(I),e.appendChild(Y),
e.appendChild(c)):(E&&_.Os(I,e),_.Os(T,e),_.d("web_watch_theater_chat")||_.Os(B,e),E||_.Os(I,e),_.Os(Y,e),v&&_.Os(c,v));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.d("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.d("web_watch_theater_chat")){var E=_.n(this.hostElement).querySelector("#chat-container"),B=this.theater&&!this.fullscreen||_.d("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&B?_.d("web_watch_theater_chat_beside_player")?(B=_.n(this.hostElement).querySelector("#panels-full-bleed-container"),(E==null?void 0:E.parentElement)!==B&&B.append(E),this.panelsBesidePlayer=!0):
_.d("web_watch_theater_fixed_chat")&&(B=_.n(this.hostElement).querySelector("#columns"),(E==null?void 0:E.parentElement)!==B&&B.append(E),this.fixedPanels=!0):(_.d("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.d("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),B=_.n(this.hostElement).querySelector("#playlist"),E&&B?_.n7(E,B):_.OG(new _.P7("Missing element when updating chat location",{"chatContainer defined":!!E,"playlist defined":!!B})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(E,B){return _.d("sw_metadata_vis_toggle_ks")?!0:!!E||!!B},
computeForceDarkPanelTheme:function(E){return _.d("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&E:!1},
safeUpdateStyles:function(E){try{_.Dk(this.hostElement,E)}catch(B){_.OG(B)}},
videoHeightToWidthRatioChanged_:function(E,B){B&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(E){this.videoHeightToWidthRatio_=1/E},
computeIsVerticalVideo_:function(E){return E>=1},
computeIsFourThreeToSixteenNineVideo_:function(E){return E<=.7501&&E>=.5624},
computeIsExtraWideVideo_:function(E){return E<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Ak(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Ak(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.AW8(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(E){var B=_.cc(E)||0;_.l9(E,B+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var E=_.cc("yt-fullerscreen-edu-button-click-count")||0,B=_.cc("yt-fullerscreen-edu-button-shown-count")||0,I=_.RI("external_fullscreen_button_shown_threshold"),T=E>=_.RI("external_fullscreen_button_click_threshold")||B>=I;_.Ak(this).getPlayerPromise().then(function(e){e.updateFullerscreenEduButtonSubtleModeState(T)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(E,B){return B},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Q().resolve(_.Hx).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var E=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Ll.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Ll.addLowPriorityJob(function(){E.fullHeightPanelPositionUpdateJobId=0;var B=_.n(E.hostElement).querySelector("#secondary"),I=_.n(E.hostElement).querySelector("#fixed-secondary");B=B.getBoundingClientRect();var T=B.width;E.swatcherooSqueezeback&&
(T+=_.gD);if(E.swatcherooSqueezeback){var e=_.n(E.hostElement).querySelector("#squeezeback-constraining-container");e.style.width=T+"px";e.style.flex="0 0 "+T+"px"}I.style.width=T+"px";I.style.left=B.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var E=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Ll.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Ll.addLowPriorityJob(function(){E.panelMaxHeightUpdateJob_=0;var B;!E.isTwoColumns_||E.theater||E.fullscreen?B=460:B=E.calculateNormalPlayerSize_().height;var I=B+"px";_.d("live_chat_taller_height")&&!E.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.d("live_chat_medium_height")&&!E.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.d("live_chat_scaled_height")&&!E.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");E.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":B+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":B+"px","--ytd-watch-flexy-comments-panel-max-height":B+"px","--ytd-comments-engagement-panel-content-height":B+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var E=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.d("web_watch_flexy_adjust_sidebar_width"))&&!_.d("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.Ll.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.Ll.addLowPriorityJob(function(){E.panelMaxHeightUpdateJob_=0;if(E.isTwoColumns_){var B=_.sU2(E.windowSize_,E.calculateNormalPlayerSize_().width);B!==E.currentSidebarWidth&&(E.currentSidebarWidth=
B,E.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":B+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(E){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",E)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.cN(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(E){var B=_.n(this.hostElement).querySelector("#engagement-panel-scrim");E?B.addEventListener("tap",_.Kq(this,this.onEngagementPanelScrimClick_)):B.removeEventListener("tap",_.Kq(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(E){if(this.hostElement.contains(E)&&!this.scrollToAnimation_.isAnimating()){var B=E.offsetTop-24;E=E.offsetTop+E.offsetHeight+24;var I=this.getPageScrollingElement(),T=this.getScrollTop(),e=T+I.clientHeight-56;if(B<T+56)B-=56;else if(E>e)B=E-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,B),500)}},
onYtSignalActionScrollToComments:function(){var E=this.hostElement.querySelector("#comments");if(E&&!this.scrollToAnimation_.isAnimating()){E=E.offsetTop-56-24;if(_.d("kevlar_comment_teaser_scroll_to_midpoint")&&(E-=_.Rd().height/3,E<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,E),500)}},
onYtEngagementPanelVisibleChanged:function(E,B,I){this.active&&this.trackEngagementPanelVisibility&&!_.MqO.includes(I)&&(B==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(I),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.Ta(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),B!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&B!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(I),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(E){return E?"":"watch-active-metadata"},
computeNewMetadataClass:function(E){return E?"watch-active-metadata":""},
computeFullBleedPlayer:function(E,B){return E||B},
computeDefaultLayout:function(E){return!E},
computeDefaultTwoColumnLayout:function(E,B){return!E&&B},
updatePanelsLocation:function(){if(_.d("web_watch_enable_fs_squeezeback_panels")){var E=_.n(this.hostElement).querySelector("#below"),B=_.n(this.hostElement).querySelector("#panels"),I=_.n(this.hostElement).querySelector("#panels-full-bleed-container"),T=_.n(this.hostElement).querySelector("#secondary-inner");this.fullscreen?I.appendChild(B):this.isTwoColumns_?_.Nx(T,B):E.appendChild(B)}},
swatcherooUpdatePanelsLocation:function(E,B,I,T,e,c){if(this.is==="ytd-watch-grid"){B=E&&!B;this.swatcherooSplitScroll&&(B?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));I=_.n(this.hostElement).querySelector("#panels");var Y=_.n(this.hostElement).querySelector("#playlist"),v=_.n(this.hostElement).querySelector("#fixed-secondary"),y=_.n(this.hostElement).querySelector("#fixed-below"),
Z=_.n(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),P=_.n(this.hostElement).querySelector("#chat-container");c&&(E?v.appendChild(I):y.appendChild(I));e?E?v.appendChild(P):y.appendChild(P):_.n7(P,Z);T?E?v.appendChild(Y):y.appendChild(Y):_.n7(Y,Z);this.swatcherooSplitScroll&&(E=_.n(this.hostElement).querySelector("#secondary"),T=_.n(this.hostElement).querySelector("#columns"),e=_.n(this.hostElement).querySelector("#fixed-columns-secondary"),B?e.appendChild(E):
T.appendChild(E))}},
computeMetadataSkinnyMode:function(E,B,I){return this.is!=="ytd-watch-grid"?!1:E?I:B},
computeWatchWhilePanelsActive:function(E,B){return E||B},
computeNoBorderOnChat:function(E){return _.d("web_watch_theater_chat_no_border")&&E},
computeLiveChatPresentAndExpanded:function(E,B){return E&&!B},
computePanelExpanded:function(E,B,I){return E||B||I},
computeSqueezeback:function(E,B){if(_.d("web_watch_enable_fs_squeezeback_panels"))return E&&B},
computeSwatcherooSqueezeback:function(E,B,I){return this.is!=="ytd-watch-grid"||_.d("ww_squeezeback_killswitch")?!1:E&&B&&I},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(E){_.Ak(this).getPlayerPromise().then(function(B){var I;(I=B.changeMarkerVisibility)==null||I.call(B,_.h(E,_.UQ).isVisible||!1,_.h(E,_.UQ).entityKeys||[],_.h(E,_.UQ).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(E){this.liveChatCollapsed=E.detail;_.t2().dispatch(_.ncd(E.detail))},
onSetPlaylistCollapsed:function(E){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!E)},
provideRenderingData:function(E,B){switch(E){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=B;break;case "PRIMARY_INFO":_.d("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=B);this.videoPrimaryInfoRendererValue=B==null?void 0:B.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.d("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=B);this.videoSecondaryInfoRendererValue=B==null?void 0:B.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
B;break;case "CLARIFICATION":this.clarifyBoxValue=B;break;case "LIVE_CHAT":this.conversationBar=B;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=B;break;case "PLAYLIST":this.externalPlaylistData_=B!=null?B:{};break;case "MERCH_SHELF":this.merchShelfValue=B==null?void 0:B.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=B;break;case "TICKET_SHELF":this.ticket=B;break;case "OFFER_MODULE":this.offerModule=B;break;case "LIMITED_STATE":this.limitedStateValue=
B;break;case "DONATION_SHELF":this.donation=B;break;case "ALERTS":this.alertsValue=B;break;case "COMMENTS":this.comments=B;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=B;break;case "ENGAGEMENT_PANELS":this.engagementPanels=B;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=B;break;case "RICH_GRID_RENDERER":this.richGridRendererData=B;break;case "EXPANDABLE_METADATA":this.expandableMetadata=B;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
B}},
toggleCinematicsActive:function(E){this.cinematicsActive=E},
isMiniplayerActive:function(){return _.Q().resolve(_.W3).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var X72;_.Wz7=function(E){return E.shorts.isShortsActive};
_.rgt=function(E){return E.findIndex(function(B){return X72.indexOf(B.tagName)>-1})>-1};
_.bFd=function(E){return _.BP({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:E}})};
_.oaT=function(){var E=_.Q().resolve(_.R5);_.gGJ(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(E.isFullscreenEnabled()?_.RO(document.documentElement):_.veG(document.documentElement))};
X72=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.AY=new Map;_.AY.set(32,59972);_.AY.set(27,50765);_.AY.set(70,60102);_.AY.set(76,60221);_.AY.set(77,60222);_.AY.set(74,60223);_.AY.set(84,60224);_.AY.set(38,61941);_.AY.set(40,61942);_.AY.set(73,62521);_.AY.set(67,62522);_.AY.set(80,63390);_.AY.set(78,63397);_.AY.set(75,59972);_.AY.set(188,63385);_.AY.set(190,63384);_.AY.set(36,63387);
_.AY.set(35,63386);_.AY.set(37,63388);_.AY.set(39,63389);_.AY.set(79,63423);_.AY.set(87,63424);_.AY.set(107,63426);_.AY.set(109,63425);_.AY.set(65,63428);_.AY.set(83,63430);_.AY.set(68,63429);_.AY.set(221,63431);_.AY.set(219,63432);_.AY.set(97,63439);_.AY.set(98,63440);_.AY.set(99,63441);_.AY.set(100,63442);_.AY.set(101,63443);_.AY.set(102,63444);_.AY.set(103,63445);_.AY.set(104,63446);_.AY.set(105,63447);_.jQ=new Map;_.jQ.set(80,63390);_.jQ.set(78,63397);_.jQ.set(188,63400);_.jQ.set(190,63401);
_.jQ.set(191,60765);_.jQ.set(13,247917);_.Uw=new Map;_.kt=new Map;
}catch(e){_._DumpException(e)}
try{
var f7L,FXI,DhL,KXm;_.jdL=function(E){return E.ui.guideIsVisibleButNotPersistent};
_.Uhd=function(E){return E.ui.tabGesturesIsActive};
_.kB8=function(){var E=_.EF("service_worker_scope");try{return navigator.serviceWorker.getRegistration(E)}catch(B){return Promise.reject(B)}};
_.tR7=function(E){return!(!E||!E.pushManager)};
f7L=function(){return _.kB8().then(_.tR7).catch(function(){return!1})};
_.VRd=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?f7L():Promise.resolve(!1)};
_.qRs=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
FXI=function(){var E,B,I;return _.a(function(T){switch(T.nextAddress){case 1:return _.C(T,_.dB.getInstance(),2);case 2:E=T.yieldResult;if(!E){B=void 0;T.jumpTo(3);break}return _.C(T,E.get("lmqf"),4);case 4:B=T.yieldResult;case 3:switch((I=B)||(I="SD"),I){case "HD":return T.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return T.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return T.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return T.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return T.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
DhL=function(E){var B,I,T;return _.a(function(e){if(e.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.d("disable_av1_setting")){var c=window.localStorage["yt-player-av1-pref"];c=c==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":c==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else c="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(B=E===c)return e.jumpTo(2);T=I=E;return _.C(e,FXI(),3)}e.nextAddress!=2&&(B=T===e.yieldResult);return e.return(B)})};var R9T;var ErH=_.hc.IronButtonState,BMm=(0,_.zz)(HTMLElement);
_.wp({_template:function(){if(R9T!==void 0)return R9T;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;KXm===void 0&&(KXm=document.createElement("template"));var T=KXm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return R9T=E},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[ErH,_.Qi,_.sI,_.xf],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(E){var B=(0,_.Yq)(this);B.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:E});B.shadowRoot.appendChild(E);return BMm.prototype._attachDom.call(this,E)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var E=this.contentElement;E&&E.selectedItem&&this._setSelectedItem(E.selectedItem)},
get contentElement(){for(var E=_.QT(this.$.content).getDistributedNodes(),B=0,I=E.length;B<I;B++)if(E[B].nodeType===Node.ELEMENT_NODE)return E[B]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(E){this._setSelectedItem(E.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(E){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E)===this&&this.open()},
_selectedItemChanged:function(E){var B="";E?B=E.label||E.getAttribute("label")||E.textContent.trim():B="";this.value=B;this._setSelectedItemLabel(B)},
_computeMenuVerticalOffset:function(E,B){return B?B:E?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var E=this.opened?"true":"false",B=this.contentElement;B&&B.setAttribute("aria-expanded",E)}});_.nI=new _.F("navigateAction");var $8L=new _.F("formRenderer");var ML=function(){var E=_.l6.apply(this,arguments)||this;E.showInput=!1;return E};
_.L(ML,_.l6);_.l=ML.prototype;_.l.detached=function(){this.showInput&&window.removeEventListener("click",_.Kq(this,this.closeOnOutsideClick_))};
_.l.stopPropagation_=function(E){this.showInput&&E.stopPropagation()};
_.l.closeOnOutsideClick_=function(E){this.closeOnOutsideClickCondition(E)&&(this.showInput=!1,window.removeEventListener("click",_.Kq(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.l.closeOnOutsideClickCondition=function(){return!0};
_.l.closeOnOutsideClickHandler=function(){};
_.l.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Kq(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.l.openOnClickHandler=function(){};
_.l.showInputChanged=function(){};
_.l.setShowInput=function(E){this.showInput=E};
ML.prototype.setShowInput=ML.prototype.setShowInput;ML.prototype.showInputChanged=ML.prototype.showInputChanged;ML.prototype.openOnClickHandler=ML.prototype.openOnClickHandler;ML.prototype.openOnClick_=ML.prototype.openOnClick_;ML.prototype.closeOnOutsideClickHandler=ML.prototype.closeOnOutsideClickHandler;ML.prototype.closeOnOutsideClickCondition=ML.prototype.closeOnOutsideClickCondition;ML.prototype.closeOnOutsideClick_=ML.prototype.closeOnOutsideClick_;ML.prototype.stopPropagation_=ML.prototype.stopPropagation_;
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ML.prototype,"showInput",void 0);_.k([_.RN("click"),_.RN("keydown"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],ML.prototype,"stopPropagation_",null);_.k([_.EM("showInput"),_.t("design:type",Function),_.t("design:paramtypes",[Boolean]),_.t("design:returntype")],ML.prototype,"showInputChanged",null);ML=_.k([_.cl()],ML);_.Iss=[ML.prototype];var TMg;var efH;var HJ=function(){return _.r.apply(this,arguments)||this};
_.L(HJ,_.r);_.l=HJ.prototype;_.l.computePreselectedOption=function(E,B){return B===this.itemSelected_?E:void 0};
_.l.dataChanged_=function(){var E=this;this.preselectedSubreason=this.itemSelected_=-1;var B;(B=this.data)!=null&&B.key&&_.AJ(this,function(){var I,T=Number((I=E.data)==null?void 0:I.key);!Number.isNaN(T)&&(E.itemSelected_=T,I=(I=(E.data.items||[])[T])&&I.optionSelectableItemRenderer&&I.optionSelectableItemRenderer.preselectedIndex)&&(E.preselectedSubreason=I)})};
_.l.isSubReasonHidden_=function(E,B){return E!=B};
_.l.onTopItemSelected_=function(E,B){for(var I=_.n(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),T=0,e=I.length;T<e;T++)I[T].select(0);_.I2(this.hostElement,"yt-report-form-update",[B.item.value]);E.stopPropagation()};
_.l.onItemSelected_=function(E,B){_.I2(this.hostElement,"yt-report-form-update",[B.item.value]);E.stopPropagation()};
_.l.getItem_=function(E){return E.serviceItem?E.serviceItem:E.navigationItem?E.navigationItem:E.optionSelectableItemRenderer?E.optionSelectableItemRenderer:null};
_.l.computeText_=function(E){return(E=this.getItem_(E))?this.ytRendererBehavior.getSimpleString(E.text):null};
_.l.validate=function(){return this.itemSelected_!==-1};
_.l.computeAriaLabel_=function(E){var B=_.U3(E.text);(E=E.accessibility&&E.accessibility.accessibilityData&&E.accessibility.accessibilityData.label)&&(B+=". "+E);return B};
_.l.computeItemSelected_=function(E){return E};
_.l.preventSelection_=function(E){E.stopPropagation();this.tooltipTapped=!0};
_.l.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.l.updateItemSelectedFromBinding=function(E){this.itemSelected_=E.detail.value};
_.l.save=function(){var E;this.validate()&&(E=this.data)!=null&&E.items&&(E=this.data.items[this.itemSelected_],E!=null&&E.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(E.optionSelectableItemRenderer.submitEndpoint)||_.l1(this.hostElement,[E.optionSelectableItemRenderer.submitEndpoint])))};
HJ.prototype.onPaperRippleTransitionEnd_=HJ.prototype.onPaperRippleTransitionEnd_;HJ.prototype.dataChanged_=HJ.prototype.dataChanged_;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],HJ.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],HJ.prototype,"data",void 0);_.k([_.X({value:-1}),_.t("design:type",Number)],HJ.prototype,"itemSelected_",void 0);
_.k([_.X({computed:"computeItemSelected_(itemSelected_)"}),_.t("design:type",Number)],HJ.prototype,"value",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],HJ.prototype,"restoreFocusOnClose",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],HJ.prototype,"tooltipTapped",void 0);_.k([_.X({value:-1}),_.t("design:type",Number)],HJ.prototype,"preselectedSubreason",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HJ.prototype,"dataChanged_",null);_.k([_.RN("transitionend"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HJ.prototype,"onPaperRippleTransitionEnd_",null);HJ=_.k([_.QE({is:"yt-options-renderer",disableElementRegistration:!0})],HJ);
_.A(HJ,"yt-options-renderer",function(){if(efH===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;TMg===void 0&&(TMg=document.createElement("template"));var T=TMg;I.call(B,T.content.cloneNode(!0),E.content.firstChild);efH=E}E=efH;return E},{mode:2});var lsT;var cit;var ibt;var pML;var Yxs;var asm;var NL=function(){return _.r.apply(this,arguments)||this};
_.L(NL,_.r);NL.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
NL.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
NL.prototype.onTap=function(E){if(this.hostElement.classList.contains("selected")||_.eY(this.hostElement,"yt-share-panel-can-select-contact-action"))E&&E.detail&&(E.detail.x||E.detail.y)&&_.n(this.hostElement).querySelector("#target").blur(),(E=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),E={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:E?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.I2(this.hostElement,"yt-share-panel-select-contact-action",[E])};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.k([_.X({observer:"onDataChanged"}),_.t("design:type",Object)],NL.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.t("design:type",String)],NL.prototype,"componentTitle",void 0);_.k([_.$7("#thumbnail"),_.t("design:type",Object)],NL.prototype,"thumbnail",void 0);NL=_.k([_.QE({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],NL);
_.A(NL,"yt-enrolled-contact-renderer",function(){if(asm===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;Yxs===void 0&&(Yxs=document.createElement("template"));var T=Yxs;I.call(B,T.content.cloneNode(!0),E.content.firstChild);asm=E}E=asm;return E},{mode:2});var vr2;var yiT;var ge=function(){return _.r.apply(this,arguments)||this};
_.L(ge,_.r);ge.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
ge.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
ge.prototype.onTap=function(E){if(this.hostElement.classList.contains("selected")||_.eY(this.hostElement,"yt-share-panel-can-select-contact-action"))E&&E.detail&&(E.detail.x||E.detail.y)&&_.n(this.hostElement).querySelector("#target").blur(),(E=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),E={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:E?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.I2(this.hostElement,"yt-share-panel-select-contact-action",[E])};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.k([_.X({observer:"onDataChanged"}),_.t("design:type",Object)],ge.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.t("design:type",String)],ge.prototype,"componentTitle",void 0);_.k([_.$7("#thumbnail"),_.t("design:type",Object)],ge.prototype,"thumbnail",void 0);ge=_.k([_.QE({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],ge);
_.A(ge,"yt-suggested-contact-renderer",function(){if(yiT===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;vr2===void 0&&(vr2=document.createElement("template"));var T=vr2;I.call(B,T.content.cloneNode(!0),E.content.firstChild);yiT=E}E=yiT;return E},{mode:2});var SB=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-share-panel-reset-action":"onReset"};return E};
_.L(SB,_.r);SB.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"}}}}}};
SB.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.I2(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
SB.prototype.onReset=function(){for(var E=_.n(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),B=E.length-1;B>=0;B--)E[B].classList.toggle("selected")};
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],SB.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X({observer:"onDataChanged"}),_.t("design:type",Object)],SB.prototype,"data",void 0);
SB=_.k([_.QE({is:"yt-contact-section-renderer",disableElementRegistration:!0})],SB);
_.A(SB,"yt-contact-section-renderer",function(){if(pML===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;ibt===void 0&&(ibt=document.createElement("template"));var T=ibt;I.call(B,T.content.cloneNode(!0),E.content.firstChild);pML=E}E=pML;return E},{mode:2});var J7=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return E};
_.L(J7,_.r);_.l=J7.prototype;_.l.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"}}}};
_.l.onYtRefreshFormCommand=function(E){var B;(E=_.h((B=_.h(E,_.VwZ))==null?void 0:B.formRenderer,$8L))&&this.set("data",E)};
_.l.reset=function(){var E=_.n(this.hostElement).querySelector("#fields").children;E=_.p(E);for(var B=E.next();!B.done;B=E.next())B=B.value,B.reset&&B.reset()};
_.l.getForm=function(){var E={},B=_.n(this.hostElement).querySelector("#fields").children;B=_.p(B);for(var I=B.next();!I.done;I=B.next()){I=I.value;if(!I.validate())return null;E[I.data.key]=I.value}return E};
_.l.submitFormFields=function(){if(this.fields)for(var E=_.p(this.fields),B=E.next();!B.done;B=E.next())B=B.value,B.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?B.save():B.nodeName==="YT-OPTIONS-RENDERER"&&B.save()};
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],J7.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],J7.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],J7.prototype,"data",void 0);_.k([_.eV("#fields > *"),_.t("design:type",Array)],J7.prototype,"fields",void 0);
J7=_.k([_.QE({is:"yt-form-renderer",disableElementRegistration:!0})],J7);
_.A(J7,"yt-form-renderer",function(){if(cit===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;lsT===void 0&&(lsT=document.createElement("template"));var T=lsT;I.call(B,T.content.cloneNode(!0),E.content.firstChild);cit=E}E=cit;return E},{mode:2});var Cl1;var WJ=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return E};
_.L(WJ,_.r);WJ.prototype.onCheckboxChange=function(E){this.data&&(E=(this.checked=_.XN(E).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}})};
WJ.prototype.handleUpdateCheckboxCommand=function(E){(E=_.h(E,_.pRV))&&this.data&&this.data.id===E.id&&(this.set("data.disabled",E.disabled),this.set("data.title",E.title))};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],WJ.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],WJ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],WJ.prototype,"checked",void 0);WJ=_.k([_.b({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],WJ);
_.A(WJ,"ytd-settings-checkbox-renderer",function(){if(Cl1!==void 0)return Cl1;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Cl1=E},{mode:1});var wM2;var XB=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return E};
_.L(XB,_.r);XB.prototype.dataChanged=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return E.radio.removeAttribute("checked"),!E.data||!E.data.id||E.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.qRs()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(B=E.data&&E.data.id)?_.C(I,DhL(E.data.id),4):I.jumpTo(3):(E.set("data.hidden",!0),I.jumpTo(0));I.nextAddress!=3&&(B=I.yieldResult);B&&_.I2(E.hostElement,"yt-select-settings-radio-option",[E.data.id]);_.ER(I)})};
XB.prototype.onButtonChanged=function(E){_.XN(E).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.Q().resolve(_.Dt).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.I2(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
XB.prototype.onSelectOption=function(E){this.data&&this.data.id&&(this.data.id===E?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
XB.prototype.dataChanged=XB.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],XB.prototype,"ytActionHandlerBehavior",void 0);_.k([_.$7("#radio"),_.t("design:type",Object)],XB.prototype,"radio",void 0);_.k([_.X(),_.t("design:type",Object)],XB.prototype,"data",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype",Promise)],XB.prototype,"dataChanged",null);XB=_.k([_.b({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],XB);
_.A(XB,"ytd-settings-radio-option-renderer",function(){if(wM2!==void 0)return wM2;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return wM2=E},{mode:1});var Zb8;var re=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return E};
_.L(re,_.r);
re.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"}}}};
re.prototype.handleUpdateTextCommand=function(E){(E=_.h(E,_.YkR))&&this.data&&this.data.id===E.id&&this.set("data",E)};
re.prototype.handleUpdateConnectedAppRendererCommand=function(E){if(_.h(E,_.yPh)&&this.data){var B,I;if(E=(B=_.h(E,_.yPh))==null?void 0:(I=B.newConnectedAppRenderer)==null?void 0:I.connectedAppRenderer)this.data=E}};
re.prototype.computeConnectedAppStyle=function(E){return E.style?E.style.toLowerCase().replace(/_/g,"-"):""};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],re.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],re.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.t("design:type",String)],re.prototype,"connectedAppStyle",void 0);re=_.k([_.b({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],re);
_.A(re,"ytd-connected-app-renderer",function(){if(Zb8!==void 0)return Zb8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Zb8=E},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.hV("iuT5Oc");

_.s7();
}catch(e){_._DumpException(e)}
try{
_.hV("L3n37");
var BRI=_.wA(115994),$Om=_.wA(115993),IHH=function(E,B,I){var T=this;var e=I.dragDownAction;this.layer=0;this.JSC$20364_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return T.dragDownAction()}}}};
this.JSC$20364_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return T.dragDownAction()}}}};
this.fullscreen=!1;var c=_.lu();_.eu(c,BRI,this.layer);_.eu(c,$Om,this.layer);this.dragDownAction=function(){e();_.np(c,{visualElement:T.fullscreen?BRI:$Om})};
this.gesture=new _.Il(E,B,this.JSC$20364_watchConfig,"pandown");this.attach()};
IHH.prototype.attach=function(){this.gesture.attach()};
IHH.prototype.detach=function(){this.gesture.detach()};
IHH.prototype.update=function(E){this.fullscreen=E;this.gesture.config=E?this.JSC$20364_watchFullScreenConfig:this.JSC$20364_watchConfig};var TRT={},eRm=["learning-journey-engagement-panel","PAlearning_chat"];
TRT.YtdLearningJourneyWatchBehavior=[_.R.YtRendererBehavior,_.Wy.YtPlayerListenerBehavior,_.kC.YtRendererstamperBehavior,_.th.YtActionHandlerBehavior,_.dO.YtPageBehavior,_.BF.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)"},hasLearningJourneyPanels:{type:Boolean,reflectToAttribute:!0,computed:"getHasLearningJourneyPanels(learningJourneyEngagementPanels,hasLearningJourneyPanelsValue)"},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 _.gU("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.d("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 _.gU("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 _.d("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.d("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},richItemMinWidth:{type:Number,value:function(){return _.RI("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.RI("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.d("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.d("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.d("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("web_watch_rounded_player_large")||_.d("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_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.d("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.d("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.d("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("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 _.d("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.d("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 _.d("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var E={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:_.h7(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.h7(["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"||_.d("swa_prov_panels_ks")?this.is==="ytd-watch-learning-journey"?(E.learningJourneyEngagementPanels={id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},E.nonLearningJourneyEngagementPanels=
{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):E.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(E.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},E.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}},reuseComponents:!1});return E},
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 E=this;this.watchController=void 0;this.pageDisposeJobs=[function(){E.showMetadataPlaceholder_()},
function(){_.d("web_watch_dont_clear_comments")||E.clearComments_()},
function(){E.clearPlayerAds_()},
function(){E.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;_.d("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.d("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.gcT(function(){return _.Ak(E)},this.hostElement);
this.pageDisposeJobs.push(function(){E.youThereManager_.reset()});
_.d("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){E.resetFullerscreenEduButtonForNewPlayback_()}));
_.d("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.lo;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;_.d("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.d("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));_.d("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Kq(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(E){E&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:E}),E.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(E){_.d("kevlar_watch_flexy_theater_manager")&&(this.theater=E,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.d("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(E){!_.d("kevlar_watch_while_v2")&&!_.d("web_watch_pip")||E||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(E){this.active!==void 0&&(this.fullscreen=E,_.d("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(E){this.active!==void 0&&(_.$O(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.d("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.d("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(E>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(E){this.initCsi_();this.updatePageData_(E)},
updatePageData_:function(E){var B=this;if(E)if(this.data===E){this.onPageLoadWithSameData_();var I;(I=this.watchController)==null||_.bH(I,this.data)}else this.data=E;this.playlist&&_.LO({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.nO("nw");this.loading=!1;_.PC(_.Ll,function(){B.initDclkstatus_();var T,e=((T=B.player)==null?void 0:T.getVideoData().cpn)||"";_.zII(function(c,Y){_.gaI(c,Y,e)})})},
onPageLoadWithSameData_:function(){_.d("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 E=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!E);this.set("loadingData.playlistLoading",E&&E!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),E=this.watchNextSkeletonEl_.firstElementChild;E;)E.classList.remove("hidden"),E=E.nextElementSibling;if(_.d("kevlar_watch_frame0_loading_state")){var B,I,T;E=(B=this.loadingData)==null?void 0:(I=B.endpoint)==null?void 0:(T=I.watchEndpoint)==null?void 0:T.videoId;var e;E&&(e="https://i.ytimg.com/vi/"+E+"/frame0.jpg");_.n(this.hostElement).querySelector("#player").style.backgroundImage=e?"url("+e+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var E=_.n(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&E&&(E.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var B,I;(I=(B=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(B);var T,e;(e=(T=this.watchMetadata).resize)==null||e.call(T)}_.d("kevlar_watch_frame0_loading_state")&&(_.n(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(E){var B=_.n(this.hostElement).querySelector(E);B?_.EK(B,!1):_.OG(new _.P7("Overscroll monitor not found for component: ",E))},
removeSplitScrollMouseTrap:function(E){var B=_.n(this.hostElement).querySelector(E);B?_.BN(B):_.OG(new _.P7("Disposal component for  overscroll monitoring not found: ",E))},
onLoadingChanged_:function(E){E?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(E){var B=this;E?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Ll.addLowPriorityJob(function(){B.onWindowResized_(_.v8(!0))})},
updateTheaterModeState_:function(E){if(!_.d("kevlar_watch_flexy_theater_manager")){E=E||this.fullWindowMode_;if(this.theater!==void 0||E)this.theater=E;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();E&&_.Na7()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var E=this.theater;_.d("external_fullscreen")&&this.fullscreen&&(E=!0);E=E?_.n(this.hostElement).querySelector("#player-full-bleed-container"):_.n(this.hostElement).querySelector("#player-container-inner");var B=this.getPlayerContainer(),I=_.d("kevlar_watch_while_v2")||_.d("web_watch_pip");B.parentElement!==E&&(I&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Ak(this).appendTo(E,B),E.appendChild(_.n(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var E=this;return _.a(function(B){if(B.nextAddress==1)return _.C(B,_.Q().resolve(_.W3).deactivate(),2);E.updatePlayerLocation();_.ER(B)})},
updateCinematicsLocation:function(){var E=this.getElement("CINEMATICS");if(E){var B=this.getCinematicsLocationContainer();E.parentElement!==B&&B.appendChild(E);var I;(I=this.watchController)==null||_.Cet(I)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.n(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.n(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(E,B){var I=document.documentElement.hasAttribute("dark"),T=I&&_.d("web_cinematic_theater_mode"),e=I&&_.d("web_cinematic_fullscreen");I=!I&&this.cinematicLightTheme;return E&&T||B&&e||(B||E)&&I},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var E=this,B;(B=this.watchController)==null||_.bH(B,this.data);_.d("kevlar_watch_flexy_comments_manager")||this.initComments_();_.d("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Q().resolve(_.Hx).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,_.d("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Ll.addLowPriorityJob(function(){_.Ta(E.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.d("web_watch_start_chat_in_theater_mode")){var I,T,e;if((I=this.data)==null?0:(T=I.contents)==null?0:(e=T.twoColumnWatchNextResults)==null?0:e.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var c,Y;((c=this.data)==null?0:(Y=c.contents)==null?0:Y.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(E){var B;(B=this.watchController)==null||_.rc(B,this.playerData);E&&E.playabilityStatus&&(B=this.isVideoPlayable_(E.playabilityStatus,this.getPlayerOverlays_(this.data)),E=this.isLiveStreamOffline_(E.playabilityStatus),B&&!E||_.AJ(this,function(){_.nO("pbu")}));
this.setPlayerAds_();_.Ta(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(E){_.t2().dispatch(_.GZL(this.active));E?this.activate_():this.deactivate_()},
attached:function(){var E=this;this.watchController=new _.Xb(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.rc(this.watchController,this.playerData);this.data&&_.bH(this.watchController,this.data);_.d("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var B=_.Ak(this);_.d("kevlar_disable_prepare_player")||B.preparePlayer();
_.d("kevlar_watch_flexy_playlist_manager")||_.Q().resolve(_.Hx).setPlayer(B);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();B={"--ytd-watch-flexy-scrollbar-width":_.zo()+"px"};this.is==="ytd-watch-grid"&&(B["--ytd-watch-flexy-sidebar-width"]=_.Wq+"px",B["--ytd-watch-grid-horizontal-page-margins"]=_.gD+"px",B["--ytd-watch-grid-columns-top-margins"]=_.wQs+"px",B["--ytd-watch-grid-min-player-height-medium"]="360px");!_.RI("kv_pl_mx_sz_ks")&&_.RI("kevlar_watch_max_player_width")&&
(B["--ytd-watch-flexy-max-player-width-wide-screen"]=_.zq9+"px");_.RI("kevlar_watch_flexy_metadata_height")&&(B["--ytd-watch-flexy-space-below-player"]=_.mws+"px");this.safeUpdateStyles(B);_.d("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new IHH(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return E.onPlayerTouchPanDown_()}}));
_.d("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.n(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var E=_.zo(),B=_.Sq+E,I=B;this.fixedPanels&&(B+=_.Wq);var T=657+E;E=1327+E;_.n(this.hostElement).querySelector("#two-column-query").query="(min-width: "+B+"px)";_.n(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(T+"px), (min-height: 630px) and (min-width: ")+(B+"px) and (max-width: ")+(E+"px)");_.n(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(E+"px)");_.n(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+I+"px)"},
calculateCurrentPlayerSize_:function(){var E=_.n(this.hostElement).querySelector("#miniplayer-bar").firstChild;return E&&E.active||this.theater||_.d("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.KK(NaN,NaN):_.jE(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.jE(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.bl(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var E=this;this.onWindowResized_(_.v8());_.d("browse_skeleton_removal_on_watch_killswitch")||_.gU("IS_SHELL_LOAD")&&_.uvO();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var B=_.Ak(this);B.addEventListener("yt-player-updated",_.Kq(this,this.onPlayerUpdated_));B.getPlayerPromise().then(function(I){E.playerApiReady_(I)});
_.d("kevlar_watch_flexy_playlist_manager")||(B=_.Q().resolve(_.Hx),_.d("kevlar_watch_observe_playlist_navigations_killswitch")&&B.addEventListener("yt-navigate",_.Kq(this,this.onYtNavigate_)),B.setPlaylistComponent(_.n(this.hostElement).querySelector("#playlist")),B.addEventListener("yt-playlist-data-updated",_.Kq(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Ll.addLowPriorityJob(function(){_.$O(E.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Ak(this).removeEventListener("yt-player-updated",_.Kq(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.d("kevlar_watch_flexy_playlist_manager")){var E=_.Q().resolve(_.Hx);_.d("kevlar_watch_observe_playlist_navigations_killswitch")&&E.removeEventListener("yt-navigate",_.Kq(this,this.onYtNavigate_));
E.cancelVideoSkip();E.removeEventListener("yt-playlist-data-updated",_.Kq(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.d("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.$O(this.hostElement,"yt-autonav-pause-player",!1);E=_.KC();_.d("kevlar_exit_fullscreen_leaving_watch")&&E&&_.RO(E)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(E){this.player&&this.player.updateVideoData({rvs:E.rvs})},
getPageContents:function(E){return E&&E.contents&&E.contents.twoColumnWatchNextResults&&E.contents.twoColumnWatchNextResults.results&&E.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(E){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",E)},
onRetrieveLocation_:function(E,B){B.hasComments?B.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):B.locationRetrieved("/related_ajax",void 0);E.stopPropagation()},
onSubscriptionChanged_:function(E,B){this.player&&(B?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Qg("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.n(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.n(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(E){this.player=E;this.setPlayerState(E.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.d("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.d("kevlar_unified_player")||_.d("kevlar_player_new_bootstrap_adoption"))&&_.k6()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(E,B){B=B===void 0?!0:B;_.KC()&&_.d("external_fullscreen")&&_.RO(document.documentElement);this.theaterRequested_=E;B&&_.yZ("wide",E?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.d("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.I2(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.$O(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(E){_.ni(E,typeof this.player),this.player&&_.ni(E,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var E;((E=this.player)==null?0:E.isFullscreen())?this.player.toggleFullscreen():_.I2(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(E,B){return this.loading?B:!!Object.keys(E).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(E){if(E){E=_.p(E);for(var B=E.next();!B.done;B=E.next())B=B.value,B.youThereRenderer&&_.Wum(this.youThereManager_,B.youThereRenderer)}},
setPlaylistData_:function(E){return E||{}},
userEngagementConfigDataChanged_:function(E){if(E)if(E.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var B=this.youThereManager_;_.DD()<E.lowEngagementThresholdMs||_.oct(B,!0)}else E.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.I2(this.hostElement,"yt-autonav-pause-user-engagement",[E])},
isPlayerUnavailable_:function(E,B,I){return!!E&&!this.isVideoPlayable_(E,I)&&!B},
getPlayerOverlays_:function(E){return(E==null?void 0:E.playerOverlays)||null},
isVideoPlayable_:function(E,B){if(!E)return!1;var I=E.status==="OK"||E.status==="LIVE_STREAM_OFFLINE",T=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",E)||this.get("errorScreen.ypcTrailerRenderer",E);E=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",E);var e;B=B==null?void 0:(e=B.playerOverlayRenderer)==null?void 0:e.gatedActionsOverlayRenderer;return!!I||!!T||!!E||!!B},
hasWatchNextResponseErrorRenderer:function(E){var B=this.getPageContents(E),I,T,e,c,Y;return!(E==null?0:(I=E.contents)==null?0:(T=I.twoColumnWatchNextResults)==null?0:T.secondaryResults)&&!!((e=B[0])==null?0:(c=e.itemSectionRenderer)==null?0:(Y=c.contents[0])==null?0:Y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(E){return E?E.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(E,B,I){var T=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",B),e=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];e=_.d("web_no_skip_video_on_verification_checks")?(E==null?void 0:E.status)&&e.includes(E.status):E&&E.status==="AGE_CHECK_REQUIRED";var c=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",E);c==void 0&&(c=!0);!I||this.isVideoPlayable_(E,this.getPlayerOverlays_(B))||
T||e||!c||_.Q().resolve(_.Hx).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Lu1()},
onPlayerFeedbackStartRequest_:function(E){_.I2(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:E}])},
onPlayerFeedbackArticleRequest_:function(E){_.I2(this.hostElement,"yt-help-dialog-requested",[E])},
onPlayerYpcContentRequest_:function(){var E,B,I,T,e,c,Y,v,y=((E=this.data)==null?NaN:(B=E.contents)==null?NaN:(I=B.twoColumnWatchNextResults)==null?NaN:(T=I.secondaryResults)==null?NaN:(e=T.secondaryResults)==null?NaN:(c=e.offerModule)==null?NaN:(Y=c.tvfilmOfferModuleRenderer)==null?NaN:(v=Y.actionButtons)==null?NaN:v.length)-1;E=[".offerButton.buttonRenderer.",".actionButtons."+(y>=0?y:0)+".buttonRenderer."];B=_.p(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=B.next();!I.done;I=B.next())for(I=I.value,T=_.p(E),e=T.next();!e.done;e=T.next())if(e="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+e.value,e=this.get(e+"navigationEndpoint",this.data)||this.get(e+"serviceEndpoint",this.data)||this.get(e+"command",this.data)){_.$g(e,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(E){_.$O(this.hostElement,"yt-autonav-pause-player",E)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(E){E()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(E){switch(E){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(E){switch(E){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.$O(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(E)},
setPlayerState:function(E){_.t2().dispatch(_.Dr6(E))},
onPlayerSubscribe_:function(E){_.I2(this.hostElement,"yt-player-subscribe",[E])},
onPlayerUnsubscribe_:function(E){_.I2(this.hostElement,"yt-player-unsubscribe",[E])},
onPlayerAdYtShowToast_:function(E){_.I2(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:E.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(E){if(E)return E},
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(E){return!_.d("web_watch_move_summary_to_sd")&&!!E},
computeWatchMetadataRefresh:function(){return _.d("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var E,B,I,T;this.watchNextSecondaryResults=(E=this.data)==null?void 0:(B=E.contents)==null?void 0:(I=B.twoColumnWatchNextResults)==null?void 0:(T=I.secondaryResults)==null?void 0:T.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.d("swatcheroo_pbs_load_grid")&&!_.d("swatcheroo_provide_all_data_on_scheduled_job")){_.Ll.cancelJob(this.setRichGridJobId_);var E,B,I,T,e,c,Y;this.setRichGridRendererData((E=this.data)==null?void 0:(B=E.contents)==null?void 0:(I=B.twoColumnWatchNextResults)==null?void 0:(T=I.secondaryResults)==null?void 0:(e=T.secondaryResults)==null?void 0:(c=e.results)==null?void 0:(Y=c[0])==null?
void 0:Y.richGridRenderer)}},
setRichGridRendererData:function(E){this.richGridRendererData=E},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var E,B=(E=this.data)==null?void 0:E.engagementPanels;if(B==null?0:B.length){E=null;B=_.p(B);for(var I=B.next();!I.done;I=B.next()){I=I.value;var T=void 0;if(((T=I.engagementPanelSectionListRenderer)==null?void 0:T.targetId)==="engagement-panel-structured-description"){E=I;break}}var e,c,Y;E=(e=E)==null?void 0:(c=e.engagementPanelSectionListRenderer)==null?void 0:(Y=c.content)==null?void 0:Y.structuredDescriptionContentRenderer;if(E==null?0:E.items){e=
[];c=_.p(E.items);for(Y=c.next();!Y.done;Y=c.next()){Y=Y.value;if(!_.d("sd_horizontal_list_show_nav_killswitch")){var v=T=I=B=E=void 0,y=void 0,Z=(E=Y.horizontalCardListRenderer)==null?void 0:(B=E.header)==null?void 0:(I=B.richListHeaderRenderer)==null?void 0:(T=I.navigationButton)==null?void 0:(v=T.buttonRenderer)==null?void 0:(y=v.command)==null?void 0:y.commandExecutorCommand;Z&&Z.commands&&(Z.commands=Z.commands.filter(function(P){return!_.h(P,_.SBI)}))}Y.expandableVideoDescriptionBodyRenderer||
Y.videoDescriptionHeaderRenderer||e.push(Y)}return{items:e}}}},
constructWarning_:function(E){return{text:_.jj(E),type:"WARNING"}},
isPlaShelfEnabled_:function(E){if((this.get("adPlacements",E)||[]).length)return!0;E=this.get("playerAds",E)||[];return!(!E.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",E[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var E=this;_.$O(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.d("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var B=this.getScrollTop()>0;this.gestures_&&(B?this.gestures_.detach():this.gestures_.attach());B!==this.showFullerscreenEdu_&&_.d("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=B,_.Ak(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(E.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.$O(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var E=this;this.commentsReady=!1;_.Ll.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.PC(_.Ll,function(){E.setComments_()},1E3)},
setComments_:function(){if(!_.d("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.nO("cmi");_.Ll.cancelJob(this.setCommentsJobId_);var E=this.getPageContents(this.data);if(E&&E.length){E=_.p(E);for(var B=E.next();!B.done;B=E.next())if(B=B.value,this.get("itemSectionRenderer.sectionIdentifier",B)==="comment-item-section"){this.comments=B.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.$O(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.d("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.d("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.nO("cmc")},
doRemoveComments_:function(){this.comments={};_.d("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Ll.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Ll.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(E,B){var I=_.h(B.endpoint,_.kh);I&&(!(B=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==B.videoId||I.playlistId&&I.playlistId!==B.playlistId||I.index!==void 0&&I.index!==B.index||typeof I.startTimeSeconds!=="number"||(E.stopPropagation(),this.setScrollTop(0),_.Ak(this).getPlayerPromise().then(function(T){var e=I.startTimeSeconds;T.seekTo(e);T.wakeUpControls();e<T.getDuration()&&T.playVideo()})))},
updatePlayerStartTime_:function(){var E=_.PeO();"t"in E&&(E=_.ufO(E.t),this.player.seekTo(E,!0))},
updateTitleFromWatchNext:function(E){E=this.getPageContents(E);var B,I;(E=_.U3(E==null?void 0:(B=E[0])==null?void 0:(I=B.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.$O(this.hostElement,"yt-update-title",E)},
updateTitle_:function(E){E=this.get("videoDetails.title",E)||"";_.$O(this.hostElement,"yt-update-title",E)},
syncWithRemoteVideo_:function(E,B,I){if(this.active&&this.player){var T=this.player.getVideoData();if(T.video_id===I&&(I=T.list,_.d("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),T.video_id!==E||I!=B)){var e;_.d("kevlar_player_watch_endpoint_navigation")?e=_.FHc(_.mxd(E,B)):e=this.buildWatchEndpoint_(E,B);_.$O(this.hostElement,"yt-navigate",{endpoint:e,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(E,B,I){return _.DB(E,B,I)},
initDclkstatus_:function(){_.hIL()},
attachWatchPageSkeleton_:function(){var E=document.querySelector("#watch-page-skeleton");if(E){var B=E.querySelector("#primary-info"),I=E.querySelector("#secondary-info"),T=E.querySelector("#related");B&&_.n(this.hostElement).querySelector("#info-skeleton").appendChild(B);I&&_.n(this.hostElement).querySelector("#meta-skeleton").appendChild(I);T&&(_.n(this.hostElement).querySelector("#related-skeleton").appendChild(T),this.watchNextSkeletonEl_=T);_.ii(E)}},
handlePlayerUpdated_:function(){_.Ak(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(E,B){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof B!=="undefined"){var I=this.watchNextSkeletonEl_.children,T=E&&E.indexSplices.length?E.indexSplices[0].index:0;E=Math.min(this.watchNextShownItems.length,I.length);B||(T=0,E=I.length);for(B=T;B<E;B++)I[B].classList.add("hidden")}},
onPlayerFullscreenChange_:function(E){_.d("external_fullscreen")||_.I2(this.hostElement,"yt-player-fullscreen",[E.fullscreen])},
onFullscreenChange_:function(E){this.fullscreen=E;this.gestures_&&this.gestures_.update(this.fullscreen);var B=_.Ak(this);B.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.KC())});
this.updateFullBleedElementLocations();E&&(B.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(E,B){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!B},
computeIsDonationShelfCollapsed_:function(E){return E},
computeShouldShowMerchShelf:function(E,B){return B&&!!E},
computeResponseHasComments:function(E){var B,I,T,e,c;return!!(E==null?0:(B=E.contents)==null?0:(I=B.twoColumnWatchNextResults)==null?0:(T=I.results)==null?0:(e=T.results)==null?0:(c=e.contents)==null?0:c.some(function(Y){var v;return(Y==null?void 0:(v=Y.itemSectionRenderer)==null?void 0:v.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(E,B,I,T){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&T?!1:!!E&&!!Object.keys(E).length&&!B},
identity:_.JD,onWindowResized_:function(E){this.windowSize_=E;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.d("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.d("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(E){var B=this;E&&E.type!=="dataloaded"&&E.type!=="dataupdated"||_.Ak(this).getPlayerPromise().then(function(I){var T=I.getPlayerState();T!==5&&T!==0&&(I=1/I.getVideoAspectRatio(),B.videoHeightToWidthRatio_!==I&&(B.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(E){var B=this,I=_.d("kevlar_watch_while_v2")||_.d("web_watch_pip"),T=function(){if(B.watchMetadata){var e,c;(c=(e=B.watchMetadata).resize)==null||c.call(e)}_.Ak(B).getPlayerPromise().then(function(Y){if(_.d("kevlar_set_internal_player_size")){if(!I||!B.isMiniplayerActive()){var v=B.calculateCurrentPlayerSize_();Y.setInternalSize(v.width,v.height)}}else Y.setSize(NaN,NaN);_.d("kevlar_watch_while")&&B.updateWatchWhileScrollThreshold_()})};
E?T():_.dT(_.Ll,T)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(E){this.set("data.survey",E.detail)},
onYtShowSurveyCommand_:function(E){this.set("data.survey",_.h(E,_.ND2).survey)},
onDownloadedVideoDeleted:function(E){var B=this,I,T;return _.a(function(e){if(e.nextAddress==1){if(!B.active||(I=B.playerData)==null||!I.offlineState||B.videoId!==E)return e.return();(T=B.player)==null||T.stopVideo();_.vx().navigatingAwayFromWatchDeletedVideo=!0;_.$g(_.oXF,B.hostElement);return _.C(e,_.vx().navigationFinishPromise,2)}_.vx().navigatingAwayFromWatchDeletedVideo=!1;_.ER(e)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var E;this.theater?E=_.H3(.5625*this.windowSize_.width,480,this.windowSize_.height-185):E=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==E&&(this.watchWhileScrollThreshold_=E,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var E=_.n(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&E){var B=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!E.active&&B&&I>=this.watchWhileScrollThreshold_?(E.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):E.active&&(!B||I<this.watchWhileScrollThreshold_&&!_.KC())&&(E.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var E=_.n(this.hostElement).querySelector("#secondary-inner");if(E){var B=_.n(this.hostElement).querySelector("#below"),I=_.n(this.hostElement).querySelector("#secondary"),T=_.n(this.hostElement).querySelector("#comments");T&&I&&B&&(this.defaultTwoColumnLayout?(E.appendChild(T),I.appendChild(E)):(B.appendChild(T),_.Nx(B,E)))}}},
isTwoColumnsChanged_:function(E,B){if(E!==!0||B!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(E=_.n(this.hostElement).querySelector("#secondary-inner"))){B=_.n(this.hostElement).querySelector("#below");var I=_.n(this.hostElement).querySelector("#secondary"),T=_.n(this.hostElement).querySelector("#comments");T&&I&&B&&(this.isTwoColumns_?(E.appendChild(T),I.appendChild(E)):(B.appendChild(T),_.Nx(B,E)))}}else{E=!_.d("live_chat_over_engagement_panels");B=_.n(this.hostElement).querySelector("#chat-container");
I=_.n(this.hostElement).querySelector("#plj-sidebar");T=_.n(this.hostElement).querySelector("#panels");var e=_.n(this.hostElement).querySelector("#plj-panels"),c=_.n(this.hostElement).querySelector("#plj-playlist"),Y=_.n(this.hostElement).querySelector("#alerts"),v=_.n(this.hostElement).querySelector("#playlist"),y=_.n(this.hostElement).querySelector("#related"),Z=_.n(this.hostElement).querySelector("#donation-shelf"),P=_.n(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Y=_.n(this.hostElement).querySelector("#secondary-inner"),
Y.appendChild(I),I.appendChild(c),c.appendChild(v),I.appendChild(e),E&&Y.appendChild(T),_.d("web_watch_theater_chat")||Y.appendChild(B),E||Y.appendChild(T),Y.appendChild(Z),Y.appendChild(y)):(E&&_.Os(T,Y),_.Os(v,Y),_.d("web_watch_theater_chat")||_.Os(B,Y),E||_.Os(T,Y),_.Os(Z,Y),P&&_.Os(y,P));_.d("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.d("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.d("web_watch_theater_chat")){var E=_.n(this.hostElement).querySelector("#chat-container"),B=this.theater&&!this.fullscreen||_.d("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&B?_.d("web_watch_theater_chat_beside_player")?(B=_.n(this.hostElement).querySelector("#panels-full-bleed-container"),(E==null?void 0:E.parentElement)!==B&&B.append(E),this.panelsBesidePlayer=!0):
_.d("web_watch_theater_fixed_chat")&&(B=_.n(this.hostElement).querySelector("#columns"),(E==null?void 0:E.parentElement)!==B&&B.append(E),this.fixedPanels=!0):(_.d("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.d("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),B=_.n(this.hostElement).querySelector("#playlist"),E&&B?_.n7(E,B):_.OG(new _.P7("Missing element when updating chat location",{"chatContainer defined":!!E,"playlist defined":!!B})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(E,B){return _.d("sw_metadata_vis_toggle_ks")?!0:!!E||!!B},
computeForceDarkPanelTheme:function(E){return _.d("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&E:!1},
safeUpdateStyles:function(E){try{_.Dk(this.hostElement,E)}catch(B){_.OG(B)}},
videoHeightToWidthRatioChanged_:function(E,B){B&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.d("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(E){this.videoHeightToWidthRatio_=1/E},
computeIsVerticalVideo_:function(E){return E>=1},
computeIsFourThreeToSixteenNineVideo_:function(E){return E<=.7501&&E>=.5624},
computeIsExtraWideVideo_:function(E){return E<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Ak(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Ak(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.AW8(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(E){var B=_.cc(E)||0;_.l9(E,B+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var E=_.cc("yt-fullerscreen-edu-button-click-count")||0,B=_.cc("yt-fullerscreen-edu-button-shown-count")||0,I=_.RI("external_fullscreen_button_shown_threshold"),T=E>=_.RI("external_fullscreen_button_click_threshold")||B>=I;_.Ak(this).getPlayerPromise().then(function(e){e.updateFullerscreenEduButtonSubtleModeState(T)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(E,B){return B},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Q().resolve(_.Hx).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var E=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Ll.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Ll.addLowPriorityJob(function(){E.fullHeightPanelPositionUpdateJobId=0;var B=_.n(E.hostElement).querySelector("#secondary"),I=_.n(E.hostElement).querySelector("#fixed-secondary");B=B.getBoundingClientRect();var T=B.width;E.swatcherooSqueezeback&&
(T+=_.gD);if(E.swatcherooSqueezeback){var e=_.n(E.hostElement).querySelector("#squeezeback-constraining-container");e.style.width=T+"px";e.style.flex="0 0 "+T+"px"}I.style.width=T+"px";I.style.left=B.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var E=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Ll.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Ll.addLowPriorityJob(function(){E.panelMaxHeightUpdateJob_=0;var B;!E.isTwoColumns_||E.theater||E.fullscreen?B=460:B=E.calculateNormalPlayerSize_().height;var I=B+"px";_.d("live_chat_taller_height")&&!E.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.d("live_chat_medium_height")&&!E.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.d("live_chat_scaled_height")&&!E.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");E.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":B+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":B+"px","--ytd-watch-flexy-comments-panel-max-height":B+"px","--ytd-comments-engagement-panel-content-height":B+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var E=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.d("web_watch_flexy_adjust_sidebar_width"))&&!_.d("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.Ll.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.Ll.addLowPriorityJob(function(){E.panelMaxHeightUpdateJob_=0;if(E.isTwoColumns_){var B=_.sU2(E.windowSize_,E.calculateNormalPlayerSize_().width);B!==E.currentSidebarWidth&&(E.currentSidebarWidth=
B,E.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":B+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(E){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",E)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.cN(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(E){var B=_.n(this.hostElement).querySelector("#engagement-panel-scrim");E?B.addEventListener("tap",_.Kq(this,this.onEngagementPanelScrimClick_)):B.removeEventListener("tap",_.Kq(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(E){if(this.hostElement.contains(E)&&!this.scrollToAnimation_.isAnimating()){var B=E.offsetTop-24;E=E.offsetTop+E.offsetHeight+24;var I=this.getPageScrollingElement(),T=this.getScrollTop(),e=T+I.clientHeight-56;if(B<T+56)B-=56;else if(E>e)B=E-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,B),500)}},
onYtSignalActionScrollToComments:function(){var E=this.hostElement.querySelector("#comments");if(E&&!this.scrollToAnimation_.isAnimating()){E=E.offsetTop-56-24;if(_.d("kevlar_comment_teaser_scroll_to_midpoint")&&(E-=_.Rd().height/3,E<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,E),500)}},
onYtEngagementPanelVisibleChanged:function(E,B,I){this.active&&this.trackEngagementPanelVisibility&&!_.MqO.includes(I)&&(B==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(I),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.Ta(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),B!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&B!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(I),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(E){return E?"":"watch-active-metadata"},
computeNewMetadataClass:function(E){return E?"watch-active-metadata":""},
computeFullBleedPlayer:function(E,B){return E||B},
computeDefaultLayout:function(E){return!E},
computeDefaultTwoColumnLayout:function(E,B){return!E&&B},
swatcherooUpdatePanelsLocation:function(E,B,I,T,e,c){if(this.is==="ytd-watch-grid"){B=E&&!B;this.swatcherooSplitScroll&&(B?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));I=_.n(this.hostElement).querySelector("#panels");var Y=_.n(this.hostElement).querySelector("#playlist"),v=_.n(this.hostElement).querySelector("#fixed-secondary"),y=_.n(this.hostElement).querySelector("#fixed-below"),
Z=_.n(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),P=_.n(this.hostElement).querySelector("#chat-container");c&&(E?v.appendChild(I):y.appendChild(I));e?E?v.appendChild(P):y.appendChild(P):_.n7(P,Z);T?E?v.appendChild(Y):y.appendChild(Y):_.n7(Y,Z);this.swatcherooSplitScroll&&(E=_.n(this.hostElement).querySelector("#secondary"),T=_.n(this.hostElement).querySelector("#columns"),e=_.n(this.hostElement).querySelector("#fixed-columns-secondary"),B?e.appendChild(E):
T.appendChild(E))}},
computeMetadataSkinnyMode:function(E,B,I){return this.is!=="ytd-watch-grid"?!1:E?I:B},
computeWatchWhilePanelsActive:function(E,B){return E||B},
computeNoBorderOnChat:function(E){return _.d("web_watch_theater_chat_no_border")&&E},
computeLiveChatPresentAndExpanded:function(E,B){return E&&!B},
computePanelExpanded:function(E,B,I){return E||B||I},
computeSwatcherooSqueezeback:function(E,B,I){return this.is!=="ytd-watch-grid"||_.d("ww_squeezeback_killswitch")?!1:E&&B&&I},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(E){_.Ak(this).getPlayerPromise().then(function(B){var I;(I=B.changeMarkerVisibility)==null||I.call(B,_.h(E,_.UQ).isVisible||!1,_.h(E,_.UQ).entityKeys||[],_.h(E,_.UQ).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(E){this.liveChatCollapsed=E.detail;_.t2().dispatch(_.ncd(E.detail))},
onSetPlaylistCollapsed:function(E){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!E)},
provideRenderingData:function(E,B){switch(E){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=B;break;case "PRIMARY_INFO":_.d("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=B);this.videoPrimaryInfoRendererValue=B==null?void 0:B.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.d("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=B);this.videoSecondaryInfoRendererValue=B==null?void 0:B.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
B;break;case "CLARIFICATION":this.clarifyBoxValue=B;break;case "LIVE_CHAT":this.conversationBar=B;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=B;break;case "PLAYLIST":this.externalPlaylistData_=B!=null?B:{};break;case "MERCH_SHELF":this.merchShelfValue=B==null?void 0:B.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=B;break;case "OFFER_MODULE":this.offerModule=B;break;case "LIMITED_STATE":this.limitedStateValue=B;break;case "DONATION_SHELF":this.donation=B;break;
case "ALERTS":this.alertsValue=B;break;case "COMMENTS":this.comments=B;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=B;break;case "ENGAGEMENT_PANELS":this.engagementPanels=B;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=B;break;case "RICH_GRID_RENDERER":this.richGridRendererData=B;break;case "EXPANDABLE_METADATA":this.expandableMetadata=B;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=B}},
toggleCinematicsActive:function(E){this.cinematicsActive=E},
isMiniplayerActive:function(){return _.Q().resolve(_.W3).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(E){return eRm.map(function(B){return E.find(function(I){var T;return(I==null?void 0:(T=I.engagementPanelSectionListRenderer)==null?void 0:T.targetId)===B})}).filter(function(B){return B!==void 0})},
getNonLearningJourneyEngagementPanels:function(E){return E.filter(function(B){var I;return!eRm.includes((B==null?void 0:(I=B.engagementPanelSectionListRenderer)==null?void 0:I.targetId)||"")})},
getHasLearningJourneyPanels:function(E){return E.length>0}}];var lH8;var RK=function(){var E=_.r.apply(this,arguments)||this;E.flexy=!0;E.learningJourney=!0;E.roundedInfoPanel=!0;E.viewTransitionEnabled=_.d("enable_player_resize_transition");E.smallerChatMinHeight=_.d("live_chat_smaller_min_height");E.cinematicTheaterMode=_.d("web_cinematic_theater_mode");E.transparentTheaterMode=_.d("web_transparent_theater_mode");E.cinematicFullscreen=_.d("web_cinematic_fullscreen");E.useLargerMaxPlayerValue=_.d("kevlar_flexy_use_larger_player_value");E.cinematicFullscreenV2=_.d("web_cinematic_fullscreen_v2");
E.isDarkTheme=document.documentElement.hasAttribute("dark");E.theaterLargerPlayer=_.d("web_watch_theater_larger_player");E.defaultCollapsePlaylist=_.d("web_watch_default_collapse_playlist");return E};
_.L(RK,_.r);_.l=RK.prototype;_.l.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.l.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.l.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.l.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.l.ready=function(){var E=this,B=function(){E.onColumnScroll()};
this.primary.addEventListener("scroll",B);this.secondary.addEventListener("scroll",B)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(E){_.d("web_watch_update_narrow_width_killswitch")||_.t2().dispatch(_.OQg(!E.detail.value));this.ytdWatchBehavior.isTwoColumns_=E.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(E){this.ytdWatchBehavior.flexySmallWindow_=E.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(E){this.ytdWatchBehavior.flexyLargeWindow_=E.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(E){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=E.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(E){this.ytdWatchBehavior.watchNextCanShowMore=E.detail.value};
_.l.updateShownItemsFromBinding=function(E){E.detail.path?this.set(E.detail.path,E.detail.value):this.ytdWatchBehavior.watchNextShownItems=E.detail.value};
_.l.getElement=function(E){switch(E){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20370_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20370_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Up.Object.defineProperties(RK.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)==null||!E.pageVisualEffects)return!1;for(var B=0;B<this.data.pageVisualEffects.length;B++)if(E=_.h(this.data.pageVisualEffects[B],_.Pt))return B=void 0,(B=E.config)==null?void 0:B.enableInLightTheme;return!1}}});
_.Up.Object.defineProperties(RK,{template:{configurable:!0,enumerable:!0,get:function(){if(lH8===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\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-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);lH8=E}E=lH8;return E}}});
RK.prototype.updateMiniplayerIsActiveValue=RK.prototype.updateMiniplayerIsActiveValue;RK.prototype.updateScrollTopValue=RK.prototype.updateScrollTopValue;RK.prototype.updateFullscreenValue=RK.prototype.updateFullscreenValue;RK.prototype.updateTheaterValue=RK.prototype.updateTheaterValue;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],RK.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],RK.prototype,"ytComponentBehavior",void 0);
_.k([_.g(TRT.YtdLearningJourneyWatchBehavior),_.t("design:type",Object)],RK.prototype,"ytdWatchBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],RK.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],RK.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],RK.prototype,"playerData",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RK.prototype,"flexy",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RK.prototype,"learningJourney",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RK.prototype,"roundedInfoPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RK.prototype,"viewTransitionEnabled",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RK.prototype,"smallerChatMinHeight",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RK.prototype,"cinematicTheaterMode",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RK.prototype,"transparentTheaterMode",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RK.prototype,"cinematicFullscreen",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RK.prototype,"useLargerMaxPlayerValue",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RK.prototype,"cinematicFullscreenV2",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RK.prototype,"isDarkTheme",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RK.prototype,"theaterLargerPlayer",void 0);_.k([_.X(),_.t("design:type",Object)],RK.prototype,"defaultCollapsePlaylist",void 0);_.k([_.X({selector:_.Ze}),_.t("design:type",Object)],RK.prototype,"theaterValue",void 0);
_.k([_.X({selector:_.sD}),_.t("design:type",Object)],RK.prototype,"fullscreenValue",void 0);_.k([_.X({selector:_.ue}),_.t("design:type",Object)],RK.prototype,"scrollTopValue",void 0);_.k([_.X({selector:_.O3}),_.t("design:type",Object)],RK.prototype,"miniplayerIsActiveValue",void 0);_.k([_.b4("ytd-player"),_.t("design:type",HTMLElement)],RK.prototype,"ytdPlayer",void 0);_.k([_.$7("#playlist"),_.t("design:type",HTMLElement)],RK.prototype,"JSC$20370_ytdPlaylistPanelRenderer",void 0);
_.k([_.b4("ytd-comments"),_.t("design:type",HTMLElement)],RK.prototype,"ytdComments",void 0);_.k([_.$7("#primary"),_.t("design:type",HTMLElement)],RK.prototype,"primary",void 0);_.k([_.$7("#secondary"),_.t("design:type",HTMLElement)],RK.prototype,"secondary",void 0);_.k([_.$7("#player-container"),_.t("design:type",HTMLElement)],RK.prototype,"playerContainer",void 0);_.k([_.$7("#cinematics"),_.t("design:type",HTMLElement)],RK.prototype,"JSC$20370_cinematics",void 0);
_.k([_.EM("theaterValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],RK.prototype,"updateTheaterValue",null);_.k([_.EM("fullscreenValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],RK.prototype,"updateFullscreenValue",null);_.k([_.EM("scrollTopValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],RK.prototype,"updateScrollTopValue",null);
_.k([_.EM("miniplayerIsActiveValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],RK.prototype,"updateMiniplayerIsActiveValue",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],RK.prototype,"cinematicLightTheme",null);RK=_.k([_.b({is:"ytd-watch-learning-journey"})],RK);_.QJ.registerService(_.bYJ,RK);
_.s7();
}catch(e){_._DumpException(e)}
try{
_.hV("Tm0L3c");
var FuO;var Dx2;var Kud=function(){return _.r.apply(this,arguments)||this};
_.L(Kud,_.r);Kud=_.k([_.b({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],Kud);
_.A(Kud,"ytd-ghost-comments-renderer",function(){if(Dx2===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);Dx2=E}E=Dx2;return E},{mode:1});var RIO;var E08=function(){return _.r.apply(this,arguments)||this};
_.L(E08,_.r);E08=_.k([_.b({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],E08);
_.A(E08,"ytd-ghost-watch-metadata-renderer",function(){if(RIO===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);RIO=E}E=RIO;return E},{mode:1});var KZ=function(){var E=_.r.apply(this,arguments)||this;E.ghostGridRenderer={rows:6};E.roundedInfoPanel=!0;E.hideOfferModules=!0;E.smallerChatMinHeight=_.d("live_chat_smaller_min_height");E.cinematicTheaterMode=_.d("web_cinematic_theater_mode");E.transparentTheaterMode=_.d("web_transparent_theater_mode");E.darkerPanels=_.d("web_watch_darker_panels");E.cinematicFullscreen=_.d("web_cinematic_fullscreen");E.cinematicFullscreenV2=_.d("web_cinematic_fullscreen_v2");E.isDarkTheme=document.documentElement.hasAttribute("dark");
return E};
_.L(KZ,_.r);_.l=KZ.prototype;_.l.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.l.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.l.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.l.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.l.ready=function(){var E=this,B=function(){E.onColumnScroll()};
this.primary.addEventListener("scroll",B);this.secondary.addEventListener("scroll",B)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(E){this.ytdWatchBehavior.isTwoColumns_=E.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(E){this.ytdWatchBehavior.flexySmallWindow_=E.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(E){this.ytdWatchBehavior.flexyLargeWindow_=E.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(E){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=E.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(E){this.ytdWatchBehavior.watchNextCanShowMore=E.detail.value};
_.l.updateShownItemsFromBinding=function(E){_.d("swatcheroo_direct_use_rich_grid")||(E.detail.path?this.set(E.detail.path,E.detail.value):this.ytdWatchBehavior.watchNextShownItems=E.detail.value)};
_.l.getElement=function(E){switch(E){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20361_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20361_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Up.Object.defineProperties(KZ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)==null||!E.pageVisualEffects)return!1;for(var B=0;B<this.data.pageVisualEffects.length;B++)if(E=_.h(this.data.pageVisualEffects[B],_.Pt))return B=void 0,(B=E.config)==null?void 0:B.enableInLightTheme;return!1}}});
KZ.prototype.updateMiniplayerIsActiveValue=KZ.prototype.updateMiniplayerIsActiveValue;KZ.prototype.updateScrollTopValue=KZ.prototype.updateScrollTopValue;KZ.prototype.updateFullscreenValue=KZ.prototype.updateFullscreenValue;KZ.prototype.updateTheaterValue=KZ.prototype.updateTheaterValue;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],KZ.prototype,"ytComponentBehavior",void 0);
_.k([_.g(_.VqO.YtdWatchBehavior),_.t("design:type",Object)],KZ.prototype,"ytdWatchBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],KZ.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],KZ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],KZ.prototype,"ghostGridRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],KZ.prototype,"playerData",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KZ.prototype,"roundedInfoPanel",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KZ.prototype,"hideOfferModules",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KZ.prototype,"smallerChatMinHeight",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KZ.prototype,"cinematicTheaterMode",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KZ.prototype,"transparentTheaterMode",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KZ.prototype,"darkerPanels",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KZ.prototype,"cinematicFullscreen",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KZ.prototype,"cinematicFullscreenV2",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],KZ.prototype,"isDarkTheme",void 0);_.k([_.X({selector:_.Ze}),_.t("design:type",Object)],KZ.prototype,"theaterValue",void 0);
_.k([_.X({selector:_.sD}),_.t("design:type",Object)],KZ.prototype,"fullscreenValue",void 0);_.k([_.X({selector:_.ue}),_.t("design:type",Object)],KZ.prototype,"scrollTopValue",void 0);_.k([_.X({selector:_.O3}),_.t("design:type",Object)],KZ.prototype,"miniplayerIsActiveValue",void 0);_.k([_.$7("#ytd-player"),_.t("design:type",HTMLElement)],KZ.prototype,"ytdPlayer",void 0);_.k([_.$7("#playlist"),_.t("design:type",HTMLElement)],KZ.prototype,"JSC$20361_ytdPlaylistPanelRenderer",void 0);
_.k([_.$7("#ytd-comments"),_.t("design:type",HTMLElement)],KZ.prototype,"ytdComments",void 0);_.k([_.$7("#primary"),_.t("design:type",HTMLElement)],KZ.prototype,"primary",void 0);_.k([_.$7("#secondary"),_.t("design:type",HTMLElement)],KZ.prototype,"secondary",void 0);_.k([_.$7("#player-container"),_.t("design:type",HTMLElement)],KZ.prototype,"playerContainer",void 0);_.k([_.$7("#cinematics"),_.t("design:type",HTMLElement)],KZ.prototype,"JSC$20361_cinematics",void 0);
_.k([_.EM("theaterValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KZ.prototype,"updateTheaterValue",null);_.k([_.EM("fullscreenValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KZ.prototype,"updateFullscreenValue",null);_.k([_.EM("scrollTopValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KZ.prototype,"updateScrollTopValue",null);
_.k([_.EM("miniplayerIsActiveValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KZ.prototype,"updateMiniplayerIsActiveValue",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],KZ.prototype,"cinematicLightTheme",null);
_.A(KZ,"ytd-watch-grid",function(){if(FuO===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);FuO=E}E=FuO;return E},{mode:2});_.QJ.registerService(_.rfc,KZ);
_.s7();
}catch(e){_._DumpException(e)}
try{
_.hV("CF909");
var qD2;var DJ=function(){var E=_.r.apply(this,arguments)||this;E.flexy=!0;E.roundedInfoPanel=!0;E.viewTransitionEnabled=_.d("enable_player_resize_transition");E.smallerChatMinHeight=_.d("live_chat_smaller_min_height");E.cinematicTheaterMode=_.d("web_cinematic_theater_mode");E.transparentTheaterMode=_.d("web_transparent_theater_mode");E.cinematicFullscreen=_.d("web_cinematic_fullscreen");E.useLargerMaxPlayerValue=_.d("kevlar_flexy_use_larger_player_value");E.cinematicFullscreenV2=_.d("web_cinematic_fullscreen_v2");
E.isDarkTheme=document.documentElement.hasAttribute("dark");E.defaultCollapsePlaylist=_.d("web_watch_default_collapse_playlist");E.retroModeReduxValue=!1;return E};
_.L(DJ,_.r);_.l=DJ.prototype;_.l.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.l.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.l.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.l.updateRetroModeReduxValue=function(){_.d("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.l.ready=function(){var E=this,B=function(){E.onColumnScroll()};
this.primary.addEventListener("scroll",B);this.secondary.addEventListener("scroll",B)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(E){_.d("web_watch_update_narrow_width_killswitch")||_.t2().dispatch(_.OQg(!E.detail.value));this.ytdWatchBehavior.isTwoColumns_=E.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(E){this.ytdWatchBehavior.flexySmallWindow_=E.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(E){this.ytdWatchBehavior.flexyLargeWindow_=E.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(E){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=E.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(E){this.ytdWatchBehavior.watchNextCanShowMore=E.detail.value};
_.l.updateShownItemsFromBinding=function(E){E.detail.path?this.set(E.detail.path,E.detail.value):this.ytdWatchBehavior.watchNextShownItems=E.detail.value};
_.l.getElement=function(E){switch(E){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20356_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20356_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Up.Object.defineProperties(DJ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)==null||!E.pageVisualEffects)return!1;for(var B=0;B<this.data.pageVisualEffects.length;B++)if(E=_.h(this.data.pageVisualEffects[B],_.Pt))return B=void 0,(B=E.config)==null?void 0:B.enableInLightTheme;return!1}}});
_.Up.Object.defineProperties(DJ,{template:{configurable:!0,enumerable:!0,get:function(){if(qD2===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);qD2=E}E=qD2;return E}}});
DJ.prototype.updateRetroModeReduxValue=DJ.prototype.updateRetroModeReduxValue;DJ.prototype.updateScrollTopValue=DJ.prototype.updateScrollTopValue;DJ.prototype.updateFullscreenValue=DJ.prototype.updateFullscreenValue;DJ.prototype.updateTheaterValue=DJ.prototype.updateTheaterValue;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],DJ.prototype,"ytComponentBehavior",void 0);
_.k([_.g(_.VqO.YtdWatchBehavior),_.t("design:type",Object)],DJ.prototype,"ytdWatchBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],DJ.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],DJ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],DJ.prototype,"playerData",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DJ.prototype,"flexy",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DJ.prototype,"roundedInfoPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DJ.prototype,"viewTransitionEnabled",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DJ.prototype,"smallerChatMinHeight",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DJ.prototype,"cinematicTheaterMode",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DJ.prototype,"transparentTheaterMode",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DJ.prototype,"cinematicFullscreen",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DJ.prototype,"useLargerMaxPlayerValue",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DJ.prototype,"cinematicFullscreenV2",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],DJ.prototype,"isDarkTheme",void 0);_.k([_.X(),_.t("design:type",Object)],DJ.prototype,"defaultCollapsePlaylist",void 0);_.k([_.X({selector:_.Ze}),_.t("design:type",Object)],DJ.prototype,"theaterValue",void 0);_.k([_.X({selector:_.sD}),_.t("design:type",Object)],DJ.prototype,"fullscreenValue",void 0);_.k([_.X({selector:_.ue}),_.t("design:type",Object)],DJ.prototype,"scrollTopValue",void 0);
_.k([_.X({selector:_.O3}),_.t("design:type",Object)],DJ.prototype,"miniplayerIsActive",void 0);_.k([_.X({selector:function(E){return E.watch.isWatchRetroMode}}),
_.t("design:type",Object)],DJ.prototype,"retroModeReduxValue",void 0);_.k([_.b4("ytd-player"),_.t("design:type",HTMLElement)],DJ.prototype,"ytdPlayer",void 0);_.k([_.$7("#playlist"),_.t("design:type",HTMLElement)],DJ.prototype,"JSC$20356_ytdPlaylistPanelRenderer",void 0);_.k([_.b4("ytd-comments"),_.t("design:type",HTMLElement)],DJ.prototype,"ytdComments",void 0);_.k([_.$7("#primary"),_.t("design:type",HTMLElement)],DJ.prototype,"primary",void 0);
_.k([_.$7("#secondary"),_.t("design:type",HTMLElement)],DJ.prototype,"secondary",void 0);_.k([_.$7("#player-container"),_.t("design:type",HTMLElement)],DJ.prototype,"playerContainer",void 0);_.k([_.$7("#cinematics"),_.t("design:type",HTMLElement)],DJ.prototype,"JSC$20356_cinematics",void 0);_.k([_.EM("theaterValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],DJ.prototype,"updateTheaterValue",null);
_.k([_.EM("fullscreenValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],DJ.prototype,"updateFullscreenValue",null);_.k([_.EM("scrollTopValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],DJ.prototype,"updateScrollTopValue",null);_.k([_.EM("retroModeReduxValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],DJ.prototype,"updateRetroModeReduxValue",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],DJ.prototype,"cinematicLightTheme",null);DJ=_.k([_.b({is:"ytd-watch-flexy"})],DJ);_.QJ.registerService(_.XSF,DJ);
_.s7();
}catch(e){_._DumpException(e)}
try{
_.hV("nmfa2d");
var ZnI;var AO=function(){var E=_.r.apply(this,arguments)||this;E.hidden=!1;E.errorScreen=null;E.playlistData={};return E};
_.L(AO,_.r);_.l=AO.prototype;_.l.getPlayer=function(){return this.ytdPlayer};
_.l.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:_.h7(["aa","eocs"])}}};
_.l.onActiveChanged=function(){_.t2().dispatch(_.GZL(this.ytPageBehavior.active))};
_.l.playerDataChanged=function(){var E;(E=this.watchController)==null||_.rc(E,this.playerData)};
_.l.dataChanged=function(){var E;(E=this.watchController)==null||_.bH(E,this.data)};
_.l.sizeChanged=function(){var E,B;(B=(E=this.metadata).resize)==null||B.call(E)};
_.l.attached=function(){this.watchController=new _.Xb(this);this.playerData&&_.rc(this.watchController,this.playerData);this.data&&_.bH(this.watchController,this.data)};
_.l.detached=function(){_.bl(this.watchController);this.watchController=void 0};
_.l.getPlayerContainer=function(){return this.playerContainer};
_.l.getElement=function(E){switch(E){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20308_playlistPanel}};
_.l.provideRenderingData=function(E,B){switch(E){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=B;break;case "ERROR_SCREEN":this.errorScreen=B!=null?B:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=B;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=B;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=B;break;case "RICH_METADATA":this.richMetadataRowContainer=B;break;case "CLARIFICATION":this.clarificationData=B;break;case "PLAYLIST":this.playlistData=
B!=null?B:{};break;case "MERCH_SHELF":this.merchShelf=B;break;case "TICKET_SHELF":this.ticketShelf=B;break;case "LIMITED_STATE":this.limitedState=B;break;case "DONATION_SHELF":this.donationShelf=B;break;case "ALERTS":this.alerts=B}};
_.Up.Object.defineProperties(AO.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return!this.hidden&&!!((E=this.data)==null?0:(B=E.contents)==null?0:(I=B.twoColumnWatchNextResults)==null?0:I.conversationBar)}}});
AO.prototype.sizeChanged=AO.prototype.sizeChanged;AO.prototype.dataChanged=AO.prototype.dataChanged;AO.prototype.playerDataChanged=AO.prototype.playerDataChanged;AO.prototype.onActiveChanged=AO.prototype.onActiveChanged;_.k([_.g(_.dO.YtPageBehavior),_.t("design:type",Object)],AO.prototype,"ytPageBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],AO.prototype,"ytComponentBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],AO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],AO.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],AO.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],AO.prototype,"playerData",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],AO.prototype,"hidden",void 0);_.k([_.$7("#ytd-player"),_.t("design:type",HTMLElement)],AO.prototype,"ytdPlayer",void 0);_.k([_.$7("#player-container"),_.t("design:type",HTMLElement)],AO.prototype,"playerContainer",void 0);_.k([_.$7("#metadata"),_.t("design:type",Object)],AO.prototype,"metadata",void 0);_.k([_.$7("#playlist"),_.t("design:type",HTMLElement)],AO.prototype,"JSC$20308_playlistPanel",void 0);
_.k([_.X({selector:_.WLs,reflectToAttribute:!0}),_.t("design:type",Object)],AO.prototype,"fixie",void 0);_.k([_.X({selector:_.Jtd,reflectToAttribute:!0}),_.t("design:type",Object)],AO.prototype,"singleColumn",void 0);_.k([_.X({selector:function(E){return _.Ze(E)&&!_.sD(E)},
reflectToAttribute:!0}),_.t("design:type",Object)],AO.prototype,"theater",void 0);_.k([_.X({selector:_.sD,reflectToAttribute:!0}),_.t("design:type",Object)],AO.prototype,"fullscreen",void 0);_.k([_.X({selector:_.S27}),_.t("design:type",Object)],AO.prototype,"windowSize",void 0);_.k([_.X(),_.t("design:type",Object)],AO.prototype,"singleColumnContents",void 0);_.k([_.X(),_.t("design:type",Object)],AO.prototype,"errorScreen",void 0);_.k([_.X(),_.t("design:type",Object)],AO.prototype,"playlistData",void 0);
_.k([_.X(),_.t("design:type",Object)],AO.prototype,"videoPrimaryInfoRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],AO.prototype,"videoSecondaryInfoRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],AO.prototype,"richMetadataRowContainer",void 0);_.k([_.X(),_.t("design:type",Object)],AO.prototype,"clarificationData",void 0);_.k([_.X(),_.t("design:type",Object)],AO.prototype,"commentsEntryPointHeaderRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],AO.prototype,"ticketShelf",void 0);
_.k([_.X(),_.t("design:type",Object)],AO.prototype,"merchShelf",void 0);_.k([_.X(),_.t("design:type",Object)],AO.prototype,"donationShelf",void 0);_.k([_.X(),_.t("design:type",Object)],AO.prototype,"limitedState",void 0);_.k([_.X(),_.t("design:type",Object)],AO.prototype,"alerts",void 0);_.k([_.S("playlistData"),_.t("design:type",Object),_.t("design:paramtypes",[])],AO.prototype,"hasPlaylistData",null);
_.k([_.S("data","hidden"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],AO.prototype,"hasChat",null);_.k([_.EM("active"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],AO.prototype,"onActiveChanged",null);_.k([_.EM("playerData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],AO.prototype,"playerDataChanged",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],AO.prototype,"dataChanged",null);_.k([_.EM("windowSize","singleColumn"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],AO.prototype,"sizeChanged",null);
_.A(AO,"ytd-watch-fixie",function(){if(ZnI===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);ZnI=E}E=ZnI;return E},{mode:1});_.QJ.registerService(_.Wl4,AO);
_.s7();
}catch(e){_._DumpException(e)}
try{
_.hV("xwEKAe");
var Xwt=function(E){var B=_.ZB();if(B.getFlag(202))B=B.getFlag(201);else{var I;B=(E==null?void 0:(I=E.config)==null?void 0:I.settingOnByDefault)!==void 0?E.config.settingOnByDefault:!_.d("web_shorts_cinematics_disabled_by_default")}return B},rmO=function(E){var B=_.ZB();
_.PN(0,201,E);_.PN(0,202,!0);B.save()},bud=function(E){return(E=_.dR6(E))?_.stc(E):0},oFm=function(E){return E.shorts.isSmallScreenSqueezeback},AmT=function(E){return E.shorts.isPlaybackStarted},jm8=function(E,B,I,T){E=B-E;
I=T-I;return Math.sqrt(E*E+I*I)},U4L=function(E,B){E&&_.Q().resolve(_.Dt).resolveCommand(E,{forceClickLogging:!0,
form:{element:B}})},kDI=function(E){E.unsubscribeFromStore=_.C_(E.storeWithShorts,_.Wz7,function(B){E.initOrDisposeActiveModules(B);
!B&&E.storeWithShorts.getState().shorts.isFullscreen&&(_.RO(document.documentElement),E.storeWithShorts.dispatch(_.bFd(!1)))});
E.initOrDisposeActiveModules(_.Wz7(E.storeWithShorts.getState()))},tKO=function(E){var B=_.Q().resolve(_.R5);
B.rootElement=E;kDI(B)},fE2=function(){return _.Q().resolve(_.R5).dismissedIndices},VKs=function(E){return _.BP({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:E}})},qEL=function(E){return _.BP({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:E}})},IU=function(E){return _.BP({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:E}})},TQ=function(E,B){if(E instanceof TQ)this.array_=E.array_;
else{var I;if(I=_.Di(E))a:{for(var T=I=0;T<E.length;T++){if(!_.Di(E[T])||I>0&&E[T].length!=I){I=!1;break a}for(var e=0;e<E[T].length;e++)if(typeof E[T][e]!=="number"){I=!1;break a}I==0&&(I=E[T].length)}I=I!=0}if(I)this.array_=_.V6(E);else if(E instanceof _.KK)this.array_=F7I(E.height,E.width);else if(typeof E==="number"&&typeof B==="number"&&E>0&&B>0)this.array_=F7I(E,B);else throw Error("Yl");}this.size_=new _.KK(this.array_[0].length,this.array_.length)},D4H=function(E,B,I){for(var T=0;T<E.getSize().height;T++)for(var e=
0;e<E.getSize().width;e++)B.call(I,E.array_[T][e],T,e,E)},K7I=function(E,B){var I=new TQ(E.getSize());
D4H(E,function(T,e,c){I.array_[e][c]=B.call(void 0,T,e,c,E)});
return I},F7I=function(E,B){for(var I=[],T=0;T<E;T++){I[T]=[];
for(var e=0;e<B;e++)I[T][e]=0}return I};
TQ.prototype.add=function(E){if(!_.aE9(this.size_,E.getSize()))throw Error("Zl");return K7I(this,function(B,I,T){return B+E.array_[I][T]})};
TQ.prototype.equals=function(E,B){if(this.size_.width!=E.size_.width||this.size_.height!=E.size_.height)return!1;B=B||0;for(var I=0;I<this.size_.height;I++)for(var T=0;T<this.size_.width;T++)if(!_.YEd(this.array_[I][T],E.array_[I][T],B))return!1;return!0};
TQ.prototype.getSize=function(){return this.size_};
var eq=function(E,B,I){return B>=0&&B<E.size_.height&&I>=0&&I<E.size_.width?E.array_[B][I]:null};
TQ.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var RCt=function(E,B,I,T){if(!(B>=0&&B<E.size_.height&&I>=0&&I<E.size_.width))throw Error("$l`"+B+"`"+I+"`"+E.size_.height+"`"+E.size_.width);E.array_[B][I]=T};
TQ.prototype.multiply=function(E){if(E instanceof TQ){if(this.size_.width!=E.getSize().height)throw Error("am");return EX8(this,E)}if(typeof E==="number")return BaI(this,E);throw Error("bm");};
var EX8=function(E,B){var I=new TQ(E.size_.height,B.getSize().width);D4H(I,function(T,e,c){for(var Y=T=0;Y<this.size_.width;Y++)T+=eq(this,e,Y)*eq(B,Y,c);RCt(I,e,c,T)},E);
return I},BaI=function(E,B){return K7I(E,function(I){return I*B})};var $5s=new _.F("inlineSurveyRenderer");var I6m=new _.F("interstitialViewModel");var TaL=new _.F("reelNavigateCommand");var ecd=new _.F("reelNonVideoContentDismissalCommand");var l6g=new _.F("showReelsCommentsOverlayCommand");var ctm=new _.F("videoInteractionPopUpRenderer");var iA9;var pXs;var Y22;var le=function(){var E=_.r.apply(this,arguments)||this;E.ctaVisualElement=null;E.currentCsn=null;return E};
_.L(le,_.r);_.l=le.prototype;_.l.onDataChanged=function(){this.maybeLogShows()};
_.l.computeButtonShape=function(){var E=this;if(this.data)return{buttonText:_.U3(this.data.text),state:"active",onTap:function(){E.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.l.maybeCreateCtaVe=function(){var E;if((E=this.data)!=null&&E.badgeInteractionLogging){var B;if(E=(B=this.data.badgeInteractionLogging)==null?void 0:B.trackingParams)this.ctaVisualElement=_.Yg(E)}};
_.l.maybeLogClicks=function(){this.currentCsn=_.nC(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Al(this.currentCsn,this.ctaVisualElement)};
_.l.maybeLogShows=function(){this.currentCsn=_.nC(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.b1(this.currentCsn,[this.ctaVisualElement])};
_.l.onTap=function(){var E;if((E=this.data)!=null&&E.onClickCommand){var B;this.ytComponentBehavior.resolveCommand((B=this.data)==null?void 0:B.onClickCommand);this.maybeLogClicks()}};
le.prototype.onDataChanged=le.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],le.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],le.prototype,"ytComponentBehavior",void 0);_.k([_.X({}),_.t("design:type",Object)],le.prototype,"data",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],le.prototype,"onDataChanged",null);
le=_.k([_.b({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],le);
_.A(le,"ytd-shopping-overlay-badge-renderer",function(){if(Y22!==void 0)return Y22;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Y22=E},{mode:1});_.oQ(_.LRI,"reel-sound-metadata-view-model",{props:{data:_.bu,overlayDensity:_.bu}});_.oQ(_.vM2,"player-disclosure-view-model",{props:{data:_.Jh}});_.oQ(_.$5r,"pivot-button-view-model",{props:{data:_.bu,className:_.bu}});_.oQ(_.I66,"reel-action-bar-view-model",{props:{data:_.Jh,buttonShapeOverrideables:_.Jh}});_.oQ(_.rp(function(E){function B(){var rJ,Uc,CV,Bm,LV=(Uc=_.h((rJ=q())==null?void 0:rJ.command,_.baR))==null?void 0:(CV=Uc.item)==null?void 0:(Bm=CV.notificationTextRenderer)==null?void 0:Bm.successResponseText;if(LV)_.I2(T.value,"yt-open-popup-action",[_.VF(LV),T.value]);else if(f())U4L(f(),x.value);else{var I$;U4L((I$=q())==null?void 0:I$.command,x.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var I=E.data;var T=_.oH();E=_.p(_.lQ("0px",void 0,"O1N7Ce"));var e=E.next().value,c=E.next().value;E=_.p(_.lQ("0px",void 0,"tTDBdb"));var Y=E.next().value,v=E.next().value;E=_.p(_.lQ(0,void 0,"fh8Zkc"));var y=E.next().value,Z=E.next().value;E=_.p(_.lQ(0,void 0,"CUjqGd"));var P=E.next().value,z=E.next().value,m=function(){var rJ;if(((rJ=_.BE())==null?void 0:rJ.getPlayerState())!==-1){T.value.style.display="inherit";var Uc;(Uc=_.BE())==null||Uc.removeEventListener("onStateChange",m)}u()},u=function(){var rJ=
document.querySelector("video");
if(rJ){Z(rJ.getBoundingClientRect().width);z(rJ.getBoundingClientRect().height);var Uc;c((rJ==null?void 0:(Uc=rJ.style)==null?void 0:Uc.left)||"0px");var CV;v((rJ==null?void 0:(CV=rJ.style)==null?void 0:CV.top)||"0px")}};
_.m$(function(){var rJ,Uc,CV;if(((rJ=_.BE())==null?void 0:rJ.getPlayerState())===-1&&Math.round(((CV=(Uc=_.BE())==null?void 0:Uc.getVideoAspectRatio())!=null?CV:0)*100)!==Math.round(y()/P()*100)){T.value.style.display="none";var Bm,LV;z(y()/((LV=(Bm=_.BE())==null?void 0:Bm.getVideoAspectRatio())!=null?LV:1))}},"VB5m5");
_.hA(function(){var rJ;(rJ=_.BE())==null||rJ.addEventListener("onStateChange",m);window.addEventListener("resize",u);u();var Uc,CV,Bm;if((Bm=(Uc=I())==null?void 0:(CV=Uc.regions)==null?void 0:CV[0])==null||!Bm.transformationMatrix)throw Error("fm");var LV;if((LV=I())==null?0:LV.trackingParams){var I$;_.lu().graftServerVe((I$=I().trackingParams)!=null?I$:"")}_.dt(function(){var bc;(bc=_.BE())==null||bc.removeEventListener("onStateChange",m);window.removeEventListener("resize",u)})});
var x=_.oH(),M=_.p(_.lQ(!1,void 0,"TPsTce"));E=M.next().value;var N=M.next().value,W=_.p(_.lQ(!1,void 0,"Uz6CHf"));M=W.next().value;var U=W.next().value,q=function(){var rJ;return _.h((rJ=I())==null?void 0:rJ.popUp,ctm)},f=function(){var rJ;
return(rJ=I())==null?void 0:rJ.command},ed=function(){return _.h(f(),_.vE)!==void 0};
W=_.TI(function(){ed()&&N(!0);U(!0);return!1});
var K=_.TI(function(){N(!1);U(!1);return!1}),p4=_.TI(function(){ed()&&N(!0);
return!1}),sc=_.TI(function(){ed()&&N(!1);
return!1}),Gf=_.TI(function(){B();
return!1}),xi=_.TI(function(rJ){rJ.key==="Enter"&&B();
return!1}),ki={},WG={};
return _.w("yt-player-overlay-video-interactions",{el:T},_.w("svg",{"on:mouseover":W,"on:mouseout":K,"on:keydown":xi,"on:focus":p4,"on:blur":sc,el:x,tabindex:0,"aria-label":function(){var rJ;return(rJ=I())==null?void 0:rJ.a11yString},
id:"player-overlay-video-interaction-svg",class:_.RQ("yt-player-overlay-video-interactions__interactions-svg",(ki["yt-player-overlay-video-interactions__interactions-svg-hover"]=E,ki),(WG["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=M,WG)),role:"button",style:function(){var rJ,Uc,CV,Bm=(CV=(rJ=I())==null?void 0:(Uc=rJ.regions)==null?void 0:Uc[0].transformationMatrix)!=null?CV:[];rJ=y();Uc=P();CV=[];for(var LV=0,I$=-1;LV<Bm.length;LV++)LV%3===0&&(I$++,CV[I$]=[]),CV[I$].push(Bm[LV]);
Bm=new TQ(CV);CV=new TQ([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);CV=Bm.multiply(CV);Bm=new TQ([[0,0],[0,0],[0,0],[0,0]]);for(LV=0;LV<CV.getSize().width;LV++){I$=eq(CV,0,LV);var bc=eq(CV,1,LV);if(I$===null||bc===null)throw Error("em`"+(LV+1).toString());RCt(Bm,LV,0,I$*rJ);RCt(Bm,LV,1,bc*Uc)}rJ=eq(Bm,0,0);LV=eq(Bm,1,0);Uc=eq(Bm,0,1);I$=eq(Bm,1,1);if(rJ===null||LV===null||Uc===null||I$===null)throw Error("cm");CV=jm8(rJ,LV,Uc,I$);bc=eq(Bm,3,0);Bm=eq(Bm,3,1);if(bc===null||Bm===null)throw Error("dm");Bm=jm8(rJ,
bc,Uc,Bm);I$=(Number((I$*-1).toFixed(2))-Number((Uc*-1).toFixed(2)))/(Number(LV.toFixed(2))-Number(rJ.toFixed(2)));bc=Math.atan(I$)*180/Math.PI;LV=I$===Number.POSITIVE_INFINITY?-90:I$===Number.NEGATIVE_INFINITY?90:Object.is(I$,-0)?180:I$===0?0:I$>0?bc*-1:rJ<LV?bc*-1:Math.abs(bc)+180;return"left:calc("+rJ+"px + "+e()+"); top:calc("+(Uc+"px + "+Y()+"); width:")+(CV+"px; height:")+(Bm+"px; transform:rotate(")+(LV+"deg);")},
"on:click":Gf}))},"ni"),"yt-player-overlay-video-interactions",{props:{data:_.Jh}});_.oQ(_.PvO,"yt-reel-metapanel-view-model",{props:{data:_.Jh,overlayDensity:_.Jh}});var cq=function(){var E=_.r.apply(this,arguments)||this;E.showScrubber=!1;E.isWatchWhileMode=!1;E.enableAnchoredPanel=_.d("desktop_shorts_v2_anchored_panel");E.anchoredPanelActive=!1;E.enableLivingroomLayout=_.d("reels_enable_livingroom_layout");E.enablePlayerMetadataContainer=_.d("reels_web_enable_metadata_container");E.enableSqueezebackPanels=_.d("web_shorts_enable_squeezeback_panels");E.isSqueezebackActive=!1;E.smallScreenSqueezeback=!1;E.isPlayerStarted=!1;E.overlayDensity=0;E.isOverlay=!1;E.isImmersive=
!1;E.isImmersiveHorizontal=!1;E.isFullscreen=!1;E.onWindowResized=function(){var B;E.set("isImmersive",((B=window.getComputedStyle(E.hostElement))==null?void 0:B.getPropertyValue("--immersive-mode-on"))==="1");E.set("isImmersiveHorizontal",E.isImmersive&&E.enableLivingroomLayout&&!E.isWatchWhileMode)};
return E};
_.L(cq,_.r);_.l=cq.prototype;_.l.updateIsOverlay=function(E){this.isOverlay=E.detail.value};
_.l.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.d("web_enable_flexible_overlay")||_.d("web_enable_format_first")||_.d("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.l.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.l.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.l.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.l.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.l.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.l.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.EF("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.EF("reels_action_justified_content")||"flex-start")};
_.l.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.l.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.yu("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.yu("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.yu("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.yu("SHARE_LABEL",
void 0,"Share")}}});_.d("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.yu("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()};
_.l.setEmptyOverlayMetadata=function(){_.d("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}))};
_.Up.Object.defineProperties(cq.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.infoPanel)}}});
cq.prototype.onIsActiveChanged=cq.prototype.onIsActiveChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],cq.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],cq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],cq.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],cq.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],cq.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],cq.prototype,"isActive",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],cq.prototype,"hidden",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],cq.prototype,"useShortsIcon",void 0);_.k([_.X({value:"left"}),_.t("design:type",String)],cq.prototype,"buttonTooltipPosition",void 0);
_.k([_.X({value:_.d("reels_enable_livingroom_layout")?"top":"left"}),_.t("design:type",String)],cq.prototype,"likeButtonTooltipPosition",void 0);_.k([_.X({value:"none"}),_.t("design:type",String)],cq.prototype,"textTransform",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cq.prototype,"showScrubber",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cq.prototype,"isWatchWhileMode",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data.infoPanel"),_.t("design:type",Object),_.t("design:paramtypes",[])],cq.prototype,"hasInfoPanel",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cq.prototype,"enableAnchoredPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cq.prototype,"anchoredPanelActive",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cq.prototype,"enableLivingroomLayout",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],cq.prototype,"enablePlayerMetadataContainer",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cq.prototype,"enableSqueezebackPanels",void 0);_.k([_.X({selector:_.jmF,reflectToAttribute:!0}),_.t("design:type",Object)],cq.prototype,"isSqueezebackActive",void 0);_.k([_.X({selector:oFm,reflectToAttribute:!0}),_.t("design:type",Object)],cq.prototype,"smallScreenSqueezeback",void 0);
_.k([_.X({selector:AmT}),_.t("design:type",Object)],cq.prototype,"isPlayerStarted",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cq.prototype,"overlayDensity",void 0);_.k([_.X(),_.t("design:type",Object)],cq.prototype,"isOverlay",void 0);_.k([_.X({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.t("design:type",Boolean)],cq.prototype,"isShortsOverlay",void 0);_.k([_.X(),_.t("design:type",Object)],cq.prototype,"isImmersive",void 0);
_.k([_.X(),_.t("design:type",Object)],cq.prototype,"isImmersiveHorizontal",void 0);_.k([_.X({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.t("design:type",Boolean)],cq.prototype,"isShortsImmersive",void 0);_.k([_.X({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.t("design:type",Object)],cq.prototype,"buttonOverride",void 0);_.k([_.X({selector:_.Y6,reflectToAttribute:!0}),_.t("design:type",Object)],cq.prototype,"isFullscreen",void 0);
_.k([_.EM("isActive"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cq.prototype,"onIsActiveChanged",null);cq=_.k([_.b({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],cq);
_.A(cq,"ytd-reel-player-overlay-renderer",function(){if(pXs!==void 0)return pXs;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[buttonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return pXs=E},{mode:1});var a69;var ie=function(){var E=_.r.apply(this,arguments)||this;E.videoDuration=0;E.playedTime=0;E.isActive=!1;E.JSC$19572_playerEvents=new Map;return E};
_.L(ie,_.r);_.l=ie.prototype;_.l.created=function(){this.JSC$19572_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19572_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.l.attached=function(){this.getPlayerAndInitializeListeners()};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19572_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Kq(this,this.onPageChanged))};
_.l.getPlayerAndInitializeListeners=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return B=_.jx(),B?_.C(I,B.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Kq(E,E.onPageChanged)),I.jumpTo(0));E.player=I.yieldResult;E.initializePlayerListeners();_.ER(I)})};
_.l.onPageChanged=function(E){var B=this;return _.a(function(I){if(I.nextAddress==1)return E.detail.newPageType!=="ytd-shorts"?I.return():_.C(I,_.k3().getPlayerPromise(),2);B.player=I.yieldResult;B.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Kq(B,B.onPageChanged));_.ER(I)})};
_.l.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19572_playerEvents)};
_.l.onVideoDataChange=function(E){var B=this;return _.a(function(I){if(!B.player||E.type!=="newdata")return I.return();B.videoDuration=_.d("web_shorts_use_progress_state_for_gapless")?B.player.getProgressState(E.playertype).seekableEnd:B.player.getDuration(E.playertype);B.playedTime=0;_.ER(I)})};
_.l.onVideoProgress=function(E){var B=this,I,T;return _.a(function(e){if(!B.player)return e.return();I=B.player.getPresentingPlayerType();T=B.player.getPlayerState();B.videoDuration=_.d("web_shorts_use_progress_state_for_gapless")?B.player.getProgressState(I).seekableEnd:B.player.getDuration(I);B.playedTime=T===0?B.videoDuration:E;_.ER(e)})};
_.l.getPercentPlayed=function(E,B){return E?_.H3(B/E,0,1):0};
_.Up.Object.defineProperties(ie.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 E="";return E=this.videoDuration&&this.playedTime?E+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):E+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],ie.prototype,"componentBehavior",void 0);_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",_.XK)],ie.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ie.prototype,"player",void 0);_.k([_.X(),_.t("design:type",Object)],ie.prototype,"videoDuration",void 0);_.k([_.X(),_.t("design:type",Object)],ie.prototype,"playedTime",void 0);_.k([_.X(),_.t("design:type",Object)],ie.prototype,"isActive",void 0);
_.k([_.S("videoDuration","playedTime"),_.t("design:type",Number),_.t("design:paramtypes",[])],ie.prototype,"percentPlayed",null);_.k([_.S("videoDuration","playedTime"),_.t("design:type",Object),_.t("design:paramtypes",[])],ie.prototype,"percentPlayedStyle",null);_.k([_.S("videoDuration","isActive"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ie.prototype,"hideProgressBar",null);
_.A(ie,"ytd-progress-bar-line",function(){if(a69===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);a69=E}E=a69;return E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var vXd;_.qE(_.uJJ,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var pn=function(){var E=_.r.apply(this,arguments)||this;E.playerState=null;E.isMuted=!1;E.shortsModernControlsEnabled=_.d("web_shorts_modern_controls");E.volumeControlsOrientationState="vertical_down";var B;if(B=_.d("web_shorts_pip_button"))_.Q().resolve(_.czL),B=!!window.documentPictureInPicture&&_.Oc();E.shortsPipButtonEnabled=B;E.JSC$19575_playerEvents=new Map;return E};
_.L(pn,_.r);_.l=pn.prototype;_.l.created=function(){this.JSC$19575_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19575_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.l.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.wA(28662);this.playPauseButtonClientVE=_.wA(36842);this.fullscreenButtonToggleOffClientVE=_.wA(222256);this.fullscreenButtonToggleOnClientVE=_.wA(222257);var E=_.nC(),B=_.Oi();E&&B&&(_.d("combine_ve_grafts")?(_.Ts(_.lu(),this.muteButtonClientVE,B),_.Ts(_.lu(),this.playPauseButtonClientVE,B)):_.r3(E,B,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19575_playerEvents),this.player=null)};
_.l.getPlayerAndInitializeListeners=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return B=_.jx(),B?_.C(I,B.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Kq(E,E.onPageChanged)),I.jumpTo(0));E.player=I.yieldResult;E.initializePlayerListeners();_.ER(I)})};
_.l.onPageChanged=function(E){var B=this;return _.a(function(I){if(I.nextAddress==1)return E.detail.newPageType!=="ytd-shorts"?I.return():_.C(I,_.k3().getPlayerPromise(),2);B.player=I.yieldResult;B.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Kq(B,B.onPageChanged));_.ER(I)})};
_.l.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19575_playerEvents)};
_.l.onPlayerStateChange=function(E){this.playerState=E};
_.l.onPlayerVolumeChange=function(E){this.isMuted=E.muted};
_.l.onPlayPauseButtonClick=function(){var E=this,B,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,_.k3().getPlayerPromise(),2);B=T.yieldResult;(I=_.nC())&&E.playPauseButtonClientVE&&_.Al(I,E.playPauseButtonClientVE);B.getPlayerState()!==1?B.playVideo():B.pauseVideo();_.ER(T)})};
_.l.computePlayPauseIcon=function(E){return E===2||E===-1||E===5?"PLAY_ARROW_FILLED":"miniplayer:shorts-pause"};
_.l.computeFullscreenLabel=function(E){return E?_.yu("FULLSCREEN_EXIT_LABEL"):_.yu("FULLSCREEN_ENTER_LABEL")};
_.l.computeShortsPipLabel=function(E){return E?_.yu("MINIPLAYER_CLOSE"):_.yu("OPEN_IN_MINIPLAYER")};
_.l.computePlayPauseLabel=function(E){return E===1||E===3?_.yu("PLAYER_LABEL_PAUSE"):_.yu("PLAYER_LABEL_PLAY")};
_.l.onMuteButtonClick=function(){var E=this,B,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,_.k3().getPlayerPromise(),2);B=T.yieldResult;(I=_.nC())&&E.muteButtonClientVE&&_.Al(I,E.muteButtonClientVE);B.isMuted()?B.unMute(!0):B.mute(!0);_.ER(T)})};
_.l.computeMuteIcon=function(E){return E?"miniplayer:volume-off":"miniplayer:volume-up"};
_.l.computeMuteLabel=function(E){return E?_.yu("PLAYER_LABEL_UNMUTE"):_.yu("PLAYER_LABEL_MUTE")};
_.l.onFullscreenButtonClick=function(){var E=_.nC();E&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Al(E,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Al(E,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.oaT()};
_.l.onShortsPipButtonClick=function(){var E=_.Q().resolve(_.R5);if(_.d("web_shorts_pip")){var B=_.Q().resolve(_.W3);E.isShortsPipActive()?B.deactivate():B.isMiniplayerActive()||(_.vx().shortsPipActivation=!0,_.d7L(B))}};
_.Up.Object.defineProperties(pn.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var E=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(){E.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"}:{}}}},
shortsPipButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeShortsPipLabel(this.isShortsPipActive),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeShortsPipLabel(this.isShortsPipActive)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"screen_full_exit":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],pn.prototype,"componentBehavior",void 0);_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",_.XK)],pn.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],pn.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],pn.prototype,"player",void 0);_.k([_.X(),_.t("design:type",Object)],pn.prototype,"playerState",void 0);_.k([_.X(),_.t("design:type",Object)],pn.prototype,"isMuted",void 0);
_.k([_.X({computed:"computePlayPauseIcon(playerState)"}),_.t("design:type",String)],pn.prototype,"playPauseIcon",void 0);_.k([_.X({computed:"computeMuteIcon(isMuted)"}),_.t("design:type",String)],pn.prototype,"muteIcon",void 0);_.k([_.X({selector:_.Y6}),_.t("design:type",Boolean)],pn.prototype,"isFullscreen",void 0);_.k([_.X({selector:_.a0}),_.t("design:type",Boolean)],pn.prototype,"isShortsPipActive",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],pn.prototype,"shortsModernControlsEnabled",void 0);_.k([_.X(),_.t("design:type",Object)],pn.prototype,"volumeControlsOrientationState",void 0);_.k([_.X(),_.t("design:type",Object)],pn.prototype,"shortsPipButtonEnabled",void 0);_.k([_.S("playerState"),_.t("design:type",Object),_.t("design:paramtypes",[])],pn.prototype,"playPauseButtonData",null);
_.k([_.S("isFullscreen"),_.t("design:type",Object),_.t("design:paramtypes",[])],pn.prototype,"fullscreenButtonData",null);_.k([_.S("isShortsPipActive"),_.t("design:type",Object),_.t("design:paramtypes",[])],pn.prototype,"shortsPipButtonData",null);_.k([_.S("isFullscreen"),_.t("design:type",String),_.t("design:paramtypes",[])],pn.prototype,"fullscreenIcon",null);_.k([_.S("isShortsPipActive"),_.t("design:type",String),_.t("design:paramtypes",[])],pn.prototype,"shortsPipIcon",null);
_.A(pn,"ytd-shorts-player-controls",function(){if(vXd===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n<template is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);vXd=E}E=vXd;return E},{mode:1});var yt8;_.oQ(_.mOV,"yt-interstitial-view-model",{props:{data:_.Jh}});var C$9=_.rp(function(E){var B=E.data;return _.w("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.w("h1",{class:"reelWatchBreakViewModelHostTitle"},_.w(_.aS,{text:function(){return B().title}})),_.w("h2",{class:"reelWatchBreakViewModelHostBody"},_.w(_.aS,{text:function(){return B().body},
isOverlay:!0})),_.w(_.hM,{data:function(){return B().buttons}},{buttonViewModel:function(I,T){return _.w("div",{class:function(){return T()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.w(_.ne,{data:I.data}))}}))},"oi");
C$9.idomCompat=!0;_.oQ(C$9,"reel-watch-break-view-model",{props:{data:_.Jh}});var Yc=function(){return _.r.apply(this,arguments)||this};
_.L(Yc,_.r);Yc.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}}};
_.Up.Object.defineProperties(Yc.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var E;return!!_.h((E=this.data)==null?void 0:E.renderer,$5s)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var E;return!!_.h((E=this.data)==null?void 0:E.renderer,I6m)}}});
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Yc.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Yc.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Yc.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Yc.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data.renderer"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Yc.prototype,"isSurvey",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.renderer"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Yc.prototype,"isInterstitialViewModel",null);Yc=_.k([_.b({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Yc);
_.A(Yc,"ytd-reel-non-video-content-renderer",function(){if(yt8!==void 0)return yt8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
return yt8=E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var wXO;_.oQ(_.agI,"desktop-shorts-player-controls",{});var aU=function(){var E=_.r.apply(this,arguments)||this;E.isPlayerPaused=!1;E.isPlayerStarted=!1;E.showPlayerControls=!1;E.showScrubber=!1;E.autoHideJobId=0;E.modern=_.d("web_button_rework");E.overlayType=_.EF("web_shorts_expanded_overlay_type");E.panelData=void 0;E.isWatchWhileMode=!1;E.hasError=!1;E.panelShowDelayMs=1;E.scrubberComponent={};E.useStamper=_.d("web_shorts_enable_title_deflation");E.isFullscreen=!1;E.shouldHideOverlay=!1;E.enableAnchoredPanel=_.d("desktop_shorts_v2_anchored_panel");
E.enablePersistentAnchoredPanel=_.d("desktop_shorts_v2_persistent_anchored_panel");E.hideWatchWhilePanel=_.d("web_shorts_hide_watch_while_panel");E.isPersistentPanelActive=!1;E.anchoredPanelActive=!1;E.isShortsPipActive=!1;E.smallScreenSqueezeback=!1;E.enableFlexibleOverlay=_.d("web_enable_flexible_overlay");E.overlayDensity=0;E.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
E.onWindowResized=function(){_.OM(E,"calculateOverlayDensity",function(){E.calculateOverlayDensity()},100)};
return E};
_.L(aU,_.r);_.l=aU.prototype;_.l.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.l.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.l.shouldRenderOverlayControl=function(E){return!this.useStamper&&this.isVideoContent(E)};
_.l.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var E=_.Q().resolve(_.wQ);this.isWatchWhileMode&&(_.d("web_enable_shorts_new_carousel")?_.Ll.addJob(function(){E.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):E.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.l.handleShowReelsCommentsOverlayCommand=function(E){E=_.h(E,l6g);this.isActive&&(E==null?0:E.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))};
_.l.updateEngagementPanelVisibility=function(E,B){E&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:B?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:E}})};
_.l.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.l.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.Q().resolve(_.R5).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.l.handleWatchWhilePanelScrimClick=function(){var E=_.Q().resolve(_.wQ);this.activeWatchWhilePanel&&(E.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.l.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.l.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.d("web_enable_shorts_new_carousel")?0:void 0}}};
_.l.handlePlayerClick=function(E){var B=this,I,T;if((T=(I=window).matchMedia)!=null&&T.call(I,"(any-pointer: coarse)").matches||!E)this.showPlayerControls=!0,_.Ll.cancelJob(this.autoHideJobId),this.autoHideJobId=_.PC(_.Ll,function(){B.showPlayerControls=!1},4E3)};
_.l.isFirstReel=function(){return this.index===0};
_.l.handleMouseenter=function(){_.Ll.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.l.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.l.handleScrubberEnter=function(){this.showScrubber=!0};
_.l.handleScrubberLeave=function(){this.showScrubber=!1};
_.l.maybeLogNonDefaultAspectRatio=function(){var E;(E=this.data)!=null&&E.thumbnail&&this.isActive&&.5625!==bud(this.data.thumbnail)&&_.hWf("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.l.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var E=document.querySelector("#shorts-container");if(E){E=E.offsetWidth-96-this.playerContainer.offsetWidth-72;E=E>=720?1:E>=144?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&E===1&&(E=0);this.isPersistentPanelActive&&(E=0);this.overlayDensity=E;var B;(B=this.onOverlayDensityChanged)==null||B.call(this,this.index,this.overlayDensity)}}};
_.l.onOverlayDensityChange=function(){var E;(E=this.onOverlayDensityChanged)==null||E.call(this,this.index,this.overlayDensity);(E=_.n(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&E.set("overlayDensity",this.overlayDensity);if(E=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))E.overlayDensity=this.overlayDensity};
_.l.isVideoContent=function(E){_.Q().resolve(_.R5);return!!_.h(E,_.yQ)};
_.l.isNonVideoContent=function(E){_.Q().resolve(_.R5);return!!_.h(E,_.MT)};
_.l.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Up.Object.defineProperties(aU.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var E,B;return _.d("web_enable_format_first")||((E=this.data)==null?void 0:E.adsOverlay)&&_.d("web_enable_format_first_ads_only")||((B=this.data)==null?void 0:B.reelPlayerOverlayRenderer)&&_.d("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var E;return!this.isActive||!this.isPlayerStarted||(E=this.data)!=null&&E.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var E;if(this.useStamper&&((E=this.data)==null?0:E.command)&&this.isVideoContent(this.data.command)){var B,I;if(((B=this.data)==null?0:B.adsOverlay)&&Object.keys((I=this.data)==null?void 0:I.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var T,e;if(((T=this.data)==null?0:T.reelPlayerOverlayRenderer)&&Object.keys((e=this.data)==null?void 0:e.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
aU.prototype.onOverlayDensityChange=aU.prototype.onOverlayDensityChange;aU.prototype.calculateOverlayDensity=aU.prototype.calculateOverlayDensity;aU.prototype.maybeLogNonDefaultAspectRatio=aU.prototype.maybeLogNonDefaultAspectRatio;aU.prototype.onEngagementPanelsChanged=aU.prototype.onEngagementPanelsChanged;aU.prototype.onScrubberDataChange=aU.prototype.onScrubberDataChange;aU.prototype.updateShouldHideOverlay=aU.prototype.updateShouldHideOverlay;
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],aU.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],aU.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],aU.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],aU.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Number)],aU.prototype,"index",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],aU.prototype,"isActive",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],aU.prototype,"isHiddenInDom",void 0);_.k([_.X(),_.t("design:type",Object)],aU.prototype,"isPlayerPaused",void 0);_.k([_.X({selector:AmT}),_.t("design:type",Object)],aU.prototype,"isPlayerStarted",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"showPlayerControls",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"showScrubber",void 0);_.k([_.X(),_.t("design:type",Object)],aU.prototype,"autoHideJobId",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"modern",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"overlayType",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],aU.prototype,"ytdReduxBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],aU.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],aU.prototype,"watchWhileEngagementPanels",void 0);_.k([_.X(),_.t("design:type",Object)],aU.prototype,"panelData",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"isWatchWhileMode",void 0);_.k([_.X(),_.t("design:type",String)],aU.prototype,"activeWatchWhilePanel",void 0);
_.k([_.X(),_.t("design:type",Object)],aU.prototype,"hasError",void 0);_.k([_.X(),_.t("design:type",Object)],aU.prototype,"panelShowDelayMs",void 0);_.k([_.X(),_.t("design:type",Object)],aU.prototype,"scrubberComponent",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"useStamper",void 0);_.k([_.X({selector:_.Y6,reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"isFullscreen",void 0);
_.k([_.X(),_.t("design:type",Object)],aU.prototype,"shouldHideOverlay",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"enableAnchoredPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"enablePersistentAnchoredPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"hideWatchWhilePanel",void 0);
_.k([_.X({selector:_.jmF,reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"isPersistentPanelActive",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"anchoredPanelActive",void 0);_.k([_.X({selector:_.a0,reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"isShortsPipActive",void 0);_.k([_.X({selector:oFm,reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"smallScreenSqueezeback",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.t("design:type",Object),_.t("design:paramtypes",[])],aU.prototype,"enableFormatFirst",null);_.k([_.X(),_.t("design:type",Object)],aU.prototype,"enableFlexibleOverlay",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aU.prototype,"overlayDensity",void 0);_.k([_.X(),_.t("design:type",Function)],aU.prototype,"onOverlayDensityChanged",void 0);
_.k([_.X(),_.S("isActive","hasError"),_.t("design:type",Object),_.t("design:paramtypes",[])],aU.prototype,"shouldRenderPlayerElements",null);_.k([_.X(),_.S("isActive","isWatchWhileMode"),_.t("design:type",Object),_.t("design:paramtypes",[])],aU.prototype,"watchWhileOrPersistentActive",null);_.k([_.EM("isActive","hasError","showingExpandedOverlay"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aU.prototype,"updateShouldHideOverlay",null);
_.k([_.X({reflectToAttribute:!0}),_.S("isActive","isPlayerStarted","data"),_.t("design:type",Object),_.t("design:paramtypes",[])],aU.prototype,"shouldRenderScrubber",null);_.k([_.EM("shouldRenderScrubber"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aU.prototype,"onScrubberDataChange",null);_.k([_.S("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.t("design:type",Object),_.t("design:paramtypes",[])],aU.prototype,"overlayComponent",null);
_.k([_.EM("watchWhileEngagementPanels"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aU.prototype,"onEngagementPanelsChanged",null);_.k([_.$7("#player-container"),_.t("design:type",HTMLElement)],aU.prototype,"playerContainer",void 0);_.k([_.$7("#cinematic-container"),_.t("design:type",HTMLElement)],aU.prototype,"cinematicContainer",void 0);
_.k([_.EM("isPersistentPanelActive","data.thumbnail"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aU.prototype,"maybeLogNonDefaultAspectRatio",null);_.k([_.EM("isPersistentPanelActive"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aU.prototype,"calculateOverlayDensity",null);_.k([_.EM("overlayDensity"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aU.prototype,"onOverlayDensityChange",null);
aU=_.k([_.b({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],aU);
_.A(aU,"ytd-reel-video-renderer",function(){if(wXO!==void 0)return wXO;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return wXO=E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var vq=function(){var E=_.r.apply(this,arguments)||this;E.isPreviousPageShorts=!1;E.index=0;E.delayedActiveIndex=0;E.playablePreviousIndex=null;E.isPlayerPaused=!1;E.isPlayerStarted=!1;E.intersectionObserverThreshold=.6;E.fitToVisibleBounds=!1;E.pageSubtype="shorts";E.panelShowDelayMs=_.RI("enable_shorts_panel_show_delay_ms");E.enablePreviousContinuation=_.d("shorts_in_playlists_web");E.shortsPipEnabled=_.d("web_shorts_pip");E.isDark=document.documentElement.hasAttribute("dark");E.shortsViewTransitions=
_.d("web_shorts_view_transitions");E.isFullscreen=!1;E.isShortsPipActive=!1;E.buttonOverride={iconPosition:"icon-only",size:"XL"};E.anchoredPanelActive=!1;E.isActive=!1;E.smallScreenPersistentPanel=!1;E.isPersistentPanelActive=!1;E.smallScreenSqueezeBack=!1;E.enableScrollIntoViewCenter=_.d("web_scroll_into_view_center");E.formatFirst=_.d("web_enable_format_first")||_.d("web_enable_format_first_ads_only")||_.d("web_enable_format_first_organic_only");E.enableFlexibleOverlay=_.d("web_enable_flexible_overlay");
E.isShortsInitialized=!1;E.hidePreviousButtonImmediately=!1;E.showPreviousButtonImmediately=!1;E.endOfNextContinuation=!1;E.currentPlayerIndex=0;E.nextReelVe=_.wA(56921);E.prevReelVe=_.wA(56922);E.loopToggleOffVe=_.wA(198013);E.loopToggleOnVe=_.wA(198014);E.ambientModeToggleVe=_.wA(227860);E.reelPlayerPausedStateRendererVe=_.wA(141313);E.storedPlaybackSpeed=null;E.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"};E.onOverlayDensityChanged=function(B,I){var T;(T=E.getActiveReelVideo(B))==null||T.setAttribute("overlay-density",String(I))};
return E};
_.L(vq,_.r);_.l=vq.prototype;
_.l.deflateInactivePreviousSlides=function(){var E=_.RI("web_shorts_deflate_inactive_slides_aggressive_distance");if(E>0&&this.shortsProcessedSequence&&this.activeIndex){E=this.activeIndex-E;for(var B=0;B<=E;B++){var I=void 0;((I=this.shortsProcessedSequence[B].reelPlayerOverlayRenderer)==null?0:I.likeButton)&&this.set("shortsProcessedSequence."+B+".reelPlayerOverlayRenderer",{});I=void 0;((I=this.shortsProcessedSequence[B].adsOverlay)==null?0:I.adSlotMetadata)&&this.set("shortsProcessedSequence."+B+
".adsOverlay",{})}}};
_.l.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.l.onResize=function(){var E=_.t2(),B=E.dispatch,I=this.calculateIsSmallWidth();B.call(E,_.BP({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:I}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.l.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:_.d("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0},properties:{showDelayMs:"[[panelShowDelayMs]]"}}},renderPriority:0}}};
_.l.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var E=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,B=E,I=0;E<250&&(B=E+this.shortsInnerContainer.clientWidth,I=24);_.Dk(this.hostElement,{"--ytd-shorts-header-width":B+"px","--ytd-shorts-top-spacing":I+"px"})}};
_.l.isFirstShorts=function(E){return E?this.index===-E.length:this.index===0};
_.l.isActiveReel=function(E,B,I){I&&(B=this.calculatePrevIndex(B,I));return E===B};
_.l.onFullscreenChange=function(){if(_.d("web_fullscreen_shorts")){var E;(E=this.getActiveReelVideo(this.activeIndex))==null||E.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.Q().resolve(_.W3).close(!0)}};
_.l.engagementPanelsChanged=function(){var E;this.watchWhileEngagementPanels=(E=this.data)==null?void 0:E.engagementPanels};
_.l.unregisterPanels=function(){var E=_.Q().resolve(_.wQ);if(this.watchWhileEngagementPanels)for(var B=_.p(this.watchWhileEngagementPanels),I=B.next();!I.done;I=B.next()){var T=void 0,e=void 0;I=(T=I.value.engagementPanelSectionListRenderer)==null?void 0:(e=T.identifier)==null?void 0:e.tag;E&&I&&E.panelMap.delete(I)}};
_.l.isVideoContent=function(E){return this.isVideoContentCommand(E==null?void 0:E.command)};
_.l.getActiveReelVideo=function(E){return _.n(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+E+'"]')};
_.l.calculatePrevIndex=function(E,B){return B?E-((B==null?void 0:B.length)||0):-1};
_.l.onKeydown=function(E){var B=_.W8(E)||[];if(!_.rgt(B))if(E.code==="ArrowUp")E.preventDefault(),this.handlePrevButtonClick();else if(E.code==="ArrowDown")E.preventDefault(),this.handleNextButtonClick();else if(E.code==="KeyM")this.toggleMuteUnmuteVideo();else if(E.code==="KeyK"||E.code==="Space")this.togglePlayPauseVideo();else if((E.code==="KeyA"||E.code==="ArrowLeft")&&_.d("web_shorts_keyboard_enable_seek_shortcuts")){var I;(I=this.player)==null||I.seekBy(-5)}else if((E.code==="KeyD"||E.code===
"ArrowRight")&&_.d("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var T;(T=this.player)==null||T.seekBy(5)}};
_.l.onServiceRequestCompleted=function(E,B){E=B.data;E.continuationEndpoint&&E.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:E.entries,continuationEndpoint:E.continuationEndpoint}}):E.prevContinuationEndpoint&&E.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:E.prevEntries,prevContinuationEndpoint:E.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.l.handleEngagementPanelVisibilityChanged=function(E,B){var I=_.Q().resolve(_.wQ);if(E&&I){var T,e=((T=E.identifier)==null?void 0:T.tag)||E.panelIdentifier||E.targetId;if(B==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==e){I.hidePanel(this.activePanel);var c;this.activePanel=((c=E.identifier)==null?void 0:c.tag)||E.panelIdentifier}else this.isPersistentPanelActive=!0,_.t2().dispatch(VKs(!0)),this.anchoredPanelActive=!0,this.activePanel=e;else B==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===e&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.t2().dispatch(VKs(!1)))}};
_.l.handlePanelScrimClick=function(){var E=_.Q().resolve(_.wQ);this.activePanel&&(E.hidePanel(this.activePanel),_.t2().dispatch(VKs(!1)))};
_.l.getShortsLoopSetting=function(){var E,B,I,T,e;return _.a(function(c){switch(c.nextAddress){case 1:return _.d("kevlar_shorts_auto_advance")?_.C(c,_.dB.getInstance(),2):c.return(!0);case 2:return(E=c.yieldResult)?_.C(c,E.get("sfvles"),3):c.return(!0);case 3:return I=(B=c.yieldResult)!=null?B:!1,_.C(c,E.get("sfvle"),4);case 4:return e=(T=c.yieldResult)!=null?T:!0,I?c.return(e):c.return(!0)}})};
_.l.handleSignalActionToggleLoopShortsOff=function(){var E=this,B,I,T;return _.a(function(e){switch(e.nextAddress){case 1:if(!E.player)return e.return();E.player.setLoopVideo(!1);B=_.lu();_.lf(B,E.loopToggleOffVe);return _.C(e,_.dB.getInstance(),2);case 2:return(I=e.yieldResult)?_.C(e,I.set("sfvle",!1),3):e.return();case 3:return _.C(e,I.set("sfvles",!0),4);case 4:T=_.ZB(),_.PN(0,203,!1),_.PN(0,204,!0),T.save(),_.ER(e)}})};
_.l.handleSignalActionToggleLoopShortsOn=function(){var E=this,B,I,T;return _.a(function(e){switch(e.nextAddress){case 1:if(!E.player)return e.return();E.player.setLoopVideo(!0);B=_.lu();_.lf(B,E.loopToggleOnVe);return _.C(e,_.dB.getInstance(),2);case 2:return(I=e.yieldResult)?_.C(e,I.set("sfvle",!0),3):e.return();case 3:return _.C(e,I.set("sfvles",!0),4);case 4:T=_.ZB(),_.PN(0,203,!0),_.PN(0,204,!0),T.save(),_.ER(e)}})};
_.l.handleSignalActionToggleCinematicShortsOn=function(){rmO(!0);var E;(E=this.JSC$19600_cinematicController)==null||_.JmL(E,!0);_.lf(_.lu(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.l.handleSignalActionToggleCinematicShortsOff=function(){rmO(!1);var E;(E=this.JSC$19600_cinematicController)==null||_.JmL(E,!1);_.lf(_.lu(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.l.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.l.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.l.unhideCurrentOverlay=function(){if(this.overlayContainer){var E=this.overlayContainer.querySelector("#experiment-overlay");E&&_.Ll.addLowPriorityJob(function(){E.style.display="unset"},100)}};
_.l.getCurrentShort=function(){if(this.currentEndpoint){var E=this.currentEndpoint;if(this.isNonVideoContentCommand(E)){var B=_.h(E,_.MT);return{reelNonVideoContentRenderer:_.h(B==null?void 0:B.renderer,_.Coz),command:E}}if(this.data){var I;B=(I=_.h(this.currentEndpoint,_.yQ))==null?void 0:I.thumbnail;var T;I=(T=this.data.overlay)==null?void 0:T.reelPlayerOverlayRenderer;_.Q().resolve(_.R5);var e,c;T=_.h((e=this.data.overlay)==null?void 0:(c=e.shortsAdsRenderer)==null?void 0:c.overlay,_.q8$);E=Object.assign({},
this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.h(this.currentEndpoint,_.yQ),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:I,thumbnail:B,command:E,adsOverlay:T}}}};
_.l.created=function(){var E=this;this.scrollToVideoThrottle=new _.qH(function(B){var I;(I=E.getActiveReelVideo(B))==null||I.scrollIntoView({behavior:"smooth",block:"nearest",inline:E.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.qH(function(B){var I;(I=E.getActiveReelVideo(B))==null||I.scrollIntoView({behavior:"auto",block:"nearest",inline:E.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.l.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.l.attached=function(){var E=this;tKO(this);this.pageScrollElement=_.n(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Kq(this,this.processResetAction));_.d("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.d("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var B=E.getActiveReelVideo(E.activeIndex);
E.maybeCreateIntersectionObserver();B==null||B.scrollIntoView({behavior:"instant",block:"nearest",inline:E.enableScrollIntoViewCenter?"center":"start"});E.shortsContainer.style.overflowY="scroll"}))};
_.l.calculateSqueezebackPanelSize=function(){var E=this,B=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Ll.addLowPriorityJob(function(){B<360?_.t2().dispatch(qEL(!0)):(E.hostElement.style.setProperty("--anchored-panel-width",Math.min(B,480)+"px"),_.t2().dispatch(qEL(!1)))})};
_.l.detached=function(){var E=_.Q().resolve(_.R5);E.rootElement=void 0;var B;(B=E.unsubscribeFromStore)==null||B.call(E);E.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Kq(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.l.onResizeFinished=function(E,B){var I=this,T=new ResizeObserver(function(){I.shortsContainer.style.overflowY="hidden";_.Ll.addLowPriorityJob(function(){B()},100)});
T.observe(E);return T};
_.l.resetDocumentScrollTop=function(){var E,B;if((E=document)==null?0:(B=E.scrollingElement)==null?0:B.scrollTop)document.scrollingElement.scrollTop=0};
_.l.loadPage_=function(E){var B=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),E){var I;if((I=_.h(this.currentEndpoint,_.yQ))==null?0:I.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=E;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){B.isPlayerStarted&&
(B.handleOnPlaybackCommand(),B.afterPlayerStarted=function(){})};
this.registerPanel(E)}};
_.l.afterPlayerStarted=function(){};
_.l.handleOnPlaybackCommand=function(){if(_.d("web_shorts_comment_stickers")&&this.isPlayerStarted){var E,B=(E=_.h(this.currentEndpoint,_.yQ))==null?void 0:E.onPlaybackCommand;B&&this.ytComponentBehavior.resolveCommand(B)}};
_.l.maybeCreateIntersectionObserver=function(){var E=this,B=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==B){this.intersectionObserverThreshold=B;var I={rootMargin:"0px",threshold:B},T;(T=this.intersectionObserver)==null||T.disconnect();this.intersectionObserver=new IntersectionObserver(function(e){e=_.p(e);for(var c=e.next();!c.done;c=e.next())if(c=c.value,c.intersectionRatio>B){c=Number(c.target.id);if(isNaN(c))break;if(c===E.index)break;
_.e3J();E.loadVideo(c);_.HN("r_vtc")}},I);
this.observeShorts()}};
_.l.observeShorts=function(){var E=[].concat(_.ad(_.n(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));E=_.p(E);for(var B=E.next();!B.done;B=E.next()){B=B.value;var I=void 0;(I=this.intersectionObserver)==null||I.observe(B)}};
_.l.initCsi=function(){_.Qg("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var E={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"}},B,I;if((B=this.playerData)==null?0:(I=B.cacheMetadata)==null?0:I.isCacheHit)E.isCacheHit=!0;var T;if(B=(T=_.h(this.currentEndpoint,_.yQ))==null?void 0:
T.prefetchTaskId)E.prefetchInfo={taskId:B};_.LO(E)};
_.l.isAd=function(){var E,B;return!!((E=_.h(this.currentEndpoint,_.yQ))==null?0:(B=E.adClientParams)==null?0:B.isAd)};
_.l.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.l.getPlayerContainer=function(){var E;return(E=_.n(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:E.playerContainer};
_.l.onPlayerStateChange=function(E){var B=this;this.isPlayerPaused=E===2;E!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?E===1&&this.index===0&&(this.isPlayerStarted||_.t2().dispatch(IU(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.t2().dispatch(IU(!0)));this.player&&!this.player.getLoopVideo()&&_.Ll.addLowPriorityJob(function(){B.getShortsLoopSetting().then(function(I){var T;(T=B.player)==null||T.setLoopVideo(I)})});
this.isPlayerPaused&&_.d("web_shorts_paused_state_logging")&&_.b1(_.nC(),[this.reelPlayerPausedStateRendererVe])};
_.l.isInBackground=function(){var E=window.document.visibilityState;return!(!E||E==="visible")};
_.l.isShortPlayable=function(){if(_.d("kevlar_playable_short_killswitch"))return!0;var E;return(E=this.playerData)!=null&&E.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.l.setNormalPlaybackSpeed=function(){var E=this,B,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,E.getPlayer().getPlayerPromise(),2);B=T.yieldResult;I=B.getPlaybackRate();I!==1&&(E.storedPlaybackSpeed=I,B.setPlaybackRate(1));_.ER(T)})};
_.l.restorePlaybackSpeed=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1)return E.storedPlaybackSpeed===null?I.jumpTo(0):_.C(I,E.getPlayer().getPlayerPromise(),3);B=I.yieldResult;B.setPlaybackRate(E.storedPlaybackSpeed);E.storedPlaybackSpeed=null;_.ER(I)})};
_.l.playerDataChanged=function(){var E=this,B,I,T,e,c,Y,v,y,Z;return _.a(function(P){if(P.nextAddress==1){B=E.getPlayer();_.d("web_shorts_dynamic_intersection_observer_threshold")&&((I=E.intersectionObserver)==null||I.disconnect());if(E.playerData){if(((T=E.playerData.videoDetails)==null?void 0:T.videoId)!==((e=B.getPlayer())==null?void 0:e.getVideoData().video_id)){c={};if(Y=_.h(E.currentEndpoint,_.yQ))c.watch_endpoint=Y,Y.endTimeSeconds&&(c.end=Y.endTimeSeconds);B.loadVideoWithPlayerResponse(E.playerData,
c)}}else return P.return();return E.player?P.jumpTo(2):_.C(P,B.getPlayerPromise(),3)}P.nextAddress!=2&&(E.player=P.yieldResult,E.JSC$19600_playerStateChangeListener=E.onPlayerStateChange.bind(E),E.player.addEventListener("onStateChange",E.JSC$19600_playerStateChangeListener),_.d("kevlar_client_enable_shorts_player_bootstrap")&&_.k6(),E.scrollToVideoThrottle.fire(E.index),E.movePlayerToVideo(E.index),_.Ll.addLowPriorityJob(function(){E.getShortsLoopSetting().then(function(z){var m;(m=E.player)==null||
m.setLoopVideo(z)})}),_.jZh.resolve(E.player),E.player.syncVolume(),E.getPlayer().focusOnPlayer());
_.d("web_shorts_caption_language_entity_killswitch")||_.Ll.addLowPriorityJob(function(){var z=_.Q().resolve(_.R5),m,u=(m=E.player)==null?void 0:m.getOption("captions","track");m=_.lm("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(u){var x;((x=_.iO(_.wIi,m)())==null?void 0:x.value)!==u.displayName&&z.store.dispatch(_.aL("stringEntity",m,{key:m,value:u.displayName||""}))}else z.store.dispatch(_.aL("stringEntity",m,{key:m,value:"CAPTIONS_UNAVAILABLE"}))});
_.Ll.addLowPriorityJob(function(){E.observeShorts()},100);
v=E.player.getPlayerState(E.player.getPresentingPlayerType());v!==1||E.isPlayerStarted||_.t2().dispatch(IU(!0));E.updateBackNavContainerWidth();y=_.h(E.currentEndpoint,_.yQ);((Z=y)==null?0:Z.startTimeSeconds)&&E.player.seekTo(y.startTimeSeconds);if(E.JSC$19600_cinematicController||E.cinematicsInitializeJobId)return P.return();E.cinematicsInitializeJobId=_.Ll.addLowPriorityJob(function(){E.initCinematicController();E.cinematicsInitializeJobId=void 0});
_.ER(P)})};
_.l.onShortUndoDismiss=function(){var E=this,B=fE2().pop();B!==void 0&&(_.AJ(this,function(){E.showCardWithIndex(B)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.l.onShortsDismiss=function(E){if(E=E.detail.reelDismissalActionRenderer)(E=_.h(E.onDismissalCompletionRenderer,_.vFO))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:E}}}),this.scrollAndDismissCard()};
_.l.processReelNonVideoContentDismissalCommand=function(E){var B=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);E=_.h(E,ecd);this.activeDimissalTimeout=setTimeout(function(){B.scrollAndDismissCard()},Number(E==null?void 0:E.delayMs))};
_.l.scrollAndDismissCard=function(){var E=this,B=this.index;fE2().push(B);_.AJ(this,function(){var I=E.getPlayableNextIndex();I!==null&&(I=E.getActiveReelVideo(I),E.hideCardWithIndex(B),I==null||I.scrollIntoView({behavior:"smooth",block:"nearest",inline:E.enableScrollIntoViewCenter?"center":"start"}))})};
_.l.hideCardWithIndex=function(E){if(E=this.getActiveReelVideo(E))E.hidden=!0};
_.l.showCardWithIndex=function(E){if(E=this.getActiveReelVideo(E))E.hidden=!1};
_.l.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.l.activeChanged=function(E){_.t2().dispatch(_.BP({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:E}}));if(E)document.addEventListener("keydown",_.Kq(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var B;(B=this.player)==null||B.sendAbandonmentPing()}var I;(I=this.player)==null||I.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Kq(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.l.graftClientVisualElements=function(){if(this.data){var E=_.lu();_.jeD(E,_.i1({response:this.reelWatchSequenceResponse}));_.Ts(E,this.nextReelVe);_.Ts(E,this.prevReelVe);_.d("kevlar_shorts_auto_advance")&&(_.Ts(E,this.loopToggleOffVe),_.Ts(E,this.loopToggleOnVe));_.Ts(E,this.ambientModeToggleVe);_.b1(_.nC(),[this.nextReelVe,this.prevReelVe]);_.d("web_shorts_paused_state_logging")&&_.Ts(E,this.reelPlayerPausedStateRendererVe)}};
_.l.graftNvcRenderer=function(){var E,B,I,T,e=this.index<0?(E=this.shortsProcessedPrevSequence)==null?void 0:(B=E[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:B.command:(I=this.shortsProcessedSequence)==null?void 0:(T=I[this.index])==null?void 0:T.command;if(e&&this.isNonVideoContentCommand(e)){E=_.h(e,_.MT);var c,Y;(E=(c=_.h(E==null?void 0:E.renderer,_.Coz))==null?void 0:(Y=c.loggingDirectives)==null?void 0:Y.trackingParams)&&_.lu().graftServerVe(E)}};
_.l.setActiveIndex=function(){_.Q().resolve(_.R5).setActiveIndex(this.index)};
_.l.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.l.lazyUpdateMiniplayerData=function(){var E=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Ll.addLowPriorityJob(function(){E.updateMiniplayerData();E.updateMiniplayerDataJobId=void 0}))};
_.l.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Ll.cancelJob(this.updateMiniplayerDataJobId)};
_.l.updateMiniplayerData=function(){var E,B,I,T=_.Q().resolve(_.W3),e={shortsData:this.getCurrentShort(),previousButtonDisabled:!((E=this.prevButtonData)==null||!E.isDisabled),nextButtonDisabled:!((B=this.nextButtonData)==null||!B.isDisabled),playabilityStatus:(I=this.playerData)==null?void 0:I.playabilityStatus};_.yb(T,e)};
_.l.resetPlayerLocation=function(){var E=this.getPlayer();this.initialPlayerContainer&&(E.appendTo(this.initialPlayerContainer,void 0,!0),this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.l.movePlayerToVideo=function(E,B){var I=this;B=B===void 0?!0:B;var T=this.getActiveReelVideo(E),e=this.getPlayer();if(T){this.overlayContainer||(this.overlayContainer=_.n(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||e.appendTo(this.overlayContainer.playerContainer,void 0,!0));T.appendChild(this.overlayContainer);var c;(c=this.player)==null||c.setSize(NaN,NaN);this.isActive||_.PC(_.Ll,function(){I.isActive=!0});
e.style.visibility="visible";_.d("reels_web_disable_rtr_tick")||_.d("reels_web_use_pbs_first_shorts")&&E===0||_.nO("r_tr");this.currentPlayerIndex=E;T.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else B?_.Ll.addLowPriorityJob(function(){I.movePlayerToVideo(I.index,!1)}):Math.random()<=_.RI("web_shorts_error_logging_threshold")&&_.GF(new _.P7("Trying to movePlayerToVideo with undefined container.",{firstAttempt:B,
index:E}))};
_.l.enableFormatFirst=function(E){return _.d("web_enable_format_first")||E.adsOverlay&&_.d("web_enable_format_first_ads_only")||E.reelPlayerOverlayRenderer&&_.d("web_enable_format_first_organic_only")};
_.l.getAspectRatio=function(E){if(E!=null&&E.thumbnail&&this.enableFormatFirst(E))return"--ytd-shorts-player-ratio: "+bud(E.thumbnail)};
_.l.getBackgroundImage=function(E){if(E!=null&&E.thumbnail)return(E=_.jO(E.thumbnail.thumbnails))?'background-image:url("'+E+'");':"background-color:black;"};
_.l.onPersistentPanelActiveChanged=function(){var E=this.getCurrentShort();if(E&&this.enableFormatFirst(E)&&(E==null?0:E.thumbnail)&&bud(E.thumbnail)!==.5625){var B;(B=this.player)==null||B.setSize(NaN,NaN)}};
_.l.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.l.maybeMoveCinematicsToVideo=function(){var E=this;this.cinematicTransitionJobId&&_.Ll.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.Ll.addLowPriorityJob(function(){E.moveCinematicsToVideo()},500)};
_.l.moveCinematicsToVideo=function(){var E;(E=this.JSC$19600_cinematicController)!=null&&(E=E.currentCinematicEffect)!=null&&(E=E.storyboardManager,E.paused=!1,_.PrH(E),E.update());E=_.n(this.hostElement).querySelector("ytd-reel-video-renderer");(E==null?0:E.cinematicContainer)&&E.cinematicContainer!==this.shortsCinematicContainer.parentElement&&E.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.l.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.l.updatePrevButtonData=function(){var E=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(E){var B;this.prevButtonData=E=Object.assign({},E,{accessibility:{label:_.yu("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:E.isDisabled||this.index===-(((B=this.shortsProcessedPrevSequence)==null?void 0:B.length)||0),tooltip:this.isUpArrowHidden?"":_.yu("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=E=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.l.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.l.updateNextButtonData=function(){var E=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(E){var B;this.nextButtonData=E=Object.assign({},E,{accessibility:{label:_.yu("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:E.isDisabled||this.index===((B=this.shortsProcessedSequence)==null?void 0:B.length),tooltip:_.yu("NEXT_VIDEO_LABEL")||""})}};
_.l.getPlayablePreviousIndex=function(){for(var E,B=this.index-1;B>=-(((E=this.prevShortsSequence)==null?void 0:E.length)||0);B--)if(!fE2().includes(B))return B;return null};
_.l.getIndexInSequence=function(E,B){return E.findIndex(function(I){var T;return((T=_.h(I.command,_.yQ))==null?void 0:T.videoId)===B})};
_.l.handlePrevButtonClick=function(E){var B=this,I,T;return _.a(function(e){I=B.getPlayablePreviousIndex();if(I===null)return e.return();B.gestureType=((T=E)==null?void 0:T.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";I===0&&(B.hidePreviousButtonImmediately=!0);if(B.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){B.transitionToVideoThrottle.fire(I)}),e.return();
B.scrollToVideoThrottle.fire(I);_.ER(e)})};
_.l.getPlayableNextIndex=function(){for(var E,B=this.index+1;B<(((E=this.shortsProcessedSequence)==null?void 0:E.length)||0);B++)if(!fE2().includes(B))return B;return null};
_.l.handleNextButtonClick=function(E,B){var I=this,T,e;return _.a(function(c){T=I.getPlayableNextIndex();if(T===null)return c.return();T===1&&(I.showPreviousButtonImmediately=!0);I.gestureType=((e=E)==null?void 0:e.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";B&&(I.gestureType=B);if(I.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){I.transitionToVideoThrottle.fire(T)}),c.return();
I.scrollToVideoThrottle.fire(T);_.ER(c)})};
_.l.handleReelNavigateCommand=function(E,B,I){(E=_.h(E,TaL))&&B&&E.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(I)};
_.l.loadVideo=function(E,B){B=B===void 0?!1:B;if(E!==this.currentPlayerIndex){_.t2().dispatch(IU(!1));if(this.isAd()&&!B){var I;(I=this.player)==null||I.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.Ll.cancelJob(this.cinematicTransitionJobId);if((B=this.JSC$19600_cinematicController)!=null){var T;(T=B.currentCinematicEffect)==null||T.pause()}if((T=this.JSC$19600_cinematicController)!=null){var e;(e=T.currentCinematicEffect)==null||e.clear()}T=E>this.index;this.isShortsMiniplayerActive()&&
(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(T));this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var c,Y,v,y;e=E<0?(c=this.shortsProcessedPrevSequence)==null?void 0:(Y=c[this.shortsProcessedPrevSequence.length+E])==null?void 0:Y.command:(v=this.shortsProcessedSequence)==null?void 0:(y=v[E])==null?void 0:y.command;this.index=E;this.gestureType||(this.gestureType=T?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");e&&this.isVideoContentCommand(e)&&(this.ytComponentBehavior.resolveCommand(e,{form:{createScreenConfig:{clickedVisualElement:T?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(e&&this.isNonVideoContentCommand(e)){this.currentEndpoint=e;this.data=void 0;c=_.lu();Y=_.h(e,_.MT);var Z,P;(Y=(Z=_.h(Y==null?void 0:Y.renderer,_.Coz))==null?void 0:(P=Z.screenLoggingData)==null?void 0:P.screenVeType)&&_.I5(c,
Y);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}Z=_.RI("reels_enable_early_continuation_offset")<=0?1:_.RI("reels_enable_early_continuation_offset");var z,m;if(((z=this.reelWatchSequenceResponse)==null?0:z.continuationEndpoint)&&((m=this.reelWatchSequenceResponse)==null?0:m.entries)&&E===this.reelWatchSequenceResponse.entries.length-Z){var u,x;z={contentPlaybackContext:_.Cq({},(x=_.h((u=this.currentEndpoint)==null?void 0:u.commandMetadata,_.D$))==null?void 0:
x.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:z})}var M,N,W;((M=this.reelWatchSequenceResponse)==null?0:M.prevContinuationEndpoint)&&E===-(((N=this.reelWatchSequenceResponse)==null?void 0:(W=N.prevEntries)==null?void 0:W.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.l.setMiniplayerPreview=function(E){E=(E===void 0?0:E)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var B,I,T=_.Q().resolve(_.W3),e={shortsData:void 0,shortsPreviewThumbnail:E?(B=this.shortsProcessedSequence)==null?void 0:(I=B[E])==null?void 0:I.thumbnail:void 0};_.yb(T,e)};
_.l.updateTitle=function(E){var B,I;E=(E==null?0:E.adPlacements)?"":(I=E==null?void 0:(B=E.videoDetails)==null?void 0:B.title)!=null?I:"";_.$O(this.hostElement,"yt-update-title",E)};
_.l.registerPanel=function(E){var B=_.Q().resolve(_.wQ);if(B){E=_.p(E.engagementPanels||[]);for(var I=E.next();!I.done;I=E.next()){I=I.value;var T=I.engagementPanelSectionListRenderer,e=void 0,c=void 0,Y=void 0,v=void 0,y=((e=T)==null?void 0:e.targetId)||((c=T)==null?void 0:c.panelIdentifier)||((Y=T)==null?void 0:(v=Y.identifier)==null?void 0:v.tag);e=T=void 0;(e=(T=B).registerPanelContent)==null||e.call(T,y,I)}}};
_.l.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;_.t2().dispatch(IU(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.t2().dispatch(VKs(!1));var E=_.Q().resolve(_.R5);E.dismissedIndices=[];E.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.Q().resolve(_.W3).close(!0)};
_.l.processAppendReelWatchSequenceContinuationEntriesAction=function(E){var B=this,I;(I=this.intersectionObserver)==null||I.disconnect();E=E.appendReelWatchSequenceContinuationEntriesAction;if(E==null?0:E.entries){var T;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.ad(((T=this.reelWatchSequenceResponse)==null?void 0:T.entries)||[]),_.ad(E.entries)),continuationEndpoint:E.continuationEndpoint})}else if(E==null?0:E.prevEntries){var e;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.ad(((e=this.reelWatchSequenceResponse)==null?void 0:e.prevEntries)||[]),_.ad(E.prevEntries)),prevContinuationEndpoint:E.prevContinuationEndpoint});_.Ll.addLowPriorityJob(function(){B.movePlayerToVideo(B.index);var c;(c=B.getActiveReelVideo(B.index))==null||c.scrollIntoView({block:"nearest",inline:B.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.Ll.addLowPriorityJob(function(){B.observeShorts()},100)};
_.l.processWatchSequence=function(E){var B=this;return E.map(function(I){I=I.command;if(B.isVideoContentCommand(I)){var T=_.h(I,_.yQ);return{reelPlayerOverlayRenderer:_.h(T==null?void 0:T.overlay,_.wO6),thumbnail:T.thumbnail,command:I}}return B.isNonVideoContentCommand(I)?(T=_.h(I,_.MT),{reelNonVideoContentRenderer:_.h(T==null?void 0:T.renderer,_.Coz),command:I}):{command:I}})};
_.l.calculateIntersectionObserverThreshold=function(){if(!_.d("web_shorts_dynamic_intersection_observer_threshold"))return.6;var E=_.n(this.hostElement).querySelector("ytd-reel-video-renderer"),B=1;(E==null?0:E.offsetHeight)&&(E==null?0:E.offsetWidth)&&(B=Math.min(E.offsetHeight,this.shortsContainer.offsetHeight)/E.offsetHeight*(Math.min(E.offsetWidth,this.shortsContainer.offsetWidth)/E.offsetWidth));return Math.round(B*.6*10)/10};
_.l.isVideoContentCommand=function(E){_.Q().resolve(_.R5);return!!_.h(E,_.yQ)};
_.l.isNonVideoContentCommand=function(E){_.Q().resolve(_.R5);return!!_.h(E,_.MT)};
_.l.initCinematicController=function(){var E=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19600_cinematicController=new _.$c(this.shortsCinematicContainer,this.player);var B,I=_.h((B=this.data)==null?void 0:B.background,_.Pt);_.W7t(this.JSC$19600_cinematicController,I);_.JmL(this.JSC$19600_cinematicController,Xwt(I));_.SE9(this.JSC$19600_cinematicController);_.Ll.addLowPriorityJob(function(){E.moveCinematicsToVideo()})}};
_.l.handleMiniplayerNavigateShorts=function(E){E==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():E==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.l.shouldDisplayReelVideoOverlay=function(E,B){return _.d("web_enable_shorts_new_carousel")?Math.abs(E-B)<2:!0};
_.Up.Object.defineProperties(vq.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.reelWatchSequenceResponse)!=null&&E.prevEntries)return this.processWatchSequence([].concat(_.ad(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var E=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!E)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var B=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.ad(this.prevShortsSequence.slice(0,B)),[E],_.ad(this.prevShortsSequence.slice(B+
1)))}B=this.index+this.shortsProcessedPrevSequence.length;E.thumbnail=this.shortsProcessedPrevSequence[B].thumbnail;return[].concat(_.ad(this.shortsProcessedPrevSequence.slice(0,B)),[E],_.ad(this.shortsProcessedPrevSequence.slice(B+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.reelWatchSequenceResponse)!=null&&E.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var E=this.getCurrentShort();if(!E||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[E];if(E==null||!E.reelNonVideoContentRenderer){var B=this.getIndexInSequence(this.shortsSequence,_.h(this.currentEndpoint,_.yQ).videoId);if(this.index===0&&B!==-1)return this.currentPlayerIndex=this.index=B,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.ad(this.shortsSequence.slice(0,this.index)),[E],_.ad(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){E.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var I,T,e,c;B=((T=_.h((I=this.shortsProcessedSequence[0])==null?void 0:I.command,_.yQ))==null?void 0:T.videoId)===((c=_.h((e=this.shortsSequence[0])==null?void 0:e.command,_.yQ))==null?void 0:c.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.ad(this.shortsProcessedSequence.slice(0,
this.index)),[E],_.ad(this.shortsSequence.slice(B)))}return[E].concat(_.ad(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var E=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;E&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(E)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 E,B;return this.index===((E=this.reelWatchSequenceResponse)==null?void 0:(B=E.entries)==null?void 0:B.length)}var I;return!((I=this.reelWatchSequenceResponse)==null?0:I.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var E;(E=this.delayedActiveIndexUpdateDebouncer)==null||E.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return this.isShortPlayable()||((B=_.h((E=this.data)==null?void 0:E.watchStatus,_.uyt))==null?void 0:(I=B.style)==null?void 0:I.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var E=this,B=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),I;if((this.data||B)&&(((I=this.data)==null?0:I.engagementPanels)||this.isAd()||B)){B=!1;this.activePanel="shorts-comments-panel";var T;I=_.p(((T=this.data)==null?void 0:T.engagementPanels)||[]);for(T=I.next();!T.done;T=I.next()){T=T.value.engagementPanelSectionListRenderer;var e=void 0,c=void 0,Y=void 0,v=void 0;if((((e=T)==null?void 0:(c=e.identifier)==
null?void 0:c.tag)||((Y=T)==null?void 0:Y.targetId)||((v=T)==null?void 0:v.panelIdentifier))===this.activePanel){B=!0;break}}if(this.isPersistentPanelActive){var y=_.Q().resolve(_.wQ);_.PC(_.Ll,function(){y.showPanel(E.activePanel,void 0,void 0,void 0,null)},100)}I=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
T=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);if(I===void 0&&T===void 0||(I==null?0:I.isDisabled)||(T==null?void 0:T.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!B){var Z,P,z=(Z=this.data)==null?void 0:(P=Z.engagementPanels)==null?void 0:P.findIndex(function(M){var N,W;return((N=M.engagementPanelSectionListRenderer)==null?void 0:(W=
N.identifier)==null?void 0:W.tag)==="shorts-comments-panel"});
if(z!==-1&&z!==void 0){var m,u;(m=this.data)==null||(u=m.engagementPanels)==null||u.splice(z,1)}var x;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.yu("COMMENTS",void 0,"Comments")}]},visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.yu("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:_.yu("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.yu("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(_.ad(Object.values(((x=this.data)==null?void 0:x.engagementPanels)||{})))}return(z=this.data)==null?void 0:z.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.shortsProcessedSequence)==null?void 0:E[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var E=this,B,I,T;if((B=this.playerData)==null?0:(I=B.playabilityStatus)==null?0:(T=I.errorScreen)==null?0:T.playerInterstitialRenderer)return _.Ll.addLowPriorityJob(function(){E.movePlayerToVideo(E.index)}),this.playerData.playabilityStatus.errorScreen;
var e,c;return((e=this.data)==null?void 0:e.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((c=this.data)==null?0:c.watchStatus)&&_.h(this.data.watchStatus,_.x6Z)?(_.Ll.addLowPriorityJob(function(){E.movePlayerToVideo(E.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Up.Object.defineProperties(vq,{template:{configurable:!0,enumerable:!0,get:function(){if(iA9===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);iA9=E}E=iA9;return E}}});
vq.prototype.onNextButtonDataChange=vq.prototype.onNextButtonDataChange;vq.prototype.onPrevButtonDataChange=vq.prototype.onPrevButtonDataChange;vq.prototype.onPersistentPanelActiveChanged=vq.prototype.onPersistentPanelActiveChanged;vq.prototype.lazyUpdateMiniplayerData=vq.prototype.lazyUpdateMiniplayerData;vq.prototype.onShortsPipActiveChanged=vq.prototype.onShortsPipActiveChanged;vq.prototype.setActiveIndex=vq.prototype.setActiveIndex;vq.prototype.graftNvcRenderer=vq.prototype.graftNvcRenderer;
vq.prototype.graftClientVisualElements=vq.prototype.graftClientVisualElements;vq.prototype.onActiveChanged=vq.prototype.onActiveChanged;vq.prototype.onShortsDismiss=vq.prototype.onShortsDismiss;vq.prototype.onShortUndoDismiss=vq.prototype.onShortUndoDismiss;vq.prototype.playerDataChanged=vq.prototype.playerDataChanged;vq.prototype.afterPlayerStarted=vq.prototype.afterPlayerStarted;vq.prototype.unhideCurrentOverlay=vq.prototype.unhideCurrentOverlay;vq.prototype.onServiceRequestCompleted=vq.prototype.onServiceRequestCompleted;
vq.prototype.engagementPanelsChanged=vq.prototype.engagementPanelsChanged;vq.prototype.onFullscreenChange=vq.prototype.onFullscreenChange;vq.prototype.onResize=vq.prototype.onResize;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],vq.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.dO.YtPageBehavior),_.t("design:type",Object)],vq.prototype,"ytPageBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],vq.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(_.OI),_.t("design:type",Object)],vq.prototype,"ironResizableBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],vq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],vq.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],vq.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],vq.prototype,"ytdReduxBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],vq.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"playerData",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"reelWatchSequenceResponse",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"cachedReelWatchSequenceResponse",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"currentEndpoint",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"nextButtonData",void 0);
_.k([_.X(),_.t("design:type",Object)],vq.prototype,"prevButtonData",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"isPreviousPageShorts",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"index",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"delayedActiveIndex",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"playablePreviousIndex",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"player",void 0);
_.k([_.X(),_.t("design:type",Object)],vq.prototype,"isPlayerPaused",void 0);_.k([_.X({selector:AmT}),_.t("design:type",Object)],vq.prototype,"isPlayerStarted",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"intersectionObserver",void 0);_.k([_.X(),_.t("design:type",Number)],vq.prototype,"cinematicsInitializeJobId",void 0);_.k([_.X(),_.t("design:type",Number)],vq.prototype,"cinematicTransitionJobId",void 0);
_.k([_.X(),_.t("design:type",Number)],vq.prototype,"updateMiniplayerDataJobId",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"fitToVisibleBounds",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"pageSubtype",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],vq.prototype,"panelShowDelayMs",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],vq.prototype,"enablePreviousContinuation",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],vq.prototype,"shortsPipEnabled",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],vq.prototype,"isDark",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],vq.prototype,"shortsViewTransitions",void 0);_.k([_.X({selector:_.Y6,reflectToAttribute:!0}),_.t("design:type",Object)],vq.prototype,"isFullscreen",void 0);
_.k([_.X({selector:_.a0,reflectToAttribute:!0}),_.t("design:type",Object)],vq.prototype,"isShortsPipActive",void 0);_.k([_.$7("#shorts-inner-container"),_.t("design:type",HTMLElement)],vq.prototype,"shortsInnerContainer",void 0);_.k([_.$7("#back-nav-button ytd-button-renderer"),_.t("design:type",_.bF)],vq.prototype,"backNavButton",void 0);_.k([_.$7("#shorts-container"),_.t("design:type",HTMLElement)],vq.prototype,"shortsContainer",void 0);
_.k([_.b4("error-screen"),_.t("design:type",HTMLElement)],vq.prototype,"errorScreenContainer",void 0);_.k([_.b4("player"),_.t("design:type",Object)],vq.prototype,"playerElement",void 0);_.k([_.b4("shorts-cinematic-container"),_.t("design:type",HTMLElement)],vq.prototype,"shortsCinematicContainer",void 0);_.k([_.b4("initial-player-container"),_.t("design:type",HTMLElement)],vq.prototype,"initialPlayerContainer",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"buttonOverride",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],vq.prototype,"anchoredPanelActive",void 0);_.k([_.X(),_.t("design:type",String)],vq.prototype,"activePanel",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"isActive",void 0);_.k([_.X({selector:oFm,reflectToAttribute:!0}),_.t("design:type",Object)],vq.prototype,"smallScreenPersistentPanel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],vq.prototype,"isPersistentPanelActive",void 0);
_.k([_.X(),_.t("design:type",Object)],vq.prototype,"smallScreenSqueezeBack",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"enableScrollIntoViewCenter",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],vq.prototype,"formatFirst",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],vq.prototype,"enableFlexibleOverlay",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"panelContainer",void 0);
_.k([_.X(),_.t("design:type",Object)],vq.prototype,"overlayContainer",void 0);_.k([_.X(),_.t("design:type",Object)],vq.prototype,"isShortsInitialized",void 0);_.k([_.S("reelWatchSequenceResponse"),_.t("design:type",Object),_.t("design:paramtypes",[])],vq.prototype,"prevShortsSequence",null);_.k([_.S("data","prevShortsSequence"),_.t("design:type",Object),_.t("design:paramtypes",[])],vq.prototype,"shortsProcessedPrevSequence",null);
_.k([_.S("reelWatchSequenceResponse"),_.t("design:type",Object),_.t("design:paramtypes",[])],vq.prototype,"shortsSequence",null);_.k([_.S("data","shortsSequence"),_.t("design:type",Object),_.t("design:paramtypes",[])],vq.prototype,"shortsProcessedSequence",null);
_.k([_.X({reflectToAttribute:!0}),_.S("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],vq.prototype,"isUpArrowHidden",null);_.k([_.X({reflectToAttribute:!0}),_.S("reelWatchSequenceResponse","index","endOfNextContinuation"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],vq.prototype,"isDownArrowHidden",null);
_.k([_.X(),_.S("index"),_.t("design:type",Number),_.t("design:paramtypes",[])],vq.prototype,"activeIndex",null);_.k([_.S("isShortPlayable","data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],vq.prototype,"shouldRenderOfflineContent",null);_.k([_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"onResize",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],vq.prototype,"anchoredEngagementPanels",null);
_.k([_.X(),_.t("design:type",Object)],vq.prototype,"watchWhileEngagementPanels",void 0);_.k([_.EM("isFullscreen"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"onFullscreenChange",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"engagementPanelsChanged",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],vq.prototype,"onServiceRequestCompleted",null);_.k([_.S("data","shortsSequence","index"),_.t("design:type",Object),_.t("design:paramtypes",[])],vq.prototype,"activeReel",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"unhideCurrentOverlay",null);
_.k([_.EM("isPlayerStarted"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"afterPlayerStarted",null);_.k([_.S("playerData","reelWatchSequenceResponse","data"),_.t("design:type",Object),_.t("design:paramtypes",[])],vq.prototype,"errorScreen",null);_.k([_.S("errorScreen"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],vq.prototype,"hasError",null);
_.k([_.EM("playerData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype",Promise)],vq.prototype,"playerDataChanged",null);_.k([_.RN("yt-dismissible-item-undo-feedback"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"onShortUndoDismiss",null);_.k([_.RN("yt-disable-lockup-interaction"),_.t("design:type",Function),_.t("design:paramtypes",[Object]),_.t("design:returntype")],vq.prototype,"onShortsDismiss",null);
_.k([_.i6("active"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"onActiveChanged",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"graftClientVisualElements",null);_.k([_.EM("currentPlayerIndex"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"graftNvcRenderer",null);
_.k([_.EM("index"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"setActiveIndex",null);_.k([_.EM("isShortsPipActive"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"onShortsPipActiveChanged",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"lazyUpdateMiniplayerData",null);
_.k([_.X(),_.t("design:type",Object)],vq.prototype,"onOverlayDensityChanged",void 0);_.k([_.EM("isPersistentPanelActive"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"onPersistentPanelActiveChanged",null);_.k([_.EM("index","data","isUpArrowHidden"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"onPrevButtonDataChange",null);
_.k([_.EM("index","data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vq.prototype,"onNextButtonDataChange",null);vq=_.k([_.b({is:"ytd-shorts"})],vq);_.QJ.registerService(_.Jff,vq);
_.s7();
}catch(e){_._DumpException(e)}
try{
_.hV("JzFVk");
var bWm=function(E){return _.w("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},rE2(E.data.ctaButton,{buttonViewModel:{}}),_.w(_.aS,{text:E.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var oD7;var AEI;var HS=function(){return _.r.apply(this,arguments)||this};
_.L(HS,_.r);HS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
HS.prototype.computeBlueBottomLink=function(E){return E};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],HS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],HS.prototype,"data",void 0);_.k([_.X({computed:"computeIcon_(data.bottomIcon)"}),_.t("design:type",String)],HS.prototype,"bottomIcon",void 0);
_.k([_.X({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.t("design:type",Boolean)],HS.prototype,"enableBlueBottomLink",void 0);HS=_.k([_.b({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],HS);
_.A(HS,"ytd-web-answer-renderer",function(){if(AEI!==void 0)return AEI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return AEI=E},{mode:_.qi("kevlar_poly_si_batch_j035")?1:2});var jDI;var N2=function(){var E=_.r.apply(this,arguments)||this;E.hasChipBar=!1;return E};
_.L(N2,_.r);N2.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}}};
N2.prototype.computeHasChipBar=function(E){return!(E==null||!E.chipBar)};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],N2.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.t("design:type",Object)],N2.prototype,"hasChipBar",void 0);N2=_.k([_.b({is:"ytd-search-header-renderer",disableElementRegistration:!0})],N2);
_.A(N2,"ytd-search-header-renderer",function(){if(jDI!==void 0)return jDI;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return jDI=E},{mode:1});var Ua8;var gj=function(){return _.r.apply(this,arguments)||this};
_.L(gj,_.r);gj.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],gj.prototype,"data",void 0);gj=_.k([_.b({disableElementRegistration:!0,is:"ytd-page-continuation"})],gj);
_.A(gj,"ytd-page-continuation",function(){if(Ua8!==void 0)return Ua8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Ua8=E},{mode:1});var kYd;var t88;var fft;var SZ=function(){return _.r.apply(this,arguments)||this};
_.L(SZ,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],SZ.prototype,"data",void 0);SZ=_.k([_.b({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],SZ);
_.A(SZ,"ytd-watch-card-one-vs-one-event",function(){if(fft!==void 0)return fft;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return fft=E},{mode:1});var Jf=function(){return _.r.apply(this,arguments)||this};
_.L(Jf,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Jf.prototype,"data",void 0);Jf=_.k([_.b({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Jf);
_.A(Jf,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(t88!==void 0)return t88;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return t88=E},{mode:1});var V82;var WS=function(){return _.r.apply(this,arguments)||this};
_.L(WS,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],WS.prototype,"data",void 0);WS=_.k([_.b({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],WS);
_.A(WS,"ytd-banner-and-box-hero-image-renderer",function(){if(V82!==void 0)return V82;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return V82=E},{mode:1});var qnH;var XJ=function(){var E=_.r.apply(this,arguments)||this;E.modern=_.d("web_modern_buttons");return E};
_.L(XJ,_.r);XJ.prototype.computeIcon=function(){var E,B,I=(E=this.data)==null?void 0:(B=E.icon)==null?void 0:B.iconType;if(I)return _.R3(I)};
XJ.prototype.computeButtonShape=function(){var E;return{buttonText:_.U3((E=this.data)==null?void 0:E.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Up.Object.defineProperties(XJ.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"}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],XJ.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],XJ.prototype,"modern",void 0);_.k([_.X({type:_.d("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.style"),_.t("design:type",Object),_.t("design:paramtypes",[])],XJ.prototype,"buttonColor",null);
XJ=_.k([_.b({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],XJ);
_.A(XJ,"ytd-call-to-action-button-renderer",function(){if(qnH!==void 0)return qnH;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return qnH=E},{mode:1});var FCI;var rj=function(){return _.r.apply(this,arguments)||this};
_.L(rj,_.r);rj.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.n(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Aa(this.data.leftThumbnail.thumbnails,216)+")")};
rj.prototype.onLeftThumbnailChanged=rj.prototype.onLeftThumbnailChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],rj.prototype,"data",void 0);_.k([_.EM("data.leftThumbnail"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],rj.prototype,"onLeftThumbnailChanged",null);rj=_.k([_.b({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],rj);
_.A(rj,"ytd-collage-hero-image-renderer",function(){if(FCI!==void 0)return FCI;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return FCI=E},{mode:1});var Das;var bs=function(){return _.r.apply(this,arguments)||this};
_.L(bs,_.r);bs.prototype.computeStyle=function(E){return E};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],bs.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],bs.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.t("design:type",String)],bs.prototype,"componentStyle",void 0);bs=_.k([_.b({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],bs);
_.A(bs,"ytd-single-hero-image-renderer",function(){if(Das!==void 0)return Das;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Das=E},{mode:1});var KC1;var oT=function(){return _.r.apply(this,arguments)||this};
_.L(oT,_.r);_.l=oT.prototype;
_.l.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:_.d("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.l.computeSubtitle=function(E){if(this.data){var B;if(this.data.upcomingEventData){E=_.U3(E.subtitle);var I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(B=_.jj(_.MH(E,I)))}else B=E.subtitle;return B}};
_.l.onHeroTap=function(E){E.preventDefault();var B=this.data&&this.data.navigationEndpoint;!B||!_.XZ(_.W8(E),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.XZ(_.W8(E),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.d("kevlar_watchcard_hero_video_renderer_killswitch")?_.$O(this.hostElement,"yt-navigate",{navigationEndpoint:B}):this.ytComponentBehavior.resolveCommand(B))};
_.l.computeHeroTabIndex=function(E){return E&&E.simpleText?-1:0};
_.l.computeHeroRole=function(E){return E&&E.simpleText?"":"link"};
_.l.computeIsReminderButtonPresent=function(E){return!(!E||!E.reminderButton)};
_.l.computeHideBottomItems=function(E){return!(this.computeIsReminderButtonPresent(E)||E.subtitle)};
_.l.dataChanged=function(){var E=this.get("data.buttons.buttonRenderer.serviceEndpoint"),B;((B=_.h(E==null?void 0:E.commandMetadata,_.LU))==null?0:B.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(E)};
oT.prototype.dataChanged=oT.prototype.dataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],oT.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],oT.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],oT.prototype,"data",void 0);
_.k([_.X({computed:"computeSubtitle(data)"}),_.t("design:type",String)],oT.prototype,"subtitle",void 0);_.k([_.X({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],oT.prototype,"isReminderButtonPresent",void 0);_.k([_.X({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],oT.prototype,"hideBottomItems",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oT.prototype,"dataChanged",null);oT=_.k([_.b({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],oT);
_.A(oT,"ytd-watch-card-hero-video-renderer",function(){if(KC1!==void 0)return KC1;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return KC1=E},{mode:1});var RnH;var Af=function(){return _.r.apply(this,arguments)||this};
_.L(Af,_.r);_.l=Af.prototype;_.l.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"}}}};
_.l.computeTitleBadges=function(E){return E?[E]:[]};
_.l.computeHeaderStyle=function(E){return E?E.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.l.computeAvatarAriaLabel=function(E){if(E){var B,I,T,e;return(e=(B=E.avatar)==null?void 0:(I=B.accessibility)==null?void 0:(T=I.accessibilityData)==null?void 0:T.label)!=null?e:_.U3(E==null?void 0:E.title)}};
_.l.computeAvatarHeight=function(E){return E==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.l.computeBadgeRowClass=function(E){return(E==null?0:E[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Af.prototype,"data",void 0);_.k([_.X({computed:"computeTitleBadges(data.titleBadge)"}),_.t("design:type",Array)],Af.prototype,"titleBadges",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.t("design:type",String)],Af.prototype,"headerStyle",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.t("design:type",String)],Af.prototype,"badgeRowClass",void 0);Af=_.k([_.b({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Af);
_.A(Af,"ytd-watch-card-rich-header-renderer",function(){if(RnH!==void 0)return RnH;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return RnH=E},{mode:1});var EF7;var BvT;var jZ=function(){return _.r.apply(this,arguments)||this};
_.L(jZ,_.r);jZ.prototype.onMetadataTap=function(E){var B=this.data&&this.data.navigationEndpoint;B&&!_.XZ(_.W8(E),this.hostElement,["A".toString()])&&_.$O(this.hostElement,"yt-navigate",{endpoint:B})};
_.Up.Object.defineProperties(jZ.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 E;if(this.data.upcomingEventData){var B=_.U3(this.data.subtitle),I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(E=_.jj(_.MH(B,I)))}else E=this.data.subtitle;return E}}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],jZ.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data.style"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],jZ.prototype,"isCondensed",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],jZ.prototype,"subtitle",null);
jZ=_.k([_.b({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],jZ);
_.A(jZ,"ytd-watch-card-compact-video-renderer",function(){if(BvT!==void 0)return BvT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return BvT=E},{mode:1});var $4I;var UY=function(){return _.r.apply(this,arguments)||this};
_.L(UY,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],UY.prototype,"data",void 0);UY=_.k([_.b({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],UY);
_.A(UY,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if($4I!==void 0)return $4I;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return $4I=E},{mode:1});var kS=function(){return _.r.apply(this,arguments)||this};
_.L(kS,_.r);kS.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}}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],kS.prototype,"ytRendererStamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],kS.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],kS.prototype,"data",void 0);kS=_.k([_.b({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],kS);
_.A(kS,"ytd-vertical-watch-card-list-renderer",function(){if(EF7!==void 0)return EF7;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return EF7=E},{mode:1});var IEO;var tf=function(){var E=_.r.apply(this,arguments)||this;E.ariaExpanded="false";return E};
_.L(tf,_.r);_.l=tf.prototype;_.l.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.l.dataChanged=function(){var E;this.currentSeasonIndex=((E=this.data)==null?void 0:E.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.l.computeEpisodesInfo=function(E,B,I){if(E!==void 0&&B.length===E.length)return E[I]};
_.l.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.l.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.l.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.l.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.l.getUppercaseSimpleString=function(E){return this.ytRendererBehavior.getSimpleString(E).toUpperCase()};
_.l.updateCurrentSeasonIndexFromBinding=function(E){this.currentSeasonIndex=E.detail.value};
tf.prototype.onIronOverlayClosed=tf.prototype.onIronOverlayClosed;tf.prototype.currentSeasonIndexChanged=tf.prototype.currentSeasonIndexChanged;tf.prototype.dataChanged=tf.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],tf.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",String)],tf.prototype,"label",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],tf.prototype,"currentSeasonIndex",void 0);_.k([_.X({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.t("design:type",Object)],tf.prototype,"episodesInfo",void 0);_.k([_.X({value:"false"}),_.t("design:type",Object)],tf.prototype,"ariaExpanded",void 0);_.k([_.$7("#lists"),_.t("design:type",Object)],tf.prototype,"lists",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],tf.prototype,"dataChanged",null);_.k([_.i6("currentSeasonIndex"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],tf.prototype,"currentSeasonIndexChanged",null);_.k([_.RN("iron-overlay-closed"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],tf.prototype,"onIronOverlayClosed",null);
tf=_.k([_.b({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],tf);
_.A(tf,"ytd-watch-card-section-dropdown-renderer",function(){if(IEO!==void 0)return IEO;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return IEO=E},{mode:1});var TvL;var fY=function(){var E=_.r.apply(this,arguments)||this;E.isSearch=!1;return E};
_.L(fY,_.r);fY.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}}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],fY.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],fY.prototype,"isSearch",void 0);fY=_.k([_.b({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],fY);
_.A(fY,"ytd-watch-card-section-sequence-renderer",function(){if(TvL!==void 0)return TvL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
return TvL=E},{mode:1});var rE2=_.z8({buttonViewModel:_.ne});_.qW(bWm);_.qE(bWm,"ytd-button-banner-view-model",{propNames:["data"]});var VP=function(){var E=_.r.apply(this,arguments)||this;E.isSearch=!1;return E};
_.L(VP,_.r);
VP.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"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],VP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],VP.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,value:!0}),_.t("design:type",Boolean)],VP.prototype,"rounded",void 0);_.k([_.X(),_.t("design:type",Object)],VP.prototype,"isSearch",void 0);
VP=_.k([_.b({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],VP);
_.A(VP,"ytd-universal-watch-card-renderer",function(){if(kYd!==void 0)return kYd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return kYd=E},{mode:1});var eCt;_.oQ(_.rp(function(E){var B=E.data;var I;E=!((I=_.Q().resolve(_.Fx(_.ME)))==null||!I());I={};return _.w("overview-message-view-model",{class:_.RQ("ytwOverviewMessageViewModelHost",(I.ytwOverviewMessageViewModelDarkBackground=E,I.ytwOverviewMessageViewModelLightBackground=!E,I))},_.w(_.wU,{cond:function(){return B().primaryImage},
then:function(T){return _.w(_.Ja,{data:T,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.w(_.wU,{cond:function(){return B().primaryText},
then:function(){return _.w("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.w(_.aS,{text:function(){return B().primaryText}}))}}),_.w(_.wU,{cond:function(){return B().secondaryText},
then:function(){return _.w("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.w(_.aS,{text:function(){return B().secondaryText}}))}}))},"mi"),"overview-message-view-model",{props:{data:_.Jh}});_.qE(_.Dbh,"ytd-overview-answer-view-model",{propNames:["data"]});var q2=function(){return _.r.apply(this,arguments)||this};
_.L(q2,_.r);q2.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"}}}};
q2.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.xo),_.t("design:type",Object)],q2.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],q2.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],q2.prototype,"isSearch",void 0);
q2=_.k([_.b({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],q2);
_.A(q2,"ytd-secondary-search-container-renderer",function(){if(eCt!==void 0)return eCt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
return eCt=E},{mode:1});var lE7;var FJ=function(){var E=_.r.apply(this,arguments)||this;E.renderSecondarySearchContainer=!1;E.isSearch=!1;E.isSearchDova=_.d("dova_on_search");return E};
_.L(FJ,_.r);_.l=FJ.prototype;_.l.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.l.created=function(){var E=this;this.boundStampSecondarySearchContainerIfFits=function(){E.stampSecondarySearchContainerIfFits()};
_.MD("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.l.computeIsSearchFrictionPage=function(E){var B,I,T,e,c;E=E==null?void 0:(B=E.primaryContents)==null?void 0:(I=B.sectionListRenderer)==null?void 0:(T=I.contents)==null?void 0:(e=T[0])==null?void 0:(c=e.itemSectionRenderer)==null?void 0:c.contents;if(!E)return!1;B=_.p(E);for(I=B.next();!I.done;I=B.next())if(T=void 0,(T=I.value)==null?0:T.searchFrictionViewModel)return!0;return!1};
_.l.computeShowSecondaryColumn=function(E,B){return!!(B&&B.secondaryContents&&E)};
_.l.activeChanged=function(){var E=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Kq(this,this.debounceStampSecondarySearchContainerIfFits)),_.Gg(function(){E.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Kq(this,this.debounceStampSecondarySearchContainerIfFits))};
_.l.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.l.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.l.debounceStampSecondarySearchContainerIfFits=function(){_.OM(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.l.onRetrieveLocation=function(E,B){B.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);E.stopPropagation()};
_.l.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
FJ.prototype.dataChanged=FJ.prototype.dataChanged;FJ.prototype.onRetrieveLocation=FJ.prototype.onRetrieveLocation;FJ.prototype.persistentGuideChanged=FJ.prototype.persistentGuideChanged;FJ.prototype.activeChanged=FJ.prototype.activeChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],FJ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],FJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.g(_.OI),_.t("design:type",Object)],FJ.prototype,"ironResizableBehavior",void 0);_.k([_.X(),_.t("design:type",Boolean)],FJ.prototype,"active",void 0);_.k([_.X(),_.t("design:type",Object)],FJ.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.d("enable_desktop_search_bigger_thumbs")}}),
_.t("design:type",Boolean)],FJ.prototype,"useBiggerThumbs",void 0);_.k([_.X({reflectToAttribute:!0,value:function(){return _.EF("desktop_search_bigger_thumbs_style")}}),
_.t("design:type",String)],FJ.prototype,"biggerThumbsStyle",void 0);_.k([_.X(),_.t("design:type",Object)],FJ.prototype,"renderSecondarySearchContainer",void 0);_.k([_.X({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.t("design:type",Boolean)],FJ.prototype,"showSecondaryColumn",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.t("design:type",Boolean)],FJ.prototype,"isSearchFrictionPage",void 0);
_.k([_.X(),_.t("design:type",Object)],FJ.prototype,"isSearch",void 0);_.k([_.X(),_.t("design:type",Object)],FJ.prototype,"isSearchDova",void 0);_.k([_.EM("active"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],FJ.prototype,"activeChanged",null);_.k([_.EM("guidePersistentAndVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],FJ.prototype,"persistentGuideChanged",null);
_.k([_.RN("yt-retrieve-location"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],FJ.prototype,"onRetrieveLocation",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],FJ.prototype,"dataChanged",null);FJ=_.k([_.b({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],FJ);
_.A(FJ,"ytd-two-column-search-results-renderer",function(){if(lE7!==void 0)return lE7;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return lE7=E},{mode:1});var D2=function(){var E=_.r.apply(this,arguments)||this;E.hasSearchHeader=!1;E.hasSecondaryContent=!1;E.hasBiggerThumbs=_.d("enable_desktop_search_bigger_thumbs");E.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return E};
_.L(D2,_.r);_.l=D2.prototype;_.l.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:_.h7(["aa","eocs"])}}};
_.l.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.l.loadPage_=function(E){this.initCsi();E&&(this.data=E,_.MD("REFINEMENTS_TUPLE",["FromSearchResponse",E.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.AI(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.l.initCsi=function(){_.Qg("results",["ol","cpt"])};
_.l.updateTitle=function(){var E=_.Nm(window.location.href,"q");E||(E=_.Nm(window.location.href,"search_query"));_.$O(this.hostElement,"yt-update-title",E||"")};
_.l.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.l.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.d("web_srp_data_changed_terminate_imp_killswitch")||_.I2(this.hostElement,"yt-terminate-video-preview-action")};
_.l.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.l.computeHasSearchHeader=function(E){var B;E=E==null?void 0:(B=E.header)==null?void 0:B.searchHeaderRenderer;return!!E&&(!!E.searchFilterButton||!!E.chipBar)};
_.l.computeHasSecondaryContent=function(E){var B,I;return!!(E==null?0:(B=E.contents)==null?0:(I=B.twoColumnSearchResultsRenderer)==null?0:I.secondaryContents)};
_.Up.Object.defineProperties(D2,{template:{configurable:!0,enumerable:!0,get:function(){if(oD7===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);oD7=E}E=oD7;return E}}});
D2.prototype.onReloadContinuationFinish=D2.prototype.onReloadContinuationFinish;D2.prototype.dataChanged=D2.prototype.dataChanged;_.k([_.g(_.dO.YtPageBehavior),_.t("design:type",Object)],D2.prototype,"ytPageBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],D2.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],D2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.xo),_.t("design:type",Object)],D2.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],D2.prototype,"data",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],D2.prototype,"monitorScroll",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],D2.prototype,"hasSearchHeader",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],D2.prototype,"hasSecondaryContent",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],D2.prototype,"hasBiggerThumbs",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],D2.prototype,"dataChanged",null);
_.k([_.RN("yt-reload-continuation-finish"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],D2.prototype,"onReloadContinuationFinish",null);D2=_.k([_.b({is:"ytd-search"})],D2);_.QJ.registerService(_.SYc,D2);
_.s7();
}catch(e){_._DumpException(e)}
try{
_.hV("h8y2qb");
var Sw8=function(E){if(E=_.dR6(E)){var B;(B=E.sources)!=null&&B[0]?(B=_.stc(E),B=B<1?"VERTICAL":B>1?"HORIZONTAL":"SQUARE"):B=void 0;return B}},hq=function(E){_.QK.call(this,"upload");
this.opts.query=E},WbO=function(E,B){return _.w(JY7,{data:E,
onYtNavigate:B})},rYs=function(E,B){return E.map(function(I){if(I.tabRenderer)return X0T(I.tabRenderer);
if(I.expandableTabRenderer&&B){var T=I.expandableTabRenderer;return{customTabRenderable:function(){return B(T)}}}return{}})},X0T=function(E){return{identifier:E.tabIdentifier,
aTagConfig:_.uu({innertubeCommand:E.endpoint,forceNewState:!0}),title:E.title,selected:E.selected,disabled:E.unselectable,icon:E.icon}},bP2=function(E,B){return _.cP(E.entities,"pageHeaderEntity",B)},joH=function(E){var B=E.data;
var I=E.noPadding===void 0?!1:E.noPadding;var T=E.enableBanner===void 0?!1:E.enableBanner;var e=E.cinematicContainerTopbarOffset;var c=E.allowCinematicContainerOverflow===void 0?!1:E.allowCinematicContainerOverflow;var Y=E.displayAsSidebar===void 0?!1:E.displayAsSidebar;E=E.className;if(B==null?0:B.tagManagerId)_.y5(B.tagManagerId,_.HA("GL")),otT(B.tagManagerId);a:{if(B.pageHeaderEntityKey){var v=_.cE(bP2,B.pageHeaderEntityKey);if(v==null?0:v.header){v=v==null?void 0:v.header;break a}}v=Y&&B.sidebarContent?
B.sidebarContent:B.content}return _.w("yt-page-header-renderer",{class:_.B$("page-header-renderer-wiz",E)},AYL(v,{pageHeaderViewModel:{noPadding:I,enableBanner:T,cinematicContainerTopbarOffset:e,allowCinematicContainerOverflow:c,displayAsSidebar:Y&&B.enableSidebarView}}))},Uj9=function(E){return _.BP({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:E})},otT=function(E){if(!_.tk(document,"gtm-noscript")){var B=document.createElement("noscript");
B.id="gtm-noscript";B.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+E+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(B)}};_.$U(hq,_.QK);hq.prototype.JSC$7959_setLabel=function(E){hq.superClass_.JSC$7959_setLabel.call(this,E);return this};
hq.prototype.addUploadMetadata=function(E,B){hq.superClass_.addUploadMetadata.call(this,E,B);return this};var kdt=function(E){if(E!=="youtubebanner"&&E!=="youtube-channel-banner")throw Error("Ul");hq.call(this,E)};
_.L(kdt,hq);kdt.prototype.JSC$7959_setLabel=function(E){hq.prototype.JSC$7959_setLabel.call(this,E);return this};
kdt.prototype.addUploadMetadata=function(E,B){hq.prototype.addUploadMetadata.call(this,E,B);return this};var tQH=[_.OI,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(E){_.QT(E).path[0]!==this&&(this.resetLayout(),E.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var E=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Tz(this._layoutDebouncer,_.yA,E);_.eo(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var E=this;requestAnimationFrame(function(){E.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(E){this.resizerShouldNotify(E)&&this._notifyDescendant(E)},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 fzg=[_.Hpz,{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(E,B){var I=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[E];if(!I)throw new ReferenceError(this._getUndefinedMsg(E));E=this._boundEffect(I,B||{});E.setUp();return E},
_effectsChanged:function(E,B,I){this._tearDownEffects();E&&I&&(E.split(" ").forEach(function(T){var e;T!==""&&((e=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[T])?this._effects.push(this._boundEffect(e,B[T])):console.warn(this._getUndefinedMsg(T)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(E,B){B=B||{};var I=parseFloat(B.startsAt||0),T=parseFloat(B.endsAt||1),e=T-I,c=function(){};
T=I===0&&T===1?E.run:function(Y,v){E.run.call(this,Math.max(0,(Y-I)/e),v)};
return{setUp:E.setUp?E.setUp.bind(this,B):c,run:E.run?T.bind(this):c,tearDown:E.tearDown?E.tearDown.bind(this):c}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(E){E.setUp()!==!1&&this._effectsRunFn.push(E.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(E){E.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(E,B){this._effectsRunFn&&this._effectsRunFn.forEach(function(I){I(E,B)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var E=this._clampedScrollTop;this._updateScrollState(E);this.threshold>0&&this._setThresholdTriggered(E>=this.threshold)}},
_getDOMRef:function(E){console.warn("_getDOMRef","`"+E+"` is undefined")},
_getUndefinedMsg:function(E){return"Scroll effect `"+E+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+E+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Vl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(E){var B={};E=parseFloat(E.scalar);B.background=this._getDOMRef("background");B.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");B.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");B.deltaBg=B.backgroundFrontLayer.offsetHeight-B.background.offsetHeight;B.deltaBg===0?(isNaN(E)&&(E=.8),B.deltaBg=(this._dHeight||0)*E):(isNaN(E)&&(E=
1),B.deltaBg*=E);this._fxParallaxBackground=B},
run:function(E){var B=this._fxParallaxBackground;this.transform("translate3d(0px, "+B.deltaBg*Math.min(1,E)+"px, 0px)",B.backgroundFrontLayer);B.backgroundRearLayer&&this.transform("translate3d(0px, "+B.deltaBg*Math.min(1,E)+"px, 0px)",B.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var VQm;var qwT;var Fb7=function(){};
_.l=Fb7.prototype;_.l._scrollTargetChanged=function(){};
_.l.scroll=function(){};
_.l._isValidScrollTarget=function(){};
_.l._toggleScrollListener=function(){};
_.l.toggleScrollListener=function(){};
_.l.createEffect=function(){};
_.l._effectsChanged=function(){};
_.l._layoutIfDirty=function(){};
_.l._boundEffect=function(){};
_.l._setUpEffect=function(){};
_.l._tearDownEffects=function(){};
_.l._runEffects=function(){};
_.l._scrollHandler=function(){};
_.l._scrollStateChanged=function(){};
_.l._getUndefinedMsg=function(){};
_.l.notifyResize=function(){};
_.l.assignParentResizable=function(){};
_.l.stopResizeNotificationsFor=function(){};
_.l._subscribeIronResize=function(){};
_.l._unsubscribeIronResize=function(){};
_.l.resizerShouldNotify=function(){};
_.l._onDescendantIronResize=function(){};
_.l._fireResize=function(){};
_.l._onIronRequestResizeNotifications=function(){};
_.l._parentResizableChanged=function(){};
_.l._notifyDescendant=function(){};
_.l._requestResizeNotifications=function(){};
_.l._findParent=function(){};
_.l._appResetLayoutHandler=function(){};
_.l.resetLayout=function(){};
_.l._notifyLayoutChanged=function(){};
_.l._notifyDescendantResize=function(){};
_.l._setThresholdTriggered=function(){};
Fb7=_.wp({_template:function(){if(qwT!==void 0)return qwT;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;VQm===void 0&&(VQm=document.createElement("template"));var T=VQm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return qwT=E},
is:"tp-yt-app-header",behaviors:[fzg,tQH],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 E=_.QT(this.$.slot).getDistributedNodes(),B=0,I;I=E[B];B++)if(I.nodeType===Node.ELEMENT_NODE)if(I.hasAttribute("sticky")){this._stickyElRef=I;break}else this._stickyElRef||(this._stickyElRef=I);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var E=this._clampedScrollTop,B=this._height===0||E===0,I=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;B||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();B?this._updateScrollState(E,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=I}},
_updateScrollState:function(E,B){if(this._height!==0){var I=0,T=this._top;var e=this._maxHeaderTop;var c=E-this._lastScrollTop,Y=Math.abs(c),v=E>this._lastScrollTop,y=performance.now();this._mayMove()&&(I=this._clamp(this.reveals?T+c:E,0,e));E>=this._dHeight&&(I=this.condenses&&!this.fixed?Math.max(this._dHeight,I):I,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&Y<100){if(y-this._initTimestamp>300||this._wasScrollingDown!==v)this._initScrollTop=E,this._initTimestamp=y;E>=e&&
(Math.abs(this._initScrollTop-E)>30||Y>10?(v&&E>=e?I=e:!v&&E>=this._dHeight&&(I=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((I-T)/(c/(y-this._lastTimestamp)),0,300)+"ms"):I=this._top)}e=this._dHeight===0?E>0?1:0:I/this._dHeight;B||(this._lastScrollTop=E,this._top=I,this._wasScrollingDown=v,this._lastTimestamp=y);if(B||e!==this._progress||T!==I||E===0)this._progress=e,this._runEffects(e,I),this._transformHeader(I)}},
_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(E){this.translate3d(0,-E+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&E>=this._stickyElTop?Math.min(E,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(E,B,I){return Math.min(I,Math.max(B,E))},
_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),_.QT(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(E){switch(E){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.QT(this).querySelector("[main-title]");case "condensedTitle":return _.QT(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var DjI;var Kb9;_.wp({_template:function(){if(Kb9!==void 0)return Kb9;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;DjI===void 0&&(DjI=document.createElement("template"));var T=DjI;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return Kb9=E},
is:"tp-yt-app-header-layout",behaviors:[tQH],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.QT(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var E=this.header;if(this.isAttached&&E){this.$.wrapper.classList.remove("initializing");E.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)E.style.left=
"",E.style.right="";else{var B=this.getBoundingClientRect(),I=document.documentElement.clientWidth-B.right;E.style.left=B.left+"px";E.style.right=I+"px"}B=this.$.contentContainer.style;I=E.offsetHeight;E.fixed&&!E.condenses&&this.hasScrollingRegion?(B.marginTop=I+"px",B.paddingTop=""):(B.paddingTop=I+"px",B.marginTop="")}}});var RWs=new _.F("replaceFeedContentAction");var EzH=new _.F("alertCommand");var B2d=new _.F("manageLabsStateCommand");var $Yd=new _.F("channelBannerEditorRenderer");var Iy9=new _.F("inlineFormRenderer");var st=new _.F("playlistSidebarPrimaryInfoRenderer");var T2s=new _.F("productDetailsThumbnailRenderer"),ewT=new _.F("productDetailsVariantRenderer"),lyI=new _.F("productDetailsVariantOptionRenderer"),c9O=new _.F("productDetailsOffersContainerRenderer"),ihg=new _.F("productDetailsOfferRenderer");var pvI=new _.F("shoppingFlaggingRenderer");var Ymg=new _.F("playlistBylineRenderer");var aym=new _.F("insertChannelTabCommand");var un=function(){return _.l6.apply(this,arguments)||this};
_.L(un,_.l6);_.l=un.prototype;_.l.activeChanged=function(){if(this.active){var E=_.n(this.hostElement).querySelector("#header");E&&_.$O(E,"iron-resize");window.addEventListener("scroll",_.Kq(this,this.onScroll))}else window.removeEventListener("scroll",_.Kq(this,this.onScroll)),_.$O(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.l.guideVisibleChanged=function(){var E=_.n(this.hostElement).querySelector("#header");E&&_.$O(E,"iron-resize")};
_.l.onScroll=function(){var E=this;_.OM(this,"onScroll",function(){var B=_.n(E.hostElement).querySelector("#header");B&&B.polymerController&&(B=B.polymerController.getScrollState().progress===1?"standard":"seamed",_.$O(E.hostElement,"yt-request-panel-mode-change",{mode:B}))},10)};
_.l.tabsChanged=function(){if(this.tabs){for(var E=null,B=0,I=this.tabs.length;B<I;++B){var T=this.tabs[B].tabRenderer;if(T&&T.selected){E=B;break}}this.selected=E}};
_.l.onTabsActivate=function(E){_.$O(this.hostElement,"yt-navigate",{endpoint:this.tabs[E.detail.selected].tabRenderer.endpoint})};
un.prototype.tabsChanged=un.prototype.tabsChanged;un.prototype.guideVisibleChanged=un.prototype.guideVisibleChanged;un.prototype.activeChanged=un.prototype.activeChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],un.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.X(),_.t("design:type",Array)],un.prototype,"tabs",void 0);
_.k([_.X(),_.t("design:type",Object)],un.prototype,"selected",void 0);_.k([_.X(),_.t("design:type",Boolean)],un.prototype,"active",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],un.prototype,"disableHeaderFluidWidth",void 0);_.k([_.EM("active"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],un.prototype,"activeChanged",null);
_.k([_.EM("guidePersistentAndVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],un.prototype,"guideVisibleChanged",null);_.k([_.EM("tabs"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],un.prototype,"tabsChanged",null);un=_.k([_.cl()],un);var vzL=[_.R.YtRendererBehavior,_.Hy.YtdGuideStateAwareBehavior,un.prototype];var y9T=2/3,Cdd=_.wA(130749),wv8=function(E,B){var I=this;this.element=E;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){I.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:y9T,moveAction:function(T){I.moveAction(T)},
triggerAction:function(){I.element.isReloading=!0;_.np(_.lu(),{visualElement:Cdd});_.BV.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:I.element}})}}}};
_.eu(_.lu(),Cdd,this.layer);this.gesture=new _.Il(E,B,this.refreshConfig,"pan-down");this.attach()};
_.l=wv8.prototype;_.l.attach=function(){this.gesture.attach()};
_.l.detach=function(){this.gesture.detach()};
_.l.reset=function(){this.element.close()};
_.l.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.l.moveAction=function(E){this.element.rotation=E*360};var ZhT=_.wA(130750),LN=function(E,B,I,T,e){var c=this;this.element=E;this.parent=I;this.channelHeader=T;this.ytdReduxDispatch=e;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){c.tabsStartAtInPx=c.channelHeader.clientHeight-48;var Y;(Y=c.selectedTab)!=null&&Y.title&&(Y=_.Q().resolve(_.Fx(_.oS)))&&(Y=Y.getCurrentPage(),c.lastVisitedTabScrollPosition=Y.getScrollTop(),c.previousTab&&
((c.lastVisitedTabScrollPosition===void 0?0:c.lastVisitedTabScrollPosition<c.channelHeader.clientHeight-48)?c.scrollPositionForTabs.has(c.selectedTab.title)&&c.scrollPositionForTabs.delete(c.selectedTab.title):c.scrollPositionForTabs.set(c.selectedTab.title,Y.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:Pdm(),triggerAction:function(){c.navigate(c.previousTab)},
moveAction:function(Y,v){c.moveAction(Y,v)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-Pdm(),triggerAction:function(){c.navigate(c.nextTab)},
moveAction:function(Y,v){c.moveAction(Y,v)}}}};
_.eu(_.lu(),ZhT,this.layer);this.gesture=new _.Il(E,B,this.tabConfig);this.attach()};
LN.prototype.attach=function(){this.gesture.attach()};
LN.prototype.detach=function(){this.gesture.detach()};
LN.prototype.tabsChanged=function(E){if(E){var B=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;E=_.p(E);for(var I=E.next();!I.done;I=E.next()){I=I.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=I);var T=void 0;if((T=I)==null?0:T.selected)this.previousTab=B,this.selectedTab=I;B=I}B=this.gesture;E=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}});
B.config=E;this.scrollPositionNeedsUpdate=!0}};
LN.prototype.moveAction=function(E,B){if(!this.tabsElement){var I;this.tabsElement=(I=this.parent.header)==null?void 0:I.tabsElement;B==="right"&&this.previousTab?_.nor(_.Bc.instance,this.previousTab.endpoint,{},""):B==="left"&&this.nextTab&&_.nor(_.Bc.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}I=this.tabsElement._pos;B==="right"&&(E*=-1);this.tabsElement._positionBar(I.width,I.left*1+I.width*E)};
var Pdm=function(){var E,B;return(B=(E=_.Q().resolve(_.oS).getCurrentPage())==null?void 0:E.clientWidth)!=null?B:0};
LN.prototype.navigate=function(E){this.element.data=void 0;if(E=E==null?void 0:E.endpoint)this.ytdReduxDispatch(Uj9(!0)),_.np(_.lu(),{visualElement:ZhT}),_.BV.instance.resolveCommand({navigateAction:{endpoint:E}},{form:{element:this.element}})};var zwO;var mY9;var x5=function(){return _.r.apply(this,arguments)||this};
_.L(x5,_.r);x5.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],x5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],x5.prototype,"data",void 0);x5=_.k([_.b({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],x5);
_.A(x5,"ytd-labs-edit-renderer",function(){if(mY9!==void 0)return mY9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return mY9=E},{mode:1});var QV8;var Gy=function(){var E=_.r.apply(this,arguments)||this;E.dark=!1;E.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";E.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return E};
_.L(Gy,_.r);Gy.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Gy.prototype.ready=function(){var E=document.documentElement.hasAttribute("dark");this.setBackgroundImage(E);this.dark=E};
Gy.prototype.onDarkModeToggledAction=function(E){this.setBackgroundImage(E);this.dark=E};
Gy.prototype.setBackgroundImage=function(E){_.Dk(this.hostElement,{"--yt-labs-header-background":"url("+(E?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Gy.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Gy.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Gy.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Gy.prototype,"dark",void 0);
Gy=_.k([_.b({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Gy);
_.A(Gy,"ytd-labs-header-renderer",function(){if(QV8!==void 0)return QV8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return QV8=E},{mode:1});var dYO;var Ot=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return E};
_.L(Ot,_.r);Ot.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"}}}}}};
Ot.prototype.onYtToggleButton=function(E){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",E.detail.toggled)};
Ot.prototype.onManageLabsState=function(E){if(E=_.h(E,B2d))E.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?E.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&E.labsItemId===this.data.labsItemId&&(E.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.I2(this.hostElement,"yt-check-labs-opted-in-state").some(function(B){return B})&&this.data.confirmationDialogCommand?_.cN(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.Q().resolve(_.Dt).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&E.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.Q().resolve(_.Dt).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Ot.prototype.onCheckLabsOptedInState=function(){var E=this.get("data.primaryButton.toggleButtonRenderer");return E?E.isToggled:!1};
_.Up.Object.defineProperties(Ot.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Ot.prototype.onYtToggleButton=Ot.prototype.onYtToggleButton;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Ot.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Ot.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ot.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Ot.prototype,"itemStyle",null);_.k([_.RN("yt-toggle-button"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Ot.prototype,"onYtToggleButton",null);Ot=_.k([_.b({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Ot);
_.A(Ot,"ytd-labs-item-renderer",function(){if(dYO!==void 0)return dYO;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return dYO=E},{mode:1});var hw9;var sVm;var nN=function(){return _.r.apply(this,arguments)||this};
_.L(nN,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],nN.prototype,"data",void 0);nN=_.k([_.b({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],nN);
_.A(nN,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(sVm!==void 0)return sVm;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return sVm=E},{mode:1});var uwO;var MP=function(){return _.r.apply(this,arguments)||this};
_.L(MP,_.r);MP.prototype.observeSuperchatChip=function(){if(this.data){var E={"--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)};_.Dk(this.hostElement,E)}};
MP.prototype.colorFromDecimal=function(E){return _.hR(Number(E||0))};
MP.prototype.observeSuperchatChip=MP.prototype.observeSuperchatChip;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],MP.prototype,"data",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],MP.prototype,"observeSuperchatChip",null);MP=_.k([_.b({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],MP);
_.A(MP,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(uwO!==void 0)return uwO;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return uwO=E},{mode:1});var Ht=function(){return _.r.apply(this,arguments)||this};
_.L(Ht,_.r);Ht.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"}}}};
_.Up.Object.defineProperties(Ht.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Ht.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.GJ),_.t("design:type",Object)],Ht.prototype,"ytdDismissibleItemBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ht.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Ht.prototype,"hideMessageBlock",null);
Ht=_.k([_.b({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Ht);
_.A(Ht,"ytd-live-chat-history-entry-renderer",function(){if(hw9!==void 0)return hw9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return hw9=E},{mode:1});var Lo2;var NP=function(){return _.r.apply(this,arguments)||this};
_.L(NP,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],NP.prototype,"data",void 0);NP=_.k([_.b({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],NP);
_.A(NP,"ytd-channel-options-renderer",function(){if(Lo2!==void 0)return Lo2;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Lo2=E},{mode:1});var xY7;var gO=function(){return _.r.apply(this,arguments)||this};
_.L(gO,_.r);gO.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],gO.prototype,"data",void 0);gO=_.k([_.b({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],gO);
_.A(gO,"ytd-settings-email-item-renderer",function(){if(xY7!==void 0)return xY7;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return xY7=E},{mode:1});var G3g;var Sz=function(){return _.r.apply(this,arguments)||this};
_.L(Sz,_.r);Sz.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"}}}};
Sz.prototype.getExpansionIcon=function(E){return E?"arrow_drop_up":"arrow_drop_down"};
Sz.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Up.Object.defineProperties(Sz.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Sz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Sz.prototype,"data",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],Sz.prototype,"expanded",void 0);_.k([_.S("expanded"),_.t("design:type",String),_.t("design:paramtypes",[])],Sz.prototype,"emailListExpanded",null);
_.k([_.$7("#options"),_.t("design:type",Object)],Sz.prototype,"options",void 0);Sz=_.k([_.b({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Sz);
_.A(Sz,"ytd-settings-email-list-renderer",function(){if(G3g!==void 0)return G3g;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return G3g=E},{mode:1});var Ohs;var Jq=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return E};
_.L(Jq,_.r);Jq.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"}}}};
Jq.prototype.handleSignalActionSubmitForm=function(){var E,B=(E=this.formRenderer)==null?void 0:E.getForm();B&&this.data.serviceEndpoint&&_.Q().resolve(_.Dt).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},B,{element:this.hostElement})})};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Jq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Jq.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Jq.prototype,"data",void 0);_.k([_.$7("yt-form-renderer"),_.t("design:type",Object)],Jq.prototype,"formRenderer",void 0);
Jq=_.k([_.b({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Jq);
_.A(Jq,"ytd-settings-gaia-link-renderer",function(){if(Ohs!==void 0)return Ohs;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Ohs=E},{mode:1});var nz7;var Wt=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return E};
_.L(Wt,_.r);Wt.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.qRs()&&this.set("data.hidden",!1)};
Wt.prototype.onSwitchReady=function(){var E=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.d("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.VRd().then(function(B){B&&(Notification.permission==="default"?E.set("data.hidden",!1):Notification.permission==="granted"&&_.bk("NotificationsDisabled").then(function(I){I||_.I2(E.hostElement,"yt-toggle-settings-switch",[E.data.id,!I]);E.set("data.hidden",!1)}).catch(function(){}))})})};
Wt.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}}}}};
Wt.prototype.handleUpdateOptionsCommand=function(E){(E=_.h(E,_.aFU))&&this.data&&this.data.id===E.id&&(this.set("data.hidden",E.hidden),E.text!==void 0&&this.set("data.text",E.text),E.clearOptions&&this.set("data.options",[]))};
Wt.prototype.onSwitchReady=Wt.prototype.onSwitchReady;Wt.prototype.dataChanged=Wt.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Wt.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Wt.prototype,"data",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wt.prototype,"dataChanged",null);_.k([_.RN("yt-settings-switch-ready"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wt.prototype,"onSwitchReady",null);Wt=_.k([_.b({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Wt);
_.A(Wt,"ytd-settings-options-renderer",function(){if(nz7!==void 0)return nz7;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return nz7=E},{mode:1});var M01;var XE=function(){return _.r.apply(this,arguments)||this};
_.L(XE,_.r);XE.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
XE.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
XE.prototype.onYtExpanderMoreTapped=XE.prototype.onYtExpanderMoreTapped;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],XE.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],XE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],XE.prototype,"data",void 0);
_.k([_.RN("yt-expander-more-tapped"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],XE.prototype,"onYtExpanderMoreTapped",null);XE=_.k([_.b({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],XE);
_.A(XE,"ytd-product-details-description-renderer",function(){if(M01!==void 0)return M01;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return M01=E},{mode:1});var Hh9;var rO=function(){var E=_.r.apply(this,arguments)||this;E.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";E.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";E.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";E.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return E};
_.L(rO,_.r);rO.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Up.Object.defineProperties(rO.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?void 0:(B=E.offerData)==null?void 0:B.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?void 0:E.purchaseButtonRenderers)!==void 0&&((B=this.data)==null?void 0:B.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var E,B;return!((E=this.data)==null||!E.formattedFromMerchantText)&&(!((B=this.data)==null||!B.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],rO.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],rO.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],rO.prototype,"data",void 0);
_.k([_.X({type:_.d("kevlar_property_type_migration_killswitch")?String:void 0}),_.t("design:type",Object)],rO.prototype,"shippingIcon",void 0);_.k([_.X({type:_.d("kevlar_property_type_migration_killswitch")?String:void 0}),_.t("design:type",Object)],rO.prototype,"shippingAddressIcon",void 0);_.k([_.X({type:_.d("kevlar_property_type_migration_killswitch")?String:void 0}),_.t("design:type",Object)],rO.prototype,"googleGuaranteeIcon",void 0);
_.k([_.X({type:_.d("kevlar_property_type_migration_killswitch")?String:void 0}),_.t("design:type",Object)],rO.prototype,"returnPolicyIcon",void 0);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],rO.prototype,"showAdditionalFees",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],rO.prototype,"showMultiPurchaseButtons",null);
_.k([_.S("data","showMultiPurchaseButtons"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],rO.prototype,"showPurchaseData",null);rO=_.k([_.b({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],rO);
_.A(rO,"ytd-product-details-hero-offer-renderer",function(){if(Hh9!==void 0)return Hh9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Hh9=E},{mode:1});var N22;var gzO;var bn=function(){return _.r.apply(this,arguments)||this};
_.L(bn,_.r);_.l=bn.prototype;_.l.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.l.onKeyDown=function(E){E=E.keyCode;E!==13&&E!==32||this.handleSelection()};
_.l.onMouseEnterImage=function(){var E;((E=this.data)==null?void 0:E.thumbnailDetails)!==void 0&&_.Ta(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.l.onMouseLeaveImage=function(){_.Ta(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.l.handleSelection=function(){this.data&&_.$O(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Up.Object.defineProperties(bn.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.isSelected)}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],bn.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],bn.prototype,"isSelected",null);bn=_.k([_.b({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],bn);
_.A(bn,"ytd-product-details-thumbnail-renderer",function(){if(gzO!==void 0)return gzO;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return gzO=E},{mode:1});var ol=function(){var E=_.r.apply(this,arguments)||this;var B={};E.actionMap=(B["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",B["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",B);E.selectedThumbnailIndex=0;E.selectItem=function(I){I.target.onKeyDown(I)};
return E};
_.L(ol,_.r);_.l=ol.prototype;_.l.handlePreviewImageSelect=function(E){this.hoverThumbnail=E};
_.l.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.l.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.l.onThumbnailSelected=function(E,B){this.selectedThumbnailIndex=B};
_.l.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.l.updateOffset=function(){var E=_.n(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-E));this.ytdHorizontalListBehavior.reposition_()};
_.Up.Object.defineProperties(ol.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)==null?0:E.imageRenderer){var B,I;return((B=this.data)==null?void 0:(I=B.imageRenderer)==null?void 0:I.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var E;if((E=this.data)==null?0:E.imageRenderer){var B;return(B=_.h(this.data.imageRenderer[this.selectedThumbnailIndex],T2s))==null?void 0:B.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var E=this,B,I,T,e=(T=(B=this.data)==null?void 0:(I=B.imageRenderer)==null?void 0:I.map(function(c,Y){return{productDetailsThumbnailRenderer:Object.assign({},_.h(c,T2s),{index:Y,isSelected:Y===E.selectedThumbnailIndex})}}))!=null?T:[];
return Object.assign({},this.data,{imageRenderer:e})}}});
ol.prototype.updateOffset=ol.prototype.updateOffset;ol.prototype.dataChanged=ol.prototype.dataChanged;ol.prototype.onThumbnailSelected=ol.prototype.onThumbnailSelected;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ol.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.fz.YtdHorizontalListBehavior),_.t("design:type",Object)],ol.prototype,"ytdHorizontalListBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],ol.prototype,"componentBehavior",void 0);_.k([_.g([_.th.YtActionHandlerBehavior]),_.t("design:type",Object)],ol.prototype,"actionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ol.prototype,"data",void 0);_.k([_.X({value:"$.items.children"}),_.t("design:type",String)],ol.prototype,"itemsPath",void 0);_.k([_.X({value:3}),_.t("design:type",Number)],ol.prototype,"initialCount",void 0);
_.k([_.$7("#items"),_.t("design:type",Object)],ol.prototype,"items",void 0);_.k([_.X(),_.t("design:type",Object)],ol.prototype,"selectedThumbnailIndex",void 0);_.k([_.X(),_.t("design:type",Object)],ol.prototype,"hoverThumbnail",void 0);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ol.prototype,"showThumbnails",null);
_.k([_.RN("ytd-product-details-thumbnail-renderer-selected"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Number]),_.t("design:returntype")],ol.prototype,"onThumbnailSelected",null);_.k([_.S("data","selectedThumbnailIndex","hoverThumbnail"),_.t("design:type",Object),_.t("design:paramtypes",[])],ol.prototype,"thumbnailDetails",null);_.k([_.S("data","selectedThumbnailIndex"),_.t("design:type",Object),_.t("design:paramtypes",[])],ol.prototype,"populatedData",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ol.prototype,"dataChanged",null);_.k([_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ol.prototype,"updateOffset",null);ol=_.k([_.b({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],ol);
_.A(ol,"ytd-product-details-image-carousel-renderer",function(){if(N22!==void 0)return N22;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return N22=E},{mode:_.qi("kevlar_poly_si_batch_j079")?1:2});var SmO;var Aq=function(){return _.r.apply(this,arguments)||this};
_.L(Aq,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Aq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Aq.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Aq.prototype,"data",void 0);Aq=_.k([_.b({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Aq);
_.A(Aq,"ytd-product-details-offer-renderer",function(){if(SmO!==void 0)return SmO;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return SmO=E},{mode:1});var J97;var jz=function(){var E=_.r.apply(this,arguments)||this;E.isOffersHidden=!0;return E};
_.L(jz,_.r);jz.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var E,B=_.h((E=this.data)==null?void 0:E.viewOffersButton,_.NT);B&&this.ytRendererBehavior.logExplicitClick(B)};
jz.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Up.Object.defineProperties(jz.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T;return(I=_.h((E=this.data)==null?void 0:(B=E.offers)==null?void 0:B[0],ihg))==null?void 0:(T=I.offerData)==null?void 0:T.vendorLogoUrl}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],jz.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],jz.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],jz.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],jz.prototype,"isOffersHidden",void 0);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],jz.prototype,"firstOfferVendorLogoUrl",null);jz=_.k([_.b({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],jz);
_.A(jz,"ytd-product-details-offers-container-renderer",function(){if(J97!==void 0)return J97;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return J97=E},{mode:1});var Wo8;var XvO;var Ut=function(){return _.r.apply(this,arguments)||this};
_.L(Ut,_.r);Ut.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Ut.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Ta(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Ut.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Ta(this,"ytd-product-details-variant-image-unselect")};
_.Up.Object.defineProperties(Ut.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 E;return((E=this.data)==null?void 0:E.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return((E=this.data)==null?void 0:E.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((B=this.data)==null?void 0:B.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((I=this.data)==null?void 0:I.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var E;if(((E=this.data)==null?void 0:E.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var E,B;return this.isUnavailable?(E=this.data)==null?void 0:E.variantOptionUnavailableAccessibilityLabel:(B=this.data)==null?void 0:B.variantOptionAccessibilityLabel}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Ut.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ut.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],Ut.prototype,"displayType",void 0);
_.k([_.S("displayType","data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Ut.prototype,"isImageButton",null);_.k([_.S("displayType","data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Ut.prototype,"isPillButton",null);_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Ut.prototype,"isActive",null);
_.k([_.S("data"),_.X({reflectToAttribute:!0}),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Ut.prototype,"isUnavailable",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Ut.prototype,"thumbnailDetails",null);_.k([_.S("isUnavailable","data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Ut.prototype,"accessibilityLabel",null);Ut=_.k([_.b({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Ut);
_.A(Ut,"ytd-product-details-variant-option-renderer",function(){if(XvO!==void 0)return XvO;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return XvO=E},{mode:1});var r92;var k5=function(){var E=_.r.apply(this,arguments)||this;E.variantsExpanded=!1;E.hideShowMoreLessVariantButton=!0;E.initialized=!1;E.computeVariantsDebouncer=null;E.computeVariants=function(B){B=B===void 0?!1:B;E.variantsExpanded||E.showOptions()||!B||(E.variantsExpanded=!0);if(E.variantsExpanded){B=_.p(E.items.children);for(var I=B.next();!I.done;I=B.next())I.value.hidden=!1}E.initialized=!0};
return E};
_.L(k5,_.r);_.l=k5.prototype;_.l.ready=function(){var E=this;setTimeout(function(){E.computeVariants(!0)})};
_.l.showOptions=function(){for(var E=_.p(this.items.children),B=E.next();!B.done;B=E.next())B.value.hidden=!0;var I=this.container.getBoundingClientRect().width,T=0,e=E=0;B=!1;for(var c=_.p(this.items.children),Y=c.next();!Y.done;Y=c.next()){Y=Y.value;Y.hidden=!1;var v=Y.getBoundingClientRect().width;if(T+v<I)T+=v;else if(++e<2)T=v;else break;E+=1;Y.hasAttribute("is-active")&&(B=!0)}for(I=E;I<this.items.children.length;I++)this.items.children[I].hidden=!0;this.hideShowMoreLessVariantButton=E===this.items.children.length;
return B};
_.l.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Tz(this.computeVariantsDebouncer,_.tL.after(100),this.computeVariants)};
_.l.onShowMoreLessVariantsButtonClick=function(){var E;(E=this.data)!=null&&E.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.l.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Up.Object.defineProperties(k5.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var E,B,I=(E=this.data)==null?void 0:(B=E.variantOptionRenderers)==null?void 0:B.find(function(c){return _.h(c,lyI).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),T,e;
return(e=(T=_.h(I,lyI))==null?void 0:T.name)!=null?e:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.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"}}}});
k5.prototype.debouncedComputeVariants=k5.prototype.debouncedComputeVariants;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],k5.prototype,"componentBehavior",void 0);_.k([_.g(_.OI),_.t("design:type",Object)],k5.prototype,"ironResizableBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],k5.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],k5.prototype,"variantsExpanded",void 0);_.k([_.X(),_.t("design:type",Object)],k5.prototype,"hideShowMoreLessVariantButton",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],k5.prototype,"initialized",void 0);_.k([_.$7("#items"),_.t("design:type",HTMLDivElement)],k5.prototype,"items",void 0);_.k([_.$7("#container"),_.t("design:type",HTMLDivElement)],k5.prototype,"container",void 0);
_.k([_.$7("#more-variants-button"),_.t("design:type",HTMLElement)],k5.prototype,"moreVariantsButton",void 0);_.k([_.S("data"),_.t("design:type",String),_.t("design:paramtypes",[])],k5.prototype,"selectedOptionName",null);_.k([_.EM("data","variantsExpanded"),_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],k5.prototype,"debouncedComputeVariants",null);
_.k([_.S("data"),_.t("design:type",String),_.t("design:paramtypes",[])],k5.prototype,"displayType",null);_.k([_.S("displayType"),_.t("design:type",Object),_.t("design:paramtypes",[])],k5.prototype,"variantItemsClassname",null);k5=_.k([_.b({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],k5);
_.A(k5,"ytd-product-details-variant-renderer",function(){if(r92!==void 0)return r92;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return r92=E},{mode:1});var tq=function(){return _.r.apply(this,arguments)||this};
_.L(tq,_.r);
tq.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"}}}};
_.Up.Object.defineProperties(tq.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var E,B,I=(B=_.h((E=this.data)==null?void 0:E.offersContainerRenderer,c9O))==null?void 0:B.offers;return I!==void 0&&(I==null?void 0:I.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 E,B,I;return((I=(E=this.data)==null?void 0:(B=E.variants)==null?void 0:B.map(function(T){var e,c;T=(c=(e=_.h(T,ewT))==null?void 0:e.variantOptionRenderers)==null?void 0:c.find(function(v){var y;return((y=_.h(v,lyI))==null?void 0:y.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var Y;return(Y=_.h(T,lyI))==null?void 0:Y.name}).filter(function(T){return typeof T==="string"}))!=null?I:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T=(B=_.h((E=this.data)==null?void 0:E.shoppingFlaggingRenderer,pvI))==null?void 0:(I=B.reportButton)==null?void 0:I.buttonRenderer;if(T)return{text:T.text,command:T.command,icon:{iconType:"FLAG"},accessibilityData:T.accessibilityData,trackingParams:T.trackingParams,loggingDirectives:T.loggingDirectives}}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],tq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],tq.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],tq.prototype,"data",void 0);_.k([_.$7("#image-carousel-renderer"),_.t("design:type",Object)],tq.prototype,"imageCarouselRenderer",void 0);
_.k([_.$7("#hero-offer-renderer"),_.t("design:type",Object)],tq.prototype,"productDetailsHeroOfferRenderer",void 0);_.k([_.$7("#variants"),_.t("design:type",Object)],tq.prototype,"productDetailsVariantRenderer",void 0);_.k([_.$7("#offers"),_.t("design:type",Object)],tq.prototype,"productDetailsOffersContainerRenderer",void 0);_.k([_.$7("#description-renderer"),_.t("design:type",Object)],tq.prototype,"productDetailsDescriptionRenderer",void 0);
_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],tq.prototype,"showPurchaseData",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],tq.prototype,"showHeroOfferRenderer",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],tq.prototype,"showBrandText",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],tq.prototype,"showOffers",null);
_.k([_.S("showOffers","showPurchaseData"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],tq.prototype,"showBuySeparator",null);_.k([_.S("showOffers","showPurchaseData"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],tq.prototype,"showBuyCard",null);_.k([_.S("data"),_.t("design:type",String),_.t("design:paramtypes",[])],tq.prototype,"selectedVariantsText",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],tq.prototype,"shoppingReportingButtonData",null);
tq=_.k([_.b({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],tq);
_.A(tq,"ytd-product-details-renderer",function(){if(Wo8!==void 0)return Wo8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Wo8=E},{mode:1});var bh1;var ozO;var A92;var fN=function(){return _.r.apply(this,arguments)||this};
_.L(fN,_.r);fN.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Up.Object.defineProperties(fN.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],fN.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],fN.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],fN.prototype,"formattedAmount",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],fN.prototype,"ariaLabel",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data.style"),_.t("design:type",String),_.t("design:paramtypes",[])],fN.prototype,"vcBalanceWidgetStyle",null);fN=_.k([_.QE({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],fN);
_.A(fN,"yt-vc-balance-renderer",function(){if(A92===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;ozO===void 0&&(ozO=document.createElement("template"));var T=ozO;I.call(B,T.content.cloneNode(!0),E.content.firstChild);A92=E}E=A92;return E},{mode:2});_.QH("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Vg=function(){return _.r.apply(this,arguments)||this};
_.L(Vg,_.r);_.Up.Object.defineProperties(Vg.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:""}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Vg.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Vg.prototype,"data",void 0);_.k([_.X({selectorArgs:["data.vcBalanceEntityKey"],selector:function(E,B){return _.cP(E.entities,"vcBalanceEntity",B)}}),
_.t("design:type",Object)],Vg.prototype,"vcBalanceEntity",void 0);_.k([_.S("vcBalanceEntity"),_.t("design:type",String),_.t("design:paramtypes",[])],Vg.prototype,"formattedAmount",null);_.k([_.S("vcBalanceEntity"),_.t("design:type",String),_.t("design:paramtypes",[])],Vg.prototype,"vcBalanceAriaLabel",null);Vg=_.k([_.b({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Vg);
_.A(Vg,"ytd-vc-balance-renderer",function(){if(bh1!==void 0)return bh1;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return bh1=E},{mode:1});var jV1;var qP=function(){var E=_.r.apply(this,arguments)||this;E.rotation=0;E.isReloading=!1;return E};
_.L(qP,_.r);qP.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
qP.prototype.reset=function(){this.hostElement.style.opacity=""};
qP.prototype.close=function(){var E=this;return _.a(function(B){if(B.nextAddress==1)return _.C(B,E.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);E.hostElement.style.opacity="0";_.ER(B)})};
qP.prototype.rotationChanged=qP.prototype.rotationChanged;_.k([_.X(),_.t("design:type",Object)],qP.prototype,"rotation",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],qP.prototype,"isReloading",void 0);_.k([_.$7("#icon"),_.t("design:type",HTMLElement)],qP.prototype,"icon",void 0);_.k([_.EM("rotation"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],qP.prototype,"rotationChanged",null);
qP=_.k([_.b({disableElementRegistration:!0,is:"ytd-refresh"})],qP);
_.A(qP,"ytd-refresh",function(){if(jV1!==void 0)return jV1;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return jV1=E},{mode:1});var UY8;var k3s;var t02=function(E,B,I,T,e,c,Y,v){this.minWidth=E;this.minHeight=B;this.recommendedWidth=I;this.recommendedHeight=T;this.JSC$19300_maxFileSize=e;this.title=c;this.bannerGalleryTitle=Y;this.channelId=v;this.picker_=null;E=_.hac("yt-banner");B=E.addView;I=(new kdt("youtubebanner")).addUploadMetadata("silo_id","19");I.opts.ytMaxFileSize=this.JSC$19300_maxFileSize;T=this.recommendedHeight;I.opts.ytRecWidth=this.recommendedWidth;I.opts.ytRecHeight=T;B.call(E,I);E.addView(new _.sz);B=E.addView;I=new _.sz;
I.opts.type="ytbanner";B.call(E,I.JSC$7959_setLabel(this.bannerGalleryTitle));B=E.setTitle(this.title).setSize(1E3);B.urlParamMap_.set("thumbs","orig");I=this.minWidth;T=this.minHeight;if(isNaN(I)||isNaN(T))throw Error("kb`"+I+"`"+T);B.urlParamMap_.set("minSize",I+"x"+T);B.urlParamMap_.set("cropMode","ytcb");this.builder_=E};
t02.prototype.open=function(){var E=this;return new _.cC(function(B,I){_.Gbz(E.builder_,function(T){T.action=="picked"?B(T):T.action=="cancel"&&I(Error("Wl"))});
E.picker_&&E.picker_.dispose();E.picker_=E.builder_.build();E.picker_.setVisible(!0)})};
t02.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var fyt=function(E){this.channelId=E},V0t=function(E,B){var I="";
B.viewToken&&(I=B.viewToken[2].type);var T=B.docs[0];B=T.crop;E={channel_id:E.channelId,fife_url:T.thumbnails[0].url,photo_id:T.id,is_gallery_image:I=="ytbanner"};B&&(E.crop_top=B.top,E.crop_right=B.right,E.crop_bottom=B.bottom,E.crop_left=B.left);return _.GEi("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:E})};var FE=function(){var E=_.r.apply(this,arguments)||this;E.ariaLabel=null;return E};
_.L(FE,_.r);_.l=FE.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.detached=function(){this.picker&&this.picker.dispose()};
_.l.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.l.computeAriaLabel=function(E){return E};
_.l.onTap=function(){var E=this,B;if((B=this.data)==null||!B.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new t02(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 I;(I=this.picker)==null||I.open().then(function(T){E.handleBannerPicked(T)},function(){})}};
_.l.handleBannerPicked=function(E){var B=this;this.uploader||(this.uploader=new fyt(this.data.channelId||""));this.message=this.data.uploadingText;V0t(this.uploader,E).then(function(I){B.handleBannerUploadSucceeded(I)},function(I){B.handleBannerUploadFailed(I)})};
_.l.handleBannerUploadSucceeded=function(E){E&&E.errors?this.handleBannerUploadFailed(E):(_.$O(this.hostElement,"yt-banner-updated",E),this.message=null)};
_.l.handleBannerUploadFailed=function(E){this.message=E&&E.errors&&E.errors.length?E.errors[0]:null};
FE.prototype.dataChanged=FE.prototype.dataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],FE.prototype,"componentBehavior",void 0);_.k([_.g(_.MC),_.t("design:type",Object)],FE.prototype,"ironButtonState",void 0);_.k([_.X(),_.t("design:type",Object)],FE.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.t("design:type",Object)],FE.prototype,"ariaLabel",void 0);
_.k([_.X(),_.t("design:type",Object)],FE.prototype,"message",void 0);_.k([_.X(),_.t("design:type",Object)],FE.prototype,"picker",void 0);_.k([_.X(),_.t("design:type",Object)],FE.prototype,"uploader",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],FE.prototype,"dataChanged",null);FE=_.k([_.b({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],FE);
_.A(FE,"ytd-channel-banner-editor-renderer",function(){if(k3s!==void 0)return k3s;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return k3s=E},{mode:1});var qmd;var FoL=_.km(["#"]),DI=function(){return _.r.apply(this,arguments)||this};
_.L(DI,_.r);DI.prototype.computeHrefWithDefault=function(E){return this.ytComponentBehavior.computeHref_(E,!0)||_.v1(FoL)};
DI.prototype.dataChanged=function(){var E=this.data;E&&E.targetId&&_.tr$(_.T0(),E.targetId,this.moreIcon)};
DI.prototype.dataChanged=DI.prototype.dataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],DI.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],DI.prototype,"data",void 0);_.k([_.$7("#more-icon"),_.t("design:type",Object)],DI.prototype,"moreIcon",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],DI.prototype,"dataChanged",null);
DI=_.k([_.b({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],DI);
_.A(DI,"ytd-channel-tagline-renderer",function(){if(qmd!==void 0)return qmd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return qmd=E},{mode:1});var DYs;var KN=function(){return _.r.apply(this,arguments)||this};
_.L(KN,_.r);_.l=KN.prototype;_.l.ready=function(){var E=this;_.n(this.hostElement).querySelector("#form").addEventListener("submit",function(B){E.onSubmit(B)})};
_.l.onDataChanged=function(){var E;((E=this.data)==null?0:E.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.l.onIconButtonKeydown=function(E){E.keyCode===13&&this.iconButton.click()};
_.l.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.l.openOnClickHandler=function(){this.input.focus()};
_.l.onSubmit=function(E){E.preventDefault();return!1};
_.l.submitOnEnterKeyUp=function(E){var B;if(E.keyCode===13&&((B=this.data)==null?0:B.expandedText)){E=this.data.endpoint;B=_.a_.unsafeClone(E);var I;((I=_.h(B==null?void 0:B.commandMetadata,_.D$))==null?0:I.url)?(_.h(B.commandMetadata,_.D$).url=_.HC(_.h(B.commandMetadata,_.D$).url,"query",this.data.expandedText),_.h(B,_.pq)&&(_.h(B,_.pq).query=this.data.expandedText),_.$O(this.hostElement,"yt-navigate",{endpoint:B,tempData:{disableCache:!0}})):(I=new _.P7("Error: Trying to navigate to an endpoint without url",
E),_.xV(I))}};
_.l.updateDataExpandedTextFromBinding=function(E){this.set("data.expandedText",E.detail.value)};
KN.prototype.onDataChanged=KN.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Iss),_.t("design:type",Object)],KN.prototype,"ytdExpandableInputBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],KN.prototype,"data",void 0);_.k([_.$7("#input"),_.t("design:type",Object)],KN.prototype,"input",void 0);_.k([_.$7("#icon-button"),_.t("design:type",HTMLElement)],KN.prototype,"iconButton",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KN.prototype,"onDataChanged",null);KN=_.k([_.b({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],KN);
var JY7=_.VE()(KN,"ytd-expandable-tab-renderer",function(){if(DYs===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);DYs=E}E=DYs;return E},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var Kot;var RwI=_.km(["#"]),Rl=function(){return _.r.apply(this,arguments)||this};
_.L(Rl,_.r);Rl.prototype.computeHrefWithDefault=function(E){return this.ytComponentBehavior.computeHref_(E,!0)||_.v1(RwI)};
_.Up.Object.defineProperties(Rl.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var E;return _.ha((E=this.data)==null?void 0:E.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var E;return _.ha((E=this.data)==null?void 0:E.moreOnTap)}}});
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Rl.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Rl.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Rl.prototype,"usePageHeaderStyle",void 0);_.k([_.S("data.primaryOnTap"),_.t("design:type",Object),_.t("design:paramtypes",[])],Rl.prototype,"primaryLinkEndpoint",null);
_.k([_.S("data.moreOnTap"),_.t("design:type",Object),_.t("design:paramtypes",[])],Rl.prototype,"moreEndpoint",null);Rl=_.k([_.b({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],Rl);
_.A(Rl,"ytd-channel-header-links-view-model",function(){if(Kot!==void 0)return Kot;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Kot=E},{mode:1});var EDd;var EY=function(){var E=_.r.apply(this,arguments)||this;E.avatarSize=80;E.ariaLabel=_.yu("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return E};
_.L(EY,_.r);EY.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
EY.prototype.computeHref=function(E){var B;return((B=_.h(E,_.JK))==null?0:B.url)?this.componentBehavior.computeHref_(E):null};
EY.prototype.onTap=function(){var E,B;(E=this.data)==null||!E.editAvatarServiceEndpoint||((B=_.h(this.data.editAvatarServiceEndpoint,_.JK))==null?0:B.url)||_.Q().resolve(_.Dt).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.k([_.g(_.MC),_.t("design:type",Object)],EY.prototype,"ironButtonState",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],EY.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],EY.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],EY.prototype,"avatarSize",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],EY.prototype,"ariaLabel",void 0);EY=_.k([_.b({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],EY);
_.A(EY,"ytd-channel-avatar-editor",function(){if(EDd!==void 0)return EDd;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return EDd=E},{mode:1});_.oQ(_.iND,"yt-tab-group-shape",{props:{shape:_.Jh}});var BS=function(){var E=_.r.apply(this,arguments)||this;E.expandableCustomTabRenderable=function(B){return WbO(B,function(){return void E.onSearchNavigate()})};
E.isRichGrid=!1;E.richGridMiniMode=!1;E.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return E};
_.L(BS,_.r);_.l=BS.prototype;_.l.areAllFalse=function(E,B,I){return!E&&!B&&!I};
_.l.updateJoinButtonOverrides=function(){var E;(E=_.n(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||E.set("overrides",this.joinButtonOverrides)};
_.l.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.l.attached=function(){this.data&&this.dataChanged()};
_.l.computeHeaderDisabled=function(E,B){return B||!E};
_.l.handleButtonRefreshAction=function(E){(E=_.h(E,_.AsN))&&this.set("data.sponsorButton",E.membershipButton)};
_.l.handleInsertTabCommand=function(E){var B=_.h(E,aym);B&&B.externalChannelId===this.data.channelId&&(B.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(I){return I.tabRenderer&&I.tabRenderer.tabIdentifier===B.tabIdentifier})||this.splice("tabs",B.tabIndex||-1,0,B.tab))};
_.l.handleRefreshChannelTabAction=function(E){var B,I=(B=this.tabs)==null?void 0:B.filter(function(c){var Y;return(Y=c.tabRenderer)==null?void 0:Y.selected});
B=(I==null?void 0:I.length)===1?I[0]:void 0;var T;if((B==null?void 0:(T=B.tabRenderer)==null?void 0:T.tabIdentifier)===E){var e;_.$O(this.hostElement,"yt-navigate",{endpoint:(e=B.tabRenderer)==null?void 0:e.endpoint,tempData:{disableCache:!0}})}};
_.l.onWindowResize=function(){_.n(this.hostElement).querySelector("#header").fire("iron-resize")};
_.l.dataChanged=function(){var E=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var B=_.Aa(this.data.banner.thumbnails,this.hostElement.clientWidth);B&&(B.indexOf("//")===0&&(B="https:"+B),this.hasChannelArt=!0,_.Dk(this.hostElement,{"--yt-channel-banner":"url("+B+")"}))}this.hasChannelArt!==E&&_.n(this.hostElement).querySelector("#header").fire("iron-resize")};
_.l.onBannerUpdated=function(E,B){E=window.devicePixelRatio>1?B.hq_url:B.url;E.indexOf("//")===0&&(E="https:"+E);this.hasChannelArt=!0;_.Dk(this.hostElement,{"--yt-channel-banner":"url("+E+")"})};
_.l.observeLightsourcePalette=function(){var E,B,I=(E=this.data)==null?void 0:(B=E.headerColorPalette)==null?void 0:B.lightsourceColorPaletteData;I&&_.zI(this.hostElement,I)};
_.l.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Dk(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.l.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.l.handleUnsubscribeAction=function(){var E,B;((B=_.h((E=this.data)==null?void 0:E.sponsorButton,_.NT))==null?void 0:B.style)==="STYLE_PRIMARY"&&_.n(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.l.onFocusedChanged=function(E){(E=_.XN(E))&&E.is==="tp-yt-paper-tab"&&E.hasRipple()&&(E.getRipple().holdDown=!E.pointerDown&&E.focused)};
_.l.updateSelectedFromBinding=function(E){this.ytdTabbedHeaderBehavior.selected=E.detail.value};
_.Up.Object.defineProperties(BS.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:rYs(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var E,B;return!!((E=this.data)==null?0:(B=E.headerLinks)==null?0:B.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.subscriptionStateEntity)==null||!E.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var E=this.channelHandleDisplayStyle;return E==="MODERN"||E==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var E;return this.usePageHeaderStyle||!((E=this.data)==null?0:E.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var E;return this.usePageHeaderStyle||!((E=this.data)==null||!E.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var E;return!!_.h((E=this.data)==null?void 0:E.bannerEditor,$Yd)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var E;return _.d("enable_view_pronouns_on_main_app")&&!((E=this.data)==null||!E.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var E;return(this.useModernStyle||this.usePageHeaderStyle)&&!((E=this.data)==null||!E.videosCountText)}}});
BS.prototype.observerRichGridItemsPerRow=BS.prototype.observerRichGridItemsPerRow;BS.prototype.observeLightsourcePalette=BS.prototype.observeLightsourcePalette;BS.prototype.onBannerUpdated=BS.prototype.onBannerUpdated;BS.prototype.dataChanged=BS.prototype.dataChanged;BS.prototype.updateJoinButtonOverrides=BS.prototype.updateJoinButtonOverrides;_.k([_.g(_.nz),_.t("design:type",Object)],BS.prototype,"ytdGridStateAwareBehavior",void 0);
_.k([_.g(vzL),_.t("design:type",Object)],BS.prototype,"ytdTabbedHeaderBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],BS.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],BS.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.g(_.Lz),_.t("design:type",Object)],BS.prototype,"ytdReduxBehavior",void 0);_.k([_.$7("#tabs"),_.t("design:type",Object)],BS.prototype,"tabsElement",void 0);_.k([_.X(),_.t("design:type",Array)],BS.prototype,"tabs",void 0);_.k([_.S("tabs.*"),_.t("design:type",Object),_.t("design:paramtypes",[])],BS.prototype,"tabGroupShape",null);_.k([_.X(),_.t("design:type",Object)],BS.prototype,"expandableCustomTabRenderable",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],BS.prototype,"isRichGrid",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Object)],BS.prototype,"richGridMiniMode",void 0);_.k([_.X({selector:_.GP}),_.t("design:type",Number)],BS.prototype,"richGridItemsPerRow",void 0);_.k([_.X(),_.t("design:type",Object)],BS.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],BS.prototype,"hasChannelArt",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],BS.prototype,"hasChannelHeaderLinks",null);_.k([_.X({selector:_.jdL,reflectToAttribute:!0}),_.t("design:type",Boolean)],BS.prototype,"guideIsVisibleButNotPersistent",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],BS.prototype,"subscribeKey",null);
_.k([_.X({selectorArgs:["subscribeKey"],selector:_.RS}),_.t("design:type",Object)],BS.prototype,"subscriptionStateEntity",void 0);_.k([_.S("subscriptionStateEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],BS.prototype,"subscribed",null);_.k([_.S("subscribed"),_.t("design:type",Object),_.t("design:paramtypes",[])],BS.prototype,"joinButtonOverrides",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],BS.prototype,"useModernStyle",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],BS.prototype,"usePageHeaderStyle",null);_.k([_.S("useModernStyle","usePageHeaderStyle"),_.t("design:type",Number),_.t("design:paramtypes",[])],BS.prototype,"avatarSize",null);
_.k([_.S("channelHandleDisplayStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],BS.prototype,"shouldInlineChannelName",null);_.k([_.S("data","usePageHeaderStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],BS.prototype,"hideBannerEndpoint",null);_.k([_.S("data","usePageHeaderStyle"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],BS.prototype,"hideBannerVisibleArea",null);
_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],BS.prototype,"showBannerEditor",null);_.k([_.S("usePageHeaderStyle"),_.t("design:type",Object),_.t("design:paramtypes",[])],BS.prototype,"bannerEffects",null);_.k([_.S("usePageHeaderStyle"),_.t("design:type",Object),_.t("design:paramtypes",[])],BS.prototype,"effectsConfig",null);_.k([_.S("usePageHeaderStyle","hasChannelArt"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],BS.prototype,"shouldShowPageHeaderBanner",null);
_.k([_.S("data.channelHandleText"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],BS.prototype,"isChannelHandlePresent",null);_.k([_.S("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.t("design:type",String),_.t("design:paramtypes",[])],BS.prototype,"channelHandleDisplayStyle",null);_.k([_.S("data.channelPronouns"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],BS.prototype,"shouldShowChannelPronouns",null);
_.k([_.S("data.subscriberCountText"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],BS.prototype,"shouldShowSubscriberCount",null);_.k([_.S("useModernStyle","data.videosCountText"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],BS.prototype,"shouldShowVideosCount",null);_.k([_.EM("joinButtonOverrides"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],BS.prototype,"updateJoinButtonOverrides",null);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],BS.prototype,"dataChanged",null);_.k([_.RN("yt-banner-updated"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],BS.prototype,"onBannerUpdated",null);_.k([_.EM("data.headerColorPalette.lightsourceColorPaletteData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],BS.prototype,"observeLightsourcePalette",null);
_.k([_.EM("richGridItemsPerRow","isRichGrid"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],BS.prototype,"observerRichGridItemsPerRow",null);BS=_.k([_.b({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],BS);
_.A(BS,"ytd-c4-tabbed-header-renderer",function(){if(UY8!==void 0)return UY8;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-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-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return UY8=E},{mode:1});var BnI;var $S=function(){return _.r.apply(this,arguments)||this};
_.L($S,_.r);$S.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"}}}};
$S.prototype.dataChanged=function(){if(this.data){var E=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var B=_.Aa(this.data.banner.thumbnails,this.hostElement.clientWidth);B&&(B.indexOf("//")===0&&(B="https:"+B),this.hasBannerArt=!0,_.Dk(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+B+")"}))}this.hasBannerArt!==E&&_.n(this.hostElement).querySelector("#header").fire("iron-resize")}};
$S.prototype.updateSelectedFromBinding=function(E){this.selected=E.detail.value};
$S.prototype.dataChanged=$S.prototype.dataChanged;_.k([_.g(vzL),_.t("design:type",Object)],$S.prototype,"ytdTabbedHeaderBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],$S.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.nz),_.t("design:type",Object)],$S.prototype,"ytdGridStateAwareBehavior",void 0);_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],$S.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],$S.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],$S.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Number)],$S.prototype,"selected",void 0);_.k([_.X(),_.t("design:type",Boolean)],$S.prototype,"active",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],$S.prototype,"hasBannerArt",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$S.prototype,"dataChanged",null);$S=_.k([_.b({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],$S);
_.A($S,"ytd-interactive-tabbed-header-renderer",function(){if(BnI!==void 0)return BnI;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return BnI=E},{mode:1});var $as;var IT=function(){return _.r.apply(this,arguments)||this};
_.L(IT,_.r);IT.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
IT.prototype.computeActionsAlignment=function(E){return(E==null?void 0:E.actionsAlignment)||""};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],IT.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],IT.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.t("design:type",String)],IT.prototype,"actionsAlignment",void 0);
IT=_.k([_.b({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],IT);
_.A(IT,"ytd-page-footer-renderer",function(){if($as!==void 0)return $as;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return $as=E},{mode:1});var Ift;var TnI;var Tc=function(){var E=_.r.apply(this,arguments)||this;E.isEditing=!1;E.useSlot=!1;E.isMultiline=!1;return E};
_.L(Tc,_.r);_.l=Tc.prototype;_.l.onKeydown=function(E){if(E.keyCode===13&&!this.isMultiline)this.onSave();else if(E.keyCode===27)this.onCancel()};
_.l.computeComponentStyle=function(E){return(E==null?0:E.style)?E.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.l.computeisMultiline=function(E){if(this.multilineOverride!==void 0)return this.multilineOverride;var B,I;return!!(E==null?0:(B=E.formField)==null?0:(I=B.textInputFormFieldRenderer)==null?0:I.isMultiline)};
_.l.computeTextDisplayed=function(E,B){if(E)return E;if(B)return B};
_.l.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.l.onSave=function(){if(this.textForm.validate()){this.textForm.save();var E=this.textForm.value;if(E)this.set("data.textDisplayed",_.jj(E));else{var B;((B=this.data)==null?0:B.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.HF("inline-form-changed",this.data));this.isEditing=!1}};
_.l.onCancel=function(){var E=_.U3(this.data.textDisplayed);E===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(E);this.isEditing=!1};
Tc.prototype.onKeydown=Tc.prototype.onKeydown;_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],Tc.prototype,"ytEventForwardingBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Tc.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Tc.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Tc.prototype,"isEditing",void 0);_.k([_.X(),_.t("design:type",Object)],Tc.prototype,"useSlot",void 0);_.k([_.X(),_.t("design:type",Boolean)],Tc.prototype,"multilineOverride",void 0);_.k([_.X(),_.t("design:type",Boolean)],Tc.prototype,"enableOverlayTheme",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.t("design:type",String)],Tc.prototype,"componentStyle",void 0);
_.k([_.X({computed:"computeisMultiline(data)"}),_.t("design:type",Object)],Tc.prototype,"isMultiline",void 0);_.k([_.$7("#text-form"),_.t("design:type",Object)],Tc.prototype,"textForm",void 0);_.k([_.RN("keydown"),_.t("design:type",Function),_.t("design:paramtypes",[KeyboardEvent]),_.t("design:returntype")],Tc.prototype,"onKeydown",null);Tc=_.k([_.b({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Tc);
_.A(Tc,"ytd-inline-form-renderer",function(){if(TnI!==void 0)return TnI;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return TnI=E},{mode:1});var enH;var eZ=function(){var E=_.r.apply(this,arguments)||this;E.previousSelectValue=void 0;E.selectedItemMessage=void 0;return E};
_.L(eZ,_.r);eZ.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
eZ.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var E,B,I,T,e=(E=this.data)==null?void 0:(B=E.dropdown)==null?void 0:(I=B.dropdownRenderer)==null?void 0:(T=I.entries)==null?void 0:T.map(function(v){return v.privacyDropdownItemRenderer});
E=_.p(e!=null?e:[]);for(B=E.next();!B.done;B=E.next())if((B=B.value)&&B.int32Value===this.selectedValue){this.selectedItemMessage=B.itemMessage;break}}else this.selectedItemMessage=void 0;var c;(c=this.onValueChanged)==null||c.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var Y;(Y=this.data)!=null&&Y.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
eZ.prototype.onValueChangedForSelectedValue=function(E){this.selectedValue=E.detail.value};
eZ.prototype.selectedValueChanged=eZ.prototype.selectedValueChanged;_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],eZ.prototype,"ytEventForwardingBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],eZ.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],eZ.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],eZ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],eZ.prototype,"theme",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Number)],eZ.prototype,"selectedValue",void 0);_.k([_.X(),_.t("design:type",Function)],eZ.prototype,"onValueChanged",void 0);
_.k([_.i6("selectedValue"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],eZ.prototype,"selectedValueChanged",null);eZ=_.k([_.b({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],eZ);
_.A(eZ,"ytd-dropdown-form-field-renderer",function(){if(enH!==void 0)return enH;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return enH=E},{mode:_.qi("kevlar_poly_si_batch_j025")?1:2});var lfI;var ls=function(){return _.r.apply(this,arguments)||this};
_.L(ls,_.r);_.Up.Object.defineProperties(ls.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var E=[],B=_.p(this.data||[]),I=B.next();!I.done;I=B.next())(I=_.h(I.value,Ymg))&&E.push(I);return E}}});
_.k([_.X(),_.t("design:type",Array)],ls.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],ls.prototype,"byline",null);ls=_.k([_.b({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],ls);
_.A(ls,"ytd-playlist-byline-renderer",function(){if(lfI!==void 0)return lfI;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return lfI=E},{mode:1});var cEs;var cS=function(){var E=_.r.apply(this,arguments)||this;E.rtlBullet=_.d("web_playlist_stats_rtl_bullet_icon_killswitch");E.modern=_.d("web_modern_buttons");E.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return E};
_.L(cS,_.r);_.l=cS.prototype;_.l.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"}}}}};
_.l.attached=function(){};
_.l.computeIsCustomThumbnail=function(E){return E?!!E.playlistCustomThumbnailRenderer:!1};
_.l.onYtNavigate=function(E,B){if(B&&B.actions&&B.actions.indexOf("shuffle")>-1){E=_.Q().resolve(_.Hx);var I=B.tempData||{};I.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);B.tempData=I;E.isShuffleNextPlaylist=!0}};
_.l.onUpdatePlaylistAction=function(E){var B;E=(B=_.h(E,_.jz6))==null?void 0:B.updatedRenderer;if(B=_.h(E,st))this.data=B};
_.l.computeStyleType=function(E){return E?E.toLowerCase().replace(/_/g,"-"):""};
_.l.computeThumbnailWidth=function(E){return E==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.l.computeHideThumbnailAria=function(E){if(E==null?0:E.thumbnailOverlays)for(var B=0;B<E.thumbnailOverlays.length;B++){var I=void 0;if((I=E.thumbnailOverlays[B])==null?0:I.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
cS.prototype.onYtNavigate=cS.prototype.onYtNavigate;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],cS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],cS.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],cS.prototype,"ytComponentBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],cS.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cS.prototype,"rtlBullet",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.t("design:type",String)],cS.prototype,"styleType",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.t("design:type",Number)],cS.prototype,"thumbnailWidth",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],cS.prototype,"modern",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.t("design:type",Boolean)],cS.prototype,"isCustomThumbnail",void 0);_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[Event,Object]),_.t("design:returntype")],cS.prototype,"onYtNavigate",null);
cS=_.k([_.b({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],cS);
_.A(cS,"ytd-playlist-sidebar-primary-info-renderer",function(){if(cEs!==void 0)return cEs;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return cEs=E},{mode:1});var iW2;var is=function(){return _.r.apply(this,arguments)||this};
_.L(is,_.r);is.prototype.computeOwnerVisibility=function(E){return!(!E.videoOwner&&!E.button)};
is.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"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],is.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],is.prototype,"data",void 0);is=_.k([_.b({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],is);
_.A(is,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(iW2!==void 0)return iW2;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return iW2=E},{mode:1});var pKs;var pY=function(){var E=_.r.apply(this,arguments)||this;E.expanded=!1;E.isCompact=!1;return E};
_.L(pY,_.r);_.l=pY.prototype;_.l.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.l.dataChanged=function(){this.data&&_.M7(_.n(this.text),_.FRt(_.RZu,_.U3(this.data.text||null)))};
_.l.computeAutoScrollEnabled=function(E,B){return E&&!B};
_.l.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.l.toggleOnTap=function(){this.expanded=!this.expanded};
pY.prototype.expandedChanged=pY.prototype.expandedChanged;pY.prototype.dataChanged=pY.prototype.dataChanged;_.k([_.g(_.R$g),_.t("design:type",Object)],pY.prototype,"ytdAutoScrollBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],pY.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],pY.prototype,"expanded",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],pY.prototype,"isCompact",void 0);_.k([_.X({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.t("design:type",Boolean)],pY.prototype,"autoScrollEnabled",void 0);_.k([_.$7("#text"),_.t("design:type",Object)],pY.prototype,"text",void 0);_.k([_.$7("#expander-icon"),_.t("design:type",Object)],pY.prototype,"expanderIcon",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],pY.prototype,"dataChanged",null);_.k([_.EM("expanded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],pY.prototype,"expandedChanged",null);pY=_.k([_.b({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],pY);
_.A(pY,"ytd-channel-legal-info-renderer",function(){if(pKs!==void 0)return pKs;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return pKs=E},{mode:1});var YnO;var afT=_.yu("DOWNLOAD",{},"Download"),vD1=_.yu("DOWNLOADING",{},"Downloading"),yEI=_.yu("DOWNLOADED",{},"Downloaded"),YS=function(){var E=_.r.apply(this,arguments)||this;E.downloadProgress=0;E.isDownloadComplete=!1;E.transferState="TRANSFER_STATE_UNKNOWN";return E};
_.L(YS,_.r);_.l=YS.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.dataChanged=function(){var E;(E=this.data)!=null&&E.tooltip||(E=_.HP(_.t2().getState(),this.playlistId),this.updateButtonState(E))};
_.l.computePlaylistId=function(E){return E};
_.l.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.l.updateButtonState=function(E){if(this.data&&(this.data.tooltip!==vD1||!_.Zm(E))){this.isDownloadComplete=!1;switch(E){case "TRANSFER_STATE_UNKNOWN":E=afT;var B="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":E=yEI;B="OFFLINE_PIN";I="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":E=vD1;B="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";
break;default:E=afT,B="OFFLINE_DOWNLOAD",I="ACTION_ADD"}var T=Object.assign({},this.data);T.tooltip=E;T.accessibilityData={accessibilityData:{label:E}};T.icon={iconType:B};T.size="SIZE_DEFAULT";_.h(T.command,_.lO)&&(_.h(T.command,_.lO).action=I);this.set("data",T)}};
_.l.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var E="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?E="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?E="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?E="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?E="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?E="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(E="OFFLINE_PIN",this.isDownloadComplete=!0);var B;E!==((B=this.data.icon)==null?void 0:B.iconType)&&(B=Object.assign({},this.data),B.tooltip=vD1,B.accessibilityData={accessibilityData:{label:vD1}},B.icon={iconType:E},_.h(B.command,_.lO)&&(_.h(B.command,_.lO).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",B))}};
YS.prototype.updateProgress=YS.prototype.updateProgress;YS.prototype.onTransferStateChanged=YS.prototype.onTransferStateChanged;YS.prototype.dataChanged=YS.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],YS.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],YS.prototype,"ytdReduxBehavior",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],YS.prototype,"forceIconButton",void 0);
_.k([_.X({value:!0}),_.t("design:type",Boolean)],YS.prototype,"forceIconOnly",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],YS.prototype,"overrides",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],YS.prototype,"buttonTooltipPosition",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],YS.prototype,"styleActionButton",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],YS.prototype,"disableTextTransform",void 0);
_.k([_.X({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.t("design:type",String)],YS.prototype,"playlistId",void 0);_.k([_.X(),_.t("design:type",Object)],YS.prototype,"data",void 0);_.k([_.X({selector:_.HUD,selectorArgs:["playlistId"]}),_.t("design:type",Object)],YS.prototype,"downloadProgress",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],YS.prototype,"isDownloadComplete",void 0);
_.k([_.X({selector:_.HP,selectorArgs:["playlistId"]}),_.t("design:type",String)],YS.prototype,"transferState",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],YS.prototype,"showTooltips",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],YS.prototype,"sendCommandWhenDisabled",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],YS.prototype,"disabled",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],YS.prototype,"dataChanged",null);_.k([_.i6("transferState"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],YS.prototype,"onTransferStateChanged",null);_.k([_.i6("downloadProgress"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],YS.prototype,"updateProgress",null);
YS=_.k([_.b({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],YS);
_.A(YS,"ytd-download-playlist-button-renderer",function(){if(YnO!==void 0)return YnO;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return YnO=E},{mode:1});var Cwt;_.oQ(_.JF,"thumbnail-overlay-button-view-model",{props:{data:_.Jh,lockupExperiments:_.Jh}});var aT=function(){var E=_.r.apply(this,arguments)||this;E.isSquare=!1;E.isVertical=!1;return E};
_.L(aT,_.r);aT.prototype.computeIsSquare=function(E){return E!=null&&E.thumbnail?Sw8(E.thumbnail)==="SQUARE":!1};
aT.prototype.computeIsVertical=function(E){return E!=null&&E.thumbnail?Sw8(E.thumbnail)==="VERTICAL":!1};
aT.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],aT.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.t("design:type",Object)],aT.prototype,"isSquare",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.t("design:type",Object)],aT.prototype,"isVertical",void 0);
_.k([_.X(),_.t("design:type",Object)],aT.prototype,"data",void 0);aT=_.k([_.b({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],aT);
_.A(aT,"ytd-hero-playlist-thumbnail-renderer",function(){if(Cwt!==void 0)return Cwt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Cwt=E},{mode:1});var vS=function(){var E=_.r.apply(this,arguments)||this;E.isDarkTheme=!1;E.isUltraWide=!1;E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return E};
_.L(vS,_.r);_.l=vS.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.Q();var E;(E=_.Q().resolve(_.Fx(_.gx)))!=null&&(E.headerElement=this.hostElement)};
_.l.detached=function(){var E;(E=_.Q().resolve(_.Fx(_.gx)))!=null&&(E.headerElement=void 0)};
_.l.onUpdateHeader=function(E){(E=E.detail)&&this.set("data",E)};
_.l.computeTextDisplayed=function(E){if(E)return E.textDisplayed?E.textDisplayed:E.placeholder};
_.l.gradientColorToLinearGradientStop=function(E){var B=this.isDarkTheme?E.darkThemeColor:E.lightThemeColor;return B?_.hR(B)+" "+((E==null?void 0:E.startLocation)||0)*100+"%":"transparent"};
_.l.onWindowResize=function(){var E;((E=this.data)==null?0:E.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.l.onIronResize=function(E){this.isUltraWide=!E.detail.value};
_.l.onDarkModeToggledAction=function(E){this.isDarkTheme=E};
_.l.onUpdatePlaylistName=function(E){var B=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},E.detail.value));_.AJ(this,function(){var I;(I=B.editableTitle)==null||I.resize()})};
_.l.onUpdatePlaylistDescription=function(E){var B=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},E.detail.value));_.AJ(this,function(){var I;(I=B.editableDescriptionInlineExpander)==null||I.resize()})};
_.l.getCinematicData=function(E){return _.h(E==null?void 0:E.cinematicContainer,_.Pt)};
_.Up.Object.defineProperties(vS.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 E,B=(E=this.getCinematicData(this.data))==null?void 0:E.config;return(E=this.isDarkTheme?B==null?void 0:B.darkThemeBackgroundColor:B==null?void 0:B.lightThemeBackgroundColor)?"background-color:"+_.dE(E)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var E;return _.h((E=this.data)==null?void 0:E.descriptionForm,Iy9)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var E=this,B,I,T;return"background:linear-gradient(to bottom, "+(((T=(B=this.getCinematicData(this.data))==null?void 0:(I=B.gradientColorConfig)==null?void 0:I.map(function(e){return E.gradientColorToLinearGradientStop(e)}))==null?void 0:T.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var E;return _.U3((E=this.data)==null?void 0:E.descriptionTapText)}}});
vS.prototype.onUpdateHeader=vS.prototype.onUpdateHeader;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],vS.prototype,"actionHandlerBehavior",void 0);_.k([_.$7("#description-inline-expander"),_.t("design:type",Object)],vS.prototype,"descriptionInlineExpander",void 0);
_.k([_.$7("#editable-description-inline-expander"),_.t("design:type",Object)],vS.prototype,"editableDescriptionInlineExpander",void 0);_.k([_.X(),_.t("design:type",Object)],vS.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],vS.prototype,"isUltraWide",void 0);_.k([_.$7("#editable-title-display"),_.t("design:type",Object)],vS.prototype,"editableTitle",void 0);_.k([_.S("isUltraWide"),_.t("design:type",Object),_.t("design:paramtypes",[])],vS.prototype,"maxDescriptionLines",null);
_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],vS.prototype,"noCinematicData",null);_.k([_.RN("yt-new-playlist-header"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],vS.prototype,"onUpdateHeader",null);_.k([_.S("data","isDarkTheme"),_.t("design:type",Object),_.t("design:paramtypes",[])],vS.prototype,"backgroundStyle",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],vS.prototype,"descriptionFormData",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],vS.prototype,"getDropdownTheme",null);_.k([_.S("data","isDarkTheme"),_.t("design:type",String),_.t("design:paramtypes",[])],vS.prototype,"gradientStyle",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],vS.prototype,"descriptionTapText",null);
vS=_.k([_.b({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],vS);
_.A(vS,"ytd-playlist-header-renderer",function(){if(Ift!==void 0)return Ift;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Ift=E},{mode:_.qi("kevlar_poly_si_batch_j078")?1:2});var wKd;var ZW2;var yP=function(){return _.r.apply(this,arguments)||this};
_.L(yP,_.r);yP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],yP.prototype,"data",void 0);yP=_.k([_.b({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],yP);
_.A(yP,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(ZW2!==void 0)return ZW2;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return ZW2=E},{mode:1});var CY=function(){return _.r.apply(this,arguments)||this};
_.L(CY,_.r);
CY.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}}}}};
CY.prototype.computeUsePremiumShowStyle=function(E){if(!E||!E.items)return!1;for(var B=0;B<E.items.length;B++)if(_.h(E.items[B],st)){var I=void 0;return((I=_.h(E.items[B],st))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],CY.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.t("design:type",Boolean)],CY.prototype,"usePremiumShowStyle",void 0);
CY=_.k([_.b({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],CY);
_.A(CY,"ytd-playlist-sidebar-renderer",function(){if(wKd!==void 0)return wKd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return wKd=E},{mode:1});var PwL;var AYL=_.z8({pageHeaderViewModel:_.klU});_.qW(joH);var znT=_.rp(function(E){var B=E.data;var I=E.noPadding;var T=E.enableBanner;var e=E.cinematicContainerTopbarOffset;var c=E.allowCinematicContainerOverflow;var Y=E.displayAsSidebar;E=E.className;_.m$(function(){B().tagManagerId&&(_.y5(B().tagManagerId,_.HA("GL")),otT(B().tagManagerId))});
var v=_.iO(bP2,function(){return B().pageHeaderEntityKey});
return _.w("yt-page-header-renderer",{class:_.RQ("page-header-renderer-wiz",E)},_.w(_.hM,{data:function(){var y;return((y=v())==null?0:y.header)?v().header:(Y==null?0:Y())&&B().sidebarContent?B().sidebarContent:B().content}},{pageHeaderViewModel:function(y){return _.w(_.tWZ,{data:y.data,
noPadding:I,enableBanner:T,cinematicContainerTopbarOffset:e,allowCinematicContainerOverflow:c,displayAsSidebar:function(){return(Y==null?void 0:Y())&&B().enableSidebarView}})}}))},"ki"),mat=_.d("web_enable_sink_yt_page_header_renderer")?znT:joH;
znT.idomCompat=!0;_.d("web_enable_sink_yt_page_header_renderer")?_.oQ(mat,"yt-page-header-renderer",{props:{data:_.Jh,noPadding:_.Jh,enableBanner:_.Jh,cinematicContainerTopbarOffset:_.Jh,allowCinematicContainerOverflow:_.Jh,displayAsSidebar:_.Jh,className:_.Jh}}):_.qE(mat,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar className".split(" ")});_.oQ(_.Qv,"yt-image-banner-view-model",{props:{data:_.Jh,isPositionRelative:_.Jh}});var wj=function(){var E=_.r.apply(this,arguments)||this;E.expandableCustomTabRenderable=function(B){return WbO(B,function(){return void E.onSearchNavigate()})};
E.isRichGrid=!1;E.isConstrainedList=!1;E.richGridMiniMode=!1;E.richGridStyle="RICH_GRID_STYLE_UNKNOWN";E.isRichGridShorts=!1;E.responsiveSizing="COMPACT";E.disableGridStateAware=!1;E.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return E};
_.L(wj,_.r);_.l=wj.prototype;_.l.computeHeaderDisabled=function(E,B){return B||!E||this.tabsHidden};
_.l.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.l.computeIsRichGridShorts=function(E){return E==="RICH_GRID_STYLE_SHORTS_GRID"||E==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.l.computeImageBannerViewModel=function(){var E,B;return _.h((B=_.h((E=this.data)==null?void 0:E.content,_.LWl))==null?void 0:B.banner,_.nKG)};
_.l.computeHasCinematicContainer=function(){var E,B;return!((B=_.h((E=this.data)==null?void 0:E.content,_.LWl))==null||!B.background)};
_.l.handleHeaderResize=function(){var E=_.n(this.hostElement).querySelector("#header");E&&_.$O(E,"iron-resize")};
_.l.handleInsertTabCommand=function(E){var B=_.h(E,aym);B&&(B.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(I){return I.tabRenderer&&I.tabRenderer.tabIdentifier===B.tabIdentifier})||this.splice("tabs",B.tabIndex||-1,0,B.tab))};
_.l.handleRefreshChannelTabAction=function(E){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===E&&_.$O(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.l.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Dk(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.l.observerRichGridSlimItemsPerRow=function(){_.Dk(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.l.updateCssVars=function(){this.richGridItemsPerRow&&_.Dk(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.RI("rich_grid_max_item_width",500))+16)-16+"px"})};
_.l.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Dk(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.l.onDataChanged=function(){this.handleHeaderResize()};
_.l.onWindowResize=function(){this.handleHeaderResize()};
_.l.onFocusedChanged=function(E){(E=_.XN(E))&&E.is==="tp-yt-paper-tab"&&E.hasRipple()&&(E.getRipple().holdDown=!E.pointerDown&&E.focused)};
_.l.updateSelectedFromBinding=function(E){this.ytdTabbedHeaderBehavior.selected=E.detail.value};
_.l.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Up.Object.defineProperties(wj.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:rYs(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.imageBannerViewModel)==null?void 0:E.style)==="IMAGE_BANNER_STYLE_INSET"}}});
wj.prototype.onDataChanged=wj.prototype.onDataChanged;wj.prototype.updateCssVarsForResponsiveGrid=wj.prototype.updateCssVarsForResponsiveGrid;wj.prototype.updateCssVars=wj.prototype.updateCssVars;wj.prototype.observerRichGridSlimItemsPerRow=wj.prototype.observerRichGridSlimItemsPerRow;wj.prototype.observerRichGridItemsPerRow=wj.prototype.observerRichGridItemsPerRow;_.k([_.g(_.nz),_.t("design:type",Object)],wj.prototype,"ytdGridStateAwareBehavior",void 0);
_.k([_.g(vzL),_.t("design:type",Object)],wj.prototype,"ytdTabbedHeaderBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],wj.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],wj.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.g(_.Lz),_.t("design:type",Object)],wj.prototype,"ytdReduxBehavior",void 0);_.k([_.$7("#tabs"),_.t("design:type",Object)],wj.prototype,"tabsElement",void 0);_.k([_.X(),_.t("design:type",Array)],wj.prototype,"tabs",void 0);_.k([_.X(),_.t("design:type",Object)],wj.prototype,"expandableCustomTabRenderable",void 0);_.k([_.S("tabs.*"),_.t("design:type",Object),_.t("design:paramtypes",[])],wj.prototype,"tabGroupShape",null);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wj.prototype,"isRichGrid",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wj.prototype,"isConstrainedList",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Object)],wj.prototype,"richGridMiniMode",void 0);_.k([_.X({selector:function(E){return E.ui.richGridStyle}}),
_.t("design:type",Object)],wj.prototype,"richGridStyle",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.t("design:type",Object)],wj.prototype,"isRichGridShorts",void 0);_.k([_.X({selector:_.GP}),_.t("design:type",Number)],wj.prototype,"richGridItemsPerRow",void 0);_.k([_.X({selector:function(E){return E.ui.richGridContainerWidth}}),
_.t("design:type",Number)],wj.prototype,"richGridContainerWidth",void 0);_.k([_.X({selector:_.PUD}),_.t("design:type",Number)],wj.prototype,"richGridSlimItemsPerRow",void 0);_.k([_.X(),_.t("design:type",Object)],wj.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wj.prototype,"responsiveSizing",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wj.prototype,"disableGridStateAware",void 0);
_.k([_.X({computed:"computeImageBannerViewModel(data)"}),_.t("design:type",Object)],wj.prototype,"imageBannerViewModel",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.t("design:type",Boolean)],wj.prototype,"hasCinematicContainer",void 0);_.k([_.X({selector:_.jdL,reflectToAttribute:!0}),_.t("design:type",Boolean)],wj.prototype,"guideIsVisibleButNotPersistent",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("imageBannerViewModel"),_.t("design:type",Object),_.t("design:paramtypes",[])],wj.prototype,"hasBanner",null);_.k([_.X({reflectToAttribute:!0}),_.S("imageBannerViewModel"),_.t("design:type",Object),_.t("design:paramtypes",[])],wj.prototype,"hasInsetBanner",null);_.k([_.X({computed:"computeTabsHidden(tabs)",value:!0}),_.t("design:type",Boolean)],wj.prototype,"tabsHidden",void 0);
_.k([_.EM("richGridItemsPerRow","isRichGrid"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wj.prototype,"observerRichGridItemsPerRow",null);_.k([_.EM("richGridSlimItemsPerRow"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wj.prototype,"observerRichGridSlimItemsPerRow",null);
_.k([_.EM("richGridItemsPerRow","richGridMiniMode"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wj.prototype,"updateCssVars",null);_.k([_.EM("richGridContainerWidth"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wj.prototype,"updateCssVarsForResponsiveGrid",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wj.prototype,"onDataChanged",null);
wj=_.k([_.b({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],wj);
_.A(wj,"ytd-tabbed-page-header",function(){if(PwL!==void 0)return PwL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return PwL=E},{mode:1});var QD2;var Z2=function(){return _.r.apply(this,arguments)||this};
_.L(Z2,_.r);Z2.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Dk(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Up.Object.defineProperties(Z2.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var E,B;return this.componentBehavior.computeIcon_(((B=_.h((E=this.data)==null?void 0:E.badge,_.hKr))==null?void 0:B.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var E,B;return(B=_.h((E=this.data)==null?void 0:E.badge,_.hKr))==null?void 0:B.label}}});
Z2.prototype.observerRichGridItemsPerRow=Z2.prototype.observerRichGridItemsPerRow;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Z2.prototype,"componentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Z2.prototype,"ytdReduxBehavior",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.xN}),_.t("design:type",Boolean)],Z2.prototype,"richGridMiniMode",void 0);
_.k([_.X({selector:_.GP}),_.t("design:type",Number)],Z2.prototype,"richGridItemsPerRow",void 0);_.k([_.X(),_.t("design:type",Object)],Z2.prototype,"data",void 0);_.k([_.EM("richGridItemsPerRow"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Z2.prototype,"observerRichGridItemsPerRow",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Z2.prototype,"badgeIconName",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Z2.prototype,"badgeLabel",null);Z2=_.k([_.b({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Z2);
_.A(Z2,"ytd-member-hub-profile-renderer",function(){if(QD2!==void 0)return QD2;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return QD2=E},{mode:1});var daT;var PS=function(){return _.r.apply(this,arguments)||this};
_.L(PS,_.r);PS.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],PS.prototype,"data",void 0);PS=_.k([_.b({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],PS);
_.A(PS,"ytd-settings-sidebar-renderer",function(){if(daT!==void 0)return daT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return daT=E},{mode:1});var hnt;var zc=function(){return _.r.apply(this,arguments)||this};
_.L(zc,_.r);zc.prototype.shouldHideHashtagInfo_=function(E){return!(E==null?0:E.hashtagInfoText)};
zc.prototype.onFocusedChanged=function(E){(E=_.XN(E))&&E.is==="tp-yt-paper-tab"&&E.hasRipple()&&(E.getRipple().holdDown=!E.pointerDown&&E.focused)};
zc.prototype.updateSelectedFromBinding=function(E){this.selected=E.detail.value};
_.Up.Object.defineProperties(zc.prototype,{tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
_.k([_.g(vzL),_.t("design:type",Object)],zc.prototype,"ytdTabbedHeaderBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],zc.prototype,"rendererBehaviors",void 0);_.k([_.X(),_.t("design:type",Object)],zc.prototype,"data",void 0);_.k([_.$7("#tabs"),_.t("design:type",Object)],zc.prototype,"tabsElement",void 0);_.k([_.X(),_.t("design:type",Array)],zc.prototype,"tabs",void 0);_.k([_.X(),_.t("design:type",Object)],zc.prototype,"selected",void 0);
_.k([_.S("tabs"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],zc.prototype,"tabsEnabled",null);zc=_.k([_.b({disableElementRegistration:!0,is:"ytd-hashtag-header-renderer"})],zc);
_.A(zc,"ytd-hashtag-header-renderer",function(){if(hnt!==void 0)return hnt;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-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-hashtag-header-renderer">\n  <tp-yt-app-header id="header" slot="header" condenses="" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-hashtag-header-renderer">\n    <div id="hashtag-info-container" class="style-scope ytd-hashtag-header-renderer">\n      <yt-formatted-string id="hashtag" dir="auto" text="[[data.hashtag]]" class="style-scope ytd-hashtag-header-renderer">\n      </yt-formatted-string>\n      <div id="hashtag-info" hidden="[[shouldHideHashtagInfo_(data)]]" class="style-scope ytd-hashtag-header-renderer">\n        <yt-formatted-string id="hashtag-info-text" hidden="[[!data.hashtagInfoText]]" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-header-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <tp-yt-app-toolbar hidden="[[!tabsEnabled]]" sticky="" class="style-scope ytd-hashtag-header-renderer">\n      <div id="tabs-container" class="style-scope ytd-hashtag-header-renderer">\n        \n        <div id="tabs-inner-container" class="style-scope ytd-hashtag-header-renderer">\n          <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-hashtag-header-renderer">\n            <template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-hashtag-header-renderer">\n              <tp-yt-paper-tab disable-upgrade$="[[!item.tabRenderer]]" hidden="[[!item.tabRenderer]]" on-focused-changed="onFocusedChanged" class="style-scope ytd-hashtag-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab>\n            </template>\n          </tp-yt-paper-tabs>\n        </div>\n        <div id="tabs-divider" class="style-scope ytd-hashtag-header-renderer"></div>\n      </div>\n    </tp-yt-app-toolbar>\n  </tp-yt-app-header>\n</tp-yt-app-header-layout>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return hnt=E},{mode:_.qi("kevlar_poly_si_batch_j078")?1:2});var sDH;var ml=function(){var E=_.r.apply(this,arguments)||this;E.expandableCustomTabRenderable=function(B){return WbO(B,function(){return void E.onSearchNavigate()})};
return E};
_.L(ml,_.r);ml.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
ml.prototype.onSearchNavigate=function(){this.selected=void 0};
ml.prototype.onTabsChange=function(){var E,B=(E=this.tabs)==null?void 0:E.findIndex(function(I){var T;return I==null?void 0:(T=I.tabRenderer)==null?void 0:T.selected});
B!==void 0&&(this.selected=B)};
ml.prototype.onTabsActive=function(E){if(this.tabs!==void 0){var B,I;(E=(B=this.tabs[E.detail.selected])==null?void 0:(I=B.tabRenderer)==null?void 0:I.endpoint)&&_.$O(this.hostElement,"yt-navigate",{endpoint:E})}};
_.Up.Object.defineProperties(ml.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:rYs(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
ml.prototype.onTabsChange=ml.prototype.onTabsChange;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ml.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.nz),_.t("design:type",Object)],ml.prototype,"ytdGridStateAwareBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ml.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],ml.prototype,"ytdGuideStateAwareBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],ml.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Array)],ml.prototype,"tabs",void 0);_.k([_.X(),_.t("design:type",Number)],ml.prototype,"selected",void 0);_.k([_.S("tabs.*"),_.t("design:type",Object),_.t("design:paramtypes",[])],ml.prototype,"tabGroupShape",null);_.k([_.X(),_.t("design:type",Object)],ml.prototype,"expandableCustomTabRenderable",void 0);
_.k([_.S("tabs"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],ml.prototype,"tabsEnabled",null);_.k([_.i6("tabs"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ml.prototype,"onTabsChange",null);ml=_.k([_.b({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],ml);
_.A(ml,"ytd-topic-channel-details-renderer",function(){if(sDH!==void 0)return sDH;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return sDH=E},{mode:1});var ulg;var QP=function(){var E=_.r.apply(this,arguments)||this;E.disableGridStateAware=!1;return E};
_.L(QP,_.r);QP.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]]"}}}}}};
QP.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
QP.prototype.updateCssVars=function(){_.Dk(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.RI("rich_grid_max_item_width",500))+16)-16+"px"})};
QP.prototype.updateCssVars=QP.prototype.updateCssVars;QP.prototype.activeChanged=QP.prototype.activeChanged;_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],QP.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],QP.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],QP.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Array)],QP.prototype,"tabs",void 0);_.k([_.X(),_.t("design:type",Boolean)],QP.prototype,"active",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],QP.prototype,"disableGridStateAware",void 0);
_.k([_.X({selector:_.GP}),_.t("design:type",Number)],QP.prototype,"richGridItemsPerRow",void 0);_.k([_.X({selector:_.xN}),_.t("design:type",Boolean)],QP.prototype,"richGridMiniMode",void 0);_.k([_.$7("ytd-carousel-item-renderer"),_.t("design:type",Object)],QP.prototype,"carousel",void 0);_.k([_.EM("active"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],QP.prototype,"activeChanged",null);
_.k([_.EM("richGridItemsPerRow","richGridMiniMode"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],QP.prototype,"updateCssVars",null);QP=_.k([_.b({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],QP);
_.A(QP,"ytd-carousel-header-renderer",function(){if(ulg!==void 0)return ulg;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return ulg=E},{mode:1});var LC9;var xaH=_.km(["https://www.google-analytics.com/analytics.js"]),dj=function(){var E=_.r.apply(this,arguments)||this;E.scriptAnalyticsAdded=!1;return E};
_.L(dj,_.r);dj.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var E,B=(E=this.data)==null?void 0:E.tagManagerId;B&&(_.y5(B,_.HA("GL")),otT(B))};
dj.prototype.sendGoogleAnalyticsPageview=function(E){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var I=_.aG.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(I)};
var B=window.ga;B("set","page",window.location.pathname);B.l=+new Date;B("set","forceSSL",!0);B("create",E,"'auto'");B("send","pageview")};
dj.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var E=_.li("SCRIPT");E.name="ga-analytics";var B=_.jR(xaH);_.nr(E,B);E.async=!0;_.n(this.hostElement).appendChild(E)};
dj.prototype.dataChanged=dj.prototype.dataChanged;_.k([_.X(),_.t("design:type",Object)],dj.prototype,"data",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dj.prototype,"dataChanged",null);dj=_.k([_.b({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],dj);
_.A(dj,"ytd-channel-metadata-renderer",function(){if(LC9!==void 0)return LC9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return LC9=E},{mode:1});var GY1;var OWT;var hf=function(){return _.r.apply(this,arguments)||this};
_.L(hf,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],hf.prototype,"data",void 0);hf=_.k([_.b({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],hf);
_.A(hf,"ytd-sub-feed-option-renderer",function(){if(OWT!==void 0)return OWT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return OWT=E},{mode:1});var nDd;var sY=function(){return _.r.apply(this,arguments)||this};
_.L(sY,_.r);sY.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],sY.prototype,"ytRendererStamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],sY.prototype,"data",void 0);sY=_.k([_.b({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],sY);
_.A(sY,"ytd-sub-feed-selector-renderer",function(){if(nDd!==void 0)return nDd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return nDd=E},{mode:1});var us=function(){return _.r.apply(this,arguments)||this};
_.L(us,_.r);
us.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}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],us.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],us.prototype,"data",void 0);us=_.k([_.b({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],us);
_.A(us,"ytd-browse-feed-actions-renderer",function(){if(GY1!==void 0)return GY1;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return GY1=E},{mode:1});var M89;var HWT;var LY=function(){return _.r.apply(this,arguments)||this};
_.L(LY,_.r);LY.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],LY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],LY.prototype,"data",void 0);LY=_.k([_.b({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],LY);
_.A(LY,"ytd-mini-channel-renderer",function(){if(HWT!==void 0)return HWT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return HWT=E},{mode:1});var NnH;var xS=function(){return _.r.apply(this,arguments)||this};
_.L(xS,_.r);xS.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],xS.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],xS.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],xS.prototype,"data",void 0);xS=_.k([_.b({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],xS);
_.A(xS,"ytd-vertical-channel-section-renderer",function(){if(NnH!==void 0)return NnH;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return NnH=E},{mode:1});var Gc=function(){return _.r.apply(this,arguments)||this};
_.L(Gc,_.r);Gc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Gc.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Gc.prototype,"data",void 0);Gc=_.k([_.b({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Gc);
_.A(Gc,"ytd-browse-secondary-contents-renderer",function(){if(M89!==void 0)return M89;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
return M89=E},{mode:1});var gDL;var OY=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};E.notActive=!1;E.isConstrainedList=!1;return E};
_.L(OY,_.r);_.l=OY.prototype;
_.l.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(E){var B;return(E==null?void 0:(B=E.webComponentHint)==null?void 0:B.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}}}}};
_.l.getPath=function(E,B){var I="data.tabs.#"+B+".";E.tabs[B].tabRenderer?I+="tabRenderer.":E.tabs[B].expandableTabRenderer&&(I+="expandableTabRenderer.");return I+"content.sectionListRenderer"};
_.l.computeDisplayedContent=function(E){this.unlinkPaths("content");if(E&&E.tabs)for(var B=E.tabs.length,I=0;I<B;I++){var T=E.tabs[I].tabRenderer||E.tabs[I].expandableTabRenderer;if(T.selected&&T.content)return this.linkPaths("content",this.getPath(E,I)),T.content}return null};
_.l.computeHasSecondaryColumnData=function(E){return!!E&&!!E.secondaryContents};
_.l.onRetrieveLocation=function(E,B){B.locationRetrieved(B.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);E.stopPropagation()};
_.l.onYtServiceRequestSent=function(E,B){_.d("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(B)};
_.l.onYtServiceRequestCompleted=function(E,B){_.d("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(B)};
_.l.onReplaceFeedContentAction=function(E){if(!_.d("replace_feed_content_action_killswitch")&&!this.notActive){var B;(E=(B=_.h(E,RWs))==null?void 0:B.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(E)}};
_.l.handleServiceRequestActions=function(E){if(E=E.actions){E=_.p(E);for(var B=E.next();!B.done;B=E.next()){B=B.value;var I=void 0;((I=_.h(B,RWs))==null?0:I.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.h(B,RWs).items)}}};
OY.prototype.onYtServiceRequestCompleted=OY.prototype.onYtServiceRequestCompleted;OY.prototype.onYtServiceRequestSent=OY.prototype.onYtServiceRequestSent;OY.prototype.onRetrieveLocation=OY.prototype.onRetrieveLocation;_.k([_.g(_.nz),_.t("design:type",Object)],OY.prototype,"ytdGridStateAwareBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],OY.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],OY.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],OY.prototype,"data",void 0);_.k([_.X({computed:"computeDisplayedContent(data)"}),_.t("design:type",Object)],OY.prototype,"content",void 0);
_.k([_.X({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],OY.prototype,"hasSecondaryColumnData",void 0);_.k([_.X({value:function(){return window.outerHeight>1024?3:2}}),
_.t("design:type",Number)],OY.prototype,"initialCount",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],OY.prototype,"pageSubtype",void 0);_.k([_.$7("ytd-section-list-renderer"),_.t("design:type",Object)],OY.prototype,"listRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],OY.prototype,"notActive",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],OY.prototype,"isConstrainedList",void 0);
_.k([_.X(),_.t("design:type",String)],OY.prototype,"responsiveSizing",void 0);_.k([_.RN("yt-retrieve-location"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],OY.prototype,"onRetrieveLocation",null);_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],OY.prototype,"onYtServiceRequestSent",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],OY.prototype,"onYtServiceRequestCompleted",null);OY=_.k([_.b({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],OY);
_.A(OY,"ytd-two-column-browse-results-renderer",function(){if(gDL!==void 0)return gDL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return gDL=E},{mode:2});var Snd;var JE7;var nY=function(){var E=_.r.apply(this,arguments)||this;E.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"]);E.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"]);E.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return E};
_.L(nY,_.r);_.l=nY.prototype;_.l.attached=function(){this.requestElementsPerRow()};
_.l.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_]]"}}}}}};
_.l.onUpdateElementsPerRowAction=function(E){E&&this.elementsPerRow!==E&&(this.elementsPerRow=E)};
_.l.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.l.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.l.computeAlertStyle_=function(E){return E};
_.l.observerElementsPerRow=function(){this.elementsPerRow&&_.Dk(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.l.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.l.requestElementsPerRow=function(){_.$O(this.hostElement,"yt-request-elements-per-row")};
nY.prototype.onIsVisibleChanged_=nY.prototype.onIsVisibleChanged_;nY.prototype.observerElementsPerRow=nY.prototype.observerElementsPerRow;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],nY.prototype,"actionHandlerBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],nY.prototype,"data",void 0);_.k([_.X({value:6,reflectToAttribute:!0}),_.t("design:type",Number)],nY.prototype,"elementsPerRow",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],nY.prototype,"wrapButtons",void 0);_.k([_.X({value:_.HA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.t("design:type",Boolean)],nY.prototype,"isMusic",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.t("design:type",String)],nY.prototype,"alertStyle",void 0);_.k([_.X({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.t("design:type",Function)],nY.prototype,"dismissBoundButtonTap_",void 0);_.k([_.X({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.t("design:type",Function)],nY.prototype,"acceptBoundButtonTap_",void 0);_.k([_.EM("elementsPerRow"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],nY.prototype,"observerElementsPerRow",null);_.k([_.EM("data.isVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],nY.prototype,"onIsVisibleChanged_",null);nY=_.k([_.QE({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],nY);
_.A(nY,"yt-alert-with-actions-renderer",function(){if(JE7===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;Snd===void 0&&(Snd=document.createElement("template"));var T=Snd;I.call(B,T.content.cloneNode(!0),E.content.firstChild);JE7=E}E=JE7;return E},{mode:2});_.oQ(_.rp(function(E){function B(U){var q={};return _.w(_.aS,{text:U,className:_.RQ("ytPersonalGreetingViewModelHeadline",(q.ytPersonalGreetingViewModelHeadlineSmall=function(){return v()===48},q))})}
function I(U,q){return _.w("span",{el:U,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},B(q))}
var T=_.oH(),e=_.oH(),c=_.oH(),Y=function(){return E.data().canvasPromoData},v=function(){var U;
return(U=E.data().bannerHeight)!=null?U:56},y=_.p(_.lQ({content:""},void 0,"rcUSic")),Z=y.next().value,P=y.next().value,z=_.WZt(T,{throttleMs:100}),m=_.WZt(e,{throttleMs:100}),u=_.WZt(c,{throttleMs:100});
y=_.p(_.lQ(!0,void 0,"b0Yv9d"));var x=y.next().value,M=y.next().value;y=_.p(_.lQ(!0,void 0,"ByEGnd"));var N=y.next().value,W=y.next().value;_.m$(function(){W(m.width()-z.width()>1);M(u.width()+(E.data().avatar?48:0)-z.width()>1);P(x()?E.data().shorterGreeting:E.data().greeting)},"nSIsDe");
_.rT(T,function(){var U;return(U=E.data())==null?void 0:U.rendererContext},void 0,void 0,void 0,!0);
return _.w("yt-personal-greeting-view-model",{el:T,"aria-hidden":function(){return N()},
class:_.RQ(E.className,"ytPersonalGreetingViewModelHost"),style:_.c$({height:(0,_.CR)(function(){return N()?0:v()})})},_.w(_.wU,{cond:function(){return E.data().avatar&&!x()},
then:function(){return _.w(_.hM,{data:function(){return E.data().avatar}},{decoratedAvatarViewModel:function(U){return _.w(_.CG,{data:U.data,
className:_.RQ("ytPersonalGreetingViewModelAvatar")})}})}}),B(function(){var U;
return(Y==null?void 0:(U=Y())==null?void 0:U.headline)||Z()}),I(c,function(){return E.data().greeting}),I(e,function(){return E.data().shorterGreeting}))},"li"),"yt-personal-greeting-view-model",{props:{data:_.Jh,
className:_.Jh}});var M2=function(){var E=_.r.apply(this,arguments)||this;E.hidden=!1;E.isConstrainedList=!1;E.darkerDarkTheme=_.d("web_darker_dark_theme");E.responsiveSizing="COMPACT";E.attachedPlayers=_.d("kevlar_channel_trailer_multi_attach")?[]:void 0;E.player=null;E.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return E};
_.L(M2,_.r);_.l=M2.prototype;
_.l.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:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},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},hashtagHeaderRenderer:{component:"ytd-hashtag-header-renderer",properties:{active:"[[active]]",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}}}}};
_.l.created=function(){var E=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){E.disposeMastheadAd()}]};
_.l.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new wv8(this.refresh,this.contents))};
_.l.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.l.activeChanged=function(){var E=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=E)};
_.l.tabsChanged=function(){var E=this,B,I,T,e;if(this.pageSubtype==="channels"||_.d("kevlar_tab_gestures_for_tabbed_header_data")&&(((B=this.data)==null?0:(I=B.header)==null?0:I.c4TabbedHeaderRenderer)||((T=this.data)==null?0:(e=T.header)==null?0:e.carouselHeaderRenderer)))this.tabGestures=new LN(this.contents,this.contents,this.hostElement,this.header,function(y){E.ytdReduxBehavior.dispatch(y)});
var c,Y,v;B=(c=this.data)==null?void 0:(Y=c.contents)==null?void 0:(v=Y.twoColumnBrowseResultsRenderer)==null?void 0:v.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=B);this.tabGestures&&this.tabGestures.tabsChanged(B)};
_.l.channelIdChanged=function(){if(this.tabGestures){var E,B,I,T=this.tabGestures,e=(E=this.data)==null?void 0:(B=E.header)==null?void 0:(I=B.c4TabbedHeaderRenderer)==null?void 0:I.channelId;e&&e!==T.currentChannelId&&(T.scrollPositionForTabs.clear(),T.currentChannelId=e,T.lastVisitedTabScrollPosition=void 0,T.tabsStartAtInPx=0)}};
_.l.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.l.engagementPanelsChanged=function(){var E=_.Q().resolve(_.wQ);if(E){if(this.engagementPanels)for(var B=_.p(this.engagementPanels),I=B.next();!I.done;I=B.next()){var T=void 0;(I=(T=I.value.identifier)==null?void 0:T.tag)&&E.panelMap.delete(I)}this.engagementPanels=[];var e;B=_.p(((e=this.data)==null?void 0:e.panels)||[]);for(e=B.next();!e.done;e=B.next()){e=_.h(e.value,_.kos);var c=I=void 0,Y=void 0,v=void 0;if(T=((I=e)==null?void 0:I.targetId)||((c=e)==null?void 0:c.panelIdentifier)||((Y=e)==null?
void 0:(v=Y.identifier)==null?void 0:v.tag))c=I=void 0,(c=(I=E).registerPanelContent)==null||c.call(I,T,{engagementPanelSectionListRenderer:e}),this.engagementPanels.push(e)}}};
_.l.onStampFinished=function(){var E=this;_.AJ(this,function(){if(E.tabGestures){var B=E.tabGestures;if(B.scrollPositionNeedsUpdate){var I=_.Q().resolve(_.Fx(_.oS)),T;if((T=B.selectedTab)!=null&&T.title&&I&&(T=I.getCurrentPage())){if(B.scrollPositionForTabs.has(B.selectedTab.title)){var e,c;I=(c=(e=I.getCurrentPage())==null?void 0:e.clientHeight)!=null?c:0;e=B.scrollPositionForTabs.get(B.selectedTab.title);T.setScrollTop(e);I>e+100&&(B.scrollPositionNeedsUpdate=!1)}else T.setScrollTop(Math.min(B.lastVisitedTabScrollPosition!==
void 0?B.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,B.tabsStartAtInPx)),B.scrollPositionNeedsUpdate=!1;B.ytdReduxDispatch(Uj9(!1))}}}})};
_.l.loadPage_=function(E){this.initCsi();E&&(this.data=E);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.l.getTitle=function(E){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",E))return this.get("microformat.microformatDataRenderer.title",E);if(this.get("header.c4TabbedHeaderRenderer.title",E))return this.get("header.c4TabbedHeaderRenderer.title",E);if(this.get("header.feedTabbedHeaderRenderer.title",E))return _.U3(this.get("header.feedTabbedHeaderRenderer.title",E));if(this.get("header.interactiveTabbedHeaderRenderer.title",E))return this.get("header.interactiveTabbedHeaderRenderer.title",
E);if(this.get("header.hashtagHeaderRenderer.hashtag",E))return _.U3(this.get("header.hashtagHeaderRenderer.hashtag",E));if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",E))return _.U3(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
E));var B,I;return _.d("enable_page_header_page_title")&&(E==null?0:(B=E.header)==null?0:(I=B.pageHeaderRenderer)==null?0:I.pageTitle)?E.header.pageHeaderRenderer.pageTitle:""};
_.l.updateTitle=function(E){_.$O(this.hostElement,"yt-update-title",this.getTitle(E))};
_.l.initCsi=function(){_.Qg(this.pageSubtype||"browse",["ol","cpt"])};
_.l.getPlayer=function(){if(_.d("kevlar_channel_trailer_multi_attach")){for(var E=_.p(this.attachedPlayers),B=E.next();!B.done;B=E.next())if(B=B.value,B.isConnected||_.Hp(this.hostElement,B))return B;return null}return this.player};
_.l.getPlayerContainer=function(){return null};
_.l.onPlayerAttached=function(E,B){_.d("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(B):this.player=B};
_.l.onPlayerDetached=function(E,B){_.d("kevlar_channel_trailer_multi_attach")?(E=this.attachedPlayers.indexOf(B),E<0||this.attachedPlayers.splice(E,1)):this.player=null};
_.l.getServiceTrackingParams=function(){var E,B;return((E=this.data)==null?void 0:(B=E.responseContext)==null?void 0:B.serviceTrackingParams)||[]};
_.l.setMastheadAd=function(E){E&&E.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=E&&E.mastheadAd};
_.l.dataChanged=function(){var E=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.uvO();_.AJ(this,function(){_.Ta(E.hostElement,"ytd-update-grid-state-action")})};
_.l.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.l.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var E=this.data.alerts;return E&&E.find(function(B){return!!B.alertWithActionsRenderer})}};
_.l.computeGreetingData=function(){if(this.data&&this.data.alerts){var E=this.data.alerts;return E&&E.find(function(B){return!!B.personalGreetingViewModel})}};
_.l.computeHasC4TabbedHeaderRenderer=function(E){var B;return!!(E==null?0:(B=E.header)==null?0:B.c4TabbedHeaderRenderer)};
_.l.computeHasMemberHubProfileRenderer=function(E){var B;return!!(E==null?0:(B=E.header)==null?0:B.memberHubProfileRenderer)};
_.l.handleAlertCommand=function(E){this.get("alertCommand.alert.alertWithActionsRenderer",E)&&(E=_.h(E,EzH),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",E.alert))};
_.l.handleYtPlaylistDeletionRedirect=function(E){E=this.get("playlistDeletionRedirectCommand.redirectEndpoint",E);_.$O(this.hostElement,"yt-navigate",{endpoint:E})};
_.l.computeFluidWidth=function(E,B,I){if(B==="mini_app"||I)return!0;var T,e,c;E=E==null?void 0:(T=E.contents)==null?void 0:(e=T.twoColumnBrowseResultsRenderer)==null?void 0:(c=e.tabs)==null?void 0:c.find(function(y){var Z;return y==null?void 0:(Z=y.tabRenderer)==null?void 0:Z.selected});
if(!E)return!1;var Y,v;return!!((Y=E.tabRenderer)==null?0:(v=Y.content)==null?0:v.richGridRenderer)&&!["channel","channels","playables"].includes(B)};
_.l.computeHeaderFluidWidth=function(E){return E==="hashtag-landing-page"};
_.l.computeHasSidebar=function(E){var B;return!!(E.sidebar||((B=E.header)==null?0:B.playlistHeaderRenderer))};
_.l.computeHasPageHeaderSidebar=function(E){var B,I;return!!((B=E.header)==null?0:(I=B.pageHeaderRenderer)==null?0:I.enableSidebarView)};
_.l.computeUseUnifiedShowPageLayout=function(E){if(!E||this.pageSubtype!=="show"||!E.sidebar||!E.sidebar.playlistSidebarRenderer)return!1;E=E.sidebar.playlistSidebarRenderer;if(!E.items)return!1;for(var B=0;B<E.items.length;B++)if(_.h(E.items[B],st)){var I=void 0;return((I=_.h(E.items[B],st))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.l.computeIsConstrainedList=function(E){return _.d("web_enable_constrained_list_subscriptions_channels")&&E==="subscriptions-channels"};
_.l.computeResponsiveSizing=function(E){return E==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Up.Object.defineProperties(M2.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var E,B;return((E=this.data)==null?0:(B=E.header)==null?0:B.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var E,B;if(!((E=this.data)==null?0:(B=E.sidebar)==null?0:B.playlistSidebarRenderer))return!1;var I;return(I=this.data)!=null&&I.header?!1:!0}}});
_.Up.Object.defineProperties(M2,{template:{configurable:!0,enumerable:!0,get:function(){if(zwO===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);zwO=E}E=zwO;return E}}});
M2.prototype.dataChanged=M2.prototype.dataChanged;M2.prototype.onPlayerDetached=M2.prototype.onPlayerDetached;M2.prototype.onPlayerAttached=M2.prototype.onPlayerAttached;M2.prototype.onStampFinished=M2.prototype.onStampFinished;M2.prototype.engagementPanelsChanged=M2.prototype.engagementPanelsChanged;M2.prototype.scrollAtTopChanged=M2.prototype.scrollAtTopChanged;M2.prototype.channelIdChanged=M2.prototype.channelIdChanged;M2.prototype.tabsChanged=M2.prototype.tabsChanged;
M2.prototype.activeChanged=M2.prototype.activeChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],M2.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.X_),_.t("design:type",Object)],M2.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],M2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],M2.prototype,"ytdReduxBehavior",void 0);
_.k([_.g(_.dO.YtPageBehavior),_.t("design:type",Object)],M2.prototype,"ytPageBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],M2.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],M2.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],M2.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],M2.prototype,"hidden",void 0);_.k([_.X(),_.t("design:type",Object)],M2.prototype,"mastheadAdData",void 0);_.k([_.X({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.t("design:type",Object)],M2.prototype,"alertBannerData",void 0);_.k([_.X({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.t("design:type",Object)],M2.prototype,"greetingData",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],M2.prototype,"pageSubtype",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.t("design:type",Boolean)],M2.prototype,"hasC4TabbedHeaderRenderer",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.t("design:type",Boolean)],M2.prototype,"hasMemberHubProfileRenderer",void 0);
_.k([_.X({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],M2.prototype,"hasSidebar",void 0);_.k([_.X({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],M2.prototype,"hasPageHeaderSidebar",void 0);_.k([_.X({reflectToAttribute:!0,value:!0}),_.t("design:type",Boolean)],M2.prototype,"roundedContainer",void 0);
_.k([_.X({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],M2.prototype,"useUnifiedShowPageLayout",void 0);_.k([_.X({computed:"computeIsConstrainedList(pageSubtype)"}),_.t("design:type",Object)],M2.prototype,"isConstrainedList",void 0);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],M2.prototype,"usePlaylistHeaderRenderer",null);
_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],M2.prototype,"useOldPlaylistSidebarRenderer",null);_.k([_.X({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.t("design:type",Boolean)],M2.prototype,"fluidWidth",void 0);_.k([_.X({selector:function(E){return E.ui.scrollAtTop}}),
_.t("design:type",Boolean)],M2.prototype,"scrollAtTop",void 0);_.k([_.X({selector:_.Uhd}),_.t("design:type",Boolean)],M2.prototype,"tabGesturesIsActive",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],M2.prototype,"darkerDarkTheme",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.t("design:type",Boolean)],M2.prototype,"disableHeaderFluidWidth",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.t("design:type",String)],M2.prototype,"responsiveSizing",void 0);_.k([_.$7("ytd-two-column-browse-results-renderer"),_.t("design:type",HTMLElement)],M2.prototype,"contents",void 0);_.k([_.$7("#header"),_.t("design:type",HTMLElement)],M2.prototype,"header",void 0);_.k([_.$7("ytd-refresh"),_.t("design:type",Object)],M2.prototype,"refresh",void 0);
_.k([_.EM("active"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],M2.prototype,"activeChanged",null);_.k([_.EM("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],M2.prototype,"tabsChanged",null);_.k([_.EM("data.header.c4TabbedHeaderRenderer.channelId"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],M2.prototype,"channelIdChanged",null);
_.k([_.EM("scrollAtTop"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],M2.prototype,"scrollAtTopChanged",null);_.k([_.X(),_.t("design:type",Object)],M2.prototype,"engagementPanels",void 0);_.k([_.EM("data.panels"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],M2.prototype,"engagementPanelsChanged",null);
_.k([_.RN("yt-rendererstamper-finished"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],M2.prototype,"onStampFinished",null);_.k([_.RN("yt-player-attached"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Element]),_.t("design:returntype")],M2.prototype,"onPlayerAttached",null);_.k([_.RN("yt-player-detached"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Element]),_.t("design:returntype")],M2.prototype,"onPlayerDetached",null);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],M2.prototype,"dataChanged",null);M2=_.k([_.b({is:"ytd-browse"})],M2);_.QJ.registerService(_.gSc,M2);
_.s7();
}catch(e){_._DumpException(e)}
try{
_.hV("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 U_L=function(E,B){return E<B?-1:E>B?1:0},tY=function(E,B){var I=0;
E=(0,_.Ir)(String(E)).split(".");B=(0,_.Ir)(String(B)).split(".");for(var T=Math.max(E.length,B.length),e=0;I==0&&e<T;e++){var c=E[e]||"",Y=B[e]||"";do{c=/(\d*)(\D*)(.*)/.exec(c)||["","","",""];Y=/(\d*)(\D*)(.*)/.exec(Y)||["","","",""];if(c[0].length==0&&Y[0].length==0)break;I=U_L(c[1].length==0?0:parseInt(c[1],10),Y[1].length==0?0:parseInt(Y[1],10))||U_L(c[2].length==0,Y[2].length==0)||U_L(c[2],Y[2]);c=c[3];Y=Y[3]}while(I==0)}return I},fP=function(E){if(!E)return"browse";
var B=E.page,I=E.url,T,e,c,Y=(T=E.response)==null?void 0:(e=T.responseContext)==null?void 0:(c=e.webResponseContextExtensionData)==null?void 0:c.pageTheme;if(Y)B=Y.toLowerCase().replace(/_/g,"-");else if(B!=="watch"){var v,y;if((B==="browse"||B==="settings")&&((v=E.response)==null?0:(y=v.sidebar)==null?0:y.settingsSidebarRenderer))B="WEB_PAGE_TYPE_SETTINGS";else{var Z,P;B==="browse"&&((Z=E.response)==null?0:(P=Z.metadata)==null?0:P.channelMetadataRenderer)?B="channel":I&&(B=_.Y6i(I)||B)}}return B},
kR2=function(){var E=_.WA("yt.aba.att");
return E?E:_.jF.instance!==void 0?_.jF.instance.guy.bind(_.jF.instance):null},tg8=function(E,B){var I;
return _.a(function(T){return(I=kR2())?T.return(I(E,B,6E4)):T.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},fZ7=function(E,B,I,T,e){B=B===void 0?[]:B;
e=e?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:e}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.KO(E),dialogMessages:B.map(function(c){return _.KO(c)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.KO(I),serviceEndpoint:e}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.KO(T)}}}}}},VgI=function(E){var B=!!_.Wx().queueProxy;
var I,T,e;E=E==null?void 0:(I=E.response)==null?void 0:(T=I.currentVideoEndpoint)==null?void 0:(e=T.watchEndpoint)==null?void 0:e.playlistId;return!(!B&&!E)},qFI=function(E,B){var I=_.vx();
if(VgI(E))return I.playlistWatchPageActivation=!0;switch(fP(B)){case "yts-products":return I.productDetailsPageActivation=!0;case "mini_app":return I.miniAppPageActivation=!0;case "playables":return I.playablesDestPageActivation=!0;default:return!1}},Fzs=function(E,B,I){for(var T=typeof E==="string"?E.split(""):E,e=E.length-1;e>=0;--e)e in T&&B.call(I,T[e],e,E)},D_9=function(E,B){B=_.Z4c(E,B);
B>=0&&_.tD(E,B)},Kzg=function(E){return Array.prototype.concat.apply([],arguments)},R7t=function(E){var B=0;
B=B===void 0?0:B;if(!_.pT(E))throw _.a$("uint64");var I=typeof E;switch(B){case 512:switch(I){case "string":return _.YZi(E);case "bigint":return String((0,_.nT)(64,E));default:return _.iVi(E)}case 1024:switch(I){case "string":return _.aXB(E);case "bigint":return _.jN((0,_.nT)(64,E));default:return _.p6t(E)}case 0:switch(I){case "string":return _.YZi(E);case "bigint":return _.jN((0,_.nT)(64,E));default:return _.czc(E)}default:return _.E9(B,"Unknown format requested type for int64")}},Evg=function(E){E!=
null&&(E=E.JSC$6699_value_||"",E=typeof E==="string"?E:new Uint8Array(E));
return E},B77=function(E){for(var B=_.aG.apply(1,arguments),I=E[0],T=0;T<E.length-1;T++)I+=String(B[T]),I+=E[T+1];
B=document.implementation.createHTMLDocument("");T=B.createElement("style");B.head.appendChild(T);B=T.sheet;B.insertRule(I,0);if(B.cssRules.length===1&&(I=B.cssRules[0],I instanceof CSSStyleRule))return new _.gf(I.cssText.replace(/</g,"\\3C "))},$3L=function(E,B){if(/-[a-z]/.test(B))return null;
if(_.ZXu&&E.dataset){if(_.cDc()&&!(B in E.dataset))return null;E=E.dataset[B];return E===void 0?null:E}return E.getAttribute("data-"+_.vU(B))},T77=function(){var E=ID8;
_.WA("yt.ads.biscotti.getId_")||_.ka("yt.ads.biscotti.getId_",E)},e_9=function(E){_.ka("yt.ads.biscotti.lastId_",E)},cId=function(){var E={};
for(_.hg=new lDL(E.handleError===void 0?_.GF:E.handleError,E.logEvent===void 0?_.hK:E.logEvent);_.sF.length>0;)switch(E=_.sF.shift(),E.type){case "ERROR":_.hg.logError(E.payload);break;case "EVENT":_.hg.logEvent(E.eventType,E.payload)}},ilH=function(E,B,I){return _.HCi(function(T){return I?T.userIdentifier!==void 0&&!E.includes(T.userIdentifier)&&I.includes(T.publicName):T.userIdentifier!==void 0&&!E.includes(T.userIdentifier)},B)},pnL=function(E){var B,I;
return _.a(function(T){if(T.nextAddress==1)return B=_.w0("YtIdbMeta hasAnyMeta other"),_.C(T,_.HCi(function(e){return e.userIdentifier!==void 0&&e.userIdentifier!==B},E),2);
I=T.yieldResult;return T.return(I.length>0)})},aDt=function(E,B){Y4g||(Y4g=_.Ll.addLowPriorityJob(function(){var I,T,e,c,Y;
return _.a(function(v){switch(v.nextAddress){case 1:return _.C(v,_.tg(),2);case 2:I=v.yieldResult;if(!I)return v.return();T=!0;_.q7(v,3);return _.C(v,ilH(E,I,B),5);case 5:e=v.yieldResult;if(!e.length){T=!1;v.jumpTo(6);break}c=e[0];return _.C(v,_.XQ(c.actualName),7);case 7:return _.C(v,_.ok(c.actualName,I),6);case 6:_.W7(v,4);break;case 3:Y=_.RG(v),_.uK(Y),T=!1;case 4:_.Ll.cancelJob(Y4g),Y4g=0,T&&aDt(E,B),_.ER(v)}})}))},vvH=function(){var E;
return _.a(function(B){return B.nextAddress==1?_.C(B,_.tg(),2):(E=B.yieldResult)?B.return(pnL(E)):B.return(!1)})},yIs=function(E){var B=100;
B=B===void 0?500:B;var I,T,e,c,Y,v;return _.a(function(y){return y.nextAddress==1?(I=_.HA("INNERTUBE_CONTEXT_CLIENT_NAME",0),T=[I,(0,_.VZ)()-2592E6],e=[I,(0,_.VZ)()],c=IDBKeyRange.bound(T,e),_.C(y,_.TEi(E),2)):y.nextAddress!=3?(Y=y.yieldResult,v=[],_.C(y,_.bK(Y,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Z){v.length=0;return _.q_(Z.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:c,direction:"prev"},function(P){if(P.getValue()&&v.length<B)return v.push(P.getValue()),
P.delete().then(function(){return P.continue()})})}),3)):y.return(v)})},Cym=function(){var E;
return _.a(function(B){if(B.nextAddress==1)return _.C(B,_.tg(),2);E=B.yieldResult;if(!E||!_.ZZ()&&!_.d("nwl_init_require_datasync_id_killswitch")||!_.xKi())return B.jumpTo(0);_.Oqc=!0;_.Gvd.isNwlInitialized=_.Oqc;return _.C(B,_.mql().awaitInitialization(),0)})},Vz=function(E,B){_.kvt[E]=!0;
var I=_.Kl();I&&I.publish.apply(I,arguments);_.kvt[E]=!1},ZlH=function(){if(_.mgF()&&!wnI){var E=function(I){I=I.data;
if(I.op==="serializedGelBatch"){var T=_.fNi.get(I.key);T&&(_.qMt(I.serializedBatch,T.client,T.resolve,T.networklessOptions,T.isIsolated,T.useVSSEndpoint,T.dangerousLogToVisitorSession,T.requestsOutstanding),_.fNi.delete(I.key))}},B=_.zJf();
B&&(B.addEventListener("message",E),B.onerror=function(){_.fNi.clear()});
wnI=!0}},qj=function(){this.relativeTimeStart_=_.Bf()},Pyg=function(E,B){E!=null&&this.append.apply(this,arguments)},z_T=function(){return _.NU("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},m39=function(E,B,I){I=I===void 0?!1:I;
var T,e,c,Y,v;return _.a(function(y){switch(y.nextAddress){case 1:_.yZ("SOCS",E,34128E3,"youtube.com",!0);if(_.YU)return e=fetch(B,{method:"POST",mode:_.AQ(B),credentials:_.oO(B),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),c=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.AQ("/upgrade_visitor_cookie?eom=1"),credentials:_.oO("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.C(y,Promise.all([e,c]).then(function(Z){return Z[1]}),5);
fetch(B,{method:"POST",mode:_.AQ(B),credentials:_.oO(B),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.C(y,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.AQ("/upgrade_visitor_cookie?eom=1"),credentials:_.oO("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:T=y.yieldResult;y.jumpTo(3);break;case 5:T=Y=y.yieldResult;case 3:if(!T.ok)throw Error("mf");return _.C(y,T.text(),7);case 7:v=y.yieldResult,
!v.includes('"state_switch":true')&&!I||v.includes("skip_reload_for_test")||window.location.reload(),_.ER(y)}})},QxO=function(E){return _.a(function(B){return B.nextAddress==1?_.C(B,m39(E.socsCookie,E.savePreferenceUrl,!0),2):B.return()})},d3d=function(E){return _.a(function(B){return B.nextAddress==1?_.C(B,m39(E.socsCookie,E.savePreferenceUrl),2):B.return()})},sxs=function(E){E=E.xhr.responseText;
if(!_.lc(E,")]}'"))throw new Fv;E=JSON.parse(E.substr(4));if((E.type||1)>1)throw new Fv;E=E.id;e_9(E);Dz=_.op(E);h_L(18E5,2);return E},Lg9=function(E,B){B=new ugO(B);
e_9("");Dz=_.Syr(B);E>0&&h_L(12E4,E-1);throw B;},h_L=function(E,B){_.TR(function(){_.qkJ().then(sxs,function(I){return Lg9(B,I)}).thenCatch(_.ZU)},E)},ID8=function(){var E=_.eoi();
if(E!==void 0)return _.rG(E);Dz||(Dz=_.qkJ().then(sxs).thenCatch(function(B){return Lg9(2,B)}));
return Dz},x37=function(){var E=document;
return _.Sd(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(B){return"on"+B.toLowerCase()in E})},GGL=function(E){E.addEventListener("click",function(B){var I=B.target;
I&&I.getAttribute("href")&&(I=I.getAttribute("href"),_.sf(window,I,"_blank"),B.preventDefault(),B.stopImmediatePropagation())})},OlO=function(E){var B,I,T,e=(T=(I=((B=E.mainDownloadsListEntity)!=null?B:{})[_.a_6])==null?void 0:I.refresh)!=null?T:"",c;
E=(c=E.refresh)==null?void 0:c[e];e=E!=null?E:{};return(e==null?0:e.refreshTime)?Number(e==null?void 0:e.refreshTime):0},nvI=function(E,B){var I=_.dK(E);
return B.every(function(T){var e;T=T==null?void 0:(e=T.playbackDataEntity)==null?void 0:e.key;if(!T)return!1;e=_.lm(_.IY(T).entityId,"mainVideoEntity");return!!I[e]})},Mn8=function(E){E=_.zP(E.entities);
return _.VoQ(E).length},Hlg=function(E,B){if(B){var I;
E=(I=_.cP(E.entities,"downloadQualityPickerEntity",B))!=null?I:void 0}else E=void 0;return E},S4g=function(){N72||(_.A2=_.coG,N72=new gv9);
return N72},JI7=function(E){var B=document.getElementsByTagName("ytd-enforcement-message-view-model");
B.length===0||getComputedStyle(B[0]).display==="none"?E(0,"p.h_"):E(1,"p.h_")},KP=function(E){var B,I;
(E=(I=_.h(E==null?void 0:E.commandMetadata,_.D$))==null?void 0:I.url)&&(B=_.Y6i(E));return B},WgI=function(){Ro=0;
var E=[_.v8(!0)];Em&&_.Ta(Em,"yt-window-resized",E)},Xng=function(){Ro||(Ro=_.Ll.addLowPriorityJob(WgI,200))},blm=function(){Bv=0;
rI1=_.wmr(document);var E=[rI1];Em&&_.Ta(Em,"yt-window-scrolled",E)},ovT=function(){Bv||(Bv=_.Ll.addLowPriorityJob(blm,200))},jx2=function(E){E=E===void 0?null:E;
AIO.push(_.VI(window,"resize",Xng));AIO.push(_.VI(window,"scroll",ovT));E&&(Em=E)},U3T=function(E){_.a(function(B){if(B.nextAddress==1)return _.C(B,E.delete("yt-appshell-assets"),2);
_.ER(B)})},kG8=function(E){return _.r0((0,_.IPl)(),E)},fD9=function(){var E;
_.a(function(B){return B.nextAddress==1?_.C(B,$z.getInstance(),2):(E=B.yieldResult)?_.C(B,tns(E),0):B.jumpTo(0)})},q4s=function(){var E;
_.a(function(B){return B.nextAddress==1?_.C(B,IV.getInstance(),2):(E=B.yieldResult)?_.C(B,VnI(E),0):B.jumpTo(0)})},Fg7=function(E){U3T(E);
fD9();q4s()},D31=function(E){var B,I;
return _.a(function(T){if(T.nextAddress==1)return _.C(T,_.r4i(E),2);if(B=T.yieldResult){var e;a:{if(B.headers&&(e=B.headers.get("date"))&&(e=Date.parse(e),!isNaN(e))){e=Math.round((0,_.VZ)()-e);break a}e=-1}I=e;if(I>-1)return T.return(I)}return T.return(-1)})},KgL=function(){var E=_.$i.caches,B=_.gU("IS_SHELL_LOAD"),I,T;
_.a(function(e){if(e.nextAddress==1)return I=-1,B?_.C(e,D31(E),3):(T=_.Qu(),I=Math.round((0,_.VZ)()-T),e.jumpTo(2));e.nextAddress!=2&&(I=e.yieldResult);I>=0&&I<2147483648&&_.LO({appInstallDataAgeMs:I});_.ER(e)})},R_O=function(E){var B=_.Se(_.$i.location.href),I={};
"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(T){var e=B.JSC$7917_queryData_.getValues(T);if(e==null?0:e.length)I[T]=e});
return _.UR(E,new Map(Object.entries(I)))},EV7=function(E){E=E.match(/(.*)::.*::.*/);
if(E!==null)return E[1]},B97=function(E){if(_.IvF()){var B=Object.keys(window.localStorage);
B=_.p(B);for(var I=B.next();!I.done;I=B.next()){I=I.value;var T=EV7(I);T===void 0||E.includes(T)||self.localStorage.removeItem(I)}}},$W1=function(){if(!_.IvF())return!1;
var E=_.w0(),B=Object.keys(window.localStorage);B=_.p(B);for(var I=B.next();!I.done;I=B.next())if(I=EV7(I.value),I!==void 0&&I!==E)return!0;return!1},IaI=function(E){return _.W0("NotificationsDisabled",E)},T99=function(){return Notification.permission!="granted"?Promise.resolve():_.kB8().then(function(E){return E?E.pushManager.getSubscription().then(function(B){if(B)return Promise.resolve();
B={userVisibleOnly:!0,applicationServerKey:_.pV("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return E.pushManager.subscribe(B).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},eld=function(E){return _.kB8().then(function(B){if(!B||!B.active)return Promise.reject(new _.P7("serviceworker.postMessage",E,B));
try{return B.active.postMessage(E),Promise.resolve()}catch(I){return Promise.reject(I)}})},la2=function(){eld({type:"notifications_register",
data:_.HA("ID_TOKEN")})},iiL=function(){var E={isWide:_.v7.get("wide","0")==="1"},B=_.ZB();
if(B=B.getFlag(165)||B.getFlag(174))E.theme=_.Oq(!0);if(_.d94()){var I=_.Gv()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";E.systemTheme=I}!B&&_.d("parent_tools_enable_app_settings")&&_.AA(window.location.href).theme!==void 0&&(E.theme=_.Oq());if((B=T3)?!_.a_.equals(B,E):E)B={currentValue:E},cKO&&(B.timeSinceLastSnapshotSecs=Math.round(((0,_.VZ)()-cKO)/1E3)),T3&&(B.previousValue=T3),_.hK("appSettingsCaptured",B),T3=E,cKO=(0,_.VZ)()},pC7=function(){if(!_.gU("LOGGED_IN"))return Promise.resolve(!1);
var E=_.EF("service_worker_push_force_notification_prompt_tag");return E?_.bk("PromptTags").then(function(B){if(!B)return!0;var I=[];try{I=JSON.parse(B)}catch(T){return!1}return I&&I.indexOf(E)==-1}):Promise.resolve(!1)},YGI=function(){var E=_.RI("service_worker_push_prompt_delay_microseconds");
return E?_.bk("PromptTime").then(function(B){return Promise.resolve(Date.now()-E>(B||0))}):Promise.resolve(!0)},aaL=function(){var E=_.RI("service_worker_push_logged_out_prompt_watches");
return E==-1?Promise.resolve(!1):_.bk("WatchCount").then(function(B){return B>=E})},vVI=function(){var E=_.tk(document,"yt-push-prompt-modal-bg");
E&&_.ii(E)},yKg=function(){return _.RI("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.bk("PromptCount").then(function(E){E||(E=0);
return Promise.resolve(E<_.RI("service_worker_push_prompt_cap"))})},CEO=function(E){return _.gU("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.gU("LOGGED_IN")&&(E===void 0?0:E)?pC7().then(function(B){if(B)return!0;
B=[yKg(),YGI()];_.gU("LOGGED_IN")||B.push(aaL());return Promise.all(B).then(function(I){return I.every(function(T){return T})})}):Promise.resolve(!1)},wCH=function(){_.bk("PromptCount").then(function(E){return _.W0("PromptCount",E+1)}).then(function(){return _.W0("PromptTime",Date.now())}).then(function(){var E=_.EF("service_worker_push_force_notification_prompt_tag");
if(E)return _.bk("PromptTags").then(function(B){var I=[];if(B)try{I=JSON.parse(B)}catch(T){return!1}I||(I=[]);I.push(E);return _.W0("PromptTags",JSON.stringify(I))})})},PET=function(){ZiL||vVI()},zls=function(E){E.style.zIndex=2147483648;
E.style.pointerEvents="auto";E.style.backgroundColor="rgba(0, 0, 0, 0.6)";E.style.width="100%";E.style.height="100vh";E.style.position="absolute";E.style.top="0";E.style.left="0";E.style.border="none"},mWd=function(){var E=_.tk(document,"yt-push-prompt-modal-bg");
ZiL=_.d("service_worker_push_prompt_modal_ignore_click");E?zls(E):(E=_.ut("div",{id:"yt-push-prompt-modal-bg"}),zls(E),document.body.appendChild(E),_.oGc(document,"click",PET))},QH8=function(){var E=arguments;
_.d("service_worker_push_prompt_modal_enable")&&mWd();return Notification.requestPermission().then(function(B){vVI();var I=document.getElementById("ticker");I&&(I.className=I.classList.remove("show"));if(B=="granted")return T99().then(function(){IaI(!1);la2();return Promise.resolve(!0)});
B=="denied"&&la2();return Promise.resolve(!1)}).catch(function(){vVI();
return Promise.reject.apply(Promise,_.ad(E))})},dWO=function(E){E=E===void 0?!1:E;
var B=_.x96().client;if(B&&B.browserVersion){var I=B.browserVersion,T=B.browserName=="CHROME"&&tY(I,"50.0.0")<0;B=B.browserName=="OPERA"&&tY(I,"42.0.0")<0;if(T||B)return Promise.resolve()}return _.VRd().then(function(e){if(!e)return Promise.resolve();e=T99().then(function(){return eld({type:"notifications_check_registration",data:_.HA("ID_TOKEN")})});
return Notification.permission!="default"?e.catch(function(){}):e.then(function(){return CEO(E)}).then(function(c){if(c)return wCH(),QH8().then(function(){})}).catch(function(){})})},hlH=function(E){return _.tR7(E)?dWO():Promise.resolve()},sH8=function(E){var B=E.installing||E.waiting;
return E.active||!B?Promise.resolve(E):new Promise(function(I){var T=function(e){e=e.target;if(e.state==="activated"||e.state==="redundant")B.removeEventListener("statechange",T),I(E)};
B.addEventListener("statechange",T)})},u47=function(){var E=new _.MlF("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.v3(E,{mainAppWeb:_.NK()});var B=_.sFZ;_.d("service_worker_forward_exp_params")&&(B=R_O(B));try{var I=_.n2c(B).catch(function(){_.yr(E,"FAILURE");return new Promise(function(){})});
_.d("service_worker_push_enabled")&&I.then(function(T){_.yr(E,"SUCCESS");return T}).then(sH8).then(hlH)}catch(T){if(_.yr(E,"FAILURE"),T.name!=="SecurityError")throw T;
}},LFI=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&u47()},xWI=function(E,B){var I={};
B&&(I.serializedYpcFamilyCreateLoggingParams=B);_.hK(E,I);_.Li()},GFg=function(E,B){var I={};
I.serializedYpcRefundFlowLoggingParams=B;E&&(I.eventType=E);_.hK("ypcRefundFlowEvent",I);_.Li()},OiL=function(E){E&&_.HzD("transactionFlowSucceeded",E)},nVs=function(E){E&&_.Qb("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",E,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},Msg=function(E){var B,I,T,e,c,Y,v;
_.a(function(y){if(y.nextAddress==1)return _.C(y,_.Qu6(),2);if(y.nextAddress!=3){if(!y.yieldResult)return y.return(!1);B=[];return _.C(y,_.f8.keys(),3)}I=y.yieldResult;T=_.p(I);for(e=T.next();!e.done;e=T.next())c=e.value,Y=_.zPd(c),v=Y.datasyncId,!v||E.includes(v)||B.push(_.f8.delete(c));return y.return(Promise.all(B).then(function(Z){return Z.some(function(P){return P})}))})},Hi9=function(){var E,B,I,T,e,c,Y;
return _.a(function(v){if(v.nextAddress==1)return _.C(v,_.Qu6(),2);if(v.nextAddress!=3){if(!v.yieldResult)return v.return(!1);E=_.w0("cache contains other");return _.C(v,_.f8.keys(),3)}B=v.yieldResult;I=_.p(B);for(T=I.next();!T.done;T=I.next())if(e=T.value,c=_.zPd(e),(Y=c.datasyncId)&&Y!==E)return v.return(!0);return v.return(!1)})},N9g=function(){var E=_.Q().resolve(_.Fx(_.cZR));
return E?E.getCurrentTime():0},gV8=function(){var E,B,I,T,e,c,Y,v,y,Z,P,z,m,u;
return _.a(function(x){switch(x.nextAddress){case 1:E={},B=_.C7t(),I=_.p(Object.entries(B)),T=I.next();case 4:if(T.done){x.jumpTo(3);break}e=T.value;c=_.p(e);Y=c.next().value;v=c.next().value;y=Y;Z=v;if(!Z){x.jumpTo(5);break}return _.C(x,Z(),8);case 8:E[y]=x.yieldResult;case 5:T=I.next();x.jumpTo(4);break;case 2:P=_.p(void 0),z=P.next();case 9:if(z.done){x.jumpTo(3);break}m=z.value;u=B[m];if(!u){x.jumpTo(10);break}return _.C(x,u(),13);case 13:E[m]=x.yieldResult;case 10:z=P.next();x.jumpTo(9);break;
case 3:return x.return(E)}})},SG1=function(){var E;
_.a(function(B){if(B.nextAddress==1)return _.C(B,gV8(),2);E=B.yieldResult;return _.C(B,navigator.clipboard.writeText(JSON.stringify(E,null,2)),0)})},JKd=function(E,B){return _.cP(E.entities,"superThanksSelectedTierEntity",B)},WF2=function(E){var B;
return(B=E.sharedUi)==null?void 0:B.currentPageType},XC2=function(E,B){return{popup:{searchSuggestionReportDialog:{searchQuery:E,
title:_.yu("SBOX_INAPPROPRIATE_TITLE"),suggestions:B,categoryLabel:_.yu("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.yu("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.yu("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.yu("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.yu("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.yu("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.yu("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.yu("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.yu("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.yu("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},rKs=function(E){var B,I,T,e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q;
return _.a(function(f){switch(f.nextAddress){case 1:return _.C(f,_.YN(),2);case 2:return(B=f.yieldResult)?_.C(f,_.C3J(B),3):f.return();case 3:I=f.yieldResult;if(!I)return f.return();e=((T=I.offlineVideos)==null?void 0:T.length)||0;Y=((c=I.offlinePlaylists)==null?void 0:c.length)||0;if(e===0&&Y===0)return f.return();v=0;if(I.offlineVideos)for(y=_.p(I.offlineVideos),Z=y.next();!Z.done;Z=y.next())P=Z.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===P.videoState&&(v+=1);E.offline_videos_count=e.toString();_.d("kevlar_log_offline_current_network_type_ks")||
(E.offline_current_network_type=(z=_.eS6())!=null?z:"CONN_INVALID");_.d("kevlar_log_updated_time_for_smart_downloads")&&(m=_.t2().getState().entities,u=_.L9(m),x=OlO(m),E.offline_smart_downloads_last_sync_time_ms=u.toString(),E.offline_smart_downloads_next_sync_time_ms=x.toString());E.offline_videos_playable=v.toString();E.offline_playlists_count=Y.toString();if(!_.d("woffle_used_state_report")){f.jumpTo(4);break}I.offlineVideos&&(M=I.offlineVideos.reduce(function(ed,K){K.downloadedBytes&&(ed+=Number(K.downloadedBytes));
return ed},0).toString())&&(E.offline_used_disk_space_bytes=M);
if(!((N=navigator)==null?0:(W=N.storage)==null?0:W.estimate)){f.jumpTo(4);break}return _.C(f,navigator.storage.estimate(),6);case 6:U=f.yieldResult,E.offline_free_disk_space_bytes=(((q=U)==null?void 0:q.quota)||0).toString();case 4:E.offline_client_state=JSON.stringify(I),_.ER(f)}})},bit=function(E){E=E.match(/(.*)::.*::.*/);
if(E!==null)return E[1]},oVI=function(E){if(_.CnG()){var B=Object.keys(window.sessionStorage);
B=_.p(B);for(var I=B.next();!I.done;I=B.next()){I=I.value;var T=bit(I);T===void 0||E.includes(T)||self.sessionStorage.removeItem(I)}}},AKs=function(){if(!_.CnG())return!1;
var E=_.w0(),B=Object.keys(window.sessionStorage);B=_.p(B);for(var I=B.next();!I.done;I=B.next())if(I=bit(I.value),I!==void 0&&I!==E)return!0;return!1},e0=function(E,B,I){(_.d("desktop_keyboard_shortcut_usage_log")||I&&_.d("web_shorts_keyboard_shortcut_usage_log"))&&(B?_.jQ.get(E):_.AY.get(E))&&(E=B?_.kt.get(E):_.Uw.get(E))&&_.Al(_.nC(),E)},jHH=function(E,B){B.stack&&(E.stack+="\n"+B.stack);
return E},tsO=function(E){var B=ld(E,"Content-Type");
if(!B)return null;B=B.toLowerCase();if(B.startsWith("application/json"))return B.startsWith("application/json+protobuf")?new UW8:new _.IA;if(B.startsWith("application/x-protobuf")){E=ld(E,"Content-Transfer-Encoding");if(!E)return new cv;if(E.toLowerCase()=="base64")return new kF9}return null},Bl1=function(E,B,I,T){var e=new faH(function(v,y){return Vsg.has(y)?v.sentinel==="gal"&&v.event!==void 0:!1},function(v){v.event?(v=qGt(v.event),v=!v||FFI(T,v)?!0:_.Pf(E.lastEvent,id,2,ph)?!_.Pf(v,Yz,1,ph)&&
!_.Pf(v,id,2,ph):!_.Pf(v,Yz,1,ph)&&!_.Pf(v,id,3,ph)):v=!0;
return v});
I=_.UR(E.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",DW7(I)]]));if(E.nestedOrigins!==void 0)for(var c=_.p(E.nestedOrigins),Y=c.next();!Y.done;Y=c.next())I=_.UR(I,new Map([["origin",Y.value]]));return KFs(e,I,B).then(function(v){v=RlH(v.event);if(_.Pf(v,Yz,1,ph)){var y,Z=(y=_.Nd(v,Yz,1,ph))==null?void 0:_.na(y,2);Z&&T.JSC$16988_logErrorEvent(Eq8(Z));y=_.Nd(v,Yz,1,ph);_.na(y,2)===4?(v=_.Nd(v,Yz,1,ph),v={statusCode:11,statusMessage:_.O8(v,
3)}):(v=_.Nd(v,Yz,1,ph),v={statusCode:12,statusMessage:_.O8(v,3)});return v}_.Pf(v,id,3,ph)?(v=_.Nd(v,id,3,ph),v={statusCode:1,consentLanguageKeys:_.O8(v,2)}):v={statusCode:1};return v}).catch(function(v){return v.errorCode!==void 0?{statusCode:v.errorCode,
statusMessage:v.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},e0g=function(E){var B={};
if(E===void 0||E===null)return B;E.getToken()!==void 0&&$qt(E.getToken())&&$qt(E.getToken()).length>0&&(B.scopes=new Set($qt(E.getToken())));E.getToken()!==void 0&&IA8(E.getToken())&&IA8(E.getToken()).length>0&&(B.capabilities=new Set(IA8(E.getToken())));_.O8(E,3)!==void 0&&(B.consistencyKey=_.O8(E,3));E.getName()!==void 0&&E.getName()!==""&&(B.linkName=E.getName());_.Zc(E,TlH,4)&&(E=_.DZ(E,TlH,4),E=Object.assign({},_.O8(E,1)&&{userId:_.O8(E,1)},_.O8(E,2)&&{displayName:_.O8(E,2)},_.O8(E,3)&&{email:_.O8(E,
3)},_.O8(E,5)&&{username:_.O8(E,5)},_.O8(E,4)&&{profilePicture:_.O8(E,4)}),B.profile=E);return B},lAT=function(E,B){var I=E.flowParams;
return{serviceId:I.serviceId,sessionId:I.sessionId,currentFlow:E.currentFlow,googleScopesString:B,linkingSessionSerialized:E.session.serialize(),consentLanguageKeys:I.consentLanguageKeys,callerState:E.callerState,dynamicUrlParameters:I.dynamicUrlParameters,partnerConfigMinReadTimestamp:I.partnerConfigMinReadTimestamp}},aA9=function(E){var B=E.googleScopes!==void 0?Array.from(E.googleScopes).join(","):"";
cJm(lAT(E,B));B=igT(E);return B===null?Promise.resolve(pud):B.start().then(function(I){var T,e=(T=I.link)==null?void 0:T.consistencyKey;return I.statusCode===1&&E.googleScopes!==void 0&&E.googleScopes.size>0&&e!==void 0?(T=E.flowParams,Yp9(T.serviceId,T.sessionId,E.googleScopes,e,T.galService,E.config,I)):I})},vqT=function(E){var B=igT(E);
return B===null?Promise.resolve(aV({statusCode:7,statusMessage:"Failed to create flow object"},E.callerState)):B.complete().then(function(I){var T,e=(T=I.link)==null?void 0:T.consistencyKey;return I.statusCode===1&&E.googleScopes!==void 0&&E.googleScopes.size>0&&e!==void 0?(T=E.flowParams,Yp9(T.serviceId,T.sessionId,E.googleScopes,e,T.galService,E.config,I)):aV(I,E.callerState)},function(I){return aV({statusCode:12,
statusMessage:"Failed to complete the flow: "+I.message},E.callerState)})},Yp9=function(E,B,I,T,e,c,Y){return yJ2(e,{serviceId:E,
sessionId:B,googleScopes:I,consistencyKey:T}).then(function(){return Y},function(v){return e.deleteLink({serviceId:E,
sessionId:B,accountLinkingEntryPoint:c.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+v.message}},function(y){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+y.message}})})},igT=function(E){switch(E.currentFlow){case 1:var B=E.flowParams;
E=_.DZ(E.session,CZ8,1);return vv.createOAuthFlow(B,E);case 2:case 3:return B=E.flowParams,E=_.DZ(E.session,wuL,6),yx.createStreamlinedFlow(B,E);default:return null}},ZgO=function(E,B){E===2&&(E=3);
var I=0;Ch.indexOf(E)!==-1&&(I=Ch.indexOf(E)+1);for(E=I;E<Ch.length;E++)if(B.has(Ch[E]))return Ch[E]},mqI=function(E){var B=E.serviceId;
var I=E.sessionId;var T=E.config;var e=E.galService;var c=E.capabilities;var Y=E.scopes;var v=E.loginHint;var y=E.callerState;var Z=E.consentLanguageKeys;var P=E.linkName;var z=E.dynamicUrlParameters;var m=E.partnerConfigMinReadTimestamp;E=T.dataUsageNoticeConfig?T.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return e.startLinkingSession({serviceId:B,sessionId:I,capabilities:c,scopes:Y,loginHint:v,callerState:y,supportedFlows:PZ8(T.supportedFlows),completionUrl:T.completionUrl,accountLinkingEntryPoint:T.accountLinkingEntryPoint,
consentLanguageKeys:Z,dataUsageNoticeConfig:E,linkName:P,dynamicUrlParameters:z,partnerConfigMinReadTimestamp:m}).then(function(u){return new z0I(B,I,T,e,u,void 0,y,Z,z,m)})},u7T=function(E,B,I){a:{var T=new Qjm;
if(T.storage!==null)try{var e=T.storage.get("SAVED_SESSION");if(e===void 0){var c=null;break a}if(e.serviceId===E){c=e;break a}}catch(Y){}c=null}if(c===null)return Promise.resolve({statusCode:2});dqT(E);T=h0m(c.linkingSessionSerialized);return sj2(new z0I(E,c.sessionId,B,I,T,c.googleScopesString!==""&&c.googleScopesString!==void 0?new Set(c.googleScopesString.split(",")):void 0,c.callerState,c.consentLanguageKeys,c.dynamicUrlParameters,c.partnerConfigMinReadTimestamp),c.currentFlow,c.consentLanguageKeys)},
cJm=function(E){var B=new Qjm;
B.storage!==null&&B.storage.set("SAVED_SESSION",E)},dqT=function(E){var B=new Qjm;
if(B.storage!==null){var I=B.storage.get("SAVED_SESSION");I!==void 0&&I.serviceId===E&&B.storage.remove("SAVED_SESSION")}},PZ8=function(E){var B=new Set;
E=_.p(E);for(var I=E.next();!I.done;I=E.next())I=I.value,I!==1&&LS1.has(I)&&B.add(LS1.get(I));return B},aV=function(E,B){B!==void 0&&(E.callerState=B);
return E},xqH=function(E){switch(E){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},nqO=function(){var E={timeout:5E3};
E=E===void 0?{}:E;return GkI!=null?GkI:GkI=OgI(E)},M$m=function(){return new Promise(function(E,B){window.gapi.load("client",{callback:E,
onerror:B})})},OgI=function(E){E=E===void 0?{}:E;
var B;return _.a(function(I){if(I.nextAddress==1){if((B=window.gapi)&&B.client&&B.client.load)I=I.return(B);else{var T=_.KX("https://apis.google.com/js/api.js");I=_.C(I,_.n0(T,E),2)}return I}if(I.nextAddress!=3){B=window.gapi;if(!B)throw Error("Yj");return B.client&&B.client.load?I.jumpTo(3):_.C(I,M$m(),3)}return I.return(B)})},Nl8=function(E,B){B=B===void 0?0:B;
var I=E.auth2.getAuthInstance().currentUser.get(),T=I.getAuthResponse(!0);if(T&&T.expires_at-Date.now()<B){if(Hgm.has(E))return Hgm.get(E);B=Promise.resolve(I.reloadAuthResponse()).finally(function(){Hgm.delete(E)});
Hgm.set(E,B);return B}return Promise.resolve()},gqm=function(E,B){var I;
return E.client.init({apiKey:B.apiKey,clientId:B.clientId,scope:B.scope,discoveryDocs:B.discoveryDocs,hostedDomain:B.hostedDomain,fetchBasicProfile:(I=B.fetchBasicProfile)!=null?I:!0})},Spd=function(E){if(E.queryParams!=null){var B={},I;
for(I in E.queryParams)E.queryParams[I]!==void 0&&(B[I]=E.queryParams[I]);E.queryParams=B}},Xud=function(E){return new JJ1(E,new WSg(E))},oq1=function(E,B){B=B===void 0?!1:B;
var I=document.createElement("div");E&&(I.style.transform="scaleX(-1)");I.style.backgroundColor=B?"rgba(138,180,248,.24)":"#e8f0fe";I.style.height="4px";I.style.overflow="hidden";I.style.position="absolute";I.style.top="0";I.style.width="100%";I.style.zIndex="1500";I.setAttribute("aria-label","Loading");I.setAttribute("aria-live","polite");E=document.createElement("style");E.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  }";
I.appendChild(E);E=rJ7();E.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";E.style.left="-145.166611%";var T=bgI(B);T.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";E.appendChild(T);I.appendChild(E);E=rJ7();E.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";E.style.left="-54.888891%";B=bgI(B);B.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
E.appendChild(B);I.appendChild(E);return I},rJ7=function(){var E=document.createElement("div");
E.style.height="100%";E.style.position="absolute";E.style.transformOrigin="top left";E.style.width="100%";return E},bgI=function(E){var B=document.createElement("span");
B.style.borderTop=E?"4px solid #669df6":"4px solid #4285f4";B.style.display="inline-block";B.style.position="absolute";B.style.width="100%";return B},AJH=function(E){return E==null?void 0:_.u5V(E).valueOf()},t$7=function(E){var B=document.body,I=!1,T=function(){I||(I=!0,jjL(e,c),setTimeout(function(){B.removeChild(c);
B.removeChild(e)},150))},e=UqH(E,getComputedStyle(B).direction==="rtl",T),c=kk9(T);
jjL(e,c);B.appendChild(c);B.appendChild(e);window.requestAnimationFrame(function(){c.style.opacity="1";e.style.opacity="1";e.style.transform="translate(-50%, -50%) scale(1)";e.children[0].focus()})},UqH=function(E,B,I){var T=document.createElement("div");
T.style.position="fixed";T.style.alignItems="center";T.style.backgroundColor=E?"rgb(32, 33, 36)":"white";T.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";T.style.display="flex";T.style.flexDirection="column";T.style.justifyContent="center";T.style.left="50%";T.style.top="50%";T.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";T.style.zIndex="2002";document.body.clientWidth>=660?(T.style.borderRadius="8px",T.style.minHeight="220px",
T.style.maxHeight="90%",T.style.maxWidth="90%",T.style.minWidth="540px"):(T.style.height="100%",T.style.width="100%");T.setAttribute("aria-label","Error");T.setAttribute("aria-modal","true");T.setAttribute("role","alertdialog");T.addEventListener("keydown",function(c){c.key==="Escape"&&I()});
B=fAT(E,B,I);T.appendChild(V$d(B));T.appendChild(B);var e=document.createElement("img");e.src=E?"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";e.style.height="72px";e.style.width="72px";e.style.color="#9aa0a6";e.setAttribute("alt","");T.appendChild(e);e=document.createElement("h1");e.textContent="Something went wrong.  Try again.";
e.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";e.style.lineHeight="24px";e.style.fontSize="16px";e.style.textAlign="center";e.style.letterSpacing="0.1px";e.style.color=E?"rgb(232,234,237)":"#3c4043";T.appendChild(e);T.appendChild(V$d(B));return T},fAT=function(E,B,I){var T=document.createElement("button");
T.style.backgroundColor="transparent";T.style.border="none";T.style.borderRadius="50%";T.style.cursor="pointer";T.style.outline="none";T.style.padding="12px";T.setAttribute("aria-label","Close dialog");T.style.position="absolute";T.style.top="0";B?T.style.right="0":T.style.left="0";T.addEventListener("focus",function(){T.style.backgroundColor=E?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
T.addEventListener("blur",function(){T.style.backgroundColor="transparent"});
T.addEventListener("mouseenter",function(){T.style.backgroundColor=E?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
T.addEventListener("mouseleave",function(){T.style.backgroundColor="transparent"});
T.addEventListener("click",I);T.addEventListener("keydown",function(e){e.key!=="Enter"&&e.key!=="Space"||I()});
B=document.createElement("img");B.src=E?"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";B.style.display="block";B.style.height="24px";B.style.width="24px";B.setAttribute("alt","");T.appendChild(B);return T},V$d=function(E){var B=document.createElement("div");
B.setAttribute("tabindex","0");B.setAttribute("aria-hidden","true");B.addEventListener("focus",function(){return void E.focus()});
return B},kk9=function(E){var B=document.createElement("div");
B.style.backgroundColor="rgba(32,33,36,0.6)";B.style.bottom="0";B.style.left="0";B.style.position="fixed";B.style.right="0";B.style.top="0";B.style.transition=" opacity 150 ms linear";B.style.zIndex="2001";B.addEventListener("click",E);return B},jjL=function(E,B){B.style.opacity="0";
E.style.opacity="0";E.style.transform="translate(-50%, -50%) scale(0.8)"},qpg=function(E,B){E.sandbox&&E.sandbox.add&&(E.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),E.sandbox.add("allow-downloads"));
E.src=B},w2=function(E){FSI.call(this,E)},Zy=function(E,B){B=B===void 0?!1:B;
this.parsedImageUrl_=null;E instanceof Dqg||(KS1==void 0&&(KS1=new R0I),E=KS1.parse(E.toString(),B));E=this.parsedImageUrl_=E;E.JSC$17219_parsedOptions_==void 0&&((B=E.getOptions())||(B=""),E.JSC$17219_parsedOptions_=(new EhO).parse(B));FSI.call(this,E.JSC$17219_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;E=this.parsedImageUrl_;B=E.uri_.JSC$7917_port_;this.JSC$17221_domain_=E.uri_.JSC$7917_domain_+(B?":"+B:"");this.JSC$17221_query_=this.parsedImageUrl_.uri_.JSC$7917_queryData_.toString()},
BGO=function(E){this.mode=4;
this.data=E;this.parsedData=[];E=0;for(var B=this.data.length;E<B;E++){var I=[],T=this.data.charCodeAt(E);T>65536?(I[0]=240|(T&1835008)>>>18,I[1]=128|(T&258048)>>>12,I[2]=128|(T&4032)>>>6,I[3]=128|T&63):T>2048?(I[0]=224|(T&61440)>>>12,I[1]=128|(T&4032)>>>6,I[2]=128|T&63):T>128?(I[0]=192|(T&1984)>>>6,I[1]=128|T&63):I[0]=T;this.parsedData.push(I)}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))},$UO=function(E){this.typeNumber=0;
this.errorCorrectLevel=E===void 0?2:E;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},Pv=function(E,B){if(E.length==void 0)throw Error("sk`"+E.length+"`"+B);
for(var I=0;I<E.length&&E[I]==0;)I++;this.num=Array(E.length-I+B);for(B=0;B<E.length-I;B++)this.num[B]=E[B+I]},I$9=function(E,B){this.totalCount=E;
this.dataCount=B},TG8=function(){this.buffer=[];
this.length=0},eSd=function(){var E=!1;
if(_.ait()){E=_.C4();var B="";_.CcF()?(B=/Windows (?:NT|Phone) ([0-9.]+)/,B=(E=B.exec(E))?E[1]:"0.0"):_.HG()?(B=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,B=(E=B.exec(E))&&E[1].replace(/_/g,".")):_.yD4()?(B=/Mac OS X ([0-9_.]+)/,B=(E=B.exec(E))?E[1].replace(/_/g,"."):"10"):_.y6(_.C4(),"KaiOS")?(B=/(?:KaiOS)\/(\S+)/i,B=(E=B.exec(E))&&E[1]):_.ait()?(B=/Android\s+([^\);]+)(\)|;)/,B=(E=B.exec(E))&&E[1]):_.wGi()&&(B=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,B=(E=B.exec(E))&&E[1]);E=B||""}return E},a$I=function(E,
B){this.JSC$17244__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(B)for(var I in B)this.JSC$17244__htOption[I]=B[I];this.JSC$17244__htOption.useSVG&&(l$t=cQ8);this.JSC$17244__android=eSd();this.JSC$17244__el=E;this._oQRCode=null;this._oDrawing=new l$t(this.JSC$17244__el,this.JSC$17244__htOption);this.JSC$17244__htOption.text&&(E=this.JSC$17244__htOption.text,this._oQRCode=new $UO(this.JSC$17244__htOption.correctLevel),iCs(this._oQRCode,E),B=this._oQRCode,pUd(B,!1,Yid(B)),this.JSC$17244__el.title=
E,this._oDrawing.draw(this._oQRCode),this.makeImage())},vh7=function(E,B,I,T,e){E.save();
var c=new Path2D;c.roundRect(B,I,T*7,T*7,T*2);c.roundRect(B+T,I+T,T*5,T*5,T*1.3);c.roundRect(B+2*T,I+2*T,T*3,T*3,T);E.clip(c,"evenodd");E.fillStyle=e;E.fillRect(0,0,E.canvas.width,E.canvas.height);E.restore()},z3=function(E,B){if(typeof E!=="function")throw Error("vk");
return _.$i.setTimeout(function(){E()},B)},mo=function(){},CT9=function(E,B,I,T,e){(new mo).debug("TestLoadImageWithRetries: "+e);
if(T==0)I(!1);else{var c=e||0;T--;yQ1(E,B,function(Y){Y?I(!0):_.$i.setTimeout(function(){CT9(E,B,I,T,c)},c)})}},yQ1=function(E,B,I){var T=new mo;
T.debug("TestLoadImage: loading "+E);var e=new Image;e.onload=function(){try{T.debug("TestLoadImage: loaded"),wUO(e),I(!0)}catch(c){}};
e.onerror=function(){try{T.debug("TestLoadImage: error"),wUO(e),I(!1)}catch(c){}};
e.onabort=function(){try{T.debug("TestLoadImage: abort"),wUO(e),I(!1)}catch(c){}};
e.ontimeout=function(){try{T.debug("TestLoadImage: timeout"),wUO(e),I(!1)}catch(c){}};
_.$i.setTimeout(function(){if(e.ontimeout)e.ontimeout()},B);
e.src=E},wUO=function(E){E.onload=null;
E.onerror=null;E.onabort=null;E.ontimeout=null},ZC9=function(){this.front_=[];
this.back_=[]},PTL=function(E,B){_.Cx.call(this);
this.delay_=new _.ZV(this.JSC$17370_onTick_,0,this);_.Bp(this,this.delay_);this.JSC$17368_interval_=5E3;this.nextTickTime_=0;if(typeof E==="function")B&&(E=(0,_.w1)(E,B));else if(E&&typeof E.handleEvent==="function")E=(0,_.w1)(E.handleEvent,E);else throw Error("Ca");this.JSC$17370_listener_=E},Qx=function(E,B,I,T,e,c,Y,v,y,Z,P,z,m,u){I=I===void 0?!1:I;
T=T===void 0?function(){return""}:T;
e=e===void 0?!1:e;c=c===void 0?!1:c;Y=Y===void 0?!1:Y;v=v===void 0?function(){return _.i1({})}:v;
y=y===void 0?!1:y;P=P===void 0?!1:P;z=z===void 0?!1:z;m=m===void 0?!1:m;u=u===void 0?!1:u;this.JSC$17371_pathPrefix_=E;this.defaultQueryParams_=B;this.pubsub_=new _.Ya;this.reconnectTimer_=new PTL(this.safeReconnect_,this);this.JSC$17371_channel_=null;this.JSC$17371_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17371_pendingMessages_=[];this.enableAsyncTest_=I;this.JSC$17371_getXsrfToken_=T;this.useAsyncBrowserChannelHandler_=c;this.getAuthorizationHeader_=
v;this.getAuthorizationHeaderSync_=Z;this.enableCachedUpdateAuthorizationHeader_=Y;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.i1();this.enableLoungeTokenRefresh_=e;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=y;this.disableMdxAuthForNonPlaybackMessages_=P;this.disableMdxAuthForAdMessages_=z;this.enableMdxAuthForConnectionOnly_=m;this.disableMdxAuthForShortsMessages_=u;this.JSC$17371_channelOpenedCounter=new zSI;this.JSC$17371_channelClosedCounter=new mU9;this.channelMessageSentCounter=
new QOL;this.JSC$17371_channelMessageReceivedCounter=new dUs;this.JSC$17371_channelErrorCounter=new hS1;this.pendingMapsOnClosedCounter=new sOO;this.undeliveredMapsOnClosedCounter=new u$s},d2=function(E){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;E=E||document.location.href;var B=Number(_.kP(E)[4]||null)||"";B&&(this.port=":"+B);this.domain=_.tA(E)||"";E=_.C4();E.search("MSIE")>=0&&tY(E.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},h9=function(E){E=E||{};
this.name=E.name||"";this.id=E.id||E.screenId||"";this.token=E.token||E.loungeToken||"";this.uuid=E.uuid||E.dialId||"";this.idType=E.screenIdType||"normal"},LM9=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(E){var B=Math.random()*16|0;
return(E=="x"?B:B&3|8).toString(16)})},xUd=function(E){return _.yl(E,function(B){return{key:B.id,
name:B.name}})},GxT=function(E,B){return _.Sd(E,function(I){return I||B?!I!=!B?!1:I.id==B.id:!0})},ud=function(E,B){return _.Sd(E,function(I){return sm(I,B)})},NG9=function(){var E=OCO(),B=nht();
if(Mcg()){var I=E,T=_.dG4(I,B);T<0&&_.QBJ(I,-(T+1),0,B)}E=HCI(E);if(E.length==0)try{_.BGt("remote_sid")}catch(e){}else try{_.yZ("remote_sid",E.join(","),-1)}catch(e){}},OCO=function(){var E=_.cc("yt-remote-connected-devices")||[];
E.sort(_.lD);return E},HCI=function(E){if(E.length==0)return[];
var B=E[0].indexOf("#"),I=B==-1?E[0]:E[0].substring(0,B);return _.yl(E,function(T,e){return e==0?T:T.substring(I.length)})},ghm=function(E){_.l9("yt-remote-connected-devices",E,86400)},nht=function(){if(Si8)return Si8;
var E=_.cc("yt-remote-device-id");E||(E=LM9(),_.l9("yt-remote-device-id",E,31536E3));for(var B=OCO(),I=1,T=E;_.AD(B,T);)I++,T=E+"#"+I;return Si8=T},JQ1=function(){return _.cc("yt-remote-session-browser-channel")},Mcg=function(){return _.cc("yt-remote-session-screen-id")},rQt=function(E){E.length>5&&(E=E.slice(E.length-5));
var B=_.yl(WMm(),function(T){return T.loungeToken}),I=_.yl(E,function(T){return T.loungeToken});
_.E2d(I,function(T){return!_.AD(B,T)})&&XU2();
_.l9("yt-remote-local-screens",E,31536E3)},WMm=function(){return _.cc("yt-remote-local-screens")||[]},XU2=function(){_.l9("yt-remote-lounge-token-expiration",!0,86400)},Lh=function(E){E||(_.i9("yt-remote-session-screen-id"),_.i9("yt-remote-session-video-id"));
NG9();E=OCO();_.f4(E,nht());ghm(E)},oh7=function(){bCI();
return xz?!!xz.get("yt-remote-use-staging-server"):!1},bCI=function(){if(!xz){var E=_.Yi6();
E&&(xz=new _.zR(E))}},kx8=function(E,B,I,T,e){I=I===void 0?function(){return""}:I;
var c=function(){return new Qx(G3(E,"/bc"),B,!1,I,T)};
return _.d("enable_mdx_web_channel_desktop")?new AQH(function(){return new jOH(G3(E,"/wc"),B,I)}):new UU7(c,e)},qiL=function(){var E=tcH;
f$s();Om.push(E);Vc1()},nh=function(E,B){f$s();
var I=FM9(E,String(B));Om.length==0?DUH(I):(Vc1(),_.bW(Om,function(T){T(I)}))},MY=function(E){nh("CP",E)},f$s=function(){Om||(Om=_.WA("yt.mdx.remote.debug.handlers_")||[],_.ka("yt.mdx.remote.debug.handlers_",Om))},DUH=function(E){var B=(Hv+1)%50;
Hv=B;KM9[B]=E;RSg||(RSg=B==49)},Vc1=function(){var E=Om;
if(KM9[0]){var B=RSg?Hv:-1,I={};do I={record$jscomp$13:void 0},B=(B+1)%50,I.record$jscomp$13=KM9[B],_.bW(E,function(T){return function(e){e(T.record$jscomp$13)}}(I));
while(B!=Hv);KM9=Array(50);Hv=-1;RSg=!1}},FM9=function(E,B){var I=(Date.now()-EO8)/1E3;
I.toFixed&&(I=I.toFixed(3));var T=[];T.push("[",I+"s","] ");T.push("[","yt.mdx.remote","] ");T.push(E+": "+B,"\n");return T.join("")},NY=function(E){_.oo.call(this);
this.JSC$17395_logName_=E;this.screens=[]},S0=function(E){NY.call(this,"LocalScreenService");
this.JSC$17402_http_=E;this.loungeTokenRefreshTimer_=NaN;g2(this);this.info("Initializing with "+BYI(this.screens))},J9=function(E,B){B=B===void 0?!1:B;
NY.call(this,"ScreenService");this.JSC$17408_http_=E;this.disableAutomaticScreenCache_=B;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};$fH(this)},Wv=function(E,B,I){_.oo.call(this);
this.JSC$17412_logName_=I;this.JSC$17412_screenService_=E;this.receiver_=B;this.screen_=null},P1L=function(E,B,I){I.disableCastApi?Xw("Cannot initialize because disabled by Mdx config."):IBI()?TYH(E,I)&&(eD7(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?lBs(B):(window.__onGCastApiAvailable=function(T,e){T?lBs(B):(r2("Failed to load cast API: "+e),cld(!1),eD7(!1),_.i9("yt-remote-cast-available"),_.i9("yt-remote-cast-receiver"),iO1(),B(!1))},I.loadCastApiSetupScript?_.Sc("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?pNT()>=60&&YKd():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?aB2():pNT()>=89?vOI():(ylH(),C1m(wNI.map(ZO1))))):Xw("Cannot initialize because not running Chrome")},iO1=function(){Xw("dispose");
var E=bd();E&&E.dispose();_.ka("yt.mdx.remote.cloudview.instance_",null);zDm(!1);_.tPd(mf2);mf2.length=0},Q2H=function(){return!!_.cc("yt-remote-cast-installed")},dfI=function(){var E=_.cc("yt-remote-cast-receiver");
return E?E.friendlyName:null},hD1=function(){Xw("clearCurrentReceiver");
_.i9("yt-remote-cast-receiver")},s29=function(){return Q2H()?bd()?bd().getCastSession():(r2("getCastSelector: Cast is not initialized."),null):(r2("getCastSelector: Cast API is not installed!"),null)},Lr1=function(E,B){uDL()?bd().setConnectedScreenStatus(E,B):r2("setConnectedScreenStatus called before ready.")},IBI=function(){var E=_.C4().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.ar||E},TYH=function(E,B){var I=!1;
bd()||(E=new oV(E,B),E.subscribe("yt-remote-cast2-availability-change",function(T){_.l9("yt-remote-cast-available",T);Vz("yt-remote-cast2-availability-change",T)}),E.subscribe("yt-remote-cast2-receiver-selected",function(T){Xw("onReceiverSelected: "+T.friendlyName);
_.l9("yt-remote-cast-receiver",T);Vz("yt-remote-cast2-receiver-selected",T)}),E.subscribe("yt-remote-cast2-receiver-resumed",function(T){Xw("onReceiverResumed: "+T.friendlyName);
_.l9("yt-remote-cast-receiver",T);Vz("yt-remote-cast2-receiver-resumed",T)}),E.subscribe("yt-remote-cast2-session-change",function(T){Xw("onSessionChange: "+xf2(T));
T||_.i9("yt-remote-cast-receiver");Vz("yt-remote-cast2-session-change",T)}),_.ka("yt.mdx.remote.cloudview.instance_",E),I=!0);
Xw("cloudview.createSingleton_: "+I);return I},bd=function(){return _.WA("yt.mdx.remote.cloudview.instance_")},lBs=function(E){cld(!0);
eD7(!1);bd().init(!1,function(B){B?(zDm(!0),_.fkc("yt-remote-cast2-api-ready")):(r2("Failed to initialize cast API."),cld(!1),_.i9("yt-remote-cast-available"),_.i9("yt-remote-cast-receiver"),iO1());E(B)})},Xw=function(E){nh("cloudview",E)},r2=function(E){nh("cloudview",E)},cld=function(E){Xw("setCastInstalled_ "+E);
_.l9("yt-remote-cast-installed",E)},uDL=function(){return!!_.WA("yt.mdx.remote.cloudview.apiReady_")},zDm=function(E){Xw("setApiReady_ "+E);
_.ka("yt.mdx.remote.cloudview.apiReady_",E)},eD7=function(E){_.ka("yt.mdx.remote.cloudview.initializing_",E)},A9=function(E){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(E)},Gat=function(){var E,B;
return _.a(function(I){if(I.nextAddress==1)return(_.nGQ()||_.d("use_new_nwl"))&&_.Lh4().isNetworkAvailable()?_.C(I,_.tg(),2):I.return();if(I.nextAddress!=3)return(E=I.yieldResult)?_.C(I,yIs(E),3):I.return();B=I.yieldResult;if(!B.length)return I.return();B.forEach(function(T){var e={timestamp:T.timestamp};T=T.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:T.appShellAssetLoadReport,options:e}:T.clientError?{payloadName:"clientError",payload:T.clientError,options:e}:void 0;T&&
_.hK(T.payloadName,T.payload,T.options)});
B.length===100&&_.Ll.addLowPriorityJob(Gat);_.ER(I)})},OOT=function(E){if(E.playerResponse){if(E=E.playerResponse,E.messages&&E.messages.length>0&&(E=E.messages.find(function(B){return!(!B||!B.mealbarPromoRenderer)}))&&E.mealbarPromoRenderer)return E.mealbarPromoRenderer}else if(E.response&&(E=E.response)&&E.overlay&&E.overlay.mealbarPromoRenderer)return E.overlay.mealbarPromoRenderer},nOO=function(E){if(E.response){var B=E.response;
if(B&&B.overlay&&B.overlay.tooltipRenderer)return B.overlay.tooltipRenderer}if(E.playerResponse&&(E=E.playerResponse,E.messages&&E.messages.length>0&&(E=E.messages.find(function(I){return!(!I||!I.tooltipRenderer)}))&&E.tooltipRenderer))return E.tooltipRenderer},HOs=function(E){if(!MYO&&(E=E||_.HA("ZWIEBACK_PING_URLS"))&&E.length){MYO=!0;
for(var B=0;B<E.length;B++)_.JI(E[B])}},gOg=function(E){if(_.a_.get(_.HA("PLAYER_VARS",{}),"privembed",!1)!="1"){E&&T77();
try{NYI().then(function(){},function(){}),_.TR(gOg,18E5)}catch(B){_.SI(B)}}},SKg=function(){var E=_.ZB(),B=E.getFlag(119),I=window.devicePixelRatio>1;
document.body&&_.bG(document.body,"exp-invert-logo")&&(I&&!_.bG(document.body,"inverted-hdpi")?_.WV(document.body,"inverted-hdpi"):!I&&_.bG(document.body,"inverted-hdpi")&&_.SO(document.body,"inverted-hdpi"));B!=I&&(_.PN(0,119,I),E.save())},Jlg=function(E){return E.filter(function(B){return"ypcGetCartEndpoint"in B||"ypcFixInstrumentEndpoint"in B})},Wr8=function(E){return E.filter(function(B){return!_.h(B,_.z8l)})},rlI=function(E){E=_.p(E);
for(var B=E.next(),I={};!B.done;I={setter$jscomp$6:void 0},B=E.next()){var T=B.value;B=T.params;T=T.service;B&&T&&(I.setter$jscomp$6=XNH[T],I.setter$jscomp$6&&B.forEach(function(e){return function(c){var Y=c.key;c=c.value;Y&&c&&(0,e.setter$jscomp$6)(Y,c)}}(I)))}},oOL=function(E,B){var I,T,e,c,Y,v,y;
_.a(function(Z){switch(Z.nextAddress){case 1:I=_.H8.getInstance();T=_.BV.instance;e=_.MN.instance;if(!e)return bOg(E,T,B),Z.return();_.q7(Z,2);E.onLoadingCommand&&T.resolveCommand(E.onLoadingCommand);return _.C(Z,I.getCurrentPositionFromGeolocation(),4);case 4:c=Z.yieldResult;if(!E.resolveLocationCommand){Z.jumpTo(5);break}Y=I.createLocationInfo(c);return _.C(Z,_.NN(e,E.resolveLocationCommand,{locationInfo:Y}),6);case 6:v=Z.yieldResult;if(!v||"error"in v&&v.error||v.errorMetadata)return bOg(E,T,B),
Z.return();var P;if(v==null?0:(P=v.onResponseReceivedActions)==null?0:P.length){P=_.p(v.onResponseReceivedActions);for(var z=P.next();!z.done;z=P.next())T.resolveCommand(z.value)}(_.h(E.onSuccessCommand,_.kh)||_.h(E.onSuccessCommand,_.pq))&&_.$O(B.hostElement,"yt-navigate",{endpoint:E.onSuccessCommand,reload:!0});case 5:_.W7(Z,0);break;case 2:y=_.RG(Z);if(y instanceof GeolocationPositionError&&y.code===GeolocationPositionError.PERMISSION_DENIED)return E.onDeniedCommand&&T.resolveCommand(E.onDeniedCommand),
Z.return();bOg(E,T,B);_.ER(Z)}})},bOg=function(E,B,I){E.onFailureCommand&&(B.resolveCommand(E.onFailureCommand),_.I2(I.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},j2m=function(E,B){var I=_.h(E,_.UyU);
if(I&&B){E=I.videoIds||[I.videoId];var T;B=(T=_.$O(B,"yt-lockup-requested",{videoIds:E}).detail)==null?void 0:T.returnValue;var e;I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?e=B?B:E.map(function(c){return{videoId:c,navigationEndpoint:I.videoCommand}}):B&&(e=B);
e&&(T=e.map(function(c){var Y=Object,v=Y.assign;var y=c.navigationEndpoint;if(!_.h(y,_.yQ)){var Z=_.h(y,_.kh);if(Z){if(delete Z.index,delete Z.playlistId,Z=_.h(y==null?void 0:y.commandMetadata,_.D$),Z==null?0:Z.url){var P=Z.url;P=_.F$(P,"list");P=_.F$(P,"index");Z.url=P}}else y=void 0}return v.call(Y,{},c,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:y})}),Alm(T,I))}},Ufm=function(E){var B=_.Wx();
if(E=_.h(E,_.kVu))E.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&B.clearQueue(),E.closeMiniplayer&&_.Q().resolve(_.W3).close(!0)},tYH=function(E){kaH(_.Wx(),E)},fBt=function(E){var B;
(E=(B=_.h(E,_.AwN))==null?void 0:B.setVideoIds)&&E.forEach(function(I){_.nkr(_.Wx(),I)})},qK9=function(E){VYL(_.Wx(),E)},FrO=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(E){return!1}},Df2=function(E,B,I){return{horizontalAlignment:E.x+I.width/2<B.width/2?"west":"east",
verticalAlignment:E.y+I.height/2<B.height/2?"north":"south"}},ENL=function(E,B,I,T,e){e=e===void 0?new _.Cb(0,0):e;
return Kr7(RDd(E,B,I,T),e)},RDd=function(E,B,I,T){return new _.Cb(E==="west"?16:I.width-T.width-16,B==="north"?16:I.height-T.height-16)},BKg=function(E,B){var I=0;
E&&(I+=76);B&&(I+=285);return I},$gg=function(E){var B=["h",
"m","s"],I=_.V6(B);I.reverse();var T={};E=(E.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(Y){var v=(Y.match(/[hms]/)||[""])[0];return v?(T[v]=parseInt(Y.match(/\d+/)[0],10),!1):!0});
for(E.reverse();E.length&&I.length;){var e=I.shift();e in T||(T[e]=parseInt(E.shift(),10))}if(E.length||T.s>59||T.m>59||T.h>9)return null;var c="";B.forEach(function(Y){T[Y]&&(c+=""+T[Y]+Y)});
return c||null},ImI=function(E){E=E.data;
return _.w("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.w("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.w(_.Ja,{data:{thumbnails:[{url:E.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.w("div",{class:"profile-badge-view-model-wiz__content"},_.w("div",{class:"profile-badge-view-model-wiz__badge-description"},E.badgeDesc),E.badgeSubtitle?_.w("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},E.badgeSubtitle):null))},TK9=function(E){E=
E.data;
var B=_.oH();_.X3(B,E.rendererContext);return _.w("yt-comment-interaction-view-model",{el:B,class:"yt-comment-interaction-view-model-wiz"},_.w("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":E.onTapA11yLabel,"on:keydown":_.gT(),tabindex:0},_.w("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.w("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},E.headerPrefix,' "',E.videoTitle),_.w("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.w("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.w("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},E.commentContent),_.w("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.w(_.Ja,{data:{thumbnails:[{url:E.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},lmt=function(E){E=E.data;
return _.w("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},eJ8(E.avatar),_.w("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},E.channelName))},i9L=function(E){E=E.data;
var B;return _.w("div",{class:"yt-profile-info-view-model-wiz__activity"},_.w("div",{class:"yt-profile-info-view-model-wiz__header"},_.w("div",{class:"yt-profile-info-view-model-wiz__section-title"},E.commentsInteractionTitle)),(B=E.comments)==null?void 0:B.map(function(I){return _.w("div",{class:"yt-profile-info-view-model-wiz__activity"},c2t(I))}))},pPd=function(E){E=E.data;
var B=_.uu({elementsCommand:E.subscriptionsAccessButtonCommand}),I=_.oH();_.hwc(I,_.ha(E.subscriptionsAccessButtonCommand));var T=_.TI(function(c){if(B==null?0:B.onclick)B.onclick(c);return!1}),e;
return _.w("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.w("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.w("a",{el:I,"on:click":T,class:"yt-profile-info-view-model-wiz__another-header"},_.w("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},E.sharedSubscriptionsTitle),_.w("div",null,c2t(E.subscriptionsAccessButton)))),_.w("div",{class:"yt-profile-info-view-model-wiz__subs"},(e=E.sharedSubscriptions)==null?void 0:e.slice(0,5).map(function(c){return _.w("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",c2t(c))})))},Y3g=function(E){E=E.data;
var B;return _.w("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.w("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.w("h2",{class:"yt-profile-info-view-model-wiz__section-title"},E.sharedSubscriptionsTitle)),_.w("div",{class:"yt-profile-info-view-model-wiz__subs"},(B=E.sharedSubscriptions)==null?void 0:B.slice(0,5).map(function(I){return _.w("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",c2t(I))})))},ams=function(E){E=E.data;
return _.w("div",{class:"yt-profile-info-view-model-wiz__activity"},[E.profileBadgeInfoYtWide,E.profileBadgeInfoChannelWide].map(function(B){var I,T,e,c,Y;return B?_.w(_.VS,null,_.w("div",{class:"yt-profile-info-view-model-wiz__header"},_.w("div",{class:"yt-profile-info-view-model-wiz__section-title"},B==null?void 0:B.profileSectionTitle),_.w("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.w("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},B==null?void 0:(I=B.commentBadge)==
null?void 0:I.commentDesc),(B==null?0:(T=B.commentBadge)==null?0:T.blackHeartDesc)?_.w("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.w("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.w(_.Ja,{data:{thumbnails:[{url:B==null?void 0:(e=B.commentBadge)==null?void 0:e.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.w("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},B==null?void 0:(c=
B.commentBadge)==null?void 0:c.blackHeartDesc))),_.w("div",{class:"yt-profile-info-view-model-wiz__badge"},B==null?void 0:(Y=B.badges)==null?void 0:Y.map(function(v){return _.w(ImI,{data:v})}))):null}))},vNT=function(E){E=E.data;
return _.w("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.w(ams,{data:E}),E.comments?_.w(i9L,{data:E}):null,E.sharedSubscriptionsTitle?E.subscriptionsAccessButtonCommand?_.w(pPd,{data:E}):_.w(Y3g,{data:E}):null)},CmI=function(E){var B=E.data;
E=B?y27(B.profileIdentityInfo):void 0;B=B?y27(B.profileInfo):void 0;return _.w("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},E,B)},wP1=function(E,B){var I=_.srl(B,{},E,!0);
return new Promise(function(T,e){I.listenOnce("n",function(){e(Error("fl`"+I.JSC$25670_getErrorDescription()))});
I.listenOnce("l",function(){var c=I.getResponseCode();if(c!==200)e(Error("gl`"+B+"`"+E.type+"`"+E.size+"`"+c));else try{T(JSON.parse(I.getResponseText()).encryptedBlobId)}catch(Y){e(Y)}});
I.run()})},Z92=function(E){return E.substring(E.indexOf(":")+1,E.indexOf(";"))},Pmt=function(E){return new Promise(function(B,I){var T=new FileReader;
T.onloadend=function(){try{var e=new Uint8Array(T.result);e.length<8&&I(void 0);var c=e.subarray(0,8);e="";for(var Y=0;Y<c.length;Y++)e+=("0"+c[Y].toString(16)).substr(-2);e.startsWith("ffd8ff")?B("image/jpeg"):e.startsWith("47494638")?B("image/gif"):e.startsWith("89504e470d0a1a0a")?B("image/png"):e.startsWith("424d")?B("image/bmp"):B(void 0)}catch(v){I(v)}};
T.onerror=I;T.readAsArrayBuffer(E)})},zJ7=function(E){return new Promise(function(B,I){var T=new Image;
T.crossOrigin="anonymous";T.onload=function(){var e=document.createElement("canvas");e.width=T.naturalWidth;e.height=T.naturalHeight;var c=e.getContext("2d");if(!c)throw Error("hl");c.drawImage(T,0,0);c=Z92(E);e.toBlob(function(Y){Y?B(Y):I()},c)};
T.src=E})},QYO=function(E,B){var I;
if(((I=_.h(E,_.yQ))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var T;_.$O((T=B.hostElement)!=null?T:B,"yt-shorts-reset");_.L6Z(_.Q().resolve(_.R5),E).then(function(c){mg8(c,B,E)})}else{var e;
_.l1((e=B.hostElement)!=null?e:B,[E]).then(function(c){c&&mg8(c.data,B,E)})}},mg8=function(E,B,I){if(E){var T=_.h(E.replacementEndpoint,_.yQ);
if(T){E.sequenceContinuation&&(T.sequenceParams=E.sequenceContinuation);var e;_.$O((e=B.hostElement)!=null?e:B,"yt-navigate",{endpoint:E.replacementEndpoint})}else if((E==null?void 0:E.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(E==null?0:E.watchStatus)&&_.h(E.watchStatus,_.x6Z)){var c;_.$O((c=B.hostElement)!=null?c:B,"yt-navigate",{endpoint:I})}}},dg9=function(){var E=_.Q().resolve(_.sy),B=WF2(E.getState())||"";
E=_.nzf(E.getState())||"";return{disableCache:B==="ytd-browse"&&E==="home"}},hJT=function(E){if(!E)return!1;
try{if(E.host&&E.host.tagName==="YT-FORMATTED-STRING"&&E.host.id==="contenteditable-textarea"||E.nodeType===Node.ELEMENT_NODE&&E.tagName==="YTD-COMMENT-INPUT")return!0}catch(B){return!1}return hJT(E.parentNode)},j0=function(E){return E?E.tagName==="A"&&E.href&&E.classList.contains("yt-simple-endpoint"):!1},sYt=function(E){return E?E.tagName==="IMG"&&E.classList.contains("emoji"):!1},uOI=function(E,B,I){if(!E)return null;
var T=j0(E);if(T&&I)return B=E.pathname.substring(E.pathname.indexOf("/channel/")+9),document.createTextNode("@"+B);if(T&&!I)return document.createTextNode("");if(sYt(E))return I=E.alt,E=E.dataset.emojiId,!E&&B&&(B=_.yL(B,I))&&B.isCustomEmoji&&(E=B.emojiId),E?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+E+">"):document.createTextNode(I);T=E.cloneNode(!1);for(var e=0;e<E.childNodes.length;++e){var c=uOI(E.childNodes[e],B,I);c&&T.appendChild(c)}return T},Um=function(E){return E?j0(E)?E:Um(E.lastChild):
null},L_I=function(E){return E?j0(E)?E:L_I(E.firstChild):null},xgm=function(E){if(!E)return null;
for(var B=E.previousSibling;B;)if(B.nodeType===Node.ELEMENT_NODE&&B.nodeName==="BR")B=B.previousSibling;else if(B.nodeType===Node.TEXT_NODE&&/\s+/.test(B.textContent))B=B.previousSibling;else break;(B=Um(B))?E=B:E=(E=E.parentNode)?Um(E.previousElementSibling):null;return E},GPO=function(E){if(!E)return null;
for(var B=E.nextSibling;B;)if(B.nodeType===Node.ELEMENT_NODE&&B.nodeName==="BR")B=B.nextSibling;else if(B.nodeType===Node.TEXT_NODE&&/\s+/.test(B.textContent))B=B.nextSibling;else break;return(B=L_I(B))?B:GPO(E.parentNode)},O9d=function(E){var B=_.wZ(),I=B.JSC$9140_getStartNode();
if(!hJT(I.parentNode))return null;B=B.JSC$9140_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var T=_.Ql(I,j0);if(T){if(E&&B===0||!E&&B===I.length)return T}else{if(E&&B===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.Zu(I.nextElementSibling,"display")==="block"?null:L_I(I.nextElementSibling);if(!E&&B===0)return I?Um(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(E){if(0<=B&&B<I.childNodes.length)return L_I(I.childNodes[B])}else if(0<B&&B<=I.childNodes.length)return Um(I.childNodes[B-
1]);return null},nNI=function(E,B,I){if(!E)return null;
if(E.nodeType===Node.TEXT_NODE)if(I){var T=xgm(E);if(T&&!/^\s+\S/.test(E.wholeText.substr(0,B)))return T}else if((T=GPO(E))&&!/\S\s+/.test(E.wholeText.substr(B,E.wholeText.length)))return T;return E.nodeType===Node.ELEMENT_NODE?I?xgm(E.childNodes[B]):GPO(E.childNodes[B]):nNI(E.parentNode,B,I)},Mjm=function(E){if(E.hasChildNodes())switch(E.tagName){case "DIV":case "A":case "SPAN":var B="";
for(E=E.firstChild;E;E=E.nextSibling)B+=Mjm(E);return B;default:return""}else switch(E.nodeType){case 3:return E.textContent;default:return""}},H9g=function(E){E=E.data;
return _.w("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.w("div",null,_.w(_.aS,{text:E.title})),E.subtitle?_.w("div",{class:"ytd-menu-title-renderer__subtitle"},_.w(_.aS,{text:E.subtitle})):null)},NKL=function(E){switch(E){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"}},gNs=function(E){return E.map(function(B){return{settingsRadioOptionRenderer:{title:_.E3(B.name),
asideText:_.E3(B.approximateSize),id:NKL(B.format)}}})},J29=function(E){if(E&&E.length!==0)return E.filter(S31()).map(function(B){return{settingsRadioOptionRenderer:{title:B.name,
asideText:B.approximateSize,id:NKL(B.formatType)}}})},kz=function(E){if(E)return E.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},W_g=function(E){E=new Set(E!=null?E:[]);
if(E.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(E.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(E.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(E.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(E.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM"},XPH=function(E){var B=E.indexOf("(");
return B!==-1?E.substring(B+1,E.length-1):E},r2L=function(E){switch(E){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},oNI=function(E,B,I,T,e,c){var Y=_.a_.clone(b9I);
Y.locale=_.HA("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;Y.report={description:e||"<empty>"};e=_.HA("SBOX_SETTINGS",{});B=B.join(",");var v=Date.now();E={choice_cc:T,choice_id_cc:I,choices_sc:B,gl:e.REQUEST_DOMAIN,hl:e.REQUEST_LANGUAGE,query:E,time:v};c&&(E.choice_additional_comment_cc=c);_.nUZ(Y,E)},A2s=function(E){var B=new Map;
B.set("authuser",_.HA("SESSION_INDEX","0"));return _.UR(E,B)},UgI=function(E){var B;
return _.a(function(I){switch(I.nextAddress){case 1:if(!E||!jY1(E))return I.return(null);B=null;switch(_.HA("INNERTUBE_CLIENT_NAME")){case "WEB":return I.jumpTo(2);case "WEB_REMIX":B=E.getPlayer()}I.jumpTo(3);break;case 2:return _.C(I,E.getPlayerPromise(),4);case 4:B=I.yieldResult;I.jumpTo(3);break;case 3:return I.return(B)}})},jY1=function(E){return["ytd-player",
"ytmusic-player"].includes(String(E.tagName||"").toLowerCase())},kPs=function(E){E=Math.round(E);
return E%2?E-1:E},tjt=function(E){E=Math.round(E);
return E%2===0?E-1:E},fmL=function(E){var B,I,T;
if(E=(B=E.createPlaylistDialogFormSchema)==null?void 0:(I=B.fieldSchemas)==null?void 0:(T=I.title)==null?void 0:T.validationSchema)for(B=[E.syncStep,E.asyncStep].filter(function(e){return e!==void 0}),B=_.p(B),I=B.next();!I.done;I=B.next()){I=I.value.rules;
if(!I)break;I=_.p(I);for(I=I.next();!I.done;I=I.next())return _.h(I.value,_.yVT)}},q3m=function(E){var B,I,T;
if(E=(B=E.createPlaylistDialogFormSchema)==null?void 0:(I=B.fieldSchemas)==null?void 0:(T=I.visibility)==null?void 0:T.validationSchema)for(B=[E.syncStep,E.asyncStep].filter(function(e){return e!==void 0}),B=_.p(B),I=B.next();!I.done;I=B.next()){I=I.value.rules;
if(!I)break;I=_.p(I);for(T=I.next();!T.done;T=I.next())if(T=_.h(T.value,VjT))return B=void 0,(B=T.translations)==null?void 0:B.visibilityNotValidErrorMessage}},F_t=function(){var E,B;
return(B=(E=_.Q().resolve(_.Fx(_.ME)))==null?void 0:E())!=null?B:!1},Dgg=function(E,B){a:switch(B){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":B="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:B="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:E,style:B,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},K_I=function(E){_.I2(E,"yt-refit-popups-action")},EGg=function(E){var B=E.data;
var I=E.disablePadding;var T=E.className;var e=_.oH(),c=Dgg(B.banner,B.assetContainerPaddingStyle),Y=Dgg(B.imageBanner,B.assetContainerPaddingStyle),v=B.assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET",y=B.assetContainerMaxHeight;_.uW(function(){var Z;(Z=e.value)==null||Z.addEventListener("image-loaded",function(){K_I(e.value)})});
_.dt(function(){var Z;(Z=e.value)==null||Z.removeEventListener("image-loaded",function(){K_I(e.value)})});
E={};return _.w("yt-dialog-header-view-model",{el:e,class:_.B$(T,(E.ytDialogHeaderViewModelHost=!0,E.ytDialogHeaderViewModelHostDisablePadding=!!I,E))},_.AV(B.banner,function(){var Z={};return _.w("div",{class:_.B$(T,(Z.ytDialogHeaderViewModelBanner=!0,Z.ytDialogHeaderViewModelBannerFullBleed=!!v,Z)),style:"max-height: "+(y?y+"px":"")},_.w(_.AF,{data:c,className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.AV(B.imageBanner,function(){var Z={};
return _.w("div",{class:_.B$(T,(Z.ytDialogHeaderViewModelBanner=!0,Z.ytDialogHeaderViewModelBannerFullBleed=!!v,Z)),style:_.c$({"max-height":function(){return y!==void 0?y+"px":void 0}})},_.w(_.AF,{data:Y,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.AV(B.customAssetContainer,function(){return _.w("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},RJg(B.customAssetContainer))}),_.AV(B.customBanner,function(){return _.w("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},RJg(B.customBanner))}),_.AV(B.headline,function(){return _.w("h2",null,_.w(_.aS,{text:B.headline,
className:"ytDialogHeaderViewModelText"}))}))},BE7=function(E){var B=21;
if(!E)return B;B+=E.headerTitle?27:0;B+=E.headerTitle&&E.hasHeaderActionHeader?4:0;return B+=E.headerTitle&&E.headerSubtitle?16:0},$KI=function(E){var B=0;
if(!E)return B;B+=E.hasFooterPrimaryButton||E.hasFooterSecondaryButton?48:0;B+=E.footerTrailingLabel||E.footerLeadingLabel?30:0;return B+=E.hasFooterPrimaryButton||E.hasFooterSecondaryButton||!E.footerTrailingLabel&&!E.footerLeadingLabel?0:12},IkI=function(E){var B=new _.Ya,I=E;
return{subscribe:function(T){B.subscribe("changed",T)},
dispatch:function(T,e){var c=I;T==="Touch Start"?I=Object.assign({},c,{isAnimating:!1,initialY:e.event.touches[0].clientY}):T==="Touch Move"?(T=Math.min(e.fullContentWrapperHeight,e.contentHeightMap[e.contentWrapperId]+BE7(e.header)-$KI(e.footer)),I=Object.assign({},c,{currentY:Math.max(e.contentScrollable?-1*(c.initialY-24):0,e.event.touches[0].clientY-c.initialY),maxHeightForContentWrapper:Math.min(T,Math.max(0,(c.isFullScreen?T:e.contentWrapperHeight)-c.currentY))})):I=T==="Snap To Full Screen"?
Object.assign({},c,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:e.maxHeight}):T==="Snap To Neutral Position"?Object.assign({},c,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:e.maxHeight}):T==="Close Sheet"?Object.assign({},c,{isAnimating:!0,currentY:e.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:e.maxHeight}):c;B.publish("changed",I)}}},TEI=function(E){return _.TI(function(B){E(B);
return!1})},euI=function(){_.Q().resolve(_.ZT).closeSheet()},lkI=function(E){var B,I,T,e,c,Y,v,y,Z,P,z;
return{headerTitle:(B=E.headerTitle)==null?void 0:B.call(E),headerSubtitle:(I=E.headerSubtitle)==null?void 0:I.call(E),headerActionHeader:E.headerActionHeader,footerPrimaryButton:E.footerPrimaryButton,footerSecondaryButton:E.footerSecondaryButton,footerButtonType:(T=E.footerButtonType)==null?void 0:T.call(E),footerLeadingLabel:(e=E.footerLeadingLabel)==null?void 0:e.call(E),footerTrailingLabel:(c=E.footerTrailingLabel)==null?void 0:c.call(E),shouldShowIcons:(Y=E.shouldShowIcons)==null?void 0:Y.call(E),
skipContentClick:(v=E.skipContentClick)==null?void 0:v.call(E),additionalClassName:(y=E.additionalClassName)==null?void 0:y.call(E),onClosedCallback:E.onClosedCallback,focusOnClose:(Z=E.focusOnClose)==null?void 0:Z.call(E),isDisabled:(P=E.isDisabled)==null?void 0:P.call(E),disabledCommand:(z=E.disabledCommand)==null?void 0:z.call(E),headerFn:E.headerFn,contentFn:E.contentFn,footerFn:E.footerFn,hasHeaderFn:E.hasHeaderFn(),hasContentFn:E.hasContentFn(),hasFooterFn:E.hasFooterFn(),hasFooterPrimaryButton:E.hasFooterPrimaryButton(),
hasFooterSecondaryButton:E.hasFooterSecondaryButton(),hasHeaderActionHeader:E.hasHeaderActionHeader()}},cR7=function(E){switch(E){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""}},iqT=function(E){switch(E){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""}},p89=function(E){switch(E){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""}},Yqd=function(E,B,I){B.forEach(function(T){_.cx(_.Q().resolve(_.pj),T)});
_.I2(E,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",I])},CjI=function(E,B,I,T){var e=_.h(I,_.WW).commandLifeCycleConfig;
e&&e.onStartCommand&&_.cN(E,[e.onStartCommand],B);_.j9(B);var c=_.MN.instance;c&&_.H$(c,I)?_.NN(c,I,T).then(function(Y){if(!Y||(Y==null?0:Y.error))return Y=_.h(I,_.WW).serializedTransactionFlowLoggingParams,_.Uj(B),_.rG(new t9("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Y));_.Uj(B);return{data:Y}}).then(function(Y){_.Uj(B);
aks(Y.data);var v=Y.data.command;v&&_.cN(E,[v],B);v=vGt(I,Y.data);if(!v){var y=Y.data;Y=!1;if(y&&y.command&&_.h(y.command,_.pO)){var Z;y=((Z=_.h(y.command,_.pO))==null?void 0:Z.commands)||[];for(Z=0;Z<y.length;Z++)if(_.h(y[Z],_.B5R)){Y=!0;break}}Y||_.CM('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!v&&e&&e.onSuccessCommand?_.cN(E,[e.onSuccessCommand],B):v&&e&&e.onFailureCommand&&_.cN(E,[e.onFailureCommand],B)},function(){_.Uj(B);
e&&e.onFailureCommand&&_.cN(E,[e.onFailureCommand],B);yR1(I)}):_.xV(Error("yl"),"ERROR")},w8g=function(E,B,I){var T=[B];
I&&T.push(I);return _.l1(E,T).then(function(e){var c=_.h(B,_.WW).serializedTransactionFlowLoggingParams,Y=e.data,v=vGt(B,Y);v?e=_.rG(new t9(v,c)):aks(Y);return e},function(){var e=_.h(B,_.WW).serializedTransactionFlowLoggingParams;
yR1(B);return _.rG(new t9("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",e))})},vGt=function(E,B){E=_.h(E,_.WW).serializedTransactionFlowLoggingParams;
var I=null;switch(B.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":I="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":I="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":I="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}I?_.SP(I,E):OiL(E);return I},yR1=function(E){_.SP("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.h(E,_.WW).serializedTransactionFlowLoggingParams)},
aks=function(E){if(E.trackingParams){var B=_.nC(),I=_.Oi();
B&&I&&_.XD(B,I,_.Yg(E.trackingParams))}},Zq2=function(E,B,I){var T=_.MN.instance,e=_.o$d(_.HA("YPC_MB_URL")),c=(new _.r0i).init(),Y=_.b54(),v=_.h(I,_.DeU).languageCode;
v===void 0?_.xV(Error("Di"),"ERROR"):_.hP([c,e]).then(function(){var y={ctk:payments.business.integration.ClientTokenFactory.createClientToken(v,Y)};T&&_.H$(T,I)?_.NN(T,I,y).then(function(Z){return{data:Z}}).then(function(Z){_.$O(B,"yt-service-request-completed",Z);
Z.code!=="ERROR"&&(Z=Z.data.command)&&_.cN(E,[Z],B)}):_.xV(Error("yl"),"ERROR")})},mKO=function(E,B,I,T){var e=_.MN.instance;
e&&_.H$(e,I)?_.NN(e,I,T).then(function(c){return{data:c}}).then(function(c){Pjt(E,B,I,c)},function(){zuL(I)}):(e=_.Q().resolve(_.Fx(_.Zk)))&&e.requestDataForServiceEndpoint(I,T).then(function(c){Pjt(E,B,I,c)},function(){zuL(I)})},Pjt=function(E,B,I,T){_.$O(B,"yt-service-request-completed",T);
if(T.code&&T.code=="ERROR")zuL(I);else{(T=T.data.commands)&&_.cN(E,T,B);var e;(E=(e=_.h(I,_.IGZ))==null?void 0:e.serializedYpcPauseFlowLoggingParams)&&E&&_.Qb("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",E)}},zuL=function(E){var B;
(E=(B=_.h(E,_.IGZ))==null?void 0:B.serializedYpcPauseFlowLoggingParams)&&E&&_.Qb("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",E,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},hu9=function(E,B,I){var T=_.MN.instance;
T&&_.H$(T,I)?_.NN(T,I).then(function(e){return{data:e}}).then(function(e){QNg(E,B,I,e)},function(){dK7(I)}):(T=_.Q().resolve(_.Fx(_.Zk)))&&T.requestDataForServiceEndpoint(I).then(function(e){QNg(E,B,I,e)},function(){dK7(I)})},QNg=function(E,B,I,T){_.$O(B,"yt-service-request-completed",T);
T.code&&T.code=="ERROR"?dK7(I):((T=T.data.commands)&&_.cN(E,T,B),(E=_.h(I,_.T5h).serializedYpcResumeFlowLoggingParams)&&E&&_.Qb("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",E))},dK7=function(E){(E=_.h(E,_.T5h).serializedYpcResumeFlowLoggingParams)&&E&&_.Qb("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",E,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},sNm=function(E){E=E===void 0?{}:E;
_.Q().resolve(_.v0X).showFeedbackDialog(E.customProductData,E.feedbackContent,E.onFeedbackSubmitted,E.bucket)},uN7=function(E){E=E===void 0?{}:E;
_.Q().resolve(_.v0X).showHelpDialog(E.helpContext,E.articleId,E.productData)},LhT=function(){uN7()},xK1=function(){sNm()},OqL=function(E,B,I){var T,e,c,Y,v,y,Z;
return _.a(function(P){switch(P.nextAddress){case 1:T=_.h(E,Gvt);if((e=T)==null?0:e.productId){y={productId:T.productId,bucket:T.bucket,enableAnonymousFeedback:(v=T.enableAnonymousFeedback)!=null?v:!0,allowNonLoggedInFeedback:!0};Z={feedbackChoice:I.feedbackChoice};if(!_.d("web_collect_offline_state")){P.jumpTo(8);break}_.q7(P,9);return _.C(P,rKs(Z),11)}Y={bucket:(c=T)==null?void 0:c.bucket};if(!_.d("web_collect_offline_state")){P.jumpTo(4);break}Y.customProductData={};_.q7(P,5);return _.C(P,rKs(Y.customProductData),
7);case 7:_.W7(P,4);break;case 5:_.RG(P);case 4:sNm(Y);P.jumpTo(0);break;case 11:_.W7(P,8);break;case 9:_.RG(P);case 8:_.Shd(Z),_.guB("GFEEDBACK",Z),T.productId==="5295751"&&(Z.client_attestation=Number(_.HA("CATSTAT",0))),T.productId==="5295751"&&(Z.client_time=Date.now()/1E3/3600),T.productId==="5295751"&&(Z.original_playback_id=_.bG$||""),_.nUZ(y,Z),_.ER(P)}})},nG2=function(E){if(E=_.h(E,_.EHF)){var B={bucket:E.bucketIdentifier};
E.additionalDatas&&(B.customProductData={},E.additionalDatas.forEach(function(I){if(I=I.userFeedbackEndpointProductSpecificValueData)B.customProductData[I.key]=I.value}));
sNm(B)}},MP9=function(E){var B=_.WC.getInstance();
var I=_.yu("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var T=_.yu("DELETE",void 0,"Delete"),e=_.yu("CANCEL",void 0,"Cancel");I=fZ7(I,void 0,T,e,{signal:"DELETE_ALL_DOWNLOADS"});_.Hk(B,[{openPopupAction:I}],E)},NEs=function(){return _.a(function(E){return E.nextAddress==1?_.C(E,_.Q().resolve(_.jT),2):_.C(E,Hq8(),0)})},gGs=function(E){var B,I;
return _.a(function(T){return T.nextAddress==1?(I=(B=_.h(E,_.g9))==null?void 0:B.targetId)?_.C(T,_.Q().resolve(_.jT),3):T.jumpTo(0):_.C(T,_.Q().resolve(_.AS).deleteVideo(I),0)})},JR1=function(E){var B,I;
return _.a(function(T){return T.nextAddress==1?(I=(B=_.h(E,_.g9))==null?void 0:B.targetId)?_.C(T,_.Q().resolve(_.jT),3):T.jumpTo(0):_.C(T,SqO(_.Q().resolve(_.AS),I),0)})},X8I=function(E){var B,I;
return _.a(function(T){return(I=(B=_.h(E,_.g9))==null?void 0:B.targetId)?_.C(T,Whm(I),0):T.jumpTo(0)})},bqt=function(){_.d("kevlar_woffle_refresh_dl_load_killswitch")||rRH()},ARO=function(){_.d("kevlar_woffle")&&_.MK.instance&&oG9()},UKL=function(E){var B;
if((B=_.h(E,_.ef))==null||!B.videoId)return!1;jNd(_.Q().resolve(_.AS),_.h(E,_.ef),E.clickTrackingParams);return!0},tPt=function(E){var B;
if((B=_.h(E,_.lO))==null||!B.playlistId)return!1;kvO(_.Q().resolve(_.AS),_.h(E,_.lO),E.clickTrackingParams);return!0},VPt=function(E){var B=_.h(E,_.eEt);
(B==null?void 0:B.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(B==null?void 0:B.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||fk9(_.Q().resolve(_.AS),_.h(E,_.eEt))},FhI=function(E){E=_.h(E,_.No$);
var B;(E==null?0:(B=E.actions)==null?0:B.length)&&qqm(E)},RuT=function(E){var B,I;
return _.a(function(T){B=_.h(E,DKd);return(I=B)!=null&&I.localWatchHistoryCommandType?_.C(T,KhI(B),0):T.return()})},E7g=function(E){setTimeout(function(){requestAnimationFrame(E)},80)},BpT=function(E){return Object.entries(E).map(function(B){return B.join(":")}).join(";")},IN2=function(E){var B,I,T;
_.a(function(e){if(e.nextAddress==1)return _.C(e,$iL(),2);B=e.yieldResult;I=_.BV.instance;switch(B){case "granted":T=E.getLocationCommand;break;case "denied":T=E.openDeniedDialogAction;break;case "prompt":T=E.openCollectionDialogAction;break;default:T=E.openCollectionDialogAction}T&&I.resolveCommand(T);_.ER(e)})},$iL=function(){var E,B;
return _.a(function(I){if(I.nextAddress==1)return E="prompt",navigator.permissions?_.C(I,navigator.permissions.query({name:"geolocation"}),3):I.jumpTo(2);I.nextAddress!=2&&(B=I.yieldResult,E=B.state);return I.return(E)})},e2L=function(){_.a(function(E){return _.C(E,_.Tp7(),0)})},lNL=function(){var E,B,I;
return _.a(function(T){if(T.nextAddress==1)return E=_.Q().resolve(_.P8),E?_.C(T,_.NN(E,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.OG(Error("Bl")),T.return(void 0));if(B=T.yieldResult){if(B.errorMetadata)return _.OG(Error("Cl`"+B.errorMetadata.status+"`"+B.error)),T.return(void 0);I=B.datasyncIds;_.aJZ=I.length;return T.return(I)}_.OG(Error("Dl"));return T.return(void 0)})},cdL=function(){lNL().then(function(E){E&&(aDt(E),Msg(E),B97(E),oVI(E))})},i$2=function(E){_.Ll.addLowPriorityJob(function(){var B,
I,T,e,c;
return _.a(function(Y){switch(Y.nextAddress){case 1:if(_.d("ytidb_clear_optimizations_killswitch")){Y.jumpTo(2);break}B=_.w0("clear");if(B.startsWith("V")&&B.endsWith("||")){var v=[B];aDt(v);Msg(v);B97(v);oVI(v);return Y.return()}I=$W1();T=AKs();return _.C(Y,Hi9(),3);case 3:return e=Y.yieldResult,_.C(Y,vvH(),4);case 4:if(c=Y.yieldResult,!(I||T||e||c))return Y.return();case 2:E.isNetworkAvailable()?cdL():E.listenOnce("publicytnetworkstatus-online",cdL),_.ER(Y)}})})},fh=function(E){E={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.jj(E)}}}};_.BV.instance&&_.BV.instance.resolveCommand(E)},plI=function(E){if(E){var B=_.lu();
_.I5(B,3854,void 0,{layer:0,parentLayer:4});switch(E){case 1:var I=238708;break;case 2:I=238715;break;case 3:I=238710;break;case 6:I=238709}I&&(E=_.eO(B,{veType:I}))&&_.lf(B,E)}},YML=function(E){if(E){var B=_.lu();
_.I5(B,3854,void 0,{layer:0,parentLayer:4});switch(E){case 1:var I=238714;break;case 2:I=238711;break;case 8:I=238709;break;case 7:I=238713;break;case 3:case 4:case 5:I=238712}I&&(E=_.eO(B,{veType:I}))&&_.lf(B,E)}},aNm=function(E){switch(E.latencyType){case 0:_.OK("consent_primitive_flow");
_.nO("cpit",E.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.nO("cpist",E.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.nO("cprtif",E.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.nO("cprtli",E.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.nO("cprt",E.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.nO("cpdt",E.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.nO("cpjct",E.timestampEpochMillis,"consent_primitive_flow")}},
dit=function(E,B){var I,T,e,c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q,f,ed;
return _.a(function(K){switch(K.nextAddress){case 1:_.q7(K,2);(T=(I=_.h(E,v7t))==null?void 0:I.serializedConsentRequest)||(T=(e=_.h(E,yd7))==null?void 0:e.serializedConsentRequest);T&&(c=C6t(_.pV(T)));if(c===void 0)return K.return();Y=wlO(c);Y.latencyCallback=aNm;B&&Z$H(Y,function(){B.then(function(p4){p4.pauseVideo();(new P62).increment()})});
return((v=_.h(E,v7t))==null?void 0:v.consentAction)==="CONSENT_ACTION_PREWARM"||((y=_.h(E,yd7))==null?void 0:y.consentAction)==="CONSENT_ACTION_PREWARM"?_.C(K,z2O(Y),5):_.C(K,mi1(Y),6);case 6:Z=K.yieldResult;P=_.Qm(Z,Vx);if(P===1){if(((z=_.Nd(Z,qY,1,Vx))==null?void 0:_.na(z,1))===1||((m=_.Nd(Z,qY,1,Vx))==null?void 0:_.na(m,1))===2||((u=_.Nd(Z,qY,1,Vx))==null?void 0:_.na(u,1))===3)_.h(E,yd7)?fh(_.yu("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
fh(_.yu("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));plI((x=_.Nd(Z,qY,1,Vx))==null?void 0:_.na(x,1),_.jC(Z,Q31,3,_.Ux()))}else P===2?(((M=Fw(Z))==null?void 0:_.na(M,1))===5?_.h(E,yd7)?fh(_.yu("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):fh(_.yu("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((N=Fw(Z))==null?void 0:_.na(N,1))===1||((W=Fw(Z))==null?void 0:_.na(W,1))===4?fh(_.yu("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((U=Fw(Z))==null?void 0:_.na(U,1))===7&&((q=c)==null?void 0:(f=_.DZ(q,Dy,4))==null?void 0:_.na(f,4))!==1&&fh(_.yu("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),YML((ed=Fw(Z))==null?void 0:_.na(ed,1))):fh(_.yu("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));K.jumpTo(5);break;case 5:_.W7(K,0);break;case 2:_.RG(K),fh(_.yu("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.ER(K)}})},s3T=function(){if(!h22.has("Worker")){h22.set("Worker",
!0);
var E={api:"BROWSER_API_WEB_WORKER"};E.available="Worker"in window?!0:!1;_.hK("apiTest",E)}},uST=function(E){return typeof E==="undefined"?"-1":String(Math.ceil(E/1048576))},O$I=function(E,B){LBt(new xiO(_.h(B,GgO).addToken,_.h(B,GgO).commonToken)).then(function(){_.$O(E,"yt-invoke-instrument-manager-action-completed")},function(I){_.$O(E,"yt-invoke-instrument-manager-action-error",I)})},n72={},MV8=function(E){return _.zpD(n72,E,function(){return tY(_.Cad,E)>=0})},H$8=function(E){return _.XG(E)},
Npd=function(E){var B=1;
E=E.split(":");for(var I=[];B>0&&E.length;)I.push(E.shift()),B--;E.length&&I.push(E.join(":"));return I},g7L=function(E,B){B=E.aspectRatio()<=B.aspectRatio()?B.width/E.width:B.height/E.height;
E.scale(B)},SM2=function(E,B){B=E.aspectRatio()>B.aspectRatio()?B.width/E.width:B.height/E.height;
return E.scale(B)},Jd7=function(E){var B=new _.lG;
return _.gV(B,11,E)},WBd=function(E){var B={};
E=E.getAllResponseHeaders().split("\r\n");for(var I=0;I<E.length;I++)if(!_.aB(E[I])){var T=Npd(E[I]),e=T[0];T=T[1];if(typeof T==="string"){T=T.trim();var c=B[e]||[];B[e]=c;c.push(T)}}return _.a_.map(B,function(Y){return Y.join(", ")})},ld=function(E,B){return E.JSC$7680_xhr_?E.JSC$7680_xhr_.getResponseHeader(B):null},Kh=function(E,B,I){Array.isArray(I)||(I=[String(I)]);
_.a0Z(E.JSC$7917_queryData_,B,I);return E},oG9=function(){var E=_.MK.instance;
_.a(function(B){return E.deferredInstallPrompt?_.C(B,E.deferredInstallPrompt.prompt(),0):B.jumpTo(0)})},Xl9=function(E,B,I){if(_.Di(E))_.bW(E,B,I);
else for(E=_.zlr(E);;){var T=E.next();if(T.done)break;B.call(I,T.value,void 0,E)}},rds={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}"]},Se1,JaH,W01,XV1,rat,b87,ogI,AaI,jQ7,Whm,SqO,Hq8,UE9,kAs,tOm,fx8,VOs,kvO,jNd,qeI,F0O,DEL,rRH,fk9,K0s,qqm,R4I,KhI,E3T,BAt,$Nd,IQ1,TA1,ebs,lQ8,TY,ckd,ips,
kaH,Alm,p$t,e8,lw,cK,iw,Y1t,aQ2,v3H,yks,C0L,w$7,ZpT,P0T,zbs,mNs;rds={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 b$g=function(E,B){var I=[];Xl9(B,function(T){try{var e=_.Rj.prototype.getWrapper.call(this,T,!0)}catch(c){if(c=="Storage: Invalid value was encountered")return;throw c;}e===void 0?I.push(T):_.PEV(e)&&I.push(T)},E);
return I},o78=function(E,B){b$g(E,B).forEach(function(I){_.Rj.prototype.remove.call(this,I)},E)},Adt=function(E){var B=_.Ac;
B._minimumZ=Math.max(B._minimumZ,E)},j3s=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],Ui9=function(E,B){_.bl(E.gS);E.gS=B},kg7=function(E,B,I,T){E.setState(5);
var e=!!E.ouQ&&j3s.includes(_.tA(E.ouQ)||"");try{var c=new _.HR({program:B,globalName:I,yu:{disable:!_.d("att_web_record_metrics")||!_.d("att_skip_metrics_for_cookieless_domains_ks")&&e,nR:"aGIf"}});c.wTe.then(function(){E.setState(6);T&&T(B)});
Ui9(E,c)}catch(Y){E.setState(7),Y instanceof Error&&_.OG(Y)}},tVO=function(E,B,I,T,e,c){var Y=Y===void 0?"trayride":Y;
I?(E.setState(2),_.Sc(I,function(){if(window[Y])kg7(E,T,Y,e);else{E.setState(3);var v=_.kwc(I),y=document.getElementById(v);y&&(_.qqG(v),y.parentNode.removeChild(y));_.OG(new _.P7("BL:ULB",I))}},c)):B?(c=_.li("SCRIPT"),B instanceof _.Lr?_.Of(c,B):c.textContent=B,c.nonce=_.uv(document),document.head.appendChild(c),document.head.removeChild(c),window[Y]?kg7(E,T,Y,e):(E.setState(4),_.OG(new _.P7("BL:ULBJ")))):_.OG(new _.P7("BL:ULV"))},fNI=function(){this.state=1;
this.gS=null;this.ouQ=void 0};
_.l=fNI.prototype;_.l.initialize=function(E,B,I,T){this.ouQ=T;if(E.program){var e;T=(e=E.interpreterUrl)!=null?e:null;if(E.interpreterSafeScript)e=_.CmG(E.interpreterSafeScript);else{var c;e=(c=E.interpreterScript)!=null?c:null}E.interpreterSafeUrl&&(T=_.xv(E.interpreterSafeUrl).toString());tVO(this,e,T,E.program,B,I)}else _.OG(Error("kf"))};
_.l.isInitialized=function(){return!!this.gS};
_.l.getState=function(){return this.state};
_.l.isLoading=function(){return this.state===2};
_.l.invoke=function(E){E=E===void 0?{}:E;var B;this.gS?B=_.Erz(this.gS,{d6:E}):B=null;return B};
_.l.dispose=function(){Ui9(this,null);this.setState(8)};
_.l.setState=function(E){this.state=E};
var VV8=function(E,B){return E.gS.snapshot(B)},qMO=function(E,B){var I=_.RI("botguard_async_snapshot_timeout_ms",3E3);
B=B===void 0?{}:B;I=I===void 0?3E3:I;return E.gS?new Promise(function(T,e){var c=!1,Y=_.Ll.addJob(function(){c=!0;e(Error("lf"))},1,I);
E.gS?VV8(E,{d6:B}).then(function(v){_.Ll.cancelJob(Y);c||T(v)}).catch(function(v){_.Ll.cancelJob(Y);
c||e(v)}):(_.Ll.cancelJob(Y),T(null))}):Promise.resolve(null)},FBt=["att/log"],DiL;
DiL={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var KBO={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},R29=function(E,B){return _.yF(E,{mode:"readwrite",enableRetries:!0},function(I){return _.NoB(I,B,"settingEntity")})},Eg7=function(E,B,I){return _.yF(E,{mode:"readonly",
enableRetries:!0},function(T){return _.xrV(T,B,I)})},BXT=function(E){if(!E.storage)return!1;
a:{if(E.storage){try{var B=E.storage.get("TLPQtimestamp")}catch(I){}E=Number(B);if(!isNaN(E))break a}E=void 0}return E?Date.now()-E<864E5:!1},$ET=function(E){if(E.storage){try{var B=E.storage.get("TLPQindex")}catch(I){}E=Number(B);
if(!isNaN(E))return E}},IxI=function(E,B){E.queueProxy&&B.forEach(function(I){if(I.videoId&&I.trackingParams&&E.queueProxy instanceof _.OA){var T=_.nC();
E.queueProxy.attributionData.set(I.videoId,{enqueueingVe:_.Yg(I.trackingParams).getAsJson(),enqueueingCsn:T?T:void 0,clientEnqueueingTimeMs:Math.floor((0,_.VZ)()).toString()})}})},TXO=function(E){var B=_.eQh(E);
B!=E.currentSnapState_&&(E.currentSnapState_=B,E.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},RV=function(E){this.JSC$10850_networkManager_=E;
this.partCallbacks_=[]};
RV.prototype.getCacheKeyForEndpoint=function(E){return _.wFG(E,!1)};
RV.prototype.onPartsCallback_=function(E){this.partCallbacks_.forEach(function(B){E&&B(E)})};
var En=function(E,B,I){RV.call(this,E);this.player_=B;this.autoplayData_=I};
_.L(En,RV);En.prototype.getCacheKeyForEndpoint=function(E){return _.wFG(E,!!this.autoplayData_)};
En.prototype.getTempData=function(E,B){B=B.timeBeforeNextVideo;E={itct:E.clickTrackingParams,lact:_.DD(),pbis:B,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(E.autonav=1);return E};
En.prototype.getXhrParams=function(E){return Object.assign({pbj:"prefetch"},E)};
En.prototype.getParams=function(E){E={frags:E.fragmentsRequested.join(",")};_.d("kevlar_droppable_prefetchable_requests")&&(E.prefetch=1);return E};
var e49=function(E){E.playerEvents_.forEach(function(B){E.player.removeEventListener(B.eventName,B.callback)});
E.playerEvents_.length=0},BK=function(E,B,I){this.player=E;
this.JSC$10860_taskManager=B;this.prefetchDelay=I;this.completionResolver_=null;this.playerEvents_=[]};
BK.prototype.start=function(){var E=this;this.completionResolver_=_.gA();_.sk(this.completionResolver_.promise,function(){e49(E);E.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var lxd=function(E,B,I){E.player.addEventListener(B,I);E.playerEvents_.push({eventName:B,callback:I})},caT={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},i8t={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},pVO=function(E,B,I){BK.call(this,E,B,I);this.cueId_="playbackTrigger-"+Math.random()};
_.L(pVO,BK);
pVO.prototype.prepareTrigger=function(E){var B=this,I=this.player.getDuration(),T=this.player.getVideoData(),e=T.isLive&&T.hasProgressBarBoundaries;if(e&&T.progressBarEndPositionUtcTimeMillis){var c=T.progressBarEndPositionUtcTimeMillis/1E3;isNaN(c)||(I=c)}var Y=0;this.prefetchDelay>=0?e?T.progressBarStartPositionUtcTimeMillis&&(T=T.progressBarStartPositionUtcTimeMillis/1E3,isNaN(T)||(Y=T+this.prefetchDelay)):Y=this.prefetchDelay:Y=I+this.prefetchDelay;e?this.player.addUtcCueRange(this.cueId_,Y,I):
this.player.addCueRange(this.cueId_,Y,I);_.sk(E.promise,function(){B.player.removeCueRange(B.cueId_)});
lxd(this,"onCueRangeEnter",function(v){v==B.cueId_&&E.resolve(I-Y)})};
var YeH=function(E,B){E.fragmentConfiguration_[B].requiredKeys.every(function(I){return!!E.prefetchedData_[I]})&&(E.validatedFragments_.push(B),B=E.missingFragments_.indexOf(B),B!==-1&&E.missingFragments_.splice(B,1))},axd=function(E){E.prefetchedFragments_.forEach(function(B){YeH(E,B)})},vg9=function(E,B,I){this.pageFragments_=E;
this.prefetchedFragments_=B;this.fragmentConfiguration_=i8t;this.prefetchedData_=I;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;axd(this)},yad=function(){},Cu9=function(E){this.JSC$10874_playlistManager_=E};
_.L(Cu9,yad);Cu9.prototype.getPrefetchEndpoint=function(){return this.JSC$10874_playlistManager_.getAutoplayEndpoint()};
var wVm=function(E){this.autonavEndpoints_=E};
_.L(wVm,yad);wVm.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var Z81=function(E,B,I,T,e){this.autonavEndpoints=E;this.foregroundTrigger=B;this.backgroundTrigger=I;this.pageType=T;this.isInPlaylist=e},Pug=function(E,B){if(E.webPrefetchData&&E.webPrefetchData.navigationEndpoints&&E.webPrefetchData.navigationEndpoints.length){E=E.webPrefetchData.navigationEndpoints;
var I=_.h(E[0],_.kh);if(I.watchEndpointSupportedPrefetchConfig&&I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var T=I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;I=T.playbackRelativeSecondsPrefetchCondition;I=typeof I==="number"&&Math.abs(I)<B.videoDuration?I:void 0;T=T.countdownUiRelativeSecondsPrefetchCondition;T=typeof T!=="number"||_.d("prefetch_job_config_cleanup_ks")&&B.inPlaylist?void 0:T;if(typeof T==="number")return new Z81(E,B.makeUpNextTrigger(T),B.makePlaybackTrigger(T),
"watch",B.inPlaylist);if(typeof I==="number")return new Z81(E,B.makePlaybackTrigger(I),null,"watch",B.inPlaylist)}}},z49=function(E){return E.prefetchJobConfig_.backgroundTrigger?_.JA(_.FU6)()==0?E.prefetchJobConfig_.backgroundTrigger:E.prefetchJobConfig_.foregroundTrigger:E.prefetchJobConfig_.foregroundTrigger},mE9=function(E){_.zw(document,"visibilitychange",E.onVisibilityChange_,!1,E)},$D=function(E){RV.call(this,E)};
_.L($D,RV);$D.prototype.getCacheKeyForEndpoint=function(E){return RV.prototype.getCacheKeyForEndpoint.call(this,E)};
$D.prototype.getTempData=function(){return{}};
$D.prototype.getXhrParams=function(E){return E};
$D.prototype.getParams=function(){return{}};
var QQH=function(E,B,I){var T=E.prefetchDelay*1E3;if(Math.abs(T)>B)I.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var e=T,c=B-T;T<0&&(e=B+T,c=Math.abs(T));var Y=E.JSC$10860_taskManager.addJob(function(){I.resolve(c/1E3)},10,e);
I.promise.thenCatch(function(){E.JSC$10860_taskManager.cancelJob(Y)})}},dEI=function(E,B,I){BK.call(this,E,B,I)};
_.L(dEI,BK);dEI.prototype.prepareTrigger=function(E){var B=this;lxd(this,"onAutonavCoundownStarted",function(I){QQH(B,I,E)})};
var h4d=function(E){E.pendingPrefetchJob_&&(E.pendingPrefetchJob_.cancel(),E.pendingPrefetchJob_=null)},sQO=function(E,B,I){if(!E.triggeredTargets.has(B)){var T=_.ktN(E,B);
T.action=I;_.jWR(E,B,T)}},uC2=function(E){_.SLh();
_.iLc("cpt")&&_.OG(Error("lh"));_.$i.requestAnimationFrame(function(){_.$i.setTimeout(function(){_.nO("cpt");var B=_.Nf("vpl"),I=_.Nf("cpt");B&&I&&_.nO("ol",Math.max(B,I))})});
try{_.nO("fr_s"),E()}catch(B){_.xV(B)}_.$i.requestAnimationFrame(function(){_.nO("bcp")})},L0H=function(E,B){E.serviceEndpointHandlers.push(B)},xE9=function(E,B){B=E.pendingPages_.indexOf(B);
B>-1&&E.pendingPages_.splice(B,1)},GA2=function(E,B){var I=_.qTR.indexOf(B);
I>-1&&_.qTR.splice(I,1);E.targetPage_==B?(E.abort(),_.D1V(E)):xE9(E,B)},O8O=function(E,B,I,T){B={challenge:B};
I&&(B.webResponse=I);return _.Me(E.innertubeTransportService,B,_.f9(FBt),T)},ng8=function(E,B,I){if(!B.challenge)throw Error("ni");
if(B.botguardData&&B.botguardData.program){var T=new fNI;T.initialize(B.botguardData,function(){qMO(T,{atr_challenge:B.challenge}).then(function(e){if(!e)throw Error("oi");return O8O(E,B.challenge,e,I)}).catch(function(e){_.OG(e);
return O8O(E,B.challenge,void 0,I)})},void 0)}else O8O(E,B.challenge,void 0,I)},MOI=function(E,B,I){var T={};
B.ids&&(T.ids=[].concat(_.ad(B.ids)));B.engagementType&&(T.engagementType=B.engagementType);return _.Me(E.innertubeTransportService,T,_.f9(_.Ul$),I).then(function(e){if(!e)throw new _.P7("GetAttestationChallenge returned falsy");ng8(E,e,I)}).thenCatch(function(e){_.xV(e)})},H8s=function(E,B,I){return new _.cC(function(T,e){var c;
return _.a(function(Y){if(Y.nextAddress==1){var v=B.engagementType,y=B.ids,Z={};y=_.p(y!=null?y:[]);for(var P=y.next();!P.done;P=y.next())P=P.value,P.encryptedVideoId?Z.encryptedVideoId=P.encryptedVideoId:P.externalChannelId?Z.externalChannelId=P.externalChannelId:P.commentId?Z.commentId=P.commentId:P.externalOwnerId?Z.externalOwnerId=P.externalOwnerId:P.artistId?Z.artistId=P.artistId:P.playlistId?Z.playlistId=P.playlistId:P.externalPostId?Z.externalPostId=P.externalPostId:P.shareId&&(Z.shareId=P.shareId);
return _.C(Y,tg8(v,Z),2)}c=Y.yieldResult;if(!c.challenge)return _.OG(Error("pi")),MOI(E,B,I).then(T,e),Y.return();v=c;Z={challenge:v.challenge};Z.webResponse=v.webResponse;Z.engagementType=B.engagementType;Z.ids=B.ids;_.Me(E.innertubeTransportService,Z,_.f9(FBt),I).then(T,e);_.ER(Y)})})},VYL=function(E,B){var I,T,e,c;
_.a(function(Y){if(Y.nextAddress==1){I=_.h(B,_.fUU);if(!(I&&I.listId&&E.response&&E.response.playingVideoId)||E.listId!==I.listId)return Y.return();E.index===void 0&&(E.index=0);return _.C(Y,_.cF6(E.JSC$10686_playlistNetworkManager,I.listId,E.index,E.response.playingVideoId),2)}T=Y.yieldResult;if(!T)return Y.return();e=T.playlistId;c=T.playlistPanelRenderer;E.setPlaylistData(e,c,T.autoplayRenderer);_.ER(Y)})},NX8=function(E,B,I){var T=E.getParams(I),e=_.O8t(B,T),c=E.getTempData(B,I);
c.endpoint=JSON.stringify(B);_.d("enable_unknown_lact_fix_on_html5")&&(_.Q().resolve(_.P$),c.lact=_.DD());var Y={headers:{"X-YouTube-STS":_.HA("STS"),"x-youtube-csoc":1}};_.qU(e,c);return new _.cC(function(v,y){var Z=E.getXhrParams(T),P;_.d("kevlar_cache_on_ttl_player")&&(P=_.Bc.instance);P&&_.dXZ(P,B)?_.nor(P,B,c,window.location.href).then(function(z){z?v(z):y()},y):_.fWZ(E.JSC$10850_networkManager_,B,Z,E.onPartsCallback_.bind(E),Y).then(function(z){z?v(z):y()},y)})},gg1=function(E,B){E.triggerPromise_=
B.start();
E.triggerPromise_.then(function(I){var T=E.prefetchEndpointProvider_.getPrefetchEndpoint();if(T){var e=caT[E.prefetchJobConfig_.pageType].prefetchedFragments;E.prefetchRequestPromise_=NX8(E.JSC$10886_networkPrefetchRequest_,T,{fragmentsRequested:e,timeBeforeNextVideo:I});E.prefetchResponseCacheKey_=E.JSC$10886_networkPrefetchRequest_.getCacheKeyForEndpoint(T);mE9(E);E.prefetchRequestPromise_.then(function(c){E.storePrefetchedDataCallback_(E.prefetchResponseCacheKey_,c);if(_.d("web_prefetch_preload_video")&&
e.length===1&&e[0]==="pl"&&c&&!c.playerAds&&!c.adPlacements){var Y=_.h(T,_.yQ),v=Y!=null,y={raw_player_response:c,watch_endpoint:Y};(c=_.Q().resolve(v?_.UrZ:_.qN))&&T&&c.then(function(Z){v&&_.d("web_queue_preload_video")?(y.prefer_gapless=!0,Z.queueNextVideo(y)):Z.preloadVideoByPlayerVars(y)})}})}})},ID=function(E,B,I,T){this.prefetchEndpointProvider_=E;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=B;this.prefetchJobConfig_=I;this.JSC$10886_networkPrefetchRequest_=T;this.prefetchResponseCacheKey_=null};
ID.prototype.enqueue=function(){this.triggerPromise_||(gg1(this,z49(this)),_.vV(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
ID.prototype.resolve=function(){this.cancel()};
ID.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.");mE9(this)};
ID.prototype.onVisibilityChange_=function(){var E=this;_.JA(_.FU6)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){E.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||gg1(this,z49(this))};
Se1=function(E,B,I,T,e){B&&(B==null?0:B.videoId)&&I&&I.entries&&_.d("kevlar_enable_shorts_prefetch_in_sequence")&&(h4d(E),B=I.entries.map(function(c){var Y;return(Y=_.h(c.command,_.yQ))==null?void 0:Y.videoId}).indexOf(B.videoId),I=I.entries[B+1],I!=null&&I.command&&!_.h(I==null?void 0:I.command,_.MT)&&(T=new Z81([I.command],new pVO(T,_.Ll,1),null,"shorts",!1),E.pendingPrefetchJob_=new ID(new wVm(T.autonavEndpoints),function(){return!1},T,new $D(e)),E.pendingPrefetchJob_.enqueue()))};
JaH=function(E,B,I,T,e,c){var Y=_.fU.getInstance();if(!_.d("block_all_player_prefetch_requests")){h4d(E);var v=!!I.getPlaylistId(),y=I.getVideoData().isLive&&I.getVideoData().hasProgressBarBoundaries;if((Y.getState()==2||v||y)&&(!I.getVideoData().isLive||y)){Y={inPlaylist:v,videoDuration:I.getDuration(),makeUpNextTrigger:function(P){return new dEI(I,_.Ll,P)},
makePlaybackTrigger:function(P){return new pVO(I,_.Ll,P)}};
var Z=Pug(B,Y);Z&&(E.pendingPrefetchJob_=new ID(Z.isInPlaylist?new Cu9(e):new wVm(Z.autonavEndpoints),function(P,z){z=new vg9(caT[Z.pageType].pageFragments,caT[Z.pageType].prefetchedFragments,z);return _.gou(z)?(E.prefetchCache_.set(P,z),!0):!1},Z,new En(T,I,c,e)),E.pendingPrefetchJob_.enqueue())}}};
W01=function(){var E=_.Wx();E.signals.parkOrScheduleJob(function(){var B=E.storage;if(B.storage)if(BXT(B)){var I=B.getPlaylistId();B=$ET(B);I=!!I&&B!==void 0}else B.clear(),I=!1;else I=!1;if(I){I=E.pageManager.isOnWatch();a:{var T=E.storage;if(T.storage&&BXT(T)&&(B=T.getPlaylistId(),T=$ET(T),B&&T!==void 0)){I={recoverPlaylistCommand:{listId:B,index:T,openMiniplayer:!I,openListPanel:I,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}I=void 0}I&&_.Hk(E.JSC$10686_actionRouter,[I],null)}},0,"ma")};
XV1=function(E,B,I,T,e,c){var Y=_.wA(7111);_.Ts(E.JSC$15997_screenManager,Y,c?_.Yg(c):void 0);_.lf(E.JSC$15997_screenManager,Y,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:T,offlineId:B,offlineabilityFormatType:I,isDefaultFormatType:e==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:e}})};
rat=function(E,B,I,T,e){var c,Y,v,y,Z;return _.a(function(P){if(P.nextAddress==1)return _.C(P,E.JSC$15997_playerApiPromise,2);c=P.yieldResult;XV1(E,B,I,"OFFLINE_OBJECT_TYPE_PLAYLIST",T,e);if(v=_.gJX[E.entityTypeMap.listEntityType])Z={},Y=(Z[v]={maximumDownloadQuality:(y=I)!=null?y:void 0},Z);return _.C(P,c.queueOfflineAction(B,E.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Y),0)})};
b87=function(E,B){var I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return _.C(Y,E.JSC$15997_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3){I=Y.yieldResult;if(!I)return _.OG(new _.P7("PES is undefined")),Y.return();T=_.lm(B,"downloadStatusEntity");return _.C(Y,Eg7(I,T,"downloadStatusEntity"),3)}e=Y.yieldResult;return Y.return((c=e)==null?void 0:c.downloadState)})};
ogI=function(E,B,I,T,e){var c,Y,v,y,Z,P;return _.a(function(z){switch(z.nextAddress){case 1:return _.C(z,E.JSC$15997_playerApiPromise,2);case 2:c=z.yieldResult;XV1(E,B,I,"OFFLINE_OBJECT_TYPE_VIDEO",T,e);if(v=_.gJX[E.entityTypeMap.singleEntityType])Z={},Y=(Z[v]={maximumDownloadQuality:(y=I)!=null?y:void 0},Z);return _.C(z,b87(E,B),3);case 3:P=z.yieldResult;if(P!=="DOWNLOAD_STATE_USER_DELETED"){z.jumpTo(4);break}return _.C(z,E.deleteVideo(B),4);case 4:return _.C(z,c.queueOfflineAction(B,E.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Y),0)}})};
AaI=function(E,B,I,T,e){return _.a(function(c){return c.nextAddress==1?_.C(c,E.deleteVideo(B,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.C(c,ogI(E,B,I,T,e),0)})};
jQ7=function(E,B,I){var T,e;return _.a(function(c){if(c.nextAddress==1)return _.C(c,E.JSC$15997_playerApiPromise,2);T=c.yieldResult;e=_.lm(B,"mainVideoDownloadStateEntity");return _.C(c,T.updateDownloadState(e,I),0)})};
Whm=function(E){var B=_.Q().resolve(_.AS);return _.a(function(I){if(I.nextAddress==1)return B.previousDownloadStateForVideo[E]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&B.previousDownloadStateForVideo[E]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?I.jumpTo(2):_.C(I,B.resumeVideoDownload(E),2);if(I.nextAddress!=4)return _.C(I,jQ7(B,E,B.previousDownloadStateForVideo[E]),4);delete B.previousDownloadStateForVideo[E];_.ER(I)})};
SqO=function(E,B){var I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$15997_playerApiPromise,2);I=T.yieldResult;return _.C(T,I.queueOfflineAction(B,E.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
Hq8=function(){var E=_.Q().resolve(_.AS),B,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$15997_playerApiPromise,2);if(T.nextAddress!=3)return B=T.yieldResult,I={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.C(T,B.queueOfflineAction("!*$_ALL_ENTITIES_!*$",E.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",I),3);var e=E.JSC$15997_commandHandler,c=e.resolveCommand,Y=_.yu("DELETING_ALL",void 0,"Downloads are being deleted");
c.call(e,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.KO(Y)}},popupType:"TOAST"}});_.ER(T)})};
UE9=function(E){var B,I;return _.a(function(T){if(T.nextAddress==1)return _.C(T,E.JSC$15997_prefStorage,2);B=T.yieldResult;return T.return((I=B)==null?void 0:I.get("sdois"))})};
kAs=function(E){var B,I,T,e,c,Y;return _.a(function(v){if(v.nextAddress==1)return _.C(v,E.JSC$15997_persistentStorePromiseAccessor(),2);if(v.nextAddress!=3){B=v.yieldResult;if(!B)return _.OG(new _.P7("PES is undefined")),v.return();I=_.lm("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.C(v,Eg7(B,I,"settingEntity"),3)}T=v.yieldResult;return v.return((Y=(e=T)==null?void 0:(c=e.settingOptionValue)==null?void 0:c.boolValue)!=null?Y:!1)})};
tOm=function(E,B){var I,T,e,c;return _.a(function(Y){switch(Y.nextAddress){case 1:return((I=B)==null?void 0:I.formatType)===void 0?Y.return():_.C(Y,E.JSC$15997_prefStorage,2);case 2:T=Y.yieldResult;if(T===void 0)return Y.return();if(((e=B)==null?void 0:e.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.C(Y,T.set("lmqf",B.formatType),8);if(((c=B)==null?void 0:c.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){Y.jumpTo(0);break}return _.C(Y,T.set("lmqf",B.formatType),
6);case 6:return _.C(Y,T.set("lmqflst",Math.floor((0,_.VZ)())),0);case 8:return _.C(Y,T.remove("lmqflst"),0)}})};
fx8=function(E){var B,I;return _.a(function(T){switch(T.nextAddress){case 1:return _.C(T,E.JSC$15997_prefStorage,2);case 2:B=T.yieldResult;if(!B){T.jumpTo(3);break}return _.C(T,B.get("lmqflst"),4);case 4:if(I=T.yieldResult,I!==void 0)return T.return(I);case 3:return T.return(0)}})};
VOs=function(E){var B,I;return _.a(function(T){switch(T.nextAddress){case 1:return _.C(T,E.JSC$15997_prefStorage,2);case 2:B=T.yieldResult;if(B===void 0){T.jumpTo(3);break}return _.C(T,B.get("lmqf"),4);case 4:if(I=T.yieldResult,I!==void 0)return T.return(I);case 3:return T.return("SD")}})};
kvO=function(E,B,I){var T,e,c,Y,v,y,Z,P;_.a(function(z){switch(z.nextAddress){case 1:return _.C(z,tOm(E,(T=B)==null?void 0:T.actionParams),2);case 2:e=B.playlistId;if(!e)return z.return();if(B.action==="ACTION_ADD")return((Y=B.actionParams)==null?0:Y.formatType)?_.C(z,rat(E,e,B.actionParams.formatType,(P=B.actionParams)==null?void 0:P.settingsAction,I),0):_.C(z,E.offlineWebClientEligibility,14);if(B.action==="ACTION_REMOVE_WITH_PROMPT"){var m=E.JSC$15997_commandHandler,u=m.resolveCommand,x=_.HA("INNERTUBE_CLIENT_NAME");
var M=x==="WEB_REMIX"?_.yu("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.yu("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var N=x==="WEB_REMIX"?[_.yu("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];x=x==="WEB_REMIX"?_.yu("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.yu("DELETE",void 0,"Delete");var W=_.yu("CANCEL",void 0,"Cancel");M=fZ7(M,N,x,W,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:e});u.call(m,{openPopupAction:M});
return z.return()}if(B.action==="ACTION_REMOVE")return _.C(z,SqO(E,e),0);if(B.action!=="ACTION_SYNC"){z.jumpTo(0);break}return _.C(z,E.JSC$15997_playerApiPromise,9);case 9:return c=z.yieldResult,_.C(z,c.queueOfflineAction(e,E.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return v=z.yieldResult,_.C(z,VOs(E),15);case 15:return y=z.yieldResult,_.C(z,fx8(E),16);case 16:Z=z.yieldResult,B.onAddCommand&&E.JSC$15997_commandHandler.resolveCommand(B.onAddCommand,{form:{preferredFormatType:y,
offlineWebClientEligibility:v,lastOfflineQualitySettingsSavedMs:Z.toString()}}),z.jumpTo(0)}})};
jNd=function(E,B,I){var T,e,c,Y,v,y,Z,P,z,m,u,x,M,N;_.a(function(W){switch(W.nextAddress){case 1:return _.C(W,tOm(E,(T=B)==null?void 0:T.actionParams),2);case 2:e=B.videoId;if(!e)return W.return();if(B.action==="ACTION_REMOVE_WITH_PROMPT"){var U=E.JSC$15997_commandHandler,q=U.resolveCommand,f=_.HA("INNERTUBE_CLIENT_NAME");var ed=f==="WEB_REMIX"?_.yu("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.yu("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var K=f==="WEB_REMIX"?[_.yu("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];f=f==="WEB_REMIX"?_.yu("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.yu("DELETE",void 0,"Delete");var p4=_.yu("CANCEL",void 0,"Cancel");ed=fZ7(ed,K,f,p4,{signal:"DELETE_DOWNLOAD",targetId:e});q.call(U,{openPopupAction:ed});return W.return()}if(B.action==="ACTION_ADD")return((m=B.actionParams)==null?0:m.formatType)?_.C(W,ogI(E,e,B.actionParams.formatType,(N=B.actionParams)==null?void 0:N.settingsAction,I),0):_.C(W,E.offlineWebClientEligibility,
23);if(B.action==="ACTION_RETRY")return _.C(W,VOs(E),19);if(B.action==="ACTION_PAUSE")return _.C(W,E.pauseVideoDownload(e),0);if(B.action==="ACTION_RESUME")return _.C(W,E.resumeVideoDownload(e),0);if(B.action!=="ACTION_REMOVE"){W.jumpTo(0);break}return _.C(W,b87(E,e),13);case 13:return c=W.yieldResult,E.previousDownloadStateForVideo[e]=(Y=c)!=null?Y:"DOWNLOAD_STATE_UNKNOWN",_.C(W,jQ7(E,e,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(E.previousDownloadStateForVideo[e]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
E.previousDownloadStateForVideo[e]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){W.jumpTo(15);break}return _.C(W,E.pauseVideoDownload(e),15);case 15:U=_.yu("DELETED_VIDEO",void 0,"Video deleted from downloads.");q=_.yu("UNDO_ACTION",void 0,"Undo");ed=_.yu("CLOSE",void 0,"Close");v={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.KO(U),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.KO(q),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:e}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:U+" "+q}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:e}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:ed}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};E.JSC$15997_commandHandler.resolveCommand(v);
W.jumpTo(0);break;case 19:y=W.yieldResult;y==="UNKNOWN_FORMAT_TYPE"&&(y="SD");Z="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((P=B.actionParams)==null?0:P.formatType)y=B.actionParams.formatType,Z=(z=B.actionParams)==null?void 0:z.settingsAction;return _.C(W,AaI(E,e,y,Z,I),20);case 20:return W.return();case 23:return u=W.yieldResult,_.C(W,VOs(E),24);case 24:return x=W.yieldResult,_.C(W,fx8(E),25);case 25:M=W.yieldResult,B.onAddCommand&&E.JSC$15997_commandHandler.resolveCommand(B.onAddCommand,
{form:{preferredFormatType:x,offlineWebClientEligibility:u,lastOfflineQualitySettingsSavedMs:M.toString()}}),W.jumpTo(0)}})};
qeI=function(E,B){var I,T,e,c,Y,v,y;return _.a(function(Z){if(Z.nextAddress==1)return _.C(Z,E.JSC$15997_persistentStorePromiseAccessor(),2);I=Z.yieldResult;if(!I)return _.OG(new _.P7("PES is undefined")),Z.return();if((T=B)==null||!T.settingItemId)return Z.return();e=B;c=e.settingItemId;Y=e.boolValue;v=_.lm(c,"settingEntity");y={key:v,settingOptionValue:{boolValue:Y}};return _.C(Z,R29(I,y),0)})};
F0O=function(E,B){var I,T,e,c,Y,v,y;return _.a(function(Z){switch(Z.nextAddress){case 1:return _.C(Z,E.JSC$15997_prefStorage,2);case 2:return I=Z.yieldResult,T=_.ZB(),_.C(Z,E.JSC$15997_persistentStorePromiseAccessor(),3);case 3:return e=Z.yieldResult,I?e?_.C(Z,I.get("sdois"),4):(_.OG(new _.P7("PES is undefined")),Z.return()):(_.OG(new _.P7("prefStorage is undefined")),Z.return());case 4:c=Z.yieldResult;v=(Y=B)==null?void 0:Y.boolValue;v===void 0||_.d("kevlar_set_sd_enabled_flag_killswitch")||_.PN(0,
197,!0);c===void 0&&v===void 0&&(v=!1);if(v===void 0){Z.jumpTo(0);break}return _.C(Z,I.set("sdois",v),6);case 6:return _.d("kevlar_set_sd_enabled_flag_killswitch")||(_.PN(0,196,v),T.save()),y={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:v},_.C(Z,qeI(E,y),0)}})};
DEL=function(E,B,I){var T,e,c,Y,v;return _.a(function(y){switch(y.nextAddress){case 1:return _.C(y,UE9(E),2);case 2:return T=y.yieldResult,_.C(y,F0O(E,I),3);case 3:return _.C(y,UE9(E),4);case 4:return e=y.yieldResult,c=e!==T,_.C(y,kAs(E),5);case 5:Y=y.yieldResult&&!_.d("kevlar_modern_downloads_page");if((v=!e&&!Y)||c)return _.C(y,B.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);y.jumpTo(0)}})};
rRH=function(){var E=_.Q().resolve(_.AS),B;_.a(function(I){switch(I.nextAddress){case 1:return _.C(I,E.JSC$15997_playerApiPromise,2);case 2:B=I.yieldResult;if(!_.d("kevlar_force_refresh_smart_downloads")){I.jumpTo(3);break}return _.C(I,B.refreshAllStaleEntities(0),4);case 4:return I.return();case 3:return _.C(I,B.refreshAllStaleEntities(),5);case 5:return _.C(I,DEL(E,B),0)}})};
fk9=function(E,B){var I,T;_.a(function(e){switch(e.nextAddress){case 1:return _.C(e,E.JSC$15997_playerApiPromise,2);case 2:I=e.yieldResult;switch((T=B)==null?void 0:T.settingItemId){case "SMART_DOWNLOADS_ENABLED":return e.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return e.jumpTo(4)}e.jumpTo(0);break;case 3:return _.C(e,DEL(E,I,B),6);case 6:e.jumpTo(0);break;case 4:return _.C(e,qeI(E,B),7);case 7:e.jumpTo(0)}})};
K0s=function(E,B){var I,T,e;return _.a(function(c){if(c.nextAddress==1)return _.C(c,E.JSC$15997_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3){I=c.yieldResult;if(!I)return _.OG(new _.P7("PES is undefined")),c.return(!1);if(!B)return c.return(!1);T=_.lm(B,"mainVideoEntity");return _.C(c,Eg7(I,T,"mainVideoEntity"),3)}e=c.yieldResult;return c.return(e!==void 0)})};
qqm=function(E){var B=_.Q().resolve(_.AS),I,T,e,c,Y,v,y,Z,P,z,m;_.a(function(u){switch(u.nextAddress){case 1:return _.C(u,B.JSC$15997_playerApiPromise,2);case 2:I=u.yieldResult;e=(T=E)==null?void 0:T.actions;if(!e)return u.return();c=_.p(e);Y=c.next();case 3:if(Y.done){u.jumpTo(0);break}v=Y.value;Z=y=void 0;if(!(((y=v)==null?0:y.entityKey)&&((Z=v)==null?0:Z.actionType))){u.jumpTo(4);break}P=_.IY(v.entityKey);z=P.entityId;m=P.entityType;return _.C(u,I.queueOfflineAction(z,m,v.actionType),4);case 4:Y=
c.next(),u.jumpTo(3)}})};
R4I=function(E,B){var I,T,e,c,Y;return _.a(function(v){if(v.nextAddress==1)return _.C(v,E.JSC$15997_prefStorage,2);if(v.nextAddress!=3)return(I=v.yieldResult)?_.C(v,I.get("psi"),3):v.return();T=v.yieldResult;Y={isPaused:B,lastSyncTimestamp:(c=(e=T)==null?void 0:e.lastSyncTimestamp)!=null?c:"0"};return _.C(v,I.set("psi",Y),0)})};
KhI=function(E){var B=_.Q().resolve(_.AS),I,T,e,c,Y,v,y,Z;return _.a(function(P){switch(P.nextAddress){case 1:return _.C(P,B.JSC$15997_playerApiPromise,2);case 2:I=P.yieldResult;e=((T=E)==null?void 0:T.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((v=E)==null?void 0:v.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":c="!*$_ALL_ENTITIES_!*$";Y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return P.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return P.jumpTo(4)}P.jumpTo(5);break;case 3:return _.C(P,R4I(B,e),6);case 6:P.jumpTo(5);break;case 4:return _.C(P,K0s(B,(y=E)==null?void 0:y.videoId),7);case 7:P.yieldResult&&(c=(Z=E)==null?void 0:Z.videoId,Y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");P.jumpTo(5);break;case 5:if(c&&Y)return _.C(P,I.queueOfflineAction(c,"videoPlaybackPositionEntity",Y),0);P.jumpTo(0)}})};
E3T=function(E,B){var I;B!==1||((I=E.currentPersistentToast)==null?0:I.opened)?E.openToast():E.currentPersistentToast=void 0};
BAt=function(){var E,B,I,T;return _.a(function(e){if(e.nextAddress==1)return E=navigator,(B=E.storage)!=null&&B.persisted?_.C(e,(I=E.storage)==null?void 0:I.persisted(),2):e.return("PERSISTED_STATE_NOT_SUPPORTED");T=e.yieldResult;return e.return(T?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
$Nd=function(){var E,B,I,T;return _.a(function(e){if(e.nextAddress==1)return E=navigator,(B=E.storage)!=null&&B.persist?_.C(e,(I=E.storage)==null?void 0:I.persist(),2):e.return("PERSISTED_STATE_NOT_SUPPORTED");T=e.yieldResult;return e.return(T?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
IQ1=function(){var E,B;return _.a(function(I){switch(I.nextAddress){case 1:return E="PERSISTED_STATE_NOT_SUPPORTED",_.q7(I,2),_.C(I,BAt(),4);case 4:E=I.yieldResult;if(E!=="PERSISTED_STATE_NOT_GRANTED"){I.jumpTo(5);break}return _.C(I,$Nd(),6);case 6:E=I.yieldResult;case 5:_.W7(I,3);break;case 2:B=_.RG(I),B instanceof Error&&_.xV(B);case 3:return _.hK("persistentStorageStateChecked",{persistedState:E}),I.return(E)}})};
TA1=function(E,B){var I=[],T=!1;B=_.p(B);for(var e=B.next();!e.done;e=B.next()){e=E.moduleRegistry[e.value];var c=void 0,Y=void 0;((c=e)==null?0:c.isFetching)&&((Y=e)==null?0:Y.resolver)?(I.push(e.resolver.promise),T=!0):(e=new _.Tv,e.resolve(void 0),I.push(e.promise))}return T?Promise.all(I):void 0};
ebs=function(E,B,I){I=I===void 0?{}:I;var T=E.defaultViewTransitionOptions,e=B.map(function(Y){return Y.beforeTransition}),c=B.map(function(Y){return Y.afterTransition});
return Object.assign({},T,I,{beforeTransition:function(){var Y;(Y=T.beforeTransition)==null||Y.call(T);var v,y;(y=(v=I).beforeTransition)==null||y.call(v);Y=_.p(e);for(v=Y.next();!v.done;v=Y.next())v=v.value,v()},
afterTransition:function(){var Y;(Y=T.afterTransition)==null||Y.call(T);var v,y;(y=(v=I).afterTransition)==null||y.call(v);Y=_.p(c);for(v=Y.next();!v.done;v=Y.next())v=v.value,v()}})};
lQ8=function(E,B,I){var T,e,c,Y,v,y,Z;_.a(function(P){if(E.config.disableAllTransitions)return P.return(B());if((T=I)==null||!T.transitionName)return P.return(_.Qd2(B,(e=I)==null?void 0:e.viewTransitionOptions));c=I;Y=c.transitionName;v=c.viewTransitionOptions;y=E.config.transitionConfigs.get(Y);if(!y)return P.return(B());var z;Z=(z=E.transitionTasksMap.get(Y))!=null?z:[];return P.return(_.Qd2(B,ebs(y,Z,v)))})};
TY=function(E,B,I){E.transitionTasksMap.has(B)?E.transitionTasksMap.get(B).push(I):(E=new _.P7("Transition task registered for unknown transition name",B),_.xV(E))};
ckd=function(E,B,I){if(E.isInitialized()){var T=fP(I),e=T==="watch";T=T==="shorts";var c=fP(B)==="watch";if(e)c||(E.backgroundPageData=B),E.watchPipMode&&c||E.deactivate(I.endpoint);else if(T){if(fP(B)!=="shorts"){var Y;(Y=E.getPlayerElement())==null||Y.pause()}}else c&&!E.watchPipMode&&(qFI(B,I)?(E.watchWhileMode&&_.x7T(E,!1),_.QGm(E,B)):E.isMiniplayerActive()&&E.watchWhileMode&&E.deactivate());c&&_.OrL(E);E.shortsPipMode&&!T&&(window.focus(),E.deactivate());if(T&&E.shortsPipEnabled||e&&E.watchPipEnabled)_.hXc(E.handleMediaSessionPipActivation);
else if(!E.isMiniplayerActive()&&(E.shortsPipEnabled||E.watchPipEnabled)&&_.Oc()&&_.Yci("Chromium")>=120){E=_.dbQ().mediaSession;try{E.setActionHandler("enterpictureinpicture",null)}catch(v){}}}};
ips=function(E,B){var I,T;_.a(function(e){if(e.nextAddress==1){if(!E||!E.navigationEndpoint)return e.return();_.vx().lockupActivation=!0;var c;B?c=_.jj(_.yu("QUEUE",void 0,"Queue")):c=E.longBylineText;T=(I=c)&&E.title?{miniplayerTitle:E.title,miniplayerSubtitle:I,playlistData:null}:void 0;return _.C(e,_.A8N(_.Q().resolve(_.W3),E.navigationEndpoint,!0,T),2)}_.vx().userActivation=!0;_.ER(e)})};
kaH=function(E,B){var I,T,e,c,Y,v;_.a(function(y){if(y.nextAddress==1){I=_.h(B,_.twZ);if(!I||!I.listId)return y.return();E.index=I.index||E.index||0;T=E.response&&E.response.playingVideoId||void 0;return _.C(y,_.cF6(E.JSC$10686_playlistNetworkManager,I.listId,E.index,T),2)}e=y.yieldResult;if(!e)return y.return();c=e.playlistId;Y=e.playlistPanelRenderer;!E.queueProxy&&c&&Y&&c.startsWith("TLPQ")&&(E.queueProxy=new _.OA(E.JSC$10686_playlistNetworkManager,c,E.setPlaylistData.bind(E),E.clearQueue.bind(E),
_.e8c(Y),E.storage));if(I.openMiniplayer&&(v=_.lGc(Y))&&!E.pageManager.isOnWatch()){var Z=v,P=I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";E.isMiniplayerActive()?E.openToast(Z):ips(Z,P)}E.setPlaylistData(c,Y,e.autoplayRenderer);_.ER(y)})};
Alm=function(E,B){var I=_.Wx();I.index===void 0&&(I.index=0);I.temporaryItems.push.apply(I.temporaryItems,_.ad(E));if((B.videoId||B.videoIds)&&I.index!==void 0&&B.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!I.queueProxy){var T=[];if(I.response){var e=_.Q().resolve(_.W3).isMiniplayerActive();if(I.response.playlistPanelRenderer&&I.response.playlistId&&!I.response.playlistId.startsWith("TLPQ")){if(I.pageManager.isOnWatch()||e)T=_.e8c(I.response.playlistPanelRenderer)}else I.response.playingVideoId&&
!B.openMiniplayer?T.push(I.response.playingVideoId):e&&I.response.playingVideoId&&B.openMiniplayer&&T.push(I.response.playingVideoId)}I.queueProxy=new _.OA(I.JSC$10686_playlistNetworkManager,"",I.setPlaylistData.bind(I),I.clearQueue.bind(I),T,I.storage);I.queueProxy.JSC$10632_setCurrentIndex(I.index)}I.queueProxy.addVideos(B.videoIds||[B.videoId],B)}IxI(I,E);I.response&&_.XA(I,_.rB(I,I.response.autoplayRenderer));I.pageManager.isOnWatch()?I.isMiniplayerActive()&&I.openToast(E[0]):(E=E[0],B=B.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",I.isMiniplayerActive()?I.openToast(E):ips(E,B))};
p$t=function(E){var B=_.cm(E);if(B=="object"||B=="array"){if(typeof E.clone==="function")return E.clone();if(typeof Map!=="undefined"&&E instanceof Map)return new Map(E);if(typeof Set!=="undefined"&&E instanceof Set)return new Set(E);B=B=="array"?[]:{};for(var I in E)B[I]=p$t(E[I]);return B}return E};
e8=function(E,B){return _.qcd(_.wV(E,B,void 0,_.Ca))};
lw=function(E,B){return _.m2(_.wV(E,B,void 0,_.Ca))};
cK=function(E,B){return _.CDJ(_.wV(E,B,void 0,_.Ca))};
iw=function(E,B){return _.wV(E,B,void 0,_.Ca,_.lL)};
Y1t=_.J5(function(E,B,I){if(E.nextWireType_!==0)return!1;_.W9(B,I,_.Wf(E.decoder_,_.DX));return!0},_.oh,_.bq);
aQ2=_.J5(function(E,B,I,T){if(E.nextWireType_!==0)return!1;_.mp(B,I,T,_.Wf(E.decoder_,_.DX));return!0},_.oh,_.bq);
v3H=_.J5(function(E,B,I){if(E.nextWireType_!==1)return!1;var T=E.decoder_;E=_.rV(T);T=_.rV(T);E=_.qt(E,T);_.W9(B,I,E);return!0},_.f1Q,_.CHF);
yks=_.J5(function(E,B,I){if(E.nextWireType_!==5)return!1;_.W9(B,I,_.rV(E.decoder_));return!0},function(E,B,I){B=_.hH(B);
B!=null&&(_.X5(E,I,5),_.bh(E.encoder_,B))},_.dF());
C0L=_.J5(function(E,B,I){if(E.nextWireType_!==0)return!1;E=_.qJi(E.decoder_);_.W9(B,I,E===!1?void 0:E);return!0},_.VtG,_.aJc);
w$7=_.J5(function(E,B,I){if(E.nextWireType_!==2)return!1;E=_.Bci(E);_.W9(B,I,E===""?void 0:E);return!0},_.F2G,_.vdf);
ZpT=_.J5(function(E,B,I){if(E.nextWireType_!==2)return!1;E=_.$vi(E);_.W9(B,I,E===_.SN()?void 0:E);return!0},_.K2d,_.ZZJ);
P0T=_.Xm4(function(E,B,I){if(E.nextWireType_!==0&&E.nextWireType_!==2)return!1;B=_.v9(B,B[_.sZ]|0,I);E.nextWireType_==2?_.IJd(E,H$8,B):B.push(_.XG(E.decoder_));return!0},function(E,B,I){B=_.W2c(_.m2,B,!0);
if(B!=null&&B.length){I=_.yHJ(E,I);for(var T=0;T<B.length;T++)_.UIG(E.encoder_,B[T]);_.CLG(E,I)}},_.PH6);
zbs=_.J5(function(E,B,I){if(E.nextWireType_!==0)return!1;E=_.XG(E.decoder_);_.W9(B,I,E===0?void 0:E);return!0},_.ROi,_.PH6);
mNs=_.J5(function(E,B,I,T){if(E.nextWireType_!==0)return!1;_.mp(B,I,T,_.XG(E.decoder_));return!0},_.ROi,_.PH6);
_.gf=function(E){this.privateDoNotAccessOrElseWrappedStyleSheet=E};
_.gf.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var Kr7=function(E,B){return new _.Cb(E.x+B.x,E.y+B.y)},QSL=function(E){return E.previousElementSibling!==void 0?E.previousElementSibling:_.hOV(E.previousSibling,!1)},dN8=function(E,B){var I=[];
for(B=B||0;B<E.length;B+=2)_.aKN(E[B],E[B+1],I);return I.join("&")},hbd=function(E,B){var I=arguments.length==2?dN8(arguments[1],0):dN8(arguments,1);
return _.YXZ(E,I)},sS9=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(sS9,_.LX);sS9.prototype.getValue=function(){var E=_.wV(this,2);if(Array.isArray(E)||E instanceof _.LX)throw Error("aa");return _.zO(this,2)};
var zSI=function(){var E=_.B8();this.JSC$7798_streamzService=E;E.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Vl("channel_type"))};
zSI.prototype.increment=function(E){this.JSC$7798_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",E)};
var mU9=function(){var E=_.B8();this.JSC$7801_streamzService=E;E.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Vl("channel_type"))};
mU9.prototype.increment=function(E){this.JSC$7801_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",E)};
var dUs=function(){var E=_.B8();this.JSC$7804_streamzService=E;E.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Vl("channel_type"))};
dUs.prototype.increment=function(E){this.JSC$7804_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",E)};
var QOL=function(){var E=_.B8();this.JSC$7807_streamzService=E;E.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
QOL.prototype.increment=function(){this.JSC$7807_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var hS1=function(){var E=_.B8();this.JSC$7810_streamzService=E;E.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Vl("channel_type"),_.Vl("error_type"))};
hS1.prototype.increment=function(E,B){this.JSC$7810_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",E,B)};
var sOO=function(){var E=_.B8();this.JSC$7813_streamzService=E;E.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
sOO.prototype.increment=function(){this.JSC$7813_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var u$s=function(){var E=_.B8();this.JSC$7816_streamzService=E;E.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
u$s.prototype.increment=function(){this.JSC$7816_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var P62=function(){var E=_.B8();this.JSC$7822_streamzService=E;E.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
P62.prototype.increment=function(){this.JSC$7822_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var uZ7=function(E){return E.getCount&&typeof E.getCount=="function"?E.getCount():_.Di(E)||typeof E==="string"?E.length:_.a_.getCount(E)},LaL=function(E,B){if(typeof E.every=="function")return E.every(B,void 0);
if(_.Di(E)||typeof E==="string")return Array.prototype.every.call(E,B,void 0);for(var I=_.$S$(E),T=_.q0(E),e=T.length,c=0;c<e;c++)if(!B.call(void 0,T[c],I&&I[c],E))return!1;return!0},xNT=function(E,B,I,T){var e=new _.tQ(null);
E&&_.F6(e,E);B&&_.DF(e,B);I&&_.KS(e,I);T&&_.R8(e,T);return e},GIg=function(){var E=_.M_&&tY(_.CKN,10)>=0,B;
if(B=_.ivi)B=tY(_.ygZ,10)>=0;var I=_.ar&&tY(_.CKN,85)>=0;return _.iq||E||B||I},OpI=function(E){var B=_.k7r(E);
return B&&GIg()?-E.scrollLeft:B&&_.Mm(E,"overflowX")!="visible"?E.scrollWidth-E.clientWidth-E.scrollLeft:E.scrollLeft},n3I=function(E,B){B=Math.max(B,0);
_.k7r(E)?GIg()?E.scrollLeft=-B:E.scrollLeft=E.scrollWidth-B-E.clientWidth:E.scrollLeft=B},Y4g=0,wnI=!1;
qj.prototype.set=function(E){this.relativeTimeStart_=E};
qj.prototype.reset=function(){this.set(_.Bf())};
qj.prototype.get=function(){return this.relativeTimeStart_};
var Mx2=null,HpH=function(){Mx2||(Mx2=new qj)},NAI=function(){Mx2||(Mx2=new qj)};
_.$U(NAI,HpH);_.l=Pyg.prototype;_.l.JSC$9149_buffer_="";_.l.set=function(E){this.JSC$9149_buffer_=""+E};
_.l.append=function(E,B,I){this.JSC$9149_buffer_+=String(E);if(B!=null)for(var T=1;T<arguments.length;T++)this.JSC$9149_buffer_+=arguments[T];return this};
_.l.clear=function(){this.JSC$9149_buffer_=""};
_.l.getLength=function(){return this.JSC$9149_buffer_.length};
_.l.toString=function(){return this.JSC$9149_buffer_};
var g3t=function(){var E={type:"unit",style:"narrow"};this.listType_=E&&E.type?E.type:"conjunction";this.listStyle_=E&&E.style?E.style:"long";this.listSymbols_=rds;E=0;switch(this.listStyle_){case "short":E=1;break;case "narrow":E=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[E];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[E];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[E];this.listEndPattern_=
this.listSymbols_.AND_END[E];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[E];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[E];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[E];this.listEndPattern_=this.listSymbols_.OR_END[E];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[E],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[E],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[E],this.listEndPattern_=this.listSymbols_.UNIT_END[E]}};
g3t.prototype.format=function(E){return S1O(this,E)};
var S1O=function(E,B){var I=B.length;switch(I){case 0:return"";case 1:return String(B[0]);case 2:return E.listTwoPattern_.replace("{0}",String(B[0])).replace("{1}",String(B[1]))}for(var T=E.listStartPattern_.replace("{0}",String(B[0])).replace("{1}",String(B[1])),e=2;e<I-1;++e)T=E.listMiddlePattern_.replace("{0}",T).replace("{1}",String(B[e]));return E.listEndPattern_.replace("{0}",T).replace("{1}",String(B[I-1]))},gv9=function(){var E={style:1};
this.style_=(E==null?void 0:E.style)||0;this.durationSymbols_=_.Jyt||_.qq6},Jkg=function(E,B){switch(B){default:case "years":return E.durationSymbols_.YEAR;
case "months":return E.durationSymbols_.MONTH;case "weeks":return E.durationSymbols_.WEEK;case "days":return E.durationSymbols_.DAY;case "hours":return E.durationSymbols_.HOUR;case "minutes":return E.durationSymbols_.MINUTE;case "seconds":return E.durationSymbols_.SECOND}},pW=function(E,B,I){a:{I=Jkg(E,I);
switch(E.style_){case 1:if(I.LONG!=void 0){E=I.LONG;break a}case 2:if(I.NARROW!=void 0){E=I.NARROW;break a}default:E=I.SHORT;break a}E=void 0}return E?(new _.P6R("{DURATION_VALUE,plural,"+E+"}")).format({DURATION_VALUE:B}):""};
gv9.prototype.format=function(E){var B=[],I=E.years,T=E.months,e=E.weeks,c=E.days,Y=E.hours,v=E.minutes;E=E.seconds;I!=null&&B.push(pW(this,I,"years"));T!=null&&B.push(pW(this,T,"months"));e!=null&&B.push(pW(this,e,"weeks"));c!=null&&B.push(pW(this,c,"days"));Y!=null&&B.push(pW(this,Y,"hours"));v!=null&&B.push(pW(this,v,"minutes"));E!=null&&B.push(pW(this,E,"seconds"));return(new g3t).format(B)};
var Wa9=!1,ugO=function(E){_.Ec.call(this,E.message||E.description||E.name);this.isMissing=E instanceof Fv;this.isTimeout=E instanceof _.WU&&E.errorCode=="net.timeout";this.isCanceled=E instanceof _.X$};
_.L(ugO,_.Ec);ugO.prototype.name="BiscottiError";var Fv=function(){_.Ec.call(this,"Biscotti ID is missing from server")};
_.L(Fv,_.Ec);Fv.prototype.name="BiscottiMissingError";var Dz=null,NYI=function(){try{var E=_.WA("yt.ads.biscotti.getId_");return E?E():ID8()}catch(B){return _.rG(B)}},N72,X$I=function(E){return _.BP({type:"SET_GUIDE_IS_EXPANDED",
payload:E})},rkd=function(E){return _.BP({type:"SET_ONLINE_STATUS",
payload:E})},bpO=function(E,B){return _.BP({type:"SET_TRANSCRIPTION_STATE",
payload:{high:E,low:B}})},o37=function(E){return _.BP({type:"SET_OVERLAY_STATE",
payload:E})},AkO=0,jSm=function(E,B,I){var T=this;
this.priority=B;this.delay=I;this.jobId=0;this.completionCallback=_.ZU;this.wrappedJob=function(){E();T.completionCallback()};
this.id=++AkO};
jSm.prototype.enqueue=function(E){this.completionCallback=E;this.jobId=_.Ll.addJob(this.wrappedJob,this.priority,this.delay)};
var YD=function(){_.EH.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.L(YD,_.EH);YD.prototype.addJob=function(E,B,I){E=new jSm(E,B,I);this.taskIdToTask.set(E.id,E);this.isActive?UN8(this,E):this.suspendedTasks.add(E);return E.id};
var UN8=function(E,B){E.scheduledTasks.add(B);B.enqueue(function(){E.scheduledTasks.delete(B)})};
YD.prototype.cancelJob=function(E){(E=this.taskIdToTask.get(E))&&(this.scheduledTasks.delete(E)?_.Ll.cancelJob(E.jobId):this.suspendedTasks.delete(E))};
YD.prototype.pause=function(){var E=this;this.isActive=!1;this.scheduledTasks.forEach(function(B){_.Ll.cancelJob(B.jobId);E.suspendedTasks.add(B)});
this.scheduledTasks.clear()};
YD.prototype.start=function(){var E=this;this.isActive=!0;this.suspendedTasks.forEach(function(B){UN8(E,B)});
this.suspendedTasks.clear()};
YD.prototype.reset=function(){this.scheduledTasks.forEach(function(E){_.Ll.cancelJob(E.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var aD=function(E,B){this.JSC$10810_networkService_=E;this.pageRequestPromise=B};
aD.prototype.fetchData=function(E){kIT(this,this.JSC$10810_networkService_.fetchData(E))};
aD.prototype.postData=function(E,B){kIT(this,this.JSC$10810_networkService_.postData(E,B))};
aD.prototype.requestDataForServiceEndpoint=function(E,B){kIT(this,this.JSC$10810_networkService_.requestDataForServiceEndpoint(E,B))};
var kIT=function(E,B){B.then(E.pageRequestPromise.onSuccess,E.pageRequestPromise.onFailure,E.pageRequestPromise)};
aD.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var vK=function(E){this.buildNetworkRequest_=E;this.pendingRequests_=new Set};
vK.prototype.reset=function(){this.pendingRequests_.forEach(function(E){E.cancel()});
this.pendingRequests_.clear()};
vK.prototype.fetchData=function(E){var B=txd(this);B.fetchData(E);return B.pageRequestPromise};
vK.prototype.postData=function(E,B){var I=txd(this);I.postData(E,B);return I.pageRequestPromise};
vK.prototype.requestDataForServiceEndpoint=function(E,B){var I=txd(this);I.requestDataForServiceEndpoint(E,B);return I.pageRequestPromise};
var txd=function(E){var B=E.buildNetworkRequest_();E.pendingRequests_.add(B);var I=function(){E.pendingRequests_.delete(B)};
B.pageRequestPromise.then(I,I);return B},fQ8=function(E){var B=new YD;
this.JSC$10817_networkService_=E;this.JSC$10817_taskManager_=B;this.JSC$10817_networkManager_=new vK(this.networkRequestFactory_.bind(this))};
_.l=fQ8.prototype;_.l.networkRequestFactory_=function(){return new aD(this.JSC$10817_networkService_,new _.K_(this.JSC$10817_taskManager_))};
_.l.reset=function(){this.JSC$10817_taskManager_.reset();this.JSC$10817_networkManager_.reset()};
_.l.start=function(){this.JSC$10817_taskManager_.start()};
_.l.pause=function(){this.JSC$10817_taskManager_.pause()};
_.l.getTaskManager=function(){return this.JSC$10817_taskManager_};
_.l.getNetworkManager=function(){return this.JSC$10817_networkManager_};
var rI1=null,AIO=[],Ro=0,Bv=0,Em=null,Vx7=function(){var E=(0,_.RQN)();E&&o78(E,E.mechanism.__iterator__(!0))},IV=function(E){this.token=E};
IV.getInstance=function(){var E;return _.a(function(B){if(B.nextAddress==1)return _.C(B,_.tg(),2);E=B.yieldResult;if(!E)return B.return();IV.instance||(IV.instance=new IV(E));return B.return(IV.instance)})};
var VnI=function(E){var B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,kG8(E.token),2);B=I.yieldResult;return I.return(B.clear("resource-manifest-assets"))})},$z=function(E){this.token=E};
$z.getInstance=function(){var E;return _.a(function(B){if(B.nextAddress==1)return _.C(B,_.tg(),2);E=B.yieldResult;if(!E)return B.return();$z.instance||($z.instance=new $z(E));return B.return($z.instance)})};
var tns=function(E){var B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,kG8(E.token),2);B=I.yieldResult;return _.C(I,B.clear("auth"),0)})},q1t=!1,T3=null,cKO=void 0,ZiL=!1,FaO=function(E){_.Ec.call(this,E)};
_.L(FaO,_.FCt);var pNT=function(){var E=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return E?parseInt(E[1],10):0},DN1=function(E){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+E)!=-1||document.currentScript.src.indexOf("&"+E)!=-1)},KaI=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},C1m=function(E){E.length?RbL(E.shift(),function(){C1m(E)}):aB2()},ZO1=function(E){return"chrome-extension://"+E+"/cast_sender.js"},RbL=function(E,
B,I){var T=document.createElement("script");
T.onerror=B;I&&(T.onload=I);_.nr(T,_.Pp(E));(document.head||document.documentElement).appendChild(T)},E47=function(){var E=pNT(),B=[];
if(E>1){var I=E-1;B.push("//www.gstatic.com/eureka/clank/"+E+"/cast_sender.js");B.push("//www.gstatic.com/eureka/clank/"+I+"/cast_sender.js")}return B},aB2=function(){var E=KaI();
E&&E(!1,"No cast extension found")},ylH=function(){if(BTT){var E=2,B=KaI(),I=function(){E--;
E==0&&B&&B(!0)};
window.__onGCastApiAvailable=I;RbL("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",aB2,I)}},YKd=function(){ylH();
var E=E47();E.push("//www.gstatic.com/eureka/clank/cast_sender.js");C1m(E)},vOI=function(){ylH();
var E=E47();E.push.apply(E,_.ad(wNI.map(ZO1)));E.push("//www.gstatic.com/eureka/clank/cast_sender.js");C1m(E)},BTT=DN1("loadCastFramework")||DN1("loadCastApplicationFramework"),wNI=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var $HT=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L($HT,_.LX);var IR1=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(IR1,_.LX);var TTs=function(){var E=new IR1;return _.Si(E,1,3)};var yn=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(yn,_.LX);var TlH=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(TlH,_.LX);var eL8=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(eL8,_.LX);eL8.prototype.getToken=function(){return _.O8(this,1)};
eL8.prototype.setToken=function(E){return _.Fz(this,1,E)};
var $qt=function(E){return _.ea(E,3,_.St,_.Ux())},IA8=function(E){return _.ea(E,6,_.St,_.Ux())};var CW=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(CW,_.LX);CW.prototype.getToken=function(){return _.DZ(this,eL8,2)};
CW.prototype.setToken=function(E){return _.fX(this,2,E)};
CW.prototype.getName=function(){return _.O8(this,6)};
var lRg=_.ky(CW);var cM1=function(E,B,I){this.requestMessage=E;this.methodDescriptor=B;this.metadata=I};
cM1.prototype.getMetadata=function(){return this.metadata};var ieI=function(E,B){B=B===void 0?{}:B;this.responseMessage=E;this.metadata=B;this.status=null};
ieI.prototype.getMetadata=function(){return this.metadata};
ieI.prototype.getStatus=function(){return this.status};var wn=function(E,B,I,T,e){this.name=E;this.methodType="unary";this.requestType=B;this.responseType=I;this.requestSerializeFn=T;this.responseDeserializeFn=e},pEg=function(E,B,I){I=I===void 0?{}:I;
return new cM1(B,E,I)};
wn.prototype.getName=function(){return this.name};var Zf=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Zf,_.LX);Zf.prototype.setHeader=function(E){return _.fX(this,1,E)};
Zf.prototype.hasHeader=function(){return _.Zc(this,yn,1)};var YOL=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(YOL,_.LX);var aR2=new wn("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Zf,YOL,function(E){return E.serialize()},_.ky(YOL));var PK=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(PK,_.LX);PK.prototype.setHeader=function(E){return _.fX(this,1,E)};
PK.prototype.hasHeader=function(){return _.Zc(this,yn,1)};var v4L=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(v4L,_.LX);var yM2=new wn("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",PK,v4L,function(E){return E.serialize()},_.ky(v4L));var zY=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(zY,_.LX);zY.prototype.setHeader=function(E){return _.fX(this,1,E)};
zY.prototype.hasHeader=function(){return _.Zc(this,yn,1)};var COd=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(COd,_.LX);COd.prototype.getLink=function(){return _.DZ(this,CW,1)};var wEO=new wn("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",zY,COd,function(E){return E.serialize()},_.ky(COd));var mC=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(mC,_.LX);mC.prototype.setHeader=function(E){return _.fX(this,1,E)};
mC.prototype.hasHeader=function(){return _.Zc(this,yn,1)};var Ze9=new wn("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",mC,CW,function(E){return E.serialize()},lRg);var POT=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(POT,_.LX);var zLm=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(zLm,_.LX);zLm.prototype.getUrl=function(){return _.O8(this,2)};
zLm.prototype.setUrl=function(E){return _.Fz(this,2,E)};var mH1=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(mH1,_.LX);var QLH=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(QLH,_.LX);var dHd=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(dHd,_.LX);var wuL=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(wuL,_.LX);var CZ8=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(CZ8,_.LX);var hLm=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(hLm,_.LX);var h0m=_.ky(hLm);var sL7=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(sL7,_.LX);var Qn=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Qn,_.LX);Qn.prototype.setHeader=function(E){return _.fX(this,1,E)};
Qn.prototype.hasHeader=function(){return _.Zc(this,yn,1)};
Qn.prototype.getCompletionUrl=function(){return _.O8(this,6)};
Qn.prototype.getDeviceId=function(){return _.O8(this,11)};var u3L=new wn("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Qn,hLm,function(E){return E.serialize()},h0m);var LV8=new Set(["SAPISIDHASH","APISIDHASH"]);var xHO=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(xHO,_.LX);xHO.prototype.getMessage=function(){return _.O8(this,2)};
var G88=_.ky(xHO);var dn=function(E,B){this.xhrNodeReadableStream_=E.nodeReadableStream;this.grpcResponseDeserializeFn_=B;this.JSC$16913_xhr_=E.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16913_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&OeI(this)},SOI=function(E,B){var I=new n4T;
_.vV(E.JSC$16913_xhr_,"complete",function(){if(E.JSC$16913_xhr_.isSuccess()){var T=E.JSC$16913_xhr_.getResponseText();var e;if(e=B)e=E.JSC$16913_xhr_,e.JSC$7680_xhr_&&e.isComplete()?(e=e.JSC$7680_xhr_.getResponseHeader("Content-Type"),e=e===null?void 0:e):e=void 0,e=e==="text/plain";if(e){if(!atob)throw Error("Jj");T=atob(T)}try{var c=E.grpcResponseDeserializeFn_(T)}catch(v){hE(E,jHH(new _.LS(13,"Error when deserializing response data; error: "+v+(", response: "+T)),I));return}T=_.R_(E.JSC$16913_xhr_.getStatus());
MfI(E,Het(E));T==0?NTT(E,c):hE(E,jHH(new _.LS(T,"Xhr succeeded but the status code is not 200"),I))}else{T=E.JSC$16913_xhr_.getResponseText();c=Het(E);if(T){var Y=g4d(E,T);T=Y.code;e=Y.details;Y=Y.metadata}else T=2,e="Rpc failed due to xhr error. uri: "+String(E.JSC$16913_xhr_.JSC$7680_lastUri_)+", error code: "+E.JSC$16913_xhr_.JSC$7680_lastErrorCode_+", error: "+E.JSC$16913_xhr_.getLastError(),Y=c;MfI(E,c);hE(E,jHH(new _.LS(T,e,Y),I))}})},OeI=function(E){E.xhrNodeReadableStream_.on("data",function(B){if("1"in
B){var I=B["1"];
try{var T=E.grpcResponseDeserializeFn_(I)}catch(e){hE(E,new _.LS(13,"Error when deserializing response data; error: "+e+(", response: "+I)))}T&&NTT(E,T)}if("2"in B)for(B=g4d(E,B["2"]),I=0;I<E.onStatusCallbacks_.length;I++)E.onStatusCallbacks_[I](B)});
E.xhrNodeReadableStream_.on("end",function(){MfI(E,Het(E));for(var B=0;B<E.onEndCallbacks_.length;B++)E.onEndCallbacks_[B]()});
E.xhrNodeReadableStream_.on("error",function(){if(E.JSC$16913_onErrorCallbacks_.length!=0){var B=E.JSC$16913_xhr_.JSC$7680_lastErrorCode_;B!==0||E.JSC$16913_xhr_.isSuccess()||(B=6);var I=-1;switch(B){case 0:var T=2;break;case 7:T=10;break;case 8:T=4;break;case 6:I=E.JSC$16913_xhr_.getStatus();T=_.R_(I);break;default:T=14}MfI(E,Het(E));B=_.SRV(B)+", error: "+E.JSC$16913_xhr_.getLastError();I!=-1&&(B+=", http status code: "+I);hE(E,new _.LS(T,B))}})},Het=function(E){var B={},I=WBd(E.JSC$16913_xhr_);
Object.keys(I).forEach(function(T){B[T]=I[T]});
return B},g4d=function(E,B){var I=2,T={};
try{var e=G88(B);I=_.kr(e,1);var c=e.getMessage();_.jC(e,sS9,3,_.Ux()).length&&(T["grpc-web-status-details-bin"]=B)}catch(Y){E.JSC$16913_xhr_&&E.JSC$16913_xhr_.getStatus()===404?(I=5,c="Not Found: "+String(E.JSC$16913_xhr_.JSC$7680_lastUri_)):(I=14,c="Unable to parse RpcStatus: "+Y)}return{code:I,details:c,metadata:T}};
dn.prototype.on=function(E,B){E=="data"?this.onDataCallbacks_.push(B):E=="metadata"?this.onMetadataCallbacks_.push(B):E=="status"?this.onStatusCallbacks_.push(B):E=="end"?this.onEndCallbacks_.push(B):E=="error"&&this.JSC$16913_onErrorCallbacks_.push(B);return this};
var sn=function(E,B){B=E.indexOf(B);B>-1&&E.splice(B,1)};
dn.prototype.removeListener=function(E,B){E=="data"?sn(this.onDataCallbacks_,B):E=="metadata"?sn(this.onMetadataCallbacks_,B):E=="status"?sn(this.onStatusCallbacks_,B):E=="end"?sn(this.onEndCallbacks_,B):E=="error"&&sn(this.JSC$16913_onErrorCallbacks_,B);return this};
dn.prototype.cancel=function(){this.JSC$16913_xhr_.abort()};
var NTT=function(E,B){for(var I=0;I<E.onDataCallbacks_.length;I++)E.onDataCallbacks_[I](B)},MfI=function(E,B){for(var I=0;I<E.onMetadataCallbacks_.length;I++)E.onMetadataCallbacks_[I](B)},hE=function(E,B){for(var I=0;I<E.JSC$16913_onErrorCallbacks_.length;I++)E.JSC$16913_onErrorCallbacks_[I](B)};
dn.prototype.cancel=dn.prototype.cancel;dn.prototype.removeListener=dn.prototype.removeListener;dn.prototype.on=dn.prototype.on;var n4T=function(){var E=Error.call(this);this.message=E.message;"stack"in E&&(this.stack=E.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.L(n4T,Error);var uw=function(E){this.JSC$16922_worker_=E.worker||null;this.JSC$16922_streamBinaryChunks_=E.streamBinaryChunks||!1;this.JSC$16922_credentialsMode_=void 0};
_.$U(uw,_.DmB);uw.prototype.createInstance=function(){var E=new LW(this.JSC$16922_worker_,this.JSC$16922_streamBinaryChunks_);this.JSC$16922_credentialsMode_&&E.setCredentialsMode(this.JSC$16922_credentialsMode_);return E};
uw.prototype.setCredentialsMode=function(E){this.JSC$16922_credentialsMode_=E};
var LW=function(E,B){_.ms.call(this);this.JSC$16926_worker_=E;this.JSC$16926_streamBinaryChunks_=B;this.JSC$16926_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$16926_responseHeaders_=null;this.JSC$16926_method_="GET";this.JSC$16926_url_="";this.inProgress_=!1;this.JSC$16926_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.$U(LW,_.ms);LW.prototype.open=function(E,B){if(this.readyState!=0)throw this.abort(),Error("Kj");this.JSC$16926_method_=E;this.JSC$16926_url_=B;this.readyState=1;xD(this)};
LW.prototype.send=function(E){if(this.readyState!=1)throw this.abort(),Error("Lj");this.inProgress_=!0;var B={headers:this.requestHeaders_,method:this.JSC$16926_method_,credentials:this.JSC$16926_credentialsMode_,cache:void 0};E&&(B.body=E);(this.JSC$16926_worker_||_.$i).fetch(new Request(this.JSC$16926_url_,B)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
LW.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,GY(this));this.readyState=0};
LW.prototype.handleResponse_=function(E){if(this.inProgress_&&(this.fetchResponse_=E,this.JSC$16926_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16926_responseHeaders_=E.headers,this.readyState=2,xD(this)),this.inProgress_&&(this.readyState=3,xD(this),this.inProgress_)))if(this.responseType==="arraybuffer")E.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.$i.ReadableStream!==
"undefined"&&"body"in E){this.currentReader_=E.body.getReader();if(this.JSC$16926_streamBinaryChunks_){if(this.responseType)throw Error("Mj");this.response=[]}else this.response=this.responseText="",this.JSC$16926_textDecoder_=new TextDecoder;JMI(this)}else E.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var JMI=function(E){E.currentReader_.read().then(E.handleDataFromStream_.bind(E)).catch(E.handleSendFailure_.bind(E))};
LW.prototype.handleDataFromStream_=function(E){if(this.inProgress_){if(this.JSC$16926_streamBinaryChunks_&&E.value)this.response.push(E.value);else if(!this.JSC$16926_streamBinaryChunks_){var B=E.value?E.value:new Uint8Array(0);if(B=this.JSC$16926_textDecoder_.decode(B,{stream:!E.done}))this.response=this.responseText+=B}E.done?GY(this):xD(this);this.readyState==3&&JMI(this)}};
LW.prototype.handleResponseText_=function(E){this.inProgress_&&(this.response=this.responseText=E,GY(this))};
LW.prototype.handleResponseArrayBuffer_=function(E){this.inProgress_&&(this.response=E,GY(this))};
LW.prototype.handleSendFailure_=function(){this.inProgress_&&GY(this)};
var GY=function(E){E.readyState=4;E.fetchResponse_=null;E.currentReader_=null;E.JSC$16926_textDecoder_=null;xD(E)};
LW.prototype.setRequestHeader=function(E,B){this.requestHeaders_.append(E,B)};
LW.prototype.getResponseHeader=function(E){return this.JSC$16926_responseHeaders_?this.JSC$16926_responseHeaders_.get(E.toLowerCase())||"":""};
LW.prototype.getAllResponseHeaders=function(){if(!this.JSC$16926_responseHeaders_)return"";for(var E=[],B=this.JSC$16926_responseHeaders_.entries(),I=B.next();!I.done;)I=I.value,E.push(I[0]+": "+I[1]),I=B.next();return E.join("\r\n")};
LW.prototype.setCredentialsMode=function(E){this.JSC$16926_credentialsMode_=E};
var xD=function(E){E.onreadystatechange&&E.onreadystatechange.call(E)};
Object.defineProperty(LW.prototype,"withCredentials",{get:function(){return this.JSC$16926_credentialsMode_==="include"},
set:function(E){this.setCredentialsMode(E?"include":"same-origin")}});var WVs=function(E){var B="";_.a_.forEach(E,function(I,T){B+=T;B+=":";B+=I;B+="\r\n"});
return B},XE7=function(E,B,I){if(_.a_.isEmpty(I))return E;
I=WVs(I);if(typeof E==="string")return _.bt(E,_.rU(B),I);_.Wp(E,B,I);return E};var rM1=function(){this.isInputValid_=!0;this.JSC$16932_streamPos_=0;this.leftoverInput_=""};
rM1.prototype.isInputValid=function(){return this.isInputValid_};var cv=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16935_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
cv.prototype.isInputValid=function(){return this.state_!=3};
var On=function(E,B,I,T){E.state_=3;E.errorMessage_="The stream is broken @"+E.JSC$16935_streamPos_+"/"+I+". Error: "+T+". With input:\n"+B;throw Error(E.errorMessage_);};
cv.prototype.acceptsBinaryInput=function(){return!0};
cv.prototype.parse=function(E){function B(y){y&128&&On(c,Y,v,"invalid tag");(y&7)!=2&&On(c,Y,v,"invalid wire type");c.tag_=y>>>3;c.tag_!=1&&c.tag_!=2&&c.tag_!=15&&On(c,Y,v,"unexpected tag");c.state_=1;c.length_=0;c.countLengthBytes_=0}
function I(y){c.countLengthBytes_++;c.countLengthBytes_==5&&y&240&&On(c,Y,v,"message length too long");c.length_|=(y&127)<<(c.countLengthBytes_-1)*7;y&128||(c.state_=2,c.countMessageBytes_=0,typeof Uint8Array!=="undefined"?c.messageBuffer_=new Uint8Array(c.length_):c.messageBuffer_=Array(c.length_),c.length_==0&&e())}
function T(y){c.messageBuffer_[c.countMessageBytes_++]=y;c.countMessageBytes_==c.length_&&e()}
function e(){if(c.tag_<15){var y={};y[c.tag_]=c.messageBuffer_;c.result_.push(y)}c.state_=0}
for(var c=this,Y=E instanceof Array?E:new Uint8Array(E),v=0;v<Y.length;){switch(c.state_){case 3:On(c,Y,v,"stream already broken");break;case 0:B(Y[v]);break;case 1:I(Y[v]);break;case 2:T(Y[v]);break;default:throw Error("Oj`"+c.state_);}c.JSC$16935_streamPos_++;v++}E=c.result_;c.result_=[];return E.length>0?E:null};var kF9=function(){this.errorMessage_=null;this.JSC$16938_streamPos_=0;this.base64Decoder_=new rM1;this.pbParser_=new cv};
kF9.prototype.isInputValid=function(){return this.errorMessage_===null};
var bes=function(E,B,I){E.errorMessage_="The stream is broken @"+E.JSC$16938_streamPos_+". Error: "+I+". With input:\n"+B;throw Error(E.errorMessage_);};
kF9.prototype.acceptsBinaryInput=function(){return!1};
kF9.prototype.parse=function(E){this.errorMessage_!==null&&bes(this,E,"stream already broken");var B=null;try{var I=this.base64Decoder_;if(!I.isInputValid_)throw I.isInputValid_=!1,Error("Nj`"+I.JSC$16932_streamPos_+"`stream already broken`"+E);I.leftoverInput_+=E;var T=Math.floor(I.leftoverInput_.length/4);if(T==0)var e=null;else{try{var c=_.qhQ(I.leftoverInput_.slice(0,T*4))}catch(y){var Y=I.leftoverInput_,v=y.message;I.isInputValid_=!1;throw Error("Nj`"+I.JSC$16932_streamPos_+"`"+v+"`"+Y);}I.JSC$16932_streamPos_+=
T*4;I.leftoverInput_=I.leftoverInput_.slice(T*4);e=c}B=e===null?null:this.pbParser_.parse(e)}catch(y){bes(this,E,y.message)}this.JSC$16938_streamPos_+=E.length;return B};var UW8=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16941_streamPos_=0;this.result_=[];this.statusParsed_=!1};
UW8.prototype.isInputValid=function(){return this.errorMessage_===null};
UW8.prototype.acceptsBinaryInput=function(){return!1};
UW8.prototype.parse=function(E){function B(y){c.state_=6;c.errorMessage_="The stream is broken @"+c.JSC$16941_streamPos_+"/"+Y+". Error: "+y+". With input:\n";throw Error(c.errorMessage_);}
function I(){c.jsonStreamParser_=new _.IA({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function T(y){if(y)for(var Z=0;Z<y.length;Z++){var P={};P[1]=y[Z];c.result_.push(P)}}
function e(y){if(y){(c.statusParsed_||y.length>1)&&B("extra status: "+y);c.statusParsed_=!0;var Z={};Z[2]=y[0];c.result_.push(Z)}}
for(var c=this,Y=0;Y<E.length;){var v;if(v=c.state_!==2){a:{for(;Y<E.length;){if(!_.$f(E[Y])){v=!0;break a}Y++;c.JSC$16941_streamPos_++}v=!1}v=!v}if(v)return null;switch(c.state_){case 6:B("stream already broken");break;case 0:E[Y]==="["?(c.state_=1,Y++,c.JSC$16941_streamPos_++):B("unexpected input token");break;case 1:E[Y]==="["?(c.state_=2,I()):E[Y]===","||E.slice(Y,Y+5)=="null,"?c.state_=3:E[Y]==="]"?(c.state_=5,Y++,c.JSC$16941_streamPos_++):B("unexpected input token");break;case 2:v=c.jsonStreamParser_.parse(E.substring(Y));
T(v);c.jsonStreamParser_.done()?(c.state_=3,v=c.jsonStreamParser_.JSC$9276_buffer_,c.JSC$16941_streamPos_+=E.length-Y-v.length,E=v,Y=0):(c.JSC$16941_streamPos_+=E.length-Y,Y=E.length);break;case 3:E[Y]===","||E.slice(Y,Y+5)=="null,"?(c.state_=4,I(),c.jsonStreamParser_.parse("["),Y+=E[Y]===","?1:5,c.JSC$16941_streamPos_++):E[Y]==="]"&&(c.state_=5,Y++,c.JSC$16941_streamPos_++);break;case 4:v=c.jsonStreamParser_.parse(E.substring(Y));e(v);c.jsonStreamParser_.done()?(c.state_=5,v=c.jsonStreamParser_.JSC$9276_buffer_,
c.JSC$16941_streamPos_+=E.length-Y-v.length,E=v,Y=0):(c.JSC$16941_streamPos_+=E.length-Y,Y=E.length);break;case 5:B("extra input after stream end")}}return c.result_.length>0?(E=c.result_,c.result_=[],E):null};var o42=function(E){this.JSC$16944_xhr_=E;this.JSC$16944_parser_=null;this.status_=this.JSC$16944_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16944_textDecoder_=null;this.JSC$16944_eventHandler_=new _.DA(this);this.JSC$16944_eventHandler_.listen(this.JSC$16944_xhr_,"readystatechange",this.JSC$16946_readyStateChangeHandler_)},nW=function(E,B){E.status_!=B&&(E.status_=B,E.statusHandler_&&E.statusHandler_())},Ma=function(E){E.JSC$16944_eventHandler_.removeAll();
if(E.JSC$16944_xhr_){var B=E.JSC$16944_xhr_;E.JSC$16944_xhr_=null;B.abort();B.dispose()}};
o42.prototype.getStatus=function(){return this.status_};
o42.prototype.JSC$16946_readyStateChangeHandler_=function(E){E=E.target;try{if(E==this.JSC$16944_xhr_)a:{var B=_.Ok(this.JSC$16944_xhr_),I=this.JSC$16944_xhr_.JSC$7680_lastErrorCode_,T=this.JSC$16944_xhr_.getStatus(),e=this.JSC$16944_xhr_.getResponseText();E=[];if(this.JSC$16944_xhr_.getResponse()instanceof Array){var c=this.JSC$16944_xhr_.getResponse();c.length>0&&c[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,E=c)}if(!(B<3||B==3&&!e&&E.length==0))if(T=T==200||T==206,B==4&&(I==8?nW(this,
7):I==7?nW(this,8):T||nW(this,3)),this.JSC$16944_parser_||(this.JSC$16944_parser_=tsO(this.JSC$16944_xhr_),this.JSC$16944_parser_==null&&nW(this,5)),this.status_>2)Ma(this);else{if(E.length>this.JSC$16944_pos_){var Y=E.length;I=[];try{if(this.JSC$16944_parser_.acceptsBinaryInput())for(var v=0;v<Y;v++){var y=this.JSC$16944_parser_.parse(Array.from(E[v]));y&&(I=I.concat(y))}else{y="";if(!this.JSC$16944_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Pj");this.JSC$16944_textDecoder_=new TextDecoder}for(v=
0;v<Y;v++)y+=this.JSC$16944_textDecoder_.decode(E[v],{stream:B==4&&v==Y-1});I=this.JSC$16944_parser_.parse(y)}E.splice(0,Y);I&&this.dataHandler_(I)}catch(P){nW(this,5);Ma(this);break a}}else if(e.length>this.JSC$16944_pos_){v=e.slice(this.JSC$16944_pos_);this.JSC$16944_pos_=e.length;try{var Z=this.JSC$16944_parser_.parse(v);Z!=null&&this.dataHandler_&&this.dataHandler_(Z)}catch(P){nW(this,5);Ma(this);break a}}B==4?(e.length!=0||this.hasStreamingResponseData_?nW(this,2):nW(this,4),Ma(this)):nW(this,
1)}}}catch(P){nW(this,6),Ma(this)}};var AML=function(E){E=this.xhrReader_=E;var B=(0,_.w1)(this.onData_,this);E.dataHandler_=B;E=this.xhrReader_;B=(0,_.w1)(this.onStatusChange_,this);E.statusHandler_=B;this.JSC$16948_callbackMap_={};this.callbackOnceMap_={}};
_.l=AML.prototype;_.l.on=function(E,B){var I=this.JSC$16948_callbackMap_[E];I||(I=[],this.JSC$16948_callbackMap_[E]=I);I.push(B);return this};
_.l.addListener=function(E,B){this.on(E,B);return this};
_.l.removeListener=function(E,B){var I=this.JSC$16948_callbackMap_[E];I&&_.f4(I,B);(E=this.callbackOnceMap_[E])&&_.f4(E,B);return this};
_.l.once=function(E,B){var I=this.callbackOnceMap_[E];I||(I=[],this.callbackOnceMap_[E]=I);I.push(B);return this};
_.l.onData_=function(E){var B=this.JSC$16948_callbackMap_.data;B&&jLd(E,B);(B=this.callbackOnceMap_.data)&&jLd(E,B);this.callbackOnceMap_.data=[]};
var jLd=function(E,B){for(var I={},T=0;T<E.length;I={message$jscomp$969:void 0},T++)I.message$jscomp$969=E[T],B.forEach(function(e){return function(c){try{c(e.message$jscomp$969)}catch(Y){}}}(I))};
AML.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:UHO(this,"readable");break;case 5:case 6:case 4:case 7:case 3:UHO(this,"error");break;case 8:UHO(this,"close");break;case 2:UHO(this,"end")}};
var UHO=function(E,B){var I=E.JSC$16948_callbackMap_[B];I&&I.forEach(function(T){try{T()}catch(e){}});
(I=E.callbackOnceMap_[B])&&I.forEach(function(T){T()});
E.callbackOnceMap_[B]=[]};var k8I=function(){var E={format:"jspb"};E=E===void 0?{}:E;this.suppressCorsPreflight=E.suppressCorsPreflight||_.WA("suppressCorsPreflight",E)||!1;this.withCredentials=E.withCredentials||_.WA("withCredentials",E)||!1;this.streamInterceptors=E.streamInterceptors||[];this.unaryInterceptors=E.unaryInterceptors||[];this.workerScope=E.workerScope;this.chunkedServerStreaming=E.useFetchDownloadStreams||!1},VfH=function(E,B,I,T,e,c){c=c===void 0?{}:c;
var Y=B.substring(0,B.length-e.name.length),v,y=(v=c)==null?void 0:v.signal;return tfI(function(Z){return new Promise(function(P,z){if(y==null?0:y.aborted){var m=new _.LS(1,"Aborted");m.cause=y.reason;z(m)}else{var u={},x=fRI(E,Z,Y);x.on("error",function(M){return void z(M)});
x.on("metadata",function(M){u=M});
x.on("data",function(M){var N=u;N=N===void 0?{}:N;P(new ieI(M,N))});
y&&y.addEventListener("abort",function(){x.cancel();var M=new _.LS(1,"Aborted");M.cause=y.reason;z(M)})}})},E.unaryInterceptors).call(E,pEg(e,I,T)).then(function(Z){return Z.responseMessage})},HK=function(E,B,I,T,e){var c=c===void 0?{}:c;
return VfH(E,B,I,T,e,c)};
k8I.prototype.serverStreaming=function(E,B,I,T){var e=this,c=E.substring(0,E.length-T.name.length);return qOI(function(Y){var v=Y.methodDescriptor,y=Y.getMetadata(),Z=FVt(e,!1);y=DHT(e,y,Z,c+v.getName());var P=KVd(Z,v.responseDeserializeFn,!0);Y=v.requestSerializeFn(Y.requestMessage);Z.send(y,"POST",Y);return P},this.streamInterceptors).call(this,pEg(T,B,I))};
var fRI=function(E,B,I){var T=B.methodDescriptor,e=B.getMetadata(),c=FVt(E,!0);E=DHT(E,e,c,I+T.getName());I=KVd(c,T.responseDeserializeFn,!1);SOI(I,e["X-Goog-Encode-Response-If-Executable"]==="base64");B=T.requestSerializeFn(B.requestMessage);c.send(E,"POST",B);return I},FVt=function(E,B){B=E.chunkedServerStreaming&&!B;
return E.workerScope||B?new _.Gw(new uw({worker:E.workerScope,streamBinaryChunks:B})):new _.Gw},DHT=function(E,B,I,T){B["Content-Type"]="application/json+protobuf";
B["X-User-Agent"]="grpc-web-javascript/0.1";var e=B.Authorization;if(e&&LV8.has(e.split(" ")[0])||E.withCredentials)I.JSC$7680_withCredentials_=!0;if(E.suppressCorsPreflight)T=XE7(T,"$httpHeaders",B);else for(E=_.p(Object.keys(B)),e=E.next();!e.done;e=E.next())e=e.value,I.headers.set(e,B[e]);return T},KVd=function(E,B,I){if(I){I=new o42(E);
var T=new AML(I)}return new dn({xhr:E,nodeReadableStream:T},B)},qOI=function(E,B){return B.reduce(function(I,T){return function(e){return T.intercept(e,I)}},E)},tfI=function(E,B){return B.reduce(function(I,T){return function(e){return T.intercept(e,I)}},E)};var RLT=function(E){this.client_=new k8I;this.hostname_=E==void 0?E:E.replace(/\/+$/,"")};
_.l=RLT.prototype;_.l.JSC$16967_depositGoogleCredential=function(E,B){return HK(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",E,B||{},yM2)};
_.l.deleteLink=function(E,B){return HK(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",E,B||{},aR2)};
_.l.JSC$16967_finishOAuth=function(E,B){return HK(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",E,B||{},wEO)};
_.l.getLink=function(E,B){return HK(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",E,B||{},Ze9)};
_.l.startLinkingSession=function(E,B){return HK(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",E,B||{},u3L)};var E6H=[0,C0L,1,P0T,[0,_.ts,[0,w$7,-1]],[0,ZpT],[0,zbs,-1]];var BZ8=function(){this.storage=new Map},Iug=function(E,B,I,T,e){if(!E.storage.has(B))return null;
E=_.p(E.storage.get(B));for(B=E.next();!B.done;B=E.next())if(B=B.value,!e||B.linkName===e)if(I&&B.scopes&&$oT(B.scopes,I)||T&&B.capabilities&&$oT(B.capabilities,T))return B;return null},TZd=function(E,B,I){if(!I)E.storage.delete(B);
else if(E.storage.has(B)){var T=E.storage.get(B).filter(function(e){return e.linkName!==I});
T.length>0?E.storage.set(B,T):E.storage.delete(B)}},$oT=function(E,B){B=_.p(B);
for(var I=B.next();!I.done;I=B.next())if(!E.has(I.value))return!1;return!0};var eiT=function(){var E=_.HA("LINK_GAL_DOMAIN");this.alsDomain1p=_.HA("LINK_GAL_DOMAIN");this.alsDomain3p=E;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},lu1=function(E,B){E.apiKey=B;
return E};
eiT.prototype.build=function(){var E={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Qj");E.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Rj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Sj");E.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(E.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)E.apiKey=
this.apiKey,E.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Tj");E.oauthToken=this.oauthToken;E.alsDomain=this.alsDomain3p}E.clientXd3=this.clientXd3;E.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(E.authUser=this.authUser);this.bucket!==void 0&&(E.bucket=this.bucket);this.completionUrl!==void 0&&(E.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(E.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(E.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(E.locale=this.locale);E.loggerType=this.loggerType;E.clientEnvironment=this.clientEnvironment;E.colorScheme=this.colorScheme;E.showCloseOption=this.showCloseOption;return E};var id=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(id,_.LX);var cC2=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(cC2,_.LX);var ifg=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(ifg,_.LX);var Yz=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Yz,_.LX);var pDd=function(E){return _.na(E,1)};var Yjm=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Yjm,_.LX);var RlH=_.ky(Yjm),ph=[1,2,3,4,5];var qGt=function(E){try{return RlH(E)}catch(B){return null}},aut=function(){},FFI=function(E,B){switch(_.Qm(B,ph)){case 4:return(B=_.Nd(B,ifg,4,ph))&&E.logStateTransition(_.na(B,1)),!0;
case 5:return(B=_.Nd(B,cC2,5,ph))&&E.logInternalEvent(_.na(B,1)),!0}return!1},Eq8=function(E){switch(E){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.E9(E)}};var faH=function(E,B){var I=this;this.validator=E;this.messageListener=B;this.dismissCallback=function(){v62(I,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$16996_receiveMessage=function(T){T.type==="message"&&(T=T.event_,T!==null&&(new URL(I.iframe.src)).origin===T.origin&&I.validator(T.data,T.origin)&&!I.messageListener(T.data)&&(I.JSC$16996_resolveCb!==void 0&&I.JSC$16996_resolveCb(T.data),yC8(I)))}},KFs=function(E,B,I){E.uiHandler!==void 0&&v62(E,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(T,e){E.JSC$16996_resolveCb=T;E.JSC$16996_rejectCb=e;E.iframe=document.createElement("iframe");_.QC(E.iframe,B);E.uiHandler=I.displayContent(E.iframe,E.dismissCallback);_.vV(window,"message",E.JSC$16996_receiveMessage,!1,E)})},v62=function(E,B){E.JSC$16996_rejectCb!==void 0&&E.JSC$16996_rejectCb(B);
yC8(E)},yC8=function(E){E.uiHandler!==void 0&&E.uiHandler.hideContent();
_.zw(window,"message",E.JSC$16996_receiveMessage,!1,E);E.JSC$16996_resolveCb=void 0;E.JSC$16996_rejectCb=void 0;E.uiHandler=void 0;E.iframe=void 0};var CJH=function(E){if(E===2){var B;E=((B=window)==null?0:B.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return E},DW7=function(E){E=CJH(E);
switch(E){case 0:return"light";case 1:return"dark";default:_.E9(E)}};var Vsg=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),wDI=function(E,B){this.JSC$17008_linkingSession=E;this.noticeConfig=B;this.displayInfoMap=new Map;var I=new Map;if(_.Zc(this.JSC$17008_linkingSession,mH1,7))for(E=_.DZ(this.JSC$17008_linkingSession,mH1,7),E=_.jC(E,zLm,1,_.Ux()),E=_.p(E),B=E.next();!B.done;B=E.next())B=B.value,I.set(_.na(B,1),_.Jxf(_.DZ(B,_.E$t,3)));if(I.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){B=this.noticeConfig.enabledDataUsageNoticeUis;E=B.has(0)?I.get(1):void 0;B=B.has(1)?I.get(2):void 0;I=E!==void 0&&B!==void 0?I.get(3):void 0;var T=this.noticeConfig.nestedOrigins;var e=new Yjm;var c=new id;e=_.V$(e,2,ph,c);c=new Yjm;var Y=new id;c=_.V$(c,3,ph,Y);Y=[];E!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:E,lastEvent:e,nestedOrigins:T}]),Y.push({trustedUrl:E,lastEvent:e,nestedOrigins:T}));B!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:B,lastEvent:c,nestedOrigins:T}]),Y.push({trustedUrl:B,lastEvent:c,nestedOrigins:T}));I!==void 0?this.displayInfoMap.set(3,[{trustedUrl:I,lastEvent:c,nestedOrigins:T}]):this.displayInfoMap.set(3,Y)}};var Zf9=function(E){var B=new BZ8;this.galService=E;this.galCache=B};
Zf9.prototype.getLink=function(E){var B=E.serviceId;var I=E.scopes;var T=E.capabilities;var e=E.linkName;var c=this,Y;return _.a(function(v){if(T!==void 0&&I!==void 0)throw Error("Uj");Y=Iug(c.galCache,B,I,T,e);return Y!==null?v.return(Y):v.return(c.galService.getLink({serviceId:B,sessionId:Math.floor(Math.random()*2147483648),scopes:I,capabilities:T,linkName:e}).then(function(y){y=e0g(y);var Z=c.galCache;Z.storage.has(B)?Z.storage.get(B).push(y):Z.storage.set(B,[y]);return y}))})};
Zf9.prototype.deleteLink=function(E,B,I){var T=this;return _.a(function(e){TZd(T.galCache,E,I);return e.return(T.galService.deleteLink({serviceId:E,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:B,linkName:I}).then(function(){return!0}))})};var zig=function(E,B){var I=this;this.validator=E;this.msgHandler=B;this.closedPopupTimeout=this.JSC$17030_rejectCb=this.JSC$17030_resolveCb=this.popup=null;this.JSC$17030_receiveMessage=function(T){if(T!==null&&(T=T.event_,T.source===I.popup)){var e=T.data;if(I.validator(e,T.origin)){var c;(c=I.msgHandler)!=null&&c.call(I,e)||(I.JSC$17030_resolveCb!==null&&I.JSC$17030_resolveCb(e),PJO(I))}}}};
zig.prototype.open=function(E,B){var I=this;this.popup!==null&&mog(this);return new Promise(function(T,e){I.JSC$17030_resolveCb=T;I.JSC$17030_rejectCb=e;I.popup=_.sf(window,E,"",B);_.vV(window,"message",I.JSC$17030_receiveMessage,!1,I);Q02(I)})};
var mog=function(E,B){E.JSC$17030_rejectCb!==null&&E.JSC$17030_rejectCb(B);PJO(E)},PJO=function(E){E.closedPopupTimeout&&(E.closedPopupTimeout.cancel(),E.closedPopupTimeout=null);
E.popup&&E.popup.close();_.zw(window,"message",E.JSC$17030_receiveMessage,!1,E);E.popup=null;E.JSC$17030_resolveCb=null;E.JSC$17030_rejectCb=null},Q02=function(E){E.closedPopupTimeout=_.nB$(100).then(function(){E.popup?E.popup.closed?do7(E):Q02(E):mog(E,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},do7=function(E){E.closedPopupTimeout=_.nB$(100).then(function(){mog(E,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var his=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),s0s=function(E,B,I,T,e,c,Y,v,y,Z){var P=this;this.serviceId=E;this.sessionId=B;this.galService=I;this.oauthDetails=T;this.galLogger=e;this.interactionMode=c;this.redirectServiceUrl=Y;this.consentLanguageKeys=v;this.dynamicUrlParameters=y;this.partnerConfigMinReadTimestamp=Z;this.started=!1;this.JSC$17036_dataValidator=function(z,
m){var u=his.has(m);u||P.redirectServiceUrl===void 0||(u=P.redirectServiceUrl===m);return u?z.sentinel==="gdi":!1}};
s0s.prototype.complete=function(){var E=this,B;return _.a(function(I){if(E.interactionMode!==1)return I.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));B=vv.getRedirectStateFromUri();return B===null?I.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):I.return(uzL(E,B))})};
s0s.prototype.start=function(){var E=this,B;return _.a(function(I){if(E.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.O8(E.oauthDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(E.interactionMode===1)return vv.setLocation(_.O8(E.oauthDetails,1)),I.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));E.started=!0;E.galLogger.logStateTransition(5);
B=vv.getPostMessagePopup(E.JSC$17036_dataValidator);return I.return(B.open(_.O8(E.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(T){E.started=!1;var e=E.galLogger;if((T==null?void 0:T.error)!==void 0)throw e.logInternalEvent(59),Error("Vj");if((T==null?void 0:T.redirect_state)===void 0)throw e.logInternalEvent(131),Error("Wj");return uzL(E,T.redirect_state)}).catch(function(T){E.started=
!1;
return T.errorCode!==void 0?{statusCode:T.errorCode,statusMessage:T.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var uzL=function(E,B){return _.a(function(I){return I.return(LxI(E.galService,{serviceId:E.serviceId,sessionId:E.sessionId,dynamicUrlParameters:E.dynamicUrlParameters,redirectState:B,consentLanguageKeys:E.consentLanguageKeys,partnerConfigMinReadTimestamp:E.partnerConfigMinReadTimestamp}).then(function(T){var e={statusCode:1,link:e0g(T.getLink())};Evg(_.zO(T,3))!==void 0&&(e.callerState=Evg(_.zO(T,3)));E.galLogger.logInternalEvent(134);return e}))})},vv={getPostMessagePopup:function(E){return new zig(E)},
getRedirectStateFromUri:function(){var E=_.Se(vv.getLocation()).fragment_;return(new _.Iw(E)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(E){_.S6(window.location,_.pr(E))},
createOAuthFlow:function(E,B){return new s0s(E.serviceId,E.sessionId,E.galService,B,E.galLogger,E.interactionMode,E.redirectServiceUrl,E.consentLanguageKeys,E.dynamicUrlParameters,E.partnerConfigMinReadTimestamp)}};var xo2=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(xo2,_.LX);var GN8=_.ky(xo2);var OfT=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),n68=function(E,B,I,T,e,c,Y,v,y){var Z=this;this.serviceId=E;this.sessionId=B;this.galService=I;this.gsiWebFlowDetails=T;this.colorScheme=e;this.showCloseOption=c;this.galLogger=Y;this.interactionMode=v;this.redirectServiceUrl=y;this.started=!1;this.JSC$17048_dataValidator=function(P,z){var m=OfT.has(z);m||Z.redirectServiceUrl===
void 0||(m=Z.redirectServiceUrl===z);return m?P.sentinel==="gal":!1};
this.logEventProcessor=function(P){return P.result?(P=qGt(P.result))?FFI(Z.galLogger,P):!1:!1}};
n68.prototype.complete=function(){var E=this,B,I;return _.a(function(T){if(E.interactionMode!==1)return T.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));B=yx.getRedirectStateFromUri();if(B===void 0)return E.galLogger.JSC$16988_logErrorEvent(131),T.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return I=M97(E,B),T.return(HfL(E,I))}catch(e){return T.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
n68.prototype.start=function(){var E=this,B;return _.a(function(I){if(E.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.O8(E.gsiWebFlowDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(E.interactionMode===1)return yx.setLocation(NZH(E,_.O8(E.gsiWebFlowDetails,1))),I.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
E.started=!0;B=yx.getPostMessagePopup(E.JSC$17048_dataValidator,E.logEventProcessor);return I.return(B.open(NZH(E,_.O8(E.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(T){E.started=!1;if((T==null?void 0:T.result)===void 0)throw E.galLogger.JSC$16988_logErrorEvent(131),Error("Wj");T=M97(E,T.result);return HfL(E,T)}).catch(function(T){E.started=!1;
return T.errorCode!==void 0?{statusCode:T.errorCode,statusMessage:T.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var NZH=function(E,B){E=["result_channel",E.interactionMode===1?"2":"1","color_scheme",DW7(E.colorScheme),"show_close_option",E.showCloseOption];return hbd(B,E)},HfL=function(E,B){if(B!==null&&_.Zc(B,Yz,2)){var I,T=B==null?void 0:(I=_.DZ(B,Yz,2))==null?void 0:_.na(I,2);
T&&E.galLogger.JSC$16988_logErrorEvent(Eq8(T));return pDd(_.DZ(B,Yz,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 E.galService.getLink({serviceId:E.serviceId,sessionId:E.sessionId,consistencyKey:_.O8(B,1)}).then(function(e){e=e0g(e);E.galLogger.logInternalEvent(134);return{statusCode:1,link:e}})},M97=function(E,B){B=GN8(B);
if(!_.Zc(B,Yz,2)&&_.O8(B,1)==="")throw E.galLogger.JSC$16988_logErrorEvent(5),Error("Xj");return B},yx={getPostMessagePopup:function(E,B){return new zig(E,B)},
getRedirectStateFromUri:function(){return _.JV(_.Se(yx.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(E){_.S6(window.location,_.pr(E))},
createStreamlinedFlow:function(E,B){return new n68(E.serviceId,E.sessionId,E.galService,B,E.colorScheme,E.showCloseOption,E.galLogger,E.interactionMode,E.redirectServiceUrl)}};var Qjm=function(){var E=_.a$G("GAL");this.storage=E?new _.zR(E):null};var Na=function(){};
_.L(Na,aut);Na.prototype.logStateTransition=function(){};
Na.prototype.logInternalEvent=function(){};
Na.prototype.JSC$16988_logErrorEvent=function(){};var g6t=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(g6t,_.LX);g6t.prototype.getCompletionUrl=function(){return _.O8(this,15)};var gn=function(E,B,I,T,e,c){this.serviceId=E;this.environment=B;this.sessionId=I;this.colorSchemeSelected=T;this.colorThemeDisplayed=e;this.JSC$17061_transport=c;this.currentState=1};
_.L(gn,aut);gn.prototype.logStateTransition=function(E){var B=Sjt(this);B=_.KF(B,3,this.currentState);B=_.KF(B,1,E);this.currentState=E;E=Jd7(1);this.dispatch(B,E)};
gn.prototype.logInternalEvent=function(E){E=Jd7(E);this.dispatch(Sjt(this),E)};
gn.prototype.JSC$16988_logErrorEvent=function(E){var B=Sjt(this);B=_.KF(B,1,10);E=Jd7(E);this.dispatch(B,E)};
var Sjt=function(E){var B=new g6t;B=_.KF(B,1,E.currentState);B=_.$r(B,7,E.serviceId);var I,T;var e=((I=window)==null?0:(T=I.location)==null?0:T.href)?_.Se(window.location.href).JSC$7917_domain_:"NO_PACKAGE_NAME";I=_.$r(B,8,e);I=_.KF(I,6,E.environment);I=_.$r(I,5,"100");I=_.KF(I,11,E.colorSchemeSelected);return _.KF(I,12,E.colorThemeDisplayed)};
gn.prototype.dispatch=function(E,B){B===void 0&&(B=new _.lG);var I=B;E=E.serialize();I=_.$r(I,8,E);_.w9(I,12,this.sessionId);this.JSC$17061_transport.dispatch(B)};var JC8=function(E,B){this.loggerType=E;this.sessionIndex=B!=null?B:0},Wx8;
JC8.prototype.create=function(E,B,I,T,e){switch(this.loggerType){case 0:return new Na;case 1:return Wx8||(Wx8=(new _.E7(555,this.sessionIndex.toString())).build()),new gn(E,B,I,T,e,Wx8);default:_.E9(this.loggerType,"unknown logger type")}};var Ch=[6,2,3,1],LS1=new Map([[4,1],[1,6],[2,2],[3,3]]),pud={statusCode:7,statusMessage:"Failed to create flow object"},z0I=function(E,B,I,T,e,c,Y,v,y,Z){this.serviceId=E;this.sessionId=B;this.config=I;this.galService=T;this.JSC$17068_linkingSession=e;this.googleScopes=c;this.callerState=Y;this.consentLanguageKeys=v;this.dynamicUrlParameters=y;this.partnerConfigMinReadTimestamp=Z;this.currentFlow=0;T=this.JSC$17068_linkingSession;e=new Set;_.Zc(T,CZ8,1)&&e.add(1);_.Zc(T,dHd,2)&&_.Zc(T,wuL,6)&&e.add(2);
_.Zc(T,QLH,3)&&_.Zc(T,wuL,6)&&e.add(3);_.Zc(T,POT,4)&&e.add(6);this.supportedFlows=e;T=I.loggerType;e=I.clientEnvironment;a:{c=I.colorScheme;switch(c){case 0:c=1;break a;case 1:c=2;break a;case 2:c=3;break a;default:_.E9(c)}c=void 0}a:{Y=I.colorScheme;Y=CJH(Y);switch(Y){case 0:Y=1;break a;case 1:Y=2;break a;default:_.E9(Y)}Y=void 0}this.galLogger=(new JC8(T,I.authUser)).create(E,e,B,c,Y)},rC2=function(E){return new Promise(function(B){var I,T,e,c,Y,v,y,Z,P,z;
return _.a(function(m){switch(m.nextAddress){case 1:I=ZgO(E.currentFlow,E.supportedFlows),T=!1,e=new wDI(E.JSC$17068_linkingSession,E.config.dataUsageNoticeConfig);case 2:if(I===void 0){m.jumpTo(4);break}_.q7(m,5);var u=e,x=I,M=void 0;T?x===1&&(M=u.displayInfoMap.get(2)):x===2||x===3?M=u.displayInfoMap.get(1):x===1&&(M=u.displayInfoMap.get(3));c=M?M:[];Y=E.consentLanguageKeys;v=_.p(c);y=v.next();case 7:if(y.done)return E.currentFlow=I,_.C(m,aA9(XDI(E,Y)),11);Z=y.value;return _.C(m,Bl1(Z,E.config.dataUsageNoticeConfig.uiAdapter,
E.config.colorScheme,E.galLogger),10);case 10:P=m.yieldResult;if(P.statusCode!==1)return dqT(E.serviceId),E.currentFlow=0,B(aV({statusCode:P.statusCode,statusMessage:P.statusMessage},E.callerState)),m.return();P.consentLanguageKeys!==void 0&&(Y=P.consentLanguageKeys);y=v.next();m.jumpTo(7);break;case 11:z=m.yieldResult;if(z.statusCode!==10)return z.statusCode!==6&&(dqT(E.serviceId),E.currentFlow=0),z.statusCode!==1&&E.callerState!==void 0&&(z.callerState=E.callerState),B(z),m.return();_.W7(m,6);break;
case 5:_.RG(m);case 6:I=ZgO(E.currentFlow,E.supportedFlows);T=!0;m.jumpTo(2);break;case 4:dqT(E.serviceId),E.currentFlow=0,B(aV({statusCode:12,statusMessage:"Linking failed"},E.callerState)),_.ER(m)}})})},sj2=function(E,B,I){E.currentFlow=B;
return vqT(XDI(E,I)).then(function(T){return T.statusCode===10&&E.config.interactionMode===1&&ZgO(E.currentFlow,E.supportedFlows)!==void 0?rC2(E):T})},XDI=function(E,B){return{flowParams:{serviceId:E.serviceId,
sessionId:E.sessionId,galService:E.galService,galLogger:E.galLogger,interactionMode:E.config.interactionMode,redirectServiceUrl:E.config.redirectServiceUrl,colorScheme:E.config.colorScheme,consentLanguageKeys:B,dynamicUrlParameters:E.dynamicUrlParameters,showCloseOption:E.config.showCloseOption,partnerConfigMinReadTimestamp:E.partnerConfigMinReadTimestamp},currentFlow:E.currentFlow,config:E.config,session:E.JSC$17068_linkingSession,googleScopes:E.googleScopes,callerState:E.callerState}};var JJ1=function(E,B){this.config=E;this.galService=B.getService();this.JSC$17081_galRepository=B.JSC$17118_galRepository};
JJ1.prototype.getLink=function(E,B){return bfL(this,E,B)};
var bfL=function(E,B,I){return E.JSC$17081_galRepository.getLink({serviceId:B,scopes:void 0,capabilities:void 0,linkName:I}).then(function(T){return{statusCode:1,link:T}}).catch(function(T){return{statusCode:xqH(T.code),
statusMessage:T.message}})};
JJ1.prototype.deleteLink=function(E,B){return this.JSC$17081_galRepository.deleteLink(E,this.config.accountLinkingEntryPoint,B).then(function(){return{statusCode:1}}).catch(function(I){return{statusCode:xqH(I.code),
statusMessage:I.message}})};
JJ1.prototype.startLinkingSession=function(E){var B=E.serviceId;var I=E.sessionId;return mqI({serviceId:B,sessionId:I!==void 0?I:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:E.loginHint,callerState:E.callerState,consentLanguageKeys:E.consentLanguageKeys,linkName:E.linkName,dynamicUrlParameters:E.dynamicUrlParameters,partnerConfigMinReadTimestamp:E.partnerConfigMinReadTimestamp})};var GkI=null,Hgm=new WeakMap;var o69=function(){};
o69.prototype.send=function(E,B){Spd(E);return this.makeRequest(E).then(function(I){if(B){var T=new B;if(I!=null){if(B==null)throw Error("Zj");new B;throw Error("ak");}I=T}return I})};var ACt=function(E,B,I,T,e){this.gapiUrl=E;this.gapiKey=B;this.gapiConfigUpdates=I||{};this.gapiAuthParams=T||{};this.defaultApiId=e};
_.L(ACt,o69);var UoI=function(E){return nqO().then(function(B){B=B||window.gapi;j0L(E,B);return gqm(B,{apiKey:E.gapiKey,clientId:E.gapiAuthParams.clientId,scope:E.gapiAuthParams.scope,hostedDomain:E.gapiAuthParams.hostedDomain,fetchBasicProfile:E.gapiAuthParams.fetchBasicProfile}).then(function(){return B})})};
ACt.prototype.makeRequest=function(E){var B=this;return UoI(this).then(function(I){return _.a(function(T){if(T.nextAddress==1)return B.gapiAuthParams.minAuthTokenTimeRemaining===void 0?T.jumpTo(2):_.C(T,Nl8(I,B.gapiAuthParams.minAuthTokenTimeRemaining),2);j0L(B,I);return T.return(kNd(I.client.request({root:B.gapiUrl,path:E.path,method:E.httpMethod,body:E.body,params:E.queryParams,headers:E.headers,authType:E.authType,apiId:E.apiId||B.defaultApiId})))})})};
var kNd=function(E){return new Promise(function(B,I){E.then(function(T){B(T.result===!1&&T.body!=null?{data:T.body}:T.result)},function(T){I(T.result===!1&&T.body!=null?{data:T.body}:T.result)})})},j0L=function(E,B){for(var I in E.gapiConfigUpdates)if(E.gapiConfigUpdates.hasOwnProperty(I)){var T=B,e=I,c=E.gapiConfigUpdates[I],Y=T.config.get(e);
c!==Y&&T.config.update(e,c)}};
ACt.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var S8=function(E,B,I,T,e,c,Y,v){this.apiKey=B;this.authUser=I;this.oauthToken=T;this.bucket=e;this.locale=Y;this.galSdkEventHandler=v;if(T===void 0){if(B===void 0)throw Error("bk");this.requestService=new ACt(E,B,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":c===void 0||c===!1,"client/xd3":c===!0})}this.galServiceClient=new RLT(E)};
S8.prototype.deleteLink=function(E){var B=E.serviceId;var I=E.sessionId;var T=E.accountLinkingEntryPoint;var e=E.linkName;var c=this,Y;return _.a(function(v){var y=(new Zf).setHeader(JE(c,I));var Z=t98({serviceId:B,linkName:e});y=_.fX(y,2,Z);Y=_.Si(y,3,T);return v.return(c.makeRequest(c.galServiceClient.deleteLink,Y,[1,3],[2,4]))})};
var LxI=function(E,B){var I=B.serviceId;var T=B.sessionId;var e=B.dynamicUrlParameters;var c=B.redirectState;var Y=B.consentLanguageKeys;var v=B.partnerConfigMinReadTimestamp;var y;return _.a(function(Z){var P=(new zY).setHeader(JE(E,T,e));P=_.Fz(P,2,I);y=_.Fz(P,4,c);Y!==void 0&&_.Fz(y,5,Y);v!==void 0&&_.fX(y,6,v);return Z.return(E.makeRequest(E.galServiceClient.JSC$16967_finishOAuth,y,[1,3],[2,4]))})};
S8.prototype.getLink=function(E){var B=E.serviceId;var I=E.sessionId;var T=E.scopes;var e=E.capabilities;var c=E.consistencyKey;var Y=E.linkName;var v=this,y;return _.a(function(Z){var P=(new mC).setHeader(JE(v,I)),z=t98({serviceId:B,scopes:T,capabilities:e,linkName:Y});y=_.fX(P,2,z);c!==void 0&&(P=TTs(),P=_.Fz(P,2,c),_.fX(y,3,P));return Z.return(v.makeRequest(v.galServiceClient.getLink,y,[1,3],[2,4]))})};
var yJ2=function(E,B){var I=B.serviceId;var T=B.sessionId;var e=B.googleScopes;var c=B.consistencyKey;var Y;return _.a(function(v){var y=(new PK).setHeader(JE(E,T));y=_.Fz(y,2,I);var Z=Array.from(e.values());y=_.ih(y,3,Z,_.NI);Z=TTs();Z=_.Fz(Z,2,c);Y=_.fX(y,4,Z);return v.return(E.makeRequest(E.galServiceClient.JSC$16967_depositGoogleCredential,Y,[1,3],[2,4]))})};
S8.prototype.startLinkingSession=function(E){var B=E.serviceId;var I=E.sessionId;var T=E.scopes;var e=E.capabilities;var c=E.loginHint;var Y=E.supportedFlows;var v=E.completionUrl;var y=E.usePingPong;var Z=E.twoWayLinking;var P=E.accountLinkingEntryPoint;var z=E.callerState;var m=E.consentLanguageKeys;var u=E.googleScopes;var x=E.dataUsageNoticeConfig;var M=E.linkName;var N=E.dynamicUrlParameters;var W=E.partnerConfigMinReadTimestamp;var U=this,q,f;return _.a(function(ed){if(e!==void 0&&T!==void 0)throw Error("Uj");
var K=(new Qn).setHeader(JE(U,I,N));q=_.Fz(K,2,B);M!==void 0&&_.Fz(q,14,M);if(e!==void 0){K=q;var p4=Array.from(e.values());_.ih(K,5,p4,_.NI)}else T!==void 0&&(K=q,p4=Array.from(T.values()),_.ih(K,3,p4,_.NI));v!==void 0&&_.Fz(q,6,v);y!==void 0&&_.LC(q,15,y);Y!==void 0&&(K=q,p4=Array.from(Y.values()),_.ih(K,4,p4,_.YI));if(Z!==void 0){if(Z&&(!u||u.size===0))throw Error("ck");_.LC(q,8,Z)}P!==void 0&&_.Si(q,9,P);c!==void 0&&_.Fz(q,13,c);z!==void 0&&(K=q,p4=(new TextEncoder).encode(z),_.Yy(K,12,_.Jz(p4,
!1),_.SN()));m!==void 0&&_.Fz(q,16,m);W!==void 0&&_.fX(q,18,W);if(x!==void 0&&x.size>0||u!==void 0&&u.size>0)f=new sL7,u!==void 0&&u.size>0&&(K=f,p4=Array.from(u.values()),_.ih(K,1,p4,_.NI)),x!==void 0&&(x.has(0)&&_.cH6(f,2,_.YI,1,_.yd),x.has(1)&&_.cH6(f,2,_.YI,2,_.yd)),_.fX(q,17,f);return ed.return(U.makeRequest(U.galServiceClient.startLinkingSession,q,[1],[2]))})};
S8.prototype.getMetadata=function(){var E=this,B,I,T;return _.a(function(e){if(e.nextAddress==1)return B={},E.requestService?_.C(e,UoI(E.requestService),3):(B.Authorization="Bearer "+E.oauthToken,e.jumpTo(2));e.nextAddress!=2&&(I=e.yieldResult,B["X-Goog-Api-Key"]=E.apiKey,B["X-Goog-AuthUser"]=E.authUser!==void 0?E.authUser.toString():"0",(T=I.auth.getAuthHeaderValueForFirstParty([]))&&(B.Authorization=T));E.locale&&(B["accept-language"]=E.locale);return e.return(B)})};
S8.prototype.makeRequest=function(E,B,I,T){var e=this,c;return _.a(function(Y){if(Y.nextAddress==1)return _.C(Y,e.getMetadata(),2);c=Y.yieldResult;fuI(e,I);return Y.return(E.bind(e.galServiceClient)(B,c).finally(function(){fuI(e,T)}))})};
var fuI=function(E,B){E.galSdkEventHandler!==void 0&&B.forEach(function(I){E.galSdkEventHandler.onEvent(I)})},JE=function(E,B,I){var T=new yn;
B=_.Yy(T,2,_.z7(B),0);B=_.Si(B,5,3);I=_.ih(B,8,I,_.NI);E.bucket!==void 0&&_.Fz(I,1,E.bucket);return I},t98=function(E){var B=E.serviceId;
var I=E.scopes;var T=E.capabilities;E=E.linkName;if(T!==void 0&&I!==void 0)throw Error("Uj");var e=new $HT;B=_.Fz(e,1,B);T!==void 0?(I=Array.from(T.values()),_.ih(B,5,I,_.NI)):I!==void 0&&(I=Array.from(I.values()),_.ih(B,3,I,_.NI));E!==void 0&&_.Fz(B,6,E);return B};var WSg=function(E){this.galService=new S8(E.alsDomain,E.apiKey,E.authUser,E.oauthToken,E.bucket,E.clientXd3,E.locale,E.galSdkEventHandler);this.JSC$17118_galRepository=new Zf9(this.galService)};
WSg.prototype.getService=function(){return this.galService};var V9H=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(V9H,_.LX);var qj8=function(E){var B=new V9H;return _.KF(B,1,E)};
V9H.prototype.setErrorMessage=function(E){return _.$r(this,2,E)};var Fx1=[0,_.Vm,_.kU,_.Vm];var WK=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(WK,_.LX);var DoI=[0,[1,2,3],_.fa,[0,Y1t,yks,-1],_.fa,[0,v3H,-1],_.OZ6];var Kxt=[0,_.ji,1,_.Vm,_.kU,-1,1,_.HZF,_.As,_.Vm,-1,DoI];var Rit=[0,_.Vm,[0,_.HZF,_.As,[0,_.kU]],_.U8,[0,_.Vm,-1]];var Dy=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Dy,_.LX);var EmL=[0,_.kU,_.Vm,-2,_.ji,_.Vm,_.ji,_.Vm,-2,1,_.U8];var B68=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(B68,_.LX);var $sg=[0,_.ji];var I42=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(I42,_.LX);var T61=[0,_.Vm,Rit,$sg,EmL,Kxt];var C6t=_.A5(I42,T61);var eVt=[0,E6H];var Q31=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Q31,_.LX);var l4d=[0,[1,3],mNs,_.Vm,mNs];var qY=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(qY,_.LX);var cbm=[0,_.Vm];var iJg=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(iJg,_.LX);var Fw=function(E){return _.Nd(E,V9H,2,Vx)},p3O=function(E){var B=new iJg;
return _.V$(B,2,Vx,E)},Vx=[1,
2];var Ygd=[0,Vx,_.fa,cbm,_.fa,Fx1,_.ts,l4d,1,_.Vm,eVt];var a4d=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(a4d,_.LX);var yb9=function(E){var B=new a4d;return _.V$(B,3,vmH,E)},vmH=[2,
3];var Xl=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(Xl,_.LX);var CbT=function(E,B){return _.fX(E,2,B)},w3I=function(E,B){return _.fX(E,8,B)},ZJI=function(E,B){return _.fX(E,3,B)};var Pbt=[0,_.Vm,Ygd,T61,_.WqD,[0,[5,6],[0,_.Vm,-2],[0,_.ji,_.Vm,_.kU],[0,DoI],[0,_.kU,_.Vm,-1,_.J5U],_.fa,[0,[0,_.ji],_.Vm,-1],_.fa,[0,[3,4],_.Vm,-1,_.fa,[0,[0,_.Vm,_.U8]],_.fa,[0,[0,[0,[1,2],_.fa,[0],_.fa,[0]]]]]],_.WqD,-1,[0,vmH,_.Vm,_.fa,cbm,_.fa,Fx1,_.ts,l4d,[0,E6H]]];var zVI=_.A5(Xl,Pbt),msm=_.ja(Pbt);var QP2=function(){_.Cx.call(this)};
_.L(QP2,_.Cx);QP2.prototype.init=function(){};
new QP2;var dsd=_.km(["data-"]),hVg=_.km(["aria-"]),sPI=_.km(["aria-"]),rn=function(E,B){this.isLatencyMeasurementExperiment=E===void 0?!1:E;this.enableDialogA11yFix=B===void 0?!1:B;this.JSC$17147_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.lKr(_.$i.location.href)},Z$H=function(E,B){E.onConsentPrimitiveShownCallback=B},uYL=function(E,B){return E.overriddenIframeLoadTimeout?E.overriddenIframeLoadTimeout:B!==void 0?B:5E3},z2O=function(E){if(E.prewarmPromise!==void 0)return E.prewarmPromise;
E.prewarmPromise=new Promise(function(B,I){bw(E,1);Lit(E,xs8(E,!0),GXt(E));E.iframe?E.prewarmChannel||OJI(E,E.iframe,B):I(Error("dk"))});
E.prewarmPromise.finally(function(){E.prewarmPromise=void 0});
return E.prewarmPromise};
rn.prototype.showPrimitive=function(){var E=this;if(this.consentPromise!==void 0)return this.consentPromise;var B=Date.now();nm8(this,B);this.consentPromise=new Promise(function(I,T){bw(E,0,B);var e=E.isDarkTheme();E.isLatencyMeasurementExperiment||E.initialLoadingStrategy===1||E.initialLoadingStrategy===2||(E.loadingBar||(E.loadingBar=oq1(getComputedStyle(document.body).direction==="rtl",e),E.loadingBar.style.position="fixed",E.loadingBar.style.zIndex="15000"),document.body.appendChild(E.loadingBar));
Lit(E,xs8(E),GXt(E));E.iframe?E.channel||MDd(E,E.iframe,I,T):(HJm(E),T(Error("dk")))});
this.consentPromise.finally(function(){E.consentPromise=void 0});
return this.consentPromise};
var MDd=function(E,B,I,T){var e,c;_.a(function(Y){switch(Y.nextAddress){case 1:bw(E,3);e=!1;setTimeout(function(){if(!e){HJm(E);N69(E);gmI(E);var v=qj8(7).setErrorMessage("Timeout connecting to iframe");I(w3I(CbT(new Xl,p3O(v)),yb9(v)))}},uYL(E,SgI(E)));
if(!E.prewarmPromise){Y.jumpTo(2);break}_.q7(Y,3);return _.C(Y,E.prewarmPromise,5);case 5:_.W7(Y,2);break;case 3:_.RG(Y),c=qj8(4).setErrorMessage("Error while prewarming."),I(w3I(CbT(new Xl,p3O(c)),yb9(c)));case 2:E.prewarmChannel&&E.prewarmChannel.send(msm(ZJI(new Xl,E.consentPrimitiveRequest))),E.channel=_.Dc({destination:E.JSC$17147_win,iframe:B,origin:JbL(E),channelName:"cpw",onEstablished:function(){e=!0;HJm(E);E.isLatencyMeasurementExperiment||(E.JSC$17147_previousBodyOverflow=document.body.style.overflow,
E.JSC$17147_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,E.JSC$17147_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",E.enableDialogA11yFix&&window.addEventListener("blur",E.focusChangeListener));var v=E.iframe;v.style.bottom="0";v.style.position="fixed";v.style.right="0";v.style.border="none";v.style.left="0";v.style.top=
"0";v.style.zIndex="5000";v.style.pointerEvents="";v.style.visibility="";E.initialLoadingStrategy===2||E.initialLoadingStrategy===3?bw(E,4):bw(E,6);var y;(y=E.onConsentPrimitiveShownCallback)==null||y.call(E)},
onMessage:function(v){v=zVI(v.data);switch(_.na(v,1)){case 1:N69(E);var y=AJH(_.DZ(v,_.Xz,7));y&&(E.initialLoadingStrategy!==2&&E.initialLoadingStrategy!==3||bw(E,6,y),bw(E,5,y));if(y=AJH(_.DZ(v,_.Xz,6)))bw(E,7,y),bw(E,8);var Z,P;((Z=_.DZ(v,iJg,2))==null?void 0:_.Qm(Z,Vx))!==0&&((P=_.DZ(v,a4d,8))==null?void 0:_.Qm(P,vmH))!==0||T(Error("ek"));I(v);break;case 2:gmI(E)}}}),_.ER(Y)}})},OJI=function(E,B,I){E.prewarmChannel=_.Dc({destination:E.JSC$17147_win,
iframe:B,origin:JbL(E),channelName:"pwcp",onEstablished:function(){bw(E,2);I()}})},JbL=function(E){var B=_.Ef(E.src).toString();
return B&&B.indexOf("://")<0&&B.indexOf("//")!==0?E.origin:_.lKr(B)},xs8=function(E,B){B=B===void 0?!1:B;
var I,T=new Map([["origin",E.origin],["hl",(I=Wim(E))!=null?I:null]]);B&&T.set("pw","1");B=_.p([["cpr",E.consentPrimitiveRequest.serialize()]]);for(I=B.next();!I.done;I=B.next()){var e=_.p(I.value);I=e.next().value;e=e.next().value;T.set(I,e)}E.isDarkTheme()&&T.set("color_scheme","dark");return _.UR(E.src,T)},HJm=function(E){E.isLatencyMeasurementExperiment||E.loadingBar&&document.body.removeChild(E.loadingBar)};
rn.prototype.getSrc=function(){var E=_.tA(this.origin),B;var I=(B=_.DZ(this.consentPrimitiveRequest,B68,3))==null?void 0:_.kr(B,1);B="consent.google.com";I=I?"/u/"+encodeURIComponent(I.toString()):"";(E==null?0:E.endsWith("youtube.com"))?B="consent.youtube.com":(E=E==null?void 0:E.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(B="consent.google."+((E[1]?"co.":"")+encodeURIComponent(E[2])));return _.KX("https://"+B+"/signedin"+I+"/landing")};
var Lit=function(E,B,I){E.iframe||(E.iframe=document.createElement("iframe"),E.iframe.style.width="100%",E.iframe.style.height="100%",I!==112496729&&(E.iframe.style.colorScheme="auto"),E.isLatencyMeasurementExperiment&&(E.iframe.style.display="none"),_.QC(E.iframe,B),E.iframe.setAttribute("jsname","C5o1O"),X32(E.iframe),document.body.appendChild(E.iframe))},X32=function(E){E.style.bottom="-200vh";
E.style.position="fixed";E.style.right="-200vw";E.style.border="";E.style.left="";E.style.top="";E.style.zIndex="";E.style.pointerEvents="none";E.style.visibility="hidden"},N69=function(E){E.iframe&&(E.isLatencyMeasurementExperiment||(E.JSC$17147_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=E.JSC$17147_previousHtmlOverscroll),E.JSC$17147_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=E.JSC$17147_previousBodyOverscroll),E.JSC$17147_previousBodyOverflow!==
void 0&&(document.body.style.overflow=E.JSC$17147_previousBodyOverflow),E.enableDialogA11yFix&&rbI(E,!1)),X32(E.iframe))};
rn.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(rbI(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var rbI=function(E,B){var I,T,e=(I=E.iframe)==null?void 0:(T=I.parentElement)==null?void 0:T.children;if(e)for(I=0;I<e.length;I++)T=e[I],T!==E.iframe&&(B?(T.hasAttribute("aria-hidden")&&_.H1([_.od(dsd)],T,"data-old-aria-hidden",T.getAttribute("aria-hidden")),_.H1([_.od(hVg)],T,"aria-hidden","true")):(T.removeAttribute("aria-hidden"),T.hasAttribute("data-old-aria-hidden")&&(_.H1([_.od(sPI)],T,"aria-hidden",T.getAttribute("data-old-aria-hidden")),T.removeAttribute("data-old-aria-hidden"))))},bw=function(E,
B,I){var T;
(T=E.latencyCallback)==null||T.call(E,{latencyType:B,timestampEpochMillis:I!=null?I:Date.now()})};var bJd=function(E,B,I){rn.call(this,B,I===void 0?!1:I);this.consentPrimitiveRequest=E;E=Wim(this);if(!(0,_.MHG)(E))throw Error("H``"+String(E));this.src=this.getSrc();var T;this.initialLoadingStrategy=(T=_.DZ(this.consentPrimitiveRequest,Dy,4))==null?void 0:_.na(T,4)},omO;
_.L(bJd,rn);var wlO=function(E){var B=_.d("enable_primitive_dialog_aria_hide_siblings");E={request:E,enableDialogA11yFix:B===void 0?!1:B};omO||(omO=new bJd(E.request,E.isLatencyMeasurementExperiment||_.na(E.request,1)===2,E.enableDialogA11yFix));return omO},Wim=function(E){var B;
return(B=_.DZ(E.consentPrimitiveRequest,Dy,4))==null?void 0:_.O8(B,1)},nm8=function(E,B){if(!_.Zc(E.consentPrimitiveRequest,WK,5)){var I=E.consentPrimitiveRequest,T=new WK;
_.fX(I,5,T)}var e;if((e=_.DZ(E.consentPrimitiveRequest,WK,5))==null||_.vlJ(_.wV(e,8))==null){var c;(c=_.DZ(E.consentPrimitiveRequest,WK,5))!=null&&_.w9(c,8,B)}},GXt=function(E){var B;
return(B=_.DZ(E.consentPrimitiveRequest,WK,5))==null?void 0:_.kr(B,1)};
bJd.prototype.isDarkTheme=function(){var E;return((E=_.DZ(this.consentPrimitiveRequest,Dy,4))==null?void 0:_.na(E,2))===2};
var SgI=function(E){var B;return((B=_.DZ(E.consentPrimitiveRequest,Dy,4))==null?void 0:_.kr(B,5))||void 0},gmI=function(E){E.channel=void 0;
E.prewarmChannel=void 0;E.iframe&&(document.body.contains(E.iframe)&&document.body.removeChild(E.iframe),E.iframe=void 0);omO=void 0},mi1=function(E){return rn.prototype.showPrimitive.call(E).then(function(B){return _.DZ(B,iJg,2)})};for(var oD={},Ab2=(oD[64]="ma",oD[73]="ogb",oD[89]="cr",oD[21]="test",oD[0]="unkn",oD[137]="con",oD[155]="hl",oD[78]="yt",oD[171]="lp",oD[172]="ap",oD[177]="amo",oD[178]="pqe",oD[74]="gg",oD[1]="gm",oD[140]="am",oD),jPg=_.p(Object.keys(Ab2)),Us2=jPg.next();!Us2.done;Us2=jPg.next());var kXm=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(kXm,_.LX);var tDO=[0,[2,3,4],_.Vm,aQ2,mNs,_.OZ6];var f4I=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(f4I,_.LX);var VDO=_.A5(f4I,[0,zbs,_.kU,_.Vm,_.kU,_.Vm,tDO]);var qg9=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(qg9,_.LX);qg9.prototype.getCommand=function(){return _.na(this,1)};
var Fid=function(){var E=new qg9;return _.Si(E,1,0)};var Dsd=_.ja([0,zbs,_.kU,[0,_.Vm,_.kU,-1]]);var Kid=new _.yY("s"),RV2=new _.yY("t"),EU2=new _.yY("u"),BVt=new _.yY("v"),$dI=function(E,B,I){_.CS.call(this,Kid);this.mediaKey=E;this.photoUrl=B;this.photoSource=I};
_.L($dI,_.CS);var IcH=function(){_.CS.call(this,RV2)};
_.L(IcH,_.CS);var TV8=function(E){E=E===void 0?!1:E;_.CS.call(this,EU2);this.isError=E};
_.L(TV8,_.CS);var eUt=function(){_.CS.call(this,BVt)};
_.L(eUt,_.CS);var lcs=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Y8I=function(E){if(typeof E=="string"){if(E.charAt(0)==".")return css(E.substr(1));if(E.charAt(0)=="["){var B=lcs.exec(E);E=E.indexOf("=")==-1?void 0:B[3];return ias(B[1],E)}return pfg(E)}return E},css=function(E){return function(B){return B.getAttribute&&_.bG(B,E)}},ias=function(E,B){return function(I){return B!==void 0?I.getAttribute&&I.getAttribute(E)==B:I.hasAttribute&&I.hasAttribute(E)}},pfg=function(E){E=E.toUpperCase();
return function(B){return(B=B.tagName)&&B.toUpperCase()==E}},acg=function(){return!0};var AE=function(E,B){this.JSC$17175_key_=E;this.JSC$17175_value_=B},j8=function(E){throw Error("fk`"+E.JSC$17175_key_);
},vU1=function(E,B){return new TypeError("gk`"+B+"`"+E.JSC$17175_key_+"`"+E.JSC$17175_value_+"`"+typeof E.JSC$17175_value_)};
AE.prototype.string=function(E){if(arguments.length==0)var B=ysL(this);else{var I;B=(I=Cq8(this))!=null?I:E}return B};
var ysL=function(E){var B=Cq8(E);B===null&&j8(E);return B},Cq8=function(E){var B=E.JSC$17175_value_;
if(B==null)return null;if(typeof B==="string")return B;throw vU1(E,"string");};
AE.prototype.bool=function(E){if(arguments.length==0){var B=this.optionalBool();B===null&&j8(this)}else{var I;B=(I=this.optionalBool())!=null?I:E}return B};
AE.prototype.optionalBool=function(){var E=this.JSC$17175_value_;if(E==null)return null;if(typeof E==="boolean")return E;if(typeof E==="string"){E=E.toLowerCase();if(E==="true"||E==="1")return!0;if(E==="false"||E==="0")return!1}throw vU1(this,"boolean");};
AE.prototype.number=function(E){if(arguments.length==0){var B=wfI(this);B===null&&j8(this)}else{var I;B=(I=wfI(this))!=null?I:E}return B};
var wfI=function(E){var B=E.JSC$17175_value_;if(B==null)return null;if(typeof B==="number")return B;if(typeof B==="string"){var I=Number(B);if(!isNaN(I)&&(I!==0||B.trim().length!==0))return I}throw vU1(E,"number");};
AE.prototype.toString=function(){return ysL(this)};
AE.prototype.array=function(E){if(arguments.length==0){var B=Zas(this);B===null&&j8(this);return B}B=Zas(this);return B==null?E:B};
var Zas=function(E){var B=E.JSC$17175_value_;if(B==null)return null;Array.isArray(B)||(typeof B!=="string"?B=[B]:(B=B.trim(),B=B==""?[]:B.split(",").map(function(I){return I.trim()})));
return Pq8(E,B)},Pq8=function(E,B){var I=E.JSC$17175_key_+"[";
return Array.from(B,function(T,e){return new AE(I+e+"]",T)})};
AE.prototype.object=function(E){var B=this.JSC$17175_value_;if(B==null)return E===void 0&&j8(this),E;if(typeof B==="object"&&B.constructor===Object){E={};var I=this.JSC$17175_key_+".",T;for(T in B)E[T]=new AE(I+T,B[T]);return E}throw vU1(this,"object");};var Un=function(E){this.list_=zU8(E)},zU8=function(E){if(E instanceof Un)E=E.list_;
else if(E[0]instanceof Un){for(var B=new Set,I=0;I<E.length;I++)for(var T=_.p(E[I].list_),e=T.next();!e.done;e=T.next())B.add(e.value);E=B}return[].concat(_.ad(E))};
_.l=Un.prototype;_.l.each=function(E,B,I){((I===void 0?0:I)?Fzs:_.bW)(this.list_,E,B);return this};
_.l.size=function(){return this.list_.length};
_.l.isEmpty=function(){return this.list_.length===0};
_.l.get=function(E){return this.list_[E]||null};
_.l.el=function(){return this.list_[0]||null};
_.l.map=function(E,B){return _.yl(this.list_,E,B)};
_.l.equals=function(E){return this===E||_.iD(this.list_,E.list_)};
_.l.first=function(){return this.list_.length==0?null:new kD(this.list_[0])};
_.l.find=function(E){var B=[];this.each(function(I){I=I.querySelectorAll(String(E));for(var T=0;T<I.length;T++)B.push(I[T])});
return new Un(B)};
_.l.parent=function(){var E=[];this.each(function(B){(B=B.parentElement||null)&&!_.AD(E,B)&&E.push(B)});
return new Un(E)};
_.l.children=function(){var E=[];this.each(function(B){B=_.My(B);for(var I=0;I<B.length;I++)E.push(B[I])});
return new Un(E)};
_.l.filter=function(E){E=_.ei(this.list_,Y8I(E));return new Un(E)};
_.l.closest=function(E){var B=[],I=Y8I(E),T=function(e){return _.jn(e)&&I(e)};
this.each(function(e){(e=_.Ql(e,T,!0))&&!_.AD(B,e)&&B.push(e)});
return new Un(B)};
_.l.next=function(E){return md9(this,_.sgZ,E)};
_.l.prev=function(E){return md9(this,QSL,E)};
var md9=function(E,B,I){var T=[];var e=I?Y8I(I):acg;E.each(function(c){(c=B(c))&&e(c)&&T.push(c)});
return new Un(T)};
Un.prototype.setClass=function(E){return this.each(function(B){_.rI(B,E)})};
var Qr8=function(E,B){return E.each(function(I){_.WV(I,B)})},dd2=function(E,B){return E.each(function(I){_.SO(I,B)})};
Un.prototype.toggleClass=function(E,B){return B===!0?Qr8(this,E):B===!1?dd2(this,E):this.each(function(I){_.bG(I,E)?_.SO(I,E):_.WV(I,E)})};
Un.prototype.setText=function(E){return this.each(function(B){_.HT(B,E)})};
var hUI=function(E){E.each(function(B){B.removeAttribute("aria-hidden")})};
Un.prototype.getStyle=function(E){if(this.list_.length>0){var B=this.list_[0],I=B.style[_.yT(E)];return typeof I!=="undefined"?I:B.style[_.W2Z(B,E)]||""}};
Un.prototype.getData=function(E){if(this.list_.length===0)return new AE(E,null);var B=$3L(this.list_[0],E);return new AE(E,B)};
Un.prototype.focus=function(E){try{E?this.el().focus(E):this.el().focus()}catch(B){}return this};
Un.prototype.click=function(){var E=_.Zs(this.el());if(E.createEvent){var B=E.createEvent("MouseEvents");B.initMouseEvent("click",!0,!0,E.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(B)}else E=E.createEventObject(),E.clientX=0,E.clientY=0,E.screenX=0,E.screenY=0,E.altKey=!1,E.ctrlKey=!1,E.shiftKey=!1,E.button=0,this.el().fireEvent("onclick",E)};
var tE=function(E,B,I,T){function e(v,y,Z){var P=y;y&&y.parentNode&&(P=y.cloneNode(!0));v(P,Z)}
T=T===void 0?!1:T;if(E.list_.length==1){var c=E.list_[0],Y=function(v){return B(v,c)};
I instanceof Un?I.each(Y,void 0,T):Array.isArray(I)?(T?Fzs:_.bW)(I,Y):Y(I);return E}return E.each(function(v){I instanceof Un?I.each(function(y){e(B,y,v)}):Array.isArray(I)?_.bW(I,function(y){e(B,y,v)}):e(B,I,v)})};
_.l=Un.prototype;_.l.append=function(E){return tE(this,function(B,I){B&&I.appendChild(B)},E)};
_.l.appendTo=function(E){(new Un([E])).append(this);return this};
_.l.remove=function(){return tE(this,function(E,B){_.ii(B)},null)};
_.l.empty=function(){return tE(this,function(E,B){_.GV(B)},null)};
_.l.after=function(E,B){return tE(this,function(I,T){I&&_.n7(I,T)},E,!(B===void 0||B))};
_.l.before=function(E){return tE(this,function(B,I){B&&_.Os(B,I)},E)};
_.l.replaceWith=function(E){return tE(this,function(B,I){B&&_.Qgt(B,I)},E)};
_.l.toggle=function(E){return this.each(function(B){_.Xs(B,E)})};
_.l.show=function(){return this.toggle(!0)};
_.l.hide=function(){return this.toggle(!1)};
_.l.trigger=function(E,B,I,T){return srI(this,E,B,I,T)};
var srI=function(E,B,I,T,e){return E.each(function(c){_.hpQ(_.Zs(c)).triggerWizEventInternal(c,B,I,T,e)})},kD=function(E,B){E instanceof Un&&(B=E.list_,E=null);
this.list_=zU8(E!=null?[E]:B)};
_.$U(kD,Un);_.l=kD.prototype;_.l.children=function(){return new Un(Array.prototype.slice.call(_.My(this.list_[0])))};
_.l.each=function(E,B){E.call(B,this.list_[0],0);return this};
_.l.size=function(){return 1};
_.l.el=function(){return this.list_[0]};
_.l.first=function(){return this};var fW=function(E,B){B=B===void 0?window:B;this.hostId=E;this.JSC$17186_win=B;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$17186_previousHtmlOverscroll=this.JSC$17186_previousBodyOverscroll=this.JSC$17186_previousBodyOverflow="";this.eventTarget=new _.ms;this.JSC$17186_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
xd8=function(E){var B=uG7(uG7(uG7(new Lpd(78),"po"),"hppp"),"hhc");
B.authUser=Number(_.HA("SESSION_INDEX","0"));B.colorScheme=E;return B};
fW.prototype.getOrigin=function(){return this.origin?this.origin:_.KS(_.DF(_.F6(new _.tQ,this.JSC$17186_win.location.protocol),this.JSC$17186_win.location.hostname),this.JSC$17186_win.location.port).toString()};
fW.prototype.getTargetOrigin=function(){return _.KS(_.DF(_.F6(new _.tQ,this.scheme),this.domain),this.port)};
fW.prototype.preloadIframe=function(E){var B=this;if(this.iframeLoadPromise===void 0){var I=document.createElement("iframe");this.iframe=I;qpg(I,E);this.iframeLoadPromise=new Promise(function(T,e){var c=!1,Y=function(v){v.stopPropagation();I.removeEventListener("error",Y);I.removeEventListener("securitypolicyviolation",Y);e(Error("hk",{cause:v}))};
I.addEventListener("error",Y);I.addEventListener("securitypolicyviolation",Y);setTimeout(function(){c||e(Error("ik"))},3E4);
GO7(B,I,function(){c=!0;I.removeEventListener("error",Y);I.removeEventListener("securitypolicyviolation",Y);T()})});
OaT(this);E=this.getTargetOrigin().toString();I.setAttribute("allow","camera "+E+"; display-capture "+E);this.parentElement.appendChild(I)}return this.iframeLoadPromise};
var HaL=function(E,B){var I,T;return _.a(function(e){if(e.nextAddress==1)return I=oq1(getComputedStyle(E.parentElement).direction==="rtl"),E.parentElement.appendChild(I),document.activeElement instanceof HTMLElement&&(E.elementToFocusAfterClose=document.activeElement),_.q7(e,2),_.C(e,E.preloadIframe(B),4);if(e.nextAddress!=2){E.parentElement.removeChild(I);E.JSC$17186_previousBodyOverflow=E.parentElement.style.overflow;E.JSC$17186_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
E.JSC$17186_previousBodyOverscroll=E.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";E.parentElement.style.overscrollBehavior="contain";E.parentElement.style.overflow="hidden";var c=E.iframe;c.style.bottom="0";c.style.border="none";c.style.height="100%";c.style.left="0";c.style.position=E.iframePosition;c.style.right="0";c.style.top="0";c.style.width="100%";c.style.zIndex="2202";c.setAttribute("aria-hidden","false");c.setAttribute("aria-modal","true");
E.opened=!0;nU9(E);return _.W7(e,0)}T=_.RG(e);E.parentElement.removeChild(I);t$7(E.isDarkTheme());MiI(E,!1);throw Error("jk",{cause:T});})},MiI=function(E,B){B=B===void 0?!0:B;
E.iframe!==void 0&&(NV1(E),document.documentElement.style.overscrollBehavior=E.JSC$17186_previousHtmlOverscroll,E.parentElement.style.overscrollBehavior=E.JSC$17186_previousBodyOverscroll,E.parentElement.style.overflow=E.JSC$17186_previousBodyOverflow,E.elementToFocusAfterClose!==void 0&&(E.elementToFocusAfterClose.focus(),E.elementToFocusAfterClose=void 0),B?OaT(E):(E.parentElement.removeChild(E.iframe),E.iframe=void 0,E.iframeLoadPromise=void 0,E.mainChannel=void 0),E.opened=!1)},NV1=function(E){E.backgroundElementsAriaHiddenIsNull&&
(hUI(E.backgroundElementsAriaHiddenIsNull),E.backgroundElementsAriaHiddenIsNull=void 0);
E.backgroundElementsAriaHiddenIsFalse&&(E.backgroundElementsAriaHiddenIsFalse.each(function(B){B.setAttribute("aria-hidden","false")}),E.backgroundElementsAriaHiddenIsFalse=void 0);
E.backgroundElementsWithoutInert&&(E.backgroundElementsWithoutInert.each(function(B){B.removeAttribute("inert")}),E.backgroundElementsWithoutInert=void 0)},nU9=function(E){E.backgroundElementsAriaHiddenIsNull=(new kD(E.iframe.parentElement)).children().filter(function(B){return B.getAttribute("aria-hidden")===null&&B!==E.iframe});
E.backgroundElementsAriaHiddenIsNull.each(function(B){B.setAttribute("aria-hidden","true")});
E.backgroundElementsAriaHiddenIsFalse=(new kD(E.iframe.parentElement)).children().filter(function(B){return B.getAttribute("aria-hidden")==="false"&&B!==E.iframe});
E.backgroundElementsAriaHiddenIsFalse.each(function(B){B.setAttribute("aria-hidden","true")});
E.backgroundElementsWithoutInert=(new kD(E.iframe.parentElement)).children().filter(function(B){return!B.hasAttribute("inert")&&B!==E.iframe});
E.backgroundElementsWithoutInert.each(function(B){B.setAttribute("inert","true")})},OaT=function(E){E=E.iframe;
E.style.bottom="-1000px";E.style.position="fixed";E.style.right="-1000px";E.style.border="";E.style.height="";E.style.left="";E.style.top="";E.style.width="";E.style.zIndex="";E.setAttribute("aria-hidden","true");E.setAttribute("aria-modal","false")};
fW.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var Lpd=function(E,B){fW.call(this,Ab2[E],B);this.options=[];this.style=""};
_.L(Lpd,fW);var gUs=function(E){E.style="youtube";return E},S8I=function(E,B){E.eventTarget.listen(EU2,B);
return E},Jsd=function(E,B){E.eventTarget.listen(Kid,B);
return E},uG7=function(E,B){E.options.push(B);
return E},WpL=function(E){var B=[E.getOrigin()];
E.ancestorOrigins&&B.push.apply(B,_.ad(E.ancestorOrigins));var I=new _.tQ(E.JSC$17186_win.location.href),T=E.startUrl?E.startUrl:E.options.includes("po")?"profile-picture/art":"profile-picture";B=Kh(_.R8(E.getTargetOrigin(),T),"origin",B);E.startUrl&&_.Wp(B,"startPath",E.startUrl);E.authUser>0&&_.Wp(B,"authuser",E.authUser);E.pageId!==void 0&&_.Wp(B,"pageId",E.pageId);_.Wp(B,"hostId",E.hostId);E.jsMode!==void 0&&_.Wp(B,"jsmode",E.jsMode);E.options.length>0&&_.Wp(B,"opts",E.options.join(","));try{for(var e=
_.p(["utm_source","utm_medium","utm_campaign","utm_content"]),c=e.next();!c.done;c=e.next()){var Y=c.value;_.JV(I,Y)&&_.Wp(B,Y,_.JV(I,Y))}var v,y=(v=E.hl)!=null?v:_.JV(I,"hl");y!==void 0&&_.Wp(B,"hl",y)}catch(Z){if(!(Z instanceof URIError))throw Z;}E.colorScheme&&_.Wp(B,"theme",E.colorScheme);E.style&&_.Wp(B,"style",E.style);return B},Xf2=function(E,B){E.mainChannel=_.Dc({destination:E.JSC$17186_win,
iframe:B,origin:E.getTargetOrigin().toString(),channelName:"ow",onMessage:function(I){I=VDO(I.data);if(B===E.iframe)switch(_.na(I,1)){case 1:E.eventTarget.dispatchEvent(new TV8);MiI(E);break;case 2:E.eventTarget.dispatchEvent(new $dI(_.O8(I,4),_.O8(I,2),_.na(I,5),_.DZ(I,kXm,6)));break;case 0:var T;E.eventTarget.dispatchEvent(new IcH(_.O8(I,2),(T=_.na(I,3))!=null?T:0));break;case 3:E.eventTarget.dispatchEvent(new TV8(!0));MiI(E,!1);break;case 4:E.eventTarget.dispatchEvent(new eUt)}}})},GO7=function(E,
B,I){_.Dc({destination:E.JSC$17186_win,
iframe:B,origin:_.KS(_.DF(_.F6(new _.tQ,E.scheme),E.domain),E.port).toString(),channelName:"owi",onMessage:function(T){B===E.iframe&&(I!==void 0&&I(),Xf2(E,B),E.opened&&E.mainChannel.send(Dsd(Fid())),T.reply(),GO7(E,B))}})};
Lpd.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?fW.prototype.preloadIframe.call(this,WpL(this).toString()):this.iframeLoadPromise};
Lpd.prototype.openPicker=function(E){var B=this;return _.a(function(I){if(I.nextAddress==1)return B.startUrl=E?E:B.options.includes("po")?"profile-picture/art":"profile-picture",_.C(I,HaL(B,WpL(B).toString()),2);if(B.mainChannel){var T=B.mainChannel,e=T.send;var c=Fid();c=_.$r(c,2,B.startUrl);e.call(T,Dsd(c))}_.ER(I)})};var rs9=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(rs9,_.LX);_.l=rs9.prototype;_.l.getSize=function(){return lw(this,1)};
_.l.setSize=function(E){return _.gV(this,1,E)};
_.l.getWidth=function(){return lw(this,12)};
_.l.getHeight=function(){return lw(this,13)};
_.l.setCenterCrop=function(E){return _.q8(this,20,E)};
_.l.getHtml=function(){return _.La(this,4)};
_.l.getToken=function(){return _.ee(this,24)};
_.l.setToken=function(E){return _.$r(this,24,E)};
_.l.getBackgroundColor=function(){return lw(this,87)};
_.l.hasBackgroundColor=function(){return _.m2(_.wV(this,87))!=null};
_.l.getStoryboardLevel=function(){return lw(this,109)};var Vn=function(E){this.JSC$17194_value_=void 0;this.childNodes_={};if(E){var B=_.$S$(E);E=_.q0(E);for(var I=0;I<B.length;I++)this.set(B[I],E[I])}};
Vn.prototype.set=function(E,B){ba2(this,E,B,!1)};
Vn.prototype.add=function(E,B){ba2(this,E,B,!0)};
var ba2=function(E,B,I,T){for(var e=0;e<B.length;e++){var c=B.charAt(e);E.childNodes_[c]||(E.childNodes_[c]=new Vn);E=E.childNodes_[c]}if(T&&E.JSC$17194_value_!==void 0)throw Error("kk`"+B);E.JSC$17194_value_=I},oUd=function(E,B){for(var I=0;I<B.length;I++)if(E=E.childNodes_[B.charAt(I)],!E)return;
return E};
Vn.prototype.get=function(E){return(E=oUd(this,E))?E.JSC$17194_value_:void 0};
Vn.prototype.getValues=function(){var E=[];Ast(this,E);return E};
var Ast=function(E,B){E.JSC$17194_value_!==void 0&&B.push(E.JSC$17194_value_);for(var I in E.childNodes_)Ast(E.childNodes_[I],B)};
Vn.prototype.getKeys=function(E){var B=[];if(E){for(var I=this,T=0;T<E.length;T++){var e=E.charAt(T);if(!I.childNodes_[e])return[];I=I.childNodes_[e]}jrI(I,E,B)}else jrI(this,"",B);return B};
var jrI=function(E,B,I){E.JSC$17194_value_!==void 0&&I.push(B);for(var T in E.childNodes_)jrI(E.childNodes_[T],B+T,I)};
_.l=Vn.prototype;_.l.containsKey=function(E){return this.get(E)!==void 0};
_.l.containsValue=function(E){if(this.JSC$17194_value_===E)return!0;for(var B in this.childNodes_)if(this.childNodes_[B].containsValue(E))return!0;return!1};
_.l.clear=function(){this.childNodes_={};this.JSC$17194_value_=void 0};
_.l.remove=function(E){for(var B=this,I=[],T=0;T<E.length;T++){var e=E.charAt(T);if(!B.childNodes_[e])throw Error("lk`"+E);I.push([B,e]);B=B.childNodes_[e]}E=B.JSC$17194_value_;for(delete B.JSC$17194_value_;I.length>0;)if(T=I.pop(),B=T[0],T=T[1],B.childNodes_[T].isEmpty())delete B.childNodes_[T];else break;return E};
_.l.clone=function(){return new Vn(this)};
_.l.getCount=function(){return uZ7(this.getValues())};
_.l.isEmpty=function(){return this.JSC$17194_value_===void 0&&_.a_.isEmpty(this.childNodes_)};var EhO=function(){if(!Udg){var E=Udg=new Vn,B;for(B in kOI)E.add(B,kOI[B])}},Udg,qa=function(E,B){this.types=E;
this.setters=B},kOI={a:new qa([3,
0],[function(E,B){_.q8(E,21,B)},
function(E,B){_.gV(E,56,B)}]),
al:new qa([3],[function(E,B){_.q8(E,74,B)}]),
b:new qa([3,0],[function(E,B){_.q8(E,23,B)},
function(E,B){_.gV(E,38,B)}]),
ba:new qa([0],[function(E,B){_.gV(E,85,B)}]),
bc:new qa([0],[function(E,B){_.gV(E,87,B)}]),
br:new qa([0],[function(E,B){_.gV(E,86,B)}]),
c:new qa([3,0],[function(E,B){_.q8(E,2,B)},
function(E,B){_.gV(E,39,B)}]),
cc:new qa([3],[function(E,B){_.q8(E,51,B)}]),
ci:new qa([3],[function(E,B){_.q8(E,32,B)}]),
ckm:new qa([3],[function(E,B){_.q8(E,104,B)}]),
cp:new qa([0],[function(E,B){_.gV(E,92,B)}]),
cr:new qa([3],[function(E,B){_.q8(E,108,B)}]),
cv:new qa([0],[function(E,B){_.gV(E,94,B)}]),
d:new qa([3],[function(E,B){_.q8(E,3,B)}]),
dc:new qa([5],[function(E,B){_.$r(E,99,B)}]),
df:new qa([3],[function(E,B){_.q8(E,80,B)}]),
dv:new qa([3],[function(E,B){_.q8(E,90,B)}]),
e:new qa([0],[function(E,B){_.gV(E,15,B)}]),
em:new qa([0],[function(E,B){_.gV(E,107,B)}]),
f:new qa([4],[function(E,B){_.$r(E,16,B)}]),
fg:new qa([3],[function(E,B){_.q8(E,34,B)}]),
fh:new qa([3],[function(E,B){_.q8(E,30,B)}]),
fm:new qa([3],[function(E,B){_.q8(E,84,B)}]),
fo:new qa([2],[function(E,B){_.Rk(E,79,_.T7(B))}]),
ft:new qa([3],[function(E,B){_.q8(E,50,B)}]),
fv:new qa([3],[function(E,B){_.q8(E,31,B)}]),
g:new qa([3],[function(E,B){_.q8(E,14,B)}]),
gce:new qa([4],[function(E,B){_.$r(E,112,B)}]),
gd:new qa([3],[function(E,B){_.q8(E,83,B)}]),
gm:new qa([3],[function(E,B){_.q8(E,105,B)}]),
h:new qa([3,0],[function(E,B){_.q8(E,4,B)},
function(E,B){_.gV(E,13,B)}]),
i:new qa([3],[function(E,B){_.q8(E,22,B)}]),
ic:new qa([0],[function(E,B){_.gV(E,71,B)}]),
id:new qa([3],[function(E,B){_.q8(E,70,B)}]),
il:new qa([3],[function(E,B){_.q8(E,96,B)}]),
ip:new qa([3],[function(E,B){_.q8(E,54,B)}]),
iv:new qa([0],[function(E,B){_.w9(E,75,B)}]),
j:new qa([1],[function(E,B){B=B==null?B:R7t(B);_.Rk(E,29,B)}]),
k:new qa([3,0],[function(E,B){_.q8(E,17,B)},
function(E,B){_.gV(E,42,B)}]),
l:new qa([0],[function(E,B){_.gV(E,44,B)}]),
lf:new qa([3],[function(E,B){_.q8(E,65,B)}]),
lo:new qa([3],[function(E,B){_.q8(E,97,B)}]),
m:new qa([0],[function(E,B){_.gV(E,63,B)}]),
md:new qa([3],[function(E,B){_.q8(E,91,B)}]),
mm:new qa([4],[function(E,B){_.$r(E,81,B)}]),
mo:new qa([3],[function(E,B){_.q8(E,73,B)}]),
mv:new qa([3],[function(E,B){_.q8(E,66,B)}]),
n:new qa([3],[function(E,B){E.setCenterCrop(B)}]),
nc:new qa([3],[function(E,B){_.q8(E,55,B)}]),
nd:new qa([3],[function(E,B){_.q8(E,53,B)}]),
ng:new qa([3],[function(E,B){_.q8(E,95,B)}]),
ngm:new qa([3],[function(E,B){_.q8(E,106,B)}]),
no:new qa([3],[function(E,B){_.q8(E,37,B)}]),
ns:new qa([3],[function(E,B){_.q8(E,40,B)}]),
nt0:new qa([4],[function(E,B){_.$r(E,36,B)}]),
ntm:new qa([3],[function(E,B){_.q8(E,114,B)}]),
nu:new qa([3],[function(E,B){_.q8(E,46,B)}]),
nw:new qa([3],[function(E,B){_.q8(E,48,B)}]),
o:new qa([1,3],[function(E,B){B=B==null?B:R7t(B);_.Rk(E,7,B)},
function(E,B){_.q8(E,27,B)}]),
p:new qa([3,0],[function(E,B){_.q8(E,19,B)},
function(E,B){_.gV(E,43,B)}]),
pa:new qa([3],[function(E,B){_.q8(E,61,B)}]),
pc:new qa([0],[function(E,B){_.gV(E,88,B)}]),
pd:new qa([3],[function(E,B){_.q8(E,60,B)}]),
pf:new qa([3],[function(E,B){_.q8(E,67,B)}]),
pg:new qa([3],[function(E,B){_.q8(E,72,B)}]),
pi:new qa([2],[function(E,B){_.Rk(E,76,_.T7(B))}]),
pp:new qa([3],[function(E,B){_.q8(E,52,B)}]),
pt:new qa([4],[function(E,B){_.$r(E,111,B)}]),
q:new qa([4],[function(E,B){_.$r(E,28,B)}]),
r:new qa([3,0],[function(E,B){_.q8(E,6,B)},
function(E,B){_.gV(E,26,B)}]),
ra:new qa([3],[function(E,B){_.q8(E,103,B)}]),
rf:new qa([3],[function(E,B){_.q8(E,100,B)}]),
rg:new qa([3],[function(E,B){_.q8(E,59,B)}]),
rh:new qa([3],[function(E,B){_.q8(E,49,B)}]),
rj:new qa([3],[function(E,B){_.q8(E,57,B)}]),
ro:new qa([2],[function(E,B){_.Rk(E,78,_.T7(B))}]),
rp:new qa([3],[function(E,B){_.q8(E,58,B)}]),
rw:new qa([3],[function(E,B){_.q8(E,35,B)}]),
rwa:new qa([3],[function(E,B){_.q8(E,64,B)}]),
rwu:new qa([3],[function(E,B){_.q8(E,41,B)}]),
s:new qa([3,0],[function(E,B){_.q8(E,33,B)},
function(E,B){E.setSize(B)}]),
sb:new qa([0],[function(E,B){_.gV(E,110,B)}]),
sc:new qa([0],[function(E,B){_.gV(E,89,B)}]),
sg:new qa([3],[function(E,B){_.q8(E,82,B)}]),
sl:new qa([0],[function(E,B){_.gV(E,109,B)}]),
sm:new qa([3],[function(E,B){_.q8(E,93,B)}]),
t:new qa([4],[function(E,B){E.setToken(B)}]),
tm:new qa([3],[function(E,B){_.q8(E,113,B)}]),
u:new qa([3],[function(E,B){_.q8(E,18,B)}]),
ut:new qa([3],[function(E,B){_.q8(E,45,B)}]),
v:new qa([0],[function(E,B){_.gV(E,62,B)}]),
vb:new qa([0],[function(E,B){_.w9(E,68,B)}]),
vf:new qa([4],[function(E,B){_.$r(E,102,B)}]),
vl:new qa([0],[function(E,B){_.w9(E,69,B)}]),
vm:new qa([3],[function(E,B){_.q8(E,98,B)}]),
w:new qa([0],[function(E,B){_.gV(E,12,B)}]),
x:new qa([0],[function(E,B){_.gV(E,9,B)}]),
y:new qa([0],[function(E,B){_.gV(E,10,B)}]),
ya:new qa([2],[function(E,B){_.Rk(E,77,_.T7(B))}]),
z:new qa([0],[function(E,B){_.gV(E,11,B)}])};
EhO.prototype.parse=function(E){var B=new rs9,I=new rs9;if(E=="")E=!0;else{E=E.split("-");for(var T=!0,e=0;e<E.length;e++){var c=E[e];if(c.length==0)T=!1;else{var Y=c,v=!1;var y=Y;var Z=Y.charAt(0);Z!=Z.toLowerCase()&&(v=!0,y=Y.charAt(0).toLowerCase()+Y.substring(1));var P=Udg;for(Z=1;Z<=y.length;++Z){var z=P,m=y.substring(0,Z);if(m.length==0?z.isEmpty():!oUd(z,m))break}y=Z==1?null:(y=P.get(y.substring(0,Z-1)))?{option:Y.substring(0,Z-1),value:Y.substring(Z-1),signed:v,attributes:y}:null;if(y){Y=
[];v=[];Z=!1;for(P=0;P<y.attributes.types.length;P++){z=y.attributes.types[P];var u=y.value;m=e;if(y.signed&&z==1)for(var x=u.length;x<12&&m<E.length-1;)u+="-"+E[m+1],x=u.length,++m;else if(z==2)for(;m<E.length-1&&E[m+1].match(/^[\d\.]/);)u+="-"+E[m+1],++m;x=y.attributes.setters[P];u=ti2(this,z)(y.option,u,B,I,x);if(u===null){Z=!0;e=m;break}else Y.push(z),v.push(u)}if(!Z)for(y=0;y<v.length;y++)P=Y[y],u=v[y],fcT(this,P)(c,u);T=T&&Z}else T=!1}}E=T}return new Vi7(B,I,E)};
var Fl=function(E,B,I,T,e,c){e(I,B);E=E.charAt(0);c=c(E==E.toUpperCase());e(T,c)};
_.l=EhO.prototype;_.l.parseAndSetIntOption_=function(E,B,I,T,e){if(B=="")return 0;isFinite(B)&&(B=String(B));B=typeof B==="string"?/^\s*-?0x/i.test(B)?parseInt(B,16):parseInt(B,10):NaN;if(isNaN(B))return 1;Fl(E,B,I,T,e,Number);return null};
_.l.logIntParseError_=function(){};
_.l.parseAndSetFloatOption_=function(E,B,I,T,e){if(B=="")return 0;var c=Number(B);B=c==0&&_.aB(B)?NaN:c;if(isNaN(B))return 1;Fl(E,B,I,T,e,Number);return null};
_.l.logFloatParseError_=function(){};
_.l.parseAndSetBoolOption_=function(E,B,I,T,e){if(B!="")return 2;Fl(E,!0,I,T,e,Boolean);return null};
_.l.logBoolParseError_=function(){};
_.l.parseAndSetStringOption_=function(E,B,I,T,e){if(B=="")return 0;Fl(E,B,I,T,e,function(c){return c?"1":""});
return null};
_.l.logStringParseError_=function(){};
_.l.parseAndSetUint64Base64Option_=function(E,B,I,T,e){if(B=="")return 0;Fl(E,B,I,T,e,function(c){return c?1:0});
return null};
var ti2=function(E,B){switch(B){case 0:return(0,_.w1)(E.parseAndSetIntOption_,E);case 2:return(0,_.w1)(E.parseAndSetFloatOption_,E);case 3:return(0,_.w1)(E.parseAndSetBoolOption_,E);case 4:return(0,_.w1)(E.parseAndSetStringOption_,E);case 1:return(0,_.w1)(E.parseAndSetUint64Base64Option_,E);default:return function(){}}},fcT=function(E,B){switch(B){case 0:return(0,_.w1)(E.logIntParseError_,E);
case 2:return(0,_.w1)(E.logFloatParseError_,E);case 3:return(0,_.w1)(E.logBoolParseError_,E);case 4:case 1:return(0,_.w1)(E.logStringParseError_,E);default:return function(){}}},Vi7=function(E,B,I){this.valueProto_=E;
this.signatureFlagProto_=B;this.JSC$17206_valid_=I};
Vi7.prototype.isValid=function(){return this.JSC$17206_valid_};var FSI=function(E){this.JSC$17207_parser_=null;this.JSC$17207_components_=[];this.JSC$17207_parsedOptions_=null;q8g(this,E)},Fp8=function(E){E.JSC$17207_parser_==null&&(E.JSC$17207_parser_=new EhO);
return E.JSC$17207_parser_},q8g=function(E,B){E.JSC$17207_parsedOptions_=B?typeof B==="string"?Fp8(E).parse(B):B:Fp8(E).parse("")},Df=function(E,B){return E==B?!1:!0};
_.l=FSI.prototype;_.l.JSC$17209_setCrop=function(E){E=E||void 0;var B=this.JSC$17207_parsedOptions_,I=B.valueProto_;Df(E,_.La(I,2),_.La(B.signatureFlagProto_,2))&&_.q8(I,2,E);return this};
_.l.JSC$17209_setCircleCrop=function(E){E=E||void 0;var B=this.JSC$17207_parsedOptions_,I=B.valueProto_;Df(E,e8(I,51),e8(B.signatureFlagProto_,51))&&_.q8(I,51,E);return this};
_.l.JSC$17209_setImageCrop=function(E){E=E||void 0;var B=this.JSC$17207_parsedOptions_,I=B.valueProto_;Df(E,e8(I,32),e8(B.signatureFlagProto_,32))&&_.q8(I,32,E);return this};
_.l.JSC$17209_setHeight=function(E){var B=this.JSC$17207_parsedOptions_,I=B.valueProto_;Df(E,I.getHeight(),B.signatureFlagProto_.getHeight())&&_.gV(I,13,E);return this};
_.l.setCenterCrop=function(E){E=E||void 0;var B=this.JSC$17207_parsedOptions_,I=B.valueProto_;Df(E,_.La(I,20),_.La(B.signatureFlagProto_,20))&&I.setCenterCrop(E);return this};
_.l.JSC$17209_setSmartCrop=function(E){E=E||void 0;var B=this.JSC$17207_parsedOptions_,I=B.valueProto_;Df(E,_.La(I,19),_.La(B.signatureFlagProto_,19))&&_.q8(I,19,E);return this};
_.l.JSC$17209_setPad=function(E){E=E||void 0;var B=this.JSC$17207_parsedOptions_,I=B.valueProto_;Df(E,e8(I,60),e8(B.signatureFlagProto_,60))&&_.q8(I,60,E);return this};
_.l.JSC$17209_setSmartCropUseFace=function(E){E=E||void 0;var B=this.JSC$17207_parsedOptions_,I=B.valueProto_;Df(E,_.La(I,67),_.La(B.signatureFlagProto_,67))&&_.q8(I,67,E);return this};
_.l.JSC$17209_setSmartCropNoClip=function(E){E=E||void 0;var B=this.JSC$17207_parsedOptions_,I=B.valueProto_;Df(E,_.La(I,52),_.La(B.signatureFlagProto_,52))&&_.q8(I,52,E);return this};
_.l.setSize=function(E){var B=this.JSC$17207_parsedOptions_,I=B.valueProto_;Df(E,I.getSize(),B.signatureFlagProto_.getSize())&&I.setSize(E);return this};
_.l.setToken=function(E){E=E||void 0;var B=this.JSC$17207_parsedOptions_,I=B.valueProto_;Df(E,I.getToken(),B.signatureFlagProto_.getToken())&&I.setToken(E);return this};
_.l.JSC$17209_setWidth=function(E){var B=this.JSC$17207_parsedOptions_,I=B.valueProto_;Df(E,I.getWidth(),B.signatureFlagProto_.getWidth())&&_.gV(I,12,E);return this};
_.l.clearOptions=function(){q8g(this,"");return this};
_.l.build=function(){this.JSC$17207_components_.length=0;var E=this.JSC$17207_parsedOptions_,B=E.valueProto_;E=E.signatureFlagProto_;KW(this,"s",B.getSize(),E.getSize());KW(this,"w",B.getWidth(),E.getWidth());RD(this,"c",_.La(B,2),_.La(E,2));RD(this,"d",_.La(B,3),_.La(E,3));KW(this,"h",B.getHeight(),E.getHeight());RD(this,"s",e8(B,33),e8(E,33));RD(this,"h",B.getHtml(),E.getHtml());RD(this,"p",_.La(B,19),_.La(E,19));RD(this,"pp",_.La(B,52),_.La(E,52));RD(this,"pf",_.La(B,67),_.La(E,67));RD(this,"n",
_.La(B,20),_.La(E,20));KW(this,"r",lw(B,26),lw(E,26));RD(this,"r",_.La(B,6),_.La(E,6));RD(this,"o",e8(B,27),e8(E,27));var I=_.uq(B,7,_.Ca);EE(this,"o",I,_.uq(E,7,_.Ca));I=_.uq(B,29,_.Ca);EE(this,"j",I,_.uq(E,29,_.Ca));KW(this,"x",lw(B,9),lw(E,9));KW(this,"y",lw(B,10),lw(E,10));KW(this,"z",lw(B,11),lw(E,11));RD(this,"g",_.La(B,14),_.La(E,14));KW(this,"e",lw(B,15),lw(E,15));EE(this,"f",_.ee(B,16),_.ee(E,16));RD(this,"k",e8(B,17),e8(E,17));RD(this,"u",e8(B,18),!0);RD(this,"ut",e8(B,45),!0);RD(this,"i",
e8(B,22),!0);RD(this,"a",e8(B,21),e8(E,21));RD(this,"b",_.La(B,23),_.La(E,23));KW(this,"b",lw(B,38),lw(E,38));KW(this,"c",lw(B,39),lw(E,39),16,8);EE(this,"q",_.ee(B,28),_.ee(E,28));RD(this,"fh",e8(B,30),e8(E,30));RD(this,"fv",e8(B,31),e8(E,31));RD(this,"fg",_.La(B,34),_.La(E,34));RD(this,"ci",e8(B,32),e8(E,32));EE(this,"t",B.getToken(),E.getToken());EE(this,"nt0",_.ee(B,36),_.ee(E,36));RD(this,"rw",_.La(B,35),_.La(E,35));RD(this,"rwu",_.La(B,41),_.La(E,41));RD(this,"rwa",_.La(B,64),_.La(E,64));RD(this,
"nw",_.La(B,48),_.La(E,48));RD(this,"rh",_.La(B,49),_.La(E,49));RD(this,"no",_.La(B,37),_.La(E,37));RD(this,"ns",e8(B,40),e8(E,40));KW(this,"k",lw(B,42),lw(E,42));KW(this,"p",lw(B,43),lw(E,43));KW(this,"l",lw(B,44),lw(E,44));KW(this,"v",lw(B,62),lw(E,62));RD(this,"nu",e8(B,46),e8(E,46));RD(this,"ft",e8(B,50),e8(E,50));RD(this,"cc",e8(B,51),e8(E,51));RD(this,"nd",e8(B,53),e8(E,53));RD(this,"ip",e8(B,54),e8(E,54));RD(this,"nc",e8(B,55),e8(E,55));KW(this,"a",lw(B,56),lw(E,56));RD(this,"rj",e8(B,57),
e8(E,57));RD(this,"rp",e8(B,58),e8(E,58));RD(this,"rg",e8(B,59),e8(E,59));RD(this,"pd",e8(B,60),e8(E,60));RD(this,"pa",e8(B,61),e8(E,61));KW(this,"m",lw(B,63),lw(E,63));KW(this,"vb",cK(B,68),cK(E,68));KW(this,"vl",cK(B,69),cK(E,69));RD(this,"lf",e8(B,65),e8(E,65));RD(this,"mv",e8(B,66),e8(E,66));RD(this,"id",e8(B,70),e8(E,70));KW(this,"ic",lw(B,71),!0);RD(this,"pg",_.La(B,72),_.La(E,72));RD(this,"mo",e8(B,73),e8(E,73));RD(this,"al",e8(B,74),e8(E,74));KW(this,"iv",cK(B,75),cK(E,75));KW(this,"pi",iw(B,
76),iw(E,76));KW(this,"ya",iw(B,77),iw(E,77));KW(this,"ro",iw(B,78),iw(E,78));KW(this,"fo",iw(B,79),iw(E,79));RD(this,"df",e8(B,80),e8(E,80));EE(this,"mm",_.ee(B,81),_.ee(E,81));RD(this,"sg",e8(B,82),e8(E,82));RD(this,"gd",e8(B,83),e8(E,83));RD(this,"fm",e8(B,84),e8(E,84));KW(this,"ba",lw(B,85),lw(E,85));KW(this,"br",lw(B,86),lw(E,86));KW(this,"bc",B.getBackgroundColor(),E.getBackgroundColor(),16,8);KW(this,"pc",lw(B,88),lw(E,88),16,8);KW(this,"sc",lw(B,89),lw(E,89),16,8);RD(this,"dv",e8(B,90),e8(E,
90));RD(this,"md",e8(B,91),e8(E,91));KW(this,"cp",lw(B,92),lw(E,92));RD(this,"sm",e8(B,93),e8(E,93));KW(this,"cv",lw(B,94),lw(E,94));RD(this,"ng",e8(B,95),e8(E,95));RD(this,"il",e8(B,96),e8(E,96));RD(this,"lo",e8(B,97),e8(E,97));RD(this,"vm",e8(B,98),e8(E,98));EE(this,"dc",_.ee(B,99),_.ee(E,99));RD(this,"rf",e8(B,100),e8(E,100));EE(this,"vf",_.ee(B,102),_.ee(E,102));RD(this,"ra",_.La(B,103),_.La(E,103));RD(this,"ckm",e8(B,104),e8(E,104));RD(this,"gm",e8(B,105),e8(E,105));RD(this,"ngm",e8(B,106),e8(E,
106));KW(this,"em",lw(B,107),lw(E,107));RD(this,"cr",e8(B,108),e8(E,108));KW(this,"sl",B.getStoryboardLevel(),E.getStoryboardLevel());KW(this,"sb",lw(B,110),lw(E,110));EE(this,"pt",_.ee(B,111),_.ee(E,111));EE(this,"gce",_.ee(B,112),_.ee(E,112));RD(this,"tm",e8(B,113),e8(E,113));RD(this,"ntm",e8(B,114),e8(E,114));return this.JSC$17207_components_.join("-")};
var KW=function(E,B,I,T,e,c){if(I!=null){var Y=e==void 0||e!=10&&e!=16?10:e;I=Number(I).toString(Y);e=new Pyg;e.append(Y==16?"0x":"");Y=e.append;c==void 0?c="":(c-=I.length,c=c<=0?"":(0,_.lXr)("0",c));Y.call(e,c);e.append(I);Dd2(E,B,e.toString(),!!T)}},RD=function(E,B,I,T){I&&Dd2(E,B,"",!!T)},EE=function(E,B,I,T){I&&Dd2(E,B,I,!!T)},Dd2=function(E,B,I,T){T&&(B=B.charAt(0).toUpperCase()+B.substring(1));
E.JSC$17207_components_.push(B+I)};_.$U(w2,FSI);_.l=w2.prototype;_.l.JSC$17209_setCrop=function(E){E&&Bw(this);return w2.superClass_.JSC$17209_setCrop.call(this,E)};
_.l.JSC$17209_setHeight=function(E){E=E==null||E<0?void 0:E;E!=null&&this.setSize();return w2.superClass_.JSC$17209_setHeight.call(this,E)};
_.l.JSC$17209_setImageCrop=function(E){E&&Bw(this);return w2.superClass_.JSC$17209_setImageCrop.call(this,E)};
_.l.JSC$17209_setCircleCrop=function(E){E&&Bw(this);return w2.superClass_.JSC$17209_setCircleCrop.call(this,E)};
_.l.setSize=function(E){_.B6(E)&&(E=Math.max(E.width,E.height));E=E==null||E<0?void 0:E;E!=null&&(this.JSC$17209_setWidth(),this.JSC$17209_setHeight());return w2.superClass_.setSize.call(this,E)};
_.l.JSC$17209_setSmartCrop=function(E){E&&Bw(this);return w2.superClass_.JSC$17209_setSmartCrop.call(this,E)};
_.l.JSC$17209_setSmartCropNoClip=function(E){E&&Bw(this);return w2.superClass_.JSC$17209_setSmartCropNoClip.call(this,E)};
_.l.JSC$17209_setSmartCropUseFace=function(E){E&&Bw(this);return w2.superClass_.JSC$17209_setSmartCropUseFace.call(this,E)};
_.l.setCenterCrop=function(E){E&&Bw(this);return w2.superClass_.setCenterCrop.call(this,E)};
_.l.JSC$17209_setPad=function(E){E&&Bw(this);return w2.superClass_.JSC$17209_setPad.call(this,E)};
_.l.JSC$17209_setWidth=function(E){E=E==null||E<0?void 0:E;E!=null&&this.setSize();return w2.superClass_.JSC$17209_setWidth.call(this,E)};
var KpH=function(E){E.clearOptions();var B=E.JSC$17207_parsedOptions_,I=B.valueProto_;Df(!0,_.La(I,3),_.La(B.signatureFlagProto_,3))&&_.q8(I,3,!0);return E},Bw=function(E){E.setCenterCrop();
E.JSC$17209_setCircleCrop();E.JSC$17209_setCrop();E.JSC$17209_setImageCrop();E.JSC$17209_setPad();E.JSC$17209_setSmartCrop();E.JSC$17209_setSmartCropNoClip();E.JSC$17209_setSmartCropUseFace()};
w2.prototype.build=function(){var E=this.JSC$17207_parsedOptions_.valueProto_;e8(E,18)||e8(E,45)?E.getSize()||this.setSize(0):(E=this.JSC$17207_parsedOptions_.valueProto_,E.getSize()||E.getWidth()||E.getHeight()||(this.setSize(),this.JSC$17209_setHeight(),this.JSC$17209_setWidth(),Bw(this)));return w2.superClass_.build.call(this)};var RUH=/^[^\/]*\/\//,$F=function(E,B){B=B===void 0?!1:B;this.original_=E;this.originalPrefix_="";(E=this.original_.match(RUH))&&E[0]?(this.originalPrefix_=E[0],E=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):E="http://"+this.original_;this.uri_=_.Se(E,!0);this.isFreeformUrl_=B;this.JSC$17213_valid_=!0;this.obfuscated_=!1},U6g=function(E,B){E.JSC$17215_pathPrefix_=E.JSC$17215_pathPrefix_?E.JSC$17215_pathPrefix_+("/"+B):B},Im=function(E){if(E.JSC$17215_components_==
void 0){var B=E.uri_.getPath().substring(1);
E.JSC$17215_pathPrefix_=null;if(E.isFreeformUrl_){E.JSC$17215_components_=[];if((B.match(/=/g)||[]).length>1)return E.JSC$17213_valid_=!1,E.JSC$17215_components_;var I=B.indexOf("=");I!=-1?(E.JSC$17215_components_.push(B.substr(0,I)),E.JSC$17215_components_.push(B.substr(I+1))):E.JSC$17215_components_.push(B);return E.JSC$17215_components_}E.JSC$17215_components_=B.split("/");B=E.JSC$17215_components_.length;B>2&&E.JSC$17215_components_[0]=="u"&&(U6g(E,E.JSC$17215_components_[0]+"/"+E.JSC$17215_components_[1]),
E.JSC$17215_components_.shift(),E.JSC$17215_components_.shift(),B-=2);if(B==0||B==4||B>7)return E.JSC$17213_valid_=!1,E.JSC$17215_components_;if(B==2)U6g(E,E.JSC$17215_components_[0]);else if(E.JSC$17215_components_[0]=="image")U6g(E,E.JSC$17215_components_[0]);else if(B==7||B==3)return E.JSC$17213_valid_=!1,E.JSC$17215_components_;if(B<=3){E.obfuscated_=!0;B==3&&(U6g(E,E.JSC$17215_components_[1]),E.JSC$17215_components_.shift(),--B);--B;I=E.JSC$17215_components_[B];var T=I.indexOf("=");T!=-1&&(E.JSC$17215_components_[B]=
I.substr(0,T),E.JSC$17215_components_.push(I.substr(T+1)))}}return E.JSC$17215_components_};
$F.prototype.isValid=function(){Im(this);return this.JSC$17213_valid_};
$F.prototype.isObfuscated=function(){Im(this);return this.obfuscated_};
var kjO=function(E){Im(E);return E.isFreeformUrl_},TD=function(E){Im(E);
E.JSC$17215_pathPrefix_==void 0&&(E.JSC$17215_pathPrefix_=null);return E.JSC$17215_pathPrefix_},tM8=function(E){switch(Im(E).length){case 7:return!0;
case 6:return TD(E)==null;case 5:return!1;case 3:return!0;case 2:return TD(E)==null;case 1:return!1;default:return!1}},eK=function(E,B){if(kjO(E))a:{switch(B){case 7:B=0;
break;case 4:if(!tM8(E)){E=null;break a}B=1;break;default:E=null;break a}E=Im(E)[B]}else if(E.isObfuscated())a:{var I=TD(E)!=null?1:0;switch(B){case 6:B=I;break;case 4:if(!tM8(E)){E=null;break a}B=1+I;break;default:E=null;break a}E=Im(E)[B]}else a:{I=TD(E)!=null?1:0;switch(B){case 0:B=I;break;case 1:B=1+I;break;case 2:B=2+I;break;case 3:B=3+I;break;case 4:if(!tM8(E)){E=null;break a}B=4+I;break;case 5:B=tM8(E)?1:0;B=4+I+B;break;default:E=null;break a}E=Im(E)[B]}return E};
$F.prototype.getOptions=function(){this.options_==void 0&&(this.options_=eK(this,4));return this.options_};var R0I=function(){};
R0I.prototype.parse=function(E,B){return new Dqg(E,B===void 0?!1:B)};
var Dqg=function(E,B){$F.call(this,E,B===void 0?!1:B)};
_.L(Dqg,$F);_.$U(Zy,w2);var KS1;Zy.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Zy.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var E=Zy.superClass_.build.call(this),B=[];TD(this.parsedImageUrl_)!=null&&B.push(TD(this.parsedImageUrl_));var I=kjO(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var T=this.parsedImageUrl_;T.obfuscatedData_==void 0&&(T.obfuscatedData_=eK(T,6));B.push(T.obfuscatedData_+(E?"="+E:""))}else if(I){T=B.push;var e=this.parsedImageUrl_;e.freeformUrlPath_===void 0&&(e.freeformUrlPath_=eK(e,
7));T.call(B,e.freeformUrlPath_);E&&B.push(E)}else T=B.push,e=this.parsedImageUrl_,e.obfuscatedGaiaId_==void 0&&(e.obfuscatedGaiaId_=eK(e,0)),T.call(B,e.obfuscatedGaiaId_),T=B.push,e=this.parsedImageUrl_,e.photoId_==void 0&&(e.photoId_=eK(e,1)),T.call(B,e.photoId_),T=B.push,e=this.parsedImageUrl_,e.imageVersion_==void 0&&(e.imageVersion_=eK(e,2)),T.call(B,e.imageVersion_),T=B.push,e=this.parsedImageUrl_,e.signature_==void 0&&(e.signature_=eK(e,3)),T.call(B,e.signature_),E&&B.push(E),E=B.push,T=this.parsedImageUrl_,
T.filename_==void 0&&(T.filename_=eK(T,5)),E.call(B,T.filename_);B=I?B.join("="):B.join("/");B=_.Se(this.protocolPrefix_+this.JSC$17221_domain_+"/"+B+(this.JSC$17221_query_?"?"+this.JSC$17221_query_:"")).toString();B.startsWith("%3a//")&&(B=B.replace("%3a//","://"));return B};var frg=_.km(["viewBox"]),VML=_.km(["width"]),qz8=_.km(["height"]),FUd=_.km(["fill"]),D6L=_.km(["id"]),KUg=_.km(["x"]),Ro2=_.km(["y"]);BGO.prototype.getLength=function(){return this.parsedData.length};
BGO.prototype.write=function(E){for(var B=0,I=this.parsedData.length;B<I;B++)E.put(this.parsedData[B],8)};
var iCs=function(E,B){var I=new BGO(B);E.dataList.push(I);I=E.errorCorrectLevel;var T=1,e=encodeURI(B).toString().replace(/%[0-9a-fA-F]{2}/g,"a");B=e.length+(e.length!=B?3:0);e=0;for(var c=lr.length;e<=c;e++){var Y=0;switch(I){case 1:Y=lr[e][0];break;case 0:Y=lr[e][1];break;case 3:Y=lr[e][2];break;case 2:Y=lr[e][3]}if(B<=Y)break;else T++}if(T>lr.length)throw Error("uk");E.typeNumber=T;E.dataCache=null};
$UO.prototype.isDark=function(E,B){if(E<0||this.moduleCount<=E||B<0||this.moduleCount<=B)throw Error("mk`"+E+"`"+B);return this.modules[E][B]};
for(var pUd=function(E,B,I){E.moduleCount=E.typeNumber*4+17;E.modules=Array(E.moduleCount);for(var T=0;T<E.moduleCount;T++){E.modules[T]=Array(E.moduleCount);for(var e=0;e<E.moduleCount;e++)E.modules[T][e]=null}EQO(E,0,0);EQO(E,E.moduleCount-7,0);EQO(E,0,E.moduleCount-7);T=BdT[E.typeNumber-1];for(e=0;e<T.length;e++)for(var c=0;c<T.length;c++){var Y=T[e],v=T[c];if(E.modules[Y][v]==null)for(var y=-2;y<=2;y++)for(var Z=-2;Z<=2;Z++)E.modules[Y+y][v+Z]=y==-2||y==2||Z==-2||Z==2||y==0&&Z==0?!0:!1}for(T=
8;T<E.moduleCount-8;T++)E.modules[T][6]==null&&(E.modules[T][6]=T%2==0);for(T=8;T<E.moduleCount-8;T++)E.modules[6][T]==null&&(E.modules[6][T]=T%2==0);T=E.errorCorrectLevel<<3|I;for(e=T<<10;cw(e)-cw(1335)>=0;)e^=1335<<cw(e)-cw(1335);T=(T<<10|e)^21522;for(e=0;e<15;e++)c=!B&&(T>>e&1)==1,e<6?E.modules[e][8]=c:e<8?E.modules[e+1][8]=c:E.modules[E.moduleCount-15+e][8]=c;for(e=0;e<15;e++)c=!B&&(T>>e&1)==1,e<8?E.modules[8][E.moduleCount-e-1]=c:e<9?E.modules[8][15-e-1+1]=c:E.modules[8][15-e-1]=c;E.modules[E.moduleCount-
8][8]=!B;if(E.typeNumber>=7){T=E.typeNumber;for(e=T<<12;cw(e)-cw(7973)>=0;)e^=7973<<cw(e)-cw(7973);T=T<<12|e;for(e=0;e<18;e++)c=!B&&(T>>e&1)==1,E.modules[Math.floor(e/3)][e%3+E.moduleCount-8-3]=c;for(e=0;e<18;e++)c=!B&&(T>>e&1)==1,E.modules[e%3+E.moduleCount-8-3][Math.floor(e/3)]=c}if(E.dataCache==null){e=E.typeNumber;c=E.dataList;B=E.errorCorrectLevel;T=$BH(e,B);if(T==void 0)throw Error("tk`"+e+"`"+B);Y=T.length/3;B=[];for(v=0;v<Y;v++){y=T[v*3];Z=T[v*3+1];for(var P=T[v*3+2],z=0;z<y;z++)B.push(new I$9(Z,
P))}T=new TG8;for(Y=0;Y<c.length;Y++)v=c[Y],T.put(v.mode,4),T.put(v.getLength(),IYH(v.mode,e)),v.write(T);for(Y=e=0;Y<B.length;Y++)e+=B[Y].dataCount;if(T.length>e*8)throw Error("nk`"+T.length+"`"+e*8);for(T.length+4<=e*8&&T.put(0,4);T.length%8!=0;)Tdd(T,!1);for(;!(T.length>=e*8);){T.put(236,8);if(T.length>=e*8)break;T.put(17,8)}c=e=Z=0;Y=Array(B.length);v=Array(B.length);for(y=0;y<B.length;y++){z=B[y].dataCount;var m=B[y].totalCount-z;e=Math.max(e,z);c=Math.max(c,m);Y[y]=Array(z);for(P=0;P<Y[y].length;P++)Y[y][P]=
255&T.buffer[P+Z];Z+=z;P=m;z=new Pv([1],0);for(m=0;m<P;m++)z=z.multiply(new Pv([1,e3s(m)],0));P=z;z=(new Pv(Y[y],P.getLength()-1)).mod(P);v[y]=Array(P.getLength()-1);for(P=0;P<v[y].length;P++)m=P+z.getLength()-v[y].length,v[y][P]=m>=0?z.get(m):0}for(P=T=0;P<B.length;P++)T+=B[P].totalCount;T=Array(T);for(P=Z=0;P<e;P++)for(y=0;y<B.length;y++)P<Y[y].length&&(T[Z++]=Y[y][P]);for(P=0;P<c;P++)for(y=0;y<B.length;y++)P<v[y].length&&(T[Z++]=v[y][P]);E.dataCache=T}B=E.dataCache;T=-1;e=E.moduleCount-1;c=7;Y=
0;for(v=E.moduleCount-1;v>0;v-=2)for(v==6&&v--;;){for(y=0;y<2;y++)E.modules[e][v-y]==null&&(Z=!1,Y<B.length&&(Z=(B[Y]>>>c&1)==1),lY8(I,e,v-y)&&(Z=!Z),E.modules[e][v-y]=Z,c--,c==-1&&(Y++,c=7));e+=T;if(e<0||E.moduleCount<=e){e-=T;T=-T;break}}},EQO=function(E,B,I){for(var T=-1;T<=7;T++)if(!(B+T<=-1||E.moduleCount<=B+T))for(var e=-1;e<=7;e++)I+e<=-1||E.moduleCount<=I+e||(E.modules[B+T][I+e]=0<=T&&T<=6&&(e==0||e==6)||0<=e&&e<=6&&(T==0||T==6)||2<=T&&T<=4&&2<=e&&e<=4?!0:!1)},Yid=function(E){for(var B=0,
I=0,T=0;T<8;T++){pUd(E,!0,T);
var e=E;for(var c=e.moduleCount,Y=0,v=0;v<c;v++)for(var y=0;y<c;y++){for(var Z=0,P=e.isDark(v,y),z=-1;z<=1;z++)if(!(v+z<0||c<=v+z))for(var m=-1;m<=1;m++)y+m<0||c<=y+m||(z!=0||m!=0)&&P==e.isDark(v+z,y+m)&&Z++;Z>5&&(Y+=3+Z-5)}for(v=0;v<c-1;v++)for(y=0;y<c-1;y++)if(Z=0,e.isDark(v,y)&&Z++,e.isDark(v+1,y)&&Z++,e.isDark(v,y+1)&&Z++,e.isDark(v+1,y+1)&&Z++,Z==0||Z==4)Y+=3;for(v=0;v<c;v++)for(y=0;y<c-6;y++)e.isDark(v,y)&&!e.isDark(v,y+1)&&e.isDark(v,y+2)&&e.isDark(v,y+3)&&e.isDark(v,y+4)&&!e.isDark(v,y+5)&&
e.isDark(v,y+6)&&(Y+=40);for(y=0;y<c;y++)for(v=0;v<c-6;v++)e.isDark(v,y)&&!e.isDark(v+1,y)&&e.isDark(v+2,y)&&e.isDark(v+3,y)&&e.isDark(v+4,y)&&!e.isDark(v+5,y)&&e.isDark(v+6,y)&&(Y+=40);for(y=Z=0;y<c;y++)for(v=0;v<c;v++)e.isDark(v,y)&&Z++;e=Y+=Math.abs(100*Z/c/c-50)/5*10;if(T==0||B>e)B=e,I=T}return I},BdT=[[],
[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]],cw=function(E){for(var B=0;E!=0;)B++,E>>>=1;return B},lY8=function(E,B,I){switch(E){case 0:return(B+I)%2==0;
case 1:return B%2==0;case 2:return I%3==0;case 3:return(B+I)%3==0;case 4:return(Math.floor(B/2)+Math.floor(I/3))%2==0;case 5:return B*I%2+B*I%3==0;case 6:return(B*I%2+B*I%3)%2==0;case 7:return(B*I%3+(B+I)%2)%2==0;default:throw Error("ok`"+E);}},IYH=function(E,B){if(1<=B&&B<10)switch(E){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("pk`"+E);}else if(B<27)switch(E){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("pk`"+E);}else if(B<41)switch(E){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("pk`"+E);}else throw Error("qk`"+B);},ir=function(E){if(E<1)throw Error("rk`"+E);
return cLI[E]},e3s=function(E){for(;E<0;)E+=255;
for(;E>=256;)E-=255;return pu[E]},pu=Array(256),cLI=Array(256),iLL=0;iLL<8;iLL++)pu[iLL]=1<<iLL;
for(var YF=8;YF<256;YF++)pu[YF]=pu[YF-4]^pu[YF-5]^pu[YF-6]^pu[YF-8];for(var pk8=0;pk8<255;pk8++)cLI[pu[pk8]]=pk8;Pv.prototype.get=function(E){return this.num[E]};
Pv.prototype.getLength=function(){return this.num.length};
Pv.prototype.multiply=function(E){for(var B=Array(this.getLength()+E.getLength()-1),I=0;I<this.getLength();I++)for(var T=0;T<E.getLength();T++)B[I+T]^=e3s(ir(this.get(I))+ir(E.get(T)));return new Pv(B,0)};
Pv.prototype.mod=function(E){if(this.getLength()-E.getLength()<0)return this;for(var B=ir(this.get(0))-ir(E.get(0)),I=Array(this.getLength()),T=0;T<this.getLength();T++)I[T]=this.get(T);for(T=0;T<E.getLength();T++)I[T]^=e3s(ir(E.get(T))+B);return(new Pv(I,0)).mod(E)};
var YHI=[[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]],$BH=function(E,B){switch(B){case 1:return YHI[(E-1)*4];case 0:return YHI[(E-1)*4+1];case 3:return YHI[(E-1)*4+2];case 2:return YHI[(E-1)*4+3]}};
TG8.prototype.get=function(E){return(this.buffer[Math.floor(E/8)]>>>7-E%8&1)==1};
TG8.prototype.put=function(E,B){for(var I=0;I<B;I++)Tdd(this,(E>>>B-I-1&1)==1)};
var Tdd=function(E,B){var I=Math.floor(E.length/8);E.buffer.length<=I&&E.buffer.push(0);B&&(E.buffer[I]|=128>>>E.length%8);E.length++},lr=[[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]],cQ8=function(){var E=function(B,I){this.JSC$17241__el=B;this.JSC$17241__htOption=I};
E.prototype.draw=function(B){function I(P,z){P=document.createElementNS("http://www.w3.org/2000/svg",P);for(var m in z)z.hasOwnProperty(m)&&(m==="href"?_.zfH(P,z[m]):_.H1([_.od(frg),_.od(VML),_.od(qz8),_.od(FUd),_.od(D6L),_.od(KUg),_.od(Ro2)],P,m,z[m]));return P}
var T=this.JSC$17241__htOption,e=this.JSC$17241__el,c=B.moduleCount;this.clear();var Y=I("svg",{viewBox:"0 0 "+String(c)+" "+String(c),width:"100%",height:"100%",fill:T.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});e.appendChild(Y);Y.appendChild(I("rect",{fill:T.colorLight,width:"100%",height:"100%"}));Y.appendChild(I("rect",{fill:T.colorDark,width:"1",height:"1",id:"template"}));for(var v=0;v<c;v++)for(var y=0;y<c;y++)if(B.isDark(v,y)){var Z=I("use",{x:String(v),y:String(y),href:"#template"});
Y.appendChild(Z)}};
E.prototype.clear=function(){for(;this.JSC$17241__el.hasChildNodes();)this.JSC$17241__el.removeChild(this.JSC$17241__el.lastChild)};
return E}(),l$t=document.documentElement.tagName.toLowerCase()==="svg"?cQ8:typeof CanvasRenderingContext2D!="undefined"?function(){var E=function(B,I){this._bIsPainted=!1;
eSd();this.JSC$17241__htOption=I;this._elCanvas=document.createElement("canvas");this._elCanvas.width=I.width;this._elCanvas.height=I.height;B.appendChild(this._elCanvas);this.JSC$17241__el=B;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$17241__el.appendChild(this._elImage);this._bSupportDataURI=null};
E.prototype._onMakeImage=function(){var B=this._elCanvas.toDataURL("image/png");this._elImage.src=B;this._elImage.style.display="block";this._elCanvas.style.display="none"};
E.prototype._safeSetDataURI=function(B,I){var T=this;T._fFail=I;T._fSuccess=B;T._bSupportDataURI===null?(B=_.li("IMG"),I=function(){T._bSupportDataURI=!1;T._fFail&&T._fFail.call(T)},B.onabort=I,B.onerror=I,B.onload=function(){T._bSupportDataURI=!0;
T._fSuccess&&T._fSuccess.call(T)},B.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):T._bSupportDataURI===!0&&T._fSuccess?T._fSuccess.call(T):T._bSupportDataURI===!1&&T._fFail&&T._fFail.call(T)};
E.prototype.draw=function(B){var I=this._oContext,T=this.JSC$17241__htOption,e=B.moduleCount,c=T.width/e,Y=T.height/e,v=Math.round(c),y=Math.round(Y);this._elImage.style.display="none";this.clear();for(var Z=0;Z<e;Z++)for(var P=0;P<e;P++){var z=B.isDark(Z,P),m=P*c,u=Z*Y;I.strokeStyle=z?T.colorDark:T.colorLight;I.lineWidth=1;I.fillStyle=z?T.colorDark:T.colorLight;I.fillRect(m,u,c,Y);I.strokeRect(Math.floor(m)+.5,Math.floor(u)+.5,v,y);I.strokeRect(Math.ceil(m)-.5,Math.ceil(u)-.5,v,y)}this._bIsPainted=
!0};
E.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
E.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
E.prototype.round=function(B){return B?Math.floor(B*1E3)/1E3:B};
return E}():function(){var E=function(B,I){this.JSC$17241__el=B;
this.JSC$17241__htOption=I};
E.prototype.draw=function(B){for(var I=this.JSC$17241__htOption,T=this.JSC$17241__el,e=B.moduleCount,c=Math.floor(I.width/e),Y=Math.floor(I.height/e),v=['<table style="border:0;border-collapse:collapse;">'],y=0;y<e;y++){v.push("<tr>");for(var Z=0;Z<e;Z++)v.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+c+"px;height:"+Y+"px;background-color:"+(B.isDark(y,Z)?I.colorDark:I.colorLight)+';"></td>');v.push("</tr>")}v.push("</table>");B=v.join("");B=_.FRt(_.KR$,B);_.M7(T,B);
B=T.childNodes[0];e=(I.width-B.offsetWidth)/2;c=(I.height-B.offsetHeight)/2;e>0&&c>0&&(B.style.margin=c+"px "+e+"px")};
E.prototype.clear=function(){this.JSC$17241__el.textContent=""};
return E}();
a$I.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17244__android||this.JSC$17244__android>=3)&&this._oDrawing.makeImage()};
a$I.prototype.clear=function(){this._oDrawing.clear()};
_.$i.QRCode=a$I;var aYL={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var am=function(){};
am.prototype.stringify=function(E){return _.$i.JSON.stringify(E,void 0)};
am.prototype.parse=function(E){return _.$i.JSON.parse(E,void 0)};var vQg=function(){_.CS.call(this,"z")};
_.$U(vQg,_.CS);var yL1=function(){_.CS.call(this,"y")};
_.$U(yL1,_.CS);var CpO=null,wkT=function(){return CpO=CpO||new _.ms},ZLs=function(E){_.CS.call(this,"serverreachability",E)};
_.$U(ZLs,_.CS);var vw=function(E){var B=wkT();B.dispatchEvent(new ZLs(B,E))},Pp1=function(E){_.CS.call(this,"statevent",E)};
_.$U(Pp1,_.CS);var yq=function(E){var B=wkT();B.dispatchEvent(new Pp1(B,E))},z3T=function(E,B,I,T){_.CS.call(this,"timingevent",E);
this.size=B;this.rtt=I;this.retries=T};
_.$U(z3T,_.CS);var mB7=function(E,B,I){var T=wkT();T.dispatchEvent(new z3T(T,E,B,I))},Cu=function(E,B){if(typeof E!=="function")throw Error("vk");
return _.$i.setTimeout(function(){E()},B)};var wv=function(){this.redactEnabled_=!0};
wv.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Qb9=function(E,B,I,T,e,c){E.info(function(){if(E.redactEnabled_)if(c){var Y="";for(var v=c.split("&"),y=0;y<v.length;y++){var Z=v[y].split("=");if(Z.length>1){var P=Z[0];Z=Z[1];var z=P.split("_");Y=z.length>=2&&z[1]=="type"?Y+(P+"="+Z+"&"):Y+(P+"=redacted&")}}}else Y=null;else Y=c;return"XMLHTTP REQ ("+T+") [attempt "+e+"]: "+B+"\n"+I+"\n"+Y})},dB8=function(E,B,I,T,e,c,Y){E.info(function(){return"XMLHTTP RESP ("+T+") [ attempt "+e+"]: "+B+"\n"+I+"\n"+c+" "+Y})},ZE=function(E,B,I,T){E.info(function(){return"XMLHTTP TEXT ("+
B+"): "+h3d(E,I)+(T?" "+T:"")})},sbs=function(E,B){E.info(function(){return"TIMEOUT: "+B})};
wv.prototype.debug=function(){};
wv.prototype.info=function(){};
wv.prototype.warning=function(){};
var h3d=function(E,B){if(!E.redactEnabled_)return B;if(!B)return null;try{var I=JSON.parse(B);if(I)for(var T=0;T<I.length;T++)if(Array.isArray(I[T])){var e=I[T];if(!(e.length<2)){var c=e[1];if(Array.isArray(c)&&!(c.length<1)){var Y=c[0];if(Y!="noop"&&Y!="stop"&&Y!="close")for(var v=1;v<c.length;v++)c[v]=""}}}return(0,_.xT)(I)}catch(y){return E.debug("Exception parsing expected JS array - probably was not JS"),B}};var Pw=function(E,B,I,T,e){this.JSC$17266_channel_=E;this.JSC$17266_channelDebug_=B;this.sid_=I;this.JSC$17266_rid_=T;this.JSC$17266_retryId_=e||1;this.JSC$17266_eventHandler_=new _.DA(this);this.timeout_=45E3;this.JSC$17266_extraHeaders_=null;this.JSC$17266_successful_=!1;this.JSC$17266_postData_=this.JSC$17266_requestUri_=this.JSC$17266_baseUri_=this.JSC$17266_type_=this.JSC$17266_requestStartTime_=this.JSC$17266_watchDogTimeoutTime_=this.JSC$17266_watchDogTimerId_=null;this.JSC$17266_pendingMessages_=
[];this.JSC$17266_xmlHttp_=null;this.JSC$17266_xmlHttpChunkStart_=0;this.JSC$17266_lastError_=this.JSC$17266_verb_=null;this.JSC$17266_lastStatusCode_=-1;this.JSC$17266_cancelled_=!1;this.JSC$17266_readyStateChangeThrottleMs_=0;this.JSC$17266_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new unt},unt=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},LnI=function(E,B){switch(E){case 0:return"Non-200 return code ("+B+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},xB8={},GeI={};
Pw.prototype.setTimeout=function(E){this.timeout_=E};
var nQ9=function(E,B,I){E.JSC$17266_type_=1;E.JSC$17266_baseUri_=_.eM(B.clone());E.JSC$17266_postData_=I;E.decodeChunks_=!0;OLT(E,null)},OLT=function(E,B){E.JSC$17266_requestStartTime_=Date.now();
MJI(E);E.JSC$17266_requestUri_=E.JSC$17266_baseUri_.clone();Kh(E.JSC$17266_requestUri_,"t",E.JSC$17266_retryId_);E.JSC$17266_xmlHttpChunkStart_=0;var I=E.JSC$17266_channel_.JSC$17285_supportsCrossDomainXhrs_;E.fetchResponseState_=new unt;E.JSC$17266_xmlHttp_=HL9(E.JSC$17266_channel_,I?B:null,!E.JSC$17266_postData_);E.JSC$17266_readyStateChangeThrottleMs_>0&&(E.JSC$17266_readyStateChangeThrottle_=new _.qH((0,_.w1)(E.JSC$17270_xmlHttpHandler_,E,E.JSC$17266_xmlHttp_),E.JSC$17266_readyStateChangeThrottleMs_));
E.JSC$17266_eventHandler_.listen(E.JSC$17266_xmlHttp_,"readystatechange",E.JSC$17270_readyStateChangeHandler_);B=E.JSC$17266_extraHeaders_?_.a_.clone(E.JSC$17266_extraHeaders_):{};E.JSC$17266_postData_?(E.JSC$17266_verb_||(E.JSC$17266_verb_="POST"),B["Content-Type"]="application/x-www-form-urlencoded",E.JSC$17266_xmlHttp_.send(E.JSC$17266_requestUri_,E.JSC$17266_verb_,E.JSC$17266_postData_,B)):(E.JSC$17266_verb_="GET",E.JSC$17266_xmlHttp_.send(E.JSC$17266_requestUri_,E.JSC$17266_verb_,null,B));vw(1);
Qb9(E.JSC$17266_channelDebug_,E.JSC$17266_verb_,E.JSC$17266_requestUri_,E.JSC$17266_rid_,E.JSC$17266_retryId_,E.JSC$17266_postData_)};
Pw.prototype.JSC$17270_readyStateChangeHandler_=function(E){E=E.target;var B=this.JSC$17266_readyStateChangeThrottle_;B&&_.Ok(E)==3?(this.JSC$17266_channelDebug_.debug("Throttling readystatechange."),B.fire()):this.JSC$17270_xmlHttpHandler_(E)};
Pw.prototype.JSC$17270_xmlHttpHandler_=function(E){try{E==this.JSC$17266_xmlHttp_?Nd2(this):this.JSC$17266_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(B){this.JSC$17266_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),gQ9(this)}finally{}};
var Nd2=function(E){var B=_.Ok(E.JSC$17266_xmlHttp_),I=E.JSC$17266_xmlHttp_.JSC$7680_lastErrorCode_,T=E.JSC$17266_xmlHttp_.getStatus();if(!(B<3||B==3&&!gQ9(E))){E.JSC$17266_cancelled_||B!=4||I==7||(I==8||T<=0?vw(3):vw(2));SHI(E);var e=E.JSC$17266_xmlHttp_.getStatus();E.JSC$17266_lastStatusCode_=e;I=JL9(E);gQ9(E)||E.JSC$17266_channelDebug_.debug(function(){return"No response text for uri "+E.JSC$17266_requestUri_+" status "+e});
E.JSC$17266_successful_=e==200;dB8(E.JSC$17266_channelDebug_,E.JSC$17266_verb_,E.JSC$17266_requestUri_,E.JSC$17266_rid_,E.JSC$17266_retryId_,B,e);if(E.JSC$17266_successful_){if(E.decodeInitialResponse_&&!E.initialResponseDecoded_)if(T=Wn9(E))ZE(E.JSC$17266_channelDebug_,E.JSC$17266_rid_,T,"Initial handshake response via X-HTTP-Initial-Response"),E.initialResponseDecoded_=!0,Xk7(E,T);else{E.JSC$17266_successful_=!1;E.JSC$17266_lastError_=3;yq(12);E.JSC$17266_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
E.JSC$17266_rid_+")");zD(E);m7(E);return}E.decodeChunks_?rL9(E,B,I):(ZE(E.JSC$17266_channelDebug_,E.JSC$17266_rid_,I,null),Xk7(E,I));B==4&&zD(E);E.JSC$17266_successful_&&!E.JSC$17266_cancelled_&&(B==4?bL2(E.JSC$17266_channel_,E):(E.JSC$17266_successful_=!1,MJI(E)))}else WBd(E.JSC$17266_xmlHttp_),e==400&&I.indexOf("Unknown SID")>0?(E.JSC$17266_lastError_=3,yq(12),E.JSC$17266_channelDebug_.warning("XMLHTTP Unknown SID ("+E.JSC$17266_rid_+")")):(E.JSC$17266_lastError_=0,yq(13),E.JSC$17266_channelDebug_.warning("XMLHTTP Bad status "+
e+" ("+E.JSC$17266_rid_+")")),zD(E),m7(E)}},Wn9=function(E){return E.JSC$17266_xmlHttp_&&(E=ld(E.JSC$17266_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.aB(E)?E:null},JL9=function(E){if(!oQI(E))return E.JSC$17266_xmlHttp_.getResponseText();
var B=E.JSC$17266_xmlHttp_.getResponse();if(B==="")return"";var I="",T=B.length,e=_.Ok(E.JSC$17266_xmlHttp_)==4;if(!E.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return zD(E),m7(E),"";E.fetchResponseState_.textDecoder=new _.$i.TextDecoder}for(var c=0;c<T;c++)E.fetchResponseState_.responseArrivedForFetch=!0,I+=E.fetchResponseState_.textDecoder.decode(B[c],{stream:!(e&&c==T-1)});B.length=0;E.fetchResponseState_.responseBuffer+=I;E.JSC$17266_xmlHttpChunkStart_=0;return E.fetchResponseState_.responseBuffer},
gQ9=function(E){return E.JSC$17266_xmlHttp_?E.fetchResponseState_.responseArrivedForFetch?!0:!(!E.JSC$17266_xmlHttp_.getResponseText()&&!E.JSC$17266_xmlHttp_.getResponse()):!1},oQI=function(E){return E.JSC$17266_xmlHttp_?E.JSC$17266_verb_=="GET"&&E.JSC$17266_type_!=2&&E.JSC$17266_channel_.usesFetchStreams_:!1},rL9=function(E,B,I){for(var T=!0,e;!E.JSC$17266_cancelled_&&E.JSC$17266_xmlHttpChunkStart_<I.length;)if(e=ALg(E,I),e==GeI){B==4&&(E.JSC$17266_lastError_=4,yq(14),T=!1);
ZE(E.JSC$17266_channelDebug_,E.JSC$17266_rid_,null,"[Incomplete Response]");break}else if(e==xB8){E.JSC$17266_lastError_=4;yq(15);ZE(E.JSC$17266_channelDebug_,E.JSC$17266_rid_,I,"[Invalid Chunk]");T=!1;break}else ZE(E.JSC$17266_channelDebug_,E.JSC$17266_rid_,e,null),Xk7(E,e);oQI(E)&&E.JSC$17266_xmlHttpChunkStart_!=0&&(E.fetchResponseState_.responseBuffer=E.fetchResponseState_.responseBuffer.slice(E.JSC$17266_xmlHttpChunkStart_),E.JSC$17266_xmlHttpChunkStart_=0);B!=4||I.length!=0||E.fetchResponseState_.responseArrivedForFetch||
(E.JSC$17266_lastError_=1,yq(16),T=!1);E.JSC$17266_successful_=E.JSC$17266_successful_&&T;T?I.length>0&&!E.firstByteReceived_&&(E.firstByteReceived_=!0,B=E.JSC$17266_channel_,B.JSC$17285_backChannelRequest_==E&&B.detectBufferingProxy_&&!B.bpDetectionDone_&&(B.JSC$17285_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+I.length),jbI(B),B.bpDetectionDone_=!0,yq(11))):(ZE(E.JSC$17266_channelDebug_,E.JSC$17266_rid_,I,"[Invalid Chunked Response]"),zD(E),m7(E))},ALg=function(E,B){var I=
E.JSC$17266_xmlHttpChunkStart_,T=B.indexOf("\n",I);
if(T==-1)return GeI;I=Number(B.substring(I,T));if(isNaN(I))return xB8;T+=1;if(T+I>B.length)return GeI;B=B.slice(T,T+I);E.JSC$17266_xmlHttpChunkStart_=T+I;return B};
Pw.prototype.cancel=function(){this.JSC$17266_cancelled_=!0;zD(this)};
var MJI=function(E){E.JSC$17266_watchDogTimeoutTime_=Date.now()+E.timeout_;UB7(E,E.timeout_)},UB7=function(E,B){if(E.JSC$17266_watchDogTimerId_!=null)throw Error("wk");
E.JSC$17266_watchDogTimerId_=Cu((0,_.w1)(E.JSC$17270_onWatchDogTimeout_,E),B)},SHI=function(E){E.JSC$17266_watchDogTimerId_&&(_.$i.clearTimeout(E.JSC$17266_watchDogTimerId_),E.JSC$17266_watchDogTimerId_=null)};
Pw.prototype.JSC$17270_onWatchDogTimeout_=function(){this.JSC$17266_watchDogTimerId_=null;var E=Date.now();E-this.JSC$17266_watchDogTimeoutTime_>=0?(sbs(this.JSC$17266_channelDebug_,this.JSC$17266_requestUri_),this.JSC$17266_type_!=2&&(vw(3),yq(17)),zD(this),this.JSC$17266_lastError_=2,m7(this)):(this.JSC$17266_channelDebug_.warning("WatchDog timer called too early"),UB7(this,this.JSC$17266_watchDogTimeoutTime_-E))};
var m7=function(E){E.JSC$17266_channel_.state_==0||E.JSC$17266_cancelled_||bL2(E.JSC$17266_channel_,E)},zD=function(E){SHI(E);
_.bl(E.JSC$17266_readyStateChangeThrottle_);E.JSC$17266_readyStateChangeThrottle_=null;E.JSC$17266_eventHandler_.removeAll();if(E.JSC$17266_xmlHttp_){var B=E.JSC$17266_xmlHttp_;E.JSC$17266_xmlHttp_=null;B.abort();B.dispose()}};
Pw.prototype.getLastError=function(){return this.JSC$17266_lastError_};
var Xk7=function(E,B){try{var I=E.JSC$17266_channel_;if(I.state_!=0&&(I.JSC$17285_backChannelRequest_==E||keL(I.forwardChannelRequestPool_,E)))if(!E.initialResponseDecoded_&&keL(I.forwardChannelRequestPool_,E)&&I.state_==3){try{var T=I.wireCodec_.JSC$17280_parser_.parse(B)}catch(v){T=null}if(Array.isArray(T)&&T.length==3){B=T;if(B[0]==0)a:if(I.JSC$17285_channelDebug_.debug("Server claims our backchannel is missing."),I.JSC$17285_backChannelTimerId_)I.JSC$17285_channelDebug_.debug("But we are currently starting the request.");
else{if(I.JSC$17285_backChannelRequest_)if(I.JSC$17285_backChannelRequest_.JSC$17266_requestStartTime_+3E3<E.JSC$17266_requestStartTime_)tJ2(I),fY8(I);else break a;else I.JSC$17285_channelDebug_.warning("We do not have a BackChannel established");VJI(I);yq(18)}else{I.JSC$17285_lastPostResponseArrayId_=B[1];var e=I.JSC$17285_lastPostResponseArrayId_-I.JSC$17285_lastArrayId_;if(0<e){var c=B[2];I.JSC$17285_channelDebug_.debug(c+" bytes (in "+e+" arrays) are outstanding on the BackChannel");c<37500&&
I.enableStreaming_&&I.JSC$17285_backChannelRetryCount_==0&&!I.JSC$17285_deadBackChannelTimerId_&&(I.JSC$17285_deadBackChannelTimerId_=Cu((0,_.w1)(I.JSC$17287_onBackChannelDead_,I),6E3))}}if(qH1(I.forwardChannelRequestPool_)<=1&&I.forwardChannelFlushedCallback_){try{I.forwardChannelFlushedCallback_()}catch(v){}I.forwardChannelFlushedCallback_=void 0}}else I.JSC$17285_channelDebug_.debug("Bad POST response data returned"),Qq(I,11)}else if((E.initialResponseDecoded_||I.JSC$17285_backChannelRequest_==
E)&&tJ2(I),!_.aB(B)){var Y=I.wireCodec_.JSC$17280_parser_.parse(B);I.onInput_(Y,E)}vw(4)}catch(v){}};var Fnm=function(E,B){this.JSC$17273_mapId=E;this.map=B;this.context=null};var DBI=function(E){this.maxPoolSizeConfigured_=E||10;_.$i.PerformanceNavigationTiming?(E=_.$i.performance.getEntriesByType("navigation"),E=E.length>0&&(E[0].nextHopProtocol=="hq"||E[0].nextHopProtocol=="h2")):E=!!(_.$i.chrome&&_.$i.chrome.loadTimes&&_.$i.chrome.loadTimes()&&_.$i.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17276_maxSize_=E?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17276_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17276_request_=null;this.JSC$17276_pendingMessages_=
[]},KnT=function(E){return E.JSC$17276_request_?!0:E.requestPool_?E.requestPool_.size>=E.JSC$17276_maxSize_:!1},qH1=function(E){return E.JSC$17276_request_?1:E.requestPool_?E.requestPool_.size:0},keL=function(E,B){return E.JSC$17276_request_?E.JSC$17276_request_==B:E.requestPool_?E.requestPool_.has(B):!1},R37=function(E,B){E.requestPool_?E.requestPool_.add(B):E.JSC$17276_request_=B},EbI=function(E,B){E.JSC$17276_request_&&E.JSC$17276_request_==B?E.JSC$17276_request_=null:E.requestPool_&&E.requestPool_.has(B)&&
E.requestPool_.delete(B)};
DBI.prototype.cancel=function(){this.JSC$17276_pendingMessages_=BoT(this);if(this.JSC$17276_request_)this.JSC$17276_request_.cancel(),this.JSC$17276_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var E=_.p(this.requestPool_.values()),B=E.next();!B.done;B=E.next())B.value.cancel();this.requestPool_.clear()}};
var BoT=function(E){if(E.JSC$17276_request_!=null)return E.JSC$17276_pendingMessages_.concat(E.JSC$17276_request_.JSC$17266_pendingMessages_);if(E.requestPool_!=null&&E.requestPool_.size!==0){var B=E.JSC$17276_pendingMessages_;E=_.p(E.requestPool_.values());for(var I=E.next();!I.done;I=E.next())B=B.concat(I.value.JSC$17266_pendingMessages_);return B}return _.V6(E.JSC$17276_pendingMessages_)},$$I=function(E,B){E.JSC$17276_pendingMessages_=E.JSC$17276_pendingMessages_.concat(B)};var IO9=function(E,B){var I=new wv;I.debug("TestLoadImage: loading "+E);if(_.$i.Image){var T=new Image;T.onload=_.wY(dv,I,"TestLoadImage: loaded",!0,B,T);T.onerror=_.wY(dv,I,"TestLoadImage: error",!1,B,T);T.onabort=_.wY(dv,I,"TestLoadImage: abort",!1,B,T);T.ontimeout=_.wY(dv,I,"TestLoadImage: timeout",!1,B,T);_.$i.setTimeout(function(){if(T.ontimeout)T.ontimeout()},1E4);
T.src=E}else B(!1)},ToH=function(E,B){var I=new wv,T=new AbortController,e=setTimeout(function(){T.abort();
dv(I,"TestPingServer: timeout",!1,B)},1E4);
fetch(E,{signal:T.signal}).then(function(c){clearTimeout(e);c.ok?dv(I,"TestPingServer: ok",!0,B):dv(I,"TestPingServer: server error",!1,B)}).catch(function(){clearTimeout(e);
dv(I,"TestPingServer: error",!1,B)})},dv=function(E,B,I,T,e){try{E.debug(B),e&&(e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null),T(I)}catch(c){}};var eT8=function(){this.JSC$17280_parser_=new am},lOO=function(E,B,I){var T=I||"";
try{_.I0N(E,function(e,c){var Y=e;_.B6(e)&&(Y=(0,_.xT)(e));B.push(T+c+"="+encodeURIComponent(Y))})}catch(e){throw B.push(T+"type="+encodeURIComponent("_badmap")),e;
}};var hm=function(E,B,I){return I&&I.internalChannelParams?I.internalChannelParams[E]||B:B},sE=function(E){this.serverVersion_=0;
this.JSC$17285_outgoingMaps_=[];this.JSC$17285_channelDebug_=new wv;this.JSC$17285_hostPrefix_=this.JSC$17285_backChannelUri_=this.JSC$17285_forwardChannelUri_=this.JSC$17285_path_=this.JSC$17285_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17285_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17285_extraHeaders_=null;this.JSC$17285_nextMapId_=this.JSC$17285_nextRid_=0;this.JSC$17285_failFast_=hm("failFast",!1,E);this.enableStreaming_=this.JSC$17285_deadBackChannelTimerId_=
this.JSC$17285_backChannelTimerId_=this.JSC$17285_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17285_lastPostResponseArrayId_=this.JSC$17285_lastArrayId_=-1;this.JSC$17285_backChannelAttemptId_=this.JSC$17285_backChannelRetryCount_=this.JSC$17285_forwardChannelRetryCount_=0;this.JSC$17285_baseRetryDelayMs_=hm("baseRetryDelayMs",5E3,E);this.JSC$17285_retryDelaySeedMs_=hm("retryDelaySeedMs",1E4,E);this.JSC$17285_forwardChannelMaxRetries_=
hm("forwardChannelMaxRetries",2,E);this.JSC$17285_forwardChannelRequestTimeoutMs_=hm("forwardChannelRequestTimeoutMs",2E4,E);this.JSC$17285_xmlHttpFactory_=E&&E.xmlHttpFactory||void 0;this.networkTestUrl_=E&&E.networkTestUrl||void 0;this.usesFetchStreams_=E&&E.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17285_supportsCrossDomainXhrs_=E&&E.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new DBI(E&&E.concurrentRequestLimit);this.wireCodec_=new eT8;this.fastHandshake_=
E&&E.fastHandshake||!1;this.encodeInitMessageHeaders_=E&&E.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17285_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=E&&E.blockingHandshake||!1;E&&E.disableRedact&&this.JSC$17285_channelDebug_.disableRedact();E&&E.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
E&&E.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;E&&E.longPollingTimeout&&E.longPollingTimeout>0&&(this.longPollingTimeout_=E.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
sE.prototype.JSC$17287_channelVersion_=8;sE.prototype.state_=1;
sE.prototype.connect=function(E,B,I,T){this.JSC$17285_channelDebug_.debug("connect()");yq(0);this.JSC$17285_path_=E;this.JSC$17285_extraParams_=B||{};I&&T!==void 0&&(this.JSC$17285_extraParams_.OSID=I,this.JSC$17285_extraParams_.OAID=T);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17285_channelDebug_.debug("connectChannel_()");E=cTI(this,null,this.JSC$17285_path_);this.JSC$17285_channelDebug_.debug("GetForwardChannelUri: "+E);this.JSC$17285_forwardChannelUri_=E;ioO(this)};
sE.prototype.disconnect=function(){this.JSC$17285_channelDebug_.debug("disconnect()");pet(this);if(this.state_==3){var E=this.JSC$17285_nextRid_++,B=this.JSC$17285_forwardChannelUri_.clone();_.Wp(B,"SID",this.sid_);_.Wp(B,"RID",E);_.Wp(B,"TYPE","terminate");ur(this,B);E=new Pw(this,this.JSC$17285_channelDebug_,this.sid_,E);E.JSC$17266_type_=2;E.JSC$17266_baseUri_=_.eM(B.clone());B=!1;if(_.$i.navigator&&_.$i.navigator.sendBeacon)try{B=_.$i.navigator.sendBeacon(E.JSC$17266_baseUri_.toString(),"")}catch(I){}!B&&
_.$i.Image&&((new Image).src=E.JSC$17266_baseUri_,B=!0);B||(E.JSC$17266_xmlHttp_=HL9(E.JSC$17266_channel_,null),E.JSC$17266_xmlHttp_.send(E.JSC$17266_baseUri_));E.JSC$17266_requestStartTime_=Date.now();MJI(E)}Yog(this)};
var fY8=function(E){E.JSC$17285_backChannelRequest_&&(jbI(E),E.JSC$17285_backChannelRequest_.cancel(),E.JSC$17285_backChannelRequest_=null)},pet=function(E){fY8(E);
E.JSC$17285_backChannelTimerId_&&(_.$i.clearTimeout(E.JSC$17285_backChannelTimerId_),E.JSC$17285_backChannelTimerId_=null);tJ2(E);E.forwardChannelRequestPool_.cancel();E.JSC$17285_forwardChannelTimerId_&&(typeof E.JSC$17285_forwardChannelTimerId_==="number"&&_.$i.clearTimeout(E.JSC$17285_forwardChannelTimerId_),E.JSC$17285_forwardChannelTimerId_=null)};
sE.prototype.getState=function(){return this.state_};
var ioO=function(E){KnT(E.forwardChannelRequestPool_)||E.JSC$17285_forwardChannelTimerId_||(E.JSC$17285_forwardChannelTimerId_=!0,_.dI(E.JSC$17287_onStartForwardChannelTimer_,E),E.JSC$17285_forwardChannelRetryCount_=0)},vbH=function(E,B){if(qH1(E.forwardChannelRequestPool_)>=E.forwardChannelRequestPool_.JSC$17276_maxSize_-(E.JSC$17285_forwardChannelTimerId_?1:0))return!1;
if(E.JSC$17285_forwardChannelTimerId_)return E.JSC$17285_channelDebug_.debug("Use the retry request that is already scheduled."),E.JSC$17285_outgoingMaps_=B.JSC$17266_pendingMessages_.concat(E.JSC$17285_outgoingMaps_),!0;if(E.state_==1||E.state_==2||E.JSC$17285_forwardChannelRetryCount_>=(E.JSC$17285_failFast_?0:E.JSC$17285_forwardChannelMaxRetries_))return!1;E.JSC$17285_channelDebug_.debug("Going to retry POST");E.JSC$17285_forwardChannelTimerId_=Cu((0,_.w1)(E.JSC$17287_onStartForwardChannelTimer_,
E,B),aO1(E,E.JSC$17285_forwardChannelRetryCount_));E.JSC$17285_forwardChannelRetryCount_++;return!0};
sE.prototype.JSC$17287_onStartForwardChannelTimer_=function(E){if(this.JSC$17285_forwardChannelTimerId_)if(this.JSC$17285_forwardChannelTimerId_=null,this.JSC$17285_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!E){this.JSC$17285_channelDebug_.debug("open_()");this.JSC$17285_nextRid_=Math.floor(Math.random()*1E5);E=this.JSC$17285_nextRid_++;var B=new Pw(this,this.JSC$17285_channelDebug_,"",E),I=this.JSC$17285_extraHeaders_;this.initHeaders_&&(I?(I=_.a_.clone(I),_.a_.extend(I,this.initHeaders_)):
I=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(B.JSC$17266_extraHeaders_=I,I=null);var T;if(this.fastHandshake_)a:{for(var e=T=0;e<this.JSC$17285_outgoingMaps_.length;e++){b:{var c=this.JSC$17285_outgoingMaps_[e];if("__data__"in c.map&&(c=c.map.__data__,typeof c==="string")){c=c.length;break b}c=void 0}if(c===void 0)break;T+=c;if(T>4096){T=e;break a}if(T===4096||e===this.JSC$17285_outgoingMaps_.length-1){T=e+1;break a}}T=1E3}else T=1E3;T=yTI(this,B,T);
e=this.JSC$17285_forwardChannelUri_.clone();_.Wp(e,"RID",E);_.Wp(e,"CVER",22);this.httpSessionIdParam_&&_.Wp(e,"X-HTTP-Session-Id",this.httpSessionIdParam_);ur(this,e);I&&(this.encodeInitMessageHeaders_?T="headers="+_.rU(WVs(I))+"&"+T:this.httpHeadersOverwriteParam_&&XE7(e,this.httpHeadersOverwriteParam_,I));R37(this.forwardChannelRequestPool_,B);this.blockingHandshake_&&_.Wp(e,"TYPE","init");this.fastHandshake_?(_.Wp(e,"$req",T),_.Wp(e,"SID","null"),B.decodeInitialResponse_=!0,nQ9(B,e,null)):nQ9(B,
e,T);this.state_=2}}else this.state_==3&&(E?CML(this,E):this.JSC$17285_outgoingMaps_.length==0?this.JSC$17285_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):KnT(this.forwardChannelRequestPool_)||(CML(this),this.JSC$17285_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var CML=function(E,B){var I;B?I=B.JSC$17266_rid_:I=E.JSC$17285_nextRid_++;var T=E.JSC$17285_forwardChannelUri_.clone();_.Wp(T,"SID",E.sid_);_.Wp(T,"RID",I);_.Wp(T,"AID",E.JSC$17285_lastArrayId_);ur(E,T);E.httpHeadersOverwriteParam_&&E.JSC$17285_extraHeaders_&&XE7(T,E.httpHeadersOverwriteParam_,E.JSC$17285_extraHeaders_);I=new Pw(E,E.JSC$17285_channelDebug_,E.sid_,I,E.JSC$17285_forwardChannelRetryCount_+1);E.httpHeadersOverwriteParam_===null&&(I.JSC$17266_extraHeaders_=E.JSC$17285_extraHeaders_);B&&
(E.JSC$17285_outgoingMaps_=B.JSC$17266_pendingMessages_.concat(E.JSC$17285_outgoingMaps_));B=yTI(E,I,1E3);I.setTimeout(Math.round(E.JSC$17285_forwardChannelRequestTimeoutMs_*.5)+Math.round(E.JSC$17285_forwardChannelRequestTimeoutMs_*.5*Math.random()));R37(E.forwardChannelRequestPool_,I);nQ9(I,T,B)},ur=function(E,B){E.JSC$17285_extraParams_&&_.a_.forEach(E.JSC$17285_extraParams_,function(I,T){_.Wp(B,T,I)});
E.handler_&&_.I0N({},function(I,T){_.Wp(B,T,I)})},yTI=function(E,B,I){I=Math.min(E.JSC$17285_outgoingMaps_.length,I);
var T=E.handler_?(0,_.w1)(E.handler_.JSC$17291_badMapError,E.handler_,E):null;a:{for(var e=E.JSC$17285_outgoingMaps_,c=-1;;){var Y=["count="+I];c==-1?I>0?(c=e[0].JSC$17273_mapId,Y.push("ofs="+c)):c=0:Y.push("ofs="+c);for(var v=!0,y=0;y<I;y++){var Z=e[y].JSC$17273_mapId,P=e[y].map;Z-=c;if(Z<0)c=Math.max(0,e[y].JSC$17273_mapId-100),v=!1;else try{lOO(P,Y,"req"+Z+"_")}catch(z){T&&T(P)}}if(v){T=Y.join("&");break a}}T=void 0}E=E.JSC$17285_outgoingMaps_.splice(0,I);B.JSC$17266_pendingMessages_=E;return T},
wet=function(E){E.JSC$17285_backChannelRequest_||E.JSC$17285_backChannelTimerId_||(E.JSC$17285_backChannelAttemptId_=1,_.dI(E.JSC$17287_onStartBackChannelTimer_,E),E.JSC$17285_backChannelRetryCount_=0)},VJI=function(E){if(E.JSC$17285_backChannelRequest_||E.JSC$17285_backChannelTimerId_||E.JSC$17285_backChannelRetryCount_>=3)return!1;
E.JSC$17285_channelDebug_.debug("Going to retry GET");E.JSC$17285_backChannelAttemptId_++;E.JSC$17285_backChannelTimerId_=Cu((0,_.w1)(E.JSC$17287_onStartBackChannelTimer_,E),aO1(E,E.JSC$17285_backChannelRetryCount_));E.JSC$17285_backChannelRetryCount_++;return!0};
sE.prototype.JSC$17287_onStartBackChannelTimer_=function(){this.JSC$17285_backChannelTimerId_=null;Zo8(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17285_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17285_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17285_backChannelRequest_+" "+this.handshakeRttMs_);else{var E=2*this.handshakeRttMs_;this.JSC$17285_channelDebug_.info("BP detection timer enabled: "+E);this.bpDetectionTimerId_=Cu((0,_.w1)(this.onBpDetectionTimer_,
this),E)}};
sE.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17285_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17285_backChannelRequest_.JSC$17266_xmlHttp_!=null){var E=this.JSC$17285_backChannelRequest_.JSC$17266_xmlHttp_.getResponseText();E&&this.JSC$17285_channelDebug_.warning("Timer should have been cancelled : "+E)}this.JSC$17285_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;yq(10);fY8(this);Zo8(this)}else this.JSC$17285_channelDebug_.warning("Invalid operation.")};
var jbI=function(E){E.bpDetectionTimerId_!=null&&(E.JSC$17285_channelDebug_.debug("Cancel the BP detection timer."),_.$i.clearTimeout(E.bpDetectionTimerId_),E.bpDetectionTimerId_=null)},Zo8=function(E){E.JSC$17285_channelDebug_.debug("Creating new HttpRequest");
E.JSC$17285_backChannelRequest_=new Pw(E,E.JSC$17285_channelDebug_,E.sid_,"rpc",E.JSC$17285_backChannelAttemptId_);E.httpHeadersOverwriteParam_===null&&(E.JSC$17285_backChannelRequest_.JSC$17266_extraHeaders_=E.JSC$17285_extraHeaders_);E.JSC$17285_backChannelRequest_.JSC$17266_readyStateChangeThrottleMs_=0;var B=E.JSC$17285_backChannelUri_.clone();_.Wp(B,"RID","rpc");_.Wp(B,"SID",E.sid_);_.Wp(B,"AID",E.JSC$17285_lastArrayId_);_.Wp(B,"CI",E.enableStreaming_?"0":"1");!E.enableStreaming_&&E.longPollingTimeout_&&
_.Wp(B,"TO",E.longPollingTimeout_);_.Wp(B,"TYPE","xmlhttp");ur(E,B);E.httpHeadersOverwriteParam_&&E.JSC$17285_extraHeaders_&&XE7(B,E.httpHeadersOverwriteParam_,E.JSC$17285_extraHeaders_);E.backChannelRequestTimeoutMs_&&E.JSC$17285_backChannelRequest_.setTimeout(E.backChannelRequestTimeoutMs_);var I=E.JSC$17285_backChannelRequest_,T=E.JSC$17285_hostPrefix_;I.JSC$17266_type_=1;I.JSC$17266_baseUri_=_.eM(B.clone());I.JSC$17266_postData_=null;I.decodeChunks_=!0;OLT(I,T);E.JSC$17285_channelDebug_.debug("New Request created")};
sE.prototype.JSC$17287_onBackChannelDead_=function(){this.JSC$17285_deadBackChannelTimerId_!=null&&(this.JSC$17285_deadBackChannelTimerId_=null,fY8(this),VJI(this),yq(19))};
var tJ2=function(E){E.JSC$17285_deadBackChannelTimerId_!=null&&(_.$i.clearTimeout(E.JSC$17285_deadBackChannelTimerId_),E.JSC$17285_deadBackChannelTimerId_=null)},bL2=function(E,B){E.JSC$17285_channelDebug_.debug("Request complete");
var I=null;if(E.JSC$17285_backChannelRequest_==B){tJ2(E);jbI(E);E.JSC$17285_backChannelRequest_=null;var T=2}else if(keL(E.forwardChannelRequestPool_,B))I=B.JSC$17266_pendingMessages_,EbI(E.forwardChannelRequestPool_,B),T=1;else return;if(E.state_!=0)if(B.JSC$17266_successful_)T==1?(mB7(B.JSC$17266_postData_?B.JSC$17266_postData_.length:0,Date.now()-B.JSC$17266_requestStartTime_,E.JSC$17285_forwardChannelRetryCount_),ioO(E)):wet(E);else{var e=B.JSC$17266_lastStatusCode_,c=B.getLastError();if(c==3||
c==0&&e>0)E.JSC$17285_channelDebug_.debug("Not retrying due to error type"),e>200&&(E.errorResponseStatusCode_=B.JSC$17266_lastStatusCode_);else{E.JSC$17285_channelDebug_.debug(function(){return"Maybe retrying, last error: "+LnI(c,E.errorResponseStatusCode_)});
if(T==1&&vbH(E,B)||T==2&&VJI(E))return;E.JSC$17285_channelDebug_.debug("Exceeded max number of retries")}I&&I.length>0&&$$I(E.forwardChannelRequestPool_,I);E.JSC$17285_channelDebug_.debug("Error: HTTP request failed");switch(c){case 1:Qq(E,5);break;case 4:Qq(E,10);break;case 3:Qq(E,6);break;default:Qq(E,2)}}},aO1=function(E,B){var I=E.JSC$17285_baseRetryDelayMs_+Math.floor(Math.random()*E.JSC$17285_retryDelaySeedMs_);
E.isActive()||(E.JSC$17285_channelDebug_.debug("Inactive channel"),I*=2);return I*B};
sE.prototype.onInput_=function(E,B){for(var I=0;I<E.length;I++){var T=E[I];this.JSC$17285_lastArrayId_=T[0];T=T[1];if(this.state_==2)if(T[0]=="c"){this.sid_=T[1];this.JSC$17285_hostPrefix_=T[2];var e=T[3];e!=null&&(this.JSC$17287_channelVersion_=e,this.JSC$17285_channelDebug_.info("VER="+this.JSC$17287_channelVersion_));e=T[4];e!=null&&(this.serverVersion_=e,this.JSC$17285_channelDebug_.info("SVER="+this.serverVersion_));T=T[5];T!=null&&typeof T==="number"&&T>0&&(this.backChannelRequestTimeoutMs_=
T*=1.5,this.JSC$17285_channelDebug_.info("backChannelRequestTimeoutMs_="+T));if(T=B.JSC$17266_xmlHttp_){var c=ld(T,"X-Client-Wire-Protocol");c&&(e=this.forwardChannelRequestPool_,!e.requestPool_&&(_.vG(c,"spdy")||_.vG(c,"quic")||_.vG(c,"h2"))&&(e.JSC$17276_maxSize_=e.maxPoolSizeConfigured_,e.requestPool_=new Set,e.JSC$17276_request_&&(R37(e,e.JSC$17276_request_),e.JSC$17276_request_=null)));this.httpSessionIdParam_&&((T=ld(T,"X-HTTP-Session-Id"))?(this.httpSessionId_=T,_.Wp(this.JSC$17285_forwardChannelUri_,
this.httpSessionIdParam_,T)):this.JSC$17285_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17291_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-B.JSC$17266_requestStartTime_,this.JSC$17285_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));T=B;e=cTI(this,this.JSC$17285_supportsCrossDomainXhrs_?this.JSC$17285_hostPrefix_:null,this.JSC$17285_path_);this.JSC$17285_channelDebug_.debug("GetBackChannelUri: "+
e);this.JSC$17285_backChannelUri_=e;T.initialResponseDecoded_?(this.JSC$17285_channelDebug_.debug("Upgrade the handshake request to a backchannel."),EbI(this.forwardChannelRequestPool_,T),e=T,(c=this.backChannelRequestTimeoutMs_)&&e.setTimeout(c),e.JSC$17266_watchDogTimerId_&&(SHI(e),MJI(e)),this.JSC$17285_backChannelRequest_=T):wet(this);this.JSC$17285_outgoingMaps_.length>0&&ioO(this)}else T[0]!="stop"&&T[0]!="close"||Qq(this,7);else this.state_==3&&(T[0]=="stop"||T[0]=="close"?T[0]=="stop"?Qq(this,
7):this.disconnect():T[0]!="noop"&&this.handler_&&this.handler_.JSC$17291_channelHandleArray(T),this.JSC$17285_backChannelRetryCount_=0)}};
var Qq=function(E,B){E.JSC$17285_channelDebug_.info("Error code "+B);if(B==2){var I=(0,_.w1)(E.testNetworkCallback_,E),T=E.networkTestUrl_,e=!T;T=new _.tQ(T||"//www.google.com/images/cleardot.gif");_.$i.location&&_.$i.location.protocol=="http"||_.F6(T,"https");_.eM(T);e?IO9(T.toString(),I):ToH(T.toString(),I)}else yq(2);E.onError_(B)};
sE.prototype.testNetworkCallback_=function(E){E?(this.JSC$17285_channelDebug_.info("Successfully pinged google.com"),yq(2)):(this.JSC$17285_channelDebug_.info("Failed to ping google.com"),yq(1))};
sE.prototype.onError_=function(E){this.JSC$17285_channelDebug_.debug("HttpChannel: error - "+E);this.state_=0;this.handler_&&this.handler_.JSC$17291_channelError(E);Yog(this);pet(this)};
var Yog=function(E){E.state_=0;E.nonAckedMapsAtChannelClose_=[];if(E.handler_){var B=BoT(E.forwardChannelRequestPool_);if(B.length!=0||E.JSC$17285_outgoingMaps_.length!=0)E.JSC$17285_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+B.length+", outgoing: "+E.JSC$17285_outgoingMaps_.length}),_.K4(E.nonAckedMapsAtChannelClose_,B),_.K4(E.nonAckedMapsAtChannelClose_,E.JSC$17285_outgoingMaps_),E.forwardChannelRequestPool_.JSC$17276_pendingMessages_.length=0,_.V6(E.JSC$17285_outgoingMaps_),
E.JSC$17285_outgoingMaps_.length=0;
E.handler_.JSC$17291_channelClosed()}},PMd=function(E){if(E.state_==0)return E.nonAckedMapsAtChannelClose_;
var B=[];_.K4(B,BoT(E.forwardChannelRequestPool_));_.K4(B,E.JSC$17285_outgoingMaps_);return B},cTI=function(E,B,I){var T=_.Se(I);
T.JSC$7917_domain_!=""?(B&&_.DF(T,B+"."+T.JSC$7917_domain_),_.KS(T,T.JSC$7917_port_)):(T=_.$i.location,T=xNT(T.protocol,B?B+"."+T.hostname:T.hostname,+T.port,I));B=E.httpSessionIdParam_;I=E.httpSessionId_;B&&I&&_.Wp(T,B,I);_.Wp(T,"VER",E.JSC$17287_channelVersion_);ur(E,T);return T},HL9=function(E,B,I){if(B&&!E.JSC$17285_supportsCrossDomainXhrs_)throw Error("xk");
B=E.usesFetchStreams_&&!E.JSC$17285_xmlHttpFactory_?new _.Gw(new uw({streamBinaryChunks:I})):new _.Gw(E.JSC$17285_xmlHttpFactory_);B.JSC$7680_withCredentials_=E.JSC$17285_supportsCrossDomainXhrs_;return B};
sE.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var zTd=function(){};
_.l=zTd.prototype;_.l.JSC$17291_channelOpened=function(){};
_.l.JSC$17291_channelHandleArray=function(){};
_.l.JSC$17291_channelError=function(){};
_.l.JSC$17291_channelClosed=function(){};
_.l.isActive=function(){return!0};
_.l.JSC$17291_badMapError=function(){};var m$2=function(){},xF=function(E,B){_.ms.call(this);
this.JSC$17294_channel_=new sE(B);this.JSC$17294_url_=E;this.messageUrlParams_=B&&B.messageUrlParams||null;E=B&&B.messageHeaders||null;B&&B.clientProtocolHeaderRequired&&(E?_.a_.set(E,"X-Client-Protocol","webchannel"):E=_.a_.create("X-Client-Protocol","webchannel"));this.JSC$17294_channel_.JSC$17285_extraHeaders_=E;E=B&&B.initMessageHeaders||null;B&&B.messageContentType&&(E?_.a_.set(E,"X-WebChannel-Content-Type",B.messageContentType):E=_.a_.create("X-WebChannel-Content-Type",B.messageContentType));
B&&B.clientProfile&&(E?_.a_.set(E,"X-WebChannel-Client-Profile",B.clientProfile):E=_.a_.create("X-WebChannel-Client-Profile",B.clientProfile));this.JSC$17294_channel_.initHeaders_=E;(E=B&&B.httpHeadersOverwriteParam)&&!_.aB(E)&&(this.JSC$17294_channel_.httpHeadersOverwriteParam_=E);this.supportsCrossDomainXhr_=B&&B.supportsCrossDomainXhr||!1;this.sendRawJson_=B&&B.sendRawJson||!1;(B=B&&B.httpSessionIdParam)&&!_.aB(B)&&(this.JSC$17294_channel_.httpSessionIdParam_=B,_.a_.containsKey(this.messageUrlParams_,
B)&&_.a_.remove(this.messageUrlParams_,B));this.channelHandler_=new Lu(this)};
_.$U(xF,_.ms);xF.prototype.open=function(){this.JSC$17294_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17294_channel_.JSC$17285_supportsCrossDomainXhrs_=!0);this.JSC$17294_channel_.connect(this.JSC$17294_url_,this.messageUrlParams_||void 0)};
xF.prototype.close=function(){this.JSC$17294_channel_.disconnect()};
xF.prototype.send=function(E){var B=this.JSC$17294_channel_;if(typeof E==="string"){var I={};I.__data__=E;E=I}else this.sendRawJson_&&(I={},I.__data__=(0,_.xT)(E),E=I);B.JSC$17285_outgoingMaps_.push(new Fnm(B.JSC$17285_nextMapId_++,E));B.state_==3&&ioO(B)};
xF.prototype.disposeInternal=function(){this.JSC$17294_channel_.handler_=null;delete this.channelHandler_;this.JSC$17294_channel_.disconnect();delete this.JSC$17294_channel_;xF.superClass_.disposeInternal.call(this)};
var Qn8=function(E){vQg.call(this);E.__headers__&&(this.headers=E.__headers__,this.statusCode=E.__status__,delete E.__headers__,delete E.__status__);var B=E.__sm__;B?this.data=(this.metadataKey=_.a_.getAnyKey(B))?_.a_.get(B,this.metadataKey):B:this.data=E};
_.$U(Qn8,vQg);var d$2=function(E){yL1.call(this);this.status=1;this.errorCode=E};
_.$U(d$2,yL1);var Lu=function(E){this.JSC$17301_channel_=E};
_.$U(Lu,zTd);Lu.prototype.JSC$17291_channelOpened=function(){this.JSC$17301_channel_.dispatchEvent("w")};
Lu.prototype.JSC$17291_channelHandleArray=function(E){this.JSC$17301_channel_.dispatchEvent(new Qn8(E))};
Lu.prototype.JSC$17291_channelError=function(E){this.JSC$17301_channel_.dispatchEvent(new d$2(E))};
Lu.prototype.JSC$17291_channelClosed=function(){this.JSC$17301_channel_.dispatchEvent("x")};
var hT2=function(E,B){this.transportChannel_=E;this.JSC$17304_channel_=B},sng=function(E){return PMd(E.JSC$17304_channel_).map(function(B){var I=E.transportChannel_;
B=B.map;"__data__"in B?(B=B.__data__,I=I.sendRawJson_?(0,_.gBr)(B):B):I=B;return I})};var GD=function(E){u0T.dispatchEvent(new LAm(u0T,E))},u0T=new _.ms,LAm=function(E){_.CS.call(this,"statevent",E)};
_.L(LAm,_.CS);var OE=function(E,B,I,T,e){this.JSC$17309_channel_=E;this.JSC$17309_channelDebug_=B;this.sid_=I;this.JSC$17309_rid_=T;this.JSC$17309_retryId_=e||1;this.timeout_=45E3;this.JSC$17309_eventHandler_=new _.DA(this);this.pollingTimer_=new _.F7;this.pollingTimer_.setInterval(250)};
_.l=OE.prototype;_.l.JSC$17311_extraHeaders_=null;_.l.JSC$17311_successful_=!1;_.l.JSC$17311_watchDogTimerId_=null;_.l.JSC$17311_watchDogTimeoutTime_=null;_.l.JSC$17311_requestStartTime_=null;_.l.JSC$17311_type_=null;_.l.JSC$17311_baseUri_=null;_.l.JSC$17311_requestUri_=null;_.l.JSC$17311_postData_=null;_.l.JSC$17311_xmlHttp_=null;_.l.JSC$17311_xmlHttpChunkStart_=0;_.l.trident_=null;_.l.JSC$17311_verb_=null;_.l.JSC$17311_lastError_=null;_.l.JSC$17311_lastStatusCode_=-1;_.l.sendClose_=!0;
_.l.JSC$17311_cancelled_=!1;_.l.JSC$17311_readyStateChangeThrottleMs_=0;_.l.JSC$17311_readyStateChangeThrottle_=null;var x$m=function(E,B){switch(E){case 0:return"Non-200 return code ("+B+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Gz8={},Oog={};
OE.prototype.setTimeout=function(E){this.timeout_=E};
var MoO=function(E,B,I){E.JSC$17311_type_=1;E.JSC$17311_baseUri_=_.eM(B.clone());E.JSC$17311_postData_=I;E.decodeChunks_=!0;nbL(E,null)},Ho2=function(E,B,I,T,e){E.JSC$17311_type_=1;
E.JSC$17311_baseUri_=_.eM(B.clone());E.JSC$17311_postData_=null;E.decodeChunks_=I;e&&(E.sendClose_=!1);nbL(E,T)},nbL=function(E,B){E.JSC$17311_requestStartTime_=Date.now();
Nog(E);E.JSC$17311_requestUri_=E.JSC$17311_baseUri_.clone();Kh(E.JSC$17311_requestUri_,"t",E.JSC$17309_retryId_);E.JSC$17311_xmlHttpChunkStart_=0;E.JSC$17311_xmlHttp_=E.JSC$17309_channel_.JSC$17318_createXhrIo(E.JSC$17309_channel_.JSC$17318_shouldUseSecondaryDomains()?B:null);E.JSC$17311_readyStateChangeThrottleMs_>0&&(E.JSC$17311_readyStateChangeThrottle_=new _.qH((0,_.w1)(E.JSC$17311_xmlHttpHandler_,E,E.JSC$17311_xmlHttp_),E.JSC$17311_readyStateChangeThrottleMs_));E.JSC$17309_eventHandler_.listen(E.JSC$17311_xmlHttp_,
"readystatechange",E.JSC$17311_readyStateChangeHandler_);B=E.JSC$17311_extraHeaders_?_.a_.clone(E.JSC$17311_extraHeaders_):{};E.JSC$17311_postData_?(E.JSC$17311_verb_="POST",B["Content-Type"]="application/x-www-form-urlencoded",E.JSC$17311_xmlHttp_.send(E.JSC$17311_requestUri_,E.JSC$17311_verb_,E.JSC$17311_postData_,B)):(E.JSC$17311_verb_="GET",E.sendClose_&&!_.pa&&(B.Connection="close"),E.JSC$17311_xmlHttp_.send(E.JSC$17311_requestUri_,E.JSC$17311_verb_,null,B));E.JSC$17309_channel_.notifyServerReachabilityEvent(1);
B=E.JSC$17309_channelDebug_;var I=E.JSC$17311_postData_;if(I){var T="";I=I.split("&");for(var e=0;e<I.length;e++){var c=I[e].split("=");if(c.length>1){var Y=c[0];c=c[1];var v=Y.split("_");T=v.length>=2&&v[1]=="type"?T+(Y+"="+c+"&"):T+(Y+"=redacted&")}}}else T=null;B.info("XMLHTTP REQ ("+E.JSC$17309_rid_+") [attempt "+E.JSC$17309_retryId_+"]: "+E.JSC$17311_verb_+"\n"+E.JSC$17311_requestUri_+"\n"+T)};
OE.prototype.JSC$17311_readyStateChangeHandler_=function(E){E=E.target;var B=this.JSC$17311_readyStateChangeThrottle_;B&&_.Ok(E)==3?(this.JSC$17309_channelDebug_.debug("Throttling readystatechange."),B.fire()):this.JSC$17311_xmlHttpHandler_(E)};
OE.prototype.JSC$17311_xmlHttpHandler_=function(E){try{if(E==this.JSC$17311_xmlHttp_)a:{var B=_.Ok(this.JSC$17311_xmlHttp_),I=this.JSC$17311_xmlHttp_.JSC$7680_lastErrorCode_,T=this.JSC$17311_xmlHttp_.getStatus();if(_.pa&&!MV8("420+")){if(B<4)break a}else if(B<3||B==3&&!this.JSC$17311_xmlHttp_.getResponseText())break a;this.JSC$17311_cancelled_||B!=4||I==7||(I==8||T<=0?this.JSC$17309_channel_.notifyServerReachabilityEvent(3):this.JSC$17309_channel_.notifyServerReachabilityEvent(2));gbt(this);var e=
this.JSC$17311_xmlHttp_.getStatus();this.JSC$17311_lastStatusCode_=e;var c=this.JSC$17311_xmlHttp_.getResponseText();c||this.JSC$17309_channelDebug_.debug("No response text for uri "+this.JSC$17311_requestUri_+" status "+e);this.JSC$17311_successful_=e==200;this.JSC$17309_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17309_rid_+") [ attempt "+this.JSC$17309_retryId_+"]: "+this.JSC$17311_verb_+"\n"+this.JSC$17311_requestUri_+"\n"+B+" "+e);if(this.JSC$17311_successful_){B==4&&nu(this);if(this.decodeChunks_){for(E=
!0;!this.JSC$17311_cancelled_&&this.JSC$17311_xmlHttpChunkStart_<c.length;){var Y=So2(this,c);if(Y==Oog){B==4&&(this.JSC$17311_lastError_=4,GD(15),E=!1);M4(this.JSC$17309_channelDebug_,this.JSC$17309_rid_,null,"[Incomplete Response]");break}else if(Y==Gz8){this.JSC$17311_lastError_=4;GD(16);M4(this.JSC$17309_channelDebug_,this.JSC$17309_rid_,c,"[Invalid Chunk]");E=!1;break}else M4(this.JSC$17309_channelDebug_,this.JSC$17309_rid_,Y,null),JTL(this,Y)}B==4&&c.length==0&&(this.JSC$17311_lastError_=1,
GD(17),E=!1);this.JSC$17311_successful_=this.JSC$17311_successful_&&E;E||(M4(this.JSC$17309_channelDebug_,this.JSC$17309_rid_,c,"[Invalid Chunked Response]"),nu(this),WA7(this))}else M4(this.JSC$17309_channelDebug_,this.JSC$17309_rid_,c,null),JTL(this,c);this.JSC$17311_successful_&&!this.JSC$17311_cancelled_&&(B==4?this.JSC$17309_channel_.JSC$17318_onRequestComplete(this):(this.JSC$17311_successful_=!1,Nog(this)))}else e==400&&c.indexOf("Unknown SID")>0?(this.JSC$17311_lastError_=3,GD(13),this.JSC$17309_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17309_rid_+")")):(this.JSC$17311_lastError_=0,GD(14),this.JSC$17309_channelDebug_.warning("XMLHTTP Bad status "+e+" ("+this.JSC$17309_rid_+")")),nu(this),WA7(this)}else this.JSC$17309_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(v){this.JSC$17309_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var So2=function(E,B){var I=E.JSC$17311_xmlHttpChunkStart_,T=B.indexOf("\n",I);if(T==-1)return Oog;I=Number(B.substring(I,T));if(isNaN(I))return Gz8;T+=1;if(T+I>B.length)return Oog;B=B.slice(T,T+I);E.JSC$17311_xmlHttpChunkStart_=T+I;return B};
OE.prototype.cancel=function(){this.JSC$17311_cancelled_=!0;nu(this)};
var Nog=function(E){E.JSC$17311_watchDogTimeoutTime_=Date.now()+E.timeout_;Xed(E,E.timeout_)},Xed=function(E,B){if(E.JSC$17311_watchDogTimerId_!=null)throw Error("wk");
E.JSC$17311_watchDogTimerId_=z3((0,_.w1)(E.JSC$17311_onWatchDogTimeout_,E),B)},gbt=function(E){E.JSC$17311_watchDogTimerId_&&(_.$i.clearTimeout(E.JSC$17311_watchDogTimerId_),E.JSC$17311_watchDogTimerId_=null)};
OE.prototype.JSC$17311_onWatchDogTimeout_=function(){this.JSC$17311_watchDogTimerId_=null;var E=Date.now();E-this.JSC$17311_watchDogTimeoutTime_>=0?(this.JSC$17309_channelDebug_.info("TIMEOUT: "+this.JSC$17311_requestUri_),this.JSC$17311_type_!=2&&this.JSC$17309_channel_.notifyServerReachabilityEvent(3),nu(this),this.JSC$17311_lastError_=2,GD(18),WA7(this)):(this.JSC$17309_channelDebug_.warning("WatchDog timer called too early"),Xed(this,this.JSC$17311_watchDogTimeoutTime_-E))};
var WA7=function(E){E.JSC$17309_channel_.JSC$17318_isClosed()||E.JSC$17311_cancelled_||E.JSC$17309_channel_.JSC$17318_onRequestComplete(E)},nu=function(E){gbt(E);
_.bl(E.JSC$17311_readyStateChangeThrottle_);E.JSC$17311_readyStateChangeThrottle_=null;E.pollingTimer_.stop();E.JSC$17309_eventHandler_.removeAll();if(E.JSC$17311_xmlHttp_){var B=E.JSC$17311_xmlHttp_;E.JSC$17311_xmlHttp_=null;B.abort();B.dispose()}E.trident_&&(E.trident_=null)};
OE.prototype.getLastError=function(){return this.JSC$17311_lastError_};
var JTL=function(E,B){try{E.JSC$17309_channel_.JSC$17318_onRequestData(E,B),E.JSC$17309_channel_.notifyServerReachabilityEvent(4)}catch(I){}};var M4=function(E,B,I,T){var e=E.info;a:if(I&&I!="y2f%"){try{var c=JSON.parse(I);if(c)for(var Y=0;Y<c.length;Y++)if(Array.isArray(c[Y])){var v=c[Y];if(!(v.length<2)){var y=v[1];if(Array.isArray(y)&&!(y.length<1)){var Z=y[0];if(Z!="noop"&&Z!="stop")for(var P=1;P<y.length;P++)y[P]=""}}}var z=(0,_.xT)(c);break a}catch(m){E.debug("Exception parsing expected JS array - probably was not JS");z=I;break a}z=void 0}else z=I;e.call(E,"XMLHTTP TEXT ("+B+"): "+z+(T?" "+T:""))};
mo.prototype.debug=function(E){this.info(E)};
mo.prototype.info=function(){};
mo.prototype.warning=function(){};var rTd=function(E,B){this.JSC$17316_channel_=E;this.JSC$17316_channelDebug_=B;this.JSC$17316_parser_=new am};
_.l=rTd.prototype;_.l.JSC$17318_extraHeaders_=null;_.l.JSC$17318_request_=null;_.l.receivedIntermediateResult_=!1;_.l.JSC$17318_path_=null;_.l.state_=null;_.l.JSC$17318_lastStatusCode_=-1;_.l.JSC$17318_hostPrefix_=null;_.l.blockedPrefix_=null;
_.l.connect=function(E){this.JSC$17318_path_=E;E=bo8(this.JSC$17316_channel_,this.JSC$17318_path_);GD(3);Date.now();var B=this.JSC$17316_channel_.firstTestResults_;B!=null?(this.JSC$17318_hostPrefix_=B[0],(this.blockedPrefix_=B[1])?(this.state_=1,obL(this)):(this.state_=2,ATm(this))):(Kh(E,"MODE","init"),this.JSC$17318_request_=new OE(this,this.JSC$17316_channelDebug_),this.JSC$17318_request_.JSC$17311_extraHeaders_=this.JSC$17318_extraHeaders_,Ho2(this.JSC$17318_request_,E,!1,null,!0),this.state_=
0)};
var obL=function(E){var B=jns(E.JSC$17316_channel_,E.blockedPrefix_,"/mail/images/cleardot.gif");_.eM(B);CT9(B.toString(),5E3,(0,_.w1)(E.checkBlockedCallback_,E),3,2E3);E.notifyServerReachabilityEvent(1)};
rTd.prototype.checkBlockedCallback_=function(E){if(E)this.state_=2,ATm(this);else{GD(4);var B=this.JSC$17316_channel_;B.JSC$17319_channelDebug_.debug("Test Connection Blocked");B.JSC$17323_lastStatusCode_=B.connectionTest_.JSC$17318_lastStatusCode_;Hw(B,9)}E&&this.notifyServerReachabilityEvent(2)};
var ATm=function(E){E.JSC$17316_channelDebug_.debug("TestConnection: starting stage 2");var B=E.JSC$17316_channel_.secondTestResults_;B!=null?(E.JSC$17316_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+B?"Buffered":"Unbuffered"),GD(5),B?(GD(11),N4(E.JSC$17316_channel_,E,!1)):(GD(12),N4(E.JSC$17316_channel_,E,!0))):(E.JSC$17318_request_=new OE(E,E.JSC$17316_channelDebug_),E.JSC$17318_request_.JSC$17311_extraHeaders_=E.JSC$17318_extraHeaders_,B=U$t(E.JSC$17316_channel_,
E.JSC$17318_hostPrefix_,E.JSC$17318_path_),GD(5),Kh(B,"TYPE","xmlhttp"),Ho2(E.JSC$17318_request_,B,!1,E.JSC$17318_hostPrefix_,!1))};
_.l=rTd.prototype;_.l.JSC$17318_createXhrIo=function(E){return this.JSC$17316_channel_.JSC$17318_createXhrIo(E)};
_.l.abort=function(){this.JSC$17318_request_&&(this.JSC$17318_request_.cancel(),this.JSC$17318_request_=null);this.JSC$17318_lastStatusCode_=-1};
_.l.JSC$17318_isClosed=function(){return!1};
_.l.JSC$17318_onRequestData=function(E,B){this.JSC$17318_lastStatusCode_=E.JSC$17311_lastStatusCode_;if(this.state_==0)if(this.JSC$17316_channelDebug_.debug("TestConnection: Got data for stage 1"),B){try{var I=this.JSC$17316_parser_.parse(B)}catch(T){kzH(this.JSC$17316_channel_,this);return}this.JSC$17318_hostPrefix_=I[0];this.blockedPrefix_=I[1]}else this.JSC$17316_channelDebug_.debug("TestConnection: Null responseText"),kzH(this.JSC$17316_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(GD(7),Date.now()):B=="11111"?(GD(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17318_lastStatusCode_=200,this.JSC$17318_request_.cancel(),this.JSC$17316_channelDebug_.debug("Test connection succeeded; using streaming connection"),GD(12),N4(this.JSC$17316_channel_,this,!0)):(GD(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.l.JSC$17318_onRequestComplete=function(){this.JSC$17318_lastStatusCode_=this.JSC$17318_request_.JSC$17311_lastStatusCode_;this.JSC$17318_request_.JSC$17311_successful_?this.state_==0?(this.JSC$17316_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,obL(this)):(this.state_=2,ATm(this))):this.state_==2&&(this.JSC$17316_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17316_channelDebug_.debug("Test connection succeeded; using streaming connection"),
GD(12),N4(this.JSC$17316_channel_,this,!0)):(this.JSC$17316_channelDebug_.debug("Test connection failed; not using streaming"),GD(11),N4(this.JSC$17316_channel_,this,!1))):(this.JSC$17316_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?GD(9):this.state_==2&&GD(10),kzH(this.JSC$17316_channel_,this,this.JSC$17318_request_.getLastError()))};
_.l.JSC$17318_shouldUseSecondaryDomains=function(){return this.JSC$17316_channel_.JSC$17318_shouldUseSecondaryDomains()};
_.l.isActive=function(){return this.JSC$17316_channel_.isActive()};
_.l.notifyServerReachabilityEvent=function(E){this.JSC$17316_channel_.notifyServerReachabilityEvent(E)};var gv=function(E,B,I){this.state_=1;this.JSC$17319_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17319_channelDebug_=new mo;this.JSC$17319_parser_=new am;this.firstTestResults_=E||null;this.secondTestResults_=B!=null?B:null;this.asyncTest_=I||!1},tom=function(E,B){this.JSC$17321_mapId=E;
this.map=B;this.context=null};
_.l=gv.prototype;_.l.JSC$17323_extraHeaders_=null;_.l.JSC$17323_extraParams_=null;_.l.forwardChannelRequest_=null;_.l.JSC$17323_backChannelRequest_=null;_.l.JSC$17323_path_=null;_.l.JSC$17323_forwardChannelUri_=null;_.l.JSC$17323_backChannelUri_=null;_.l.JSC$17323_hostPrefix_=null;_.l.JSC$17323_nextRid_=0;_.l.JSC$17323_nextMapId_=0;_.l.handler_=null;_.l.JSC$17323_forwardChannelTimerId_=null;_.l.JSC$17323_backChannelTimerId_=null;_.l.JSC$17323_deadBackChannelTimerId_=null;_.l.connectionTest_=null;
_.l.useChunked_=null;_.l.JSC$17323_lastArrayId_=-1;_.l.JSC$17323_lastPostResponseArrayId_=-1;_.l.JSC$17323_lastStatusCode_=-1;_.l.JSC$17323_forwardChannelRetryCount_=0;_.l.JSC$17323_backChannelRetryCount_=0;_.l.JSC$17323_channelVersion_=8;var fOI={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},Vo2=function(E,B,I,T){_.CS.call(this,"timingevent",E);this.size=B;this.rtt=I;this.retries=T};
_.$U(Vo2,_.CS);var qoI=function(E){_.CS.call(this,"serverreachability",E)};
_.$U(qoI,_.CS);gv.prototype.connect=function(E,B,I,T,e){this.JSC$17319_channelDebug_.debug("connect()");GD(0);this.JSC$17323_path_=B;this.JSC$17323_extraParams_=I||{};T&&e!==void 0&&(this.JSC$17323_extraParams_.OSID=T,this.JSC$17323_extraParams_.OAID=e);this.asyncTest_?(z3((0,_.w1)(this.connectTest_,this,E),100),FA9(this)):this.connectTest_(E)};
gv.prototype.disconnect=function(){this.JSC$17319_channelDebug_.debug("disconnect()");D$s(this);if(this.state_==3){var E=this.JSC$17323_nextRid_++,B=this.JSC$17323_forwardChannelUri_.clone();_.Wp(B,"SID",this.sid_);_.Wp(B,"RID",E);_.Wp(B,"TYPE","terminate");SK(this,B);E=new OE(this,this.JSC$17319_channelDebug_,this.sid_,E);E.JSC$17311_type_=2;E.JSC$17311_baseUri_=_.eM(B.clone());(new Image).src=E.JSC$17311_baseUri_.toString();E.JSC$17311_requestStartTime_=Date.now();Nog(E)}KAI(this)};
gv.prototype.connectTest_=function(E){this.JSC$17319_channelDebug_.debug("connectTest_()");this.connectionTest_=new rTd(this,this.JSC$17319_channelDebug_);this.connectionTest_.JSC$17318_extraHeaders_=this.JSC$17323_extraHeaders_;this.connectionTest_.JSC$17316_parser_=this.JSC$17319_parser_;this.connectionTest_.connect(E)};
var FA9=function(E){E.JSC$17319_channelDebug_.debug("connectChannel_()");E.JSC$17323_ensureInState_(1,0);E.JSC$17323_forwardChannelUri_=bo8(E,E.JSC$17323_path_);RT8(E)},D$s=function(E){E.connectionTest_&&(E.connectionTest_.abort(),E.connectionTest_=null);
E.JSC$17323_backChannelRequest_&&(E.JSC$17323_backChannelRequest_.cancel(),E.JSC$17323_backChannelRequest_=null);E.JSC$17323_backChannelTimerId_&&(_.$i.clearTimeout(E.JSC$17323_backChannelTimerId_),E.JSC$17323_backChannelTimerId_=null);Ef9(E);E.forwardChannelRequest_&&(E.forwardChannelRequest_.cancel(),E.forwardChannelRequest_=null);E.JSC$17323_forwardChannelTimerId_&&(_.$i.clearTimeout(E.JSC$17323_forwardChannelTimerId_),E.JSC$17323_forwardChannelTimerId_=null)},B4t=function(E,B){if(E.state_==0)throw Error("zk");
E.JSC$17319_outgoingMaps_.length==1E3&&E.JSC$17319_parser_.stringify(B);E.JSC$17319_outgoingMaps_.push(new tom(E.JSC$17323_nextMapId_++,B));E.state_!=2&&E.state_!=3||RT8(E)};
gv.prototype.JSC$17318_isClosed=function(){return this.state_==0};
gv.prototype.getState=function(){return this.state_};
var RT8=function(E){E.forwardChannelRequest_||E.JSC$17323_forwardChannelTimerId_||(E.JSC$17323_forwardChannelTimerId_=z3((0,_.w1)(E.JSC$17323_onStartForwardChannelTimer_,E),0),E.JSC$17323_forwardChannelRetryCount_=0)};
gv.prototype.JSC$17323_onStartForwardChannelTimer_=function(E){this.JSC$17323_forwardChannelTimerId_=null;$CH(this,E)};
var $CH=function(E,B){E.JSC$17319_channelDebug_.debug("startForwardChannel_");if(E.state_==1){if(!B){E.JSC$17319_channelDebug_.debug("open_()");E.JSC$17323_nextRid_=Math.floor(Math.random()*1E5);B=E.JSC$17323_nextRid_++;var I=new OE(E,E.JSC$17319_channelDebug_,"",B);I.JSC$17311_extraHeaders_=E.JSC$17323_extraHeaders_;var T=IMI(E),e=E.JSC$17323_forwardChannelUri_.clone();_.Wp(e,"RID",B);_.Wp(e,"CVER","1");SK(E,e);MoO(I,e,T);E.forwardChannelRequest_=I;E.state_=2}}else E.state_==3&&(B?T4I(E,B):E.JSC$17319_outgoingMaps_.length==
0?E.JSC$17319_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):E.forwardChannelRequest_||(T4I(E),E.JSC$17319_channelDebug_.debug("startForwardChannel_ finished, sent request")))},T4I=function(E,B){if(B)if(E.JSC$17323_channelVersion_>6){E.JSC$17319_outgoingMaps_=E.pendingMaps_.concat(E.JSC$17319_outgoingMaps_);
E.pendingMaps_.length=0;var I=E.JSC$17323_nextRid_-1;B=IMI(E)}else I=B.JSC$17309_rid_,B=B.JSC$17311_postData_;else I=E.JSC$17323_nextRid_++,B=IMI(E);var T=E.JSC$17323_forwardChannelUri_.clone();_.Wp(T,"SID",E.sid_);_.Wp(T,"RID",I);_.Wp(T,"AID",E.JSC$17323_lastArrayId_);SK(E,T);I=new OE(E,E.JSC$17319_channelDebug_,E.sid_,I,E.JSC$17323_forwardChannelRetryCount_+1);I.JSC$17311_extraHeaders_=E.JSC$17323_extraHeaders_;I.setTimeout(1E4+Math.round(1E4*Math.random()));E.forwardChannelRequest_=I;MoO(I,T,B)},
SK=function(E,B){E.handler_&&(E=E.handler_.JSC$17330_getAdditionalParams())&&_.a_.forEach(E,function(I,T){_.Wp(B,T,I)})},IMI=function(E){var B=Math.min(E.JSC$17319_outgoingMaps_.length,1E3),I=["count="+B];
if(E.JSC$17323_channelVersion_>6&&B>0){var T=E.JSC$17319_outgoingMaps_[0].JSC$17321_mapId;I.push("ofs="+T)}else T=0;for(var e={},c=0;c<B;e={mapId$jscomp$3:void 0},c++){e.mapId$jscomp$3=E.JSC$17319_outgoingMaps_[c].JSC$17321_mapId;var Y=E.JSC$17319_outgoingMaps_[c].map;e.mapId$jscomp$3=E.JSC$17323_channelVersion_<=6?c:e.mapId$jscomp$3-T;try{_.a_.forEach(Y,function(v){return function(y,Z){I.push("req"+v.mapId$jscomp$3+"_"+Z+"="+encodeURIComponent(y))}}(e))}catch(v){I.push("req"+e.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}E.pendingMaps_=E.pendingMaps_.concat(E.JSC$17319_outgoingMaps_.splice(0,B));
return I.join("&")},ehI=function(E){E.JSC$17323_backChannelRequest_||E.JSC$17323_backChannelTimerId_||(E.JSC$17323_backChannelAttemptId_=1,E.JSC$17323_backChannelTimerId_=z3((0,_.w1)(E.JSC$17323_onStartBackChannelTimer_,E),0),E.JSC$17323_backChannelRetryCount_=0)},ccm=function(E){if(E.JSC$17323_backChannelRequest_||E.JSC$17323_backChannelTimerId_||E.JSC$17323_backChannelRetryCount_>=3)return!1;
E.JSC$17319_channelDebug_.debug("Going to retry GET");E.JSC$17323_backChannelAttemptId_++;E.JSC$17323_backChannelTimerId_=z3((0,_.w1)(E.JSC$17323_onStartBackChannelTimer_,E),lMt(E,E.JSC$17323_backChannelRetryCount_));E.JSC$17323_backChannelRetryCount_++;return!0};
gv.prototype.JSC$17323_onStartBackChannelTimer_=function(){this.JSC$17323_backChannelTimerId_=null;this.JSC$17319_channelDebug_.debug("Creating new HttpRequest");this.JSC$17323_backChannelRequest_=new OE(this,this.JSC$17319_channelDebug_,this.sid_,"rpc",this.JSC$17323_backChannelAttemptId_);this.JSC$17323_backChannelRequest_.JSC$17311_extraHeaders_=this.JSC$17323_extraHeaders_;this.JSC$17323_backChannelRequest_.JSC$17311_readyStateChangeThrottleMs_=0;var E=this.JSC$17323_backChannelUri_.clone();_.Wp(E,
"RID","rpc");_.Wp(E,"SID",this.sid_);_.Wp(E,"CI",this.useChunked_?"0":"1");_.Wp(E,"AID",this.JSC$17323_lastArrayId_);SK(this,E);_.Wp(E,"TYPE","xmlhttp");Ho2(this.JSC$17323_backChannelRequest_,E,!0,this.JSC$17323_hostPrefix_,!1);this.JSC$17319_channelDebug_.debug("New Request created")};
var N4=function(E,B,I){E.JSC$17319_channelDebug_.debug("Test Connection Finished");E.useChunked_=E.secondTestResults_==null?I:!E.secondTestResults_;E.JSC$17323_lastStatusCode_=B.JSC$17318_lastStatusCode_;E.asyncTest_||FA9(E)},kzH=function(E,B){E.JSC$17319_channelDebug_.debug("Test Connection Failed");
E.JSC$17323_lastStatusCode_=B.JSC$17318_lastStatusCode_;Hw(E,2)};
gv.prototype.JSC$17318_onRequestData=function(E,B){if(this.state_!=0&&(this.JSC$17323_backChannelRequest_==E||this.forwardChannelRequest_==E))if(this.JSC$17323_lastStatusCode_=E.JSC$17311_lastStatusCode_,this.forwardChannelRequest_==E&&this.state_==3)if(this.JSC$17323_channelVersion_>7){try{var I=this.JSC$17319_parser_.parse(B)}catch(T){I=null}if(Array.isArray(I)&&I.length==3)if(B=I,B[0]==0)a:if(this.JSC$17319_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17323_backChannelTimerId_)this.JSC$17319_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17323_backChannelRequest_)if(this.JSC$17323_backChannelRequest_.JSC$17311_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17311_requestStartTime_)Ef9(this),this.JSC$17323_backChannelRequest_.cancel(),this.JSC$17323_backChannelRequest_=null;else break a;else this.JSC$17319_channelDebug_.warning("We do not have a BackChannel established");ccm(this);GD(19)}else this.JSC$17323_lastPostResponseArrayId_=B[1],E=this.JSC$17323_lastPostResponseArrayId_-this.JSC$17323_lastArrayId_,0<
E&&(B=B[2],this.JSC$17319_channelDebug_.debug(B+" bytes (in "+E+" arrays) are outstanding on the BackChannel"),B<37500&&this.useChunked_&&this.JSC$17323_backChannelRetryCount_==0&&!this.JSC$17323_deadBackChannelTimerId_&&(this.JSC$17323_deadBackChannelTimerId_=z3((0,_.w1)(this.JSC$17323_onBackChannelDead_,this),6E3)));else this.JSC$17319_channelDebug_.debug("Bad POST response data returned"),Hw(this,11)}else B!="y2f%"&&(this.JSC$17319_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
Hw(this,11));else this.JSC$17323_backChannelRequest_==E&&Ef9(this),_.aB(B)||(E=this.JSC$17319_parser_.parse(B),this.onInput_(E))};
gv.prototype.JSC$17323_onBackChannelDead_=function(){this.JSC$17323_deadBackChannelTimerId_!=null&&(this.JSC$17323_deadBackChannelTimerId_=null,this.JSC$17323_backChannelRequest_.cancel(),this.JSC$17323_backChannelRequest_=null,ccm(this),GD(20))};
var Ef9=function(E){E.JSC$17323_deadBackChannelTimerId_!=null&&(_.$i.clearTimeout(E.JSC$17323_deadBackChannelTimerId_),E.JSC$17323_deadBackChannelTimerId_=null)};
gv.prototype.JSC$17318_onRequestComplete=function(E){this.JSC$17319_channelDebug_.debug("Request complete");if(this.JSC$17323_backChannelRequest_==E){Ef9(this);this.JSC$17323_backChannelRequest_=null;var B=2}else if(this.forwardChannelRequest_==E)this.forwardChannelRequest_=null,B=1;else return;this.JSC$17323_lastStatusCode_=E.JSC$17311_lastStatusCode_;if(this.state_!=0)if(E.JSC$17311_successful_)if(B==1){B=E.JSC$17311_postData_?E.JSC$17311_postData_.length:0;E=Date.now()-E.JSC$17311_requestStartTime_;
var I=u0T;I.dispatchEvent(new Vo2(I,B,E,this.JSC$17323_forwardChannelRetryCount_));RT8(this);this.handler_&&this.handler_.JSC$17330_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else ehI(this);else{I=E.getLastError();if(I==3||I==7||I==0&&this.JSC$17323_lastStatusCode_>0)this.JSC$17319_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17319_channelDebug_.debug("Maybe retrying, last error: "+x$m(I,this.JSC$17323_lastStatusCode_));var T;if(T=B==1)this.forwardChannelRequest_||
this.JSC$17323_forwardChannelTimerId_||this.state_==1||this.JSC$17323_forwardChannelRetryCount_>=2?T=!1:(this.JSC$17319_channelDebug_.debug("Going to retry POST"),this.JSC$17323_forwardChannelTimerId_=z3((0,_.w1)(this.JSC$17323_onStartForwardChannelTimer_,this,E),lMt(this,this.JSC$17323_forwardChannelRetryCount_)),this.JSC$17323_forwardChannelRetryCount_++,T=!0);if(T||B==2&&ccm(this))return;this.JSC$17319_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17319_channelDebug_.debug("Error: HTTP request failed");
switch(I){case 1:Hw(this,5);break;case 4:Hw(this,10);break;case 3:Hw(this,6);break;case 7:Hw(this,12);break;default:Hw(this,2)}}};
var lMt=function(E,B){var I=5E3+Math.floor(Math.random()*1E4);E.isActive()||(E.JSC$17319_channelDebug_.debug("Inactive channel"),I*=2);return I*B};
gv.prototype.onInput_=function(E){for(var B=0;B<E.length;B++){var I=E[B];this.JSC$17323_lastArrayId_=I[0];I=I[1];this.state_==2?I[0]=="c"?(this.sid_=I[1],this.JSC$17323_hostPrefix_=I[2],I=I[3],I!=null?this.JSC$17323_channelVersion_=I:this.JSC$17323_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17330_channelOpened(),this.JSC$17323_backChannelUri_=U$t(this,this.JSC$17323_hostPrefix_,this.JSC$17323_path_),ehI(this)):I[0]=="stop"&&Hw(this,7):this.state_==3&&(I[0]=="stop"?Hw(this,7):
I[0]!="noop"&&this.handler_&&this.handler_.JSC$17330_channelHandleArray(I),this.JSC$17323_backChannelRetryCount_=0)}};
gv.prototype.JSC$17323_ensureInState_=function(E){if(!_.AD(arguments,this.state_))throw Error("Ak`"+this.state_);};
var Hw=function(E,B){E.JSC$17319_channelDebug_.info("Error code "+B);if(B==2||B==9){var I=null;E.handler_&&(I=null);var T=(0,_.w1)(E.testGoogleComCallback_,E);I||(I=new _.tQ("//www.google.com/images/cleardot.gif"),_.eM(I));yQ1(I.toString(),1E4,T)}else GD(2);E.onError_(B)};
gv.prototype.testGoogleComCallback_=function(E){E?(this.JSC$17319_channelDebug_.info("Successfully pinged google.com"),GD(2)):(this.JSC$17319_channelDebug_.info("Failed to ping google.com"),GD(1),this.onError_(8))};
gv.prototype.onError_=function(E){this.JSC$17319_channelDebug_.debug("HttpChannel: error - "+E);this.state_=0;this.handler_&&this.handler_.JSC$17330_channelError(E);KAI(this);D$s(this)};
var KAI=function(E){E.state_=0;E.JSC$17323_lastStatusCode_=-1;if(E.handler_)if(E.pendingMaps_.length==0&&E.JSC$17319_outgoingMaps_.length==0)E.handler_.JSC$17330_channelClosed();else{E.JSC$17319_channelDebug_.debug("Number of undelivered maps, pending: "+E.pendingMaps_.length+", outgoing: "+E.JSC$17319_outgoingMaps_.length);var B=_.V6(E.pendingMaps_),I=_.V6(E.JSC$17319_outgoingMaps_);E.pendingMaps_.length=0;E.JSC$17319_outgoingMaps_.length=0;E.handler_.JSC$17330_channelClosed(B,I)}},bo8=function(E,
B){B=jns(E,null,B);
E.JSC$17319_channelDebug_.debug("GetForwardChannelUri: "+B);return B},U$t=function(E,B,I){B=jns(E,E.JSC$17318_shouldUseSecondaryDomains()?B:null,I);
E.JSC$17319_channelDebug_.debug("GetBackChannelUri: "+B);return B},jns=function(E,B,I){var T=_.Se(I);
if(T.JSC$7917_domain_!="")B&&_.DF(T,B+"."+T.JSC$7917_domain_),_.KS(T,T.JSC$7917_port_);else{var e=window.location;T=xNT(e.protocol,B?B+"."+e.hostname:e.hostname,+e.port,I)}E.JSC$17323_extraParams_&&_.a_.forEach(E.JSC$17323_extraParams_,function(c,Y){_.Wp(T,Y,c)});
_.Wp(T,"VER",E.JSC$17323_channelVersion_);SK(E,T);return T};
gv.prototype.JSC$17318_createXhrIo=function(E){if(E)throw Error("xk");E=new _.Gw;E.JSC$7680_withCredentials_=!1;return E};
gv.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
gv.prototype.notifyServerReachabilityEvent=function(E){var B=u0T;B.dispatchEvent(new qoI(B,E))};
gv.prototype.JSC$17318_shouldUseSecondaryDomains=function(){return!1};
new NAI;var i28=function(){};
_.l=i28.prototype;_.l.JSC$17330_channelOpened=function(){};
_.l.JSC$17330_channelHandleArray=function(){};
_.l.JSC$17330_channelSuccess=function(){};
_.l.JSC$17330_channelError=function(){};
_.l.JSC$17330_channelClosed=function(){};
_.l.JSC$17330_getAdditionalParams=function(){return{}};
_.l.isActive=function(){return!0};var pOI=function(E){E.front_.length===0&&(E.front_=E.back_,E.front_.reverse(),E.back_=[])};
_.l=ZC9.prototype;_.l.enqueue=function(E){this.back_.push(E)};
_.l.peek=function(){pOI(this);return _.gJ(this.front_)};
_.l.getCount=function(){return this.front_.length+this.back_.length};
_.l.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.l.clear=function(){this.front_=[];this.back_=[]};
_.l.contains=function(E){return _.AD(this.front_,E)||_.AD(this.back_,E)};
_.l.remove=function(E){var B=this.front_;var I=Array.prototype.lastIndexOf.call(B,E,B.length-1);I>=0?(_.tD(B,I),B=!0):B=!1;return B||_.f4(this.back_,E)};
_.l.getValues=function(){for(var E=[],B=this.front_.length-1;B>=0;--B)E.push(this.front_[B]);B=this.back_.length;for(var I=0;I<B;++I)E.push(this.back_[I]);return E};var Jm=function(E){this.JSC$17334_map_=new _.lo;this.size=0;E&&this.addAll(E)},YI1=function(E){var B=typeof E;
return B=="object"&&E||B=="function"?"o"+_.$l(E):B.charAt(0)+E};
_.l=Jm.prototype;_.l.getCount=function(){return this.JSC$17334_map_.size};
_.l.add=function(E){this.JSC$17334_map_.set(YI1(E),E);this.size=this.JSC$17334_map_.size};
_.l.addAll=function(E){E=_.q0(E);for(var B=E.length,I=0;I<B;I++)this.add(E[I]);this.size=this.JSC$17334_map_.size};
_.l.removeAll=function(E){E=_.q0(E);for(var B=E.length,I=0;I<B;I++)this.remove(E[I]);this.size=this.JSC$17334_map_.size};
_.l.delete=function(E){E=this.JSC$17334_map_.remove(YI1(E));this.size=this.JSC$17334_map_.size;return E};
_.l.remove=function(E){return this.delete(E)};
_.l.clear=function(){this.JSC$17334_map_.clear();this.size=0};
_.l.isEmpty=function(){return this.JSC$17334_map_.size===0};
_.l.has=function(E){return this.JSC$17334_map_.containsKey(YI1(E))};
_.l.contains=function(E){return this.JSC$17334_map_.containsKey(YI1(E))};
_.l.getValues=function(){return this.JSC$17334_map_.getValues()};
_.l.values=function(){return this.JSC$17334_map_.values()};
_.l.clone=function(){return new Jm(this)};
_.l.equals=function(E){return this.getCount()==uZ7(E)&&aMt(this,E)};
var aMt=function(E,B){var I=uZ7(B);if(E.getCount()>I)return!1;!(B instanceof Jm)&&I>5&&(B=new Jm(B));return LaL(E,function(T){var e=B;return e.contains&&typeof e.contains=="function"?e.contains(T):e.containsValue&&typeof e.containsValue=="function"?e.containsValue(T):_.Di(e)||typeof e==="string"?_.AD(e,T):_.a_.containsValue(e,T)})};
Jm.prototype.__iterator__=function(){return this.JSC$17334_map_.__iterator__(!1)};
Jm.prototype[Symbol.iterator]=function(){return this.values()};var vfT={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(E){return(this._clampValue(E)-this.min)/(this.max-this.min)},
_clampValue:function(E){return Math.min(this.max,Math.max(this.min,this._calcStep(E)))},
_calcStep:function(E){E=parseFloat(E);if(!this.step)return E;E=Math.round((E-this.min)/this.step);return this.step<1?E/(1/this.step)+this.min:E*this.step+this.min},
_validateValue:function(){var E=this._clampValue(this.value);this.value=this.oldValue=isNaN(E)?this.oldValue:E;return this.value!==E},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var ycI;var CoH;_.wp({_template:function(){if(CoH!==void 0)return CoH;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;ycI===void 0&&(ycI=document.createElement("template"));var T=ycI;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return CoH=E},
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(){_.AJ(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(E){E.keyCode===27&&(E.preventDefault(),this.close())},
_track:function(E){if(!this.persistent&&!this.disableSwipe)switch(E.preventDefault(),E.detail.state){case "start":this._trackStart(E);break;case "track":this._trackMove(E);break;case "end":this._trackEnd(E)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var E=this.$.contentContainer.getBoundingClientRect();this._savedWidth=E.width;this._translateOffset=this.position==="left"?E.left:E.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(E){this._trackDetails&&(this._translateDrawer(E.detail.dx+this._translateOffset),this._trackDetails.push({dx:E.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(E){if(this._trackDetails){var B=E.detail.dx+this._translateOffset,I=this.getWidth();B=this.position==="left"?B>=0||B<=-I:B<=0||B>=I;if(!B){var T=this._trackDetails;this._trackDetails=null;this._flingDrawer(E,T);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}I/=2;E.detail.dx<-I?this.opened=this.position==="right":E.detail.dx>I&&(this.opened=this.position==="left");B?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(E,B){for(var I=Date.now(),T=I-100,e,c=0,Y=B.length-1;c<=Y;){var v=c+Y>>1,y=B[v];y.timeStamp>=T?(e=y,Y=v-1):c=v+1}return e?(E.detail.dx-e.dx)/(I-e.timeStamp||1):0},
_flingDrawer:function(E,B){B=this._calculateVelocity(E,B);if(!(Math.abs(B)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;E=E.detail.dx+this._translateOffset;var I=this.getWidth(),T=this.position==="left",e=B>0;e?(B=Math.max(B,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(B=Math.min(B,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");B=this._FLING_INITIAL_SLOPE*(!e&&T?-(E+I):e&&!T?I-E:-E)/B;this._styleTransitionDuration(B);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,B)}},
_styleTransitionDuration:function(E){this.style.transitionDuration=E+"ms";this.$.contentContainer.style.transitionDuration=E+"ms";this.$.scrim.style.transitionDuration=E+"ms"},
_styleTransitionTimingFunction:function(E){this.$.contentContainer.style.transitionTimingFunction=E;this.$.scrim.style.transitionTimingFunction=E},
_translateDrawer:function(E){var B=this.getWidth();this.position==="left"?(E=Math.max(-B,Math.min(E,0)),this.$.scrim.style.opacity=1+E/B):(E=Math.max(0,Math.min(E,B)),this.$.scrim.style.opacity=1-E/B);this.translate3d(E+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var E=this._drawerState;E===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;E!==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=""),E!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var E=_.QT(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"])');E.length>0?(this._firstTabStop=E[0],this._lastTabStop=E[E.length-1]):
this._lastTabStop=this._firstTabStop=null;(E=this.getAttribute("tabindex"))&&parseInt(E,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(E){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||E.keyCode!==9||(E.shiftKey?this._firstTabStop&&_.QT(E).localTarget===this._firstTabStop&&(E.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.QT(E).localTarget===this._lastTabStop&&(E.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(E,B){this.toggleClass("visible",E&&!B,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 wOm;var Z29;_.wp({_template:function(){if(Z29!==void 0)return Z29;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;wOm===void 0&&(wOm=document.createElement("template"));var T=wOm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return Z29=E},
is:"tp-yt-paper-progress",behaviors:[vfT],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(E){this.toggleClass("indeterminate",E,this.$.primaryProgress)},
_transformProgress:function(E,B){E.style.transform=E.style.webkitTransform="scaleX("+B/100+")"},
_mainRatioChanged:function(E){this._transformProgress(this.$.primaryProgress,E)},
_progressChanged:function(E,B,I,T,e){E=this._clampValue(E);B=this._clampValue(B);var c=this._calcRatio(E)*100,Y=this._calcRatio(B)*100;this._setSecondaryRatio(c);this._transformProgress(this.$.secondaryProgress,c);this._transformProgress(this.$.primaryProgress,Y);this.secondaryProgress=E;e?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",B);this.setAttribute("aria-valuemin",I);this.setAttribute("aria-valuemax",T)},
_disabledChanged:function(E){this.setAttribute("aria-disabled",E?"true":"false")},
_hideSecondaryProgress:function(E){return E===0}});var Po8;var zhH;var mCI=function(){};
_.l=mCI.prototype;_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._buttonStateChanged=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._noinkChanged=function(){};
_.l._calcRatio=function(){};
_.l._clampValue=function(){};
_.l._calcStep=function(){};
_.l._validateValue=function(){};
_.l._update=function(){};
_.l._setImmediateValue=function(){};
_.l._setExpand=function(){};
_.l._setDragging=function(){};
_.l._setTransiting=function(){};
_.l._setMarkers=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
_.l._setRatio=function(){};
mCI=_.wp({_template:function(){if(zhH!==void 0)return zhH;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;Po8===void 0&&(Po8=document.createElement("template"));var T=Po8;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return zhH=E},
is:"tp-yt-paper-slider",behaviors:[_.mG,_.sI,_.ZfZ,vfT],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&&_.Lg(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(E,B,I){this.setAttribute("aria-valuemin",B);this.setAttribute("aria-valuemax",I);this.setAttribute("aria-valuenow",E);this._positionKnob(this._calcRatio(E)*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(E){this._setImmediateValue(this._calcStep(this._calcKnobPosition(E)));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(E){return(this.max-this.min)*E/100+this.min},
_onTrack:function(E){E.stopPropagation();switch(E.detail.state){case "start":this._trackStart(E);break;case "track":this._trackX(E);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(E){this.dragging||this._trackStart(E);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,E.detail.dx*(this._isRTL?-1:1)));E=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(E);E=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(E+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var E=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;E.transform=E.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(E){this._expandKnob();E.preventDefault();this.focus()},
_bartrack:function(E){this._allowBarEvent(E)&&this._onTrack(E)},
_barclick:function(E){this._w=this.$.sliderBar.offsetWidth;var B=this.$.sliderBar.getBoundingClientRect();B=(E.detail.x-B.left)/this._w*100;this._isRTL&&(B=100-B);var I=this.ratio;this._setTransiting(!0);this._positionKnob(B);I===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
E.preventDefault();this.focus()},
_bardown:function(E){this._allowBarEvent(E)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(E))},
_knobTransitionEnd:function(E){E.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(E,B,I,T){T||this._setMarkers([]);B=Math.round((I-B)/this.step);B>E&&(B=E);if(B<0||!isFinite(B))B=0;this._setMarkers(Array(B))},
_mergeClasses:function(E){return Object.keys(E).filter(function(B){return E[B]}).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(E){return!this.ignoreBarTouch||E.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(E){this._isRTL?this._incrementKey(E):this._decrementKey(E)},
_rightKey:function(E){this._isRTL?this._decrementKey(E):this._incrementKey(E)},
_incrementKey:function(E){this.disabled||(E.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),E.preventDefault())},
_decrementKey:function(E){this.disabled||(E.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),E.preventDefault())},
_changeValue:function(E){this.value=E.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(E){E.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.wDt._createRipple.call(this)},
_focusedChanged:function(E){E&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=E?"":"none",this._ripple.holdDown=E)}});var QAt;var dCg;var Ww=null,hh7=function(){};
_.l=hh7.prototype;_.l.fit=function(){};
_.l._discoverInfo=function(){};
_.l.resetFit=function(){};
_.l.refit=function(){};
_.l.position=function(){};
_.l.constrain=function(){};
_.l._sizeDimension=function(){};
_.l.__sizeDimension=function(){};
_.l.center=function(){};
_.l.__getNormalizedRect=function(){};
_.l.__getOffscreenArea=function(){};
_.l.__getPosition=function(){};
_.l.notifyResize=function(){};
_.l.assignParentResizable=function(){};
_.l.stopResizeNotificationsFor=function(){};
_.l._subscribeIronResize=function(){};
_.l._unsubscribeIronResize=function(){};
_.l.resizerShouldNotify=function(){};
_.l._onDescendantIronResize=function(){};
_.l._fireResize=function(){};
_.l._onIronRequestResizeNotifications=function(){};
_.l._parentResizableChanged=function(){};
_.l._notifyDescendant=function(){};
_.l._requestResizeNotifications=function(){};
_.l._findParent=function(){};
_.l.toggle=function(){};
_.l.open=function(){};
_.l.close=function(){};
_.l.cancel=function(){};
_.l.invalidateTabbables=function(){};
_.l._ensureSetup=function(){};
_.l._canceledChanged=function(){};
_.l._withBackdropChanged=function(){};
_.l._prepareRenderOpened=function(){};
_.l._finishRenderOpened=function(){};
_.l._finishRenderClosed=function(){};
_.l._preparePositioning=function(){};
_.l._finishPositioning=function(){};
_.l._applyFocus=function(){};
_.l._onCaptureClick=function(){};
_.l._onCaptureFocus=function(){};
_.l._onCaptureEsc=function(){};
_.l._onCaptureTab=function(){};
_.l._onIronResize=function(){};
_.l._onNodesChange=function(){};
_.l.__ensureFirstLastFocusables=function(){};
_.l.__openedChanged=function(){};
_.l.__deraf=function(){};
_.l.__updateScrollObservers=function(){};
_.l.__addScrollListeners=function(){};
_.l.__removeScrollListeners=function(){};
_.l.__isValidScrollAction=function(){};
_.l.__onCaptureScroll=function(){};
_.l.__saveScrollPosition=function(){};
_.l.__restoreScrollPosition=function(){};
_.l._setCanceled=function(){};
hh7=_.wp({_template:function(){if(dCg!==void 0)return dCg;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;QAt===void 0&&(QAt=document.createElement("template"));var T=QAt;I.call(B,T.content.cloneNode(!0),E.content.firstChild);return dCg=E},
is:"tp-yt-paper-toast",behaviors:[_.UI],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(){_.mA._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.r4.requestAvailability()},
show:function(E){typeof E=="string"&&(E={text:E});for(var B in E)B.indexOf("_")===0?_.mA._warn('The property "'+B+'" is private and was not set.'):B in this?this[B]=E[B]:_.mA._warn('The property "'+B+'" is not valid.');this.open()},
hide:function(){this.close()},
__onTransitionEnd:function(E){E&&E.target===this&&E.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Ww&&Ww!==this&&Ww.close(),Ww=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Ww===this&&(Ww=null);_.jy._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(E){this.positionTarget=E},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var sA1=new _.F("disablePersonalizationAction");var v7t=new _.F("showDmaConsentFlowCommand");var yd7=new _.F("showMmgNoticeCommand");var uyI=new _.F("saveConsentAction");var LG1=function(E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qI(E)};
_.L(LG1,_.LX);var xCL=_.$Vt(LG1);var GqO=new _.F("updateTopbarAvatarAction");var O2T=new _.F("channelHandleValidationResultRenderer");var nfL=new _.F("generateHandleFromNameResultRenderer");var MyL=new _.F("channelHandleInputRenderer");var H2s=new _.F("copyLinkRenderer");var N48=new _.F("timedCommand");var gfm=new _.F("clearCookieAction");var SIm=new _.F("getMultiPageMenuAction");var Jc7=new _.F("addToGuideSectionAction"),WGH=new _.F("removeFromGuideSectionAction");var XO7=new _.F("updateNotificationsUnseenCountAction");var rcI=new _.F("resetChannelUnreadCountCommand");var b2H=new _.F("resetSubscriptionsUnreadDotCommand");var of2=new _.F("selectLanguageCommand");var Gvt=new _.F("sendFeedbackAction");var Acm=new _.F("uploadImageToScottyCommand");var jA2=new _.F("registerPromoCommand");var UCT=new _.F("setPushNotificationsEnabledCommand");var kqO=new _.F("desktopTopbarRenderer");var tyI=new _.F("surveyFollowUpRenderer");var fM1=new _.F("handlesClaimingRadioOptionRenderer");var Vyt=new _.F("hotkeyDialogRenderer");var qI9=new _.F("modifyReportFormCommand");var FGL=new _.F("accountLinkCommand");var DC8=new _.F("accountUnlinkCommand");var KGT=new _.F("logAccountLinkingEventCommand");var RhO=new _.F("guideCollapsibleEntryRenderer");var EY1=new _.F("guideDownloadsEntryRenderer");var Xm=new _.F("guideEntryRenderer");var B8I=new _.F("getLocationCommand");var $T7=new _.F("locationCollectionCommand");var I_9=new _.F("storiesItemViewModel");var T88=new _.F("addToRemoteQueueAction");var ekT=new _.F("insertInRemoteQueueAction");var l_m=new _.F("removeFromRemoteQueueAction");var cBI=new _.F("notificationRenderer");var DKd=new _.F("localWatchHistoryCommand");var iUT=new _.F("pdgBuyFlowHeaderRenderer");var pWO=new _.F("pdgColorSliderRenderer");var YS7=new _.F("pdgCommentOptionRenderer");var a_d=new _.F("pdgCommentPreviewRenderer");var vYd=new _.F("superVodSelectableItemButtonRenderer");var yBd=new _.F("switchButtonRenderer");var CUI=new _.F("upsellDialogRenderer");var wWd=new _.F("feedbackQuestionRenderer"),ZUs=new _.F("feedbackOptionRenderer");var PUH=new _.F("sponsorshipsTierRenderer"),zkt=new _.F("sponsorshipsPromotionChannelRenderer");var mTg=new _.F("simpleSurveyMessageRenderer");var GgO=new _.F("invokeInstrumentManagerAction");var Qpt=new _.F("logYpcFlowDismissCommand");var dTL=new _.F("logYpcFlowStartCommand");var hkI=new _.F("unlimitedCreateFamilyEndpoint");var spt=new _.F("iconBadgeRenderer");var VjT=new _.F("collaborativePlaylistVisibilityValidationRule");var u2m=function(E){_.CS.call(this,"channelMessage");this.message=E};
_.L(u2m,_.CS);var LJO=function(E){_.CS.call(this,"channelError");this.error=E};
_.L(LJO,_.CS);var xTs={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"},GT2={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},OU8={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
nYg={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},Mpg={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var rv=function(E){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 _.lo;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";E&&(this.id=E.id||E.name,this.name=E.name,this.clientName=E.clientName?E.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=E.app,this.type=E.type||"REMOTE_CONTROL",this.username=E.user||"",this.avatar=E.userAvatarUri||"",this.obfuscatedGaiaId=E.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=E.ownerObfuscatedGaiaId||"",this.theme=E.theme||"u",HUH(this,E.capabilities||""),N8m(this,E.compatibleSenderThemes||""),gYm(this,E.experiments||""),
this.remoteControllerUrl=E.remoteControllerUrl||"",this.localChannelEncryptionKey=E.localChannelEncryptionKey||"",this.deviceContext=E.deviceContext,this.brand=E.brand||"",this.model=E.model||"",this.year=E.year||0,this.os=E.os||"",this.osVersion=E.osVersion||"",this.chipset=E.chipset||"",this.mdxDialServerType=E.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=E.pairingType||"unknown",E=E.deviceInfo)&&(E=JSON.parse(E),this.brand=E.brand||"",this.model=E.model||"",this.year=E.year||
0,this.os=E.os||"",this.osVersion=E.osVersion||"",this.chipset=E.chipset||"",this.clientName=E.clientName?E.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=E.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
rv.prototype.copy=function(){var E={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&&(E.brand=this.brand);
this.model&&(E.model=this.model);this.year&&(E.year=this.year);this.os&&(E.os=this.os);this.osVersion&&(E.osVersion=this.osVersion);this.chipset&&(E.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(E.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(E.mdxDialServerType=this.mdxDialServerType);E=new rv(E);E.connected=this.connected;E.remoteControllerUrl=this.remoteControllerUrl;E.localChannelEncryptionKey=this.localChannelEncryptionKey;E.deviceContext=
this.deviceContext;return E};
rv.prototype.equals=function(E){return E?this.id==E.id:!1};
var HUH=function(E,B){E.capabilities.clear();_.ei(B.split(","),_.wY(_.a_.contains,xTs)).forEach(function(I){E.capabilities.add(I)})},N8m=function(E,B){E.compatibleSenderThemes.clear();
_.ei(B.split(","),_.wY(_.a_.contains,GT2)).forEach(function(I){E.compatibleSenderThemes.add(I)})},gYm=function(E,B){E.experiments.clear();
B.split(",").forEach(function(I){E.experiments.add(I)})};var SS8=function(E,B){this.action=E;this.params=B||{}};_.$U(PTL,_.Cx);_.l=PTL.prototype;_.l.JSC$17370_onTick_=function(){this.JSC$17368_interval_=Math.min(3E5,this.JSC$17368_interval_*2);this.JSC$17370_listener_();this.nextTickTime_&&this.start()};
_.l.start=function(){var E=this.JSC$17368_interval_+15E3*Math.random(),B=this.delay_;B.isActive()||B.start(E);this.nextTickTime_=Date.now()+E};
_.l.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.l.isActive=function(){return this.delay_.isActive()};
_.l.reset=function(){this.delay_.stop();this.JSC$17368_interval_=5E3};_.$U(Qx,i28);_.l=Qx.prototype;_.l.subscribe=function(E,B,I){return this.pubsub_.subscribe(E,B,I)};
_.l.unsubscribe=function(E,B,I){return this.pubsub_.unsubscribe(E,B,I)};
_.l.unsubscribeByKey=function(E){return this.pubsub_.unsubscribeByKey(E)};
_.l.publish=function(E,B){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.l.dispose=function(){this.JSC$17371_disposed_||(this.JSC$17371_disposed_=!0,_.bl(this.pubsub_),this.disconnect(),_.bl(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17371_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.i1({})})};
_.l.isDisposed=function(){return this.JSC$17371_disposed_};
_.l.connect=function(E,B,I){var T=this,e,c,Y,v;return _.a(function(y){if(y.nextAddress==1)return _.Dg(y,2),T.useAsyncBrowserChannelHandler_?_.C(y,T.connectPromise_,2):y.jumpTo(2);_.FL(y);if(T.JSC$17371_disposed_||T.JSC$17371_channel_&&T.JSC$17371_channel_.getState()==2)return y.return();T.sCookie_="";T.reconnectTimer_.stop();T.connectionParams_=E||null;T.connectUi_=B||0;e=T.JSC$17371_pathPrefix_+"/test";c=T.JSC$17371_pathPrefix_+"/bind";Y=new gv(I?I.firstTestResults:null,I?I.secondTestResults:null,
T.enableAsyncTest_);if(v=T.JSC$17371_channel_)v.handler_=null;Y.handler_=T;T.JSC$17371_channel_=Y;if(T.useAsyncBrowserChannelHandler_)return T.connectPromise_=JBT(T).then(function(){return WJ2(T,e,c,v,I)}),y.return(T.connectPromise_.then(function(){T.connectPromise_=_.i1()}));
WJ2(T,e,c,v,I);return _.Kr(y,0)})};
var WJ2=function(E,B,I,T,e){XWd(E);if(E.JSC$17371_channel_){var c=_.HA("ID_TOKEN"),Y=E.JSC$17371_channel_.JSC$17323_extraHeaders_||{};c?Y["x-youtube-identity-token"]=c:delete Y["x-youtube-identity-token"];E.JSC$17371_channel_.JSC$17323_extraHeaders_=Y}rBs(E);T?(T.getState(),E.JSC$17371_channel_.connect(B,I,E.defaultQueryParams_,T.sid_,T.JSC$17323_lastArrayId_)):e?E.JSC$17371_channel_.connect(B,I,E.defaultQueryParams_,e.sessionId,e.arrayId):E.JSC$17371_channel_.connect(B,I,E.defaultQueryParams_)};
Qx.prototype.disconnect=function(E){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.i1())}finally{this.disconnectUi_=E||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),XWd(this),this.JSC$17371_channel_&&(this.JSC$17371_channel_.getState()==3&&$CH(this.JSC$17371_channel_),this.JSC$17371_channel_.disconnect()),this.disconnectUi_=0}};
Qx.prototype.sendMessage=function(E,B){var I=this,T;return _.a(function(e){switch(e.nextAddress){case 1:_.Dg(e,2);if(!I.useAsyncBrowserChannelHandler_){e.jumpTo(2);break}return _.C(e,I.connectPromise_,2);case 2:_.FL(e);if(I.JSC$17371_disposed_)return e.return();T={_sc:E};B&&_.a_.extend(T,B);if(I.reconnectTimer_.isActive()||(I.JSC$17371_channel_?I.JSC$17371_channel_.getState():0)==2){I.JSC$17371_pendingMessages_.push(T);e.jumpTo(6);break}if(!I.isChannelOpened()){e.jumpTo(6);break}_.Dg(e,8);if(!I.useAsyncBrowserChannelHandler_||
bUt(I,E)){e.jumpTo(8);break}return _.C(e,JBT(I),8);case 8:_.FL(e,0,0,1);I.isChannelOpened()&&(bUt(I,E)||rBs(I),XWd(I),B4t(I.JSC$17371_channel_,T));_.Kr(e,6,1);break;case 6:_.Kr(e,0)}})};
var bUt=function(E,B){return E.enableMdxAuthForConnectionOnly_?!0:E.disableMdxAuthForAdMessages_?Object.values(OU8).includes(B):E.disableMdxAuthForNonPlaybackMessages_?!Object.values(nYg).includes(B):E.disableMdxAuthForShortsMessages_?Object.values(Mpg).includes(B):!1};
Qx.prototype.JSC$17330_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17371_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)oYO(this);else{var E=this.JSC$17371_pendingMessages_;this.JSC$17371_pendingMessages_=[];var B=E.length;rBs(this);AB7(this,E,B);jpH(this)}else jpH(this)};
var oYO=function(E){var B,I;_.a(function(T){if(T.nextAddress==1)return _.Dg(T,2),_.C(T,JBT(E),2);_.FL(T);B=E.JSC$17371_pendingMessages_;E.JSC$17371_pendingMessages_=[];I=B.length;AB7(E,B,I);jpH(E);return _.Kr(T,0)})},AB7=function(E,B,I){for(var T=0;T<I;++T)B4t(E.JSC$17371_channel_,B[T]);
jpH(E)},jpH=function(E){E.publish("handlerOpened");
E.JSC$17371_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.l=Qx.prototype;_.l.JSC$17330_channelError=function(E){var B=E==2&&this.JSC$17371_channel_.JSC$17323_lastStatusCode_==401;E==4||B||this.reconnectTimer_.start();this.publish("handlerError",E,B);B=Object.keys(fOI).find(function(I){return fOI[I]===E});
this.JSC$17371_channelErrorCounter.increment("BROWSER_CHANNEL",B!=null?B:"UNKNOWN")};
_.l.JSC$17330_channelClosed=function(E,B){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(B)for(var I=B.length,T=0;T<I;++T){var e=B[T].map;e&&this.JSC$17371_pendingMessages_.push(e)}this.JSC$17371_channelClosedCounter.increment("BROWSER_CHANNEL");E&&this.pendingMapsOnClosedCounter.JSC$7813_streamzService.JSC$7671_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",E.length);B&&this.undeliveredMapsOnClosedCounter.JSC$7816_streamzService.JSC$7671_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
B.length)};
_.l.JSC$17330_channelSuccess=function(E,B){B!=null&&E!=null&&this.channelMessageSentCounter.increment()};
_.l.JSC$17330_getAdditionalParams=function(){var E={v:2};this.sCookie_&&(E.gsessionid=this.sCookie_);this.connectUi_!=0&&(E.ui=""+this.connectUi_);this.disconnectUi_!=0&&(E.ui=""+this.disconnectUi_);this.connectionParams_&&_.a_.extend(E,this.connectionParams_);return E};
_.l.JSC$17330_channelHandleArray=function(E){E[0]=="S"?this.sCookie_=E[1]:E[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17371_channel_.disconnect()):this.publish("handlerMessage",new SS8(E[0],E[1]));this.JSC$17371_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.l.isChannelOpened=function(){return!!this.JSC$17371_channel_&&this.JSC$17371_channel_.getState()==3};
var XWd=function(E){if(E.JSC$17371_channel_){var B=E.JSC$17371_getXsrfToken_(),I=E.JSC$17371_channel_.JSC$17323_extraHeaders_||{};B?I["x-youtube-lounge-xsrf-token"]=B:delete I["x-youtube-lounge-xsrf-token"];E.JSC$17371_channel_.JSC$17323_extraHeaders_=I}},JBT=function(E){if(E.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.i1();
if(!E.enableCachedUpdateAuthorizationHeader_)return UT9(E);E.updateAuthorizationHeaderPromise_===null&&(E.updateAuthorizationHeaderPromise_=UT9(E));return E.updateAuthorizationHeaderPromise_},UT9=function(E){return _.sk(E.getAuthorizationHeader_().then(function(B){kT7(E,B)}).thenCatch(function(){}),function(){E.updateAuthorizationHeaderPromise_=null})},kT7=function(E,B){if(E.JSC$17371_channel_){var I=E.JSC$17371_channel_.JSC$17323_extraHeaders_||{};
B&&Object.keys(B).length>0?I=Object.assign({},I,B):delete I.Authorization;E.JSC$17371_channel_.JSC$17323_extraHeaders_=I}},rBs=function(E){E.getAuthorizationHeaderSync_&&!E.useAsyncBrowserChannelHandler_&&kT7(E,E.getAuthorizationHeaderSync_())};
_.l=Qx.prototype;_.l.setLoungeToken=function(E){(this.defaultQueryParams_.loungeIdToken=E)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17371_channel_){var B=this.JSC$17371_channel_.JSC$17323_extraHeaders_||{};E?B["X-YouTube-LoungeId-Token"]=E:delete B["X-YouTube-LoungeId-Token"];this.JSC$17371_channel_.JSC$17323_extraHeaders_=B}};
_.l.getDeviceId=function(){return this.defaultQueryParams_.id};
_.l.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.l.reconnect=function(){var E=this.reconnectTimer_;E.delay_.fire();E.start()};
_.l.safeReconnect_=function(){var E=this.JSC$17371_channel_,B=0;E.JSC$17323_backChannelRequest_&&B++;E.forwardChannelRequest_&&B++;B==0&&this.connect(this.connectionParams_,this.connectUi_)};var G3=function(E,B){var I=E.basePath;E.supportCors&&(I=E.scheme+"://"+E.domain+E.port+E.basePath);return _.Ur(I+B,{})};
d2.prototype.sendRequest=function(E,B,I,T,e,c,Y){E={format:c?"RAW":"JSON",method:E,context:this,timeout:5E3,withCredentials:!!Y,onSuccess:_.wY(this.JSC$17376_onSuccess_,T,!c),onError:_.wY(this.onError_,e),onTimeout:_.wY(this.JSC$17376_onTimeout_,e)};I&&(E.postParams=I,E.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.iK(B,E)};
d2.prototype.JSC$17376_onSuccess_=function(E,B,I,T){B?E(T):E({text:I.responseText})};
d2.prototype.onError_=function(E,B){E(Error("Bk`"+B.status))};
d2.prototype.JSC$17376_onTimeout_=function(E){E(Error("Ck"))};var sm=function(E,B){return!!B&&(E.id==B||E.uuid==B)},tp7=function(E){return{name:E.name,
screenId:E.id,loungeToken:E.token,dialId:E.uuid,screenIdType:E.idType}},f_L=function(E){return new h9(E)},Vpg=function(E){return Array.isArray(E)?_.yl(E,f_L):[]},xf2=function(E){if(!E)return"null";
var B=E.token?".."+E.token.slice(-6):"-",I=E.uuid?".."+E.uuid.slice(-6):"-";return'{name:"'+E.name+'",id:'+E.id.substr(0,6)+"..,token:"+(B+",uuid:"+I+",idType:"+E.idType+"}")},BYI=function(E){return Array.isArray(E)?"["+_.yl(E,xf2).join(",")+"]":"null"};var Si8="",xz=null;var UU7=function(E,B){_.ms.call(this);var I=this;this.handler=E();this.handler.subscribe("handlerOpened",this.JSC$17383_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(T,e){I.onError(e)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=B};
_.L(UU7,_.ms);_.l=UU7.prototype;_.l.connect=function(E,B,I){this.handler.connect(E,B,I)};
_.l.disconnect=function(E){this.handler.disconnect(E)};
_.l.reconnect=function(){this.handler.reconnect()};
_.l.getDeviceId=function(){return this.handler.getDeviceId()};
_.l.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.l.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.l.JSC$17383_onOpened=function(){this.dispatchEvent("channelOpened");var E=this.handler,B=this.currentScreenId;_.l9("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!E.JSC$17371_channel_.useChunked_,sessionId:E.JSC$17371_channel_.sid_,arrayId:E.JSC$17371_channel_.JSC$17323_lastArrayId_});_.l9("yt-remote-session-screen-id",B);E=OCO();B=nht();_.AD(E,B)||E.push(B);ghm(E);NG9()};
_.l.onClosed=function(){this.dispatchEvent("channelClosed")};
_.l.onMessage=function(E){this.dispatchEvent(new u2m(E))};
_.l.onError=function(E){this.dispatchEvent(new LJO(E?1:0))};
_.l.sendMessage=function(E,B){this.handler.sendMessage(E,B)};
_.l.setLoungeToken=function(E){this.handler.setLoungeToken(E)};
_.l.dispose=function(){this.handler.dispose()};var jOH=function(E,B,I){var T=this;I=I===void 0?function(){return""}:I;
var e=e===void 0?new m$2:e;var c=c===void 0?new _.Ya:c;this.pathPrefix=E;this.defaultQueryParams=B;this.getXsrfToken=I;this.JSC$17386_pubsub=c;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new PTL(function(){var Y;((Y=T.channel)==null?void 0:qH1((new hT2(Y,Y.JSC$17294_channel_)).JSC$17304_channel_.forwardChannelRequestPool_))===0&&T.connect(T.connectionParams,T.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17386_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17386_channelOpenedCounter=new zSI;this.JSC$17386_channelClosedCounter=new mU9;this.JSC$17386_channelMessageReceivedCounter=new dUs;this.JSC$17386_channelErrorCounter=new hS1};
jOH.prototype.connect=function(E,B){E=E===void 0?{}:E;B=B===void 0?0:B;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=E,this.connectUi=B,qS9(this),(E=_.HA("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=E: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 xF(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,FJ9(this))};
var FJ9=function(E){_.vV(E.channel,"w",function(){E.channelState=3;E.reconnectTimer.reset();E.connectionParams=null;E.connectUi=0;for(var B=_.p(E.nonAckedMessagesOnChannelClosed),I=B.next();!I.done;I=B.next())I=I.value,E.channel&&E.channel.send(I);E.nonAckedMessagesOnChannelClosed=[];E.publish("webChannelOpened");E.JSC$17386_channelOpenedCounter.increment("WEB_CHANNEL")});
_.vV(E.channel,"x",function(){E.channelState=0;E.reconnectTimer.isActive()||E.publish("webChannelClosed");var B,I=(B=E.channel)==null?void 0:sng(new hT2(B,B.JSC$17294_channel_));I&&(E.nonAckedMessagesOnChannelClosed=[].concat(_.ad(I)));E.JSC$17386_channelClosedCounter.increment("WEB_CHANNEL")});
_.vV(E.channel,"z",function(B){var I=B.data;I[0]==="gracefulReconnect"?(E.reconnectTimer.start(),E.channel&&E.channel.close()):E.publish("webChannelMessage",new SS8(I[0],I[1]));E.lastStatusCode=B.statusCode;E.JSC$17386_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.vV(E.channel,"y",function(){E.lastStatusCode===401||E.reconnectTimer.start();E.publish("webChannelError");E.JSC$17386_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.l=jOH.prototype;_.l.disconnect=function(E){this.disconnectUi=E===void 0?0:E;this.reconnectTimer.stop();qS9(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.l.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.l.reconnect=function(){var E=this.reconnectTimer;E.delay_.fire();E.start()};
_.l.sendMessage=function(E,B){this.channel&&(qS9(this),E=Object.assign({},{_sc:E},B),this.channel.send(E))};
_.l.setLoungeToken=function(E){E||this.reconnectTimer.stop();E?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=E:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var qS9=function(E){var B=E.getXsrfToken();B?E.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=B:delete E.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.l=jOH.prototype;_.l.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.l.publish=function(E){return this.JSC$17386_pubsub.publish.apply(this.JSC$17386_pubsub,[E].concat(_.ad(_.aG.apply(1,arguments))))};
_.l.subscribe=function(E,B,I){return this.JSC$17386_pubsub.subscribe(E,B,I)};
_.l.unsubscribe=function(E,B,I){return this.JSC$17386_pubsub.unsubscribe(E,B,I)};
_.l.unsubscribeByKey=function(E){return this.JSC$17386_pubsub.unsubscribeByKey(E)};
_.l.dispose=function(){this.JSC$17386_disposed||(this.JSC$17386_disposed=!0,_.bl(this.JSC$17386_pubsub),this.disconnect(),_.bl(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.l.isDisposed=function(){return this.JSC$17386_disposed};var AQH=function(E){_.ms.call(this);this.webChannelService=E();this.webChannelService.subscribe("webChannelOpened",this.JSC$17394_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.L(AQH,_.ms);_.l=AQH.prototype;_.l.connect=function(E,B){this.webChannelService.connect(E,B)};
_.l.disconnect=function(E){this.webChannelService.disconnect(E)};
_.l.reconnect=function(){this.webChannelService.reconnect()};
_.l.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.l.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.l.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.l.JSC$17394_onOpened=function(){this.dispatchEvent("channelOpened")};
_.l.onClosed=function(){this.dispatchEvent("channelClosed")};
_.l.onMessage=function(E){this.dispatchEvent(new u2m(E))};
_.l.onError=function(){this.dispatchEvent(new LJO(this.webChannelService.lastStatusCode===401?1:0))};
_.l.sendMessage=function(E,B){this.webChannelService.sendMessage(E,B)};
_.l.setLoungeToken=function(E){this.webChannelService.setLoungeToken(E)};
_.l.dispose=function(){this.webChannelService.dispose()};var EO8=Date.now(),Om=null,KM9=Array(50),Hv=-1,RSg=!1;_.$U(NY,_.oo);NY.prototype.getScreens=function(){return this.screens};
NY.prototype.contains=function(E){return!!GxT(this.screens,E)};
NY.prototype.get=function(E){return E?ud(this.screens,E):null};
var DTI=function(E,B){var I=E.get(B.uuid)||E.get(B.id);if(I)return E=I.name,I.id=B.id||I.id,I.name=B.name,I.token=B.token,I.uuid=B.uuid||I.uuid,I.name!=E;E.screens.push(B);return!0},KJL=function(E,B){var I=E.screens.length!=B.length;
E.screens=_.ei(E.screens,function(c){return!!GxT(B,c)});
for(var T=B.length,e=0;e<T;e++)I=DTI(E,B[e])||I;return I},Rkm=function(E,B){var I=E.screens.length;
E.screens=_.ei(E.screens,function(T){return!(T||B?!T!=!B?0:T.id==B.id:1)});
return E.screens.length<I};
NY.prototype.info=function(E){nh(this.JSC$17395_logName_,E)};var E87=function(E,B,I,T,e){_.oo.call(this);this.JSC$17398_http_=E;this.pairingCode_=B;this.deviceId_=I;this.friendlyName_=T;this.enableShortLivedLoungeToken_=e;this.pollIndex_=0;this.JSC$17398_xhr_=null;this.JSC$17398_timer_=NaN};
_.L(E87,_.oo);_.l=E87.prototype;_.l.start=function(){!this.JSC$17398_xhr_&&isNaN(this.JSC$17398_timer_)&&this.poll_()};
_.l.stop=function(){this.JSC$17398_xhr_&&(this.JSC$17398_xhr_.abort(),this.JSC$17398_xhr_=null);isNaN(this.JSC$17398_timer_)||(_.lK(this.JSC$17398_timer_),this.JSC$17398_timer_=NaN)};
_.l.disposeInternal=function(){this.stop();_.oo.prototype.disposeInternal.call(this)};
_.l.poll_=function(){this.JSC$17398_timer_=NaN;this.JSC$17398_xhr_=_.iK(G3(this.JSC$17398_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.w1)(this.JSC$17400_onSuccess_,this),onError:(0,_.w1)(this.onError_,this),onTimeout:(0,_.w1)(this.JSC$17400_onTimeout_,this)})};
_.l.JSC$17400_onSuccess_=function(E,B){this.JSC$17398_xhr_=null;E=B.screen||{};E.dialId=this.deviceId_;E.name=this.friendlyName_;B=-1;this.enableShortLivedLoungeToken_&&E.shortLivedLoungeToken&&E.shortLivedLoungeToken.value&&E.shortLivedLoungeToken.refreshIntervalMs&&(E.screenIdType="shortLived",E.loungeToken=E.shortLivedLoungeToken.value,B=E.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new h9(E),B)};
_.l.onError_=function(E){this.JSC$17398_xhr_=null;E.status&&E.status==404?this.pollIndex_>=BBT.length?this.publish("pairingFailed",Error("Dk")):(E=BBT[this.pollIndex_],this.JSC$17398_timer_=_.TR((0,_.w1)(this.poll_,this),E),this.pollIndex_++):this.publish("pairingFailed",Error("Ek`"+E.status))};
_.l.JSC$17400_onTimeout_=function(){this.JSC$17398_xhr_=null;this.publish("pairingFailed",Error("Fk"))};
var BBT=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.$U(S0,NY);_.l=S0.prototype;_.l.start=function(){g2(this)&&this.publish("screenChange");!_.cc("yt-remote-lounge-token-expiration")&&$et(this);_.lK(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.TR((0,_.w1)(this.start,this),1E4)};
_.l.add=function(E,B){g2(this);DTI(this,E);I3s(this,!1);this.publish("screenChange");B(E);E.token||$et(this)};
_.l.remove=function(E,B){var I=g2(this);Rkm(this,E)&&(I3s(this,!1),I=!0);B(E);I&&this.publish("screenChange")};
_.l.updateName=function(E,B,I,T){var e=g2(this),c=this.get(E.id);c?(c.name!=B&&(c.name=B,I3s(this,!1),e=!0),I(E)):T(Error("Gk"));e&&this.publish("screenChange")};
_.l.disposeInternal=function(){_.lK(this.loungeTokenRefreshTimer_);S0.superClass_.disposeInternal.call(this)};
var $et=function(E){if(E.screens.length){var B=_.yl(E.screens,function(T){return T.id}),I=G3(E.JSC$17402_http_,"/pairing/get_lounge_token_batch");
E.JSC$17402_http_.sendRequest("POST",I,{screen_ids:B.join(",")},(0,_.w1)(E.handleLoungeTokens_,E),(0,_.w1)(E.handleLoungeTokenError_,E))}};
S0.prototype.handleLoungeTokens_=function(E){g2(this);var B=this.screens.length;E=E&&E.screens||[];for(var I=E.length,T=0;T<I;++T){var e=E[T],c=this.get(e.screenId);c&&(c.token=e.loungeToken,--B)}I3s(this,!B);B&&nh(this.JSC$17395_logName_,"Missed "+B+" lounge tokens.")};
S0.prototype.handleLoungeTokenError_=function(E){nh(this.JSC$17395_logName_,"Requesting lounge tokens failed: "+E)};
var g2=function(E){if(_.d("deprecate_pair_servlet_enabled"))return KJL(E,[]);var B=Vpg(WMm());B=_.ei(B,function(I){return!I.uuid});
return KJL(E,B)},I3s=function(E,B){rQt(_.yl(E.screens,tp7));
B&&XU2()};var br=function(E,B){_.oo.call(this);this.getScreensToCheck_=B;B=(B=_.cc("yt-remote-online-screen-ids")||"")?B.split(","):[];for(var I={},T=this.getScreensToCheck_(),e=T.length,c=0;c<e;++c){var Y=T[c].id;I[Y]=_.AD(B,Y)}this.screenIdSet_=I;this.JSC$17405_http_=E;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;TBL("Initialized with "+(0,_.xT)(this.screenIdSet_))};
_.L(br,_.oo);br.prototype.isOnline=function(E){return!!this.screenIdSet_[E]};
br.prototype.start=function(){var E=parseInt(_.cc("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.Bf()-144E5<E?0:E)?eEI(this):(this.fastCheckEndTime_=_.Bf()+3E5,_.l9("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
br.prototype.isEmpty=function(){return _.a_.isEmpty(this.screenIdSet_)};
br.prototype.update=function(){TBL("Updating availability on schedule.");var E=this.getScreensToCheck_(),B=_.a_.filter(this.screenIdSet_,function(I,T){return I&&!!ud(E,T)},this);
l3I(this,B)};
var com=function(E,B,I){var T=G3(E.JSC$17405_http_,"/pairing/get_screen_availability");E.JSC$17405_http_.sendRequest("POST",T,{lounge_token:B.token},(0,_.w1)(function(e){e=e.screens||[];for(var c=e.length,Y=0;Y<c;++Y)if(e[Y].loungeToken==B.token){I(e[Y].status=="online");return}I(!1)},E),(0,_.w1)(function(){I(!1)},E))};
br.prototype.disposeInternal=function(){_.lK(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.oo.prototype.disposeInternal.call(this)};
var l3I=function(E,B){a:if(_.a_.getCount(B)!=_.a_.getCount(E.screenIdSet_))var I=!1;else{I=_.a_.getKeys(B);for(var T=I.length,e=0;e<T;++e)if(!E.screenIdSet_[I[e]]){I=!1;break a}I=!0}I||(TBL("Updated online screens: "+(0,_.xT)(E.screenIdSet_)),E.screenIdSet_=B,E.publish("screenChange"));i_7(E)},eEI=function(E){isNaN(E.refreshTimer_)||_.lK(E.refreshTimer_);
E.refreshTimer_=_.TR((0,_.w1)(E.requestScreenAvailability_,E),E.fastCheckEndTime_>0&&E.fastCheckEndTime_<_.Bf()?2E4:1E4)};
br.prototype.requestScreenAvailability_=function(){_.lK(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var E=pxI(this);if(_.a_.getCount(E)){var B=G3(this.JSC$17405_http_,"/pairing/get_screen_availability"),I={lounge_token:_.a_.getKeys(E).join(",")};this.currentRequest_=this.JSC$17405_http_.sendRequest("POST",B,I,(0,_.w1)(this.onScreenAvailability_,this,E),(0,_.w1)(this.onScreenAvailabilityError_,this))}else l3I(this,{}),eEI(this)};
br.prototype.onScreenAvailability_=function(E,B){this.currentRequest_=null;var I=_.a_.getKeys(pxI(this));if(_.iD(I,_.a_.getKeys(E))){B=B.screens||[];I={};for(var T=B.length,e=0;e<T;++e)I[E[B[e].loungeToken]]=B[e].status=="online";l3I(this,I);eEI(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
br.prototype.onScreenAvailabilityError_=function(E){this.warn_("Screen availability failed: "+E);this.currentRequest_=null;eEI(this)};
var TBL=function(E){nh("OnlineScreenService",E)};
br.prototype.warn_=function(E){nh("OnlineScreenService",E)};
var pxI=function(E){var B={};_.bW(E.getScreensToCheck_(),function(I){I.token?B[I.token]=I.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return B},i_7=function(E){E=_.a_.getKeys(_.a_.filter(E.screenIdSet_,function(B){return B}));
E.sort(_.lD);E.length?_.l9("yt-remote-online-screen-ids",E.join(","),60):_.i9("yt-remote-online-screen-ids")};_.$U(J9,NY);_.l=J9.prototype;_.l.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.l.add=function(E,B,I){this.localScreenService_.add(E,B,I)};
_.l.remove=function(E,B,I){this.localScreenService_.remove(E,B,I);this.onlineScreenService_.update()};
_.l.updateName=function(E,B,I,T){this.localScreenService_.contains(E)?this.localScreenService_.updateName(E,B,I,T):(E="Updating name of unknown screen: "+E.name,nh(this.JSC$17395_logName_,E),T(Error(E)))};
_.l.getScreens=function(E){return E?this.screens:Kzg(this.screens,_.ei(this.automaticScreens_,function(B){return!this.contains(B)},this))};
_.l.JSC$17410_getOnlineScreens=function(){return _.ei(this.getScreens(!0),function(E){return this.onlineScreenService_.isOnline(E.id)},this)};
var a39=function(E,B,I,T,e,c){E.info("getAutomaticScreenByIds "+I+" / "+B);I||(I=E.deviceToScreenId_[B]);var Y=E.getScreens(),v=I?ud(Y,I):null;I&&(E.disableAutomaticScreenCache_||v)||(v=ud(Y,B));if(v){v.uuid=B;var y=om(E,v);com(E.onlineScreenService_,y,function(Z){e(Z?y:null)})}else I?YA1(E,I,(0,_.w1)(function(Z){var P=om(this,new h9({name:T,
screenId:I,loungeToken:Z,dialId:B||""}));com(this.onlineScreenService_,P,function(z){e(z?P:null)})},E),c):e(null)};
J9.prototype.JSC$17410_getScreenByPollingPairingCode=function(E,B,I,T,e,c){var Y=this;this.info("getDialScreenByPairingCode "+E+" / "+B);var v=new E87(this.JSC$17408_http_,E,B,I,T);v.subscribe("pairingComplete",function(y,Z){_.bl(v);e(om(Y,y),Z)});
v.subscribe("pairingFailed",function(y){_.bl(v);c(y)});
v.start();return(0,_.w1)(v.stop,v)};
var v8m=function(E,B){for(var I=E.screens.length,T=0;T<I;++T)if(E.screens[T].name==B)return E.screens[T];return null};
J9.prototype.JSC$17410_getScreenByPairingCode=function(E,B,I,T){_.iK(G3(this.JSC$17408_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:E},timeout:5E3,onSuccess:(0,_.w1)(function(e,c){e=new h9(c.screen||{});if(!e.name||v8m(this,e.name)){a:{c=e.name;for(var Y=2,v=B(c,Y);v8m(this,v);){Y++;if(Y>20)break a;v=B(c,Y)}c=v}e.name=c}I(om(this,e))},this),
onError:(0,_.w1)(function(e){T(Error("Hk`"+e.status))},this),
onTimeout:(0,_.w1)(function(){T(Error("Ik"))},this)})};
var yoT=function(E,B,I){com(E.onlineScreenService_,B,I)};
J9.prototype.disposeInternal=function(){_.bl(this.localScreenService_);_.bl(this.onlineScreenService_);J9.superClass_.disposeInternal.call(this)};
var YA1=function(E,B,I,T){E.info("requestLoungeToken_ for "+B);var e={postParams:{screen_ids:B},method:"POST",context:E,onSuccess:function(c,Y){c=Y&&Y.screens||[];c[0]&&c[0].screenId==B?I(c[0].loungeToken):T(Error("Jk"))},
onError:function(){T(Error("Kk"))}};
_.iK(G3(E.JSC$17408_http_,"/pairing/get_lounge_token_batch"),e)},Cf1=function(E){E.screens=E.localScreenService_.getScreens();
for(var B=_.a_.transpose(E.deviceToScreenId_),I=E.screens.length,T=0;T<I;++T){var e=E.screens[T];e.uuid=B[e.id]||""}E.info("Updated manual screens: "+BYI(E.screens))};
J9.prototype.handleScreenChange_=function(){Cf1(this);this.publish("screenChange");this.onlineScreenService_.update()};
var $fH=function(E){wxm(E);E.localScreenService_=new S0(E.JSC$17408_http_);E.localScreenService_.subscribe("screenChange",(0,_.w1)(E.handleScreenChange_,E));Cf1(E);E.disableAutomaticScreenCache_||(E.automaticScreens_=Vpg(_.cc("yt-remote-automatic-screen-cache")||[]));wxm(E);E.info("Initializing automatic screens: "+BYI(E.automaticScreens_));E.onlineScreenService_=new br(E.JSC$17408_http_,(0,_.w1)(E.getScreens,E,!0));E.onlineScreenService_.subscribe("screenChange",(0,_.w1)(function(){this.publish("onlineScreenChange")},
E))},om=function(E,B){var I=E.get(B.id);
I?(I.uuid=B.uuid,B=I):((I=ud(E.automaticScreens_,B.uuid))?(I.id=B.id,I.token=B.token,B=I):E.automaticScreens_.push(B),E.disableAutomaticScreenCache_||Z_g(E));wxm(E);E.deviceToScreenId_[B.uuid]=B.id;_.l9("yt-remote-device-id-map",E.deviceToScreenId_,31536E3);return B},Z_g=function(E){E=_.ei(E.automaticScreens_,function(B){return B.idType!="shortLived"});
_.l9("yt-remote-automatic-screen-cache",_.yl(E,tp7))},wxm=function(E){E.deviceToScreenId_=_.cc("yt-remote-device-id-map")||{}};
J9.prototype.dispose=J9.prototype.dispose;_.$U(Wv,_.oo);var Am=function(E,B){E.screen_=B;E.publish("sessionScreen",E.screen_)},PfI=function(E,B){E.screen_&&(E.screen_.token=B,om(E.JSC$17412_screenService_,E.screen_));
E.publish("sessionScreen",E.screen_)};
Wv.prototype.onSessionStopped=function(E){this.isDisposed()||(E&&(jK(this,""+E),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Wv.prototype.info=function(E){nh(this.JSC$17412_logName_,E)};
var jK=function(E,B){nh(E.JSC$17412_logName_,B)};
Wv.prototype.JSC$17414_getCastSession=function(){return null};
Wv.prototype.setDisplayStatus=function(E){var B=this.receiver_;E?(B.displayStatus=new chrome.cast.ReceiverDisplayStatus(E,[]),B.displayStatus.showStop=!0):B.displayStatus=null;chrome.cast.setReceiverDisplayStatus(B,(0,_.w1)(function(){this.info("Updated receiver status for "+B.friendlyName+": "+E)},this),(0,_.w1)(function(){jK(this,"Failed to update receiver status for: "+B.friendlyName)},this))};
Wv.prototype.disposeInternal=function(){this.setDisplayStatus("");Wv.superClass_.disposeInternal.call(this)};var UE=function(E,B,I){Wv.call(this,E,B,"CastSession");var T=this;this.config_=I;this.JSC$17417_session_=null;this.JSC$17417_boundSessionUpdate_=(0,_.w1)(this.JSC$17419_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.w1)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.TR(function(){zE7(T,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17417_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17417_isInitLoungeToken_=!1;this.JSC$17417_lastLoungeTokenRefreshError_="unknown"};
_.L(UE,Wv);_.l=UE.prototype;
_.l.setCastSession=function(E){if(this.JSC$17417_session_){if(this.JSC$17417_session_==E)return;jK(this,"Overriding cast session with new session object");met(this);this.JSC$17417_isInitLoungeToken_=!1;this.JSC$17417_lastLoungeTokenRefreshError_="unknown";this.JSC$17417_session_.removeUpdateListener(this.JSC$17417_boundSessionUpdate_);this.JSC$17417_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17417_session_=E;this.JSC$17417_session_.addUpdateListener(this.JSC$17417_boundSessionUpdate_);this.JSC$17417_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);Q5s(this,"getMdxSessionStatus")};
_.l.launchWithParams=function(E){this.info("launchWithParams no-op for Cast: "+(0,_.xT)(E))};
_.l.stop=function(){if(this.JSC$17417_session_)this.JSC$17417_session_.stop((0,_.w1)(function(){this.onSessionStopped()},this),(0,_.w1)(function(){this.onSessionStopped(Error("Lk"))},this));
else this.onSessionStopped(Error("Mk"))};
_.l.setDisplayStatus=function(){};
_.l.disposeInternal=function(){this.info("disposeInternal");met(this);this.JSC$17417_session_&&(this.JSC$17417_session_.removeUpdateListener(this.JSC$17417_boundSessionUpdate_),this.JSC$17417_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17417_session_=null;Wv.prototype.disposeInternal.call(this)};
var hE2=function(E,B){_.lK(E.getLoungeTokenTimeoutKey_);E.getLoungeTokenTimeoutKey_=0;B==0?deL(E):E.getLoungeTokenTimeoutKey_=_.TR(function(){deL(E)},B)},deL=function(E){Q5s(E,"getLoungeToken");
_.lK(E.onLoungeTokenTimeoutKey_);E.onLoungeTokenTimeoutKey_=_.TR(function(){s5t(E,null)},3E4)},Q5s=function(E,B){E.info("sendYoutubeMessage_: "+B+" "+(0,_.xT)(void 0));
var I={};I.type=B;E.JSC$17417_session_?E.JSC$17417_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",I,function(){},(0,_.w1)(function(){jK(this,"Failed to send message: "+B+".")},E)):jK(E,"Sending yt message without session: "+(0,_.xT)(I))};
UE.prototype.onYoutubeMessage_=function(E,B){if(!this.isDisposed())if(B)if(B=(0,_.uT)(B),_.B6(B))switch(E=""+B.type,B=B.data||{},this.info("onYoutubeMessage_: "+E+" "+(0,_.xT)(B)),E){case "mdxSessionStatus":zE7(this,B);break;case "loungeToken":s5t(this,B);break;default:jK(this,"Unknown youtube message: "+E)}else jK(this,"Unable to parse message.");else jK(this,"No data in message.")};
var uAT=function(E,B){if(B)E.info("onConnectedScreenId_: Received screenId: "+B),E.screen_&&E.screen_.id==B||E.getScreen_(B,function(I){Am(E,I)},function(){return E.onSessionStopped()},5);
else E.onSessionStopped(Error("Nk"))},xes=function(E,B,I){E.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(B));
var T=new h9(B);LWI(E,T,function(e){e?(E.JSC$17417_isInitLoungeToken_=!0,om(E.JSC$17412_screenService_,T),Am(E,T),E.JSC$17417_lastLoungeTokenRefreshError_="unknown",hE2(E,I)):(_.SI(Error("Ok`"+JSON.stringify(B))),E.onSessionStopped())},5)},zE7=function(E,B){_.lK(E.sessionStatusTimeoutKey_);
E.sessionStatusTimeoutKey_=0;if(B)E.config_.enableCastLoungeToken&&B.loungeToken?B.deviceId?E.screen_&&E.screen_.uuid==B.deviceId||(B.loungeTokenRefreshIntervalMs?xes(E,{name:E.receiver_.friendlyName,screenId:B.screenId,loungeToken:B.loungeToken,dialId:B.deviceId,screenIdType:"shortLived"},B.loungeTokenRefreshIntervalMs):(_.SI(Error("Qk`"+JSON.stringify(B))),uAT(E,B.screenId))):(_.SI(Error("Pk`"+JSON.stringify(B))),uAT(E,B.screenId)):uAT(E,B.screenId);else E.onSessionStopped(Error("Nk"))},s5t=function(E,
B){_.lK(E.onLoungeTokenTimeoutKey_);
E.onLoungeTokenTimeoutKey_=0;var I=null;if(B)if(B.loungeToken){var T;((T=E.screen_)==null?void 0:T.token)==B.loungeToken&&(I="staleLoungeToken")}else I="missingLoungeToken";else I="noLoungeTokenResponse";I?(E.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(B)+", error: "+I)),E.JSC$17417_lastLoungeTokenRefreshError_=I,hE2(E,3E4)):(PfI(E,B.loungeToken),E.JSC$17417_isInitLoungeToken_=!1,E.JSC$17417_lastLoungeTokenRefreshError_="unknown",hE2(E,B.loungeTokenRefreshIntervalMs))};
UE.prototype.getScreen_=function(E,B,I,T){_.lK(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;a39(this.JSC$17412_screenService_,this.receiver_.label,E,this.receiver_.friendlyName,(0,_.w1)(function(e){e?B(e):T>=0?(jK(this,"Screen "+E+" appears to be offline. "+T+" retries left."),this.getScreenTimeoutKey_=_.TR((0,_.w1)(this.getScreen_,this,E,B,I,T-1),300)):I(Error("Rk"))},this),I)};
var LWI=function(E,B,I,T){_.lK(E.JSC$17417_checkScreenAvailabilityTimeoutKey_);E.JSC$17417_checkScreenAvailabilityTimeoutKey_=0;yoT(E.JSC$17412_screenService_,B,function(e){e||T<0?I(e):E.JSC$17417_checkScreenAvailabilityTimeoutKey_=_.TR(function(){LWI(E,B,I,T-1)},300)})};
UE.prototype.JSC$17414_getCastSession=function(){return this.JSC$17417_session_};
UE.prototype.JSC$17419_onSessionUpdate_=function(E){this.isDisposed()||E||(jK(this,"Cast session died."),this.onSessionStopped())};
var met=function(E){_.lK(E.getScreenTimeoutKey_);E.getScreenTimeoutKey_=0;_.lK(E.JSC$17417_checkScreenAvailabilityTimeoutKey_);E.JSC$17417_checkScreenAvailabilityTimeoutKey_=0;_.lK(E.sessionStatusTimeoutKey_);E.sessionStatusTimeoutKey_=0;_.lK(E.onLoungeTokenTimeoutKey_);E.onLoungeTokenTimeoutKey_=0;_.lK(E.getLoungeTokenTimeoutKey_);E.getLoungeTokenTimeoutKey_=0};var kF=function(E,B,I,T){Wv.call(this,E,B,"DialSession");this.config_=T;this.JSC$17421_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17421_theme_=I;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17421_deferredLaunchDeadlineTimer_=NaN;this.JSC$17421_boundSessionUpdate_=(0,_.w1)(this.JSC$17423_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17421_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17421_isInitLoungeToken_=!1;this.JSC$17421_lastLoungeTokenRefreshError_="unknown"};
_.L(kF,Wv);kF.prototype.setCastSession=function(E){this.JSC$17421_session_=E;this.JSC$17421_session_.addUpdateListener(this.JSC$17421_boundSessionUpdate_)};
kF.prototype.launchWithParams=function(E){this.connectData_=E;this.deferredLaunch_()};
kF.prototype.stop=function(){Gst(this);if(this.JSC$17421_session_)this.JSC$17421_session_.stop((0,_.w1)(this.onSessionStopped,this,null),(0,_.w1)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
kF.prototype.disposeInternal=function(){Gst(this);this.JSC$17421_session_&&this.JSC$17421_session_.removeUpdateListener(this.JSC$17421_boundSessionUpdate_);this.JSC$17421_session_=null;Wv.prototype.disposeInternal.call(this)};
var O_s=function(E){var B;return!!(E.config_.enableDialLoungeToken&&((B=E.JSC$17421_session_)==null?0:B.getDialAppInfo))},n8I=function(E){E.cancelPolling_=E.JSC$17412_screenService_.JSC$17410_getScreenByPollingPairingCode(E.reversePairingCode_,E.receiver_.label,E.receiver_.friendlyName,O_s(E),function(B,I){E.cancelPolling_=function(){};
E.JSC$17421_isInitLoungeToken_=!0;Am(E,B);B.idType=="shortLived"&&I>0&&tm(E,I)},function(B){E.cancelPolling_=function(){};
E.onSessionStopped(B)})};
kF.prototype.JSC$17423_onSessionUpdate_=function(E){this.isDisposed()||E||(jK(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var Mug=function(E){var B={};B.pairingCode=E.reversePairingCode_;B.theme=E.JSC$17421_theme_;oh7()&&(B.env_useStageMdx=1);return _.pF(B)},H_t=function(E){return new Promise(function(B){E.reversePairingCode_=LM9();
if(E.connectData_){var I=new chrome.cast.DialLaunchResponse(!0,Mug(E));B(I);n8I(E)}else E.deferredLaunch_=function(){_.lK(E.JSC$17421_deferredLaunchDeadlineTimer_);E.deferredLaunch_=function(){};
E.JSC$17421_deferredLaunchDeadlineTimer_=NaN;var T=new chrome.cast.DialLaunchResponse(!0,Mug(E));B(T);n8I(E)},E.JSC$17421_deferredLaunchDeadlineTimer_=_.TR(function(){E.deferredLaunch_()},100)})},g8t=function(E,B,I){E.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(B));
var T=new h9(B);return(new Promise(function(e){NB8(E,T,function(c){c?(E.JSC$17421_isInitLoungeToken_=!0,om(E.JSC$17412_screenService_,T),Am(E,T),tm(E,I)):_.SI(Error("Tk`"+JSON.stringify(B)));e(c)},5)})).then(function(e){return e?new chrome.cast.DialLaunchResponse(!1):H_t(E)})},SA1=function(E,B){var I=E.launchData_.receiver.label,T=E.receiver_.friendlyName;
return(new Promise(function(e){a39(E.JSC$17412_screenService_,I,B,T,function(c){c&&c.token&&Am(E,c);e(c)},function(c){jK(E,"Failed to get DIAL screen: "+c);
e(null)})})).then(function(e){return e&&e.token?new chrome.cast.DialLaunchResponse(!1):H_t(E)})},NB8=function(E,B,I,T){_.lK(E.JSC$17421_checkScreenAvailabilityTimeoutKey_);
E.JSC$17421_checkScreenAvailabilityTimeoutKey_=0;yoT(E.JSC$17412_screenService_,B,function(e){e||T<0?I(e):E.JSC$17421_checkScreenAvailabilityTimeoutKey_=_.TR(function(){NB8(E,B,I,T-1)},300)})},tm=function(E,B){E.info("getDialAppInfoWithTimeout_ "+B);
O_s(E)&&(_.lK(E.getDialAppInfoTimeoutKey_),E.getDialAppInfoTimeoutKey_=0,B==0?Jo1(E):E.getDialAppInfoTimeoutKey_=_.TR(function(){Jo1(E)},B))},Jo1=function(E){O_s(E)&&E.JSC$17421_session_.getDialAppInfo(function(B){E.info("getDialAppInfo dialLaunchData: "+JSON.stringify(B));
B=B.extraData||{};var I=null;if(B.loungeToken){var T;((T=E.screen_)==null?void 0:T.token)==B.loungeToken&&(I="staleLoungeToken")}else I="missingLoungeToken";I?(E.JSC$17421_lastLoungeTokenRefreshError_=I,tm(E,3E4)):(E.JSC$17421_isInitLoungeToken_=!1,E.JSC$17421_lastLoungeTokenRefreshError_="unknown",PfI(E,B.loungeToken),tm(E,B.loungeTokenRefreshIntervalMs))},function(B){E.info("getDialAppInfo error: "+B);
E.JSC$17421_lastLoungeTokenRefreshError_="noLoungeTokenResponse";tm(E,3E4)})},Gst=function(E){_.lK(E.JSC$17421_checkScreenAvailabilityTimeoutKey_);
E.JSC$17421_checkScreenAvailabilityTimeoutKey_=0;_.lK(E.getDialAppInfoTimeoutKey_);E.getDialAppInfoTimeoutKey_=0;E.cancelPolling_();E.cancelPolling_=function(){};
_.lK(E.JSC$17421_deferredLaunchDeadlineTimer_)};var fu=function(E,B){Wv.call(this,E,B,"ManualSession");this.JSC$17425_deferredLaunchDeadlineTimer_=_.TR((0,_.w1)(this.launchWithParams,this,null),150)};
_.L(fu,Wv);fu.prototype.stop=function(){this.onSessionStopped()};
fu.prototype.setCastSession=function(){};
fu.prototype.launchWithParams=function(){_.lK(this.JSC$17425_deferredLaunchDeadlineTimer_);this.JSC$17425_deferredLaunchDeadlineTimer_=NaN;var E=ud(this.JSC$17412_screenService_.getScreens(),this.receiver_.label);if(E)Am(this,E);else this.onSessionStopped(Error("Uk"))};
fu.prototype.disposeInternal=function(){_.lK(this.JSC$17425_deferredLaunchDeadlineTimer_);this.JSC$17425_deferredLaunchDeadlineTimer_=NaN;Wv.prototype.disposeInternal.call(this)};var oV=function(E,B){_.oo.call(this);this.config_=B;this.JSC$17428_screenService_=E;this.JSC$17428_appId_=B.appId||"233637DE";this.JSC$17428_theme_=B.theme||"cl";this.disableDial_=B.disableCastApi||!1;this.forceMirroring_=B.forceMirroring||!1;this.JSC$17428_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.w1)(this.onReceiverAction_,this)};
_.L(oV,_.oo);
oV.prototype.init=function(E,B){chrome.cast.timeout.requestSession=3E4;var I=new chrome.cast.SessionRequest(this.JSC$17428_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.d("desktop_enable_cast_connect")&&(I.androidReceiverCompatible=!0);this.disableDial_||(I.dialRequest=new chrome.cast.DialRequest("YouTube"));var T=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;E=E||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var e=(0,_.w1)(this.onReceiverUpdated_,
this);I=new chrome.cast.ApiConfig(I,(0,_.w1)(this.onSessionEstablished_,this),e,T,E);I.customDialLaunchCallback=(0,_.w1)(this.onDialLaunchRequested_,this);chrome.cast.initialize(I,(0,_.w1)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),qiL(),this.JSC$17428_screenService_.subscribe("onlineScreenChange",(0,_.w1)(this.JSC$17430_onScreenChange_,this)),this.customReceivers_=WWs(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.w1)(function(c){this.warn_("Failed to set initial custom receivers: "+(0,_.xT)(c))},this)),this.publish("yt-remote-cast2-availability-change",Vq(this)),B(!0))},this),(0,_.w1)(function(c){this.warn_("Failed to initialize API: "+(0,_.xT)(c));
B(!1)},this))};
oV.prototype.setConnectedScreenStatus=function(E,B){q4("Setting connected screen ID: "+E+" -> "+B);if(this.JSC$17428_session_){var I=this.JSC$17428_session_.screen_;if(!E||I&&I.id!=E)q4("Unsetting old screen status: "+this.JSC$17428_session_.receiver_.friendlyName),Fm(this,null)}if(E&&B){if(!this.JSC$17428_session_){E=ud(this.JSC$17428_screenService_.getScreens(),E);if(!E){q4("setConnectedScreenStatus: Unknown screen.");return}if(E.idType=="shortLived"){q4("setConnectedScreenStatus: Screen with id type to be short lived.");
return}I=XxT(this,E);I||(q4("setConnectedScreenStatus: Connected receiver not custom..."),I=new chrome.cast.Receiver(E.uuid?E.uuid:E.id,E.name),I.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(I),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.w1)(function(T){this.warn_("Failed to set initial custom receivers: "+(0,_.xT)(T))},this)));
q4("setConnectedScreenStatus: new active receiver: "+I.friendlyName);Fm(this,new fu(this.JSC$17428_screenService_,I),!0)}this.JSC$17428_session_.setDisplayStatus(B)}else q4("setConnectedScreenStatus: no screen.")};
var XxT=function(E,B){return B?_.Sd(E.customReceivers_,function(I){return sm(B,I.label)},E):null};
oV.prototype.setLaunchParams=function(E){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17428_session_?this.JSC$17428_session_.launchWithParams(E):this.warn_("Setting connection data without a session")};
oV.prototype.JSC$17430_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17428_session_?(this.JSC$17428_session_.stop(),Fm(this,null)):q4("Stopping non-existing session")};
oV.prototype.requestSession=function(){chrome.cast.requestSession((0,_.w1)(this.onSessionEstablished_,this),(0,_.w1)(this.onSessionRequestFailed_,this))};
oV.prototype.disposeInternal=function(){this.JSC$17428_screenService_.unsubscribe("onlineScreenChange",(0,_.w1)(this.JSC$17430_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.f4(_.WA("yt.mdx.remote.debug.handlers_")||[],tcH);_.bl(this.JSC$17428_session_);_.oo.prototype.disposeInternal.call(this)};
var q4=function(E){nh("Controller",E)};
oV.prototype.warn_=function(E){nh("Controller",E)};
var tcH=function(E){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(E)},Vq=function(E){return E.hasCastReceiver_||!!E.customReceivers_.length||!!E.JSC$17428_session_},Fm=function(E,B,I){B!=E.JSC$17428_session_&&(_.bl(E.JSC$17428_session_),(E.JSC$17428_session_=B)?(I?E.publish("yt-remote-cast2-receiver-resumed",B.receiver_):E.publish("yt-remote-cast2-receiver-selected",B.receiver_),B.subscribe("sessionScreen",(0,_.w1)(E.onSessionScreen_,E,B)),B.subscribe("sessionFailed",
function(){return ros(E,B)}),B.screen_?E.publish("yt-remote-cast2-session-change",B.screen_):I&&E.JSC$17428_session_.launchWithParams(null)):E.publish("yt-remote-cast2-session-change",null))},ros=function(E,B){E.JSC$17428_session_==B&&E.publish("yt-remote-cast2-session-failed")};
_.l=oV.prototype;_.l.onSessionScreen_=function(E,B){this.JSC$17428_session_==E&&(B||Fm(this,null),this.publish("yt-remote-cast2-session-change",B))};
_.l.onReceiverAction_=function(E,B){if(!this.isDisposed())if(E)switch(E.friendlyName=chrome.cast.unescape(E.friendlyName),q4("onReceiverAction_ "+E.label+" / "+E.friendlyName+"-- "+B),B){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17428_session_)if(this.JSC$17428_session_.receiver_.label!=E.label)q4("onReceiverAction_: Stopping active receiver: "+this.JSC$17428_session_.receiver_.friendlyName),this.JSC$17428_session_.stop();else{q4("onReceiverAction_: Casting to active receiver.");this.JSC$17428_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17428_session_.screen_);break}switch(E.receiverType){case chrome.cast.ReceiverType.CUSTOM:Fm(this,new fu(this.JSC$17428_screenService_,E));break;case chrome.cast.ReceiverType.DIAL:Fm(this,new kF(this.JSC$17428_screenService_,E,this.JSC$17428_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Fm(this,new UE(this.JSC$17428_screenService_,E,this.config_));break;default:this.warn_("Unknown receiver type: "+E.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17428_session_&&
this.JSC$17428_session_.receiver_.label==E.label?this.JSC$17428_session_.stop():this.warn_("Stopping receiver w/o session: "+E.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.l.onDialLaunchRequested_=function(E){if(this.isDisposed())return Promise.reject(Error("Vk"));var B=E.receiver;B.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+B.friendlyName),B.receiverType=chrome.cast.ReceiverType.DIAL);var I=this.JSC$17428_session_?this.JSC$17428_session_.receiver_:null;if(!I||I.label!=B.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+B.friendlyName),Promise.reject(Error("Wk"));if(I&&I.label==B.label&&I.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17428_session_.screen_)return q4("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17428_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+I.receiverType+'" to "dial" for '+B.friendlyName);Fm(this,new kF(this.JSC$17428_screenService_,B,this.JSC$17428_theme_,this.config_))}B=this.JSC$17428_session_;B.launchData_=E;B.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(E=B.launchData_.extraData||{},I=E.screenId||null,O_s(B)&&E.loungeToken?E.loungeTokenRefreshIntervalMs?E=g8t(B,{name:B.receiver_.friendlyName,screenId:E.screenId,loungeToken:E.loungeToken,dialId:B.launchData_.receiver.label,screenIdType:"shortLived"},E.loungeTokenRefreshIntervalMs):(_.SI(Error("Sk`"+JSON.stringify(E))),E=SA1(B,I)):E=SA1(B,I)):E=H_t(B);return E};
_.l.onSessionEstablished_=function(E){var B=this;if(!this.isDisposed()&&!this.forceMirroring_){q4("New cast session ID: "+E.sessionId);var I=E.receiver;if(I.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17428_session_)if(I.receiverType==chrome.cast.ReceiverType.CAST)q4("Got resumed cast session before resumed mdx connection."),I.friendlyName=chrome.cast.unescape(I.friendlyName),Fm(this,new UE(this.JSC$17428_screenService_,I,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var T=this.JSC$17428_session_.receiver_,e=ud(this.JSC$17428_screenService_.getScreens(),T.label);e&&sm(e,I.label)&&T.receiverType!=chrome.cast.ReceiverType.CAST&&I.receiverType==chrome.cast.ReceiverType.CAST&&(q4("onSessionEstablished_: manual to cast session change "+I.friendlyName),_.bl(this.JSC$17428_session_),this.JSC$17428_session_=new UE(this.JSC$17428_screenService_,I,this.config_),this.JSC$17428_session_.subscribe("sessionScreen",(0,_.w1)(this.onSessionScreen_,this,this.JSC$17428_session_)),
this.JSC$17428_session_.subscribe("sessionFailed",function(){return ros(B,B.JSC$17428_session_)}),this.JSC$17428_session_.launchWithParams(null));
this.JSC$17428_session_.setCastSession(E)}}};
_.l.JSC$17430_getCastSession=function(){return this.JSC$17428_session_?this.JSC$17428_session_.JSC$17414_getCastSession():null};
_.l.onSessionRequestFailed_=function(E){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.xT)(E)),E.code!=chrome.cast.ErrorCode.CANCEL&&Fm(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.l.onReceiverUpdated_=function(E){q4("Receiver availability updated: "+E);if(!this.isDisposed()){var B=Vq(this);this.hasCastReceiver_=E==chrome.cast.ReceiverAvailability.AVAILABLE;Vq(this)!=B&&this.publish("yt-remote-cast2-availability-change",Vq(this))}};
var WWs=function(E){var B=E.JSC$17428_screenService_.JSC$17410_getOnlineScreens(),I=E.JSC$17428_session_&&E.JSC$17428_session_.receiver_;E=_.yl(B,function(T){I&&sm(T,I.label)&&(I=null);var e=T.uuid?T.uuid:T.id,c=XxT(this,T);c?(c.label=e,c.friendlyName=T.name):(c=new chrome.cast.Receiver(e,T.name),c.receiverType=chrome.cast.ReceiverType.CUSTOM);return c},E);
I&&(I.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(I=new chrome.cast.Receiver(I.label,I.friendlyName),I.receiverType=chrome.cast.ReceiverType.CUSTOM),E.push(I));return E};
oV.prototype.JSC$17430_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=WWs(this),q4("Updating custom receivers: "+(0,_.xT)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.w1)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Vq(this)))};
oV.prototype.setLaunchParams=oV.prototype.setLaunchParams;oV.prototype.setConnectedScreenStatus=oV.prototype.setConnectedScreenStatus;oV.prototype.stopSession=oV.prototype.JSC$17430_stopSession;oV.prototype.getCastSession=oV.prototype.JSC$17430_getCastSession;oV.prototype.requestSession=oV.prototype.requestSession;oV.prototype.init=oV.prototype.init;oV.prototype.dispose=oV.prototype.dispose;var mf2=[];var b_g=function(E){E.audioTrackId=null;E.trackData=null;E.playerState=-1;E.hasPrevious=!1;E.hasNext=!1;E.playerTime_=0;E.playerTimeAt_=_.Bf();E.seekableStart_=0;E.seekableEnd_=0;E.duration_=0;E.loadedTime=0;E.liveIngestionTime_=NaN;E.isLive_=!1};
_.l=A9.prototype;
_.l.reset=function(E){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;E&&(this.index=E.index,this.listId=E.listId,this.videoId=E.videoId,this.playerState=E.playerState,this.volume=E.volume,this.muted=E.muted,this.audioTrackId=E.audioTrackId,this.trackData=E.trackData,this.hasPrevious=E.hasPrevious,this.hasNext=E.hasNext,this.playerTime_=E.playerTime,this.playerTimeAt_=E.playerTimeAt,this.seekableStart_=E.seekableStart,this.seekableEnd_=E.seekableEnd,this.duration_=E.duration,this.loadedTime=
E.loadedTime,this.liveIngestionTime_=E.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.l.stopPlayer=function(){this.index=-1;this.videoId="";b_g(this)};
_.l.isPlaying=function(){return this.playerState==1};
_.l.isBuffering=function(){return this.playerState==3};
_.l.isAdPlaying=function(){return this.playerState==1081};
var DE=function(E,B){E.playerTime_=B;E.playerTimeAt_=_.Bf()},o8L=function(E){switch(E.playerState){case 1:case 1081:return(_.Bf()-E.playerTimeAt_)/1E3+E.playerTime_;
case -1E3:return 0}return E.playerTime_};
A9.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.Bf()-this.playerTimeAt_)/1E3:0):this.duration_};
var AoT=function(E,B,I){var T=E.videoId;E.videoId=B;E.index=I;B!=T&&b_g(E)},j5I=function(E){var B={};
B.index=E.index;B.listId=E.listId;B.videoId=E.videoId;B.playerState=E.playerState;B.volume=E.volume;B.muted=E.muted;B.audioTrackId=E.audioTrackId;B.trackData=_.a_.unsafeClone(E.trackData);B.hasPrevious=E.hasPrevious;B.hasNext=E.hasNext;B.playerTime=E.playerTime_;B.playerTimeAt=E.playerTimeAt_;B.seekableStart=E.seekableStart_;B.seekableEnd=E.seekableEnd_;B.duration=E.duration_;B.loadedTime=E.loadedTime;B.liveIngestionTime=E.liveIngestionTime_;return B};
A9.prototype.clone=function(){return new A9(j5I(this))};var Ku=function(E,B){_.oo.call(this);var I=this;this.state_=0;this.connection_=E;this.contextSubscriptions_=[];this.actionQueue_=new ZC9;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.w1)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.w1)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.w1)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.w1)(this.onCloudviewAvailabilityChange_,this);var T=0;E?(T=E.getProxyState(),
T!=3&&(E.subscribe("proxyStateChange",this.setState_,this),Ued(this))):T=3;T!=0&&(B?this.setState_(T):_.TR(function(){I.setState_(T)},0));
(E=s29())&&ksI(this,E);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.L(Ku,_.oo);Ku.prototype.getState=function(){return this.state_};
Ku.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Ku.prototype.reconnect=function(){this.connection_.reconnect()};
var Rm=function(E){return new A9(E.connection_.getPlayerContextData())};
_.l=Ku.prototype;_.l.play=function(){E2(this)?(this.castMedia_?this.castMedia_.play(null,_.ZU,tu1(this,"play")):BX(this,"play"),f39(this,1,o8L(Rm(this))),this.publish("remotePlayerChange")):$X(this,this.play)};
_.l.pause=function(){E2(this)?(this.castMedia_?this.castMedia_.pause(null,_.ZU,tu1(this,"pause")):BX(this,"pause"),f39(this,2,o8L(Rm(this))),this.publish("remotePlayerChange")):$X(this,this.pause)};
_.l.seekTo=function(E){if(E2(this)){if(this.castMedia_){var B=Rm(this),I=new chrome.cast.media.SeekRequest;I.currentTime=E;B.isPlaying()||B.isBuffering()?I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(I,_.ZU,tu1(this,"seekTo",{newTime:E}))}else BX(this,"seekTo",{newTime:E});f39(this,3,E);this.publish("remotePlayerChange")}else $X(this,_.wY(this.seekTo,E))};
_.l.stop=function(){if(E2(this)){this.castMedia_?this.castMedia_.stop(null,_.ZU,tu1(this,"stopVideo")):BX(this,"stopVideo");var E=Rm(this);E.stopPlayer();IX(this,E);this.publish("remotePlayerChange")}else $X(this,this.stop)};
_.l.setVolume=function(E,B){if(E2(this)){var I=Rm(this);if(this.castSession_){if(I.volume!=E){var T=Math.round(E)/100;this.castSession_.setReceiverVolumeLevel(T,(0,_.w1)(function(){MY("set receiver volume: "+T)},this),(0,_.w1)(function(){this.warn_("failed to set receiver volume.")},this))}I.muted!=B&&this.castSession_.setReceiverMuted(B,(0,_.w1)(function(){MY("set receiver muted: "+B)},this),(0,_.w1)(function(){this.warn_("failed to set receiver muted.")},this))}else{var e={volume:E,
muted:B};I.volume!=-1&&(e.delta=E-I.volume);BX(this,"setVolume",e)}I.muted=B;I.volume=E;IX(this,I)}else $X(this,_.wY(this.setVolume,E,B))};
_.l.setAudioTrack=function(E,B){E2(this)?(B=B.getLanguageInfo().getId(),BX(this,"setAudioTrack",{videoId:E,audioTrackId:B}),E=Rm(this),E.audioTrackId=B,IX(this,E)):$X(this,_.wY(this.setAudioTrack,E,B))};
_.l.addVideo=function(E){E2(this)?BX(this,"addVideo",{videoId:E}):$X(this,_.wY(this.addVideo,E))};
_.l.addPlaylist=function(E){E2(this)?BX(this,"addVideos",{listId:E}):$X(this,_.wY(this.addPlaylist,E))};
_.l.addVideos=function(E){E.length==0?this.warn_("Ignore add videos request due to empty list"):E2(this)?BX(this,"addVideos",{videoIds:E.join(",")}):$X(this,_.wY(this.addVideos,E))};
_.l.JSC$17440_removeVideo=function(E){E2(this)?BX(this,"removeVideo",{videoId:E}):$X(this,_.wY(this.JSC$17440_removeVideo,E))};
_.l.JSC$17440_insertVideo=function(E){E2(this)?BX(this,"insertVideo",{videoId:E}):$X(this,_.wY(this.JSC$17440_insertVideo,E))};
_.l.playVideo=function(E,B,I,T,e,c,Y){T=T===void 0?null:T;e=e===void 0?null:e;c=c===void 0?null:c;Y=Y===void 0?null:Y;var v=Rm(this),y={videoId:E};I!==void 0&&(y.currentIndex=I);AoT(v,E,I||0);B!==void 0&&(DE(v,B),y.currentTime=B);T&&(y.listId=T);e&&(y.playerParams=e);c&&(y.clickTrackingParams=c);Y&&(y.locationInfo=(0,_.xT)(Y));BX(this,"setPlaylist",y);T||IX(this,v)};
_.l.nextVideo=function(E,B){if(E2(this)){if(E&&B){var I=Rm(this);AoT(I,E,B);IX(this,I)}BX(this,"next")}else $X(this,_.wY(this.nextVideo,E,B))};
_.l.clearPlaylist=function(){if(E2(this)){BX(this,"clearPlaylist");var E=Rm(this);E.reset();IX(this,E);this.publish("remotePlayerChange")}else $X(this,this.clearPlaylist)};
_.l.dispose=function(){if(this.state_!=3){var E=this.state_;this.state_=3;this.publish("proxyStateChange",E,this.state_)}_.oo.prototype.dispose.call(this)};
_.l.disposeInternal=function(){Vu7(this);this.connection_=null;this.actionQueue_.clear();ksI(this,null);_.oo.prototype.disposeInternal.call(this)};
var Ued=function(E){_.bW("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(B){this.contextSubscriptions_.push(this.connection_.subscribe(B,_.wY(this.onProxyEvent_,B),this))},E)},Vu7=function(E){_.bW(E.contextSubscriptions_,function(B){this.connection_.unsubscribeByKey(B)},E);
E.contextSubscriptions_.length=0},E2=function(E){return E.getState()==1},$X=function(E,B){E.actionQueue_.getCount()<50&&E.actionQueue_.enqueue(B)},f39=function(E,B,I){var T=Rm(E);
DE(T,I);T.playerState!=-1E3&&(T.playerState=B);IX(E,T)},BX=function(E,B,I){E.connection_.sendMessage(B,I)},IX=function(E,B){Vu7(E);
E.connection_.setPlayerContextData(j5I(B));Ued(E)};
Ku.prototype.setState_=function(E){if((E!=this.state_||E==2)&&this.state_!=3&&E!=0){var B=this.state_;this.state_=E;this.publish("proxyStateChange",B,E);if(E==1)for(;!this.actionQueue_.isEmpty();)E=this.actionQueue_,pOI(E),E.front_.pop().apply(this);else E==3&&this.dispose()}};
Ku.prototype.onProxyEvent_=function(E,B){this.publish(E,B)};
var ksI=function(E,B){E.castSession_&&(E.castSession_.removeUpdateListener(E.boundCastStatusListener_),E.castSession_.removeMediaListener(E.boundCastMediaListener_),E.onCastMediaChange_(null));E.castSession_=B;if(E.castSession_&&(MY("Setting cast session: "+E.castSession_.sessionId),E.castSession_.addUpdateListener(E.boundCastStatusListener_),E.castSession_.addMediaListener(E.boundCastMediaListener_),E.castSession_.media.length))E.onCastMediaChange_(E.castSession_.media[0])};
Ku.prototype.onCastStatusUpdate_=function(E){if(!E)this.onCastMediaChange_(null),ksI(this,null);else if(this.castSession_.receiver.volume){E=this.castSession_.receiver.volume;var B=Rm(this),I=Math.round(100*E.level||0);if(B.volume!=I||B.muted!=E.muted)MY("Cast volume update: "+E.level+(E.muted?" muted":"")),B.volume=I,B.muted=!!E.muted,IX(this,B)}};
Ku.prototype.onCastMediaChange_=function(E){MY("Cast media: "+!!E);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=E)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),qAT(this),this.publish("remotePlayerChange")};
var qAT=function(E){var B=E.castMedia_.media,I=E.castMedia_.customData;if(B&&I){var T=Rm(E);B.contentId!=T.videoId&&MY("Cast changing video to: "+B.contentId);T.videoId=B.contentId;T.playerState=I.playerState;DE(T,E.castMedia_.getEstimatedTime());IX(E,T)}else MY("No cast media video. Ignoring state update.")};
Ku.prototype.onCastMediaUpdate_=function(E){if(E)qAT(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Ku.prototype.onCloudviewAvailabilityChange_=function(){var E=s29();E&&ksI(this,E)};
Ku.prototype.warn_=function(E){nh("CP",E)};
var tu1=function(E,B,I){return(0,_.w1)(function(T){this.warn_("Failed to "+B+" with cast v2 channel. Error code: "+T.code);T.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+B+" using MDx browser channel."),BX(this,B,I))},E)};var eL=function(E,B,I,T){T=T===void 0?!1:T;_.oo.call(this);var e=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$17447_http_=E;this.enableConnectWithInitialState_=T;this.listeners_.push(_.VI(window,"beforeunload",function(){e.JSC$17450_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new A9;this.currentScreenId_=B.id;this.currentScreenIdType_=B.idType;this.channelService=kx8(this.JSC$17447_http_,I,this.JSC$17450_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){FWm(e)});
this.channelService.listen("channelClosed",function(){T$("Channel closed");isNaN(e.connectTimerId_)?Lh(!0):Lh();e.dispose()});
this.channelService.listen("channelError",function(c){Lh();isNaN(e.getReconnectTimeout_())?(c==1&&e.currentScreenIdType_=="shortLived"&&e.publish("browserChannelAuthError",c),T$("Channel error: "+c+" without reconnection"),e.dispose()):(e.reconnecting_=!0,T$("Channel error: "+c+" with reconnection in "+e.getReconnectTimeout_()+" ms"),De7(e,2))});
this.channelService.listen("channelMessage",function(c){KWt(e,c)});
this.channelService.setLoungeToken(B.token);this.subscribe("remoteQueueChange",function(){var c=e.playerContext_.videoId;Mcg()&&_.l9("yt-remote-session-video-id",c)})};
_.L(eL,_.oo);
eL.prototype.connect=function(E,B){if(B){var I=B.listId,T=B.videoId,e=B.videoIds,c=B.playerParams,Y=B.clickTrackingParams,v=B.index,y={videoId:T},Z=B.currentTime,P=B.locationInfo;B=B.loopMode;Z!==void 0&&(y.currentTime=Z<=5?0:Z);c&&(y.playerParams=c);P&&(y.locationInfo=P);Y&&(y.clickTrackingParams=Y);I&&(y.listId=I);e&&e.length>0&&(y.videoIds=e.join(","));v!==void 0&&(y.currentIndex=v);this.enableConnectWithInitialState_&&(y.loopMode=B||"LOOP_MODE_OFF");I&&(this.playerContext_.listId=I);this.playerContext_.videoId=
T;this.playerContext_.index=v||0;this.playerContext_.state=3;DE(this.playerContext_,Z);this.autoplayMode_="UNSUPPORTED";I=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";T$("Connecting with "+I+" and params: "+(0,_.xT)(y));this.channelService.connect({method:I,params:(0,_.xT)(y)},E,JQ1())}else T$("Connecting without params"),this.channelService.connect({},E,JQ1());REH(this)};
eL.prototype.setLoungeToken=function(E){this.channelService.setLoungeToken(E)};
eL.prototype.dispose=function(){this.isDisposed()||(_.ka("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),De7(this,3));_.oo.prototype.dispose.call(this)};
eL.prototype.disposeInternal=function(){ECL(this);B52(this);$ld(this);_.lK(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.lK(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.bqd(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.oo.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var IG9=function(E){return _.Sd(E.connectedDevices_,function(B){return B.type=="LOUNGE_SCREEN"})},T$=function(E){nh("conn",E)},De7=function(E,B){E.publish("proxyStateChange",B)},REH=function(E){E.connectTimerId_=_.TR(function(){T$("Connecting timeout");
E.JSC$17450_disconnect_(1)},2E4)},ECL=function(E){_.lK(E.connectTimerId_);
E.connectTimerId_=NaN},$ld=function(E){_.lK(E.reconnectedCheckScreenTimeout_);
E.reconnectedCheckScreenTimeout_=NaN},T5d=function(E){B52(E);
E.playingSyncTimerId_=_.TR(function(){l$(E,"getNowPlaying")},2E4)},B52=function(E){_.lK(E.playingSyncTimerId_);
E.playingSyncTimerId_=NaN},FWm=function(E){T$("Channel opened");
E.reconnecting_&&(E.reconnecting_=!1,$ld(E),E.reconnectedCheckScreenTimeout_=_.TR(function(){T$("Timing out waiting for a screen.");E.JSC$17450_disconnect_(1)},15E3))},lG9=function(E,B){var I=null;
if(B){var T=IG9(E);T&&(I={clientName:T.clientName,deviceMake:T.brand,deviceModel:T.model,osVersion:T.osVersion})}_.ka("yt.mdx.remote.remoteClient_",I);B&&(ECL(E),$ld(E));I=E.channelService.isChannelOpened()&&isNaN(E.connectTimerId_);B==I?B&&(De7(E,1),l$(E,"getSubtitlesTrack")):B?(E.getOtherConnectedRemoteId_()&&E.playerContext_.reset(),De7(E,1),l$(E,"getNowPlaying"),e89(E)):E.JSC$17450_disconnect_(1)},chH=function(E,B){var I=B.params.videoId;
delete B.params.videoId;I==E.playerContext_.videoId&&(_.a_.isEmpty(B.params)?E.playerContext_.trackData=null:E.playerContext_.trackData=B.params,E.publish("remotePlayerChange"))},iML=function(E,B,I){var T=B.params.videoId||B.params.video_id,e=parseInt(B.params.currentIndex,10);
E.playerContext_.listId=B.params.listId||E.playerContext_.listId;AoT(E.playerContext_,T,e);E.publish("remoteQueueChange",I)},pcs=function(E,B){B.params=B.params||{};
iML(E,B,"NOW_PLAYING_MAY_CHANGE");E.onStateChange_(B);E.publish("autoplayDismissed")};
eL.prototype.onStateChange_=function(E){var B=parseInt(E.params.currentTime||E.params.current_time,10);DE(this.playerContext_,isNaN(B)?0:B);B=parseInt(E.params.state,10);B=isNaN(B)?-1:B;B==-1&&this.playerContext_.playerState==-1E3&&(B=-1E3);this.playerContext_.playerState=B;B=Number(E.params.loadedTime);this.playerContext_.loadedTime=isNaN(B)?0:B;B=Number(E.params.duration);this.playerContext_.duration_=isNaN(B)?0:B;B=this.playerContext_;var I=Number(E.params.liveIngestionTime);B.liveIngestionTime_=
I;B.isLive_=isNaN(I)?!1:!0;B=this.playerContext_;I=Number(E.params.seekableStartTime);E=Number(E.params.seekableEndTime);B.seekableStart_=isNaN(I)?0:I;B.seekableEnd_=isNaN(E)?0:E;this.playerContext_.playerState==1?T5d(this):B52(this);this.publish("remotePlayerChange")};
eL.prototype.onAdStateChange_=function(E){if(this.playerContext_.playerState!=-1E3){var B=1085;switch(parseInt(E.params.adState,10)){case 1:B=1081;break;case 2:B=1084;break;case 0:B=1083}this.playerContext_.playerState=B;E=parseInt(E.params.currentTime,10);DE(this.playerContext_,isNaN(E)?0:E);this.publish("remotePlayerChange")}};
var YyI=function(E,B){var I=B.params.muted=="true";E.playerContext_.volume=parseInt(B.params.volume,10);E.playerContext_.muted=I;E.publish("remotePlayerChange")},aG1=function(E,B){E.autoplayVideoId_=B.params.videoId;
E.publish("nowAutoplaying",parseInt(B.params.timeout,10))},vC2=function(E,B){E.autoplayVideoId_=B.params.videoId||null;
E.publish("autoplayUpNext",E.autoplayVideoId_)},yhH=function(E,B){E.autoplayMode_=B.params.autoplayMode;
E.publish("autoplayModeChange",E.autoplayMode_);E.autoplayMode_=="DISABLED"&&E.publish("autoplayDismissed")},C9L=function(E,B){var I=B.params.hasNext=="true";
E.playerContext_.hasPrevious=B.params.hasPrevious=="true";E.playerContext_.hasNext=I;E.publish("previousNextChange")};
eL.prototype.isCapabilitySupportedOnConnectedDevices_=function(E){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var B=_.p(this.connectedDevices_),I=B.next();!I.done;I=B.next())if(!I.value.capabilities.has(E))return!1;return!0};
var KWt=function(E,B){B=B.message;B.params?T$("Received: action="+B.action+", params="+(0,_.xT)(B.params)):T$("Received: action="+B.action+" {}");switch(B.action){case "loungeStatus":B=(0,_.uT)(B.params.devices);E.connectedDevices_=_.yl(B,function(T){return new rv(T)});
B=!!_.Sd(E.connectedDevices_,function(T){return T.type=="LOUNGE_SCREEN"});
lG9(E,B);B=E.isCapabilitySupportedOnConnectedDevices_("mlm");E.publish("multiStateLoopEnabled",B);break;case "loungeScreenDisconnected":D_9(E.connectedDevices_,function(T){return T.type=="LOUNGE_SCREEN"});
lG9(E,!1);break;case "remoteConnected":var I=new rv((0,_.uT)(B.params.device));_.Sd(E.connectedDevices_,function(T){return T.equals(I)})||_.ztc(E.connectedDevices_,I);
break;case "remoteDisconnected":I=new rv((0,_.uT)(B.params.device));D_9(E.connectedDevices_,function(T){return T.equals(I)});
break;case "gracefulDisconnect":break;case "playlistModified":iML(E,B,"QUEUE_MODIFIED");break;case "nowPlaying":pcs(E,B);break;case "onStateChange":E.onStateChange_(B);break;case "onAdStateChange":E.onAdStateChange_(B);break;case "onVolumeChanged":YyI(E,B);break;case "onSubtitlesTrackChanged":chH(E,B);break;case "nowAutoplaying":aG1(E,B);break;case "autoplayDismissed":E.publish("autoplayDismissed");break;case "autoplayUpNext":vC2(E,B);break;case "onAutoplayModeChanged":yhH(E,B);break;case "onHasPreviousNextChanged":C9L(E,
B);break;case "requestAssistedSignIn":E.publish("assistedSignInRequested",B.params.authCode);break;case "onLoopModeChanged":E.publish("loopModeChange",B.params.loopMode);break;default:T$("Unrecognized action: "+B.action)}};
_.l=eL.prototype;_.l.getProxyState_=function(){var E=3;this.isDisposed()||(E=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(E=1):E=2);return E};
_.l.JSC$17450_disconnect_=function(E){T$("Disconnecting with "+E);_.ka("yt.mdx.remote.remoteClient_",null);ECL(this);this.publish("beforeDisconnect",E);E==1&&Lh();this.channelService.disconnect(E);this.dispose()};
_.l.getPlayerContextData_=function(){var E=this.playerContext_;this.clientVideoId_&&(E=this.playerContext_.clone(),AoT(E,this.clientVideoId_,E.index));return j5I(E)};
_.l.setPlayerContextData_=function(E){var B=this,I=new A9(E);I.videoId&&I.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=I.videoId,_.lK(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.TR(function(){if(B.clientVideoId_){var e=B.clientVideoId_;B.clientVideoId_=null;B.playerContext_.videoId!=e&&l$(B,"getNowPlaying")}},5E3));
var T=[];this.playerContext_.listId==I.listId&&this.playerContext_.videoId==I.videoId&&this.playerContext_.index==I.index||T.push("remoteQueueChange");this.playerContext_.playerState==I.playerState&&this.playerContext_.volume==I.volume&&this.playerContext_.muted==I.muted&&o8L(this.playerContext_)==o8L(I)&&(0,_.xT)(this.playerContext_.trackData)==(0,_.xT)(I.trackData)||T.push("remotePlayerChange");this.playerContext_.reset(E);_.bW(T,function(e){this.publish(e)},this)};
_.l.getOtherConnectedRemoteId_=function(){var E=this.channelService.getDeviceId(),B=_.Sd(this.connectedDevices_,function(I){return I.type=="REMOTE_CONTROL"&&I.id!=E});
return B?B.id:""};
_.l.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.l.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.l.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.l.JSC$17450_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var e89=function(E){_.lK(E.idleDisconnectTimerId_);E.idleDisconnectTimerId_=_.TR(function(){E.JSC$17450_disconnect_(1)},864E5)},l$=function(E,B,I){I?T$("Sending: action="+B+", params="+(0,_.xT)(I)):T$("Sending: action="+B);
E.channelService.sendMessage(B,I)};
eL.prototype.sendMessageWithUserAction_=function(E,B){l$(this,E,B);e89(this)};
eL.prototype.JSC$17450_getXsrfToken_=function(){var E=_.v7.get("SAPISID","")||_.v7.get("__Secure-1PAPISID",void 0)||"",B=_.v7.get("__Secure-3PAPISID","")||"";if(!E&&!B)return"";E=_.tH(_.vp(E),2);B=_.tH(_.vp(B),2);return _.tH(_.vp(","+E+","+B),2)};
eL.prototype.subscribe=eL.prototype.subscribe;eL.prototype.unsubscribeByKey=eL.prototype.unsubscribeByKey;eL.prototype.getProxyState=eL.prototype.getProxyState_;eL.prototype.disconnect=eL.prototype.JSC$17450_disconnect_;eL.prototype.getPlayerContextData=eL.prototype.getPlayerContextData_;eL.prototype.setPlayerContextData=eL.prototype.setPlayerContextData_;eL.prototype.getOtherConnectedRemoteId=eL.prototype.getOtherConnectedRemoteId_;eL.prototype.getReconnectTimeout=eL.prototype.getReconnectTimeout_;
eL.prototype.getAutoplayMode=eL.prototype.getAutoplayMode_;eL.prototype.getAutoplayVideoId=eL.prototype.getAutoplayVideoId_;eL.prototype.reconnect=eL.prototype.JSC$17450_reconnect_;eL.prototype.sendMessage=eL.prototype.sendMessageWithUserAction_;eL.prototype.getXsrfToken=eL.prototype.JSC$17450_getXsrfToken_;eL.prototype.isCapabilitySupportedOnConnectedDevices=eL.prototype.isCapabilitySupportedOnConnectedDevices_;var wcg=function(E){NY.call(this,"ScreenServiceProxy");this.instance_=E;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.w1)(this.JSC$17453_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.w1)(this.onOnlineScreenChange_,this)))};
_.L(wcg,NY);_.l=wcg.prototype;_.l.getScreens=function(E){return this.instance_.$_gs(E)};
_.l.contains=function(E){return!!this.instance_.$_c(E)};
_.l.get=function(E){return this.instance_.$_g(E)};
_.l.start=function(){this.instance_.$_st()};
_.l.add=function(E,B,I){this.instance_.$_a(E,B,I)};
_.l.remove=function(E,B,I){this.instance_.$_r(E,B,I)};
_.l.updateName=function(E,B,I,T){this.instance_.$_un(E,B,I,T)};
_.l.disposeInternal=function(){for(var E=this.subscriptionKeys_.length,B=0;B<E;++B)this.instance_.$_ubk(this.subscriptionKeys_[B]);this.subscriptionKeys_.length=0;this.instance_=null;NY.prototype.disposeInternal.call(this)};
_.l.JSC$17453_onScreenChange_=function(){this.publish("screenChange")};
_.l.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
J9.prototype.$_st=J9.prototype.start;J9.prototype.$_gspc=J9.prototype.JSC$17410_getScreenByPairingCode;J9.prototype.$_gsppc=J9.prototype.JSC$17410_getScreenByPollingPairingCode;J9.prototype.$_c=J9.prototype.contains;J9.prototype.$_g=J9.prototype.get;J9.prototype.$_a=J9.prototype.add;J9.prototype.$_un=J9.prototype.updateName;J9.prototype.$_r=J9.prototype.remove;J9.prototype.$_gs=J9.prototype.getScreens;J9.prototype.$_gos=J9.prototype.JSC$17410_getOnlineScreens;J9.prototype.$_s=J9.prototype.subscribe;
J9.prototype.$_ubk=J9.prototype.unsubscribeByKey;var h8O=function(E){bCI();if(!xz||!xz.get("yt-remote-disable-remote-module-for-dev")){E=_.HA("MDX_CONFIG")||E;Vx7();NG9();cX||(cX=new d2(E?E.loungeApiHost:void 0),oh7()&&(cX.basePath="/api/loungedev"));i$||(i$=_.WA("yt.mdx.remote.deferredProxies_")||[],_.ka("yt.mdx.remote.deferredProxies_",i$));ZMd();var B=pA();if(!B){var I=new J9(cX,E?E.disableAutomaticScreenCache||!1:!1);_.ka("yt.mdx.remote.screenService_",I);B=pA();var T={};E&&(T={appId:E.appId,disableDial:E.disableDial,theme:E.theme,loadCastApiSetupScript:E.loadCastApiSetupScript,
disableCastApi:E.disableCastApi,enableDialLoungeToken:E.enableDialLoungeToken,enableCastLoungeToken:E.enableCastLoungeToken,forceMirroring:E.forceMirroring});_.ka("yt.mdx.remote.enableConnectWithInitialState_",E?E.enableConnectWithInitialState||!1:!1);P1L(I,function(c){c?YX()&&Lr1(YX(),"YouTube TV"):I.subscribe("onlineScreenChange",function(){Vz("yt-remote-receiver-availability-change")})},T)}if(E&&!_.WA("yt.mdx.remote.initialized_")){_.ka("yt.mdx.remote.initialized_",!0);
aX("Initializing: "+(0,_.xT)(E));vX.push(_.BC("yt-remote-cast2-api-ready",function(){Vz("yt-remote-api-ready")}));
vX.push(_.BC("yt-remote-cast2-availability-change",function(){Vz("yt-remote-receiver-availability-change")}));
vX.push(_.BC("yt-remote-cast2-receiver-selected",function(){P9t();Vz("yt-remote-auto-connect","cast-selector-receiver")}));
vX.push(_.BC("yt-remote-cast2-receiver-resumed",function(){Vz("yt-remote-receiver-resumed","cast-selector-receiver")}));
vX.push(_.BC("yt-remote-cast2-session-change",z8I));vX.push(_.BC("yt-remote-connection-change",function(c){c?Lr1(YX(),"YouTube TV"):mlI()||(Lr1(null,null),hD1())}));
vX.push(_.BC("yt-remote-cast2-session-failed",function(){Vz("yt-remote-connection-failed")}));
T=Qyt();E.isAuto&&(T.id+="#dial");var e=E.capabilities||[];_.d("desktop_enable_autoplay")&&e.push("atp");e.length>0&&(T.capabilities=e);T.name=E.device;T.app=E.app;(E=E.theme)&&(T.theme=E);aX(" -- with channel params: "+(0,_.xT)(T));T?(_.l9("yt-remote-session-app",T.app),_.l9("yt-remote-session-name",T.name)):(_.i9("yt-remote-session-app"),_.i9("yt-remote-session-name"));_.ka("yt.mdx.remote.channelParams_",T);B.start();YX()||dlm()}}},ueg=function(){var E=pA().instance_.$_gos();
var B=sys();B&&y1()&&(GxT(E,B)||E.push(B));return xUd(E)},LEs=function(){var E=ueg(),B=sys();
B||(B=mlI());return _.Sd(E,function(I){return B&&sm(B,I.key)?!0:!1})},sys=function(){var E=YX();
if(!E)return null;var B=pA().getScreens();return ud(B,E)},z8I=function(E){aX("remote.onCastSessionChange_: "+xf2(E));
if(E){var B=sys();B&&B.id==E.id?(Lr1(B.id,"YouTube TV"),E.idType=="shortLived"&&(E=E.token)&&(B=y1())&&B.setLoungeToken(E)):(B&&xlO(),G0d(E,1))}else y1()&&xlO()},xlO=function(){uDL()?bd().stopSession():r2("stopSession called before API ready.");
var E=y1();E&&(E.disconnect(1),OMd(null))},nC9=function(){var E=y1();
return E&&E.getProxyState()!=3?new Ku(y1(),void 0):null},aX=function(E){nh("remote",E)},pA=function(){if(!M7T){var E=_.WA("yt.mdx.remote.screenService_");
M7T=E?new wcg(E):null}return M7T},YX=function(){return _.WA("yt.mdx.remote.currentScreenId_")},HMT=function(E){_.ka("yt.mdx.remote.currentScreenId_",E)},P9t=function(){_.ka("yt.mdx.remote.connectData_",null)},y1=function(){return _.WA("yt.mdx.remote.connection_")},OMd=function(E){var B=y1();
P9t();E||HMT("");_.ka("yt.mdx.remote.connection_",E);i$&&(_.bW(i$,function(I){I(E)}),i$.length=0);
B&&!E?Vz("yt-remote-connection-change",!1):!B&&E&&Vz("yt-remote-connection-change",!0)},mlI=function(){var E=Mcg();
if(!E)return null;var B=pA();if(!B)return null;B=B.getScreens();return ud(B,E)},G0d=function(E,B){HMT(E.id);
E=new eL(cX,E,Qyt(),_.WA("yt.mdx.remote.enableConnectWithInitialState_")||!1);E.connect(B,_.WA("yt.mdx.remote.connectData_"));E.subscribe("beforeDisconnect",function(I){Vz("yt-remote-before-disconnect",I)});
E.subscribe("beforeDispose",function(){y1()&&OMd(null)});
E.subscribe("browserChannelAuthError",function(){var I=sys();I&&I.idType=="shortLived"&&(uDL()?bd().handleBrowserChannelAuthError():r2("refreshLoungeToken called before API ready."))});
OMd(E)},dlm=function(){var E=mlI();
E?(aX("Resume connection to: "+xf2(E)),G0d(E,0)):(Lh(),hD1(),aX("Skipping connecting because no session screen found."))},cX=null,i$=null,M7T=null,ZMd=function(){var E=Qyt();
if(_.a_.isEmpty(E)){E=nht();var B=_.cc("yt-remote-session-name")||"",I=_.cc("yt-remote-session-app")||"";E={device:"REMOTE_CONTROL",id:E,name:B,app:I,mdxVersion:3};E.authuser=String(_.HA("SESSION_INDEX","0"));(B=_.HA("DELEGATED_SESSION_ID"))&&(E.pageId=String(B));_.ka("yt.mdx.remote.channelParams_",E)}},Qyt=function(){return _.WA("yt.mdx.remote.channelParams_")||{}},vX=[];var N5g=new _.M3("yt-menu"),gCH=function(){},Jhs=function(E,B,I){E=B=="right-click"?I.rightClickMenuPopupHint:I.menuPopupHint;
if(!(Sys(B)>10))return B=B||"default",N5g.set(B+"-impression",Sys(B)+1),E},Sys=function(E){return parseInt(N5g.get((E||"default")+"-impression")||0,10)};
_.E8(gCH);var WEI=function(){this.contexts_=new WeakMap;this.JSC$17459_networkService_=this.activeContext_=null},XcO=function(E,B,I){var T=E.contexts_.get(B);
T||(T=new fQ8(E.JSC$17459_networkService_),E.contexts_.set(B,T));E.activeContext_=T;I&&E.activeContext_.reset();E.activeContext_.start();return E.activeContext_};var CA=function(){};
CA.prototype.enqueue=function(){var E=this,B;return _.a(function(I){if(E.isCounterfactual())return(B=E.getCounterfactualData())&&E.shouldLogCounterfactualImpression()&&E.sendImpressionEndpoints(B),I.return();E.doEnqueue();_.ER(I)})};
CA.prototype.sendImpressionEndpoints=function(E){_.WC.getInstance().triggerOptionalAction("yt-service-request",{},E[0])};var wa=function(E,B){this.renderer=E;this.page=B};
_.L(wa,CA);wa.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
wa.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
wa.prototype.shouldLogCounterfactualImpression=function(){return!0};
wa.prototype.doEnqueue=function(){var E=_.Ak(this.page);E&&E.pause();this.renderer.impressionCommand&&_.WC.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Hk(_.WC.getInstance(),[this.renderer.promoCommand],this.page)};var rhO=function(E,B){this.renderer=E;this.resolver=_.gA();this.JSC$17471_enforcementCounter=new _.$mX;B?this.JSC$17471_playerManager=_.Ak(B):this.JSC$17471_playerManager=null;_.ij(1,!0)};
_.L(rhO,CA);_.l=rhO.prototype;_.l.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var E=[];this.renderer.impressionEndpoints.forEach(function(B){(B=_.ha(B))&&E.push(B)});
return E}};
_.l.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.l.shouldLogCounterfactualImpression=function(){var E=_.jRG();E?(this.JSC$17471_enforcementCounter.increment("POPUP"),_.ij(3)):_.ij(2);return E};
_.l.cancel=function(){this.resolver.promise.cancel()};
_.l.doEnqueue=function(){var E=this;_.jRG()?(this.JSC$17471_enforcementCounter.increment("POPUP"),_.ij(3),bMs(this)):this.JSC$17471_playerManager?(this.resolver.promise.then(function(){bMs(E)}),oCI(this.resolver,this.JSC$17471_playerManager)):_.ij(2)};
var oCI=function(E,B){var I=_.gA();B.getPlayerPromise().then(function(T){I.resolve(T)});
I.promise.then(function(T){T.addEventListener("onAbnormalityDetected",E.resolve);_.sk(E.promise,function(){T.removeEventListener("onAbnormalityDetected",E.resolve)})});
E.promise.thenCatch(function(){I.promise.cancel()})},bMs=function(E){_.ij(3);
var B={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:E.renderer}};B=_.WC.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:B},{});Promise.all(B).then(function(){Ahd();E.JSC$17471_playerManager&&E.JSC$17471_playerManager.pause()})},Ahd=function(){JI7(function(E,B){_.gaI(E,B);
E===0?_.ij(7):_.ij(4)})};var jy7=function(E,B){this.renderer=E;this.page=B;this.resolver=_.gA()};
_.L(jy7,CA);_.l=jy7.prototype;_.l.cancel=function(){this.resolver.promise.cancel()};
_.l.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.l.isCounterfactual=function(){return!this.renderer.isVisible};
_.l.shouldLogCounterfactualImpression=function(){return!0};
_.l.doEnqueue=function(){var E=this;this.resolver.promise.then(function(){var I={popup:{mealbarPromoRenderer:E.renderer},popupType:"MEALBAR"};_.WC.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:I},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var B=_.Ak(this.page);B&&Ulg(this.resolver,B)}break;default:this.resolver.resolve()}};
var Ulg=function(E,B){var I=_.gA();B.getPlayerPromise().then(function(T){I.resolve(T)});
I.promise.then(function(T){T.addEventListener("onAdEnd",E.resolve);_.sk(E.promise,function(){T.removeEventListener("onAdEnd",E.resolve)})});
E.promise.thenCatch(function(){I.promise.cancel()})};var k0d=function(E,B){this.renderer=E;this.page=B};
_.L(k0d,CA);_.l=k0d.prototype;_.l.cancel=function(){this.JSC$17479_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17479_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17479_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.l.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.l.isCounterfactual=function(){return!this.renderer.isVisible};
_.l.shouldLogCounterfactualImpression=function(){return!0};
_.l.doEnqueue=function(){var E=this,B,I;((B=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(I=B.playbackUpsellDialogTriggerConditionData)==null?void 0:I.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17479_downloadedVideosCountSelectorUnsubscriber=_.C_(_.t2(),Mn8,function(T,e){T>e&&(t72(E),E.cancel())}):t72(this)};
var t72=function(E){var B={popup:{upsellDialogRenderer:E.renderer},popupType:"MODAL"};_.WC.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:B},{});(E=_.Ak(E.page))&&E.pause()};var Z6={},fG2=(Z6.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Z6.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Z6.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Z6.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Z6.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Z6.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Z6.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Z6),V72=function(E,B){this.renderer=E;this.targetManager=
B};
_.L(V72,CA);_.l=V72.prototype;_.l.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17486_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17486_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17486_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.l.getCounterfactualData=function(){if(this.isCounterfactual()){var E;return(E=this.renderer.promoConfig)==null?void 0:E.impressionEndpoints}};
_.l.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.l.shouldLogCounterfactualImpression=function(){return!0};
_.l.doEnqueue=function(){var E=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17486_downloadedVideosCountSelectorUnsubscriber=_.C_(_.t2(),Mn8,function(B,I){E.renderer.targetId&&B>I&&(sQO(E.targetManager,E.renderer.targetId,qyd(E)),E.cancel())});
break;default:sQO(this.targetManager,this.renderer.targetId,qyd(this))}};
var qyd=function(E){var B;if((B=E.renderer.suggestedPosition)==null?0:B.type)var I=fG2[E.renderer.suggestedPosition.type];I||(I="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:E.renderer},popupType:"HINT",position:I}}};var FEm=function(){this.previousPage=null},Dlt;
FEm.prototype.registerPromoCommand=function(E,B){KE8(this,void 0,void 0,_.h(E.roadblock,CUI),void 0,void 0,B)};
var KE8=function(E,B,I,T,e,c,Y){E.previousPage!==Y&&E.pendingTooltipPromo&&E.pendingTooltipPromo.cancel();E.previousPage=Y;e?(E.pendingEnforcementPromo&&E.pendingEnforcementPromo.cancel(),E.pendingEnforcementPromo=new rhO(e,Y),E.pendingEnforcementPromo.enqueue()):c?(E.pendingCommandWrapperPromo=new wa(c,Y),E.pendingCommandWrapperPromo.enqueue()):T?(E.pendingRoadblockPromo&&E.pendingRoadblockPromo.cancel(),E.pendingRoadblockPromo=new k0d(T,Y),E.pendingRoadblockPromo.enqueue()):B?(E.pendingMealbarPromo&&
E.pendingMealbarPromo.cancel(),E.pendingMealbarPromo=new jy7(B,Y),E.pendingMealbarPromo.enqueue()):I&&(E.pendingTooltipPromo&&E.pendingTooltipPromo.cancel(),E.pendingTooltipPromo=new V72(I,_.T0()),E.pendingTooltipPromo.enqueue())},R8g=function(){Dlt||(Dlt=new FEm);
return Dlt};var MYO=!1;var xiO=function(E,B){var I=_.HA("SESSION_INDEX");this.actionToken_=E;this.commonToken_=B;this.sessionIndex_=I},LBt=function(E){var B=_.gA(),I=_.WA("payments.business.integration.bootstrap"),T=_.WA("payments.business.integration"),e=T.Style.create().withMaterialDesignStyle(),c=T.mashupMode.popup("instrument-manager");
I.asMashupMode(c).usingUserIndex(E.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(e).inStandaloneContext(T.standaloneContextAuthId.forUserId()).instrumentManager(E.actionToken_,E.commonToken_.length>0?E.commonToken_:void 0,function(Y){var v=Y.instrumentId;v?B.resolve(v):(v=_.WA("payments.business.integration.scenario.InstrumentManager"),B.reject(Y.errorCode&&Y.errorCode===v.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(Y){_.SI(Y);
B.reject("instrumentManagerLoadError")});
return B.promise};var t9=function(E,B,I){this.payloadName="transactionFlowFailed";this.payload={errorType:E,serializedTransactionFlowLoggingParams:B,isUserDismiss:I===void 0?!1:I}};
_.ka("yt.ypc.shared.YpcTransactionFlowError",t9);var PX=function(){return _.l6.apply(this,arguments)||this};
_.L(PX,_.l6);PX.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
PX.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
PX.prototype.onErrorMessageDismiss=PX.prototype.onErrorMessageDismiss;_.k([_.X({readOnly:!0,observer:"errorRendererChanged"}),_.t("design:type",Object)],PX.prototype,"errorRenderer",void 0);_.k([_.RN("yt-live-chat-error-message-dismiss"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],PX.prototype,"onErrorMessageDismiss",null);PX=_.k([_.cl()],PX);var ExH=[PX.prototype];var BS1;var $k7;var Ild=new _.M3("yt-live-chat"),TS9=new Map;TS9.set("timestamp_toggle","show-timestamps");TS9.set("reactions_toggle","allow-reactions");var z$=function(){return _.r.apply(this,arguments)||this};
_.L(z$,_.r);_.l=z$.prototype;_.l.menuItemIdentifierChanged=function(){var E;(E=this.data)!=null&&E.menuItemIdentifier&&(E=TS9.get(this.data.menuItemIdentifier))&&(_.d("enable_lwe_web_mute")?(E=Ild.get(E),this.isToggled=!(E===void 0?!this.data.isToggled:!E)):this.isToggled=Ild.get(E))};
_.l.onFocus=function(){this.toggleButton.focus()};
_.l.onTap=function(){var E=this.data.command;E&&this.componentBehavior.resolveCommand(E)};
_.l.computeText=function(E,B,I){return this.componentBehavior.getSimpleString(E?I:B)};
_.l.computeIcon=function(E,B,I){return(E=E?I:B)&&E.iconType?_.R3(E.iconType):""};
z$.prototype.onTap=z$.prototype.onTap;z$.prototype.onFocus=z$.prototype.onFocus;z$.prototype.menuItemIdentifierChanged=z$.prototype.menuItemIdentifierChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],z$.prototype,"componentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],z$.prototype,"data",void 0);
_.k([_.X({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.t("design:type",String)],z$.prototype,"icon",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],z$.prototype,"isToggled",void 0);_.k([_.$7("tp-yt-paper-toggle-button"),_.t("design:type",Object)],z$.prototype,"toggleButton",void 0);_.k([_.EM("data.menuItemIdentifier"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],z$.prototype,"menuItemIdentifierChanged",null);
_.k([_.RN("focus"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],z$.prototype,"onFocus",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],z$.prototype,"onTap",null);z$=_.k([_.QE({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],z$);
_.A(z$,"yt-live-chat-toggle-renderer",function(){if($k7===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;BS1===void 0&&(BS1=document.createElement("template"));var T=BS1;I.call(B,T.content.cloneNode(!0),E.content.firstChild);$k7=E}E=$k7;return E},{mode:_.d("live_chat_enable_sink_wrapper")?2:0});var eat=new _.Dr("NAVIGATION_PROGRESS_TOKEN");_.MD("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var lls={},XNH=(lls.CSI=function(E,B){var I={};I[E]=B;E=_.JA(_.D6c)(I);Object.keys(E).length>0&&_.LO(E)},lls.ECATCHER=function(E){return function(B,I){_.HA(E)[B]=I}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),lls);var c4t={},ijg={},pFH=(ijg[$T7.name]=!0,ijg),mL=function(){var E=_.l6.apply(this,arguments)||this;E._noAccessors=!0;E.tabGesturesIsActive=!1;E.actionRouterIsRoot=!0;E.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"};E.pageTitle="";E.titleSuffix="YouTube";E.unseenNotificationCount=
0;E.hasNavigated=!1;E.hasSetScrollTopForNavigation=!1;E.pagePreparer=null;E.zwiebackInitJobId=0;E.dataUpdatePromise=null;E.loadDepsPromise=_.i1();E.hasPendingNavigation=!1;E.pendingPlayerOnResponseReceivedActions=[];return E};
_.L(mL,_.l6);mL.prototype.attached=function(){Y6I(this);document.addEventListener("yt-navigate-cache",_.Kq(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var E=Q1();E.init();E.dispatchElement=this.hostElement};
var Y6I=function(E,B){B=B===void 0?0:B;var I=_.Q().resolve(_.Fx(_.Iy));if(I)alL(E,I);else{if(B>=5)throw Error("Xk");setTimeout(function(){Y6I(E,B+1)},0)}},alL=function(E,B){B.addEventListener("yt-navigate-start",_.Kq(E,E.onYtNavigateStart));
B.addEventListener("yt-navigate-finish",_.Kq(E,E.onYtNavigateFinish));B.addEventListener("yt-navigate-error",_.Kq(E,E.onYtNavigateError));B.addEventListener("yt-page-data-fetched",_.Kq(E,E.onYtPageDataFetched))};
_.l=mL.prototype;_.l.detached=function(){var E=_.Q().resolve(_.Iy);E.removeEventListener("yt-navigate-start",_.Kq(this,this.onYtNavigateStart));E.removeEventListener("yt-navigate-finish",_.Kq(this,this.onYtNavigateFinish));E.removeEventListener("yt-navigate-error",_.Kq(this,this.onYtNavigateError));E.removeEventListener("yt-page-data-fetched",_.Kq(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Kq(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.l.setPageOffset=function(E,B){E?_.I2(this.hostElement,"yt-set-page-offset",[E,B]):_.xV(Error("Yk"))};
_.l.setPageOffsetForNavigation=function(E,B){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(E,B))};
_.l.onYtNavigateSetPageOffset=function(E,B){this.setPageOffsetForNavigation(B.page,B.offset)};
_.l.getPageOffset=function(){var E=_.n(this.hostElement).querySelector("#page-manager").getCurrentPage(),B=0;E&&(B=_.I2(this.hostElement,"yt-get-page-offset",[E])[0]);return B};
_.l.onYtHistoryPop=function(E,B){if(_.gU("DISABLE_WARM_LOADS"))E.preventDefault(),window.location.reload();else{var I=_.Q().resolve(_.Iy);I.hasPendingNavigation()&&E.preventDefault();I.cancelPendingNavigation();_.Ta(this.hostElement,"yt-pending-navigation-cancelled");B.errorMsg&&(E=B.errorMsg.split(" - "),B=Error(E[0]),E.length==2&&E[1]&&(_.ni(B,E[1]),_.OG(B)),window.location.reload())}};
_.l.onYtHistoryLoad=function(E,B){var I=this;if(_.gU("DISABLE_WARM_LOADS"))window.location.reload();else{this.hasError=!1;(E=B.endpoint)&&Object.keys(E).length||(E=null);var T=B.historyEntry,e=_.Q().resolve(_.Iy),c=_.Q().resolve(_.oS),Y=null;T&&T.rootData&&(Y=T.rootData);var v=Y&&vxL(Y);!Y||v||Y.filler?E?(e.navigate(E,!0),y4I(this,E)):(B.legacyBorder||v||(B.JSC$26352_savedComponentState==null&&Y==null?_.OG(new _.P7("Incomplete history entry",B.forward)):_.GF(new _.P7("Malformed history entry",B.JSC$26352_savedComponentState,
B.forward,Y))),window.location.reload()):(_.e3J({isHot:!0}),_.LO({webInfo:{navigationReason:"h"}}),_.s44(),_.nO("srt"),_.nO("pdc"),this.cancelPendingTasks(),CFm(this,B.forward,Y),Y.player&&(Y.player.loaded=!1),y4I(this,E),_.NmV(e,E||{},Y,2,{},!1,B).then(function(){I.setPageOffset(c.getCurrentPage(),T.scrollTop||0)}))}};
_.l.initHistoryManager=function(E){if(!this.hasNavigated){this.hasNavigated=!0;var B=_.n(this.hostElement).querySelector("#page-manager").getCurrentData();E=isNaN(E)?this.getPageOffset():E;var I=_.Q().resolve(_.Iy).currentEndpoint;this.replaceState(I,B,E)}};
_.l.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.l.onYtNavigateStart=function(E,B){this.cancelPendingTasks();B.noProgressBar||(E=_.Q().resolve(_.Fx(eat)))&&E.start();E=this.hasPendingNavigation?null:this.data;this.hasError=!1;var I=_.Q().resolve(_.oS),T,e,c;_.d("kevlar_use_vimio_behavior")&&!((T=B.endpoint)==null?0:(e=T.commandMetadata)==null?0:(c=e.webCommandMetadata)==null?0:c.ignoreNavigation)&&(T=I.getCurrentPage())&&T.disconnectVisibilityRoot();I.prepareForNavigation(B.pageType,B.endpoint);_.d("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=
new _.j7(1,"pcl"),_.Uy(this.pagePreparer,I.preparePage.bind(I,B.pageType,B.endpoint)));T=this.getPageOffset();this.initHistoryManager(T);B.reload||this.hasPendingNavigation?this.replaceState(B.endpoint,E,T):(E==null?void 0:E.page)==="watch"&&B.pageType==="watch"&&_.d("kevlar_replace_watch_to_watch_history_state")?this.replaceState(B.endpoint,E,T):(E==null?void 0:E.page)!=="shorts"||B.pageType!=="shorts"||B.endpoint.reelWatchEndpoint.sequenceParams||_.d("short_to_short_back_nav_killswitch")?B.type!=
"navigate-back"&&B.type!="navigate-forward"&&(B.pageType==="shorts"&&_.$O(this.hostElement,"yt-shorts-reset"),this.saveAndPush(B.url,B.endpoint,E,T)):this.replaceState(B.endpoint,E,0);this.hasPendingNavigation=!0};
var wFm=function(E){E.hasPendingNavigation=!1;(E=_.Q().resolve(_.Fx(eat)))&&E.finish()};
mL.prototype.onYtNavigateError=function(E,B){wFm(this);this.hasError=!0;B&&B.errorMessage?this.errorMessage=B.errorMessage:this.errorMessage=void 0;E=this.get("endpoint.commandMetadata.webCommandMetadata.url",B);var I=_.AA(window.location.href);E&&!I.pbjreload&&(B=B.navigationErrorReason||"10",_.d("kevlar_parent_on_pbjreload")&&(I={csn:_.nC()},this.get("data.endpoint.clickTrackingParams")&&(I.itct=this.data.endpoint.clickTrackingParams),_.qU(E,I)),_.xG(_.jI(E,{pbjreload:B})))};
mL.prototype.onYtNavigateCache=function(E,B){var I=this,T=B.url,e=B.endpoint,c=B.data;E=!!B.miniplayer;B=!!B.skipHistory;if(T&&e&&c){var Y=this.getPageOffset(),v=this.data||null;B||this.saveAndPush(T,e,v,Y);T=_.NmV(_.Q().resolve(_.Iy),e,c,E?4:3,{},E);E&&T.then(function(){I.dataUpdatePromise&&I.dataUpdatePromise.then(function(){var y=_.Q().resolve(_.oS);I.setPageOffset(y.getCurrentPage(),0)})})}};
mL.prototype.onYtNavigateFinish=function(E,B){var I=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){Zj8(I,B.fromHistory)})};
var Zj8=function(E,B){wFm(E);if(E.pendingPlayerOnResponseReceivedActions){for(var I=_.p(E.pendingPlayerOnResponseReceivedActions),T=I.next();!T.done;T=I.next())_.$g(T.value,E.hostElement);E.pendingPlayerOnResponseReceivedActions=[]}I=_.Q().resolve(_.oS);!B&&E.hasNavigated&&((B=I.getCurrentPage())?B.is==="ytd-shorts"||E.tabGesturesIsActive||E.setPageOffsetForNavigation(B,0):_.OG(Error("Zk")));_.Gg(function(){_.Gg(function(){_.nO("pda")})})};
mL.prototype.onYtNavigate=function(E){if(!E.detail.endpoint){var B=new _.P7("Error: Missing yt-navigate endpoint from target:",E.target,E.target.nodeName);_.xV(B)}if(B=_.d("cold_missing_history"))B=Q1(),B.init(!1),B=!(B.browserHistory.boundHistoryReplaceState&&B.browserHistory.boundHistoryPushState);if(B){_.MD("DISABLE_WARM_LOADS",!0);B=new _.P7("Failed to initialize history manager",this.getDebugString());var I=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
I?_.OG(B):_.xV(B)}B=E.detail.endpoint;var T,e;_.d("debug_forward_web_query_parameters")&&((T=B.commandMetadata)==null?0:(e=T.webCommandMetadata)==null?0:e.url)&&(B=JSON.parse(JSON.stringify(B)),B.commandMetadata.webCommandMetadata.url=_.WSB(B.commandMetadata.webCommandMetadata.url,window.location.search));E={type:0,command:B,form:{params:E.detail.params,tempData:E.detail.tempData||{},requestType:E.detail.type,createScreenConfig:E.detail.createScreenConfig,reload:E.detail.reload?E.detail.reload:!1,
requestForm:E.detail}};_.d("kevlar_yt_navigate_command_handler")?(T=_.Q().resolve(_.Dt),E.form.skipDefaultElement=!0,T.resolveCommand(B,{form:E.form})):this.handleNavigate(E)};
mL.prototype.handleNavigate=function(E){this.hasSetScrollTopForNavigation=!1;var B=_.Q().resolve(_.Iy),I=E.form||{};B.navigate(E.command,I.reload,I.params,I.tempData,I.requestType,I.createScreenConfig,I.ignoreConfirmation,I.requestForm)&&y4I(this,E.command,I.tempData)};
mL.prototype.onYtPageDataFetched=function(E,B){try{_.SLh().reset();this.data=B.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.Q().resolve(_.oS).updatePageData(this.data);var I=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);I&&rlI(I);var T=this.get("response.responseContext.serviceTrackingParams",this.data);T&&rlI(T);var e=
this.get("playerResponse.onResponseReceivedActions",this.data);e&&(e=PF8(this,e));e&&_.cN(this.hostElement,e,this.hostElement);var c=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),Y=this.get("response.responseContext.consistencyTokenJar",this.data);if(c||Y){var v=_.Lvt(),y=(0,_.a_.getValues)(v.tokenJars);c&&v.replace(y,c);Y&&v.replace(y,Y)}}catch(Z){_.xV(Z)}};
var y4I=function(E,B,I){try{E.onYtEndpointChangeHandler(B,I)}catch(T){_.xV(T)}};
_.l=mL.prototype;_.l.onYtEndpointChangeHandler=function(){};
_.l.setPageTitle=function(E){E=(this.pageTitle=E)?E+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+E};
_.l.onYtUpdateTitle=function(E,B){this.setPageTitle(B)};
_.l.setUnseenNotificationCount=function(E){this.unseenNotificationCount=E;this.setPageTitle(this.pageTitle)};
_.l.handleUpdateNotificationsUnseenCountAction=function(E){_.h(E,XO7)&&((E=_.h(E,XO7).unseenCount)?this.setUnseenNotificationCount(E):this.setUnseenNotificationCount(0))};
_.l.handleClearCookieAction=function(E){var B;(E=(B=_.h(E,gfm))==null?void 0:B.cookieName)&&_.BGt(E)};
_.l.onYtUpdateUnseenNotificationCount=function(E,B){this.setUnseenNotificationCount(B)};
_.l.loadData=function(E){var B=this;this.loadDepsPromise.then(function(){var I=_.Q().resolve(_.Fx(_.Iy));I||_.xV(Error("$k"));if(E&&E.response){if(!E.endpoint){var T=_.bT(window.document.location.href)||"/",e="";if(T==="/"||T.startsWith("/?"))e="WEB_PAGE_TYPE_BROWSE";E.endpoint={commandMetadata:{webCommandMetadata:{url:T,webPageType:e,rootVe:3854}}}}_.NmV(I,E.endpoint,E,5,{})}else E.endpoint?I.navigate(E.endpoint):I.navigate(_.yB);_.Ll.cancelJob(B.zwiebackInitJobId);B.zwiebackInitJobId=_.Ll.addLowPriorityJob(HOs)})};
var Q1=function(){return _.Q().resolve(_.IZ)};
mL.prototype.getDebugString=function(){return Q1().getDebugString()};
mL.prototype.getThirdPartyManipulationSuspected=function(){return Q1().getThirdPartyManipulationSuspected()};
mL.prototype.replaceState=function(E,B,I){Q1().saveAndReplace(E,B,I)};
mL.prototype.saveAndPush=function(E,B,I,T){Q1().saveAndPush(E,B,I,T)};
var vxL=function(E){return _.d("web_honor_cache_for_back")&&(_.h(E.endpoint,_.kh)||_.h(E.endpoint,_.yQ))?!0:!E||isNaN(E.expirationTime)?!1:(0,_.VZ)()>E.expirationTime},CFm=function(E,B,I){var T=E.get("response.trackingParams",I),e=_.Oi(),c=_.nC();
if(T&&e&&c&&(T=E.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",I),!T&&I.rootVe&&(T=I.rootVe),e=B?"forwardButton":"backButton",B=E.get("playerResponse.topbar.desktopTopbarRenderer."+e+".buttonRenderer.command.clickTrackingParams",E.data),E=E.get("response.topbar.desktopTopbarRenderer."+e+".buttonRenderer.command.clickTrackingParams",E.data),B=(E=B||E)?_.Yg(E):void 0,E=_.lu(),e=[_.i1(I)],_.I5(E,T,B,{dataPromises:e,csnToClone:I.csn}),I.graftedVes))for(I=
_.p(I.graftedVes),T=I.next();!T.done;T=I.next())_.Ts(E,T.value)};
mL.prototype.onStoreGraftedVeAction=function(E){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(E)):_.OG(Error("al"))};
var PF8=function(E,B){return B.filter(function(I){for(var T in I)if(pFH[T])return E.pendingPlayerOnResponseReceivedActions.push(I),!0;return!1})};
_.Up.Object.defineProperties(mL.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
mL.prototype.onStoreGraftedVeAction=mL.prototype.onStoreGraftedVeAction;mL.prototype.loadData=mL.prototype.loadData;mL.prototype.onYtUpdateUnseenNotificationCount=mL.prototype.onYtUpdateUnseenNotificationCount;mL.prototype.handleClearCookieAction=mL.prototype.handleClearCookieAction;mL.prototype.handleUpdateNotificationsUnseenCountAction=mL.prototype.handleUpdateNotificationsUnseenCountAction;mL.prototype.setUnseenNotificationCount=mL.prototype.setUnseenNotificationCount;
mL.prototype.onYtUpdateTitle=mL.prototype.onYtUpdateTitle;mL.prototype.setPageTitle=mL.prototype.setPageTitle;mL.prototype.onYtEndpointChangeHandler=mL.prototype.onYtEndpointChangeHandler;mL.prototype.onYtPageDataFetched=mL.prototype.onYtPageDataFetched;mL.prototype.handleNavigate=mL.prototype.handleNavigate;mL.prototype.onYtNavigate=mL.prototype.onYtNavigate;mL.prototype.onYtNavigateFinish=mL.prototype.onYtNavigateFinish;mL.prototype.onYtNavigateCache=mL.prototype.onYtNavigateCache;
mL.prototype.onYtNavigateError=mL.prototype.onYtNavigateError;mL.prototype.onYtNavigateStart=mL.prototype.onYtNavigateStart;mL.prototype.cancelPendingTasks=mL.prototype.cancelPendingTasks;mL.prototype.initHistoryManager=mL.prototype.initHistoryManager;mL.prototype.onYtHistoryLoad=mL.prototype.onYtHistoryLoad;mL.prototype.onYtHistoryPop=mL.prototype.onYtHistoryPop;mL.prototype.onYtNavigateSetPageOffset=mL.prototype.onYtNavigateSetPageOffset;mL.prototype.setPageOffset=mL.prototype.setPageOffset;
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],mL.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],mL.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],mL.prototype,"hasError",void 0);_.k([_.X(),_.t("design:type",Object)],mL.prototype,"errorMessage",void 0);
_.k([_.RN("yt-navigate-set-page-offset"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],mL.prototype,"onYtNavigateSetPageOffset",null);_.k([_.RN("yt-history-pop"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],mL.prototype,"onYtHistoryPop",null);
_.k([_.RN("yt-history-load"),_.t("design:type",Function),_.t("design:paramtypes",[Event,_.R5h]),_.t("design:returntype")],mL.prototype,"onYtHistoryLoad",null);_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],mL.prototype,"onYtNavigate",null);_.k([_.RN("yt-update-title"),_.t("design:type",Function),_.t("design:paramtypes",[Event,String]),_.t("design:returntype")],mL.prototype,"onYtUpdateTitle",null);
_.k([_.RN("yt-update-unseen-notification-count"),_.t("design:type",Function),_.t("design:paramtypes",[Event,Number]),_.t("design:returntype")],mL.prototype,"onYtUpdateUnseenNotificationCount",null);mL=_.k([_.cl()],mL);c4t.YtdAppBehavior=[_.th.YtActionHandlerBehavior,mL.prototype];var da=function(){var E=_.l6.apply(this,arguments)||this;E._noAccessors=!0;return E};
_.L(da,_.l6);da.prototype.ready=function(){var E=this;_.n(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){E.onChange_()})};
da.prototype.dataChanged_=function(){_.n(this.hostElement).querySelector("#checkbox").checked=!1};
da.prototype.onChange_=function(){var E=_.n(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.$O(this.hostElement,"yt-dismissal-reason-"+E,this.data.feedbackToken)};
da.prototype.dataChanged_=da.prototype.dataChanged_;_.k([_.X(),_.t("design:type",Object)],da.prototype,"data",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],da.prototype,"dataChanged_",null);da=_.k([_.cl()],da);var zaH=[da.prototype];var ht=function(){var E=_.l6.apply(this,arguments)||this;E.timeoutJobId=0;E.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return E};
_.L(ht,_.l6);ht.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
ht.prototype.startTimeout=function(){var E=this,B=this.data&&this.data.displayDurationSeconds;B&&!this.timeoutJobId&&(this.timeoutJobId=_.PC(_.Ll,function(){_.I2(E.hostElement,"yt-close-popup-action",[E.is]);E.timeoutJobId=0},B*1E3))};
ht.prototype.cancelTimeout=function(){_.Ll.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
ht.prototype.ytdHatsSurveyBehaviorDataChanged=ht.prototype.ytdHatsSurveyBehaviorDataChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],ht.prototype,"ytActionHandlerBehavior",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ht.prototype,"ytdHatsSurveyBehaviorDataChanged",null);ht=_.k([_.cl()],ht);var mk8=[_.th.YtActionHandlerBehavior,ht.prototype];var QvH=function(E,B){return E.SHARED_RENDERERS_.hasOwnProperty(B)?"yt":E.prefix},s2={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}};s2.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.d("kevlar_mealbar_above_player"),modern:_.d("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"}};
s2.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};s2.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};s2.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
s2.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)"}};
s2.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};
s2.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};
s2.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};
s2.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};s2.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"}};
s2.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};s2.TOAST={component:null,properties:{}};var dkT=new function(E,B,I){this.supportedPopups=E;this.navigationEndpointPopupMap=B;this.popupTypeMap=I;this.supportedPopups=E;this.navigationEndpointPopupMap=B;this.popupTypeMap=I}({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:_.d("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"}),ha9=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17538_popupConfig=s2;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 svI=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.QD.getInstance()},u$=function(E,B){var I=E.pageNameToElement.get(B);
if(!I){switch(B){case "watch":var T=_.d("web_watch_force_learning_journey_for_testing")?_.Ah("ytd-watch-learning-journey"):_.d("kevlar_watch_fixie")?_.Ah("ytd-watch-fixie"):_.d("kevlar_watch_grid")?_.Ah("ytd-watch-grid"):_.Ah("ytd-watch-flexy");break;case "learning-journey-watch":T=_.Ah("ytd-watch-learning-journey");break;case "shorts":T=_.Ah("ytd-shorts");break;case "search":T=_.Ah("ytd-search");break;case "channel":T=_.Ah("ytd-browse");T.pageSubtype="channels";break;case "trending":T=_.Ah("ytd-browse");
T.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":T=
_.Ah("ytd-browse");T.pageSubtype=B;break;case "browse":T=_.Ah("ytd-browse");break;default:_.OG(new _.P7("Error getting page element for type",B))}I=T;E.pageNameToElement.set(B,I)}return I};
svI.prototype.preparePage=function(E,B,I){I&&(E=KP(I)||E);if(E!=="watch"){var T=this.elementPoolPopulator,e=E;e!=T.targetPage_&&T.pendingPages_.indexOf(e)>-1&&(T.targetPage_&&(T.pendingPages_.unshift(T.targetPage_),T.abort()),xE9(T,e),_.FHZ(T,e))}if((T=u$(this,E))||!_.h(I,_.JK)){T.isAttached||T===B||(T.hidden=!0);if(!(T.data||E==="watch"&&_.d("swatcheroo_page_pool_dont_provide_filler_data"))){var c;if(E=(c=_.HA("FILLER_DATA",{})[E])==null?void 0:c.response)T.data=E}return T}};var u_T=function(E){this.JSC$28274_clientRoot=E;this.playlistHandlerActionMap={"yt-add-to-playlist-command":j2m,"yt-end-playlist-command":Ufm,"yt-recover-playlist-command":tYH,"yt-refresh-playlist-command":qK9,"yt-playlist-remove-videos-action":fBt};_.X4(_.WC.getInstance(),this.playlistHandlerActionMap,this.JSC$28274_clientRoot);W01()},LNg;var LA=function(E,B,I){this.apiKey=E;this.endpoint=B;this.confidenceThreshold=I===void 0?.5:I;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=B==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||B==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
B==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||B==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new m$2};
_.l=LA.prototype;
_.l.start=function(E){if(this.state===0)if(this.isOnline()){E.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=E.supportsHttpHeadersOverwriteParam);E.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=E.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.OK("voice_assistant");_.Mf("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=E.languageCode||"en-US";this.supportsCrossDomainXhr=E.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=E.youtubeAssistantRequest||null;this.listeningHandler=E.listeningHandler||this.listeningHandler;this.audioDetectedHandler=E.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=E.stopHandler||this.stopHandler;this.completeHandler=E.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=E.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=E.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
E.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=E.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=E.accessToken;this.additionalHeaders=E.additionalHeaders||{};var B;this.prefetchResponseTimeoutMs=(B=E.prefetchResponseTimeoutMs)!=null?B:this.prefetchResponseTimeoutMs;xkT(this);this.startAudio();Gmd(this)}else this.errorHandler("OFFLINE")};
_.l.stop=function(E){var B=E===void 0?{}:E;E=B.logCancel===void 0?!0:B.logCancel;var I=B.logMicClosed===void 0?!0:B.logMicClosed;var T=B.handleError===void 0?!0:B.handleError;B=B.handleStop===void 0?!0:B.handleStop;this.state!==0&&(E&&xX("voz_cx"),G$(this,{logMicClosed:I,handleStop:B}),T&&this.errorHandler("ABORTED"))};
_.l.getState=function(){return this.state};
_.l.isSupported=function(){return!0};
_.l.stopAudio=function(E){(E===void 0||E)&&xX("voz_mf")};
_.l.startAudio=function(){xX("voz_vp");return _.i1(null)};
var OjH=function(E,B){E.channelOpen&&(E.state!==2&&(E.state=2,xX("voz_ss"),E.listeningHandler()),B=new Uint8Array(B),B='{ "audioIn": "'+_.tH(B)+'" }',E.channel.send(B))},G$=function(E,B){var I=B===void 0?{}:B;
B=I.logMicClosed===void 0?!0:I.logMicClosed;I=I.handleStop===void 0?!0:I.handleStop;E.vozEndOfDataTimeout>-1&&(clearTimeout(E.vozEndOfDataTimeout),E.vozEndOfDataTimeout=-1);nxI(E);E.stopAudio(B);E.channel&&(E.channelOpen=!1,E.manuallyClosedChannel=!0,E.channel.close(),E.channel=void 0);E.transcribedSpeechResults=[];E.state=0;I&&E.stopHandler()},xkT=function(E){var B={httpHeadersOverwriteParam:E.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},E.additionalHeaders,E.accessToken&&E.isUsingVoz?{Authorization:"Bearer "+E.accessToken}:{"x-goog-api-key":E.apiKey}),supportsCrossDomainXhr:E.supportsCrossDomainXhr};E.channel=new xF(E.endpoint,B);E.channel.open();_.vV(E.channel,"w",function(){var I=E.channel,T=I.send,e=E.isUsingVoz?"PLACEHOLDER":"example";e={config:{dialogStateIn:{languageCode:E.languageCode},deviceConfig:{deviceId:e,deviceModelId:e},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!E.isUsingVoz)e.config.requestType=4;else if(E.isUsingVoz&&E.youtubeAssistantRequest){var c=JSON.stringify(E.youtubeAssistantRequest);e.config.internalIn={youtubeAssistantS3InputJson:c}}T.call(I,e);E.channelOpen=!0;E.manuallyClosedChannel=!1});
_.vV(E.channel,"x",function(){E.manuallyClosedChannel||(E.channelOpen=!1,E.channel=void 0,G$(E))});
_.vV(E.channel,"z",function(I){if(I.data){nxI(E);for(var T=0;T<I.data.length;T++){var e=E,c=I.data[T],Y=c.speechResults;if(Y)a:{var v=[];c=[];var y=!1;Y=_.p(Y);for(var Z=Y.next();!Z.done;Z=Y.next()){Z=Z.value;if(Z.noSpeech){G$(e);e.errorHandler("NO_SPEECH");break a}Z.transcript!==void 0&&Z.stability!==void 0&&(Z.stability<e.confidenceThreshold&&(y=!0),y?c.push(Z.transcript):v.push(Z.transcript))}if(v.length!==0||c.length!==0)v=v.join(" "),c=c.join(" "),e.receivedEndOfUtterance&&!e.isUsingVoz?e.isUsingVoz||
e.completeHandler([v,c]):(y=e,Y=v,Z=c,xX("voz_sf"),y.transcriptionUpdateHandler(Y,Z),y.transcribedSpeechResults=[Y,Z]),e.receivedEndOfUtterance&&(xX("voz_eou"),e.transcriptionCompleteHandler([v,c]),e.isUsingVoz&&(e.prefetchResponseTimeoutMs===0?G$(e,{logMicClosed:!1,handleStop:!0}):e.prefetchResponseTimeoutMs>0&&M17(e)))}else e.isUsingVoz&&(c==null?0:c.internalOut)?(c=JSON.parse(c.internalOut.youtubeAssistantS3OutputJson),c.userHasOptedInToVaa||c.vaaConsent?e.vaaConsentUpdateHandler(!!c.userHasOptedInToVaa,
!!c.vaaConsent):(HjH(e),c&&(v=e.transcribedSpeechResults,xX("voz_rqf"),e.completeHandler(v,c)))):c.eventType==="END_OF_UTTERANCE"?e.receivedEndOfUtterance=!0:(xX("voz_err"),e.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.OG(Error("bl")))}}});
_.vV(E.channel,"y",function(I){G$(E);switch(I.status){case 1:I="WEBCHANNEL_NETWORK_ERROR";break;case 2:I="WEBCHANNEL_SERVER_ERROR";break;default:I="WEBCHANNEL_UNKNOWN_ERROR"}E.errorHandler(I);E.logError(Error(I))})};
LA.prototype.logError=function(E){_.xV(E)};
LA.prototype.isOnline=function(){return!0};
var M17=function(E){HjH(E);E.prefetchResponseSetTimeoutId=setTimeout(function(){G$(E,{logMicClosed:!1,handleStop:!0})},E.prefetchResponseTimeoutMs)},HjH=function(E){E.prefetchResponseSetTimeoutId>-1&&(clearTimeout(E.prefetchResponseSetTimeoutId),E.prefetchResponseSetTimeoutId=-1)},Gmd=function(E){nxI(E);
E.noResponseReceivedTimeout=window.setTimeout(function(){G$(E);E.errorHandler("NO_SPEECH")},11E3)},nxI=function(E){E.noResponseReceivedTimeout>-1&&(window.clearTimeout(E.noResponseReceivedTimeout),E.noResponseReceivedTimeout=-1)},xX=function(E){_.nO(E,void 0,"voice_assistant")};var O2=function(){LA.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.L(O2,LA);O2.prototype.isSupported=function(){return FrO()};
O2.prototype.startAudio=function(){var E=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.rG(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(T){NSO(E,T)};
this.processor.connect(this.audioContext.destination);var B=function(T){E.stream=T;if(!E.audioContext)return _.i1(null);T=E.audioContext.createMediaStreamSource(T);E.processor&&T.connect(E.processor);return _.i1(null)},I={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?B(this.stream):navigator.mediaDevices.getUserMedia(I).then(B).catch(function(T){G$(E);T.name&&T.name==="NotAllowedError"?E.errorHandler("NO_MICROPHONE_PERMISSION"):(E.errorHandler("AUDIO_ERROR"),E.logError(T));return _.rG(null)});
return LA.prototype.startAudio.call(this)};
O2.prototype.stopAudio=function(E){E=E===void 0?!0:E;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(B){B.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;LA.prototype.stopAudio.call(this,E)};
O2.prototype.isOnline=function(){return navigator.onLine};
var NSO=function(E,B){if(E.audioContext)if(window.OfflineAudioContext){var I=E.audioContext.sampleRate,T=B.inputBuffer.getChannelData(0);B=new window.OfflineAudioContext(1,T.length,16E3);for(var e=B.createBuffer(1,T.length,I),c=e.getChannelData(0),Y=0,v=0;v<T.length;v++)c[v]=T[v],Y+=c[v]*c[v];!E.audioDetected&&Math.sqrt(Y/T.length)>.01&&(E.audioDetected=!0,E.audioDetectedHandler());T=B.createBufferSource();T.buffer=e;T.connect(B.destination);T.start(0);B.oncomplete=function(y){y=y.renderedBuffer.getChannelData(0);
for(var Z=Math.floor(16384E3/I),P=new Int16Array(Z),z=0;z<Z;++z)P[z]=Math.max(-1,Math.min(1,y[z]))*32767;OjH(E,P.buffer)};
B.startRendering()}else gxT(E,B)},gxT=function(E,B){var I=E.audioContext.sampleRate,T=B.inputBuffer.getChannelData(0),e=Math.floor((I+8E3)/16E3);
I=T.length/e;B=new Float32Array(I);for(var c=0;c<I;++c)B[c]=T[c*e];T=new Int16Array(I);for(e=0;e<I;++e)T[e]=Math.max(-1,Math.min(1,B[e]))*32767;OjH(E,T.buffer)};var S6t={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var J4s=function(){this.JSC$17603_audioEnabled=!0;this.audioFeedbackHolder={}};
J4s.prototype.isPlaying=function(E){return E.currentTime>0&&!E.paused&&!E.ended&&E.readyState>2};
var WNt=function(E){for(var B=_.p(Object.values(S6t)),I=B.next();!I.done;I=B.next())I=I.value,E.audioFeedbackHolder[I]=new Audio,E.audioFeedbackHolder[I].src="/s/search/audio/"+I+".mp3",E.audioFeedbackHolder[I].load()},nA=function(E,B){if(E.JSC$17603_audioEnabled!==!1&&B in E.audioFeedbackHolder){for(var I=_.p(Object.values(E.audioFeedbackHolder)),T=I.next();!T.done;T=I.next())T=T.value,E.isPlaying(T)&&T.pause();
E.audioFeedbackHolder[B].currentTime=0;E.audioFeedbackHolder[B].play().catch(function(){})}};var XFT=function(E,B){var I=this;this.store=E;this.service=B;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){I.setState("offline");I.stop()};
this.audioPlayer=new J4s;var T;(T=this.audioPlayer)==null||WNt(T)};
_.l=XFT.prototype;_.l.getService=function(){return this.service};
_.l.isEnabled=function(){return!!this.service};
_.l.isSupported=function(){var E;return(E=this.service)==null?void 0:E.isSupported()};
_.l.start=function(){var E=this,B,I,T,e,c,Y,v,y,Z,P,z,m,u;return _.a(function(x){switch(x.nextAddress){case 1:E.store.dispatch(bpO("",""));if(!navigator.onLine)return E.setState("offline"),x.return();window.addEventListener("offline",E.handleOfflineEvent);E.stream=null;if(!E.permissionsSupported){x.jumpTo(2);break}_.q7(x,3);return _.C(x,r4I(E),5);case 5:B=x.yieldResult;if(!B)return(I=E.audioPlayer)==null||nA(I,"failure"),x.return();E.service.stream=E.stream;E.setState("listening");_.W7(x,2);break;
case 3:_.RG(x),E.permissionsSupported=!1;case 2:T={context:_.iOi(_.FQ())},T.youtubeAssistantParams={searchParams:{inlineSearchResponse:E.enableInlineSearchResponse}},e=function(M,N){E.store.dispatch(o37("transcribing"));E.store.dispatch(bpO(M,N))},c=function(){var M;
(M=E.audioPlayer)==null||nA(M,"open");E.setState("listening")},Y=function(){E.setState("transcribing")},v=function(M){E.setErrorState(M)},y=function(M,N){var W;
(W=E.audioPlayer)==null||nA(W,"success");N&&(_.d("kevlar_voice_search_inline_search")&&(E.responseProcessor=_.Q().resolve(_.tZt),E.responseProcessor&&(W=N.navigationAction,M=N.prefetchedSearchResponse,W&&M&&(W=(new _.Ii7).JSC$11790_getStoreKey(W),_.oP(E.responseProcessor,M,W)))),E.JSC$17621_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",N))},Z=function(){window.removeEventListener("offline",E.handleOfflineEvent)},P=_.P1c(!1),z=P.Authorization!=null,m=E.enableFirstPartyAuth||
E.enableFPAForSignedInUsers&&z?P:{"X-Goog-Visitor-Id":P["X-Goog-Visitor-Id"]},u={completeHandler:y,
errorHandler:v,listeningHandler:c,audioDetectedHandler:Y,stopHandler:Z,transcriptionUpdateHandler:e,youtubeAssistantRequest:T,languageCode:bjs(),additionalHeaders:m,supportsCrossDomainXhr:E.enableFirstPartyAuth||E.enableFPAForSignedInUsers&&z,supportsHttpHeadersOverwriteParam:!E.disableHttpHeadersOverwrite},E.service.start(u),_.ER(x)}})};
_.l.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.l.reset=function(){this.store.dispatch(_.BP({type:"RESET_VOICE_SEARCH_STATE"}))};
_.l.setState=function(E){this.store.dispatch(o37(E))};
_.l.setErrorState=function(E){switch(E){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var B;(B=this.audioPlayer)==null||nA(B,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)r4I(this);else{var I;(I=this.audioPlayer)==null||nA(I,"failure");this.setState("permission-denied")}break;case "ABORTED":var T;(T=this.audioPlayer)==null||nA(T,"no_input");break;default:var e;(e=this.audioPlayer)==
null||nA(e,"no_input");this.setState("timeout")}};
var r4I=function(E){var B,I;return _.a(function(T){switch(T.nextAddress){case 1:return _.C(T,navigator.permissions.query({name:"microphone"}),2);case 2:B=T.yieldResult;if(B.state==="granted")return T.return(!0);if(B.state==="denied")return E.setState("permission-denied"),T.return(!1);E.setState("permission");I={audio:{sampleSize:16,channelCount:1},video:!1};_.q7(T,3);return _.C(T,navigator.mediaDevices.getUserMedia(I),5);case 5:return E.stream=T.yieldResult,T.return(!0);case 3:return _.RG(T),E.setState("permission-denied"),
T.return(!1)}})},bjs=function(){var E=_.HA("INNERTUBE_CONTEXT_HL"),B=_.HA("INNERTUBE_CONTEXT_GL");
return E.indexOf("-")>-1?E:E+"-"+B};var ox8=function(E,B,I){XFT.call(this,B,I);this.JSC$17621_actionRouter=E;this.enableInlineSearchResponse=_.d("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.d("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.d("kevlar_voice_search_enable_fpa_signedin_users")},A4L;
_.L(ox8,XFT);
var jvO=function(){if(!A4L){var E="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.d("kevlar_voice_search_auth_enabled")||_.d("kevlar_voice_search_use_yt_endpoint")?E="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.d("kevlar_voice_search_use_fp_endpoint")&&(E="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");A4L=
new ox8(_.WC.getInstance(),_.t2(),new O2(_.HA("VOZ_API_KEY"),E,.5))}return A4L};var Uks=function(E){this.JSC$17625_clientRoot=E;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$17625_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)]]));E=_.p(this.eventListeners);for(var B=E.next();!B.done;B=E.next()){var I=_.p(B.value);B=I.next().value;I=I.next().value;I=_.p(I);for(var T=I.next();!T.done;T=I.next()){var e=
_.p(T.value);T=e.next().value;e=e.next().value;B.addEventListener(T,e)}}_.X4(_.WC.getInstance(),this.autonavPauseActionMap,this.JSC$17625_clientRoot)},kmd,t1t=function(E){return _.d("kevlar_autonav_popup_filtering")?(E=_.XN(E))?E.hasAttribute("prevent-autonav"):!0:!0};
_.l=Uks.prototype;_.l.onIronOverlayOpened=function(E){t1t(E)&&(this.autonavPauseReasons.overlayOpen=!0,M5(this))};
_.l.onIronOverlayClosed=function(E){t1t(E)&&(this.autonavPauseReasons.overlayOpen=!1,M5(this))};
_.l.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;M5(this)};
_.l.onYtAutonavPauseBlur=function(){var E=this;_.Ll.addJob(function(){E.isInBackground()||(E.autonavPauseReasons.inputBoxFocus=!1,M5(E))},8,0)};
_.l.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;M5(this)};
_.l.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;M5(this)};
_.l.onYtAutonavPauseScroll=function(){var E=_.Q().resolve(_.oS);E.isOnWatch()&&(E=E.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=E.getBoundingClientRect().top<-200,M5(this))};
_.l.onYtAutonavPauseUserEngagement=function(E){var B=this;if(_.d("user_engagement_enable_autoplay_pause_feature")){var I=Number(E.lowEngagementThresholdMs);isNaN(I)||I<=0||E.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Xv("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.Q().resolve(_.P$),_.DD()<I?_.PC(_.Ll,function(){_.Xv("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.Jg9()?(this.userEngagementCsn=_.nC(),_.PC(_.Ll,function(){_.Xv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
B.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,M5(this)):_.Xv("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.L0D(Error("cl`"+JSON.stringify(E)))};
_.l.onYtAutonavPausePlayer=function(E){this.autonavPauseReasons.requestedByPlayer=!!E.detail;M5(this)};
_.l.onYtAutonavVisibilityChanged=function(){var E=this,B,I,T;return _.a(function(e){if(e.nextAddress==1)return(B=_.jx())?_.C(e,B.getPlayerPromise(),2):e.return();I=e.yieldResult;T=I.isMuted()||I.getVolume()===0;E.autonavPauseReasons.backgroundAndMute=E.isInBackground()&&T;M5(E);_.ER(e)})};
_.l.onYtAutonavPausePlayerEnded=function(){_.Q().resolve(_.P$);var E=144E5;_.d("user_engagement_enable_autoplay_pause_feature")||_.d("is_part_of_any_user_engagement_experiment")||(E=45E5);this.autonavPauseReasons.longIdle=_.DD()>E;fld(this);M5(this)};
_.l.onYtUserActivity=function(){var E=this;this.autonavPauseReasons.userEngagement&&(_.PC(_.Ll,function(){_.Xv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",E.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,M5(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.PC(_.Ll,function(){_.Xv("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",E.userEngagementCsn);_.Li()}),this.autonavPauseReasons.youthereLactExperiment=!1,M5(this));
this.autonavPauseReasons.longIdle&&!_.d("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,M5(this))};
_.l.isInBackground=function(){var E=window.document.visibilityState;return!(!E||E==="visible")};
var M5=function(E){for(var B=!1,I=_.p(Object.values(E.autonavPauseReasons)),T=I.next();!T.done;T=I.next())T=T.value,B=B||T;B?_.fU.getInstance().pause(E.autonavPauseReasons):(E=_.fU.getInstance(),E.autonavState_==3?(E.setState(2,!1,!1),E.autonavPauseReason_=void 0):E.autonavState_==1&&(E.disabledAutonavPauseReason_=void 0))},fld=function(E){var B=!1;
if(_.d("enable_autoplay_pause_by_lact")){_.Q().resolve(_.P$);B=_.RI("autoplay_pause_by_lact_sec")*1E3;var I=_.RI("autoplay_pause_by_lact_sampling_fraction");(B=_.DD()>=B&&Math.random()<I)&&!_.Jg9()&&(_.PC(_.Ll,function(){_.Xv("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),B=!1)}B!==E.autonavPauseReasons.youthereLactExperiment&&(E.autonavPauseReasons.youthereLactExperiment=B)&&(E.userEngagementCsn=_.nC(),_.PC(_.Ll,function(){_.Xv("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",E.userEngagementCsn)}));
E.autonavPauseReasons.userEngagement&&_.PC(_.Ll,function(){_.Xv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",E.userEngagementCsn)})};
Uks.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Xv("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Li(),this.autonavPauseReasons.youthereLactExperiment=!1,M5(this));this.autonavPauseReasons.userEngagement&&(_.Xv("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,M5(this))};
Uks.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var HX=function(){var E=_.r.apply(this,arguments)||this;E.miniGuideVisible=!1;E.guideOpened=_.d("disable_initial_guide_state_fix")?!1:E.canFitPersistentGuide(E.initialBodyClientWidth);E.guideUserStateOpened=E.getInitialGuideUserStateOpened();E.isFullscreenShorts=!1;E.miniGuideWidthThreshold=_.RI("kevlar_mini_guide_width_threshold",791);E.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");E.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
E.persistentGuideBlockedPagePathRegex=new RegExp(E.persistentGuideBlockedPagesPatterns.join("|"));E.animationTransitionDuration=0;E.lateDataResolver=_.gA();E.serviceEndpoint=KBO;E.initialGuideDataFetchFailed=!1;E.initialLoad=!0;E.guideRenderers=new Set;E.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return E};
_.L(HX,_.r);_.l=HX.prototype;_.l.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.l.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.l.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.l.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.l.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.l.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.l.ready=function(){_.Q().addProvider({provide:_.M9,useValue:this.hostElement})};
_.l.attached=function(){var E=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Kq(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Kq(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Kq(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Kq(this,this.onYtGuideShow));_.AJ(this,function(){E.animationTransitionDuration=200})};
_.l.detached=function(){document.removeEventListener("yt-navigate-finish",_.Kq(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Kq(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Kq(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Kq(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Kq(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Kq(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Kq(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.l.getData=function(){return this.data};
_.l.load=function(){var E=this,B,I,T,e;return _.a(function(c){switch(c.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=E.lateDataResolver.resolve.bind(E),c.return(E.lateDataResolver.promise);if(window.ytInitialGuideData)return B=_.gA(),B.resolve(window.ytInitialGuideData),c.return(B.promise);T=!1;_.q7(c,2);return _.C(c,E.fetchGuideData(),4);case 4:I=c.yieldResult;_.W7(c,3);break;case 2:e=_.RG(c),e.message==="Returned error"&&(T=!0);
case 3:if(I)return c.return(I);E.onYtGuideClose();T||(E.initialGuideDataFetchFailed=!0);return c.return(E.lateDataResolver.promise)}})};
_.l.fetchGuideData=function(){var E=this,B,I,T,e,c,Y;return _.a(function(v){if(v.nextAddress==1)return E.guidePromise||(E.guidePromise=_.l1(E.hostElement,[E.serviceEndpoint])),_.C(v,E.guidePromise,2);if(v.nextAddress!=3)return B=v.yieldResult,I=_.Q(),T=I.resolve(_.gm),_.C(v,T(),3);(e=v.yieldResult)&&((c=B)==null?0:c.data)&&((Y=B.data.responseContext)==null?void 0:Y.maxAgeSeconds)!==0&&e.put("service:guide:fallback",new _.Re({innertubeResponse:B.data}));return v.return(B.data)})};
_.l.initializeGuideDataIfEmpty=function(){var E=this,B,I;return _.a(function(T){if(T.nextAddress==1){if(!E.initialGuideDataFetchFailed||E.data)return T.return();_.q7(T,2);return _.C(T,E.fetchGuideData(),4)}if(T.nextAddress!=2)return(B=T.yieldResult)&&E.lateDataResolver.resolve(B),_.W7(T,0);I=_.RG(T);_.OG(I);_.ER(T)})};
_.l.initializeGuideData=function(){var E=this,B;return _.a(function(I){switch(I.nextAddress){case 1:return _.v3(z_T(),{mainAppWeb:_.NK()}),_.q7(I,2),_.C(I,E.load(),4);case 4:E.data=I.yieldResult;_.W7(I,3);break;case 2:_.RG(I),_.yr(z_T(),"FAILURE");case 3:B=E.data&&E.data.items&&E.data.items.length>0?"SUCCESS":"FAILURE",_.yr(z_T(),B),_.ER(I)}})};
_.l.setGuideData=function(E){var B=this,I,T;return _.a(function(e){if(e.nextAddress==1)return B.disabled?e.return():B.data?(E.data=B.data,B.guideRenderers.add(E),e.return()):_.C(e,B.initializeGuideData(),2);B.graftGuideToPage();I=_.gU("IS_HOMEPAGE_COLD")?"eop":void 0;_.d("disable_element_pool_populator")?B.setGuideDataAfterInit(E):(T=new _.j7(1,I),_.Uy(T,B.setGuideDataAfterInit.bind(B,E)));_.ER(e)})};
_.l.setGuideDataAfterInit=function(E){E.data=this.data;E.markDirty();this.guideRenderers.add(E);_.Gg(function(){_.nO("gle")});
_.AJ(this,function(){_.nO("gpe")})};
_.l.graftGuideToPage=function(){if(this.data){var E=this.data&&this.data.trackingParams;E&&(E=_.Yg(E),_.eu(_.lu(),E))}};
_.l.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Kq(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.l.onDrawerOpenedChanged=function(E,B){!B.value&&this.guideOpened&&(this.guideOpened=!1)};
_.l.onYtGuideToggle=function(E){var B=this.guideOpened;this.guideOpened=!B;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var I=_.ZB();_.PN(0,109,!this.guideUserStateOpened);I.save()}this.updateGuideDrawerElementState();if(this.guideElement){var T;this.guideOpened&&((T=E.detail)==null?0:T.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Kq(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.Kq(this,
this.onAppDrawerTransitioned))}B||this.initializeGuideDataIfEmpty()};
_.l.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Kq(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.AI(this.guideElement)};
_.l.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Kq(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(X$I(this.guideOpened))};
_.l.guidePersistentAndVisibleChanged=function(){_.Ta(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.l.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.BP({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.l.miniGuideVisibleChanged=function(){_.Ta(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.l.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(X$I(this.guideOpened)),this.initialLoad=!1);_.Ta(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.l.activeEndpointChanged=function(){_.Ta(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.l.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.l.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()};
_.l.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var E=this.canFitPersistentGuide(this.cachedClientWidth);E?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=E}this.updateGuideDrawerElementState()};
_.l.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.l.getGuideOpened=function(){return this.guideOpened};
_.l.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.l.getActiveEndpoint=function(){return this.activeEndpoint};
_.l.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.l.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&&_.$O(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.l.computeGuidePersistentAndVisible=function(){var E=this;_.OM(this,"computeGuidePersistentAndVisible",function(){E.guidePersistentAndVisible=E.guideOpened&&E.guidePersistent;E.guideIsVisibleButNotPersistent=!(!E.guideOpened||E.guidePersistent)})};
_.l.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.l.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.l.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.l.startLoadingWatch=function(){this.closeGuide()};
_.l.startLoadingShorts=function(){_.d("web_hide_guide_on_shorts")&&this.closeGuide()};
_.l.onYtNavigateFinish=function(E,B){if(!_.cf||B){this.activeEndpoint=B.endpoint;this.pageType=B.pageType;this.pageUrl=B.response.url;var I,T;E=(T=_.h((I=B.endpoint)==null?void 0:I.commandMetadata,_.D$))==null?void 0:T.url;!this.pageUrl&&E&&(this.pageUrl=E);_.d("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.l.getVisibleGuideRenderer=function(){for(var E=_.p(this.guideRenderers),B=E.next();!B.done;B=E.next())if(B=B.value,this.miniGuideVisible&&B.is==="ytd-mini-guide-renderer"||this.guideOpened&&B.is==="ytd-guide-renderer")return B;return null};
_.l.markGuideRendererDirty=function(E){if(E){typeof E.markDirty==="function"&&E.markDirty();E=_.p([].concat(_.ad(_.n(E).children)));for(var B=E.next();!B.done;B=E.next())this.markGuideRendererDirty(B.value)}};
_.l.persistentGuideEnabled=function(E,B){if(!B||E==="watch"||E==="settings"||E==="shorts"&&this.isFullscreenShorts||_.d("reels_web_disable_persistent_guide_shorts")&&E==="shorts")return!1;var I=_.c7(B)||"";return _.d("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(T){return I===T}):!this.persistentGuideBlockedPagePathRegex.test(I)};
_.l.canFitPersistentGuide=function(E){var B=_.RI("kevlar_persistent_guide_width_threshold",1312);return B===-1||_.d("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:E>B};
_.l.canFitMiniGuide=function(E){return this.miniGuideWidthThreshold===-1?!1:E>this.miniGuideWidthThreshold};
_.l.onResize=function(){var E=this;_.OM(this,"calculateGuideState",function(){E.onResizeDebounced()})};
_.l.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.l.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.l.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.l.getInitialGuideUserStateOpened=function(){return!_.ZB().getFlag(109)};
_.Up.Object.defineProperties(HX.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.HA("initialBodyClientWidth")||window.innerWidth}}});
HX.prototype.onResize=HX.prototype.onResize;HX.prototype.observeForMiniGuideVisible=HX.prototype.observeForMiniGuideVisible;HX.prototype.computeGuidePersistentAndVisible=HX.prototype.computeGuidePersistentAndVisible;HX.prototype.cachedClientWidthChanged=HX.prototype.cachedClientWidthChanged;HX.prototype.resetGuide=HX.prototype.resetGuide;HX.prototype.activeEndpointChanged=HX.prototype.activeEndpointChanged;HX.prototype.guideOpenedChanged=HX.prototype.guideOpenedChanged;
HX.prototype.miniGuideVisibleChanged=HX.prototype.miniGuideVisibleChanged;HX.prototype.guideIsVisibleButNotPersistentChanged=HX.prototype.guideIsVisibleButNotPersistentChanged;HX.prototype.guidePersistentAndVisibleChanged=HX.prototype.guidePersistentAndVisibleChanged;HX.prototype.onGuideElementChanged=HX.prototype.onGuideElementChanged;HX.prototype.onGuidePersistentChanged=HX.prototype.onGuidePersistentChanged;HX.prototype.onRenderGuideChanged=HX.prototype.onRenderGuideChanged;
HX.prototype.onActiveEndpointChanged=HX.prototype.onActiveEndpointChanged;HX.prototype.onMiniGuideVisibleChanged=HX.prototype.onMiniGuideVisibleChanged;HX.prototype.onGuideIsVisibleButNotPersistentChanged=HX.prototype.onGuideIsVisibleButNotPersistentChanged;HX.prototype.onGuidePersistendAndVisibleChanged=HX.prototype.onGuidePersistendAndVisibleChanged;_.k([_.g(_.OI),_.t("design:type",Object)],HX.prototype,"ironResizableBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],HX.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],HX.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],HX.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],HX.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],HX.prototype,"disabled",void 0);
_.k([_.X(),_.t("design:type",Boolean)],HX.prototype,"guidePersistentAndVisible",void 0);_.k([_.EM("guidePersistentAndVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"onGuidePersistendAndVisibleChanged",null);_.k([_.X(),_.t("design:type",Boolean)],HX.prototype,"guideIsVisibleButNotPersistent",void 0);
_.k([_.EM("guideIsVisibleButNotPersistent"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.k([_.X(),_.t("design:type",Object)],HX.prototype,"miniGuideVisible",void 0);_.k([_.EM("miniGuideVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"onMiniGuideVisibleChanged",null);_.k([_.X(),_.t("design:type",Boolean)],HX.prototype,"forceMiniGuideClose",void 0);
_.k([_.X(),_.t("design:type",Object)],HX.prototype,"activeEndpoint",void 0);_.k([_.EM("activeEndpoint"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"onActiveEndpointChanged",null);_.k([_.X(),_.t("design:type",Boolean)],HX.prototype,"renderGuide",void 0);_.k([_.EM("renderGuide"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"onRenderGuideChanged",null);
_.k([_.X(),_.t("design:type",Object)],HX.prototype,"guideOpened",void 0);_.k([_.X(),_.t("design:type",Boolean)],HX.prototype,"guidePersistent",void 0);_.k([_.EM("guidePersistent"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"onGuidePersistentChanged",null);_.k([_.X(),_.t("design:type",Object)],HX.prototype,"guideUserStateOpened",void 0);_.k([_.X(),_.t("design:type",String)],HX.prototype,"pageUrl",void 0);
_.k([_.X(),_.t("design:type",String)],HX.prototype,"pageType",void 0);_.k([_.X(),_.t("design:type",Number)],HX.prototype,"cachedClientWidth",void 0);_.k([_.X(),_.t("design:type",Object)],HX.prototype,"guideElement",void 0);_.k([_.X({selector:_.Y6}),_.t("design:type",Object)],HX.prototype,"isFullscreenShorts",void 0);_.k([_.EM("guideElement"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"onGuideElementChanged",null);
_.k([_.EM("guidePersistentAndVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"guidePersistentAndVisibleChanged",null);_.k([_.i6("guideIsVisibleButNotPersistent"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.k([_.EM("miniGuideVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"miniGuideVisibleChanged",null);_.k([_.i6("guideOpened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"guideOpenedChanged",null);_.k([_.EM("activeEndpoint"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"activeEndpointChanged",null);
_.k([_.i6("pageUrl"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"resetGuide",null);_.k([_.i6("cachedClientWidth"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"cachedClientWidthChanged",null);_.k([_.EM("guideOpened","guidePersistent"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"computeGuidePersistentAndVisible",null);
_.k([_.i6("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"observeForMiniGuideVisible",null);_.k([_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HX.prototype,"onResize",null);HX=_.k([_.b({disableElementRegistration:!0,is:"yt-guide-manager"})],HX);var V1t=_.A(HX,"yt-guide-manager",void 0,{mode:_.qi("kevlar_poly_si_batch_j081")?1:2});var N5=function(){var E=_.r.apply(this,arguments)||this;E.JSC$17635_keyboardInUse=!1;E.boundHandleCapturedKeydownEvent=function(B){E.handleCapturedKeydownEvent(B)};
return E};
_.L(N5,_.r);_.l=N5.prototype;_.l.attached=function(){this.listenToDocument(document)};
_.l.listenToDocument=function(E){E.addEventListener("keydown",_.Kq(this,this.onKeyDownEvent));E.addEventListener("keyup",_.Kq(this,this.onKeyUpEvent));E.addEventListener("mousedown",_.Kq(this,this.onMouseDownEvent));_.d("desktop_keyboard_capture_keydown_killswitch")||E.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);E.addEventListener("yt-page-data-updated",_.Kq(this,this.onPageUpdate))};
_.l.detached=function(){this.unlistenFromDocument(document)};
_.l.unlistenFromDocument=function(E){E.removeEventListener("keydown",_.Kq(this,this.onKeyDownEvent));E.removeEventListener("keyup",_.Kq(this,this.onKeyUpEvent));E.removeEventListener("mousedown",_.Kq(this,this.onMouseDownEvent));_.d("desktop_keyboard_capture_keydown_killswitch")||E.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);E.removeEventListener("yt-page-data-updated",_.Kq(this,this.onPageUpdate))};
_.l.ready=function(){_.Q().addProvider({provide:_.ZR,useValue:this})};
_.l.isKeyBoardInUse=function(){return this.JSC$17635_keyboardInUse};
_.l.handleCapturedKeydownEvent=function(E){if(E.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(E)};
_.l.onMouseDownEvent=function(){this.JSC$17635_keyboardInUse=!1};
_.l.onPageUpdate=function(){if(_.d("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.d("web_shorts_keyboard_shortcut_usage_log")){_.Uw.clear();for(var E=_.p(_.AY),B=E.next();!B.done;B=E.next()){var I=_.p(B.value);B=I.next().value;I=I.next().value;I=_.wA(I);_.Uw.set(B,I);_.XD(_.nC(),_.Oi(),I)}_.kt.clear();E=_.p(_.jQ);for(B=E.next();!B.done;B=E.next())I=_.p(B.value),B=I.next().value,I=I.next().value,I=_.wA(I),_.kt.set(B,I),_.XD(_.nC(),_.Oi(),I);_.r3(_.nC(),_.Oi(),[].concat(_.ad(_.kt.values()),
_.ad(_.Uw.values())));_.b1(_.nC(),[].concat(_.ad(_.kt.values()),_.ad(_.Uw.values())))}};
_.l.onMiniplayerActiveChange=function(){var E;(E=_.Q().resolve(_.W3).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(E.document):this.unlistenFromDocument(E.document))};
_.l.ignoreKeyEvent=function(E){if(E.ctrlKey||E.altKey)if(_.d("kevlar_macro_markers_keyboard_shortcut")){if(E.keyCode!==37&&E.keyCode!==39)return!0}else return!0;var B=_.W8(E)||[];return _.rgt(B)?!0:E.defaultPrevented?(e0(E.keyCode,E.shiftKey,this.isShortsPage),!0):E.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(E):!1};
_.l.isSpacebarClick=function(E){var B=E||window.event;var I;B.composedPath&&typeof B.composedPath==="function"?I=B.composedPath():I=B.path;I&&I.length?B=I[0]:(B=B||window.event,B=B.target||B.srcElement,B.nodeType==3&&(B=B.parentNode));return B&&E.keyCode===32&&(E=B.tagName==="BUTTON"||B.tagName==="A"||B.tagName==="INPUT",B=(B=B.getAttribute("role"))&&(B==="option"||B==="button"||B.indexOf("menuitem")===0),E||B)?!0:!1};
_.l.onKeyDownEvent=function(E){if(!this.ignoreKeyEvent(E)&&(E.keyCode===191&&(E.shiftKey||E.metaKey?E.repeat!=null&&E.repeat||(this.openHotkeyDialog(),e0(E.keyCode,E.shiftKey,this.isShortsPage)):(this.focusSearchBox(),E.preventDefault())),!E.metaKey)){var B=_.Q().resolve(_.W3);switch(E.keyCode){case 9:this.JSC$17635_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(E);break;case 84:B.pipController.getWindow()&&window.focus();this.toggleTheaterMode(E.keyCode,E.shiftKey);break;case 73:B.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(E.keyCode,E.shiftKey);break;case 70:if(this.isShortsPage&&_.d("web_fullscreen_shorts")){_.oaT();break}this.isMiniplayerActive()?B.pipController.getWindow()&&(B.close(!0),window.focus()):this.passEventToPlayer(E);break;case 27:this.closeMiniplayer(E.keyCode,E.shiftKey)||this.passEventToPlayer(E);break;case 13:E.shiftKey&&_.d("web_ephemeral_actions")&&_.Q().resolve(_.BJ).activate(E);break;default:this.passEventToPlayer(E)}}};
_.l.onKeyUpEvent=function(E){if(!this.ignoreKeyEvent(E))if(_.d("web_speedmaster_spacebar_control")&&E.keyCode===32)this.handlePlayerSpaceKey(E,!0);else{var B=this.getPlayerManager();B&&(B=B.getPlayer())&&B.handleGlobalKeyUp(E.keyCode,E.shiftKey,E.ctrlKey,E.altKey,E.metaKey,E.key,E.code)}};
_.l.getPlayerManager=function(){var E=_.jx(),B=_.Q().resolve(_.Fx(_.oS));return E&&B&&B.isOnWatch()?E:null};
_.l.passEventToPlayer=function(E,B){var I=this,T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return!_.d("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&I.isMiniplayerActive()?T=_.Q().resolve(_.W3).getPlayerElement():I.inlinePreviewIsActive?(e=_.Ta(I.hostElement,"yt-get-inline-preview-player-action"))&&e[0]&&(T=e[0]):T=_.jx(),T?_.C(Y,T.getPlayerPromise(),3):Y.jumpTo(0);c=Y.yieldResult;B?c.handleGlobalKeyUp(E.keyCode,E.shiftKey,E.ctrlKey,E.altKey,E.metaKey,E.key,E.code,E.repeat):c.handleGlobalKeyDown(E.keyCode,
E.shiftKey,E.ctrlKey,E.altKey,E.metaKey,E.key,E.code,E.repeat);E.keyCode!==38&&E.keyCode!==40&&e0(E.keyCode,E.shiftKey,I.isShortsPage);_.ER(Y)})};
_.l.focusSearchBox=function(){_.$O(this.hostElement,"yt-focus-searchbox")};
_.l.openHotkeyDialog=function(){_.$O(this.hostElement,"yt-open-hotkey-dialog")};
_.l.isMiniplayerActive=function(){return _.Q().resolve(_.W3).isMiniplayerActive()};
_.l.closeMiniplayer=function(E,B){return this.isMiniplayerActive()?(_.Q().resolve(_.W3).close(),e0(E,B,this.isShortsPage),!0):!1};
_.l.toggleTheaterMode=function(E,B){var I=_.Ze(_.t2().getState()),T=this.getPlayerManager(),e=_.d("disable_theater_mode_keyboard")||_.gU("START_IN_FULL_WINDOW_MODE");T&&!e&&(I=!I,_.KC()&&_.d("external_fullscreen")&&(I=!0),_.I2(this.hostElement,"yt-toggle-theater-mode",[I]),e0(E,B,this.isShortsPage))};
_.l.toggleMiniplayer=function(E,B){var I=this.getPlayerManager();if(this.isMiniplayerActive()){var T;((T=_.Q().resolve(_.Fx(_.oS)))==null?0:T.isOnWatch())?_.Q().resolve(_.W3).close(!0):_.pI(_.Q().resolve(_.W3));e0(E,B,this.isShortsPage)}else I&&(_.I2(this.hostElement,"yt-activate-miniplayer-from-watch-action"),e0(E,B,this.isShortsPage))};
_.l.handlePlayerSpaceKey=function(E,B){var I=!!_.jx()||this.isMiniplayerActive();I=_.d("disable_space_scroll_fix")||I;_.d("global_spacebar_pause")&&!this.isKeyBoardInUse()&&I&&(E.preventDefault(),this.passEventToPlayer(E,B))};
N5.prototype.onMiniplayerActiveChange=N5.prototype.onMiniplayerActiveChange;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],N5.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],N5.prototype,"ytdReduxBehavior",void 0);_.k([_.X({selector:_.dTc}),_.t("design:type",Boolean)],N5.prototype,"inlinePreviewIsActive",void 0);_.k([_.X({selector:_.Wz7}),_.t("design:type",Boolean)],N5.prototype,"isShortsPage",void 0);
_.k([_.X({selector:_.O3}),_.t("design:type",Boolean)],N5.prototype,"miniplayerIsActive",void 0);_.k([_.EM("miniplayerIsActive"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],N5.prototype,"onMiniplayerActiveChange",null);N5=_.k([_.b({disableElementRegistration:!0,is:"yt-hotkey-manager"})],N5);_.A(N5,"yt-hotkey-manager",void 0,{mode:_.qi("kevlar_poly_si_batch_j081")?1:2});var SL=function(){var E=_.r.apply(this,arguments)||this;E.loopStateEntityKey_=null;E.playlistLoopStateEntity_=null;E.isShuffleNextPlaylist=!1;E.PLAYER_EVENTS_=new Map;E.playerListenersSetup_=!1;E.videoSkipJob_=0;E.canAutoAdvance_=!1;E.playerManager_=null;E.TEST_ONLY={};return E};
_.L(SL,_.r);_.l=SL.prototype;_.l.ready=function(){_.Q().addProvider({provide:_.Hx,useValue:this.hostElement})};
_.l.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_)};
_.l.attached=function(){document.addEventListener("yt-navigate-start",_.Kq(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Kq(this,this.onYtNavigateFinish_))};
_.l.detached=function(){document.removeEventListener("yt-navigate-start",_.Kq(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Kq(this,this.onYtNavigateFinish_))};
_.l.updatePlaylistEventListeners=function(E,B){B&&!this.playerListenersSetup_?(this.playerManager_=E,this.registerPlaylistEventListeners_(E)):!B&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(E))};
_.l.setPlayer=function(E){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=E};
_.l.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.l.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.l.registerPlaylistEventListeners_=function(E){var B=this;E.getPlayerPromise().then(function(I){B.playerListenersSetup_||(B.ytPlayerListenerBehavior.listenToPlayerEvents(I,B.PLAYER_EVENTS_),B.playerListenersSetup_=!0)})};
_.l.removePlaylistEventListeners_=function(E){var B=this;E.getPlayerPromise().then(function(I){B.playerListenersSetup_&&(B.ytPlayerListenerBehavior.unlistenFromPlayerEvents(I,B.PLAYER_EVENTS_),B.playerListenersSetup_=!1)})};
_.l.setPlaylistComponent=function(E){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Kq(this,this.onPlaylistYtNavigate_)),E&&(E.data&&this.playlistComponent.data&&E.data.playlistId==this.playlistComponent.data.playlistId?(E.loopOn=this.playlistComponent.loopOn,E.shuffleOn=this.playlistComponent.shuffleOn):(E.loopOn=!1,E.shuffleOn=!1),this.isShuffleNextPlaylist&&(E.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=E;this.playlistComponent.addEventListener("yt-navigate",
_.Kq(this,this.onPlaylistYtNavigate_))};
_.l.setAutoplayRenderer=function(E){this.autoplayData=E};
_.l.setPlaylistData=function(E){this.currentPlaylistData_=E;_.$O(this.hostElement,"yt-playlist-data-updated");_.a_.isEmpty(E)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(E)};
_.l.setPlayerPlaybackControlData=function(E){this.playerManager_&&this.playerManager_.updatePlayerComponents(E.playlistPanelRenderer)};
_.l.getPlaylistData=function(){return this.currentPlaylistData_};
_.l.getTempData_=function(E,B){if(this.playlistComponent==null)return null;E={};this.playlistComponent.shuffleOn&&(E.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(E.loop_on=this.playlistComponent.loopOn);B&&(E.autonav="1",_.Q().resolve(_.P$),B=_.DD(),B>0&&(E.lact=B),this.playerManager_&&(B=this.playerManager_.getPlayer())&&B.shouldSendVisibilityState()&&(B=B.getVisibilityState(),B!=0&&(E.vis=B)));_.d("enable_unknown_lact_fix_on_html5")&&(_.Q().resolve(_.P$),E.lact=_.DD());
return E};
_.l.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.l.setLoopStateEntityKey_=function(E){var B;this.loopStateEntityKey_=((B=this.getPlaylistLoopData_(E))==null?void 0:B.playlistLoopStateEntityKey)||null};
_.l.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.l.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.l.skipVideo=function(){var E=this,B=_.d("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||B)B=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.wT(_.Ll,function(){E.onPlaylistNext();E.videoSkipJob_=0},B)};
_.l.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Ll.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.l.isInBackground_=function(){var E=window.document.visibilityState;return!(!E||E=="visible")};
_.l.onPlaylistIndex_=function(E){this.playlistComponent&&(E=this.playlistComponent.data.contents[E].playlistPanelVideoRenderer.navigationEndpoint,_.$O(this.hostElement,"yt-navigate",{endpoint:E,tempData:this.getTempData_(E)}))};
_.l.onPlayerStateChange_=function(E){if(E=E==0&&this.playlistComponent&&this.canAutoAdvance_)E=_.fU.getInstance(),E=!(E.autonavState_===3?E.autonavPauseReason_&&E.autonavPauseReason_.inputBoxFocus===!0:E.autonavState_===1&&E.disabledAutonavPauseReason_&&E.disabledAutonavPauseReason_.inputBoxFocus===!0);E&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.l.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.l.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.l.navigateToAutoplayWatchEndpoint_=function(E,B,I){var T=this.playlistComponent.data.currentIndex,e=this.getNumPlayableVideos_();E=="NORMAL"&&B=="autoplayVideo"&&T+1>=e&&I||!(E=this.getVideoEndpoint_(E,B))||(I=this.getTempData_(E,I),_.$O(this.hostElement,"yt-navigate",{endpoint:E,tempData:I}))};
_.l.getNumPlayableVideos_=function(){for(var E=0,B=_.p(this.playlistComponent.data.contents||[]),I=B.next();!I.done;I=B.next())I.value.playlistPanelVideoRenderer&&(E+=1);return E};
_.l.getVideoEndpoint_=function(E,B){if(this.autoplayData&&this.autoplayData.sets)for(var I=0,T=this.autoplayData.sets.length;I<T;I++){var e=this.autoplayData.sets[I];if(e.mode==E){if(e[B])return e[B];break}}else E=new _.P7("AutoplayData is undefined in playlist manager","Mode: "+E+" endpoint: "+B),_.OG(E)};
_.l.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.l.onPlaylistYtNavigate_=function(E){if(E.detail.endpoint){E.stopPropagation();var B=E.detail;B.tempData=this.getTempData_(E.detail.endpoint);_.$O(this.hostElement,"yt-navigate",B)}};
_.l.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.l.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.l.playlistLoopStateEntityChanged_=function(E){var B=this,I,T,e;return _.a(function(c){if(c.nextAddress==1){if(!E)return c.return();I=E.state==="PLAYLIST_LOOP_STATE_ONE";return B.playerManager_?_.C(c,B.playerManager_.getPlayerPromise(),3):c.jumpTo(2)}c.nextAddress!=2&&(T=c.yieldResult,T.setLoopVideo(I));e=E.state==="PLAYLIST_LOOP_STATE_ALL";B.playlistComponent&&(B.playlistComponent.loopOn=e);_.ER(c)})};
_.l.getPlaylistLoopData_=function(E){var B,I;if(E=E==null?void 0:(B=E.playlistButtons)==null?void 0:(I=B.menuRenderer)==null?void 0:I.topLevelButtons)for(B=_.p(E),I=B.next();!I.done;I=B.next())if(I=I.value,I.playlistLoopButtonRenderer)return I.playlistLoopButtonRenderer};
_.l.getLoopStateCommand_=function(E){var B=this.getPlaylistData(),I;B=((I=this.getPlaylistLoopData_(B))==null?void 0:I.states)||[];var T;E=(T=_.h(B[E?1:2],_.u6R))==null?void 0:T.button;var e;return(e=_.h(E,_.NT))==null?void 0:e.command};
_.l.onPlayerLoopChange_=function(E){this.playlistLoopStateEntity_&&(E?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(E=this.getLoopStateCommand_(E))&&this.ytComponentBehavior.resolveCommand(E)};
_.l.onSleepTimerSettingsChanged_=function(E){this.canAutoAdvance_=E!=="End of video"};
SL.prototype.onPlaylistLoopStateEntityChanged=SL.prototype.onPlaylistLoopStateEntityChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],SL.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",_.XK)],SL.prototype,"ytPlayerListenerBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],SL.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],SL.prototype,"loopStateEntityKey_",void 0);
_.k([_.X({selectorArgs:["loopStateEntityKey_"],selector:_.oR4}),_.t("design:type",Object)],SL.prototype,"playlistLoopStateEntity_",void 0);_.k([_.EM("playlistLoopStateEntity_"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],SL.prototype,"onPlaylistLoopStateEntityChanged",null);SL=_.k([_.b({disableElementRegistration:!0,is:"yt-playlist-manager"})],SL);_.A(SL,"yt-playlist-manager",void 0,{mode:_.qi("kevlar_poly_si_batch_j081")?1:2});var q6L,FNL=function(){if(q6L!==void 0)return q6L;var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return q6L=E};var Jt=function(){var E=_.r.apply(this,arguments)||this;E.lastCallback=null;E.getAccountLinkPromises={};E.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);E.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return E};
_.L(Jt,_.r);_.l=Jt.prototype;_.l.getLocation=function(){return window.location.href};
_.l.getCompletionUrl=function(){return _.VT(this.getLocation())};
_.l.containsRedirectState=function(E){return(E=_.LJ(_.Q4J(E)))?(new URLSearchParams(E)).get("redirect_state")!==null:!1};
_.l.createGalConfig=function(E,B){var I=new eiT;E=I=B?this.getPopupOrRedirectSetting(I,_.HA("LINK_API_KEY"),_.HA("LINK_API_KEY_REDIRECT"),E):lu1(I,_.HA("LINK_API_KEY"));E.authUser=_.HA("SESSION_INDEX")||0;E.supportedFlows=new Set([4]);return E.build()};
_.l.getPopupOrRedirectSetting=function(E,B,I,T){this.isGalInteractionPopupMode(T)?(E.interactionMode=0,E=lu1(E,B)):(E.interactionMode=1,B=this.getCompletionUrl(),E.completionUrl=B,E=lu1(E,I));return E};
_.l.isGalInteractionPopupMode=function(E){if(this.redirectModeProviderAllowlist.has(E))switch(E){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.d("main_web_redirect_integration_riot");default:return!1}return!0};
_.l.getStatusEntityKeyForProviderId=function(E){return _.lm(E+":all","accountLinkStatusEntity")};
_.l.findNestedPropValue=function(E,B){var I=!1,T=null;JSON.stringify(E,function(e,c){I||e!==B||(I=!0,T=c);return I?null:c});
return T};
_.l.findAccountLinkButtonViewModel=function(E,B){var I=null,T=!1;JSON.stringify(E,function(e,c){T||c.accountLinkStatusEntityKey!==B||c.accountLinkStatusSecondaryEntityKey||(T=!0,I=c);return T?null:c});
return I};
_.l.executeLinkingSuccessOrFailureCommands=function(E,B,I){var T=null,e;(B==null?0:(e=B.url)==null?0:e.includes("account_sharing"))?T=B==null?void 0:B.response:T=B==null?void 0:B.response;(B=this.findAccountLinkButtonViewModel(T,E))?(E=I?this.findNestedPropValue(B,"onSuccessCommand"):this.findNestedPropValue(B,"onFailureCommand"))?_.YO([E],this.hostElement):_.Xx(Error("dl")):_.Xx(Error("el`"+E))};
_.l.handleInitializeRequest=function(E,B){var I=this,T=Xud(this.createGalConfig(E,!0));this.containsRedirectState(this.getLocation())?u7T(E,T.config,T.galService).then(function(e){var c=I.getStatusEntityKeyForProviderId(E);if(e.statusCode===1)B&&I.executeLinkingSuccessOrFailureCommands(c,B,!0),e=I.getLocation().indexOf("#"),e!==-1&&window.history.pushState(null,"",I.getLocation().substring(0,e));else return B&&I.executeLinkingSuccessOrFailureCommands(c,B,!1),Promise.reject(Error(e.statusMessage))}).catch(function(e){_.OG(e);
_.hK("gamingAccountLinkStatusChanged",{serviceId:E,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(e)}):this.getAccountLinkPromises[E]=T.startLinkingSession({serviceId:E})};
_.l.handleAccountLinkCommand=function(E){_.h(E,FGL)&&this.handleLinkRequest(_.h(E,FGL))};
_.l.handleLinkRequest=function(E){var B=this,I=E.thirdPartyId;if(I)if(this.isGalInteractionPopupMode(I)){var T=function(){B.closeAndFire("ytd-gaming-account-link-setting-renderer",E.onFailureCommand)},e=function(){B.closeAndFire("ytd-gaming-account-link-setting-renderer",E.onSuccessCommand)};
this.lastCallback=e;this.getAccountLinkPromises[I].then(function(c){rC2(c).then(function(Y){Y.statusCode===1?e():T()})}).catch(function(){T()})}else this.getAccountLinkPromises[I].then(function(c){rC2(c).then(function(Y){if(Y.statusCode!==1)return Promise.reject(Error(Y.statusMessage))})}).catch(function(c){_.OG(c);
_.hK("gamingAccountLinkStatusChanged",{serviceId:I,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(c)})};
_.l.closeAndFire=function(E,B){_.I2(this.hostElement,"yt-close-popup-action",[E]);B&&_.YO([B],this.hostElement)};
_.l.handleAccountUnlinkCommand=function(E){_.h(E,DC8)&&this.handleUnlinkRequest(_.h(E,DC8))};
_.l.handleUnlinkRequest=function(E){var B=this,I=E.thirdPartyId;if(I){var T=function(){B.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",E.onFailureCommand)},e=function(){B.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",E.onSuccessCommand)};
this.lastCallback=e;var c=Xud(this.createGalConfig(I,!1));this.unlinkUserGal(c,I).then(function(Y){Y.statusCode===1?e():T()}).catch(function(){T()})}};
_.l.unlinkUserGal=function(E,B){return E.deleteLink(B)};
_.l.handleLogAccountLinkingEventCommand=function(E){_.d("enable_gel_log_commands")&&_.h(E,KGT)&&(E=_.h(E,KGT).event)&&_.hK("gamingAccountLinkStatusChanged",E)};
_.Up.Object.defineProperties(Jt,{template:{configurable:!0,enumerable:!0,get:function(){return FNL()}}});
_.k([_.g(_.E6.YtOpenPopupBehavior),_.t("design:type",Object)],Jt.prototype,"ytOpenPopupBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Jt.prototype,"ytActionHandlerBehavior",void 0);Jt=_.k([_.b({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Jt);_.A(Jt,"ytd-third-party-manager",function(){return FNL()},{mode:_.qi("kevlar_poly_si_batch_j081")?1:2});var Dkm,KNT=function(){return Dkm!==void 0?Dkm:Dkm=document.createElement("template")};
document.head.appendChild(KNT().content);var Ra2,E2t=function(){if(Ra2!==void 0)return Ra2;var E=document.createElement("template");_.G(E,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");E.content.insertBefore(KNT().content.cloneNode(!0),E.content.firstChild);E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Ra2=E};var Bh8=_.km(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),WX=function(){var E=_.r.apply(this,arguments)||this;E.currentPage=void 0;E.renderLoadingStateJobId=0;E.updatePageDataJobId=0;E.pageDisposeJobsets=new WeakMap;E.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","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"};E.applyZoomTransition=_.EF("web_page_transition_type")==="zoom";E.applySlideTransition=_.EF("web_page_transition_type")==="slide";E.TEST_ONLY=void 0;return E};
_.L(WX,_.r);_.l=WX.prototype;_.l.ready=function(){var E=_.Q();E.addProvider({provide:_.oS,useValue:this});E.addProvider({provide:_.Hnr,useValue:this})};
_.l.created=function(){this.pagePool=new svI;this.contextSwitcher=new WEI};
_.l.attached=function(){_.$O(this.hostElement,"attached");var E=_.Q().resolve(_.Fx(_.Zk));E&&(this.contextSwitcher.JSC$17459_networkService_=E);this.viewTransitionManager=_.Q().resolve(_.Fx(_.hG9));this.setupPageTransitionAnimation()};
_.l.getPageOffset=function(E){return E.getScrollTop()};
_.l.setPageOffset=function(E,B){try{E.setScrollTop(B)}catch(I){}};
_.l.setPageOffsetForNavigation=function(E,B){_.$O(this.hostElement,"yt-navigate-set-page-offset",{page:E,offset:B===void 0?0:B})};
_.l.pauseActiveContext=function(){var E=this.contextSwitcher;E.activeContext_&&E.activeContext_.pause()};
_.l.getModuleNameForType=function(E){return E==="watch"?_.d("kevlar_watch_fixie")?"watchFixie":_.d("kevlar_watch_grid")?"watchGrid":"watchFlexy":E==="shorts"||E==="search"?E:"browse"};
_.l.attachPage=function(E){var B,I=!_.d("pc_is_attached_ks")&&(E==null?void 0:(B=E.polymerController)==null?void 0:B.isAttached);if(!E.isAttached&&!I)try{_.n(this.hostElement).appendChild(E)}catch(e){var T;_.OG(new _.P7("Error attaching page element for component",{origin:(T=this.currentPage)==null?void 0:T.is,component:E.is}))}};
_.l.setActivePage=function(E){var B=this,I=!1,T=function(){var e=B.isOnWatch(),c=B.currentPage;if(E)if(E!==B.currentPage){c&&(c.hidden=!0,c.active=!1,c.removeAttribute("role"));B.currentPage=E;var Y,v=KP((Y=B.data)==null?void 0:Y.endpoint);c&&_.$O(B.hostElement,"yt-page-type-changed",{oldPageType:c.is,newPageType:E.is,newPageSubtype:v});_.gp().dispatch(_.BP({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:E.is}));_.gp().dispatch(_.BP({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:v||""}));E.hidden=
!1;B.attachPage(E);E.active=!0;E.setAttribute("role","main");c&&B.setPageOffsetForNavigation(E,0);_.d("kevlar_remove_page_dom_on_switch")&&!e&&c&&_.n(B.hostElement).removeChild(c)}else I=!0;else e=new _.P7("Unable to set active page",c?c.is:"unknown origin",(v=B.data)==null?void 0:v.endpoint),_.xV(e)};
this.viewTransitionManager?lQ8(this.viewTransitionManager,T,this.viewTransitionConfigForSetActivePage(this.currentPage,E)):T();return I};
_.l.viewTransitionConfigForSetActivePage=function(E,B){return _.d("web_thumbnail_to_watch_transition")&&(E==null?void 0:E.is)==="ytd-browse"&&this.isWatchPage(B)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(E==null?void 0:E.is)==="ytd-browse"&&(B==null?void 0:B.is)==="ytd-browse"&&E!==B?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.l.updatePageData=function(E){var B=this,I=this.data;this.updatePageDataJobId&&_.Ll.cancelJob(this.updatePageDataJobId);this.data=E;return new _.cC(function(T){var e=function(){E.filler?B.performDataUpdate(E,I):uC2(function(){B.performDataUpdate(E,I)});
var y=_.gB();_.Su(y,"cr")||y.processSignal("cr");T()},c=function(){E&&E.page==="watch"?B.updatePageDataJobId=_.wT(_.Ll,e):e()};
if(_.d("kevlar_enable_mss_page_modules_client")&&E){var Y=_.Q().resolve(_.r6),v=B.getModuleNameForType(E.page);(Y=TA1(Y,[v]))?Y.then(c):c()}else c()})};
_.l.isDownloadsPage=function(E){var B,I;return(E==null?void 0:(B=E.endpoint)==null?void 0:(I=B.browseEndpoint)==null?void 0:I.browseId)==="FEdownloads"};
_.l.setPlayerSyncInterval=function(E){var B;return _.a(function(I){if(I.nextAddress==1)return _.C(I,_.Q().resolve(_.qN),2);B=I.yieldResult;B.setUpPositionSyncInterval(E);_.ER(I)})};
_.l.performDataUpdate=function(E,B){_.d("kevlar_early_popup_close")||_.I2(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var I=!E.filler;I&&(_.nO("lps"),_.d("config_age_report_killswitch")||KgL());var T=fP(E),e,c=!1;if(_.d("kevlar_remove_page_dom_on_switch")){var Y=B&&fP(B);T===Y&&(e=this.getCurrentPage())}e||(e=u$(this.pagePool,T));I&&GA2(this.pagePool.elementPoolPopulator,T);I&&!this.renderLoadingStateJobId&&(c=this.setActivePage(e));if(e){Y=T==="watch";var v=
T==="shorts";_.d("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(e);if(Y||v)e.playerData=E.playerResponse;if(v){E.reelWatchSequenceResponse?e.reelWatchSequenceResponse=E.reelWatchSequenceResponse:E.cachedReelWatchSequenceResponse&&(e.reelWatchSequenceResponse=E.cachedReelWatchSequenceResponse);e.currentEndpoint=E.endpoint;var y;e.isPreviousPageShorts=!!(B==null?0:(y=B.endpoint)==null?0:y.reelWatchEndpoint);E.cachedReelWatchSequenceResponse=E.reelWatchSequenceResponse||
E.cachedReelWatchSequenceResponse||(B==null?void 0:B.cachedReelWatchSequenceResponse);e.cachedReelWatchSequenceResponse=E.cachedReelWatchSequenceResponse}y=this.isDownloadsPage(E);var Z=this.isDownloadsPage(B);y&&!Z?this.setPlayerSyncInterval(6E5):!y&&Z&&this.setPlayerSyncInterval();_.d("block_all_player_prefetch_requests")||this.preparePrefetchRequest(E,e,I,Y,v);ckd(_.Q().resolve(_.W3),B,E);_.SbX(_.Q().resolve(_.P$));_.d("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(e);
I?(I=typeof e.loadPage,I==="function"?(e.pageContext=XcO(this.contextSwitcher,e,e.data!==E.response),B=function(){e.loadPage(E.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&e.is==="ytd-browse"&&c?this.applySlideTransition?lQ8(this.viewTransitionManager,B,{transitionName:"slide"}):lQ8(this.viewTransitionManager,B,{transitionName:"zoom"}):B()):_.GF(new _.P7("b/38014653 ",[T,
e.is,e.nodeName,I,e.isAttached,B&&fP(B),this.hostElement.children.length])),_.nO("pdl")):(e.hidden=!0,E.response.filler=!0,e.data=E.response,this.attachPage(e));_.$O(this.hostElement,"yt-page-data-updated",{pageType:T})}_.PC(_.Ll,function(){_.d("logging_avoid_blocking_during_navigation")&&_.Dic().transition("none");var P=R8g(),z=e;if(E){var m=OOT(E),u=nOO(E),x;a:{if(E.playerResponse){var M=E.playerResponse,N;if((x=M.auxiliaryUi)==null?0:(N=x.messageRenderers)==null?0:N.upsellDialogRenderer){x=M.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(E.response&&(x=E.response,(M=x.overlay)==null?0:M.upsellDialogRenderer)){x=x.overlay.upsellDialogRenderer;break a}x=void 0}var W;var U;N=(W=E.playerResponse)==null?void 0:(U=W.auxiliaryUi)==null?void 0:U.messageRenderers;W=(N==null?void 0:N.enforcementMessageViewModel)||(N==null?void 0:N.bkaEnforcementMessageViewModel);W=(W==null?void 0:W.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?W:void 0;var q;a:{if(E.response&&(U=E.response,(q=U.overlay)==null?0:q.commandWrapperPromoRenderer)){q=
U.overlay.commandWrapperPromoRenderer;break a}q=void 0}KE8(P,m,u,x,W,q,z)}})};
_.l.preparePrefetchRequest=function(E,B,I,T,e){var c,Y,v,y,Z,P,z,m,u,x,M,N,W,U,q;return _.a(function(f){if(f.nextAddress==1)return!I||!T&&!e||_.d("kevlar_disable_background_prefetch")&&_.JA(_.FU6)()===0?f.return():(c=_.Ak(B))?_.C(f,c.getPlayerPromise(),2):f.return();Y=f.yieldResult;v=_.Q().resolve(_.Fx(_.Zk));if(!v)return f.return();if(e)return y=_.eD(_.$C),Se1(y,(Z=E.endpoint)==null?void 0:Z.reelWatchEndpoint,B.reelWatchSequenceResponse,Y,v),f.return();m=(P=E.response)==null?void 0:(z=P.responseContext)==
null?void 0:z.webResponseContextExtensionData;if(!m)return f.return();W=(u=E.response)==null?void 0:(x=u.contents)==null?void 0:(M=x.twoColumnWatchNextResults)==null?void 0:(N=M.autoplay)==null?void 0:N.autoplay;U=_.Q().resolve(_.Hx);q=_.eD(_.$C);JaH(q,m,Y,v,U,W);_.ER(f)})};
_.l.movePlayerToWatch=function(E){var B=this,I,T;return _.a(function(e){I=u$(B.pagePool,"watch");T=I.getPlayerContainer();E.appendTo(T);_.ER(e)})};
_.l.movePlayerToShorts=function(E){var B=this,I,T,e;return _.a(function(c){I=u$(B.pagePool,"shorts");T=I.getPlayerContainer();(e=E)==null||e.appendTo(T,void 0,!0);_.ER(c)})};
_.l.getPlayerFromWatch=function(){var E=u$(this.pagePool,"watch");return _.Ak(E)};
_.l.getPlayerFromShorts=function(){var E=u$(this.pagePool,"shorts");return _.Ak(E)};
_.l.startLoadingWatch=function(){var E=u$(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Ll.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(E)};
_.l.startLoadingShorts=function(){var E=u$(this.pagePool,"shorts");this.setActivePage(E)};
_.l.getCurrentPage=function(){return this.currentPage};
_.l.getDestinationPageType=function(){return this.destinationPageType};
_.l.getCurrentData=function(){return this.data};
_.l.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.l.isOnShorts=function(){var E;return((E=this.currentPage)==null?void 0:E.is)==="ytd-shorts"};
_.l.isWatchPage=function(E){return!!E&&(E.is==="ytd-watch-flexy"||E.is==="ytd-watch-fixie"||E.is==="ytd-watch-grid")};
_.l.preparePage=function(E,B){var I=this,T=function(){var Y=I.pagePool.preparePage(E,I.currentPage,B);Y&&I.attachPage(Y)},e=function(Y){_.ni(Y,B);
_.OG(Y)};
if(_.d("kevlar_enable_mss_page_modules_client")){var c=this.getModuleNameForType(E);if(c=TA1(_.Q().resolve(_.r6),[c])){c.then(T.bind(this)).catch(e.bind(this));return}}try{T()}catch(Y){e(Y)}};
_.l.lazyPrepareCriticalPages=function(E,B){E=KP(B)||E;_.d("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(E).then(this.maybePrepareWatchPage.bind(this,E)):this.maybePrepareWatchPage(E)};
_.l.maybePrepareWatchPage=function(E){E!=="watch"&&_.PC(_.Ll,this.preparePage.bind(this,"watch"))};
_.l.downloadPageModules=function(E){E=this.getModuleNameForType(E);var B=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);B.delete(E);var I=_.Q().resolve(_.r6);I.JSC$16198_loadModules(E);return I.JSC$16198_loadModules.apply(I,_.ad(B))};
_.l.renderPageLoadingState=function(E,B){this.preparePage(E,B);var I=u$(this.pagePool,E);I.loadingData&&(I.loadingData.endpoint=B);I.loading=!0;this.setActivePage(I);E==="watch"&&_.$O(this.hostElement,"yt-guide-close")};
_.l.prepareForNavigation=function(E,B){var I=this;if(this.currentPage&&this.data){var T=KP(B)||E;this.destinationPageType=T;fP(this.data)==T&&_.$O(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(E==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.Ll.cancelJob(this.renderLoadingStateJobId);_.Q().resolve(_.W3).deactivate(B);var e=this.data;this.renderLoadingStateJobId=_.dT(_.Ll,function(){if(I.data!=e){var c=u$(I.pagePool,E);I.setActivePage(c)}else I.renderPageLoadingState(E,
B);I.renderLoadingStateJobId=0},150)}};
_.l.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var E=new _.j7(1);this.currentPage.pageDisposeJobs.forEach(function(B){_.Uy(E,B)});
this.pageDisposeJobsets.set(this.currentPage,E)}};
_.l.flushPageDisposeJobset=function(E){var B=this.pageDisposeJobsets.get(E);B&&(B.flushJobs(),this.pageDisposeJobsets.delete(E))};
_.l.onYtStopOldPlayer=function(E,B){B=B===void 0?!1:B;var I,T=_.B7("kevlar_new_stop_old_player_logic_pages");if(_.d("kevlar_check_current_page_on_stop_old_player")&&(T.length===0||this.currentPage&&T.includes(this.currentPage.is)))if(this.data&&(I=fP(this.data)),fP(E)===I&&this.currentPage&&fP(this.currentPage.data)!==I)var e=_.Ak(this.currentPage);else I=fP(this.data),e=u$(this.pagePool,I),e=_.Ak(e);else this.data&&(I=fP(this.data),e=u$(this.pagePool,I),e=_.Ak(e));if(e)if(E=fP(E),T=u$(this.pagePool,
E),T=_.Ak(T),e==T)B&&!_.d("kevlar_disable_preemptive_player_reset")&&e.resetForNewPlayback();else if(B=I==="watch"&&E!=="watch",!B||E==="shorts"||_.BQZ()&&!VgI(this.data)&&E!=="yts-products"&&E!="mini_app"&&E!="playables")I=_.Q().resolve(_.W3),B&&I.isMiniplayerActive()&&I.pipController.getWindow()||e.stop()};
_.l.setupPageTransitionAnimation=function(){var E=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){TY(this.viewTransitionManager,"slide",{beforeTransition:function(){E.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){E.hostElement.style.viewTransitionName=""}});
TY(this.viewTransitionManager,"zoom",{beforeTransition:function(){E.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){E.hostElement.style.viewTransitionName=""}});
var B=_.RI("web_page_transition_exit_ms"),I=_.RI("web_page_transition_wait_ms"),T=_.RI("web_page_transition_enter_ms");if(!isNaN(B)||!isNaN(I)||!isNaN(T))if(B=B77(Bh8,B,I,T))I=document.createElement("style"),I.textContent=_.u54(B),document.head.appendChild(I)}};
_.Up.Object.defineProperties(WX,{template:{configurable:!0,enumerable:!0,get:function(){return E2t()}}});
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],WX.prototype,"ytActionHandlerBehavior",void 0);WX=_.k([_.b({disableElementRegistration:!0,is:"ytd-page-manager"})],WX);_.A(WX,"ytd-page-manager",function(){return E2t()},{mode:_.qi("kevlar_poly_si_batch_j081")?1:2});var Xa=function(E,B,I){I=I===void 0?!1:I;_.Cx.call(this);this.draggableElement=E;this.callbacks=B;this.allowClicks=I;this.dragOccurred=!1;this.internalDragger=new _.SM(this.draggableElement);this.dragDelay=new _.fg(this.delayedDrag.bind(this));$9d(this);this.allowClicks&&(_.h7l(this.internalDragger,5),E.addEventListener("click",_.Kq(this,this.validateClick),{capture:!0}))};
_.L(Xa,_.Cx);var $9d=function(E){_.vV(E.internalDragger,"earlycancel",function(){E.allowClicks&&(E.dragOccurred=!1)});
_.vV(E.internalDragger,"start",function(B){var I,T;(T=(I=E.callbacks).onStartDrag)==null||T.call(I,B);!B.defaultPrevented&&E.allowClicks&&(E.dragOccurred=!0)});
_.vV(E.internalDragger,"beforedrag",function(B){B.preventDefault();E.lastOffset=new _.Cb(B.clientX-E.internalDragger.startX,B.clientY-E.internalDragger.startY);E.dragDelay.start()});
_.vV(E.internalDragger,"end",function(){E.dragDelay.stop();var B,I;(I=(B=E.callbacks).onEndDrag)==null||I.call(B);E.lastOffset=void 0})};
Xa.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
Xa.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Kq(this,this.validateClick),{capture:!0})};
Xa.prototype.validateClick=function(E){this.dragOccurred&&(this.dragOccurred=!1,E.stopPropagation(),E.preventDefault())};var ra=function(E,B){_.Cx.call(this);this.JSC$17660_resizeContainer=E;this.callbacks=B;this.aspectRatio=16/9;this.JSC$17660_resizers=[];E=_.p(this.JSC$17660_resizeContainer.children);for(B=E.next();!B.done;B=E.next())Iv8(this,B.value)};
_.L(ra,_.Cx);ra.prototype.disposeInternal=function(){for(var E=_.p(this.JSC$17660_resizers),B=E.next();!B.done;B=E.next())B.value.dispose();E=_.p(this.JSC$17660_resizeContainer.children);for(B=E.next();!B.done;B=E.next())B.value.setAttribute("disabled","");this.JSC$17660_resizers.length=0};
ra.prototype.setSize=function(E){this.currentMiniplayerSize=E};
ra.prototype.setAspectRatio=function(E){this.aspectRatio=E};
ra.prototype.update=function(E,B){for(var I=_.p(this.JSC$17660_resizeContainer.children),T=I.next();!T.done;T=I.next()){T=T.value;var e=T.getAttribute("alignment");_.qK(T,"disabled",e===E||e===B)}};
var Iv8=function(E,B){var I=B.getAttribute("alignment"),T=new Xa(B,{onStartDrag:function(e){if(B.hasAttribute("disabled"))e.preventDefault();else{E.dragStartSize=E.currentMiniplayerSize;var c,Y;(Y=(c=E.callbacks).onStartResize)==null||Y.call(c)}},
onDrag:function(e){if(E.dragStartSize){I!=="north"&&I!=="west"||e.scale(-1);var c=I==="north"||I==="south";e=c?e.y:e.x;c&&E.aspectRatio>=1?e*=E.aspectRatio:!c&&E.aspectRatio<1&&(e/=E.aspectRatio);E.callbacks.onResize(E.dragStartSize+e)}}});
E.JSC$17660_resizers.push(T)};var ThH,eH8=function(){return ThH!==void 0?ThH:ThH=document.createElement("template")};
document.head.appendChild(eH8().content);var lv9;var c6m=_.rp(function(E){var B=_.oH(),I=E.onDrag,T=E.onDragStart,e=E.onDragEnd,c=_.XS(E,{allowClicks:!1,dragThreshold:5}),Y=c.dragThreshold,v=c.allowClicks;E=c.children;c=c.className;var y=void 0,Z=void 0,P=new _.Cb(0,0),z=!1;_.uW(function(){y=new _.SM(B.value);Z=new _.fg(u);m(y,Z);if(v()){_.h7l(y,Y());var M;(M=B.value)==null||M.addEventListener("click",x,{capture:!0})}_.dt(function(){var N;(N=y)==null||N.dispose();if(v()){var W;(W=B.value)==null||W.removeEventListener("click",x,{capture:!0})}})});
var m=function(M,N){_.vV(M,"earlycancel",function(){v()&&(z=!1)});
_.vV(M,"start",function(W){T==null||T(W);W.defaultPrevented||v()&&(z=!0)});
_.vV(M,"beforedrag",function(W){y&&Z&&(W.preventDefault(),P=new _.Cb(W.clientX-y.startX,W.clientY-y.startY),Z.start())});
_.vV(M,"end",function(){N.stop();e==null||e();P=new _.Cb(0,0)})},u=function(){P&&I(P)},x=function(M){z&&(z=!1,M.stopPropagation(),M.preventDefault())};
return _.w("yt-draggable",{el:B,class:_.RQ("ytDraggableComponentHost",c)},E)},"Wf");var iz2=_.rp(function(E){var B=_.p(_.lQ(0,void 0,"Pf10wb")),I=B.next().value,T=B.next().value;B=function(e){var c={},Y={};return _.w(c6m,{className:_.RQ("ytdMiniplayerComponentResizer",(c.ytdMiniplayerComponentResizerDisabled=function(){return e===E.horizontalAlignment()||e===E.verticalAlignment()},c.ytdMiniplayerComponentResizerNorth=e==="north",c.ytdMiniplayerComponentResizerEast=e==="east",c.ytdMiniplayerComponentResizerSouth=e==="south",c.ytdMiniplayerComponentResizerWest=e==="west",c)),
onDragStart:function(){T(E.currentMiniplayerSize())},
onDrag:function(v){e!=="north"&&e!=="west"||v.scale(-1);var y;v=(y=e==="north"||e==="south")?v.y:v.x;var Z=E.currentAspectRatio();y&&Z>=1?v*=Z:!y&&Z<1&&(v/=Z);y=v;E.onResize(I()+y)}},_.w("div",{class:_.RQ("ytdMiniplayerComponentResizerCorner",(Y.ytdMiniplayerComponentResizerNorthCorner=e==="north",Y.ytdMiniplayerComponentResizerEastCorner=e==="east",Y.ytdMiniplayerComponentResizerSouthCorner=e==="south",Y.ytdMiniplayerComponentResizerWestCorner=e==="west",Y))}))};
return _.w("div",{class:"ytdMiniplayerComponentResizers"},B("north"),B("east"),B("south"),B("west"))},"Xf");var pyT=16/9,Yu8=_.rp(function(){var E=_.oH(),B=_.p(_.lQ(new _.KK(NaN,NaN),void 0,"yxHohf")),I=B.next().value,T=B.next().value;B=_.p(_.lQ(!1,void 0,"ku1l7c"));var e=B.next().value,c=B.next().value;B=_.p(_.lQ(!1,void 0,"pbOm3b"));var Y=B.next().value,v=B.next().value;B=_.p(_.lQ(!1,void 0,"LqfsYc"));var y=B.next().value,Z=B.next().value;B=_.p(_.lQ(!1,void 0,"wYZnZe"));var P=B.next().value,z=B.next().value;B=_.p(_.lQ(!1,void 0,"KVndGb"));var m=B.next().value,u=B.next().value;B=_.p(_.lQ(!1,void 0,"ofTiZe"));
var x=B.next().value,M=B.next().value;B=_.p(_.lQ(pyT,void 0,"bpheWd"));var N=B.next().value,W=B.next().value,U=_.p(_.lQ(!1,void 0,"MIV0Jb"));B=U.next().value;var q=U.next().value;U=_.p(_.lQ(!1,void 0,"Y2idSc"));var f=U.next().value,ed=U.next().value;U=_.p(_.lQ(void 0,void 0,"IuZWBb"));var K=U.next().value,p4=U.next().value;U=_.p(_.lQ(_.HA("HTML_DIR")==="rtl"?"west":"east",void 0,"nLgCTd"));var sc=U.next().value,Gf=U.next().value;U=_.p(_.lQ("south",void 0,"mV91if"));var xi=U.next().value,ki=U.next().value;
U=_.p(_.lQ(400,void 0,"OwmImd"));var WG=U.next().value,rJ=U.next().value,Uc=_.Q().resolve(_.W3).miniplayerPropSignalMap[0],CV=Uc.data,Bm=Uc.externalPlaylistData;U=Uc.toastData;var LV=Uc.playabilityStatus,I$=Uc.isDisabled,bc=Uc.watchWhile;Uc=_.p(_.l0(Uc.isReadyToResume));var hz=Uc.next().value,TU=Uc.next().value,Wm;_.uW(function(){T(_.v8());E.value.addEventListener("animationend",function(Qd){Qd.target===E.value&&(u(!1),M(!1))})});
_.bE("yt-window-resized",function(Qd){Qd&&T(Qd)});
var z2=function(){Wm&&W(Wm.getVideoAspectRatio())},cG=function(){if(Wm){var Qd=Wm.getPlayerState()===1;
hz()&&Qd&&TU(!1)}};
_.bE("yt-activate-miniplayer",function(Qd){var Yl;return _.a(function(jd){if(jd.nextAddress==1)return e()?jd.return():_.C(jd,(Yl=_.Q().resolve(_.W3).getPlayerElement())==null?void 0:Yl.getPlayerPromise(),2);Wm=jd.yieldResult;if(!Wm)return jd.return();!f()&&_.d("kevlar_watch_while_v2")&&(ki(Qd&&!_.d("kevlar_watch_while_bottom_align")?"north":"south"),Gf(_.HA("HTML_DIR")==="rtl"?"west":"east"));var wr=Wm;wr.addEventListener("onVideoDataChange",z2);wr.addEventListener("onStateChange",cG);W(Wm.getVideoAspectRatio());
c(!0);u(!0);_.ER(jd)})});
_.bE("yt-deactivate-miniplayer",function(Qd){return _.a(function(Yl){c(!1);TU(!1);M(Qd);u(!0);if(Wm){var jd=Wm;jd.removeEventListener("onVideoDataChange",z2);jd.removeEventListener("onStateChange",cG)}_.ER(Yl)})});
var $I=function(){var Qd=!!CV(),Yl=m(),jd=bc();return(jd===void 0?0:jd)&&_.d("kevlar_watch_while_modern")?!1:Qd||Yl},tz=function(){var Qd;
return!((Qd=Bm())==null||!Qd.contents)},pX=function(){var Qd=WG();
var Yl=I();Yl=Math.min(Math.min(Yl.width,Yl.height)-32,720);var jd=N(),wr=$I(),et=tz()&&Y(),Qh=Math.min(Qd,Yl);Qd=new _.KK(192,wr?116:192);jd=SM2(new _.KK(et?pyT:jd,1),new _.KK(Qh,wr?Qh-76:Qh));Qd.width<=jd.width&&Qd.height<=jd.height||(g7L(jd,Qd),jd.width=Math.min(jd.width,Yl),jd.height=Math.min(jd.height,Yl));return new _.KK(jd.width,_.H3(192,jd.height+BKg(wr,et),720))},OZ=function(){var Qd=pX(),Yl=$I(),jd=tz()&&Y();
return new _.KK(Qd.width,Qd.height-BKg(Yl,jd))},kl=function(){var Qd=function(Yl){Yl.target===E.value&&P()&&(z(!1),E.value.removeEventListener("transitionend",Qd))};
E.value.addEventListener("transitionend",Qd);z(!0);v(!Y())};
Uc={};return _.w("ytd-miniplayer",{el:E,class:_.RQ("ytdMiniplayerComponentHost",(Uc.ytdMiniplayerComponentVisible=function(){return e()||m()},Uc.ytdMiniplayerComponentAnimatingSnap=y,Uc.ytdMiniplayerComponentAnimatingPlaylistExpand=P,Uc.ytdMiniplayerComponentAnimatingFade=m,Uc),function(){if(m()){var Qd=xi();
var Yl=e(),jd=x();Qd=Yl?Qd==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":jd?Qd==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Qd==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Qd="";return Qd}),
style:_.c$({top:function(){return xi()==="north"?"16px":""},
right:function(){return sc()==="east"?"16px":""},
bottom:function(){return xi()==="south"?"16px":""},
left:function(){return sc()==="west"?"16px":""},
width:function(){return pX().width+"px"},
height:function(){return pX().height+"px"},
transform:function(){var Qd=K();return Qd?"translate("+Qd.x+"px, "+Qd.y+"px)":""}})},_.w("div",{class:"ytdMiniplayerComponentContent"},_.w(c6m,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Qd){var Yl=ENL(sc(),xi(),I(),pX(),K()),jd=OZ();Math.abs(Qd.clientY-(Yl.y+jd.height))>15?q(!0):Qd.preventDefault()},
onDrag:function(Qd){p4(Qd)},
onDragEnd:function(){var Qd=Df2(ENL(sc(),xi(),I(),pX(),K()),I(),pX()),Yl=RDd(sc(),xi(),I(),pX()),jd=RDd(Qd.horizontalAlignment,Qd.verticalAlignment,I(),pX());jd=new _.Cb(jd.x-Yl.x,jd.y-Yl.y);var wr;Yl=Yl.y+(((wr=K())==null?void 0:wr.y)||0)+pX().height/2;var et=function(){sc()===Qd.horizontalAlignment&&xi()===Qd.verticalAlignment||ed(!0);Gf(Qd.horizontalAlignment);ki(Qd.verticalAlignment);p4(void 0)},Qh=function(ds){ds.target===E.value&&y()&&(Z(!1),et(),E.value.removeEventListener("transitionend",
Qh))};
q(!1);xi()==="south"&&Yl>I().height?(et(),_.Q().resolve(_.W3).close()):(E.value.addEventListener("transitionend",Qh),Z(!0),p4(jd))}},_.w(_.wU,{cond:e,
then:function(){return _.w(_.G21,{isDisabled:I$,playabilityStatus:LV,size:OZ})}}),_.w(_.wU,{cond:$I,
then:function(){return _.w(_.Lqg,{isReadyToResume:hz,data:CV,expanded:Y,onExpandClick:kl,playlistData:Bm})}}),_.w(_.wU,{cond:B,
then:function(){return _.w("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.w(_.wU,{cond:function(){return tz()&&Y()||P()},
then:function(){return _.w(_.RIZ,{className:"ytdMiniplayerComponentPlaylistPanel",data:Bm,hideHeaderText:!0,withinMiniplayer:!0})}}),_.w("div",{class:"ytdMiniplayerComponentToast"},_.w(_.OXI,{toastData:U}))),_.w(iz2,{onResize:function(Qd){rJ(_.H3(192,Qd,720))},
currentAspectRatio:N,currentMiniplayerSize:WG,horizontalAlignment:sc,verticalAlignment:xi}))},"Yf");_.d("ytd_miniplayer_to_wiz")&&_.oQ(Yu8,"ytd-miniplayer",{});_.oQ(_.OXI,"ytd-miniplayer-toast",{props:{toastData:_.Jh}});var avm=16/9,v2g=new _.KK(400,400/avm),b$=function(){var E=_.r.apply(this,arguments)||this;E.active=!1;E.hasNoData=!1;E.enabled=!1;E.expanded=!1;E.readyToResume=!1;E.isDisabled=!1;E.externalPlaylistData={};E.premiumBadges=[];E.watchWhile=!1;E.playerState=null;E.verticalAttachment="south";E.horizontalAttachment=_.HA("HTML_DIR")==="rtl"?"west":"east";E.isAnimatingFade=!1;E.isAnimatingSnap=!1;E.isAnimatingExpand=!1;E.isDragging=!1;E.playerHidden=!1;E.hasPlaylistData=!1;E.closed=!1;E.expandedClosed=!1;
E.isForReadyToResume=!1;E.watchResponse=null;E.player=null;E.playerVe=null;E.expandVe=null;E.closeVe=null;E.readyToResumeCloseVe=null;E.disabledInitialStateIsPlaying=!1;E.PLAYER_EVENTS=new Map;E.aspectRatio=avm;E.currentMiniplayerSize=400;E.userSetSize=!1;E.userSetPosition=!1;E.userHasDragged=!1;E.maxMiniplayerSize=720;E.transform=new _.Cb(0,0);E.windowDimensions=new _.KK(NaN,NaN);E.dimensions=v2g;E.screenLayer=3;E.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return E};
_.L(b$,_.r);_.l=b$.prototype;_.l.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.l.ready=function(){this.setUpDragging();this.setUpResizing()};
_.l.attached=function(){this.onWindowResized(_.v8());this.hostElement.addEventListener("animationend",_.Kq(this,this.resetFadingAnimation))};
_.l.detached=function(){this.hostElement.removeEventListener("animationend",_.Kq(this,this.resetFadingAnimation))};
_.l.resetFadingAnimation=function(E){E.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.l.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.l.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.l.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var E=_.nC(this.screenLayer);this.readyToResumeCloseVe&&E&&_.b1(E,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.l.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var E=_.nC(0),B=_.Oi(0);E&&B&&(_.XD(E,B,this.readyToResumeVe),_.b1(E,[this.readyToResumeVe]))}};
_.l.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var E=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=E===-1||E===1||E===3)&&this.player.pauseVideo()}};
_.l.activate=function(E,B){B=B===void 0?!1:B;var I=this,T;return _.a(function(e){if(e.nextAddress==1)return I.setInitialActivatePositioning(B),I.enabled=!0,I.active=!0,I.expanded=!1,I.closed=!1,I.expandedClosed=!1,I.watchWhileHidden||(I.isAnimatingFade=!0),_.Q().resolve(_.Hx).setPlaylistComponent(I.JSC$17671_playlistPanel),E.appendTo(I.playerContainer),_.C(e,E.getPlayerPromise(),2);T=e.yieldResult;T.setSizeStyle(!1,!0);I.ytPlayerListenerBehavior.listenToPlayerEvents(T,I.PLAYER_EVENTS);I.player=T;
I.watchWhile&&_.d("kevlar_watch_while_minimum_size")&&I.setMiniplayerSize(192);I.setAspectRatio(I.player.getVideoAspectRatio());I.onIsDisabledChanged();_.ER(e)})};
_.l.setInitialActivatePositioning=function(E){if(!this.userSetPosition&&_.d("kevlar_watch_while_v2")){this.verticalAttachment=E&&!_.d("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.HA("HTML_DIR")==="rtl"?"west":"east";var B;(B=this.JSC$17671_resizers)==null||B.update(this.horizontalAttachment,this.verticalAttachment)}};
_.l.deactivate=function(E,B){var I=this;return _.a(function(T){if(!I.active)return T.return();E||(I.expanded?I.expandedClosed=!0:I.closed=!0);I.active=!1;I.isForReadyToResume=!1;B&&_.d("kevlar_watch_while_counterfactual")||(I.isAnimatingFade=!0);I.player&&I.ytPlayerListenerBehavior.unlistenFromPlayerEvents(I.player,I.PLAYER_EVENTS);I.player=null;_.ER(T)})};
_.l.onMetadataTap=function(E){this.expandVe&&(E===void 0||E)&&(E=_.nC(this.screenLayer))&&_.Al(E,this.expandVe);_.pI(_.Q().resolve(_.W3))};
_.l.onDisabledTap=function(E){E.target===_.n(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.l.onPlaylistExpandTap=function(E){if(this.hasPlaylistData){E=_.W8(E)||[];E=_.p(E);for(var B=E.next();!B.done;B=E.next()){B=B.value;if(B===this.hostElement)break;if(B.classList&&B.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.l.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Kq(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.l.animatedResizePlaylist=function(E){E.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Kq(this,this.animatedResizePlaylist)))};
_.l.getExpandIcon=function(E){return E?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.l.onPlayerVideoDataChange=function(){var E,B=(E=this.player)==null?void 0:E.getVideoAspectRatio();B&&B!==this.aspectRatio&&this.setAspectRatio(B)};
_.l.setAspectRatio=function(E){if(this.active){this.aspectRatio=E;this.updateDimensionsAndResize();var B;(B=this.JSC$17671_resizers)==null||B.setAspectRatio(E)}};
_.l.updateDimensionsAndResize=function(){var E=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),B=this.expanded?avm:this.aspectRatio,I=new _.KK(192,this.showInfoBar?116:192);E=SM2(new _.KK(B,1),new _.KK(E,this.showInfoBar?E-76:E));I.width<=E.width&&I.height<=E.height||(g7L(E,I),E.width=Math.min(E.width,this.maxMiniplayerSize),E.height=Math.min(E.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&B<=1?Math.max(E.width,E.height)+76:Math.max(E.width,E.height)));this.dimensions=
new _.KK(E.width,this.clamp(E.height+this.getNonPlayerHeight()));this.resize()};
_.l.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var E=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=E.height+"px";var B;(B=this.player)==null||B.setInternalSize(E.width,E.height)};
_.l.getPlayerSize=function(E){var B=Math.max(0,E.height-this.getNonPlayerHeight());return new _.KK(E.width,B)};
_.l.getNonPlayerHeight=function(){var E=0;this.showInfoBar&&(E+=76);this.expanded&&(E+=285);return E};
_.l.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.Q().resolve(_.W3).close()};
_.l.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.l.logClosingClick=function(){this.closeVe&&_.Al(_.nC(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.Al(_.nC(this.screenLayer),this.readyToResumeCloseVe)};
_.l.onPlayerExpandMiniplayer=function(){if(this.expandVe){var E=_.nC(this.screenLayer);E&&_.Al(E,this.expandVe)}};
_.l.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var E=this.playerState===1;this.continueWatching&&E&&(this.continueWatching=!1);this.premiumBadges.length&&E&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.l.getScreenLayer=function(){return this.screenLayer};
_.l.logMiniplayer=function(){var E=_.nC(this.screenLayer),B=_.Oi(this.screenLayer);E&&B&&this.playerVe&&(_.XD(E,B,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.r3(E,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.b1(E,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.r3(E,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.l.computePlaylistData=function(E,B){return B};
_.l.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.l.computeExpandButtonHidden=function(E,B,I){return!E||!B||I};
_.l.computePlaylistIndexHidden=function(E,B){return!E||B};
_.l.computePlaylistPanelHidden=function(E,B){return!B&&!E};
_.l.computeExpandButtonLabel=function(E){return E?_.yu("MINIPLAYER_COLLAPSE_LABEL"):_.yu("MINIPLAYER_EXPAND_LABEL")};
_.l.computeDisabledStateCloseButtonLabel=function(){return _.yu("MINIPLAYER_CLOSE",void 0,"Close")};
_.l.onWindowResized=function(E){E&&(E=this.windowDimensions=E,this.maxMiniplayerSize=Math.min(Math.min(E.width,E.height)-32,720),this.updateDimensionsAndResize())};
_.l.setUpResizing=function(){var E=this;this.JSC$17671_resizers||(this.JSC$17671_resizers=new ra(this.JSC$17671_resizeContainer,{onStartResize:function(){E.handleResizeStart()},
onResize:function(B){E.handleResize(B)}}),this.JSC$17671_resizers.setSize(this.currentMiniplayerSize),this.JSC$17671_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.l.handleResizeStart=function(){var E=_.nC(this.screenLayer);this.userSetSize||(this.userSetSize=!0,E&&this.resizeVe&&_.b1(E,[this.resizeVe]));E&&this.resizeVe&&_.Al(E,this.resizeVe)};
_.l.handleResize=function(E){this.setMiniplayerSize(E);this.updateDimensionsAndResize()};
_.l.setUpDragging=function(){var E=this;this.JSC$17671_dragger||(this.JSC$17671_dragger=new Xa(this.draggableContainer,{onStartDrag:function(B){!E.isSafeToDrag(B)||E.isAnimatingSnap?B.preventDefault():E.handleDragStart()},
onDrag:function(B){E.transform=B;E.setTransform(E.transform)},
onEndDrag:function(){E.handleDragEnd()}},!0))};
_.l.handleDragStart=function(){this.isDragging=!0;var E=_.nC(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,E&&this.repositionVe&&_.b1(E,[this.repositionVe]));E&&this.repositionVe&&_.Al(E,this.repositionVe)};
_.l.handleDragEnd=function(){this.isDragging=!1;var E=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&E>this.windowDimensions.height&&_.Q().resolve(_.W3).close();this.animateSnapToCorner()};
_.l.animateSnapToCorner=function(){var E=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),B=this.getNearestAttachments();B=this.getGlobalPositionFromAttachments(B.horizontalAttachment,B.verticalAttachment);E=new _.Cb(B.x-E.x,B.y-E.y);this.isAnimatingSnap=!0;this.setTransform(E);this.hostElement.addEventListener("transitionend",_.Kq(this,this.endSnapAnimation))};
_.l.endSnapAnimation=function(E){E.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Kq(this,this.endSnapAnimation)),this.endDrag())};
_.l.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.l.setTransform=function(E){this.hostElement.style.transform=E?"translate("+E.x+"px, "+E.y+"px)":""};
_.l.getGlobalPositionFromAttachments=function(E,B){return new _.Cb(E==="west"?16:this.windowDimensions.width-this.dimensions.width-16,B==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.l.updateAttachments=function(){var E=this.getNearestAttachments();if(this.horizontalAttachment!==E.horizontalAttachment||this.verticalAttachment!==E.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=E.horizontalAttachment;this.verticalAttachment=E.verticalAttachment;var B;(B=this.JSC$17671_resizers)==null||B.update(this.horizontalAttachment,this.verticalAttachment)};
_.l.getNearestAttachments=function(){var E=this.getCurrentGlobalPosition();return{horizontalAttachment:E.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:E.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.l.getCurrentGlobalPosition=function(){var E=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return Kr7(E,this.transform)};
_.l.isSafeToDrag=function(E){var B=this.playerContainer.getBoundingClientRect();return Math.abs(E.clientY-(B.y+B.height))>15};
_.l.setMiniplayerSize=function(E){this.currentMiniplayerSize=this.clamp(E);var B;(B=this.JSC$17671_resizers)==null||B.setSize(this.currentMiniplayerSize)};
_.l.clamp=function(E){return _.H3(192,E,720)};
_.l.registerViewTransitionTasks=function(){var E=this,B=_.Q().resolve(_.Fx(_.hG9));if(B){var I={beforeTransition:function(){E.hostElement&&(E.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){E.hostElement&&(E.hostElement.style.viewTransitionName="")}};
TY(B,"slide",I);TY(B,"zoom",I)}};
_.Up.Object.defineProperties(b$.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.d("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.yu("CONTINUE_WATCHING",void 0,"Continue watching")};var E;if((E=this.externalPlaylistData)==null?0:E.contents)return this.externalPlaylistData.titleText;var B;return(B=this.data)==null?void 0:B.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.externalPlaylistData)==null?0:E.contents){var B;return(B=_.lGc(this.externalPlaylistData))==null?void 0:B.title}var I;return(I=this.data)==null?void 0:I.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var E,B,I,T;return((E=this.externalPlaylistData)==null?void 0:E.currentIndex)!==void 0&&((B=this.externalPlaylistData)==null?0:B.totalVideos)&&!((I=this.data)==null?0:(T=I.playlistData)==null?0:T.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.oA4(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.d("kevlar_watch_while_counterfactual")}}});
b$.prototype.onIsDisabledChanged=b$.prototype.onIsDisabledChanged;b$.prototype.readyToResumeVeChanged=b$.prototype.readyToResumeVeChanged;b$.prototype.premiumBrandingChanged=b$.prototype.premiumBrandingChanged;b$.prototype.onPlayerVeChange=b$.prototype.onPlayerVeChange;b$.prototype.hasPlaylistDataChanged=b$.prototype.hasPlaylistDataChanged;_.k([_.g(_.Wy.YtPlayerListenerBehavior),_.t("design:type",_.XK)],b$.prototype,"ytPlayerListenerBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],b$.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],b$.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],b$.prototype,"ytdReduxBehavior",void 0);_.k([_.$7("#draggable"),_.t("design:type",HTMLDivElement)],b$.prototype,"draggableContainer",void 0);
_.k([_.$7("#resize-container"),_.t("design:type",HTMLDivElement)],b$.prototype,"JSC$17671_resizeContainer",void 0);_.k([_.$7("#video-container"),_.t("design:type",HTMLDivElement)],b$.prototype,"videoContainer",void 0);_.k([_.$7("#player-container"),_.t("design:type",HTMLDivElement)],b$.prototype,"playerContainer",void 0);_.k([_.$7("#playlist"),_.t("design:type",HTMLDivElement)],b$.prototype,"JSC$17671_playlistPanel",void 0);_.k([_.X(),_.t("design:type",Object)],b$.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],b$.prototype,"active",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],b$.prototype,"hasNoData",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],b$.prototype,"enabled",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],b$.prototype,"expanded",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],b$.prototype,"readyToResume",void 0);
_.k([_.X(),_.t("design:type",Object)],b$.prototype,"isDisabled",void 0);_.k([_.X(),_.t("design:type",Object)],b$.prototype,"externalPlaylistData",void 0);_.k([_.X(),_.t("design:type",Array)],b$.prototype,"premiumBadges",void 0);_.k([_.X(),_.t("design:type",Object)],b$.prototype,"toastData",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],b$.prototype,"watchWhile",void 0);_.k([_.X(),_.t("design:type",Boolean)],b$.prototype,"premiumBranding",void 0);
_.k([_.X(),_.t("design:type",Object)],b$.prototype,"playerState",void 0);_.k([_.X(),_.t("design:type",Boolean)],b$.prototype,"continueWatching",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],b$.prototype,"verticalAttachment",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],b$.prototype,"horizontalAttachment",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],b$.prototype,"isAnimatingFade",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],b$.prototype,"isAnimatingSnap",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],b$.prototype,"isAnimatingExpand",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],b$.prototype,"isDragging",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],b$.prototype,"playerHidden",void 0);
_.k([_.X({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.t("design:type",Object)],b$.prototype,"playlistData",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.t("design:type",Object)],b$.prototype,"hasPlaylistData",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],b$.prototype,"closed",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],b$.prototype,"expandedClosed",void 0);
_.k([_.X({selector:_.mTB}),_.t("design:type",Boolean)],b$.prototype,"isSingleOptionSurveyActive",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.n9}),_.t("design:type",Boolean)],b$.prototype,"isWatchPage",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("watchWhile"),_.t("design:type",Object),_.t("design:paramtypes",[])],b$.prototype,"showInfoBar",null);_.k([_.S("premiumBadges","showInfoBar"),_.t("design:type",Object),_.t("design:paramtypes",[])],b$.prototype,"showOverlayPremiumBadges",null);
_.k([_.X(),_.t("design:type",Object)],b$.prototype,"watchResponse",void 0);_.k([_.X(),_.t("design:type",Object)],b$.prototype,"miniplayerRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],b$.prototype,"playabilityStatus",void 0);_.k([_.X(),_.t("design:type",Object)],b$.prototype,"playerVe",void 0);_.k([_.X(),_.t("design:type",Object)],b$.prototype,"expandVe",void 0);_.k([_.X(),_.t("design:type",Object)],b$.prototype,"closeVe",void 0);
_.k([_.X(),_.t("design:type",Object)],b$.prototype,"readyToResumeCloseVe",void 0);_.k([_.X(),_.t("design:type",_.Gx)],b$.prototype,"readyToResumeVe",void 0);_.k([_.X(),_.t("design:type",_.Gx)],b$.prototype,"resizeVe",void 0);_.k([_.X(),_.t("design:type",_.Gx)],b$.prototype,"repositionVe",void 0);_.k([_.EM("hasPlaylistData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],b$.prototype,"hasPlaylistDataChanged",null);
_.k([_.EM("playerVe"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],b$.prototype,"onPlayerVeChange",null);_.k([_.EM("premiumBranding"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],b$.prototype,"premiumBrandingChanged",null);_.k([_.EM("readyToResumeVe"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],b$.prototype,"readyToResumeVeChanged",null);
_.k([_.EM("isDisabled"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],b$.prototype,"onIsDisabledChanged",null);_.k([_.S("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.t("design:type",Object),_.t("design:paramtypes",[])],b$.prototype,"miniplayerSubtitle",null);_.k([_.S("data.miniplayerTitle","externalPlaylistData"),_.t("design:type",Object),_.t("design:paramtypes",[])],b$.prototype,"miniplayerTitle",null);
_.k([_.S("externalPlaylistData","continueWatching"),_.t("design:type",Object),_.t("design:paramtypes",[])],b$.prototype,"playlistIndexMessage",null);_.k([_.X({reflectToAttribute:!0}),_.S("playabilityStatus"),_.t("design:type",Object),_.t("design:paramtypes",[])],b$.prototype,"showErrorScreen",null);_.k([_.X({reflectToAttribute:!0}),_.S("watchWhile"),_.t("design:type",Object),_.t("design:paramtypes",[])],b$.prototype,"watchWhileHidden",null);
_.d("ytd_miniplayer_to_wiz")||_.A(b$,"ytd-miniplayer",function(){if(lv9===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
E.content.insertBefore(eH8().content.cloneNode(!0),E.content.firstChild);E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);lv9=E}E=lv9;return E},{mode:2});var y6m;var oX=function(){var E=_.r.apply(this,arguments)||this;E.useListItemStyles=_.d("web_list_item_style_for_menu_items");E.systemIcons=_.d("kevlar_system_icons");return E};
_.L(oX,_.r);_.l=oX.prototype;_.l.ready=function(){this.hostElement.addEventListener("tap",_.Kq(this,this.onEndpointTapExtra))};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){var E;(E=_.n(this.hostElement).querySelector("tp-yt-paper-item"))==null||E.focus()};
_.l.onEndpointTapExtra=function(E){_.$O(this.hostElement,"iron-activate");var B=this.data.navigationEndpoint;B&&_.h(B,_.EHF)&&(E.stopPropagation(),_.cN(this.hostElement,[B],this.hostElement))};
_.l.computeIcon=function(E){return E&&E.iconType?_.R3(E.iconType):""};
_.l.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.forceUpdateStylesOnLegacyBrowsers=function(){_.d("kevlar_legacy_browsers")&&_.Dk(this.hostElement)};
oX.prototype.forceUpdateStylesOnLegacyBrowsers=oX.prototype.forceUpdateStylesOnLegacyBrowsers;oX.prototype.onFocus=oX.prototype.onFocus;_.k([_.g(_.X_),_.t("design:type",Object)],oX.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.g(_.$O6.YtConditionalRendererBehavior),_.t("design:type",Object)],oX.prototype,"ytConditionalRendererBehavior",void 0);_.k([_.g(_.BF.YtEndpointBehavior),_.t("design:type",Object)],oX.prototype,"ytEndpointBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],oX.prototype,"data",void 0);_.k([_.X({computed:"computeIcon(data.icon)",value:""}),_.t("design:type",String)],oX.prototype,"icon",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],oX.prototype,"useIcons",void 0);_.k([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.t("design:type",Boolean)],oX.prototype,"hasSeparator",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],oX.prototype,"useListItemStyles",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],oX.prototype,"systemIcons",void 0);_.k([_.RN("focus"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oX.prototype,"onFocus",null);_.k([_.EM("useIcons","hasSeparator"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oX.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.A(oX,"ytd-menu-navigation-item-renderer",function(){if(y6m===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);y6m=E}E=y6m;return E},{mode:1});var CSd;var wy8=_.jj(_.yu("DOWNLOAD",{},"Download")),ZzI=_.jj(_.yu("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),PSI=_.jj(_.yu("RETRY",{},"Retry")),zHH=_.jj(_.yu("PAUSE_DOWNLOADING",{},"Pause downloading")),m9L=_.jj(_.yu("RESUME_DOWNLOAD",{},"Resume download")),At=function(){var E=_.r.apply(this,arguments)||this;E.primaryText=wy8;E.primaryIconType="OFFLINE_DOWNLOAD";E.hasSecondaryContent=!1;E.hasSeparator=!1;E.transferState="TRANSFER_STATE_UNKNOWN";E.isVideoDeletedByUser=!1;E.isHidden=!1;E.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return E};
_.L(At,_.r);_.l=At.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){this.primaryEntry.focus()};
_.l.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.l.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.l.getRemoveAction=function(){return"ACTION_REMOVE"};
_.l.sendOfflineAction=function(E){var B=this.data.serviceEndpoint;if(B){var I=_.h(B,_.ef);I&&E&&(I.action=E);this.ytComponentBehavior.resolveCommand(B)}};
_.l.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=wy8,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=wy8;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=PSI;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=ZzI;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=m9L;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=ZzI;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
zHH;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=ZzI;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=ZzI;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=wy8,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.l.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.l.isSecondaryEntryHidden=function(E,B){return E?!0:!B};
_.l.computeHasSeparator=function(){var E;return!((E=this.data)==null||!E.hasSeparator)};
At.prototype.showHideButton=At.prototype.showHideButton;At.prototype.onTransferStateChange=At.prototype.onTransferStateChange;At.prototype.onFocus=At.prototype.onFocus;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],At.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],At.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],At.prototype,"ytComponentBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],At.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],At.prototype,"primaryText",void 0);_.k([_.X(),_.t("design:type",String)],At.prototype,"primaryIconType",void 0);_.k([_.X(),_.t("design:type",String)],At.prototype,"primaryAction",void 0);_.k([_.X(),_.t("design:type",Object)],At.prototype,"secondaryText",void 0);_.k([_.X(),_.t("design:type",String)],At.prototype,"secondaryIconType",void 0);
_.k([_.X(),_.t("design:type",String)],At.prototype,"secondaryAction",void 0);_.k([_.X(),_.t("design:type",Object)],At.prototype,"hasSecondaryContent",void 0);_.k([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.t("design:type",Object)],At.prototype,"hasSeparator",void 0);_.k([_.X({selector:_.Mg,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.t("design:type",String)],At.prototype,"transferState",void 0);
_.k([_.X({selector:_.bUd,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.t("design:type",Object)],At.prototype,"isVideoDeletedByUser",void 0);_.k([_.X(),_.t("design:type",Object)],At.prototype,"isHidden",void 0);_.k([_.X({selector:_.gYG,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.t("design:type",Object)],At.prototype,"offlineabilityState",void 0);_.k([_.$7("#primary-entry"),_.t("design:type",Object)],At.prototype,"primaryEntry",void 0);
_.k([_.RN("focus"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],At.prototype,"onFocus",null);_.k([_.i6("transferState","isVideoDeletedByUser"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],At.prototype,"onTransferStateChange",null);_.k([_.i6("offlineabilityState"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],At.prototype,"showHideButton",null);
_.A(At,"ytd-menu-service-item-download-renderer",function(){if(CSd===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);CSd=E}E=CSd;return E},{mode:1});var QeI;var tt=function(){var E=_.r.apply(this,arguments)||this;E.useIcons=!1;E.systemIcons=_.d("kevlar_system_icons");E.useListItemStyles=_.d("web_list_item_style_for_menu_items");return E};
_.L(tt,_.r);_.l=tt.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){var E;(E=_.n(this.hostElement).querySelector("tp-yt-paper-item"))==null||E.focus()};
_.l.onTap=function(){_.Ta(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var E=this.data.serviceEndpoint,B=this.data.command;if(E){var I,T=(I=this.data)==null?void 0:I.trackingParams;I=!!_.h(E,_.Gzu);T&&I&&_.t2().dispatch(_.BP({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:T}}));this.ytComponentBehavior.resolveCommand(E)||_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}})}B&&(this.ytComponentBehavior.resolveCommand(B)||_.cN(this.hostElement,
[B],this.hostElement))};
_.l.computeIcon=function(E){return E&&E.iconType?_.R3(E.iconType):""};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.computeHasSeparator=function(){var E;return!((E=this.data)==null||!E.hasSeparator)};
_.l.forceUpdateStylesOnLegacyBrowsers=function(){_.d("kevlar_legacy_browsers")&&_.Dk(this.hostElement)};
_.l.computeIsSelected=function(){var E;return!((E=this.data)==null||!E.isSelected)};
tt.prototype.forceUpdateStylesOnLegacyBrowsers=tt.prototype.forceUpdateStylesOnLegacyBrowsers;tt.prototype.onTap=tt.prototype.onTap;tt.prototype.onFocus=tt.prototype.onFocus;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.X_),_.t("design:type",Object)],tt.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],tt.prototype,"ytComponentBehavior",void 0);
_.k([_.g(_.$O6.YtConditionalRendererBehavior),_.t("design:type",Object)],tt.prototype,"ytConditionalRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],tt.prototype,"data",void 0);_.k([_.X({computed:"computeIcon(data.icon)",value:""}),_.t("design:type",String)],tt.prototype,"icon",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],tt.prototype,"useIcons",void 0);
_.k([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.t("design:type",Boolean)],tt.prototype,"hasSeparator",void 0);_.k([_.X({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.t("design:type",Boolean)],tt.prototype,"isSelected",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],tt.prototype,"systemIcons",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],tt.prototype,"useListItemStyles",void 0);
_.k([_.RN("focus"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],tt.prototype,"onFocus",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],tt.prototype,"onTap",null);_.k([_.EM("useIcons","hasSeparator"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],tt.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.A(tt,"ytd-menu-service-item-renderer",function(){if(QeI===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);QeI=E}E=QeI;return E},{mode:2});var d9T;var fA=function(){return _.r.apply(this,arguments)||this};
_.L(fA,_.r);_.l=fA.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onDataChanged=function(){var E=this;_.AJ(this,function(){E.postbox.openDialog();E.focus();_.$O(E.hostElement,"yt-refit")})};
_.l.focus=function(){this.postbox.focus()};
_.l.closePopup=function(){_.I2(this.hostElement,"yt-close-popup-action")};
_.l.onYtCommentboxDismiss=function(){this.closePopup()};
fA.prototype.onYtCommentboxDismiss=fA.prototype.onYtCommentboxDismiss;fA.prototype.onDataChanged=fA.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],fA.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],fA.prototype,"data",void 0);_.k([_.X({value:function(){return _.yu("SBOX_INAPPROPRIATE_CANCEL")}}),
_.t("design:type",String)],fA.prototype,"closeButtonAriaLabel",void 0);_.k([_.$7("#postbox"),_.t("design:type",Object)],fA.prototype,"postbox",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fA.prototype,"onDataChanged",null);_.k([_.RN("yt-commentbox-dismiss"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fA.prototype,"onYtCommentboxDismiss",null);
fA=_.k([_.b({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],fA);
_.A(fA,"ytd-backstage-post-dialog-popup-renderer",function(){if(d9T!==void 0)return d9T;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return d9T=E},{mode:1});var hH2;var V1=function(){return _.r.apply(this,arguments)||this};
_.L(V1,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],V1.prototype,"data",void 0);V1=_.k([_.b({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],V1);
_.A(V1,"ytd-sender-id-section-renderer",function(){if(hH2!==void 0)return hH2;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
return hH2=E},{mode:1});var se1;var uKH;var LvO;var q5=function(){return _.r.apply(this,arguments)||this};
_.L(q5,_.r);q5.prototype.closePopup=function(){_.I2(this.hostElement,"yt-close-popup-action")};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],q5.prototype,"data",void 0);q5=_.k([_.QE({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],q5);
_.A(q5,"yt-community-post-section-renderer",function(){if(LvO===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;uKH===void 0&&(uKH=document.createElement("template"));var T=uKH;I.call(B,T.content.cloneNode(!0),E.content.firstChild);LvO=E}E=LvO;return E},{mode:2});var x9d;var GJI;var OzH;var n29;var M_9;var HzH;var Fa=function(){return _.r.apply(this,arguments)||this};
_.L(Fa,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Fa.prototype,"data",void 0);Fa=_.k([_.QE({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Fa);
_.A(Fa,"yt-share-start-time-with-context-renderer",function(){if(HzH===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;M_9===void 0&&(M_9=document.createElement("template"));var T=M_9;I.call(B,T.content.cloneNode(!0),E.content.firstChild);HzH=E}E=HzH;return E},{mode:2});var D6=function(){return _.r.apply(this,arguments)||this};
_.L(D6,_.r);D6.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],D6.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],D6.prototype,"data",void 0);D6=_.k([_.QE({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],D6);
_.A(D6,"yt-share-panel-title-v15-renderer",function(){if(n29===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;OzH===void 0&&(OzH=document.createElement("template"));var T=OzH;I.call(B,T.content.cloneNode(!0),E.content.firstChild);n29=E}E=n29;return E},{mode:2});var KA=function(){return _.r.apply(this,arguments)||this};
_.L(KA,_.r);KA.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"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],KA.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],KA.prototype,"data",void 0);KA=_.k([_.QE({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],KA);
_.A(KA,"yt-share-panel-header-renderer",function(){if(GJI===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;x9d===void 0&&(x9d=document.createElement("template"));var T=x9d;I.call(B,T.content.cloneNode(!0),E.content.firstChild);GJI=E}E=GJI;return E},{mode:2});var Nh1;var g2d;var RX=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-open-popup-action":"onOpen"};return E};
_.L(RX,_.r);_.l=RX.prototype;_.l.attached=function(){this.onOpen()};
_.l.updateTimeSecs=function(E){this.currentTimeSecs=E};
_.l.computeTimeString=function(E){E=E.toString();var B=Math.floor(Number(E)/3600),I=Math.floor(Number(E)%3600%60);return(B>0?B+":":"")+_.Es(Math.floor(Number(E)%3600/60),B>0?2:1)+":"+_.Es(I,2)};
_.l.computeTimeStringA11y=function(E){E=_.ABf({seconds:E});var B=E.hours===void 0?0:E.hours,I=E.minutes===void 0?0:E.minutes,T=E.seconds===void 0?0:E.seconds;E=[];if(B>0){var e=S4g().format({hours:B});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.J2)||B>9999)e=e.replace(B.toString(),_.jpD(B)),_.J2==="km"&&(e=e.replace(".",","));E.push(e)}I>0&&E.push(S4g().format({minutes:I}));T>0&&E.push(S4g().format({seconds:T}));B="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");I=_.J2==
"am"?"{0}\u1363 ":_.J2=="fa"?"{0}\u060c\u200f ":_.J2=="my"?"{0} - ":_.J2=="ne"?"{0},":_.J2=="th"?"{0} ":_.J2=="ur"?"{0}\u060c ":_.J2=="ar"||_.J2=="ar-XB"?"{0} \u0648":_.J2=="ja"||_.J2=="zh-CN"||_.J2=="zh-HK"||_.J2=="zh-TW"?"{0}\u3001":"{0}, ";T=_.J2=="am"?"\u1363 ":_.J2=="fa"?"\u060c\u200f ":_.J2=="my"?" - ":_.J2=="th"?" ":_.J2=="ur"?"\u060c ":_.J2=="ar"||_.J2=="ar-XB"?" \u0648":_.J2=="ja"||_.J2=="zh-CN"||_.J2=="zh-HK"||_.J2=="zh-TW"?"\u3001":", ";e=_.J2=="am"?" \u12a5\u1293 {0}":_.J2=="as"?" \u0986\u09f0\u09c1 {0}":
_.J2=="az"?" v\u0259 {0}":_.J2=="bn"?" \u098f\u09ac\u0982 {0}":_.J2=="cs"?" a\u00a0{0}":_.J2=="de"?" und {0}":_.J2=="el"?" \u03ba\u03b1\u03b9 {0}":_.J2=="eu"?" eta {0}":_.J2=="fa"?"\u060c \u0648 {0}":_.J2=="fil"?", at {0}":_.J2=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.J2=="hi"?", \u0914\u0930 {0}":_.J2=="hu"?" \u00e9s {0}":_.J2=="hy"?" \u0587 {0}":_.J2=="id"?", dan {0}":_.J2=="iw"?" \u05d5-{0}":_.J2=="ja"?"\u3001{0}":_.J2=="ka"?" \u10d3\u10d0 {0}":_.J2=="km"?" \u1793\u17b7\u1784 {0}":_.J2=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.J2=="ko"?" \ubc0f {0}":_.J2=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.J2=="lt"?" ir {0}":_.J2=="lv"?" un {0}":_.J2=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.J2=="mr"?" \u0906\u0923\u093f {0}":_.J2=="ms"?" dan {0}":_.J2=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.J2=="ne"?" \u0930 {0}":_.J2=="or"?", \u0b13 {0}":_.J2=="pa"?" \u0a05\u0a24\u0a47 {0}":_.J2=="ro"?" \u0219i {0}":_.J2=="si"?", \u0dc3\u0dc4 {0}":_.J2=="sk"?" a {0}":_.J2=="sl"?" in {0}":_.J2=="sq"?" dhe {0}":_.J2=="sv"?" och {0}":
_.J2=="sw"?" na {0}":_.J2=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.J2=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.J2=="th"?" \u0e41\u0e25\u0e30{0}":_.J2=="tr"?" ve {0}":_.J2=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.J2=="uz"?" va {0}":_.J2=="vi"?" v\u00e0 {0}":_.J2=="zh-HK"?"\u53ca{0}":_.J2=="zu"?", ne-{0}":_.J2=="af"||_.J2=="nl"?" en {0}":_.J2=="ar"||_.J2=="ar-XB"?" \u0648{0}":_.J2=="be"||_.J2=="uk"?" \u0456 {0}":_.J2=="en-GB"||_.J2=="en-IN"?" and {0}":_.J2=="en"||_.J2=="en-XA"?
", and {0}":_.J2=="et"||_.J2=="fi"?" ja {0}":_.J2=="fr"||_.J2=="fr-CA"?" et {0}":_.J2=="zh-CN"||_.J2=="zh-TW"?"\u548c{0}":_.J2=="da"||_.J2=="is"||_.J2=="no"?" og {0}":_.J2=="es"||_.J2=="es-419"||_.J2=="es-US"?" y {0}":_.J2=="kk"||_.J2=="lo"||_.J2=="mn"?", {0}":_.J2=="bg"||_.J2=="mk"||_.J2=="ru"||_.J2=="sr"?" \u0438 {0}":_.J2=="gl"||_.J2=="it"||_.J2=="pt-BR"||_.J2=="pt-PT"?" e {0}":" i {0}";var c=_.J2=="am"?"{0} \u12a5\u1293 {1}":_.J2=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.J2=="az"?"{0} v\u0259 {1}":
_.J2=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.J2=="de"?"{0} und {1}":_.J2=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.J2=="eu"?"{0} eta {1}":_.J2=="fa"?"{0} \u0648 {1}":_.J2=="fil"?"{0} at {1}":_.J2=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.J2=="hi"?"{0} \u0914\u0930 {1}":_.J2=="hu"?"{0} \u00e9s {1}":_.J2=="hy"?"{0} \u0587 {1}":_.J2=="iw"?"{0} \u05d5-{1}":_.J2=="ja"?"{0}\u3001{1}":_.J2=="ka"?"{0} \u10d3\u10d0 {1}":_.J2=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.J2=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.J2=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.J2=="ko"?"{0} \ubc0f {1}":_.J2=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.J2=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.J2=="lt"?"{0} ir {1}":_.J2=="lv"?"{0} un {1}":_.J2=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.J2=="mn"?"{0}, {1}":_.J2=="mr"?"{0} \u0906\u0923\u093f {1}":_.J2=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.J2=="ne"?"{0} \u0930 {1}":_.J2=="or"?"{0} \u0b13 {1}":_.J2=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.J2=="ro"?"{0} \u0219i {1}":_.J2==
"si"?"{0} \u0dc3\u0dc4 {1}":_.J2=="sl"?"{0} in {1}":_.J2=="sq"?"{0} dhe {1}":_.J2=="sv"?"{0} och {1}":_.J2=="sw"?"{0} na {1}":_.J2=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.J2=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.J2=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.J2=="tr"?"{0} ve {1}":_.J2=="ur"?"{0} \u0627\u0648\u0631 {1}":_.J2=="uz"?"{0} va {1}":_.J2=="vi"?"{0} v\u00e0 {1}":_.J2=="zh-HK"?"{0}\u53ca{1}":_.J2=="zu"?"{0} ne-{1}":_.J2=="af"||_.J2=="nl"?"{0} en {1}":_.J2=="ar"||_.J2==
"ar-XB"?"{0} \u0648{1}":_.J2=="be"||_.J2=="uk"?"{0} \u0456 {1}":_.J2=="cs"||_.J2=="sk"?"{0} a\u00a0{1}":_.J2=="et"||_.J2=="fi"?"{0} ja {1}":_.J2=="fr"||_.J2=="fr-CA"?"{0} et {1}":_.J2=="id"||_.J2=="ms"?"{0} dan {1}":_.J2=="zh-CN"||_.J2=="zh-TW"?"{0}\u548c{1}":_.J2=="da"||_.J2=="is"||_.J2=="no"?"{0} og {1}":_.J2=="es"||_.J2=="es-419"||_.J2=="es-US"?"{0} y {1}":_.J2=="bg"||_.J2=="mk"||_.J2=="ru"||_.J2=="sr"?"{0} \u0438 {1}":_.J2=="en"||_.J2=="en-GB"||_.J2=="en-IN"||_.J2=="en-XA"?"{0} and {1}":_.J2==
"gl"||_.J2=="it"||_.J2=="pt-BR"||_.J2=="pt-PT"?"{0} e {1}":"{0} i {1}";_.J2==="sq"?(e=e.replace("dhe","e"),c=c.replace("dhe","e")):_.J2==="th"?(T=T.replace("{0}"," {0}"),c=c.replace("{0}","{0} "),c=c.replace("{1}"," {1}")):_.J2==="ne"?T=",":_.J2==="zh-CN"?T="":B.includes(_.J2)&&(T=" ");return E.length<2?E.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(_.J2)?E.length===2?
c.replace("{0}",E[0]).replace("{1}",E[1]):I.replace("{0}",E[0])+E.slice(1,-1).join(T)+e.replace("{0}",E[E.length-1]):E.join(T)};
_.l.getTimeParam=function(){return $gg(this.timeString)};
_.l.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var E={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},B;_.cx(_.lu(),(B=this.data)==null?void 0:B.trackingParams,E,7)};
_.l.onChangeStartAtTimestamp=function(){for(var E=this.startAtTimestamp.value.split(":"),B=0,I=1,T=E.length-1;T>=0;T--)B+=Number(E[T])*I,I*=60;this.updateTimeSecs(B);this.setTimestamp()};
_.l.onOpen=function(){var E=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var B=_.jx();B?B.getPlayerPromise().then(function(I){I=I.getCurrentTime();E.updateTimeSecs(I)}):N9g()&&this.updateTimeSecs(N9g())};
_.l.setTimestamp=function(){var E=Math.floor(this.currentTimeSecs);_.I2(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!E,timestamp:E||""}])};
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],RX.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],RX.prototype,"data",void 0);_.k([_.X({value:!1,notify:!0}),_.t("design:type",Boolean)],RX.prototype,"isStartAtChecked",void 0);_.k([_.X(),_.t("design:type",Number)],RX.prototype,"currentTimeSecs",void 0);
_.k([_.X({computed:"computeTimeString(currentTimeSecs)"}),_.t("design:type",String)],RX.prototype,"timeString",void 0);_.k([_.X({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.t("design:type",String)],RX.prototype,"timeStringA11y",void 0);_.k([_.$7("#start-at-timestamp"),_.t("design:type",Object)],RX.prototype,"startAtTimestamp",void 0);RX=_.k([_.QE({is:"yt-start-at-renderer",disableElementRegistration:!0})],RX);
_.A(RX,"yt-start-at-renderer",function(){if(g2d===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;Nh1===void 0&&(Nh1=document.createElement("template"));var T=Nh1;I.call(B,T.content.cloneNode(!0),E.content.firstChild);g2d=E}E=g2d;return E},{mode:2});var SuL;var J6s;var Wvs=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"]]),Xyt=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"]]),r69=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var bzT={};bzT.YtBindingExpressionsBehavior={identity:_.JD,msg:function(E,B){B=B===void 0?{}:B;return _.yu(E,B,E)},
msgPlural:function(E,B){return _.CO(E,B)},
getMusicIconFromType:function(E){if(_.d("music_web_enable_icon_wil"))E=_.R3(E);else if(Xyt.has(E))E="yt-sys-icons:"+Xyt.get(E);else{var B=Wvs.get(E)||_.R3(E).split(":")[1];B=_.osD(B);var I;E=((I=r69.get(E))!=null?I:"yt-sys-icons:")+B}return E}};var o2d;var A6d;var jeL;var U92=document.head,kJI=U92.appendChild,t_8;if(jeL===void 0){var fvH=document.createElement("template");_.G(fvH,'\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>');jeL=fvH}t_8=jeL;kJI.call(U92,t_8.content);var EB=function(){var E=_.r.apply(this,arguments)||this;E.screenLayer=7;return E};
_.L(EB,_.r);EB.prototype.getScreenLayer=function(){return this.screenLayer};
EB.prototype.onTap=function(E){E&&E.detail&&(E.detail.x||E.detail.y)&&_.n(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.l1(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(E=this.getScreenLayer(),_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:E}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Up.Object.defineProperties(EB.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()}}});
EB.prototype.onTap=EB.prototype.onTap;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],EB.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],EB.prototype,"data",void 0);_.k([_.S("data.title"),_.t("design:type",Object),_.t("design:paramtypes",[])],EB.prototype,"title",null);
_.k([_.S("data.serviceName"),_.t("design:type",String),_.t("design:paramtypes",[])],EB.prototype,"icon",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],EB.prototype,"onTap",null);EB=_.k([_.QE({is:"yt-share-target-renderer",disableElementRegistration:!0})],EB);
_.A(EB,"yt-share-target-renderer",function(){if(A6d===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;o2d===void 0&&(o2d=document.createElement("template"));var T=o2d;I.call(B,T.content.cloneNode(!0),E.content.firstChild);A6d=E}E=A6d;return E},{mode:2});var V_I;var qud;var Ba=function(){var E=_.r.apply(this,arguments)||this;E.SHARE_TARGET_WIDTH=70;E.SHARE_TARGET_MARGIN_RIGHT=8;E.PAGE_SCROLL_SPEED=9;E.actionMap={"yt-share-panel-reset-action":"onReset_"};return E};
_.L(Ba,_.r);_.l=Ba.prototype;_.l.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.l.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.n(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.n(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.l.onReset_=function(){if(_.n(this.hostElement).querySelector("#list")){var E=_.n(this.hostElement).querySelector("#list");var B=_.n(this.hostElement).querySelector("#list");var I=B.offsetLeft,T=B.offsetParent;T||_.rHz(B)!="fixed"||(T=_.Zs(B).documentElement);if(T){if(_.iq&&!MV8(58)){var e=_.f1R(T);I+=e.left}else Number(_.Pac)>=8&&!(Number(_.Pac)>=9)&&(e=_.f1R(T),I-=e.left);B=_.k7r(T)?T.clientWidth-(I+B.offsetWidth):I}else B=I;n3I(E,B);this.updateScrollButtons_()}};
_.l.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.l.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.l.onScrollWheel_=function(E){E.stopPropagation();E.preventDefault();var B=OpI(_.n(this.hostElement).querySelector("#list"));E=Math.abs(E.deltaX)>Math.abs(E.deltaY)?E.deltaX:E.deltaY;n3I(_.n(this.hostElement).querySelector("#list"),B+E);this.updateScrollButtons_()};
_.l.smoothScrollByOnePage_=function(E){var B=_.n(this.hostElement).querySelector("#list"),I=(Math.floor(B.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,T=OpI(B),e=I*(E?1:-1),c=this.PAGE_SCROLL_SPEED,Y=this.updateScrollButtons_.bind(this),v=0,y;(function P(){v+=c;y=v/I*2;n3I(B,T+e*(y<1?y*y:-y*y+4*y-2));v<I?window.requestAnimationFrame(P):Y()})()};
_.l.updateScrollButtons_=function(){var E=OpI(_.n(this.hostElement).querySelector("#list")),B=_.n(this.hostElement).querySelector("#list").scrollWidth-_.n(this.hostElement).querySelector("#list").clientWidth;_.n(this.hostElement).querySelector("#scroll-button-back").hidden=E<=0;_.n(this.hostElement).querySelector("#scroll-button-forward").hidden=E>=B};
Ba.prototype.onScrollWheel_=Ba.prototype.onScrollWheel_;Ba.prototype.onDataChanged_=Ba.prototype.onDataChanged_;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Ba.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(bzT.YtBindingExpressionsBehavior),_.t("design:type",Object)],Ba.prototype,"ytBindingExpressionsBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ba.prototype,"data",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Ba.prototype,"onDataChanged_",null);_.k([_.RN("wheel"),_.t("design:type",Function),_.t("design:paramtypes",[WheelEvent]),_.t("design:returntype")],Ba.prototype,"onScrollWheel_",null);
Ba=_.k([_.QE({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Ba);
_.A(Ba,"yt-third-party-share-target-section-renderer",function(){if(qud===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;V_I===void 0&&(V_I=document.createElement("template"));var T=V_I;I.call(B,T.content.cloneNode(!0),E.content.firstChild);qud=E}E=qud;return E},{mode:2});var $1=function(){return _.r.apply(this,arguments)||this};
_.L($1,_.r);$1.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"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],$1.prototype,"data",void 0);$1=_.k([_.QE({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],$1);
_.A($1,"yt-third-party-network-section-renderer",function(){if(J6s===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;SuL===void 0&&(SuL=document.createElement("template"));var T=SuL;I.call(B,T.content.cloneNode(!0),E.content.firstChild);J6s=E}E=J6s;return E},{mode:2});_.oQ(_.rp(function(E){return _.w("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.w("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.w(_.hM,{data:function(){return E.data().firstPartyItems}},{listItemViewModel:_.Z8})))},"Zf"),"first-party-network-section-view-model",{props:{data:_.Jh}});var FvL=_.km(["data:image/svg+xml;charset=UTF-8;base64,",""]),Is=function(){var E=_.r.apply(this,arguments)||this;E.screenLayer=7;E.qrCodeEnabled=_.d("web_enable_sharing_qr_code");E.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return E};
_.L(Is,_.r);_.l=Is.prototype;_.l.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"}}}};
_.l.attached=function(){this.JSC$17723_scroller&&(this.JSC$17723_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17723_scroller.attached&&typeof this.JSC$17723_scroller.attached==="function"&&this.JSC$17723_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.l.onDataChanged=function(){var E=this,B;(B=this.data)!=null&&B.contents&&(this.hostElement.setAttribute("links-only","true"),_.qK(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.AJ(this,function(){_.$O(E.hostElement,"yt-refit");E.focusSharePanelHeader()}))};
_.l.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.l.handleSetTimestamp=function(E){var B=this.shortUrl();E.isSet&&(B=_.bt(B,"t",E.timestamp));this.maybeRenderQrCode(B)};
_.l.shortUrl=function(){var E,B=(E=this.data)==null?void 0:E.contents;if(B)for(E=0;E<B.length;E++){var I=void 0,T=void 0;if((I=B[E])==null?0:(T=I.thirdPartyNetworkSection)==null?0:T.copyLinkContainer){var e=T=I=void 0;return(e=_.h((I=B[E])==null?void 0:(T=I.thirdPartyNetworkSection)==null?void 0:T.copyLinkContainer,H2s))==null?void 0:e.shortUrl}}};
_.l.maybeRenderQrCode=function(E){var B=this,I,T,e,c,Y,v,y,Z,P;return _.a(function(z){if(z.nextAddress==1){I=_.n(B.hostElement).querySelector("#qr-code");if(!B.qrCodeEnabled||!E)return I&&(I.style.display="none"),z.return();T=_.Bxd(_.Q().resolve(_.Ee),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});e=document.createElement("div");return typeof T==="function"?(T(e),z.jumpTo(2)):_.C(z,T,3)}z.nextAddress!=2&&(c=z.yieldResult,c(e));y=(Y=e)==null?void 0:(v=Y.firstChild)==null?void 0:v.firstChild;
Z=document.createElement("img");P=_.v1(FvL,btoa(y.outerHTML));Z.onload=function(){var m={canvas:I,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:Z},u=new $UO;iCs(u,E);pUd(u,!1,Yid(u));var x=u.modules,M=Object.assign({},aYL,m);x=structuredClone(x);m=x.length;var N,W=(N=M.canvas)!=null?N:document.createElement("canvas");N=M.cellSize;u=M.logo;var U,q=(U=M.logoSize)!=null?U:Math.floor(m/4);m%2!==q%2&&q++;var f=M.logoPadding,ed=M.backgroundColor;U=m*N;var K=
M.width,p4=0;K&&(p4=M.padding,p4=Math.ceil(p4*U/(K-p4*2)),W.style.width=K+"px",W.style.height=K+"px");W.width!==U+p4*2&&(W.width=U+p4*2);W.height!==U+p4*2&&(W.height=U+p4*2);U=W.getContext("2d");M.autoClear&&U.clearRect(0,0,W.width,W.height);U.fillStyle=ed;U.beginPath();U.roundRect(0,0,W.width,W.height,M.borderRadius);U.fill();U.save();U.translate(p4,p4);if(u)for(W=Math.floor(m-q)/2-f,f=Math.floor(m+q)/2+f,ed=W;ed<f;ed++)for(K=W;K<f;K++)x[ed][K]=!1;for(W=0;W<m;W++)for(f=0;f<m;f++)(W<7&&f<7||W<7&&
f>=m-7||W>=m-7&&f<7)&&(x[W][f]=!1);var sc;W=(sc=M.markerColor)!=null?sc:M.color;vh7(U,0,0,N,W);vh7(U,N*(m-7),0,N,W);vh7(U,0,N*(m-7),N,W);switch(M.cellStyle){case 0:sc=x;x=sc.length;W=M.cellSize;U.beginPath();for(f=0;f<x;f++)for(ed=0;ed<x;ed++)sc[f][ed]&&U.rect(f*W,ed*W,W,W);U.fillStyle=M.color;U.fill();break;case 1:sc=x;x=sc.length;W=M.cellSize;f=W*M.relativeCircleSize;U.fillStyle=M.color;U.beginPath();for(M=0;M<x;M++)for(ed=0;ed<x;ed++)sc[M][ed]&&(U.beginPath(),U.ellipse((M+.5)*W,(ed+.5)*W,f/2,f/
2,0,0,2*Math.PI),U.fill());U.fill();break;case 2:sc=x;x=sc.length;W=M.cellSize;U.fillStyle=M.color;M=[[1,1],[-1,1],[-1,-1],[1,-1]];U.beginPath();for(f=0;f<x;f++)for(ed=0;ed<x;ed++)if(sc[f][ed])U.roundRect(f*W,ed*W,W,W,W/2),f+1<x&&sc[f+1][ed]&&U.rect(f*W+W/2,ed*W,W,W),ed+1<x&&sc[f][ed+1]&&U.rect(f*W,ed*W+W/2,W,W);else{K=f*W+W/2;p4=ed*W+W/2;for(var Gf=0;Gf<4;Gf++){var xi=_.p(M[Gf]),ki=xi.next().value;xi=xi.next().value;f+ki>=0&&f+ki<x&&ed+xi>=0&&ed+xi<x&&sc[f+ki][ed]&&sc[f][ed+xi]&&sc[f+ki][ed+xi]&&
(ki=Gf*Math.PI/2,xi=W/2,U.moveTo(K+xi*Math.cos(ki),p4+xi*Math.sin(ki)),U.arc(K,p4,W/2,ki,ki+Math.PI/2,!1),U.lineTo(K+xi*(Math.cos(ki)-Math.sin(ki)),p4+xi*(Math.cos(ki)+Math.sin(ki))),U.lineTo(K+xi*Math.cos(ki),p4+xi*Math.sin(ki)))}}U.fill()}u&&U.drawImage(u,(m-q)*N/2,(m-q)*N/2,q*N,q*N);U.restore();I.style.removeProperty("display")};
Z.src=_.e6(P);_.ER(z)})};
_.l.hasCommunityPostRenderer=function(){var E,B,I,T;return!!((E=this.data)==null?0:(B=E.header)==null?0:(I=B.sharePanelHeaderRenderer)==null?0:(T=I.communityPost)==null?0:T.communityPostSectionRenderer)};
_.l.onTapClose=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.l.getScreenLayer=function(){return this.screenLayer};
_.l.logSharePanelPage=function(){if(!_.d("enable_share_panel_navigation_logging_fix_on_web")){var E;if((E=this.data)!=null&&E.trackingParams){E=this.data.trackingParams;var B=this.parentClickTrackingParams;B=B?_.Yg(B):void 0;var I=_.lu();_.I5(I,21760,B,{layer:7,parentLayer:0});I.graftServerVe(E,void 0,7);_.t2().dispatch(_.BP({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Is.prototype.onDataChanged=Is.prototype.onDataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Is.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Is.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Is.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Is.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],Is.prototype,"data",void 0);_.k([_.X({value:_.yu("SBOX_INAPPROPRIATE_CANCEL")}),_.t("design:type",String)],Is.prototype,"closeButtonAriaLabel",void 0);_.k([_.$7("yt-share-panel-header-renderer"),_.t("design:type",HTMLElement)],Is.prototype,"header",void 0);_.k([_.X({selector:function(E){return E.share.parentClickTrackingParams}}),
_.t("design:type",String)],Is.prototype,"parentClickTrackingParams",void 0);_.k([_.X(),_.t("design:type",Object)],Is.prototype,"qrCodeEnabled",void 0);_.k([_.$7("#scroller"),_.t("design:type",Object)],Is.prototype,"JSC$17723_scroller",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Is.prototype,"onDataChanged",null);Is=_.k([_.b({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Is);
_.A(Is,"ytd-unified-share-panel-renderer",function(){if(se1!==void 0)return se1;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return se1=E},{mode:1});var D99;var TZ=function(){var E=_.r.apply(this,arguments)||this;E.modernModal=_.d("kevlar_sign_in_modal_modernization");return E};
_.L(TZ,_.r);TZ.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
TZ.prototype.computeShouldHideOldButtons=function(){var E;return!((E=this.data)==null?0:E.button)};
_.Up.Object.defineProperties(TZ.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var E,B;if(this.modernModal&&((E=this.data)==null?0:(B=E.button)==null?0:B.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var I,T;return(I=this.data)==null?void 0:(T=I.button)==null?void 0:T.buttonRenderer}}});
_.k([_.X(),_.t("design:type",Object)],TZ.prototype,"data",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],TZ.prototype,"ytEventForwardingBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],TZ.prototype,"modernModal",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],TZ.prototype,"buttonRendererData",null);
TZ=_.k([_.b({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],TZ);
_.A(TZ,"ytd-modal-with-title-and-button-renderer",function(){if(D99!==void 0)return D99;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return D99=E},{mode:1});var KvL;var eb=function(){return _.r.apply(this,arguments)||this};
_.L(eb,_.r);eb.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("page-changed",this.page))};
eb.prototype.pageChangedForBinding=eb.prototype.pageChangedForBinding;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],eb.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],eb.prototype,"page",void 0);_.k([_.EM("page"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],eb.prototype,"pageChangedForBinding",null);
eb=_.k([_.b({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],eb);
_.A(eb,"ytd-account-item-section-header-renderer",function(){if(KvL!==void 0)return KvL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return KvL=E},{mode:1});var RHH;var lR=function(){return _.r.apply(this,arguments)||this};
_.L(lR,_.r);lR.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"}}}};
lR.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],lR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.xo),_.t("design:type",Object)],lR.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],lR.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!1}),_.t("design:type",Function)],lR.prototype,"onAccountItemTap",void 0);
lR=_.k([_.b({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],lR);
_.A(lR,"ytd-account-item-section-renderer",function(){if(RHH!==void 0)return RHH;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return RHH=E},{mode:1});var EJO;var BQ9;var ca=function(){return _.r.apply(this,arguments)||this};
_.L(ca,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ca.prototype,"data",void 0);ca=_.k([_.b({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],ca);
_.A(ca,"ytd-accounts-dialog-header-renderer",function(){if(BQ9!==void 0)return BQ9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return BQ9=E},{mode:1});var $rO;var iR=function(){return _.r.apply(this,arguments)||this};
_.L(iR,_.r);iR.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],iR.prototype,"data",void 0);iR=_.k([_.b({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],iR);
_.A(iR,"ytd-google-account-header-renderer",function(){if($rO!==void 0)return $rO;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return $rO=E},{mode:1});var pQ=function(){return _.r.apply(this,arguments)||this};
_.L(pQ,_.r);pQ.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"}}}};
pQ.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("page-changed",this.page))};
pQ.prototype.pageChangedForBinding=pQ.prototype.pageChangedForBinding;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],pQ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],pQ.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],pQ.prototype,"page",void 0);
_.k([_.EM("page"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],pQ.prototype,"pageChangedForBinding",null);pQ=_.k([_.b({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],pQ);
_.VE()(pQ,"ytd-account-section-list-renderer",function(){if(EJO===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);EJO=E}E=EJO;return E},{allowedProps:["data"],
mode:1});var ITT;var Y1=function(){var E=_.r.apply(this,arguments)||this;E.enableHandlesAccountMenuSwitcher=_.d("enable_handles_account_menu_switcher");return E};
_.L(Y1,_.r);Y1.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Y1.prototype.dataChanged=Y1.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Y1.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Y1.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.k([_.$7("#avatar"),_.t("design:type",Object)],Y1.prototype,"avatar",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Y1.prototype,"dataChanged",null);Y1=_.k([_.b({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Y1);
_.VE()(Y1,"ytd-active-account-header-renderer",function(){if(ITT===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);ITT=E}E=ITT;return E},{allowedProps:["data"],
mode:1});var TQO;var exL;var as=function(){return _.r.apply(this,arguments)||this};
_.L(as,_.r);as.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
as.prototype.onBackTap=function(){_.$O(this.hostElement,"yt-menu-back-tapped")};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],as.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],as.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],as.prototype,"data",void 0);as=_.k([_.b({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],as);
_.VE()(as,"ytd-simple-menu-header-renderer",function(){if(exL===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);exL=E}E=exL;return E},{allowedProps:["data"],
mode:2});var lTd;var va=function(){return _.r.apply(this,arguments)||this};
_.L(va,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],va.prototype,"data",void 0);va=_.k([_.b({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],va);
_.A(va,"ytd-comment-video-thumbnail-header-renderer",function(){if(lTd!==void 0)return lTd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return lTd=E},{mode:1});var cym;var yp=function(){return _.r.apply(this,arguments)||this};
_.L(yp,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],yp.prototype,"data",void 0);yp=_.k([_.b({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],yp);
_.A(yp,"ytd-abuse-type-selector-renderer",function(){if(cym!==void 0)return cym;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return cym=E},{mode:1});var itL;var CQ=function(){return _.r.apply(this,arguments)||this};
_.L(CQ,_.r);CQ.prototype.attached=function(){var E=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){E.additionalContextInput.focusTextInput()})};
CQ.prototype.handleAdditionalContextChanged=function(){var E=this;_.OM(this,"ytd-report-channel-additional-context-update",function(){E.ytdReduxBehavior.dispatch(_.BP({type:"ADDITIONAL_CONTEXT_UPDATED",payload:E.additionalContext}))},300)};
CQ.prototype.updateAdditionalContextFromBinding=function(E){this.additionalContext=E.detail.value};
CQ.prototype.handleAdditionalContextChanged=CQ.prototype.handleAdditionalContextChanged;_.k([_.g(_.Lz),_.t("design:type",Object)],CQ.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",String)],CQ.prototype,"additionalContext",void 0);_.k([_.X({selector:function(E){return E.reportChannelAbuse.additionalContext}}),
_.t("design:type",String)],CQ.prototype,"additionalContextRedux",void 0);_.k([_.X(),_.t("design:type",Object)],CQ.prototype,"data",void 0);_.k([_.$7("yt-text-input-form-field-renderer"),_.t("design:type",Object)],CQ.prototype,"additionalContextInput",void 0);_.k([_.EM("additionalContext"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],CQ.prototype,"handleAdditionalContextChanged",null);
CQ=_.k([_.b({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],CQ);
_.A(CQ,"ytd-report-channel-modal-additional-context-renderer",function(){if(itL!==void 0)return itL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return itL=E},{mode:1});var pZ9;var wL=function(){var E=_.r.apply(this,arguments)||this;E.nextButtonDisabled=null;E.submitEndpoint=null;E.navigationEndpoint=null;E.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return E};
_.L(wL,_.r);_.l=wL.prototype;_.l.computeNextButtonData=function(E,B,I){var T={};B&&(T.navigationEndpoint=B);I&&(T.serviceEndpoint=I);E&&E.buttonRenderer&&_.a_.extend(T,E.buttonRenderer);return T};
_.l.handleReportChannelModalDisableNextButtonAction=function(E){this.setNextButtonIsDisabled(E)};
_.l.handleReportFormEndpointUpdateAction=function(E){this.setNextButtonIsDisabled(!!E.disableSubmitButton);this.resetEndpointData();E.submitEndpoint?this.submitEndpoint=E.submitEndpoint:E.submitNavigationEndpoint&&(this.navigationEndpoint=E.submitNavigationEndpoint)};
_.l.handleSignalActionSubmitForm=function(){var E,B=Object.keys(((E=this.reportChannelAbuseForm)==null?void 0:E.selectedVideoIds)||{}),I;E=((I=this.reportChannelAbuseForm)==null?void 0:I.additionalContext)||"";var T;I=((T=this.reportChannelAbuseForm)==null?void 0:T.impersonatedChannelUrl)||"";var e;if((e=this.data)==null?0:e.submitEndpoint){B={impersonated_channel_url:I,text:E,video_ids:B};var c;_.Q().resolve(_.Dt).resolveCommand((c=this.data)==null?void 0:c.submitEndpoint,{form:Object.assign({},
B,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.l.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.l.onYtServiceRequestError=function(E){this.setNextButtonIsDisabled(!1);_.de(this.hostElement,E.detail.error.message)};
_.l.setNextButtonIsDisabled=function(E){this.set("data.nextButton.buttonRenderer.isDisabled",E)};
_.l.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
wL.prototype.onYtServiceRequestError=wL.prototype.onYtServiceRequestError;wL.prototype.onYtServiceRequestCompleted=wL.prototype.onYtServiceRequestCompleted;_.k([_.X(),_.t("design:type",Object)],wL.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],wL.prototype,"nextButtonDisabled",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],wL.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],wL.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],wL.prototype,"submitEndpoint",void 0);_.k([_.X(),_.t("design:type",Object)],wL.prototype,"navigationEndpoint",void 0);_.k([_.X({selector:function(E){return E.reportChannelAbuse}}),
_.t("design:type",Object)],wL.prototype,"reportChannelAbuseForm",void 0);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],wL.prototype,"onYtServiceRequestCompleted",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],wL.prototype,"onYtServiceRequestError",null);
wL=_.k([_.b({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],wL);
_.A(wL,"ytd-report-channel-modal-footer-renderer",function(){if(pZ9!==void 0)return pZ9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return pZ9=E},{mode:1});var YvT;var Zn=function(){var E=_.r.apply(this,arguments)||this;E.boundOnTapDismissButton=function(){E.closePopup()};
return E};
_.L(Zn,_.r);Zn.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Zn.prototype.handleDataChanged=function(){_.ox(this.hostElement)};
Zn.prototype.closePopup=function(){_.I2(this.hostElement,"yt-close-popup-action")};
Zn.prototype.handleDataChanged=Zn.prototype.handleDataChanged;_.k([_.X(),_.t("design:type",Object)],Zn.prototype,"boundOnTapDismissButton",void 0);_.k([_.X(),_.t("design:type",Object)],Zn.prototype,"data",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Zn.prototype,"handleDataChanged",null);Zn=_.k([_.b({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Zn);
_.A(Zn,"ytd-report-channel-modal-header-renderer",function(){if(YvT!==void 0)return YvT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return YvT=E},{mode:1});var aTI;var Pa=function(){var E=_.r.apply(this,arguments)||this;E.autoValidate=!1;E.invalid=!1;E.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return E};
_.L(Pa,_.r);_.l=Pa.prototype;_.l.attached=function(){var E=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){E.channelUrlInput.focusTextInput()})};
_.l.disableNextButton=function(E){_.I2(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[E])};
_.l.handleImpersonatedChannelUrlChanged=function(){var E=this;this.disableNextButton(!0);this.invalid=!1;_.OM(this,"ytd-report-channel-impersonated-channel-update",function(){var B=E.impersonatedChannelUrl.trim();E.ytdReduxBehavior.dispatch(_.BP({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:B}));var I;((I=E.data)==null?0:I.submitEndpoint)&&B&&(_.d("web_ytd_report_channel_modal_impersonation_renderer_command_resolver_ks")?_.l1(E.hostElement,[E.data.submitEndpoint,{impersonated_channel_url:B}]):
_.Q().resolve(_.Dt).resolveCommand(E.data.submitEndpoint,{form:{impersonated_channel_url:B,element:E.hostElement}}))},500)};
_.l.handleModifyReportFormCommand=function(E){this.invalid=this.get("modifyReportFormCommand.action",E)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.l.updateInvalidFromBinding=function(E){this.invalid=E.detail.value};
_.l.updateImpersonatedChannelUrlFromBinding=function(E){this.impersonatedChannelUrl=E.detail.value};
Pa.prototype.handleImpersonatedChannelUrlChanged=Pa.prototype.handleImpersonatedChannelUrlChanged;_.k([_.g(_.Lz),_.t("design:type",Object)],Pa.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Pa.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Pa.prototype,"autoValidate",void 0);_.k([_.X(),_.t("design:type",Object)],Pa.prototype,"invalid",void 0);
_.k([_.X(),_.t("design:type",String)],Pa.prototype,"impersonatedChannelUrl",void 0);_.k([_.X({selector:function(E){return E.reportChannelAbuse.impersonatedChannelUrl}}),
_.t("design:type",String)],Pa.prototype,"impersonatedChannelUrlRedux",void 0);_.k([_.X(),_.t("design:type",Object)],Pa.prototype,"data",void 0);_.k([_.$7("#text-input"),_.t("design:type",Object)],Pa.prototype,"channelUrlInput",void 0);_.k([_.EM("impersonatedChannelUrl"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Pa.prototype,"handleImpersonatedChannelUrlChanged",null);
Pa=_.k([_.b({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Pa);
_.A(Pa,"ytd-report-channel-modal-impersonation-renderer",function(){if(aTI!==void 0)return aTI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return aTI=E},{mode:1});var vJg;var yyL;var zZ=function(){return _.r.apply(this,arguments)||this};
_.L(zZ,_.r);zZ.prototype.onCheckboxToggled=function(E){var B,I,T=(I=_.h((B=this.data)==null?void 0:B.video,_.H2r))==null?void 0:I.videoId;T&&this.ytdReduxBehavior.dispatch(E.target.checked?_.BP({type:"VIDEO_SELECTED",payload:T}):_.BP({type:"VIDEO_UNSELECTED",payload:T}))};
zZ.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Up.Object.defineProperties(zZ.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var E,B=(E=this.data)==null?void 0:E.video;if(!B)return{};var I;E=(I=_.h(B,_.H2r))==null?void 0:I.navigationEndpoint;if(!E)return B;_.h(E==null?void 0:E.commandMetadata,_.D$)&&(_.h(E.commandMetadata,_.D$).ignoreNavigation=!0);return B}}});
_.k([_.X({reflectToAttribute:!0,selector:function(E,B){return B in E.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.t("design:type",Boolean)],zZ.prototype,"checked",void 0);_.k([_.X(),_.t("design:type",Object)],zZ.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],zZ.prototype,"video",null);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],zZ.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.Lz),_.t("design:type",Object)],zZ.prototype,"ytdReduxBehavior",void 0);zZ=_.k([_.b({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],zZ);
_.A(zZ,"ytd-selectable-video-renderer",function(){if(yyL!==void 0)return yyL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return yyL=E},{mode:1});var mZ=function(){var E=_.r.apply(this,arguments)||this;E.monitorScroll=!0;return E};
_.L(mZ,_.r);mZ.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],mZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],mZ.prototype,"data",void 0);mZ=_.k([_.b({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],mZ);
_.A(mZ,"ytd-selectable-video-list-renderer",function(){if(vJg!==void 0)return vJg;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return vJg=E},{mode:1});var C_1;_.QH("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Qp=function(){return _.r.apply(this,arguments)||this};
_.L(Qp,_.r);Qp.prototype.onChange=function(E){if(E=_.XN(E).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.d("kevlar_command_handler_migration_killswitch"))_.cN(this.hostElement,E,this.hostElement);else{E=_.p(E);for(var B=E.next();!B.done;B=E.next())this.ytComponentBehavior.resolveCommand(B.value)}};
Qp.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Qp.prototype.updateDataToggledFromBinding=function(E){this.set("data.toggled",E.detail.value)};
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Qp.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Qp.prototype,"data",void 0);_.k([_.X({computed:"isEnabled(data)"}),_.t("design:type",Boolean)],Qp.prototype,"enabled",void 0);Qp=_.k([_.b({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Qp);
_.A(Qp,"ytd-toggle-item-renderer",function(){if(C_1!==void 0)return C_1;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return C_1=E},{mode:1});var wZg;var Ztm;var P_H;var dL=function(){var E=_.r.apply(this,arguments)||this;E.setVisible=!1;E.boundOnSubmitButtonClick=function(){E.onSubmitButtonClick()};
E.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return E};
_.L(dL,_.r);dL.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}}}}}};
dL.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
dL.prototype.onSubmitButtonClick=function(){var E;((E=this.data)==null?0:E.submitEndpoint)&&!_.d("enable_ytc_refunds_submit_form_signal_action")&&_.l1(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
dL.prototype.handleSignalActionSubmitForm=function(){var E;((E=this.data)==null?0:E.submitEndpoint)&&_.l1(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Up.Object.defineProperties(dL.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.hiddenByDefault)&&!this.setVisible}}});
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],dL.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],dL.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],dL.prototype,"setVisible",void 0);_.k([_.X(),_.t("design:type",Object)],dL.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],dL.prototype,"surveyFeedbackData",void 0);_.k([_.X(),_.t("design:type",Object)],dL.prototype,"boundOnSubmitButtonClick",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data","setVisible"),_.t("design:type",Object),_.t("design:paramtypes",[])],dL.prototype,"visibilityHidden",null);dL=_.k([_.QE({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],dL);
_.A(dL,"yt-flow-footer-renderer",function(){if(P_H===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;Ztm===void 0&&(Ztm=document.createElement("template"));var T=Ztm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);P_H=E}E=P_H;return E},{mode:2});var hj=function(){return _.r.apply(this,arguments)||this};
_.L(hj,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],hj.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],hj.prototype,"data",void 0);_.k([_.X({selector:function(E){return E.ypc.surveyFeedbackData}}),
_.t("design:type",Object)],hj.prototype,"surveyFeedbackData",void 0);hj=_.k([_.b({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],hj);
_.A(hj,"ytd-flow-footer-renderer",function(){if(wZg!==void 0)return wZg;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return wZg=E},{mode:_.qi("kevlar_poly_si_batch_j025")?1:2});var zx2;var mrd;var sB=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return E};
_.L(sB,_.r);_.l=sB.prototype;_.l.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.dA("multiPageMenuSectionItems")}}};
_.l.handleHideEnclosingAction_=function(E){if(this.data&&this.data.items)for(var B=0;B<this.data.items.length;B++){var I=this.data.items[B].notificationRenderer;if(I&&I.notificationId==E.hideEnclosingAction.notificationId){this.splice("data.items",B,1);_.I2(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.l.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.qK(this.hostElement,"hidden",!0)};
_.l.updateMenu_=function(E){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&E&&!E.doNotRefreshInbox){E=this.data.continuations;for(var B=0;B<E.length;B++)if(E[B].invalidationContinuationData){var I=void 0;var T=(I=E[B].invalidationContinuationData)==null?void 0:I.continuation;break}E=_.a_.clone(this.data.continuationUpdateEndpoint||null);E.continuation=T;E.click_tracking_params=this.data.trackingParams;_.l1(this.hostElement,[E])}};
_.l.onServiceRequestCompleted_=function(E,B){if(this.data&&(E=B.actions)){B=0;for(var I=E.length;B<I;B++){var T=_.h(E[B],_.XTl);if(!T)break;if((T.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||T.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&T.continuationItems&&this.data.items){var e=this.data.items.length-1;this.data.items[e].continuationItemRenderer&&this.splice.apply(this,["data.items",e,1].concat(T.continuationItems))}}}};
sB.prototype.onServiceRequestCompleted_=sB.prototype.onServiceRequestCompleted_;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],sB.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],sB.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],sB.prototype,"data",void 0);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],sB.prototype,"onServiceRequestCompleted_",null);sB=_.k([_.QE({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],sB);
_.VE()(sB,"yt-multi-page-menu-section-renderer",function(){if(mrd===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;zx2===void 0&&(zx2=document.createElement("template"));var T=zx2;I.call(B,T.content.cloneNode(!0),E.content.firstChild);mrd=E}E=mrd;return E},{allowedProps:["data"],
mode:2});var QZ8;var drO;var uR=function(){return _.r.apply(this,arguments)||this};
_.L(uR,_.r);uR.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Up.Object.defineProperties(uR.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.progress)==null?0:this.data.progress*100}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],uR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],uR.prototype,"data",void 0);_.k([_.S("data.progress"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],uR.prototype,"showProgressBar",null);
_.k([_.S("data.progress"),_.t("design:type",Number),_.t("design:paramtypes",[])],uR.prototype,"progress",null);uR=_.k([_.QE({is:"yt-flow-header-renderer",disableElementRegistration:!0})],uR);
_.A(uR,"yt-flow-header-renderer",function(){if(drO===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;QZ8===void 0&&(QZ8=document.createElement("template"));var T=QZ8;I.call(B,T.content.cloneNode(!0),E.content.firstChild);drO=E}E=drO;return E},{mode:2});var hx9;var sZL;var LQ=function(){return _.r.apply(this,arguments)||this};
_.L(LQ,_.r);LQ.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],LQ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],LQ.prototype,"data",void 0);LQ=_.k([_.QE({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],LQ);
_.A(LQ,"yt-post-confirmation-flow-step-renderer",function(){if(sZL===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;hx9===void 0&&(hx9=document.createElement("template"));var T=hx9;I.call(B,T.content.cloneNode(!0),E.content.firstChild);sZL=E}E=sZL;return E},{mode:2});var uPs;var LfL;var x1=function(){return _.r.apply(this,arguments)||this};
_.L(x1,_.r);
x1.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"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],x1.prototype,"data",void 0);x1=_.k([_.QE({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],x1);
_.A(x1,"yt-refund-confirmation-flow-step-renderer",function(){if(LfL===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;uPs===void 0&&(uPs=document.createElement("template"));var T=uPs;I.call(B,T.content.cloneNode(!0),E.content.firstChild);LfL=E}E=LfL;return E},{mode:2});_.qW(ImI);_.qW(TK9);var eJ8=_.z8({avatarViewModel:_.sj});_.qW(lmt);var c2t=_.z8({commentInteractionViewModel:TK9,sharedSubscriptionViewModel:lmt,buttonViewModel:_.ne});_.qW(i9L);_.qW(pPd);_.qW(Y3g);_.qW(ams);_.qW(vNT);var y27=_.z8({profileIdentityInfoViewModel:_.NMt,profileInfoViewModel:vNT});_.qW(CmI);_.qE(CmI,"yt-profile-card-view-model",{propNames:["data"]});var GZ=function(){var E=_.r.apply(this,arguments)||this;E.enableFocusFix=_.d("music_web_enable_focus_on_setting_menu_fix")&&_.gU("IS_MOBILE_WEB",!1);E.covered=!1;E.hideMenu=!1;E.isCommentNotificationOnProfileCard=!1;E.scrolledByTouch=!1;E.disableBackdropFilter=_.d("web_disable_backdrop_filter");E.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return E};
_.L(GZ,_.r);_.l=GZ.prototype;
_.l.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"}}}};
_.l.ready=function(){var E=this;this.JSC$17833_containerElement.addEventListener("scroll",function(){E.ytRendererBehavior.markDirty()})};
_.l.attributeChanged=function(E,B){E==="menu-style"&&_.I2(this.hostElement,"yt-multi-page-menu-closed-action",[B])};
_.l.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Kq(this,this.focusOnStampFinished))};
_.l.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Kq(this,this.focusOnStampFinished))};
_.l.reset=function(){this.closeJobId&&(_.Ll.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.l.focusOnStampFinished=function(E){E.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Kq(this,this.focusOnStampFinished)),this.doFocus())};
_.l.doFocus=function(){var E=_.FVN(this.sectionsElement);E.length&&E[0].focus()};
_.l.computeMenuStyle=function(E){return E?E.toLowerCase().replace(/_/g,"-"):""};
_.l.computeIsCommentNotificationOnProfileCard=function(E){return _.d("enable_profile_cards_on_comments")&&E.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.l.computeHideMenu=function(E,B){return E||!(!B||!B.showLoadingSpinner)};
_.l.onPopupClosed=function(){this.isPopUpOpen=!1;_.I2(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.l.onPopupOpened=function(E,B){this.isPopUpOpen=!0;B.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.$O(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.BP({type:"CHANNEL_REPORT_RESET"})))};
_.l.onYtNavigate=function(E,B){this.shouldCloseOnNavigateEvent(B.endpoint)&&_.I2(this.hostElement,"yt-close-all-popups-action")};
_.l.handleEndpoint=function(E){E=_.h(E,_.OS);!this.isCommentNotificationOnProfileCard&&E&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17833_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.l.handleActions=function(E){for(var B=0,I=E.length;B<I;B++){var T=_.h(E[B],SIm);T&&this.handleGetMultiPageMenuAction(T);(T=_.h(E[B],_.XTl))&&this.handleAppendContinuationItemsAction(T)}};
_.l.onServiceRequestSentOrCompleted=function(E,B){E.detail&&E.detail.endpoint&&this.handleEndpoint(E.detail.endpoint);B.actions&&this.handleActions(B.actions)};
_.l.handleGetMultiPageMenuAction=function(E){var B=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.n(this.submenuElement).appendChild(B);(E=E.menu.multiPageMenuRenderer)&&this.logSubmenu(E);B.data=E;B.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.l.handleAppendContinuationItemsAction=function(E){if(this.data&&E.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&E.continuationItems&&this.data.sections){var B=this.data.sections.length-1;this.data.sections[B].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),B--);if(this.data.sections[B].multiPageMenuNotificationSectionRenderer&&E.continuationItems){E=_.p(E==null?void 0:E.continuationItems);for(var I=E.next();!I.done;I=E.next())if(I=I.value,_.h(I,cBI)){var T=
void 0,e=void 0,c=void 0,Y=void 0,v=void 0;((T=this)==null?0:(e=T.data)==null?0:(c=e.sections)==null?0:(Y=c[B])==null?0:(v=Y.multiPageMenuNotificationSectionRenderer)==null?0:v.items)&&this.push("data.sections."+B+".multiPageMenuNotificationSectionRenderer.items",I)}else if(_.h(I,_.s8r)||_.h(I,_.IP))this.push("data.sections",I),B++}}};
_.l.logSubmenu=function(E){if(!_.d("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var B=this.ytRendererBehavior.getScreenLayer(),I=_.nC(B),T=_.Oi(B);if((E=E.trackingParams)&&I&&T){var e=_.Yg(E);_.d("combine_ve_grafts")?_.lu().graftServerVe(E,T,B):_.XD(I,T,e)}}};
_.l.emptySubmenuContainer=function(){for(var E=_.n(this.submenuElement);E.firstChild;)E.removeChild(E.firstChild)};
_.l.onMenuBackTap=function(E){_.$O(this.hostElement,"yt-submenu-closed");E.stopPropagation()};
_.l.onSubmenuClosed=function(E){_.XN(E)!==this.hostElement&&(this.covered=!1,_.$O(this.hostElement,"yt-refit"),E.stopPropagation())};
_.l.onRetrieveLocation=function(E,B){B.hasComments&&(B.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),E.stopPropagation())};
_.l.shouldCloseOnNavigateEvent=function(E){if(!E)return!0;if(_.h(E,_.Qnu)||_.h(E,_.d$R)||_.h(E,_.m$R)||_.h(E,_.JK))return!1;var B;return((B=_.h(E==null?void 0:E.commandMetadata,_.D$))==null?0:B.ignoreNavigation)?!1:!0};
_.l.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.l.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.l.refitAfterRender=function(){var E=this;_.AJ(this,function(){_.$O(E.hostElement,"yt-refit")})};
GZ.prototype.refitAfterRender=GZ.prototype.refitAfterRender;GZ.prototype.onRetrieveLocation=GZ.prototype.onRetrieveLocation;GZ.prototype.onSubmenuClosed=GZ.prototype.onSubmenuClosed;GZ.prototype.onMenuBackTap=GZ.prototype.onMenuBackTap;GZ.prototype.onServiceRequestSentOrCompleted=GZ.prototype.onServiceRequestSentOrCompleted;GZ.prototype.onYtNavigate=GZ.prototype.onYtNavigate;GZ.prototype.onPopupOpened=GZ.prototype.onPopupOpened;GZ.prototype.onPopupClosed=GZ.prototype.onPopupClosed;
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],GZ.prototype,"ytEventForwardingBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],GZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],GZ.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],GZ.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],GZ.prototype,"enableFocusFix",void 0);_.k([_.X(),_.t("design:type",Object)],GZ.prototype,"covered",void 0);_.k([_.X({computed:"computeHideMenu(covered, data)"}),_.t("design:type",Object)],GZ.prototype,"hideMenu",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.t("design:type",String)],GZ.prototype,"menuStyle",void 0);
_.k([_.X({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.t("design:type",Object)],GZ.prototype,"isCommentNotificationOnProfileCard",void 0);_.k([_.X(),_.t("design:type",Boolean)],GZ.prototype,"isPopUpOpen",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],GZ.prototype,"scrolledByTouch",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],GZ.prototype,"disableBackdropFilter",void 0);
_.k([_.$7("#sections"),_.t("design:type",HTMLElement)],GZ.prototype,"sectionsElement",void 0);_.k([_.$7("#spinner"),_.t("design:type",HTMLElement)],GZ.prototype,"spinnerElement",void 0);_.k([_.$7("#header"),_.t("design:type",HTMLElement)],GZ.prototype,"headerElement",void 0);_.k([_.$7("#container"),_.t("design:type",HTMLElement)],GZ.prototype,"JSC$17833_containerElement",void 0);_.k([_.$7("#submenu"),_.t("design:type",HTMLElement)],GZ.prototype,"submenuElement",void 0);
_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],GZ.prototype,"onPopupClosed",null);_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],GZ.prototype,"onPopupOpened",null);_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],GZ.prototype,"onYtNavigate",null);
_.k([_.RN("yt-service-request-completed"),_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],GZ.prototype,"onServiceRequestSentOrCompleted",null);_.k([_.RN("yt-menu-back-tapped"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],GZ.prototype,"onMenuBackTap",null);
_.k([_.RN("yt-submenu-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],GZ.prototype,"onSubmenuClosed",null);_.k([_.RN("yt-retrieve-location"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],GZ.prototype,"onRetrieveLocation",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],GZ.prototype,"refitAfterRender",null);
GZ=_.k([_.b({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],GZ);
_.A(GZ,"ytd-multi-page-menu-renderer",function(){if(TQO!==void 0)return TQO;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return TQO=E},{mode:1});var xrT;var OB=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return E};
_.L(OB,_.r);_.l=OB.prototype;_.l.created=function(){this.showTooltips=!0};
_.l.computeAccessibility_=function(E){return this.get("accessibility.accessibilityData",E)||null};
_.l.onTap=function(){var E=_.Ta(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(E&&E.length===1&&E[0])_.I2(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var B;if((B=this.data)==null?0:B.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var I;((I=this.data)==null?0:I.menuRequest)&&_.l1(this.hostElement,[this.data.menuRequest])}}};
_.l.handleTopbarMenuClosedAction=function(E){var B,I;(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(E)===((B=this.data)==null?void 0:(I=B.icon)==null?void 0:I.iconType)&&this.toggleIconState(!1)};
_.l.toggleIconState=function(E){_.d("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=E)};
_.l.handleUpdateTopbarAvatarAction=function(E){var B;E=(B=_.h(E,GqO))==null?void 0:B.avatarUrl;var I,T;B=(I=this.data)==null?void 0:(T=I.avatar)==null?void 0:T.thumbnails;E&&B&&(I={thumbnails:[Object.assign({},B[0],{url:E})]},this.set("data.avatar",I))};
_.Up.Object.defineProperties(OB.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.n(this.hostElement).querySelector("#button")}}});
OB.prototype.onTap=OB.prototype.onTap;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],OB.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],OB.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.X_),_.t("design:type",Object)],OB.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.g(_.njX.YtButtonBehavior),_.t("design:type",Object)],OB.prototype,"ytButtonBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],OB.prototype,"data",void 0);
_.k([_.$7("yt-icon-button#button"),_.t("design:type",Object)],OB.prototype,"iconButton",void 0);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],OB.prototype,"onTap",null);OB=_.k([_.b({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],OB);
_.A(OB,"ytd-topbar-menu-button-renderer",function(){if(xrT!==void 0)return xrT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return xrT=E},{mode:1});var GS9;var nQ=function(){return _.r.apply(this,arguments)||this};
_.L(nQ,_.r);nQ.prototype.getSelected=function(){return this.reasons.selected};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],nQ.prototype,"data",void 0);_.k([_.$7("#reasons"),_.t("design:type",Object)],nQ.prototype,"reasons",void 0);nQ=_.k([_.b({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],nQ);
_.A(nQ,"ytd-ad-feedback-content",function(){if(GS9!==void 0)return GS9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return GS9=E},{mode:1});var OtI;var MF=function(){return _.r.apply(this,arguments)||this};
_.L(MF,_.r);_.l=MF.prototype;_.l.onPopupOpened=function(){_.I2(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.l.computeConfirmButton=function(E){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:E.confirmLabel}};
_.l.computeCancelButton=function(E){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:E.cancelLabel}};
_.l.onConfirmTap=function(){var E=this.content.getSelected();E!==void 0&&(E=this.data.reasons[E].endpoint)&&(_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}}),_.I2(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.l.sendFeedbackSubmitToastAction=function(){var E;(E=this.data)!=null&&E.completionMessage&&_.I2(this.hostElement,"yt-open-popup-action",[_.VF(this.data.completionMessage),this])};
_.l.onCancelTap=function(){_.I2(this.hostElement,"yt-close-popup-action")};
MF.prototype.onPopupOpened=MF.prototype.onPopupOpened;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],MF.prototype,"data",void 0);_.k([_.$7("#content"),_.t("design:type",Object)],MF.prototype,"content",void 0);_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],MF.prototype,"onPopupOpened",null);
MF=_.k([_.b({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],MF);
_.A(MF,"ytd-ad-feedback-renderer",function(){if(OtI!==void 0)return OtI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return OtI=E},{mode:1});var nJH;var Ha=function(){return _.r.apply(this,arguments)||this};
_.L(Ha,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ha.prototype,"data",void 0);Ha=_.k([_.b({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Ha);
_.A(Ha,"ytd-ad-info-dialog-content",function(){if(nJH!==void 0)return nJH;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return nJH=E},{mode:1});var Mmg;var NF=function(){return _.r.apply(this,arguments)||this};
_.L(NF,_.r);NF.prototype.computeConfirmButton=function(E){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:E.confirmLabel}};
NF.prototype.onConfirmTap=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
NF.prototype.computeShouldShowTitle=function(){var E;return!((E=this.data)==null||!E.title)};
NF.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.Q().resolve(_.Dt).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
NF.prototype.onPopupClosed=NF.prototype.onPopupClosed;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],NF.prototype,"data",void 0);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],NF.prototype,"onPopupClosed",null);NF=_.k([_.b({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],NF);
_.A(NF,"ytd-ad-info-dialog-renderer",function(){if(Mmg!==void 0)return Mmg;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Mmg=E},{mode:1});var Htt;var gL=function(){var E=_.r.apply(this,arguments)||this;E.actionButtonClass="action-button";E.dismissButtonId="dismiss-button";E.dialogDismiss=!0;return E};
_.L(gL,_.r);_.l=gL.prototype;_.l.computeInPlayer=function(E){return(E==null?void 0:E.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.l.computedLogo=function(){var E,B;return this.isDarkTheme()?(E=this.data)==null?void 0:E.logoDark:(B=this.data)==null?void 0:B.logo};
_.l.computedHeaderImage=function(){var E,B;return this.isDarkTheme()?(E=this.data)==null?void 0:E.headerImageDark:(B=this.data)==null?void 0:B.headerImage};
_.l.computeLogoIconId=function(){var E,B,I,T=(E=this.computedLogo())==null?void 0:(B=E.sources)==null?void 0:(I=B[0])==null?void 0:I.height;return T&&T%31===0?"logo-icon-with-padding":"logo-icon"};
_.l.computeLogoIconHeight=function(){var E,B,I,T=(E=this.computedLogo())==null?void 0:(B=E.sources)==null?void 0:(I=B[0])==null?void 0:I.height;return T&&T%31===0?"31":"24"};
_.l.onPopupClosed=function(){_.Q().resolve(_.fB).dispose()};
_.l.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.l.onShow=function(){this.inPlayer&&_.ij(6)};
_.l.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var E=0;E<this.data.impressionEndpoints.length;E++){var B=_.h(this.data.impressionEndpoints[E],_.dX);B&&this.ytComponentBehavior.resolveCommand(B)}};
_.l.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.I2(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Up.Object.defineProperties(gL.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var E,B;return!((E=this.data)==null||!E.headerImageDark)&&!((B=this.data)==null||!B.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.secondaryButton)}}});
gL.prototype.onPopupClosed=gL.prototype.onPopupClosed;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],gL.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Ml.YtVisibilityBehavior),_.t("design:type",Object)],gL.prototype,"ytVisibilityBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],gL.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],gL.prototype,"actionButtonClass",void 0);_.k([_.X(),_.t("design:type",Object)],gL.prototype,"dismissButtonId",void 0);_.k([_.X(),_.t("design:type",Object)],gL.prototype,"dialogDismiss",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],gL.prototype,"hasHeaderImage",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],gL.prototype,"hasPremiumButton",null);
_.k([_.X({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.t("design:type",Boolean)],gL.prototype,"inPlayer",void 0);_.k([_.$7("#dismiss-button"),_.t("design:type",HTMLElement)],gL.prototype,"dismissButton",void 0);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],gL.prototype,"onPopupClosed",null);gL=_.k([_.b({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],gL);
_.A(gL,"ytd-enforcement-message-view-model",function(){if(Htt!==void 0)return Htt;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Htt=E},{mode:1});var NQH;var gJ1;var Sb=function(){var E=_.r.apply(this,arguments)||this;E.TEST_ONLY={immediateValidation:function(){E.immediateValidation()},
onValidationResponse:function(B){E.onValidationResponse(B)},
onGenerateHandleFromNameResponse:function(B){E.onGenerateHandleFromNameResponse(B)}};
return E};
_.L(Sb,_.r);_.l=Sb.prototype;_.l.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.l.validate=function(){this.immediateValidation()};
_.l.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.l.setHandleInputValue=function(E){this.handleDir=this.getHandleDir(E);this.handleInput.value=E;this.validationState={status:"PENDING"};this.immediateValidation()};
_.l.getHandleDir=function(E){var B=E===""&&!1;return(B=_.ovV.test.call(_.ovV,E))?"rtl":"ltr"};
_.l.onDataChanged=function(){var E,B;this.handleDir=this.getHandleDir((B=(E=this.data)==null?void 0:E.handle)!=null?B:"");var I;this.validationState=((I=this.data)==null?0:I.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var T;((T=this.data)==null?0:T.validateOnInit)&&this.immediateValidation()};
_.l.stopPropagation=function(E){E.stopPropagation()};
_.l.onInput=function(){var E;this.handleDir=this.getHandleDir((E=this.handleInput.value)!=null?E:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.l.onFocusout=function(E){this.handleInput.contains(E.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.l.delayedValidation=function(){var E,B;this.debouncedValidation((B=(E=this.data)==null?void 0:E.validationDelayMs)!=null?B:1E3)};
_.l.immediateValidation=function(){this.debouncedValidation(0)};
_.l.debouncedValidation=function(E){var B=this;_.OM(this,"debouncedValidation",function(){var I,T=B.staticValidation((I=B.handleInput.value)!=null?I:"");if(T!==void 0)B.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:T};else{var e;if((e=B.data)!=null&&e.validateChannelHandleCommand){B.validationState={status:"LOADING"};var c;B.ytComponentBehavior.resolveCommand(B.data.validateChannelHandleCommand,{form:{handle:(c=B.handleInput.value)!=null?c:""},commandController:{onSuccess:function(Y,
v){B.onValidationResponse(v)},
onServerError:function(Y,v){B.onValidationServerError(v)}}})}else B.handleUnexpectedValidationError(new _.P7("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",B.data))}},E)};
_.l.staticValidation=function(E){var B;if(((B=this.data)==null?void 0:B.channelHandleStaticValidationParams)!==void 0){B=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(E)&&B.validValueRegexpErrorMessage!==void 0)return B.validValueRegexpErrorMessage;if(B.minLength!==void 0&&E.length<B.minLength&&B.minLengthErrorMessage!==void 0)return B.minLengthErrorMessage;if(B.maxLength!==void 0&&E.length>B.maxLength&&B.maxLengthErrorMessage!==void 0)return B.maxLengthErrorMessage}};
_.l.onValidationResponse=function(E){var B=_.h(E.result,O2T);B===void 0?this.handleUnexpectedValidationError(new _.P7("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",E)):this.handleValidationResultRenderer(B)};
_.l.onValidationServerError=function(E){this.handleUnexpectedValidationError(new _.P7("ValidateChannelHandle request failed.",E))};
_.l.handleValidationResultRenderer=function(E){if(E.handle===void 0)this.handleUnexpectedValidationError(new _.P7("ChannelHandleValidationResultRenderer does not contain handle.",E));else if(E.handle===this.handleInput.value)switch(E.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:E.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:E.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.P7("Unrecognized ChannelHandleValidationResult",E));break;default:_.E9(E.result)}};
_.l.handleUnexpectedValidationError=function(E){var B;this.validationState={status:"UNKNOWN",handle:(B=this.handleInput.value)!=null?B:""};_.OG(E)};
_.l.stopEventPropagation=function(E){E.stopPropagation()};
_.l.updateHandleOnChannelNameInputChange=function(E){if(!this.wasEdited){var B,I;this.debouncedGenerateHandleFromName(E,(I=(B=this.data)==null?void 0:B.validationDelayMs)!=null?I:1E3)}};
_.l.debouncedGenerateHandleFromName=function(E,B){var I=this;_.OM(this,"debouncedGenerateHandleFromName",function(){var T;(T=I.data)!=null&&T.validateChannelHandleCommand?I.ytComponentBehavior.resolveCommand(I.data.validateChannelHandleCommand,{form:{name:E},commandController:{onSuccess:function(e,c){I.onGenerateHandleFromNameResponse(c)},
onServerError:function(e,c){_.OG(new _.P7("Error calling GenerateHandleFromName",c))}}}):_.OG(new _.P7("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",I.data))},B)};
_.l.onGenerateHandleFromNameResponse=function(E){this.wasEdited||((E=_.h(E.result,nfL))?this.setHandleInputValue(E.handle):_.OG(new _.P7("Invalid results when generate handle from name")))};
_.Up.Object.defineProperties(Sb.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var E;if(E=this.validationState)E=this.validationState,E=E.status==="OK"||E.status==="UNKNOWN";if(E)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var E;if(((E=this.validationState)==null?void 0:E.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 E,B=(E=this.channelHandleEntity)==null?void 0:E.handleEdit;this.handleDir=this.getHandleDir(B!=null?B:"");return B}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var E,B;if(((E=this.data)==null?void 0:(B=E.channelHandleStaticValidationParams)==null?void 0:B.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Sb.prototype.stopEventPropagation=Sb.prototype.stopEventPropagation;Sb.prototype.onDataChanged=Sb.prototype.onDataChanged;Sb.prototype.applyHandleEdit=Sb.prototype.applyHandleEdit;Sb.prototype.onValueChanged=Sb.prototype.onValueChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Sb.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Sb.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Sb.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Boolean)],Sb.prototype,"wasEdited",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],Sb.prototype,"handleDir",void 0);_.k([_.$7("#handle-input"),_.t("design:type",Object)],Sb.prototype,"handleInput",void 0);_.k([_.X(),_.S("validationState"),_.t("design:type",Object),_.t("design:paramtypes",[])],Sb.prototype,"value",null);
_.k([_.EM("value"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Sb.prototype,"onValueChanged",null);_.k([_.S("validationState"),_.t("design:type",Object),_.t("design:paramtypes",[])],Sb.prototype,"errorIndicator",null);_.k([_.X({reflectToAttribute:!0}),_.S("errorIndicator"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Sb.prototype,"borderErrorIndicator",null);
_.k([_.X({selectorArgs:["data.channelHandleEntityKey"],selector:function(E,B){return _.cP(E.entities,"channelHandle",B)}}),
_.t("design:type",Object)],Sb.prototype,"channelHandleEntity",void 0);_.k([_.S("channelHandleEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],Sb.prototype,"handleEdit",null);_.k([_.EM("handleEdit"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Sb.prototype,"applyHandleEdit",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Sb.prototype,"onDataChanged",null);
_.k([_.S("data.channelHandleStaticValidationParams.validValueRegexp"),_.t("design:type",Object),_.t("design:paramtypes",[])],Sb.prototype,"validValueRegexp",null);_.k([_.RN("yt-service-request-sent"),_.RN("yt-service-request-completed"),_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],Sb.prototype,"stopEventPropagation",null);Sb=_.k([_.b({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Sb);
_.A(Sb,"ytd-channel-handle-input-renderer",function(){if(gJ1!==void 0)return gJ1;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return gJ1=E},{mode:_.qi("kevlar_poly_si_batch_j025")?1:2});var Jj=function(){var E=_.r.apply(this,arguments)||this;E.data=null;E.errorMessage=null;E.isLoading=!0;E.hideContainer=!1;E.enableNewChannelCreationOnIdForAll=_.d("enable_new_channel_creation_for_id4all");E.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"};E.testOnly={setErrorMessage:function(B){E.resetErrorState();
E.setErrorState(B)}};
return E};
_.L(Jj,_.r);_.l=Jj.prototype;_.l.created=function(){this.logScreenVe()};
_.l.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")};
_.l.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var E;((E=this.zeroStepErrorMessageEntity)==null?0:E.value)&&this.set("errorMessage",_.jj(this.zeroStepErrorMessageEntity.value))};
_.l.onCreateTap=function(){var E=this;if(this.data&&this.data.channelCreationEndpoint){var B,I;if(!((B=this.data.createChannelButton)==null?0:(I=B.buttonRenderer)==null?0:I.isDisabled)){var T;if((T=this.nameInput)!=null&&T.value){this.setLoadingState();var e,c;B=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(e=this.handleInput)==null?void 0:e.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((c=this.handleInput)==null?void 0:c.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:B,commandController:{onSuccess:function(Y,v){E.onChannelCreationEndpointSuccess(v);E.obakeImageSource&&_.hK("channelCreatedWithObakeImage",{imageSourceType:E.obakeImageSource})},
onServerError:function(){E.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.l.endpointRequiresServiceRequestAction=function(E){return!!_.h(E,_.nJ)||!!_.h(E,GqO)};
_.l.isNavigateAction=function(E){var B;return!!_.h(E,_.nI)||!!_.h((B=_.h(E,N48))==null?void 0:B.command,_.nI)};
_.l.isPlaylistAction=function(E){return!!_.h(E,_.nU)||!!_.h(E,_.Sp)};
_.l.onChannelCreationEndpointSuccess=function(E){if(E.createChannelError){var B;this.setErrorState((B=E.createChannelError)==null?void 0:B.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.d("enable_secondary_channel_creation_form")&&E.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(E.navigationEndpoint);if(E.actions){B=_.p(E.actions);for(var I=B.next();!I.done;I=B.next())if(I=I.value,this.endpointRequiresServiceRequestAction(I)&&this.ytComponentBehavior.resolveCommand(I),
this.isNavigateAction(I)){var T=void 0;I=_.h((T=_.h(I,N48))==null?void 0:T.command,_.nI);T=void 0;this.isPlaylistAction((T=I)==null?void 0:T.endpoint)&&(_.I2(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),T=void 0,this.ytComponentBehavior.resolveCommand((T=I)==null?void 0:T.endpoint))}}E.actions&&E.actions.some(function(e){var c;return _.h(e,_.nI)||_.h((c=_.h(e,N48))==null?void 0:c.command,_.nI)})||_.I2(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.l.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.l.onCancelTap=function(){var E,B,I;if(!((E=this.data)==null?0:(B=E.cancelButton)==null?0:(I=B.buttonRenderer)==null?0:I.isDisabled)){var T,e,c;E=(T=this.data)==null?void 0:(e=T.cancelButton)==null?void 0:(c=e.buttonRenderer)==null?void 0:c.command;if(!E||!_.h(E,_.H64)){var Y;this.nameInput&&((Y=this.data)==null?0:Y.name)&&(this.nameInput.value=this.data.name);var v;this.handleInput&&((v=this.data)==null?0:v.channelHandleInput)&&(this.handleInput.data=_.h(this.data.channelHandleInput,MyL));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.l.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.l.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.l.onClearProfilePhotoTap=function(){var E,B,I;((E=this.data)==null?0:(B=E.clearProfilePhotoButton)==null?0:(I=B.buttonRenderer)==null?0:I.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.l.onEditAvatarTap=function(){var E,B,I;((E=this.data)==null?0:(B=E.editAvatarButton)==null?0:(I=B.buttonRenderer)==null?0:I.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.l.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)};
_.l.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var E;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((E=this.data)==null?0:E.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.l.setErrorState=function(E){this.resetErrorState();if(E)this.set("errorMessage",E);else{var B;if((B=this.zeroStepErrorMessageEntity)==null?0:B.value)this.set("errorMessage",_.jj(this.zeroStepErrorMessageEntity.value));else{var I;((I=this.data)==null?0:I.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.l.fetchImageBlobWithAlr=function(E,B){B=B===void 0?5:B;var I=this,T,e,c,Y,v;return _.a(function(y){switch(y.nextAddress){case 1:return _.C(y,fetch(E,{method:"GET",mode:"cors"}),2);case 2:T=y.yieldResult;if(T.ok){y.jumpTo(3);break}if(B===0)throw Error();e=I.addJitter(Math.pow(2,5-B));return _.C(y,new Promise(function(Z){setTimeout(Z,e*1E3)}),4);
case 4:return y.return(I.fetchImageBlobWithAlr(E,B-1));case 3:if(!T.headers.get("content-type").split(";").some(function(Z){return Z.trim()==="text/plain"})){y.jumpTo(5);
break}c=I;Y=c.fetchImageBlobWithAlr;return _.C(y,T.text(),6);case 6:return y.return(Y.call(c,y.yieldResult,B-1));case 5:return _.C(y,T.blob(),7);case 7:return v=y.yieldResult,y.return(v)}})};
_.l.addJitter=function(E){var B=E*.3*Math.random();Math.random()>.5&&(B*=-1);return E+B};
_.l.openProfilePicturePicker=function(){var E=this,B,I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1){B=E.data.scottyUploadUrl;if(!B)return Y.return();I=document.documentElement.hasAttribute("dark");T=document.body.style.colorScheme;I&&(document.body.style.colorScheme="dark");e=S8I(Jsd(gUs(xd8(I?"dark":"light")),function(v){var y,Z,P,z,m;return _.a(function(u){if(u.nextAddress==1)return y=_.bt(KpH(new Zy(v.photoUrl,!1)).build(),"alr","yes"),E.obakeImageSource=E.pictureChangeSourceToObakeImageSourceType(v.photoSource),
_.q7(u,2),E.setLoadingState(),_.C(u,E.fetchImageBlobWithAlr(y),4);if(u.nextAddress!=2)return Z=u.yieldResult,P=new FileReader,P.addEventListener("load",function(){var x,M,N,W,U,q;return _.a(function(f){if(f.nextAddress==1){if(Z.size>15728640)return E.setErrorState((x=E.data)==null?void 0:x.imageSizeErrorMessage),_.OG(Error("il")),f.return();if(!P.result)return E.setErrorState((M=E.data)==null?void 0:M.genericImageLoadErrorMessage),_.OG(Error("jl")),f.return();N=P.result;_.q7(f,2);return _.C(f,wP1(Z,
B),4)}if(f.nextAddress!=2)return W=f.yieldResult,E.handleImageUpdatedAction(N,W),E.resetErrorState(),_.W7(f,0);U=_.RG(f);E.setErrorState((q=E.data)==null?void 0:q.uploadErrorMessage);if(U instanceof Error)_.xV(U);else{var ed=new _.P7(JSON.stringify(U));_.xV(ed)}_.ER(f)})}),P.readAsDataURL(Z),_.W7(u,0);
z=_.RG(u);E.setErrorState((m=E.data)==null?void 0:m.genericImageLoadErrorMessage);z instanceof Error?_.xV(z):_.GF(new _.P7(JSON.stringify(z)));_.ER(u)})}),function(){E.hideContainer=!1;
document.body.style.colorScheme=T});
_.q7(Y,2);return _.C(Y,e.openPicker(),4)}if(Y.nextAddress!=2)return _.W7(Y,0);_.RG(Y);E.setErrorState((c=E.data)==null?void 0:c.selectImageErrorMessage);_.ER(Y)})};
_.l.pictureChangeSourceToObakeImageSourceType=function(E){switch(E){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.l.logScreenVe=function(){_.I5(_.lu(),124448)};
_.l.graftServerVe=function(){var E=_.Oi(),B,I,T=(B=this.data)==null?void 0:(I=B.loggingDirectives)==null?void 0:I.trackingParams;T&&E&&(this.channelCreationFormVe=_.lu().graftServerVe(T,E),E={visualElement:this.channelCreationFormVe},_.TA().reportShown(E))};
_.l.isNameChanged=function(E){var B;return((B=this.data)==null?void 0:B.name)!==E};
_.l.isHandleChanged=function(E){var B,I=_.h((B=this.data)==null?void 0:B.channelHandleInput,MyL);return I&&E?I.handle!==E:!1};
_.l.handleImageUpdatedAction=function(E,B){this.hideContainer=!1;this.previewDataUrl=E;this.encryptedBlobId=B};
_.l.handleImageSelectionErrorAction=function(E){this.hideContainer=!1;this.setErrorState(E)};
_.l.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.l.showContainer=function(){this.hideContainer=!1};
_.l.maybeWipeZeroStepErrorMessage=function(){var E,B=(E=this.data)==null?void 0:E.zeroStepErrorMessageEntityKey,I;B&&((I=this.zeroStepErrorMessageEntity)==null?0:I.value)&&this.ytdReduxBehavior.dispatch(_.aL("stringEntity",B,{key:B,value:""}))};
_.Up.Object.defineProperties(Jj.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 E;return((E=this.photoThumbnail)==null?0:E.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 E;return!((E=this.data)==null||!E.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.descriptionInfo}}});
Jj.prototype.dataChanged=Jj.prototype.dataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Jj.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Jj.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Jj.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Jj.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Jj.prototype,"errorMessage",void 0);
_.k([_.X(),_.t("design:type",Object)],Jj.prototype,"isLoading",void 0);_.k([_.X(),_.t("design:type",String)],Jj.prototype,"previewDataUrl",void 0);_.k([_.X(),_.t("design:type",Number)],Jj.prototype,"obakeImageSource",void 0);_.k([_.X(),_.t("design:type",Object)],Jj.prototype,"hideContainer",void 0);_.k([_.$7("#title-input"),_.t("design:type",Object)],Jj.prototype,"nameInput",void 0);_.k([_.$7("#handle-input"),_.t("design:type",Object)],Jj.prototype,"handleInput",void 0);
_.k([_.X(),_.t("design:type",Boolean)],Jj.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.k([_.X({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.wIi}),_.t("design:type",Object)],Jj.prototype,"zeroStepErrorMessageEntity",void 0);_.k([_.S("data","data.isDefaultProfilePhoto","previewDataUrl"),_.t("design:type",Object),_.t("design:paramtypes",[])],Jj.prototype,"photoThumbnail",null);
_.k([_.S("data","data.isDefaultProfilePhoto","photoThumbnail"),_.t("design:type",Object),_.t("design:paramtypes",[])],Jj.prototype,"userSetPhotoThumbnailUrl",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Jj.prototype,"hideProfilePhotoButtonLayer",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Jj.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.k([_.i6("data","zeroStepErrorMessageEntity"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Jj.prototype,"dataChanged",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.descriptionInfo","zeroStepErrorMessageEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],Jj.prototype,"description",null);Jj=_.k([_.b({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Jj);
_.A(Jj,"ytd-channel-creation-dialog-renderer",function(){if(NQH!==void 0)return NQH;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return NQH=E},{mode:1});var Svm;var Wa=function(){var E=_.r.apply(this,arguments)||this;E.isLoading=!1;E.isDisabled=!1;return E};
_.L(Wa,_.r);Wa.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Wa.prototype.updateDisabled=function(){var E;this.isDisabled=this.isLoading||((E=this.handleInput)==null?void 0:E.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Wa.prototype.onSaveClick=function(){var E=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var B;((B=this.data)==null?void 0:B.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 I;if((I=E.data)==null?0:I.nextEndpoint){var T;E.ytComponentBehavior.resolveCommand((T=E.data)==null?void 0:T.nextEndpoint)}else E.isLoading=
!1,E.closeDialog()},
onServerError:function(){E.isLoading=!1;E.handleInput.validate();var I;E.errorMessage=(I=E.data)==null?void 0:I.errorMessage}}}))}};
Wa.prototype.closeDialog=function(){_.I2(this.hostElement,"yt-close-popup-action",[this.is])};
Wa.prototype.updateDisabled=Wa.prototype.updateDisabled;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Wa.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Wa.prototype,"data",void 0);_.k([_.$7("#handle-input"),_.t("design:type",Object)],Wa.prototype,"handleInput",void 0);_.k([_.EM("isLoading"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Wa.prototype,"updateDisabled",null);
Wa=_.k([_.b({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Wa);
_.A(Wa,"ytd-channel-handle-edit-dialog-renderer",function(){if(Svm!==void 0)return Svm;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Svm=E},{mode:1});var JyI;var Xo=function(){return _.r.apply(this,arguments)||this};
_.L(Xo,_.r);Xo.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Xo.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Xo.prototype,"data",void 0);Xo=_.k([_.b({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Xo);
_.A(Xo,"ytd-channel-switcher-footer-renderer",function(){if(JyI!==void 0)return JyI;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return JyI=E},{mode:1});var Wf2;var XZL;var rL=function(){return _.r.apply(this,arguments)||this};
_.L(rL,_.r);rL.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
rL.prototype.onIronChange=rL.prototype.onIronChange;_.k([_.X(),_.t("design:type",Object)],rL.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!1}),_.t("design:type",Function)],rL.prototype,"onDontAskAgainChanged",void 0);_.k([_.$7("#checkbox"),_.t("design:type",Object)],rL.prototype,"checkbox",void 0);_.k([_.RN("iron-change"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],rL.prototype,"onIronChange",null);
rL=_.k([_.b({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],rL);
_.A(rL,"ytd-identity-prompt-footer-renderer",function(){if(XZL!==void 0)return XZL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return XZL=E},{mode:1});var bR=function(){var E=_.r.apply(this,arguments)||this;E.dontAskAgain=!1;E.showPopup=!1;E.boundDontAskAgainChanged=function(B){E.dontAskAgainChanged(B)};
E.boundOnAccountItemTap=function(B){E.onAccountItemTap(B)};
return E};
_.L(bR,_.r);_.l=bR.prototype;
_.l.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]]"}}}}}};
_.l.ready=function(){var E=this;_.n(this.hostElement).querySelector("#container").addEventListener("scroll",function(){E.ytRendererBehavior.markDirty()})};
_.l.dontAskAgainChanged=function(E){this.dontAskAgain=E};
_.l.onAccountItemTap=function(E){if(E){var B={};this.dontAskAgain&&(B={dont_ask_again:this.dontAskAgain});_.xG(E,B)}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.l.redirectOnlyAccount=function(E){E.sections&&E.sections.length>0&&(E=_.h(E.sections[0],_.S8t),(E==null?0:E.contents)&&(E==null?void 0:E.contents.length)<=1?(E=_.AA(window.location.href),(E==null?0:E.next)&&_.Zgt(E.next)?_.xG(E.next):_.xG("/")):this.showPopup=!0)};
bR.prototype.dataChanged=bR.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],bR.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!1}),_.t("design:type",Object)],bR.prototype,"dontAskAgain",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],bR.prototype,"showPopup",void 0);_.k([_.X({reflectToAttribute:!1}),_.t("design:type",Object)],bR.prototype,"boundDontAskAgainChanged",void 0);_.k([_.X({reflectToAttribute:!1}),_.t("design:type",Object)],bR.prototype,"boundOnAccountItemTap",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],bR.prototype,"dataChanged",null);
bR=_.k([_.b({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],bR);
_.A(bR,"ytd-channel-switcher-renderer",function(){if(Wf2!==void 0)return Wf2;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Wf2=E},{mode:1});var ryg;var os=function(){return _.r.apply(this,arguments)||this};
_.L(os,_.r);_.Up.Object.defineProperties(os.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.k([_.X(),_.t("design:type",Object)],os.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Array),_.t("design:paramtypes",[])],os.prototype,"steps",null);os=_.k([_.b({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],os);
_.A(os,"ytd-channel-transfer-stepper-renderer",function(){if(ryg!==void 0)return ryg;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ryg=E},{mode:1});var bt2;var Aj=function(){var E=_.r.apply(this,arguments)||this;E.data=null;E.isError=!1;E.isLoading=!1;return E};
_.L(Aj,_.r);_.l=Aj.prototype;_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.l.computeProfileName=function(E){return E?E.givenNameValue+" "+E.familyNameValue:""};
_.l.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)};
_.l.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)};
Aj.prototype.onYtServiceRequestError=Aj.prototype.onYtServiceRequestError;Aj.prototype.onYtServiceRequestSent=Aj.prototype.onYtServiceRequestSent;Aj.prototype.dataChanged=Aj.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Aj.prototype,"data",void 0);
_.k([_.X({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.t("design:type",String)],Aj.prototype,"profileName",void 0);_.k([_.X(),_.t("design:type",Object)],Aj.prototype,"isError",void 0);_.k([_.X(),_.t("design:type",Object)],Aj.prototype,"isLoading",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Aj.prototype,"dataChanged",null);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],Aj.prototype,"onYtServiceRequestSent",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],Aj.prototype,"onYtServiceRequestError",null);Aj=_.k([_.b({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Aj);
_.A(Aj,"ytd-channel-warm-welcome-cont-renderer",function(){if(bt2!==void 0)return bt2;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return bt2=E},{mode:1});var oJt;var jb=function(){var E=_.r.apply(this,arguments)||this;E.data=null;return E};
_.L(jb,_.r);jb.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
jb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],jb.prototype,"data",void 0);jb=_.k([_.b({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],jb);
_.A(jb,"ytd-channel-warm-welcome-renderer",function(){if(oJt!==void 0)return oJt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return oJt=E},{mode:1});var Aym;var UB=function(){return _.r.apply(this,arguments)||this};
_.L(UB,_.r);_.Up.Object.defineProperties(UB.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.authorThumbnail)||{}}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],UB.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],UB.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],UB.prototype,"thumbnailDetails",null);UB=_.k([_.b({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],UB);
_.A(UB,"ytd-comment-preview-renderer",function(){if(Aym!==void 0)return Aym;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Aym=E},{mode:1});var jZd;var k1=function(){return _.r.apply(this,arguments)||this};
_.L(k1,_.r);k1.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Up.Object.defineProperties(k1.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.submitButton}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],k1.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],k1.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],k1.prototype,"submitButton",null);k1=_.k([_.b({is:"ytd-notice-renderer",disableElementRegistration:!0})],k1);
_.A(k1,"ytd-notice-renderer",function(){if(jZd!==void 0)return jZd;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return jZd=E},{mode:1});var Ur9;var tj=function(){return _.r.apply(this,arguments)||this};
_.L(tj,_.r);tj.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],tj.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],tj.prototype,"data",void 0);tj=_.k([_.b({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],tj);
_.A(tj,"ytd-preview-comment-dialog-content",function(){if(Ur9!==void 0)return Ur9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Ur9=E},{mode:1});var kSd;var fQ=function(){return _.r.apply(this,arguments)||this};
_.L(fQ,_.r);fQ.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
fQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],fQ.prototype,"data",void 0);fQ=_.k([_.b({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],fQ);
_.A(fQ,"ytd-preview-comment-dialog-renderer",function(){if(kSd!==void 0)return kSd;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return kSd=E},{mode:1});var tmO;var fTT=_.d("web_button_rework")&&_.gU("BUTTON_REWORK")||_.d("web_button_rework_with_live"),Vp=function(){var E=_.r.apply(this,arguments)||this;E.selectedAmountIndex=1;E.privacyCheckboxValue=!1;E.useAmsterdamStyle=fTT;E.amountPlaceholderIndex=-1;return E};
_.L(Vp,_.r);_.l=Vp.prototype;_.l.onAmountClick=function(E){this.selectedAmountIndex=_.n(this.hostElement).querySelector("#amounts").indexForElement(E.currentTarget)};
_.l.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.I2(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.l.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.I2(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.I2(this.hostElement,"yt-close-popup-action",[this.is]);var E;(E=_.jx())==null||E.getPlayerPromise().then(function(B){B.pauseVideo()})}};
_.l.donationCallback=function(E){E.success?(this.hostElement.hasAttribute("live-chat")&&E.response&&E.response.data&&E.response.data.actions&&_.I2(this.hostElement,"yt-live-chat-open-popup",[E.response.data.actions[0]]),_.I2(this.hostElement,"yt-close-popup-action",[this.is]),_.I2(this.hostElement,"yt-live-chat-close-buy-flow")):E.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(E.errorMessageRenderer)};
_.l.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.n(this.hostElement).querySelector("#custom-amount-input").focus()};
_.l.updateConfirmationDialogTextWithAmount=function(E){var B=this.getConfirmDialogRuns();B&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(B),"text"],this.getFormattedAmount(E))};
_.l.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.l.getAmountPlaceholderIndex=function(E){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=E.findIndex(function(B){return B.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.l.getFormattedAmount=function(E){var B;return(new _.WP(4,((B=this.data)==null?void 0:B.currencyCode)||"")).format(E)};
_.l.isAmountValid=function(E){if(E==="")return!1;E=Number(E)*1E6;var B=this.get("minAmountMicros",this.data),I=this.get("maxAmountMicros",this.data);return B&&E<B||I&&E>I?!1:!0};
_.l.setInputError=function(){this.shouldShowValidationError?_.n(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.n(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.l.setInitialCheckboxValue=function(){var E;this.privacyCheckboxValue=!((E=this.data)==null||!E.privacyCheckboxInitialState)};
_.l.updateCustomAmountInputFromBinding=function(E){this.customAmountInput=E.detail.value};
_.l.updatePrivacyCheckboxValueFromBinding=function(E){this.privacyCheckboxValue=E.detail.value};
_.Up.Object.defineProperties(Vp.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var E=this,B,I;return((B=this.data)==null?void 0:(I=B.suggestedAmounts)==null?void 0:I.map(function(T,e){return{buttonRenderer:{style:E.selectedAmountIndex===e?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:T.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 E;return!((E=this.data)==null||!E.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 E=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(E&&this.amountMicros!==null)return Object.assign({},E,{ypcGetCartEndpoint:Object.assign({},E.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 E=this.get("confirmLargeAmount",this.data);if(E&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),E}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var E=this.get("donateButton.buttonRenderer",this.data);if(E)return Object.assign({},E,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Vp.prototype.setInitialCheckboxValue=Vp.prototype.setInitialCheckboxValue;Vp.prototype.setInputError=Vp.prototype.setInputError;Vp.prototype.setFocusOnCustomAmountInput=Vp.prototype.setFocusOnCustomAmountInput;_.k([_.g(ExH),_.t("design:type",Object)],Vp.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Vp.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Vp.prototype,"selectedAmountIndex",void 0);_.k([_.X(),_.t("design:type",String)],Vp.prototype,"customAmountInput",void 0);_.k([_.X(),_.t("design:type",Object)],Vp.prototype,"privacyCheckboxValue",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Vp.prototype,"useAmsterdamStyle",void 0);_.k([_.EM("customAmount"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Vp.prototype,"setFocusOnCustomAmountInput",null);_.k([_.S("data","selectedAmountIndex"),_.t("design:type",Array),_.t("design:paramtypes",[])],Vp.prototype,"suggestedAmountButtons",null);
_.k([_.S("data","selectedAmountIndex"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Vp.prototype,"isCustomAmountSelected",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Vp.prototype,"showPrivacyCheckbox",null);_.k([_.S("data","selectedAmountIndex","customAmount"),_.t("design:type",Object),_.t("design:paramtypes",[])],Vp.prototype,"amountMicros",null);
_.k([_.S("isCustomAmountSelected","customAmountInput"),_.t("design:type",Object),_.t("design:paramtypes",[])],Vp.prototype,"customAmount",null);_.k([_.S("customAmount"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Vp.prototype,"shouldShowValidationError",null);_.k([_.S("customAmount"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Vp.prototype,"isDonateButtonEnabled",null);
_.k([_.S("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.t("design:type",Object),_.t("design:paramtypes",[])],Vp.prototype,"donateCommand",null);_.k([_.S("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.t("design:type",Object),_.t("design:paramtypes",[])],Vp.prototype,"donateCommandWithConfirmation",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Vp.prototype,"largeDonationThreshold",null);
_.k([_.S("customAmount","donateCommand","amountMicros"),_.t("design:type",Object),_.t("design:paramtypes",[])],Vp.prototype,"confirmLargeAmountCommand",null);_.k([_.S("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.t("design:type",Object),_.t("design:paramtypes",[])],Vp.prototype,"donateButtonRenderer",null);_.k([_.EM("shouldShowValidationError"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Vp.prototype,"setInputError",null);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Vp.prototype,"setInitialCheckboxValue",null);Vp=_.k([_.b({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Vp);
_.A(Vp,"ytd-donation-amount-picker-renderer",function(){if(tmO!==void 0)return tmO;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" 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">\n      </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">\n          [[getSimpleString(data.campaignTitle)]]\n        </div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignSubtitle)]]\n        </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">\n            [[getSimpleString(data.campaignDescription)]]\n          </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">\n        [[getSimpleString(data.campaignDescription)]]\n      </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">\n      </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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return tmO=E},{mode:1});var VmT;var qF=function(){return _.r.apply(this,arguments)||this};
_.L(qF,_.r);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],qF.prototype,"ytComponentBehavior",void 0);_.k([_.X({}),_.t("design:type",Object)],qF.prototype,"data",void 0);qF=_.k([_.b({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],qF);
_.A(qF,"ytd-donation-post-transaction-content",function(){if(VmT!==void 0)return VmT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return VmT=E},{mode:1});var qvg;var Fo=function(){return _.r.apply(this,arguments)||this};
_.L(Fo,_.r);Fo.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Fo.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.k([_.X({}),_.t("design:type",Object)],Fo.prototype,"data",void 0);Fo=_.k([_.b({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Fo);
_.A(Fo,"ytd-donation-post-transaction-renderer",function(){if(qvg!==void 0)return qvg;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return qvg=E},{mode:1});var Ffg;var Drm;var Dn=function(){return _.r.apply(this,arguments)||this};
_.L(Dn,_.r);Dn.prototype.computeIsStreamingProvider=function(E){return!!E.isStreamingShelf};
Dn.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Dn.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Dn.prototype,"data",void 0);_.k([_.X({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Dn.prototype,"isStreamingProvider",void 0);
Dn=_.k([_.b({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],Dn);
_.A(Dn,"ytd-media-provider-renderer",function(){if(Drm!==void 0)return Drm;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Drm=E},{mode:1});var KfO;var KQ=function(){return _.r.apply(this,arguments)||this};
_.L(KQ,_.r);KQ.prototype.observeLightsourcePalette=function(){var E,B=(E=this.data)==null?void 0:E.vibrantsourceColorPaletteData;B&&_.zI(this.hostElement,B)};
KQ.prototype.observeLightsourcePalette=KQ.prototype.observeLightsourcePalette;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],KQ.prototype,"data",void 0);
_.k([_.EM("data.vibrantsourceColorPaletteData"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],KQ.prototype,"observeLightsourcePalette",null);KQ=_.k([_.b({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],KQ);
_.A(KQ,"ytd-streaming-pop-up-dialog",function(){if(KfO!==void 0)return KfO;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return KfO=E},{mode:1});var Rs=function(){return _.r.apply(this,arguments)||this};
_.L(Rs,_.r);Rs.prototype.onPopupOpened_=function(){var E;((E=this.data)==null?0:E.serviceEndpoint)&&_.Q().resolve(_.Dt).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Rs.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Rs.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"}}}}};
Rs.prototype.onPopupOpened_=Rs.prototype.onPopupOpened_;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Rs.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Rs.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.xo),_.t("design:type",Object)],Rs.prototype,"ytContinuationHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Rs.prototype,"data",void 0);
_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Rs.prototype,"onPopupOpened_",null);Rs=_.k([_.b({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Rs);
_.A(Rs,"ytd-brandconnect-popup-renderer",function(){if(Ffg!==void 0)return Ffg;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Ffg=E},{mode:1});var Rxd;var EP=function(){return _.r.apply(this,arguments)||this};
_.L(EP,_.r);_.l=EP.prototype;_.l.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){for(var E=0;E<this.getOptionRenderers().length;E++)this.notifyPath("data.options."+E+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+E+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.l.updateSubmitButton=function(E){this.set("data.submitButton.buttonRenderer.isDisabled",!E)};
_.l.computeAlt=function(E){return _.U3(E)};
_.l.onDismissTap=function(){_.I2(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Q().resolve(_.Dt).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.l.getOptionRenderers=function(E){return(E=E||this.data)&&E.options?E.options.reduce(function(B,I){I.checkboxSurveyOptionRenderer&&B.push(I.checkboxSurveyOptionRenderer);return B},[]):[]};
_.l.onOptionChange=function(E){var B=this,I=!1;if(E.detail.checked)for(var T=this.getOptionRenderers().find(function(v){return v.value===E.detail.value}),e=this.getOptionRenderers(),c=0;c<e.length;c++){var Y=e[c];
this.notifyPath("data.options."+c+".checkboxSurveyOptionRenderer.checked");Y.checked&&((T==null?0:T.isExclusiveOption)?!Y.isExclusiveOption:Y.isExclusiveOption)?this.set("data.options."+c+".checkboxSurveyOptionRenderer.checked",!1):Y.checked&&(I=!0)}else I=this.getOptionRenderers().some(function(v,y){B.notifyPath("data.options."+y+".checkboxSurveyOptionRenderer.checked");return v.checked});
this.updateSubmitButton(I)};
_.l.onSubmitTap=function(){var E=this.getOptionRenderers().filter(function(c){return c.checked});
if(E.length!==0){var B=E.map(function(c){return c.responseEndpoint});
E=[];for(var I=1;I<B.length;I++){var T=void 0,e=(T=_.h(B[I],_.Ms))==null?void 0:T.feedbackToken;e&&E.push(e)}B=[B[0]];E.length&&B.push({extra_feedback_tokens:E});_.l1(this.hostElement,B);_.I2(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);E=this.data&&this.data.submitActions||[];if(_.d("kevlar_command_handler_migration_killswitch"))_.cN(this.hostElement,E,this.hostElement);else for(E=_.p(E),B=E.next();!B.done;B=E.next())this.ytComponentBehavior.resolveCommand(B.value)}};
EP.prototype.onOptionChange=EP.prototype.onOptionChange;EP.prototype.dataChanged=EP.prototype.dataChanged;_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],EP.prototype,"ytEventForwardingBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],EP.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],EP.prototype,"ytComponentBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.k([_.g(mk8),_.t("design:type",Object)],EP.prototype,"ytdHatsSurveyBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],EP.prototype,"data",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],EP.prototype,"dataChanged",null);
_.k([_.RN("ytd-checkbox-survey-option-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],EP.prototype,"onOptionChange",null);EP=_.k([_.b({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],EP);
_.A(EP,"ytd-checkbox-survey-renderer",function(){if(Rxd!==void 0)return Rxd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Rxd=E},{mode:1});var EkT;var Bis;var BQ=function(){return _.r.apply(this,arguments)||this};
_.L(BQ,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.k([_.g(zaH),_.t("design:type",Object)],BQ.prototype,"ytdDismissalReasonBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],BQ.prototype,"data",void 0);BQ=_.k([_.b({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],BQ);
_.A(BQ,"ytd-dismissal-reason-text-renderer",function(){if(Bis!==void 0)return Bis;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Bis=E},{mode:1});var $cL;var $K=function(){return _.r.apply(this,arguments)||this};
_.L($K,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.k([_.g(zaH),_.t("design:type",Object)],$K.prototype,"ytdDismissalReasonBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],$K.prototype,"data",void 0);$K=_.k([_.b({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],$K);
_.A($K,"ytd-dismissal-reason-video-renderer",function(){if($cL!==void 0)return $cL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return $cL=E},{mode:1});var IE=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(IE,_.r);_.l=IE.prototype;_.l.created=function(){this.selectedFeedbackTokens=new Jm};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.l.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.l.onDismissalReasonSelected=function(E,B){_.$O(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(B);this.hasReasonsSelected=!0};
_.l.onDismissalReasonDeselected=function(E,B){_.$O(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(B);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.l.onCancelTap=function(){_.I2(this.hostElement,"yt-close-popup-action")};
_.l.onSubmitTap=function(){var E=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(E={feedback_tokens:E},_.d("web_ytd_dismissal_follow_up_renderer_command_resolver_ks")?_.l1(this.hostElement,[this.data.submitFeedbackEndpoint,E]):_.Q().resolve(_.Dt).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},E,{element:this.hostElement})}));_.I2(this.hostElement,"yt-close-popup-action")};
IE.prototype.onDismissalReasonDeselected=IE.prototype.onDismissalReasonDeselected;IE.prototype.onDismissalReasonSelected=IE.prototype.onDismissalReasonSelected;IE.prototype.dataChanged=IE.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],IE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],IE.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Boolean)],IE.prototype,"hasReasonsSelected",void 0);_.k([_.X(),_.t("design:type",Jm)],IE.prototype,"selectedFeedbackTokens",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],IE.prototype,"darkerDarkTheme",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],IE.prototype,"dataChanged",null);
_.k([_.RN("yt-dismissal-reason-selected"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,String]),_.t("design:returntype")],IE.prototype,"onDismissalReasonSelected",null);_.k([_.RN("yt-dismissal-reason-deselected"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,String]),_.t("design:returntype")],IE.prototype,"onDismissalReasonDeselected",null);IE=_.k([_.b({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],IE);
_.A(IE,"ytd-dismissal-follow-up-renderer",function(){if(EkT!==void 0)return EkT;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return EkT=E},{mode:1});var IdI;var Tr=function(){return _.r.apply(this,arguments)||this};
_.L(Tr,_.r);_.l=Tr.prototype;_.l.onCheckedChange=function(){this.multiselect||_.$O(this.hostElement,"yt-feedback-single-select-changed");_.n(this.hostElement).querySelector("#freeform").focus();_.$O(this.hostElement,"yt-refit")};
_.l.showTextBox=function(E,B){return E&&B};
_.l.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))};
_.l.updateDataCheckedFromBinding=function(E){this.set("data.checked",E.detail.value)};
_.l.updateDataResultTextFromBinding=function(E){this.set("data.resultText",E.detail.value)};
Tr.prototype.dataChanged=Tr.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Tr.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Tr.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],Tr.prototype,"multiselect",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Tr.prototype,"dataChanged",null);
Tr=_.k([_.b({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Tr);
_.A(Tr,"ytd-feedback-option-renderer",function(){if(IdI!==void 0)return IdI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return IdI=E},{mode:1});var TiI;var eG=function(){return _.r.apply(this,arguments)||this};
_.L(eG,_.r);eG.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
eG.prototype.onSingleSelectCheckedChanged=function(E){E=_.XN(E);for(var B=0;B<this.data.options.length;B++)if(E.data!==_.h(this.data.options[B],ZUs)){var I="data.options."+B+".feedbackOptionRenderer.checked";this.notifyPath(I);this.set(I,!1)}};
eG.prototype.onSingleSelectCheckedChanged=eG.prototype.onSingleSelectCheckedChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],eG.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],eG.prototype,"data",void 0);
_.k([_.RN("yt-feedback-single-select-changed"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],eG.prototype,"onSingleSelectCheckedChanged",null);eG=_.k([_.b({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],eG);
_.A(eG,"ytd-feedback-question-renderer",function(){if(TiI!==void 0)return TiI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return TiI=E},{mode:1});var ez9;var l2=function(){return _.r.apply(this,arguments)||this};
_.L(l2,_.r);l2.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
l2.prototype.getSelectedFeedbackResults=function(){for(var E={},B=0;B<this.data.questions.length;B++)for(var I=_.h(this.data.questions[B],wWd),T=0;T<I.options.length;T++){var e=_.h(I.options[T],ZUs);e&&e.checked&&(E[e.optionKey]=e.resultText)}return E};
l2.prototype.onKeyUp=function(){var E=this;_.ta(_.Ll,function(){_.$O(E.hostElement,"yt-refit")});
_.Ll.start()};
l2.prototype.submitSurvey=function(){var E=this.getSelectedFeedbackResults();Object.keys(E).length>0&&this.data.submitFeedbackEndpoint&&(E={survey_results:E,is_feedback_token_unencrypted:!0},_.d("web_ytd_feedback_survey_renderer_command_resolver_ks")?_.l1(this.hostElement,[this.data.submitFeedbackEndpoint,E]):_.Q().resolve(_.Dt).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},E,{element:this.hostElement})}))};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],l2.prototype,"data",void 0);l2=_.k([_.b({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],l2);
_.A(l2,"ytd-feedback-survey-renderer",function(){if(ez9!==void 0)return ez9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ez9=E},{mode:1});var ld7;var cFm;var cQ=function(){return _.r.apply(this,arguments)||this};
_.L(cQ,_.r);cQ.prototype.computeAlt=function(E){return _.U3(E)};
cQ.prototype.submitResponse=function(){var E,B;(E=this.data)!=null&&E.feedbackToken&&((B=this.data)==null?void 0:B.nextStageIndex)!==void 0&&(_.Ta(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Ta(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
cQ.prototype.onClick=function(){this.submitResponse()};
cQ.prototype.onClick=cQ.prototype.onClick;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],cQ.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],cQ.prototype,"vertical",void 0);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cQ.prototype,"onClick",null);
cQ=_.k([_.b({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],cQ);
_.A(cQ,"ytd-single-select-answer-option-renderer",function(){if(cFm!==void 0)return cFm;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return cFm=E},{mode:1});var iGd;var i2=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");E.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return E};
_.L(i2,_.r);i2.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
i2.prototype.dataChanged=function(){var E,B;this.vertical=((B=(E=this.data)==null?void 0:E.answerOrientation)!=null?B:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
i2.prototype.submitFeedback=function(E){var B;((B=this.data)==null?0:B.responseEndpoint)&&E&&_.l1(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[E]}])};
i2.prototype.dataChanged=i2.prototype.dataChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],i2.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],i2.prototype,"eventForwardingBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],i2.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],i2.prototype,"vertical",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],i2.prototype,"darkerDarkTheme",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],i2.prototype,"dataChanged",null);i2=_.k([_.b({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],i2);
_.A(i2,"ytd-single-select-question-renderer",function(){if(iGd!==void 0)return iGd;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return iGd=E},{mode:1});var pw=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return E};
_.L(pw,_.r);_.l=pw.prototype;_.l.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"}}}};
_.l.dataChanged=function(){this.jumpToStage(0)};
_.l.jumpToStage=function(E){var B,I;if((B=this.data)==null?0:(I=B.stages)==null?0:I[E])this.currentStage=this.data.stages[E],this.refitAfterRender()};
_.l.computeAlt=function(E){return _.U3(E)};
_.l.computeSimpleMessage=function(E){var B;return(B=_.h(E,mTg))==null?void 0:B.messageText};
_.l.computeHideDismiss=function(E){var B;return(B=_.h(E,tyI))==null?void 0:B.hideParentDismissButton};
_.l.onDismissTap=function(){_.I2(this.hostElement,"yt-close-popup-action");_.h(this.currentStage,mTg)||this.data.dismissalEndpoint&&_.Q().resolve(_.Dt).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.l.refitAfterRender=function(){var E=this;_.AJ(this,function(){_.$O(E.hostElement,"yt-refit")})};
pw.prototype.dataChanged=pw.prototype.dataChanged;_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],pw.prototype,"eventForwardingBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],pw.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],pw.prototype,"ytActionHandlerBehavior",void 0);
_.k([_.g(mk8),_.t("design:type",Object)],pw.prototype,"ytdHatsSurveyBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],pw.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],pw.prototype,"currentStage",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],pw.prototype,"dataChanged",null);pw=_.k([_.b({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],pw);
_.A(pw,"ytd-multi-stage-survey-renderer",function(){if(ld7!==void 0)return ld7;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return ld7=E},{mode:1});var p4H;var YK=function(){return _.r.apply(this,arguments)||this};
_.L(YK,_.r);YK.prototype.computeAlt=function(E){return _.U3(E)};
YK.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.Q().resolve(_.Dt).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.I2(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.Pl7(!1)))};
YK.prototype.onTap=function(){this.vertical&&this.submitResponse()};
YK.prototype.onTap=YK.prototype.onTap;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],YK.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],YK.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],YK.prototype,"vertical",void 0);
_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],YK.prototype,"onTap",null);YK=_.k([_.b({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],YK);
_.A(YK,"ytd-single-option-survey-option-renderer",function(){if(p4H!==void 0)return p4H;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return p4H=E},{mode:1});var YC9;var aE=function(){return _.r.apply(this,arguments)||this};
_.L(aE,_.r);_.l=aE.prototype;_.l.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){var E,B;this.vertical=(((E=this.data)==null?void 0:(B=E.surveyOrientation)==null?void 0:B.type)||"HORIZONTAL")==="VERTICAL"};
_.l.computeAlt=function(E){return _.U3(E)};
_.l.onDismissTap=function(){_.I2(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Q().resolve(_.Dt).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.Pl7(!1))};
aE.prototype.dataChanged=aE.prototype.dataChanged;_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],aE.prototype,"eventForwardingBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],aE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(mk8),_.t("design:type",Object)],aE.prototype,"ytdHatsSurveyBehavior",void 0);
_.k([_.g(_.Lz),_.t("design:type",Object)],aE.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],aE.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],aE.prototype,"vertical",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],aE.prototype,"dataChanged",null);aE=_.k([_.b({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],aE);
_.A(aE,"ytd-single-option-survey-renderer",function(){if(YC9!==void 0)return YC9;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return YC9=E},{mode:1});var ad1;var vQ=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(vQ,_.r);vQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
vQ.prototype.onDismissTap=function(){_.I2(this.hostElement,"yt-close-popup-action")};
vQ.prototype.onNavigate=function(){_.I2(this.hostElement,"yt-close-popup-action")};
vQ.prototype.onNavigate=vQ.prototype.onNavigate;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],vQ.prototype,"ytEventForwardingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],vQ.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],vQ.prototype,"darkerDarkTheme",void 0);
_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],vQ.prototype,"onNavigate",null);vQ=_.k([_.b({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],vQ);
_.A(vQ,"ytd-survey-follow-up-renderer",function(){if(ad1!==void 0)return ad1;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ad1=E},{mode:1});var vk9;var yFm;var CgT;var y3=function(){var E=_.r.apply(this,arguments)||this;E.polymer2="Element"in Polymer;return E};
_.L(y3,_.r);_.l=y3.prototype;_.l.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.l.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.l.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.l.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("minutes-changed",this.minutes))};
_.l.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("seconds-changed",this.seconds))};
_.l.updateMinutesFromBinding=function(E){this.minutes=E.detail.value};
_.l.updateSecondsFromBinding=function(E){this.seconds=E.detail.value};
y3.prototype.secondsChangedForBinding=y3.prototype.secondsChangedForBinding;y3.prototype.minutesChangedForBinding=y3.prototype.minutesChangedForBinding;y3.prototype.secondsChanged=y3.prototype.secondsChanged;_.k([_.X(),_.t("design:type",String)],y3.prototype,"minutes",void 0);_.k([_.X(),_.t("design:type",String)],y3.prototype,"seconds",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],y3.prototype,"polymer2",void 0);
_.k([_.$7("#seconds"),_.t("design:type",Object)],y3.prototype,"secondsEl",void 0);_.k([_.EM("seconds"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],y3.prototype,"secondsChanged",null);_.k([_.EM("minutes"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],y3.prototype,"minutesChangedForBinding",null);
_.k([_.EM("seconds"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],y3.prototype,"secondsChangedForBinding",null);y3=_.k([_.QE({is:"yt-timestamp-input",disableElementRegistration:!0})],y3);
_.A(y3,"yt-timestamp-input",function(){if(CgT===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;yFm===void 0&&(yFm=document.createElement("template"));var T=yFm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);CgT=E}E=CgT;return E},{mode:2});var Cw=function(){return _.r.apply(this,arguments)||this};
_.L(Cw,_.r);_.l=Cw.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18005_scroller.dialogElement=this.hostElement.parentNode};
_.l.dataChanged=function(){var E=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.k3().getPlayerPromise().then(function(B){B=B.getCurrentTime();E.minutes=Math.floor(B/60).toString();E.seconds=(Math.floor(B)%60).toString()})};
_.l.onTapSubmit=function(E){E.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(E={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(E.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(E.minutes=this.minutes,E.seconds=this.seconds),_.Q().resolve(_.Dt).resolveCommand(this.serviceEndpoint,{form:Object.assign({},E,{element:this.hostElement})}))};
_.l.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.l.onYtServiceRequestCompleted=function(E,B){B=B.actions;if(Array.isArray(B))for(var I=0,T=B.length;I<T;I++)_.h(B[I],_.uU)&&(E.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(B[I]))};
_.l.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.l.toggleSubmitButton=function(E){this.set("submitButton.isDisabled",!E)};
_.l.handleInput=function(){var E=this.issueType,B=this.affiliation,I=this.minutes,T=this.seconds;I=!this.showTimestamp||!!I&&!!T;this.toggleSubmitButton(!!this.descriptionText&&!!E&&!!B&&I)};
_.l.computeServiceEndpoint=function(E){return this.get("submitButton.buttonRenderer.serviceEndpoint",E)};
_.l.computeSubmitButton=function(E){(E=this.get("submitButton.buttonRenderer",E))&&(E=Object.assign({},E,{serviceEndpoint:void 0}));return E};
_.l.computeShowTimestamp=function(E){return!!E};
_.l.onValueChangedForIssueType=function(E){this.issueType=E.detail.value};
_.l.onValueChangedForAffiliation=function(E){this.affiliation=E.detail.value};
_.l.updateDescriptionTextFromBinding=function(E){this.descriptionText=E.detail.value};
_.l.updateFullNameTextFromBinding=function(E){this.fullNameText=E.detail.value};
_.l.updateMinutesFromBinding=function(E){this.minutes=E.detail.value};
_.l.updateSecondsFromBinding=function(E){this.seconds=E.detail.value};
Cw.prototype.handleInput=Cw.prototype.handleInput;Cw.prototype.onYtServiceRequestError=Cw.prototype.onYtServiceRequestError;Cw.prototype.onYtServiceRequestCompleted=Cw.prototype.onYtServiceRequestCompleted;Cw.prototype.onYtServiceRequestSent=Cw.prototype.onYtServiceRequestSent;Cw.prototype.dataChanged=Cw.prototype.dataChanged;_.k([_.g(_.E6.YtOpenPopupBehavior),_.t("design:type",Object)],Cw.prototype,"ytOpenPopupBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.k([_.$7("#scroller"),_.t("design:type",Object)],Cw.prototype,"JSC$18005_scroller",void 0);_.k([_.$7("#description"),_.t("design:type",HTMLInputElement)],Cw.prototype,"description",void 0);_.k([_.$7("#full-name"),_.t("design:type",Object)],Cw.prototype,"fullName",void 0);_.k([_.X(),_.t("design:type",Object)],Cw.prototype,"data",void 0);
_.k([_.X({computed:"computeShowTimestamp(data.timestampLabel)"}),_.t("design:type",Boolean)],Cw.prototype,"showTimestamp",void 0);_.k([_.X({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.t("design:type",Object)],Cw.prototype,"serviceEndpoint",void 0);_.k([_.X({computed:"computeSubmitButton(data)"}),_.t("design:type",Object)],Cw.prototype,"submitButton",void 0);_.k([_.X(),_.t("design:type",String)],Cw.prototype,"descriptionText",void 0);
_.k([_.X(),_.t("design:type",Number)],Cw.prototype,"issueType",void 0);_.k([_.X(),_.t("design:type",Number)],Cw.prototype,"affiliation",void 0);_.k([_.X(),_.t("design:type",String)],Cw.prototype,"fullNameText",void 0);_.k([_.X(),_.t("design:type",String)],Cw.prototype,"minutes",void 0);_.k([_.X(),_.t("design:type",String)],Cw.prototype,"seconds",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Cw.prototype,"dataChanged",null);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],Cw.prototype,"onYtServiceRequestSent",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],Cw.prototype,"onYtServiceRequestCompleted",null);
_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],Cw.prototype,"onYtServiceRequestError",null);_.k([_.EM("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Cw.prototype,"handleInput",null);Cw=_.k([_.b({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],Cw);
_.A(Cw,"ytd-legal-report-details-form-renderer",function(){if(vk9!==void 0)return vk9;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return vk9=E},{mode:1});var w4s;var wq=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return E};
_.L(wq,_.r);wq.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
wq.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var E=this.formRenderer.getForm();E&&this.data.submitEndpoint&&(_.Q().resolve(_.Dt).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},E,{element:this.hostElement})}),_.I2(this.hostElement,"yt-close-popup-action"))}};
wq.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.I2(this.hostElement,"yt-close-popup-action"))};
wq.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
wq.prototype.onPopupClosed=wq.prototype.onPopupClosed;_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],wq.prototype,"ytEventForwardingBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],wq.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],wq.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);
_.k([_.$7("yt-form-renderer"),_.t("design:type",Object)],wq.prototype,"formRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],wq.prototype,"data",void 0);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wq.prototype,"onPopupClosed",null);wq=_.k([_.b({is:"ytd-form-popup-content",disableElementRegistration:!0})],wq);
_.A(wq,"ytd-form-popup-content",function(){if(w4s!==void 0)return w4s;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return w4s=E},{mode:1});var ZGm;var Zh=function(){return _.r.apply(this,arguments)||this};
_.L(Zh,_.r);Zh.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Zh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Zh.prototype.onPopupOpened=function(){_.$O(this.hostElement,"yt-invalidate-popup-tabbables")};
Zh.prototype.onYtServiceRequestCompleted=function(E,B){B.data&&B.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.$O(this.hostElement,"yt-invalidate-popup-tabbables"))};
Zh.prototype.onYtServiceRequestCompleted=Zh.prototype.onYtServiceRequestCompleted;Zh.prototype.onPopupOpened=Zh.prototype.onPopupOpened;_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],Zh.prototype,"ytEventForwardingBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Zh.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],Zh.prototype,"data",void 0);_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Zh.prototype,"onPopupOpened",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],Zh.prototype,"onYtServiceRequestCompleted",null);Zh=_.k([_.b({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Zh);
_.A(Zh,"ytd-form-popup-renderer",function(){if(ZGm!==void 0)return ZGm;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return ZGm=E},{mode:1});var PgL;var PQ=function(){var E=_.r.apply(this,arguments)||this;E.isLoading=!1;return E};
_.L(PQ,_.r);_.l=PQ.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");GGL(this.hostElement)};
_.l.onYtServiceRequestSent=function(){this.isLoading=!0};
_.l.onYtServiceRequestCompleted=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.l.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.cN(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.l.closePopupHandler=function(){this.fireOnCloseActions()};
_.l.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var E=this.get("data.headerImage.thumbnails");E&&(E=_.Aa(E,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+E+")")}};
_.l.onYtNavigate=function(E){(E=_.XN(E))&&E.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
PQ.prototype.onYtNavigate=PQ.prototype.onYtNavigate;PQ.prototype.onHeaderImageChanged=PQ.prototype.onHeaderImageChanged;PQ.prototype.closePopupHandler=PQ.prototype.closePopupHandler;PQ.prototype.onYtServiceRequestCompleted=PQ.prototype.onYtServiceRequestCompleted;PQ.prototype.onYtServiceRequestSent=PQ.prototype.onYtServiceRequestSent;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],PQ.prototype,"ytEventForwardingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],PQ.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],PQ.prototype,"isLoading",void 0);_.k([_.$7("#header"),_.t("design:type",HTMLDivElement)],PQ.prototype,"header",void 0);_.k([_.$7("#confirm-button"),_.t("design:type",_.lF)],PQ.prototype,"confirmButton",void 0);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],PQ.prototype,"onYtServiceRequestSent",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],PQ.prototype,"onYtServiceRequestCompleted",null);
_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],PQ.prototype,"closePopupHandler",null);_.k([_.EM("data.headerImage"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],PQ.prototype,"onHeaderImageChanged",null);_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],PQ.prototype,"onYtNavigate",null);
PQ=_.k([_.b({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],PQ);
_.A(PQ,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(PgL!==void 0)return PgL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return PgL=E},{mode:1});var zzH;var zr=function(){var E=_.r.apply(this,arguments)||this;E.isLoading=!1;return E};
_.L(zr,_.r);_.l=zr.prototype;_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);GGL(this.hostElement)};
_.l.onYtServiceRequestCompleted=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.l.onYtServiceRequestError=function(E){_.de(this.hostElement,E.detail.error.message)};
_.l.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.l.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.I2(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.l.onDataChanged=function(){this.isLoading=!1;var E=this.get("data.headerImage.thumbnails");E&&(E=_.Aa(E,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+E+")");E=_.nC();var B=_.Oi(),I=this.get("data.trackingParams");I&&B&&E&&_.XD(E,B,_.Yg(I))};
_.Up.Object.defineProperties(zr.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
zr.prototype.onDataChanged=zr.prototype.onDataChanged;zr.prototype.onDomChange=zr.prototype.onDomChange;zr.prototype.onYtServiceRequestError=zr.prototype.onYtServiceRequestError;zr.prototype.onYtServiceRequestCompleted=zr.prototype.onYtServiceRequestCompleted;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],zr.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],zr.prototype,"ytRendererBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],zr.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zr.prototype,"isLoading",void 0);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],zr.prototype,"hasDescription",null);_.k([_.$7("tp-yt-paper-dialog-scrollable"),_.t("design:type",Object)],zr.prototype,"scrollable",void 0);_.k([_.$7("#header"),_.t("design:type",HTMLElement)],zr.prototype,"header",void 0);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],zr.prototype,"onYtServiceRequestCompleted",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],zr.prototype,"onYtServiceRequestError",null);
_.k([_.RN("dom-change"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],zr.prototype,"onDomChange",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],zr.prototype,"onDataChanged",null);zr=_.k([_.b({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],zr);
_.A(zr,"ytd-gaming-account-link-setting-renderer",function(){if(zzH!==void 0)return zzH;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return zzH=E},{mode:1});var mcs;var QMt;var mD=function(){var E=_.r.apply(this,arguments)||this;E.isHeader=!1;E.getEndpointForm=dg9;return E};
_.L(mD,_.r);_.l=mD.prototype;_.l.triggerHintActions=function(){var E=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var B=_.Ta(E.hostElement,"yt-get-opened-popups-action");!(B&&B.length===1?B[0]:[]).some(function(I){I=I.openPopupAction.popupType;return I==="SURVEY"||I==="MEALBAR"||I==="HINT"})&&E.data.hintActions&&E.guideOpened&&(_.cN(E.hostElement,E.data.hintActions,E.hostElement),E.data.hintActions=void 0)})};
_.l.getBadgeIconType=function(E){return E&&E.liveBroadcasting?"live":null};
_.l.onDown=function(){this.interaction.triggerDown()};
_.l.onUp=function(){this.interaction.triggerUp()};
_.l.onTap=function(E){if(this.data.serviceEndpoint){var B;_.d("shorts_controller_retrieve_seedless_sequence_v2")&&((B=_.h(this.data.serviceEndpoint,_.yQ))==null?void 0:B.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):QYO(this.data.serviceEndpoint,this);E.preventDefault()}else this.data.navigationEndpoint&&!_.XZ(_.W8(E),this.hostElement,["A".toString()])&&_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.l.computeActive=function(E,B){if(!E)return!1;var I=E.navigationEndpoint;E=E.serviceEndpoint;if(!I&&!E||!B)return!1;if(I){E=(E=KP(B))&&["subscriptions","filteredsubscriptions"].includes(E);if(_.h(I,_.pq)&&_.h(B,_.pq)&&!E){var T=_.h(I,_.pq).browseId;B=_.h(B,_.pq).browseId;return T!==void 0&&B!==void 0&&(T===B||T==="VLWL"&&B==="FEwatch_later"||T==="FEwatch_later"&&B==="VLWL")}var e;I=(e=_.h(I.commandMetadata,_.D$))==null?void 0:e.url;B=(T=_.h(B.commandMetadata,_.D$))==null?void 0:T.url;return!(!I||
!B||I!==B&&I!==_.c7(B))}return this.isActiveShortsTab(E,B)};
_.l.isActiveShortsTab=function(E,B){B=!!_.h(B,_.yQ)||!!_.h(B,_.MT);return(!!_.h(E,_.yQ)||!!_.h(E,_.MT))&&B};
_.l.computeIsPrimary=function(E){return!!E};
_.Up.Object.defineProperties(mD.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 E=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&E)return E}}});
mD.prototype.onTap=mD.prototype.onTap;mD.prototype.onUp=mD.prototype.onUp;mD.prototype.onDown=mD.prototype.onDown;mD.prototype.triggerHintActions=mD.prototype.triggerHintActions;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],mD.prototype,"componentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],mD.prototype,"rendererBehavior",void 0);_.k([_.g(_.oy.YtTaskEmitterBehavior),_.t("design:type",Object)],mD.prototype,"taskEmitterBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],mD.prototype,"activeEndpoint",void 0);_.k([_.X(),_.t("design:type",Object)],mD.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],mD.prototype,"guideOpened",void 0);_.k([_.X(),_.t("design:type",String)],mD.prototype,"type",void 0);_.k([_.$7("yt-interaction"),_.t("design:type",Object)],mD.prototype,"interaction",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],mD.prototype,"isHeader",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data","activeEndpoint"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],mD.prototype,"active",null);_.k([_.X({reflectToAttribute:!0}),_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],mD.prototype,"isPrimary",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.count","data.presentationStyle","data.badges.*"),_.t("design:type",String),_.t("design:paramtypes",[])],mD.prototype,"lineEndStyle",null);
_.k([_.S("lineEndStyle"),_.t("design:type",Object),_.t("design:paramtypes",[])],mD.prototype,"ariaLabel",null);_.k([_.EM("data.hintActions","guideOpened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],mD.prototype,"triggerHintActions",null);_.k([_.RN("down"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],mD.prototype,"onDown",null);
_.k([_.RN("up"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],mD.prototype,"onUp",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],mD.prototype,"onTap",null);mD=_.k([_.b({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],mD);
_.A(mD,"ytd-guide-entry-renderer",function(){if(QMt!==void 0)return QMt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return QMt=E},{mode:1});var Q3=function(){var E=_.r.apply(this,arguments)||this;E.userToggled=!1;return E};
_.L(Q3,_.r);_.l=Q3.prototype;_.l.getItemsPath=function(){return"data.expandableItems"};
_.l.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.l.onExpanderItemTapped=function(E){var B=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.d("kevlar_guide_expandable_items_killswitch")&&_.AJ(this,function(){_.AI(B.expandableItems)});
E.preventDefault()};
_.l.onCollapserItemTapped=function(E){var B=this;this._setExpanded(!1);this.userToggled=!0;E.preventDefault();this.expandableItems&&!_.d("kevlar_guide_collapsible_items_killswitch")&&_.AJ(this,function(){_.ox(B.hostElement)})};
_.l.observeActiveEndpoint=function(){for(var E=this.activeEndpoint,B=this.data,I=this.expandableItems.children,T=0,e=I.length;T<e;T++)I[T].activeEndpoint=E;B&&B.autoExpandCommand&&E&&!this.userToggled&&(I=this.data.autoExpandCommand,B=!(!_.h(I,_.pq)||!_.h(E,_.pq)||_.h(I,_.pq).browseId!==_.h(E,_.pq).browseId),E=this.get("commandMetadata.webCommandMetadata.url",E),I=this.get("commandMetadata.webCommandMetadata.url",I),B=B||!!(E&&I&&E.includes(I)),this._setExpanded(B),B&&this.ytLazyListBehavior.fillRemainingListItems())};
Q3.prototype.observeActiveEndpoint=Q3.prototype.observeActiveEndpoint;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.t6.YtLazyListBehavior),_.t("design:type",Object)],Q3.prototype,"ytLazyListBehavior",void 0);_.k([_.$7("#expandable-items"),_.t("design:type",HTMLElement)],Q3.prototype,"expandableItems",void 0);
_.k([_.X(),_.t("design:type",Object)],Q3.prototype,"data",void 0);_.k([_.X({readOnly:!0,reflectToAttribute:!0}),_.t("design:type",Boolean)],Q3.prototype,"expanded",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],Q3.prototype,"initialCount",void 0);_.k([_.X(),_.t("design:type",Object)],Q3.prototype,"activeEndpoint",void 0);_.k([_.EM("data","activeEndpoint","canShowMore"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Q3.prototype,"observeActiveEndpoint",null);
Q3=_.k([_.b({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Q3);
_.A(Q3,"ytd-guide-collapsible-entry-renderer",function(){if(mcs!==void 0)return mcs;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return mcs=E},{mode:_.qi("kevlar_poly_si_batch_j079")?1:2});var dcT;var hzd;var dq=function(){var E=_.r.apply(this,arguments)||this;E.allVideosCount=0;E.renderGuideEntry=!1;return E};
_.L(dq,_.r);dq.prototype.observeRenderEntry=function(){var E;this.renderGuideEntry=!((E=this.data)==null||!E.alwaysShow)||!!this.allVideosCount};
dq.prototype.observeRenderEntry=dq.prototype.observeRenderEntry;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],dq.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],dq.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],dq.prototype,"activeEndpoint",void 0);_.k([_.X({selector:_.OUF}),_.t("design:type",Object)],dq.prototype,"allVideosCount",void 0);
_.k([_.X(),_.t("design:type",Object)],dq.prototype,"renderGuideEntry",void 0);_.k([_.i6("allVideosCount","data.alwaysShow"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],dq.prototype,"observeRenderEntry",null);dq=_.k([_.b({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],dq);
_.A(dq,"ytd-guide-downloads-entry-renderer",function(){if(hzd===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);hzd=E}E=hzd;return E},{mode:1});var h3=function(){var E=_.r.apply(this,arguments)||this;E.youtab=_.d("web_enable_youtab");E.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return E};
_.L(h3,_.r);_.l=h3.prototype;_.l.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]]"}}}}}};
_.l.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var E=this.sectionItems.children,B=0,I=E.length;B<I;B++)E[B].activeEndpoint=this.activeEndpoint}};
_.l.handleAddToGuideSectionAction=function(E){var B=_.h(E,Jc7);if(B&&this.data&&(E=B.items,B=B.handlerData,E&&B&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(B)>-1)){B=0;for(var I=E.length;B<I;B++)E[B].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,E[B])}};
_.l.handleRemoveFromGuideSectionAction=function(E){var B=_.h(E,WGH);B&&this.data&&(E=B.guideEntryId,B=B.handlerData,E&&B&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(B)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(E,this.data.sectionItems),this.removeFromCollapsedSection(E,this.data.sectionItems)))};
_.l.removeFromExpandedSection=function(E,B){E=this.getEntryIndexMatchingId(E,B);E!==-1&&this.splice("data.sectionItems",E,1)};
_.l.removeFromCollapsedSection=function(E,B){var I=B.findIndex(function(T){return!!_.h(T,RhO)});
I&&I!==-1&&B[I]&&_.h(B[I],RhO)&&(B=_.h(B[I],RhO).expandableItems)&&(E=this.getEntryIndexMatchingId(E,B),E!==-1&&this.splice("data.sectionItems."+I+".guideCollapsibleEntryRenderer.expandableItems",E,1))};
_.l.getEntryIndexMatchingId=function(E,B){var I=this;return B.findIndex(function(T){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",T)===E})};
h3.prototype.activeEndpointChanged=h3.prototype.activeEndpointChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],h3.prototype,"actionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],h3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.$7("#section-items"),_.t("design:type",HTMLDivElement)],h3.prototype,"sectionItems",void 0);
_.k([_.$7("#header-entry"),_.t("design:type",Object)],h3.prototype,"headerEntry",void 0);_.k([_.X(),_.t("design:type",Object)],h3.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],h3.prototype,"activeEndpoint",void 0);_.k([_.X(),_.t("design:type",Object)],h3.prototype,"youtab",void 0);_.k([_.EM("activeEndpoint"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],h3.prototype,"activeEndpointChanged",null);
h3=_.k([_.b({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],h3);
_.A(h3,"ytd-guide-collapsible-section-entry-renderer",function(){if(dcT===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);dcT=E}E=dcT;return E},{mode:1});var sMI;var utI;var sP=function(){var E=_.r.apply(this,arguments)||this;E.modernTypography=_.d("web_modern_typography");E.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 E};
_.L(sP,_.r);_.l=sP.prototype;
_.l.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}}}}};
_.l.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var E=_.Ta(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);E&&E.length===1&&E[0]&&_.Ta(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.l.handleResetChannelUnreadCountCommand=function(E){var B;(E=(B=_.h(E,rcI))==null?void 0:B.channelId)&&this.data&&this.data.items&&(B=this.getPathToEntryMatchingId(E))&&(this.set(B+".guideEntryRenderer.count",0),this.set(B+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.l.handleResetSubscriptionsUnreadDotCommand=function(E){var B,I=(B=_.h(E,b2H))==null?void 0:B.targetId,T;I&&(T=this.data)!=null&&T.items&&(E=this.data.items.findIndex(function(e){var c;return((c=e.guideEntryRenderer)==null?void 0:c.targetId)===I}),E<0||this.set("data.items."+E+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.l.getPathToEntryMatchingId=function(E){if(this.data&&this.data.items){var B=this.getEntryIndexMatchingId(E,this.data.items);if(B>-1)return"data.items."+B;for(var I=0;I<this.data.items.length;I++)if(B=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[I]))if(B=this.getEntryIndexMatchingId(E,B),B>-1)return"data.items."+I+".guideCollapsibleEntryRenderer.expandableItems."+B}};
_.l.handleAddToGuideSectionAction=function(E){var B=this;if(_.h(E,Jc7)){var I=_.h(E,Jc7).items;E=_.h(E,Jc7).handlerData;var T,e;I&&E&&((T=this.data)==null?void 0:(e=T.handlerDatas)==null?void 0:e.indexOf(E))>-1&&(I=I.filter(function(c){return(c=B.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",c))&&!B.isGuideItemPresent(c)}),this.unshift.apply(this,["data.items"].concat(_.ad(I))))}};
_.l.isGuideItemPresent=function(E){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(E,this.data.items)!==-1)return!0;var B=this.data.items.find(function(I){return!!I.guideCollapsibleEntryRenderer});
if((B==null?0:B.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(E,B.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.l.getEntryIndexMatchingId=function(E,B){var I=this;return B.findIndex(function(T){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",T)===E})};
_.l.handleRemoveFromGuideSectionAction=function(E){if(_.h(E,WGH)){var B=_.h(E,WGH).guideEntryId;E=_.h(E,WGH).handlerData;var I,T;B&&E&&((I=this.data)==null?void 0:(T=I.handlerDatas)==null?void 0:T.indexOf(E))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(B,this.data.items),this.removeFromCollapsedSection(B,this.data.items))}};
_.l.removeFromExpandedSection=function(E,B){E=this.getEntryIndexMatchingId(E,B);E!==-1&&this.splice("data.items",E,1)};
_.l.removeFromCollapsedSection=function(E,B){var I=B.findIndex(function(T){return!!T.guideCollapsibleEntryRenderer});
I!==-1&&(B=B[I].guideCollapsibleEntryRenderer.expandableItems)&&(E=this.getEntryIndexMatchingId(E,B),E!==-1&&this.splice("data.items."+I+".guideCollapsibleEntryRenderer.expandableItems",E,1))};
_.l.activeEndpointChanged=function(){for(var E=_.n(this.hostElement).querySelector("#items").children,B=0,I=E.length;B<I;B++)E[B].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.l.guideOpenedChanged=function(){for(var E=_.n(this.hostElement).querySelector("#items").children,B=0,I=E.length;B<I;B++)E[B].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
sP.prototype.guideOpenedChanged=sP.prototype.guideOpenedChanged;sP.prototype.activeEndpointChanged=sP.prototype.activeEndpointChanged;sP.prototype.persistentGuideChanged=sP.prototype.persistentGuideChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],sP.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.t6.YtLazyListBehavior),_.t("design:type",Object)],sP.prototype,"ytLazyListBehavior",void 0);_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],sP.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],sP.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],sP.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],sP.prototype,"modernTypography",void 0);_.k([_.X(),_.t("design:type",String)],sP.prototype,"type",void 0);_.k([_.X({value:20}),_.t("design:type",Number)],sP.prototype,"initialCount",void 0);_.k([_.X({value:10}),_.t("design:type",Number)],sP.prototype,"targetFramerate",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],sP.prototype,"autoFill",void 0);_.k([_.X({value:50}),_.t("design:type",Number)],sP.prototype,"renderDelay",void 0);
_.k([_.EM("guidePersistentAndVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sP.prototype,"persistentGuideChanged",null);_.k([_.i6("activeEndpoint"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sP.prototype,"activeEndpointChanged",null);_.k([_.i6("guideOpened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sP.prototype,"guideOpenedChanged",null);
sP=_.k([_.b({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],sP);
_.A(sP,"ytd-guide-section-renderer",function(){if(utI!==void 0)return utI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return utI=E},{mode:_.qi("kevlar_poly_si_batch_j073")?1:2});var Ljt;var u2=function(){return _.r.apply(this,arguments)||this};
_.L(u2,_.r);_.Up.Object.defineProperties(u2.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],u2.prototype,"rendererBehaviors",void 0);_.k([_.X(),_.t("design:type",Object)],u2.prototype,"data",void 0);_.k([_.X(),_.S("data.signInButton.buttonRenderer.style"),_.t("design:type",Object),_.t("design:paramtypes",[])],u2.prototype,"alignByText",null);u2=_.k([_.b({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],u2);
_.A(u2,"ytd-guide-signin-promo-renderer",function(){if(Ljt===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);Ljt=E}E=Ljt;return E},{mode:1});var Lw=function(){var E=_.r.apply(this,arguments)||this;E.showFooter=!1;return E};
_.L(Lw,_.r);Lw.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}}}}};
Lw.prototype.attached=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1){B=_.Q().resolve(_.Fx(_.M9));if(!B)return I.jumpTo(0);B.setGuideData(E.hostElement);return _.C(I,0,3)}E.ytLazyListBehavior.initialCount=2;return I.return()})};
Lw.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Lw.prototype.dataChanged=Lw.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Lw.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.t6.YtLazyListBehavior),_.t("design:type",Object)],Lw.prototype,"ytLazyListBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Lw.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],Lw.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Lw.prototype,"showFooter",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],Lw.prototype,"autoFill",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Lw.prototype,"dataChanged",null);Lw=_.k([_.b({is:"ytd-guide-renderer",disableElementRegistration:!0})],Lw);
_.A(Lw,"ytd-guide-renderer",function(){if(sMI!==void 0)return sMI;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return sMI=E},{mode:_.qi("kevlar_poly_si_batch_j073")?1:2});var xc7;var xK=function(){var E=_.r.apply(this,arguments)||this;E.systemIcons=_.d("kevlar_system_icons");E.frostedGlass=_.d("web_frosted_glass");E.getEndpointForm=dg9;return E};
_.L(xK,_.r);_.l=xK.prototype;_.l.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.l.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.U3(this.data.formattedTitle))};
_.l.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.l.onDown=function(){this.interaction.triggerDown()};
_.l.onUp=function(){this.interaction.triggerUp()};
_.l.onTap=function(E){if(this.data.serviceEndpoint){var B;_.d("shorts_controller_retrieve_seedless_sequence_v2")&&((B=_.h(this.data.serviceEndpoint,_.yQ))==null?void 0:B.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):QYO(this.data.serviceEndpoint,this);E.preventDefault()}else{var I;((I=this.data)==null?0:I.navigationEndpoint)&&!_.XZ(_.W8(E),this.hostElement,["A".toString()])&&_.$O(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.l.computeActive=function(E,B){if(!E)return!1;var I=E.navigationEndpoint;E=E.serviceEndpoint;if(!I&&!E||!B)return!1;if(I){E=_.h(I,_.pq);var T=_.h(B,_.pq);if(E&&T)return E.browseId===T.browseId&&E.params===T.params;var e;I=(e=_.h(I.commandMetadata,_.D$))==null?void 0:e.url;var c;B=(c=_.h(B.commandMetadata,_.D$))==null?void 0:c.url;return!(!I||!B||I!==B&&I!==_.c7(B))}return this.isActiveShortsTab(E,B)};
_.l.isActiveShortsTab=function(E,B){B=!!_.h(B,_.yQ)||!!_.h(B,_.MT);return(!!_.h(E,_.yQ)||!!_.h(E,_.MT))&&B};
_.l.computeTitle=function(E,B){return B?"":_.U3(E)};
_.Up.Object.defineProperties(xK.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
xK.prototype.onTap=xK.prototype.onTap;xK.prototype.onUp=xK.prototype.onUp;xK.prototype.onDown=xK.prototype.onDown;xK.prototype.onActiveStateChange=xK.prototype.onActiveStateChange;xK.prototype.dataChanged=xK.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],xK.prototype,"ytComponentBehavior",void 0);
_.k([_.g(_.MC),_.t("design:type",Object)],xK.prototype,"ironButtonState",void 0);_.k([_.X(),_.t("design:type",Object)],xK.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],xK.prototype,"activeEndpoint",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],xK.prototype,"noLabels",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.t("design:type",Boolean)],xK.prototype,"isActive",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],xK.prototype,"systemIcons",void 0);_.k([_.$7("yt-interaction"),_.t("design:type",Object)],xK.prototype,"interaction",void 0);_.k([_.S("isActive"),_.t("design:type",Object),_.t("design:paramtypes",[])],xK.prototype,"ariaSelected",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],xK.prototype,"frostedGlass",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],xK.prototype,"dataChanged",null);_.k([_.EM("isActive"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],xK.prototype,"onActiveStateChange",null);_.k([_.RN("down"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],xK.prototype,"onDown",null);
_.k([_.RN("up"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],xK.prototype,"onUp",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],xK.prototype,"onTap",null);xK=_.k([_.b({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],xK);
_.A(xK,"ytd-mini-guide-entry-renderer",function(){if(xc7!==void 0)return xc7;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return xc7=E},{mode:_.qi("kevlar_poly_si_batch_j063")?1:2});var GKT;var Gr=function(){var E=_.r.apply(this,arguments)||this;E.allVideosCount=0;E.noLabels=_.d("kevlar_mini_guide_no_labels");E.frostedGlass=_.d("web_frosted_glass");return E};
_.L(Gr,_.r);_.l=Gr.prototype;_.l.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.l.visibleChanged=function(){if(this.visible&&!this.data){var E=_.Q().resolve(_.Fx(_.M9));E&&E.setGuideData(this.hostElement)}};
_.l.dataChanged=function(){var E=[],B;if((B=this.data)!=null&&B.items){B=_.p(this.data.items);for(var I=B.next();!I.done;I=B.next()){I=I.value;var T=void 0;if((T=I.guideSectionRenderer)==null?0:T.items)for(T=void 0,I=_.p((T=I.guideSectionRenderer)==null?void 0:T.items),T=I.next();!T.done;T=I.next())if(T=T.value,T.guideEntryRenderer)T=T.guideEntryRenderer,T.isPrimary&&E.push({guideEntryRenderer:T});else if(T.guideCollapsibleSectionEntryRenderer){var e=void 0;((e=_.h(T.guideCollapsibleSectionEntryRenderer.headerEntry,
Xm))==null?0:e.isPrimary)&&E.push({guideEntryRenderer:_.h(T.guideCollapsibleSectionEntryRenderer.headerEntry,Xm)});if(T=T.guideCollapsibleSectionEntryRenderer.sectionItems)for(T=_.p(T),e=T.next();!e.done;e=T.next()){var c=e.value;e=_.h(c,EY1);var Y=void 0;((Y=_.h(c,Xm))==null?0:Y.isPrimary)?E.push({guideEntryRenderer:_.h(c,Xm)}):e&&(c=void 0,_.h((c=e)==null?void 0:c.entryRenderer,Xm)&&(e.alwaysShow||this.allVideosCount)&&E.push({guideEntryRenderer:_.h(e.entryRenderer,Xm)}))}}}}this.miniGuideItems=
E};
_.l.activeEndpointChanged=function(){for(var E=this.items.children,B=0;B<E.length;B++)E[B].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
Gr.prototype.activeEndpointChanged=Gr.prototype.activeEndpointChanged;Gr.prototype.dataChanged=Gr.prototype.dataChanged;Gr.prototype.visibleChanged=Gr.prototype.visibleChanged;_.k([_.g(_.Lz),_.t("design:type",Object)],Gr.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Gr.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Gr.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],Gr.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Gr.prototype,"ytComponentBehavior",void 0);_.k([_.$7("#items"),_.t("design:type",Object)],Gr.prototype,"items",void 0);_.k([_.X(),_.t("design:type",Object)],Gr.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],Gr.prototype,"visible",void 0);
_.k([_.X(),_.t("design:type",Object)],Gr.prototype,"miniGuideItems",void 0);_.k([_.X({selector:_.OUF}),_.t("design:type",Object)],Gr.prototype,"allVideosCount",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Gr.prototype,"noLabels",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Gr.prototype,"frostedGlass",void 0);_.k([_.i6("visible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Gr.prototype,"visibleChanged",null);
_.k([_.i6("data","allVideosCount"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Gr.prototype,"dataChanged",null);_.k([_.i6("activeEndpoint"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Gr.prototype,"activeEndpointChanged",null);Gr=_.k([_.b({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Gr);
_.A(Gr,"ytd-mini-guide-renderer",function(){if(GKT===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);GKT=E}E=GKT;return E},{mode:1});var OGL;var nks=/^[\x00-\x7F]+$/,OP=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(OP,_.r);_.Up.Object.defineProperties(OP.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var E,B=_.U3((E=this.data)==null?void 0:E.handle);if(B)return _.jj("@"+B)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var E=_.U3(this.displayHandle),B,I=_.U3((B=this.data)==null?void 0:B.handleUrl);if(E&&I)return _.jj(I+E)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var E=_.U3(this.displayHandle);if(E&&!nks.test(E)){var B;return(B=this.data)==null?void 0:B.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var E=_.U3(this.displayHandleUrl),B,I=_.U3((B=this.data)==null?void 0:B.urlInfoText);if(E&&I)return _.jj(I+" "+E)}}});
_.k([_.X(),_.t("design:type",Object)],OP.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],OP.prototype,"displayHandle",null);_.k([_.S("displayHandle"),_.t("design:type",Object),_.t("design:paramtypes",[])],OP.prototype,"displayHandleUrl",null);_.k([_.S("displayHandle"),_.t("design:type",Object),_.t("design:paramtypes",[])],OP.prototype,"warningText",null);
_.k([_.S("displayHandleUrl"),_.t("design:type",Object),_.t("design:paramtypes",[])],OP.prototype,"urlInfoTextWithUrl",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],OP.prototype,"darkerDarkTheme",void 0);OP=_.k([_.b({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],OP);
_.A(OP,"ytd-handles-claiming-confirm-dialog-content",function(){if(OGL!==void 0)return OGL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return OGL=E},{mode:1});var MSO;var nw=function(){var E=_.r.apply(this,arguments)||this;E.okButtonOverride={style:"mono",type:"outline",size:"M"};return E};
_.L(nw,_.r);nw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
nw.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],nw.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],nw.prototype,"okButtonOverride",void 0);_.k([_.X(),_.t("design:type",Object)],nw.prototype,"data",void 0);nw=_.k([_.b({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],nw);
_.A(nw,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(MSO!==void 0)return MSO;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return MSO=E},{mode:1});var HGT;var Ni2=/^[\x00-\x7F]+$/,Mw=function(){var E=_.r.apply(this,arguments)||this;E.isLoading=!1;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(Mw,_.r);Mw.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var E;this.selectedHandle=(E=this.handleInput)==null?void 0:E.value;this.onSelectedHandleChanged(this.selectedHandle);_.Ta(this.hostElement,"yt-refit-popups-action")}};
_.Up.Object.defineProperties(Mw.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var E;return(E=this.data)==null?void 0:E.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.jj("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.jj(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Ni2.test(this.selectedHandle)){var E;return(E=this.data)==null?void 0:E.warningText}}}});
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Mw.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Mw.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],Mw.prototype,"selectedHandle",void 0);_.k([_.X(),_.t("design:type",Object)],Mw.prototype,"isLoading",void 0);_.k([_.X(),_.t("design:type",Function)],Mw.prototype,"onSelectedHandleChanged",void 0);_.k([_.$7("#channel-handle-input"),_.t("design:type",Object)],Mw.prototype,"handleInput",void 0);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Mw.prototype,"handleUrlPrefix",null);_.k([_.S("selectedHandle"),_.t("design:type",Object),_.t("design:paramtypes",[])],Mw.prototype,"displayHandle",null);_.k([_.S("selectedHandle"),_.t("design:type",Object),_.t("design:paramtypes",[])],Mw.prototype,"displayHandleUrl",null);_.k([_.S("selectedHandle"),_.t("design:type",Object),_.t("design:paramtypes",[])],Mw.prototype,"warningText",null);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Mw.prototype,"darkerDarkTheme",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);Mw=_.k([_.b({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Mw);
_.A(Mw,"ytd-handles-claiming-edit-dialog-content",function(){if(HGT!==void 0)return HGT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return HGT=E},{mode:1});var gkO;var HQ=function(){var E=_.r.apply(this,arguments)||this;E.actionButtonOverride={style:"mono",type:"filled",size:"M"};E.cancelButtonOverride={style:"mono",type:"text",size:"M"};E.selectButtonDisabled=!1;E.isLoading=!1;E.hasSelectedHandleEventListener=!1;E.selectedHandleChanged=function(B){E.selectedHandle=B};
return E};
_.L(HQ,_.r);_.l=HQ.prototype;_.l.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.l.onDataChanged=function(){var E,B;this.selectedHandle=(B=_.h((E=this.data)==null?void 0:E.inputField,MyL))==null?void 0:B.handle};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onCancel=function(){this.selectedHandle="";_.I2(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onSelectHandle=function(){var E=this;if(this.selectedHandle!==void 0){var B;((B=this.data)==null?void 0:B.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,T){if(T.newHandleUpdateStatus!==void 0&&T.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&T.newHandleUpdateStatus.errorMessage)_.de(E.hostElement,_.U3(T.newHandleUpdateStatus.errorMessage)),
E.isLoading=!1;else{var e;if((e=E.data)==null?0:e.onChannelUpdateSuccess){I=E.data.onChannelUpdateSuccess;var c,Y;if(T=(c=_.h(I,_.uU))==null?void 0:(Y=c.popup)==null?void 0:Y.handlesClaimingConfirmDialogRenderer)T.handle=_.jj(E.selectedHandle);E.ytComponentBehavior.resolveCommand(I);_.I2(E.hostElement,"yt-close-popup-action",[E.is])}else E.isLoading=!1}},
onServerError:function(){var I;E.content&&((I=E.content)==null?0:I.handleInput)&&E.content.handleInput.validate();E.isLoading=!1;_.de(E.hostElement,_.yu("TRY_AGAIN_LATER"))}}}))}};
_.l.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
HQ.prototype.onDataChanged=HQ.prototype.onDataChanged;HQ.prototype.onSelectedHandleChanged=HQ.prototype.onSelectedHandleChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],HQ.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],HQ.prototype,"actionButtonOverride",void 0);_.k([_.X(),_.t("design:type",Object)],HQ.prototype,"cancelButtonOverride",void 0);_.k([_.X(),_.t("design:type",Object)],HQ.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",String)],HQ.prototype,"selectedHandle",void 0);_.k([_.X(),_.t("design:type",Object)],HQ.prototype,"selectButtonDisabled",void 0);_.k([_.X(),_.t("design:type",Object)],HQ.prototype,"isLoading",void 0);_.k([_.X(),_.t("design:type",Object)],HQ.prototype,"hasSelectedHandleEventListener",void 0);_.k([_.X(),_.t("design:type",Object)],HQ.prototype,"handleInput",void 0);
_.k([_.EM("selectedHandle"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HQ.prototype,"onSelectedHandleChanged",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],HQ.prototype,"onDataChanged",null);_.k([_.$7("ytd-handles-claiming-edit-dialog-content"),_.t("design:type",Object)],HQ.prototype,"content",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],HQ.prototype,"ytRendererstamperBehavior",void 0);HQ=_.k([_.b({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],HQ);
_.A(HQ,"ytd-handles-claiming-edit-dialog-renderer",function(){if(gkO!==void 0)return gkO;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return gkO=E},{mode:1});var SCt;var Nw=function(){return _.r.apply(this,arguments)||this};
_.L(Nw,_.r);_.Up.Object.defineProperties(Nw.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)==null?0:E.handle){var B;return _.jj("@"+_.U3((B=this.data)==null?void 0:B.handle))}}}});
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],Nw.prototype,"formattedHandle",null);_.k([_.X(),_.t("design:type",Object)],Nw.prototype,"data",void 0);Nw=_.k([_.b({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Nw);
_.A(Nw,"ytd-handles-claiming-radio-option-renderer",function(){if(SCt!==void 0)return SCt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return SCt=E},{mode:1});var JFm;var Wjm=/^[\x00-\x7F]+$/,gq=function(){var E=_.r.apply(this,arguments)||this;E.initialRadioIndex="-1";E.isLoading=!1;E.darkerDarkTheme=_.d("web_darker_dark_theme");E.maybeSubmitFeedback=function(){E.feedbackSurveyRenderer.submitSurvey()};
return E};
_.L(gq,_.r);gq.prototype.updateSelectedHandleIndexFromBinding=function(E){this.selectedRadioIndex=+E.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(E)};
gq.prototype.selectedHandleChanged=function(E){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var B;this.selectedHandle=(B=this.handleInput)==null?void 0:B.value;this.onSelectedHandleChanged(E)}};
_.Up.Object.defineProperties(gq.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var E;return(((E=this.data)==null?void 0:E.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var E;return this.ytRendererBehavior.getSimpleString((E=this.data)==null?void 0:E.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.jj("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.jj(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Wjm.test(this.selectedHandle)){var E;return(E=this.data)==null?void 0:E.warningText}}}});
_.k([_.X(),_.t("design:type",Object)],gq.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],gq.prototype,"initialRadioIndex",void 0);_.k([_.X(),_.t("design:type",Number)],gq.prototype,"selectedRadioIndex",void 0);_.k([_.X(),_.t("design:type",String)],gq.prototype,"selectedHandle",void 0);_.k([_.X(),_.t("design:type",Object)],gq.prototype,"isLoading",void 0);_.k([_.X(),_.t("design:type",Function)],gq.prototype,"onSelectedHandleChanged",void 0);
_.k([_.X(),_.t("design:type",Function)],gq.prototype,"onSelectedRadioIndexChanged",void 0);_.k([_.$7("#channel-handle-input"),_.t("design:type",Object)],gq.prototype,"handleInput",void 0);_.k([_.$7("ytd-feedback-survey-renderer"),_.t("design:type",Object)],gq.prototype,"feedbackSurveyRenderer",void 0);_.k([_.S("data"),_.t("design:type",Number),_.t("design:paramtypes",[])],gq.prototype,"radioButtonLength",null);
_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],gq.prototype,"handleUrlPrefix",null);_.k([_.S("selectedHandle"),_.t("design:type",Object),_.t("design:paramtypes",[])],gq.prototype,"displayHandle",null);_.k([_.S("selectedHandle"),_.t("design:type",Object),_.t("design:paramtypes",[])],gq.prototype,"displayHandleUrl",null);_.k([_.S("selectedHandle"),_.t("design:type",Object),_.t("design:paramtypes",[])],gq.prototype,"warningText",null);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],gq.prototype,"darkerDarkTheme",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);gq=_.k([_.b({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],gq);
_.A(gq,"ytd-handles-claiming-select-dialog-content",function(){if(JFm!==void 0)return JFm;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return JFm=E},{mode:1});var X4m;var SG=function(){var E=_.r.apply(this,arguments)||this;E.actionButtonOverride={style:"mono",type:"filled",size:"M"};E.cancelButtonOverride={style:"mono",type:"text",size:"M"};E.initialRadioIndex="-1";E.selectButtonDisabled=!1;E.isLoading=!1;E.selectedRadioIndexChanged=function(B){E.selectedRadioIndex=Number(B.detail.value)};
E.selectedHandleChanged=function(B){E.selectedHandle=B.detail.value};
E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(SG,_.r);_.l=SG.prototype;_.l.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.l.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.l.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Ta(this.hostElement,"yt-refit-popups-action")};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.I2(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onSelectHandle=function(){var E=this;if(this.selectedHandle!==void 0){var B;((B=this.data)==null?void 0:B.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,T){if(T.newHandleUpdateStatus!==void 0&&T.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&T.newHandleUpdateStatus.errorMessage)_.de(E.hostElement,_.U3(T.newHandleUpdateStatus.errorMessage)),
E.isLoading=!1;else{var e;if((e=E.data)==null?0:e.onChannelUpdateSuccess){I=E.data.onChannelUpdateSuccess;T=_.h(I,_.uU);var c;if(T==null?0:(c=T.popup)==null?0:c.handlesClaimingConfirmDialogRenderer)T.popup.handlesClaimingConfirmDialogRenderer.handle=_.jj(E.selectedHandle);E.ytComponentBehavior.resolveCommand(I);_.I2(E.hostElement,"yt-close-popup-action",[E.is])}else E.isLoading=!1}},
onServerError:function(){if(E.selectedRadioIndex===E.radioButtonLength){var I;E.content&&((I=E.content)==null?0:I.handleInput)&&E.content.handleInput.validate()}E.isLoading=!1;_.de(E.hostElement,_.yu("TRY_AGAIN_LATER"))}}}))}};
_.l.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var E,B;this.selectedHandle=(E=this.content)==null?void 0:(B=E.handleInput)==null?void 0:B.value}else this.selectedRadioIndex>=0&&((E=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(E==null?void 0:E.handle):this.selectedHandle=void 0)};
_.l.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.l.getRadioItem=function(E){if(this.radioButtonLength>E&&E>=0)return _.h(this.data.radioButton[E],fM1)};
_.Up.Object.defineProperties(SG.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var E;return(((E=this.data)==null?void 0:E.radioButton)||[]).length}}});
SG.prototype.onSelectedHandleChanged=SG.prototype.onSelectedHandleChanged;SG.prototype.onSelectedHandleIndexChanged=SG.prototype.onSelectedHandleIndexChanged;SG.prototype.onDataChanged=SG.prototype.onDataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],SG.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],SG.prototype,"actionButtonOverride",void 0);_.k([_.X(),_.t("design:type",Object)],SG.prototype,"cancelButtonOverride",void 0);
_.k([_.X(),_.t("design:type",Object)],SG.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],SG.prototype,"initialRadioIndex",void 0);_.k([_.X(),_.t("design:type",Number)],SG.prototype,"selectedRadioIndex",void 0);_.k([_.X(),_.t("design:type",String)],SG.prototype,"selectedHandle",void 0);_.k([_.X(),_.t("design:type",Object)],SG.prototype,"selectButtonDisabled",void 0);_.k([_.X(),_.t("design:type",Object)],SG.prototype,"isLoading",void 0);
_.k([_.S("data"),_.t("design:type",Number),_.t("design:paramtypes",[])],SG.prototype,"radioButtonLength",null);_.k([_.$7("ytd-handles-claiming-select-dialog-content"),_.t("design:type",Object)],SG.prototype,"content",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],SG.prototype,"onDataChanged",null);
_.k([_.EM("selectedRadioIndex"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],SG.prototype,"onSelectedHandleIndexChanged",null);_.k([_.EM("selectedHandle"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],SG.prototype,"onSelectedHandleChanged",null);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],SG.prototype,"darkerDarkTheme",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],SG.prototype,"ytRendererstamperBehavior",void 0);SG=_.k([_.b({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],SG);
_.A(SG,"ytd-handles-claiming-select-dialog-renderer",function(){if(X4m!==void 0)return X4m;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return X4m=E},{mode:1});var rFT;var bGg;var J3=function(){return _.r.apply(this,arguments)||this};
_.L(J3,_.r);J3.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],J3.prototype,"data",void 0);J3=_.k([_.b({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],J3);
_.A(J3,"ytd-hotkey-dialog-section-option-renderer",function(){if(bGg!==void 0)return bGg;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return bGg=E},{mode:1});var okI;var WQ=function(){return _.r.apply(this,arguments)||this};
_.L(WQ,_.r);WQ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],WQ.prototype,"data",void 0);WQ=_.k([_.b({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],WQ);
_.A(WQ,"ytd-hotkey-dialog-section-renderer",function(){if(okI!==void 0)return okI;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return okI=E},{mode:1});var XH=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(XH,_.r);XH.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],XH.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],XH.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],XH.prototype,"darkerDarkTheme",void 0);XH=_.k([_.b({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],XH);
_.A(XH,"ytd-hotkey-dialog-content",function(){if(rFT!==void 0)return rFT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return rFT=E},{mode:1});var AFm;var rq=function(){return _.r.apply(this,arguments)||this};
_.L(rq,_.r);rq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var E=document.querySelector("ytd-hotkey-dialog-content #scrollable");E&&(E.dialogElement=this.hostElement.parentElement)};
rq.prototype.onCloseTap=function(){_.I2(this.hostElement,"yt-close-popup-action")};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],rq.prototype,"data",void 0);rq=_.k([_.b({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],rq);
_.A(rq,"ytd-hotkey-dialog-renderer",function(){if(AFm!==void 0)return AFm;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return AFm=E},{mode:1});var jM8;var b2=function(){return _.r.apply(this,arguments)||this};
_.L(b2,_.r);b2.prototype.onYtServiceRequestError=function(){if(this.blocked){var E;var B=(E=this.data)==null?void 0:E.defaultServiceEndpoint}else{var I;B=(I=this.data)==null?void 0:I.toggledServiceEndpoint}var T;(B=(T=_.h(B,_.O0z))==null?void 0:T.onFailureAction)&&this.ytComponentBehavior.resolveCommand(B);this.updateBlockState(!this.blocked)};
b2.prototype.onYtToggleButton=function(E){this.updateBlockState(E.detail.toggled)};
b2.prototype.updateBlockState=function(E){if(E!==this.blocked){var B=this.blockedEntityKey;B&&this.ytdReduxBehavior.dispatch(_.aL("blockStateEntity",B,{key:B,blocked:E}));this.set("data.isToggled",E)}};
_.Up.Object.defineProperties(b2.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)}}});
b2.prototype.onYtToggleButton=b2.prototype.onYtToggleButton;b2.prototype.onYtServiceRequestError=b2.prototype.onYtServiceRequestError;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],b2.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],b2.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],b2.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],b2.prototype,"blockedEntityKey",void 0);
_.k([_.X({selectorArgs:["blockedEntityKey"],selector:function(E,B){return _.cP(E.entities,"blockStateEntity",B)}}),
_.t("design:type",Object)],b2.prototype,"blockStateEntity",void 0);_.k([_.S("data","blockStateEntity"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],b2.prototype,"blocked",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],b2.prototype,"onYtServiceRequestError",null);
_.k([_.RN("yt-toggle-button"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],b2.prototype,"onYtToggleButton",null);b2=_.k([_.b({is:"ytd-block-button",disableElementRegistration:!0})],b2);
_.A(b2,"ytd-block-button",function(){if(jM8!==void 0)return jM8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return jM8=E},
{mode:1});var UcH;var kKL;var oE=function(){return _.r.apply(this,arguments)||this};
_.L(oE,_.r);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],oE.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],oE.prototype,"data",void 0);oE=_.k([_.b({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],oE);
_.A(oE,"ytd-kids-blocklist-picker-item-renderer",function(){if(kKL!==void 0)return kKL;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return kKL=E},{mode:1});var A3=function(){return _.r.apply(this,arguments)||this};
_.L(A3,_.r);A3.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],A3.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],A3.prototype,"data",void 0);A3=_.k([_.b({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],A3);
_.A(A3,"ytd-kids-blocklist-picker-content",function(){if(UcH!==void 0)return UcH;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return UcH=
E},{mode:_.qi("kevlar_poly_si_batch_j025")?1:2});var tSI;var jG=function(){var E=_.r.apply(this,arguments)||this;E.hasAnyRequestSucceeded=!1;E.hasAnyRequestFailed=!1;E.numPendingRequests=0;return E};
_.L(jG,_.r);_.l=jG.prototype;_.l.attached=function(){this.hostElement.setAttribute("dialog","")};
_.l.onDoneButtonTap=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.l.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.l.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.l.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.l.onPopupClosed=function(E){var B,I;if(((B=E.detail)==null?void 0:(I=B.popup)==null?void 0:I.is)==="tp-yt-paper-dialog"){var T;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((T=this.data)==null?0:T.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.VF(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
jG.prototype.onPopupClosed=jG.prototype.onPopupClosed;jG.prototype.onYtServiceRequestError=jG.prototype.onYtServiceRequestError;jG.prototype.onYtServiceRequestCompleted=jG.prototype.onYtServiceRequestCompleted;jG.prototype.onYtServiceRequestSent=jG.prototype.onYtServiceRequestSent;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],jG.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],jG.prototype,"data",void 0);_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],jG.prototype,"onYtServiceRequestSent",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],jG.prototype,"onYtServiceRequestCompleted",null);
_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],jG.prototype,"onYtServiceRequestError",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],jG.prototype,"onPopupClosed",null);jG=_.k([_.b({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],jG);
_.A(jG,"ytd-kids-blocklist-picker-renderer",function(){if(tSI!==void 0)return tSI;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return tSI=E},{mode:1});var fd7;var VS8;var UP=function(){return _.r.apply(this,arguments)||this};
_.L(UP,_.r);UP.prototype.setTip=function(E){var B=this;this.data&&(this.tip=Jhs(gCH.getInstance(),E,this.data),_.AJ(this,function(){_.$O(B.hostElement,"yt-refit")}))};
UP.prototype.clearTip=function(){this.tip=void 0};
UP.prototype.computeHidden=function(E){return!E};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],UP.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.t("design:type",Boolean)],UP.prototype,"hidden",void 0);_.k([_.X(),_.t("design:type",Object)],UP.prototype,"tip",void 0);UP=_.k([_.b({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],UP);
_.A(UP,"ytd-menu-popup-tip-renderer",function(){if(VS8!==void 0)return VS8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);
return VS8=E},{mode:1});var qCs;var kK=function(){var E=_.r.apply(this,arguments)||this;E.useIcons=!1;E.systemIcons=_.d("kevlar_system_icons");E.useListItemStyles=_.d("web_list_item_style_for_menu_items");return E};
_.L(kK,_.r);_.l=kK.prototype;_.l.onFocus=function(){var E;(E=_.n(this.hostElement).querySelector("tp-yt-paper-item"))==null||E.focus()};
_.l.onTap=function(){var E=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(E&&_.h(E,_.pO))this.componentBehavior.resolveCommand(E),this.updateToggledStateInEntity();else if(E){this.componentBehavior.resolveCommand(E)||_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}});var B;((B=_.h(E,_.a2))==null?void 0:B.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.l.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.l.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.l.updateToggledStateInEntity=function(){var E=this.data.toggleMenuServiceItemEntityKey,B=!this.data.isToggled;E&&this.ytdReduxBehavior.dispatch(_.aL("toggleMenuServiceItemEntity",E,{key:E,isToggled:B}))};
_.l.computeIcon=function(E,B,I){return(E=E?I:B)&&E.iconType?_.R3(E.iconType):""};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.isIconActive=function(E){return!_.d("toggle_menu_active_icon_killswitch")&&E};
_.Up.Object.defineProperties(kK.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return((E=this.data)==null?0:E.isToggled)?(B=this.data)==null?void 0:B.toggledText:(I=this.data)==null?void 0:I.defaultText}}});
kK.prototype.toggledStateEntityChanged=kK.prototype.toggledStateEntityChanged;kK.prototype.onYtServiceRequestCompleted=kK.prototype.onYtServiceRequestCompleted;kK.prototype.onTap=kK.prototype.onTap;kK.prototype.onFocus=kK.prototype.onFocus;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],kK.prototype,"componentBehavior",void 0);
_.k([_.g(_.Lz),_.t("design:type",Object)],kK.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],kK.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],kK.prototype,"useIcons",void 0);_.k([_.X({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.t("design:type",String)],kK.prototype,"icon",void 0);
_.k([_.X({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(E,B){return _.cP(E.entities,"toggleMenuServiceItemEntity",B)}}),
_.t("design:type",Object)],kK.prototype,"toggleMenuServiceItemEntity",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],kK.prototype,"systemIcons",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],kK.prototype,"useListItemStyles",void 0);_.k([_.RN("focus"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],kK.prototype,"onFocus",null);
_.k([_.S("data.isToggled"),_.t("design:type",Object),_.t("design:paramtypes",[])],kK.prototype,"toggleButtonText",null);_.k([_.RN("tap"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],kK.prototype,"onTap",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],kK.prototype,"onYtServiceRequestCompleted",null);
_.k([_.EM("toggleMenuServiceItemEntity.isToggled","data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],kK.prototype,"toggledStateEntityChanged",null);kK=_.k([_.b({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],kK);
_.A(kK,"ytd-toggle-menu-service-item-renderer",function(){if(qCs!==void 0)return qCs;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return qCs=E},{mode:1});var Fjd;var t3=function(){return _.r.apply(this,arguments)||this};
_.L(t3,_.r);t3.prototype.onFocus=function(){var E;(E=_.n(this.hostElement).querySelector("tp-yt-paper-item"))==null||E.focus()};
_.Up.Object.defineProperties(t3.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.pr(this.data.iconUrl)}}});
t3.prototype.onFocus=t3.prototype.onFocus;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],t3.prototype,"rendererBehavior",void 0);_.k([_.g(_.BF.YtEndpointBehavior),_.t("design:type",Object)],t3.prototype,"ytEndpointBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],t3.prototype,"data",void 0);_.k([_.RN("focus"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],t3.prototype,"onFocus",null);
_.k([_.S("data.iconUrl"),_.t("design:type",Object),_.t("design:paramtypes",[])],t3.prototype,"imageSource",null);t3=_.k([_.b({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],t3);
_.A(t3,"ytd-menu-custom-icon-item-renderer",function(){if(Fjd!==void 0)return Fjd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Fjd=E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});_.oQ(_.Z8,"yt-list-item-view-model",{props:{data:_.Jh,isMenuItem:_.Jh,isCompact:_.Jh,onTap:_.bu,trailingAccessory:_.bu,hideSelectionTextChevron:_.Jh,disabled:_.Jh,inPopup:_.Jh,disableHorizontalPadding:_.Jh,isOverlay:_.Jh}});var fw=function(){var E=_.r.apply(this,arguments)||this;E.disableBackdropFilter=_.d("web_disable_backdrop_filter");return E};
_.L(fw,_.r);_.l=fw.prototype;
_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.l.computeAriaLabel=function(E){return E};
_.l.onPopupOpened=function(){this.items.selected=0;for(var E=_.p(_.n(this.items).children),B=E.next();!B.done;B=E.next())B.value.popupPositionTarget=this.positionTarget;if(E=this.popupTip||void 0)E.setTip(this.source||""),this.source=void 0;this.veData&&(E=_.nC())&&_.b1(E,[this.veData])};
_.l.onPopupClosed=function(){var E=this.popupTip||void 0;E&&E.clearTip()};
_.l.onIronActivate=function(E){this.shouldPersist(E)||_.I2(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(E=_.nC())&&_.Al(E,this.veData)};
_.l.shouldPersist=function(E){var B,I;if(((B=E.detail)==null?void 0:B.selected)===void 0||(I=this.data)==null||!I.items)return!1;var T,e;return!((e=(T=this.data.items[E.detail.selected])==null?void 0:T.toggleMenuServiceItemRenderer)==null||!e.persistentOnMenuPopup)};
_.l.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(E){return E.menuNavigationItemRenderer?!!E.menuNavigationItemRenderer.icon:E.menuServiceItemRenderer?!!E.menuServiceItemRenderer.icon:E.menuConditionalServiceItemRenderer?!!E.menuConditionalServiceItemRenderer.icon:E.menuConditionalNavigationItemRenderer?!!E.menuConditionalNavigationItemRenderer.icon:E.toggleMenuServiceItemRenderer?!!E.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
fw.prototype.onPopupClosed=fw.prototype.onPopupClosed;fw.prototype.onPopupOpened=fw.prototype.onPopupOpened;_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],fw.prototype,"ytEventForwardingBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],fw.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],fw.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],fw.prototype,"veData",void 0);_.k([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.t("design:type",String)],fw.prototype,"ariaLabel",void 0);_.k([_.X({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],fw.prototype,"useIcons",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],fw.prototype,"disableBackdropFilter",void 0);_.k([_.$7("#items"),_.t("design:type",Object)],fw.prototype,"items",void 0);_.k([_.$7("ytd-menu-popup-tip-renderer"),_.t("design:type",Object)],fw.prototype,"popupTip",void 0);_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fw.prototype,"onPopupOpened",null);
_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],fw.prototype,"onPopupClosed",null);fw=_.k([_.b({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],fw);
_.A(fw,"ytd-menu-popup-renderer",function(){if(fd7!==void 0)return fd7;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return fd7=E},{mode:1});var Dc1;var KjI=_.rp(function(E){E=_.XS(E,{icon:void 0});var B=E.data;E=E.icon;var I=function(){return B().iconBadgeText},T={},e=_.RQ("yt-spec-icon-badge-shape",function(){a:switch(B().iconBadgeType){case "notification":var c="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":c="yt-spec-icon-badge-shape--type-cart";break a;default:c=""}return c},function(){a:switch(B().iconBadgeStyle){case "overlay":var c="yt-spec-icon-badge-shape--style-overlay";
break a;default:c=""}return c},(T["yt-spec-icon-badge-shape--text-size-small"]=function(){var c=I();
return!!((c==null?0:c.length)&&c.length>2)},T));
return _.w("yt-icon-badge-shape",null,_.w(_.wU,{cond:E,then:function(c){return _.w("div",{class:e},_.w("div",{class:"yt-spec-icon-badge-shape__icon"},_.w(_.i0,{icon:c})),_.w(_.wU,{cond:I,then:function(Y){return _.w("div",{class:"yt-spec-icon-badge-shape__badge"},Y)}}))}}))},"$f");
KjI.idomCompat=!0;_.oQ(KjI,"yt-icon-badge-shape",{props:{data:_.Jh,icon:_.Jh}});var V3=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};E.unseenCount=0;E.isOverlay=!1;return E};
_.L(V3,_.r);_.l=V3.prototype;_.l.attached=function(){var E=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(B){E.onServiceWorkerMessage(B)})};
_.l.onDataChanged=function(){this.isAttached&&!this.JSC$18136_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18136_lastData=this.data};
_.l.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.l.computeIcon=function(){var E,B;return(E=this.data)==null?void 0:(B=E.icon)==null?void 0:B.iconType};
_.l.onServiceWorkerMessage=function(E){E.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.l.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.h(this.data.updateUnseenCountEndpoint,_.a2)&&_.h(this.data.updateUnseenCountEndpoint,_.a2).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.l.handleUpdateNotificationsUnseenCountAction=function(E){var B=this;E=_.h(E,XO7);E!=null&&E.unseenCount&&E.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(E.unseenCount),_.Ll.addLowPriorityJob(function(){B.data.updateUnseenCountEndpoint&&B.ytComponentBehavior.resolveCommand(B.data.updateUnseenCountEndpoint)},E.timeoutMs))};
_.l.onClick=function(){_.$O(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var E=_.Ta(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),B=this.data.menuRequest;E&&E.length===1&&E[0]?_.I2(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):B&&this.ytComponentBehavior.resolveCommand(B)};
_.l.handleTopbarMenuClosedAction=function(E){E==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.l.toggleIconState=function(E){this.iconButton&&(this.iconButton.pressed=E)};
_.l.sendUnseenCountRequest=function(E){var B=this;_.PC(_.Ll,function(){B.ytComponentBehavior.resolveCommand(E)})};
_.l.updateCountUI=function(E){this.set("unseenCount",E<9?E:"9+")};
_.Up.Object.defineProperties(V3.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
V3.prototype.handleUpdateNotificationsUnseenCountAction=V3.prototype.handleUpdateNotificationsUnseenCountAction;V3.prototype.onDataChanged=V3.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],V3.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.X_),_.t("design:type",Object)],V3.prototype,"ytdOpenPopupBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],V3.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],V3.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],V3.prototype,"unseenCount",void 0);_.k([_.X(),_.t("design:type",Object)],V3.prototype,"isOverlay",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],V3.prototype,"showTooltips",void 0);_.k([_.$7("yt-icon-button"),_.t("design:type",Object)],V3.prototype,"iconButton",void 0);
_.k([_.S("unseenCount"),_.t("design:type",Object),_.t("design:paramtypes",[])],V3.prototype,"showNotificationCount",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],V3.prototype,"onDataChanged",null);_.k([_.RN("yt-update-notifications-unseen-count-action"),_.t("design:type",Function),_.t("design:paramtypes",[Object]),_.t("design:returntype")],V3.prototype,"handleUpdateNotificationsUnseenCountAction",null);
V3=_.k([_.b({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],V3);
_.A(V3,"ytd-notification-topbar-button-renderer",function(){if(Dc1!==void 0)return Dc1;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Dc1=E},{mode:_.qi("kevlar_poly_si_batch_j025")?1:2});var Rz9;var qw=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return E};
_.L(qw,_.r);qw.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}}}}}};
qw.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
qw.prototype.onDarkModeToggled=function(E){this.dark=E};
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],qw.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],qw.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],qw.prototype,"data",void 0);_.k([_.X({value:!0,reflectToAttribute:!0}),_.t("design:type",Boolean)],qw.prototype,"dark",void 0);
qw=_.k([_.b({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],qw);
_.A(qw,"yt-pdg-buy-flow-header-renderer",function(){if(Rz9!==void 0)return Rz9;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Rz9=E},{mode:1});var EoI;var BzH;var FH=function(){var E=_.r.apply(this,arguments)||this;E.immediateValue=0;E.isDarkTheme=!1;E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return E};
_.L(FH,_.r);_.l=FH.prototype;_.l.created=function(){_.r4.requestAvailability()};
_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.dataChanged=function(){var E=_.n(this.hostElement).querySelector("#color-slider");E.immediateValue&&this.updateSliderKnobAndGradientStyles(E.immediateValue);this.data.notches[0].knobColorArgb&&_.Dk(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.hR(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.HA("HTML_DIR")==="rtl"&&_.n(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.l.onSliderImmediateChange=function(){var E=_.n(this.hostElement).querySelector("#color-slider");E.dragging&&(E.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(E.immediateValue),this.updateSliderKnobAndGradientStyles(E.immediateValue)),this.updateSliderAria())};
_.l.onSliderChange=function(){var E=_.n(this.hostElement).querySelector("#color-slider");E.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(E.immediateValue),this.updateSliderKnobAndGradientStyles(E.immediateValue));this.updateSliderAria()};
_.l.updateSliderAria=function(){var E=_.n(this.hostElement).querySelector("#color-slider"),B=_.n(this.hostElement).querySelector("#color-slider");B=_.U3(this.data.notches[B.immediateValue].tierValue);_.n4()&&_.$O(this.hostElement,"iron-announce",{text:B});E.setAttribute("aria-valuetext",B)};
_.l.updateSuperThanksSelectedTierEntity=function(E){if(E!==this.immediateValue){var B,I,T=this==null?void 0:(B=this.data)==null?void 0:(I=B.superThanksSelectedTierEntity)==null?void 0:I.key;T&&T.length>0&&this.ytdReduxBehavior.dispatch(_.aL("superThanksSelectedTierEntity",T,{key:T,index:E}))}};
_.l.onDarkModeToggledAction=function(E){this.isDarkTheme=E};
_.l.updateSliderKnobAndGradientStyles=function(E){this.immediateValue=E;E=this.data.notches[E];if(E==null?0:E.knobColorArgb)var B={"--ytd-pdg-color-slider-knob-color":_.hR(E.knobColorArgb)};(E==null?0:E.linearGradientCssStyle)&&B!==null&&(B=Object.assign({},B,{"--ytd-pdg-color-slider-active-color":E==null?void 0:E.linearGradientCssStyle}));B!==null&&_.Dk(this.hostElement,B)};
FH.prototype.onSliderChange=FH.prototype.onSliderChange;FH.prototype.onSliderImmediateChange=FH.prototype.onSliderImmediateChange;FH.prototype.dataChanged=FH.prototype.dataChanged;_.k([_.X(),_.t("design:type",Object)],FH.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],FH.prototype,"immediateValue",void 0);_.k([_.X(),_.t("design:type",Number)],FH.prototype,"maxMarkers",void 0);
_.k([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:JKd}),_.t("design:type",Object)],FH.prototype,"superThanksSelectedTierEntity",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],FH.prototype,"isDarkTheme",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],FH.prototype,"ytdReduxBehavior",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],FH.prototype,"dataChanged",null);
_.k([_.RN("immediate-value-change"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],FH.prototype,"onSliderImmediateChange",null);_.k([_.RN("change"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],FH.prototype,"onSliderChange",null);FH=_.k([_.b({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],FH);
_.A(FH,"ytd-pdg-color-slider-renderer",function(){if(BzH!==void 0)return BzH;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return BzH=E},{mode:1});var $X1;var IbT;var Dh=null;
_.wp({is:"ytd-comment-input",_template:function(){if(IbT!==void 0)return IbT;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return IbT=E},
behaviors:[_.Cg4.YtHostElementBehavior,_.mG,_.G0.YtComponentBehavior,_.kC.YtRendererstamperBehavior,_.e5$.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 _.Gm}},
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",_.Kq(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;_.po();this.focus()},
detached:function(){document.removeEventListener("tap",_.Kq(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(E){E=E.detail;E=E.isCustomEmoji?E.shortcuts[0]:E.emojiId;var B=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(B,E);this.maybeUpdateTextDirection_();_.$O(this.hostElement,"input")},
getInputRange_:function(){var E=_.wZ();if(E){E=E.getBrowserRangeObject();for(var B=E.commonAncestorContainer;B;){if(B===this.getEditableTextArea_())return E;B=B.parentNode}}E=this.getEditableTextArea_();E=_.go(E,E.childNodes.length);E.select();return E.getBrowserRangeObject()},
insertTextWithEmojis_:function(E,B,I){(B=this.emojiManager.createDocumentFragment(B,!0,!1,I===void 0?!0:I))&&B.childNodes.length!==0&&(E.collapsed||E.deleteContents(),I=B.lastChild,E.insertNode(B),_.F_N(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var E=_.wZ();if(E){var B=E.JSC$9140_getStartNode(),I=E.JSC$9140_getEndNode();if(hJT(B)&&hJT(I)){var T=E.JSC$9140_getStartOffset(),e;if(_.YU&&B.nodeType===Node.ELEMENT_NODE&&(e=_.vIU(B)))_.go(e,0).select();else{e=j0(B)?B:_.Ql(B,j0);var c=j0(I)?I:_.Ql(I,j0);if(e||c)if(E.isCollapsed()){if(B.nodeType===Node.TEXT_NODE){E=!0;T===B.length&&(E=!1);if(Dh==="end"||Dh==="right")E=!1;B=B.parentNode;E=[].concat(_.ad(B.parentNode.childNodes)).indexOf(B)+(E?0:1);_.go(B.parentNode,E).select()}}else e?
e.previousSibling&&e.previousSibling.length>0?_.So(I,E.JSC$9140_getEndOffset(),e.previousSibling,e.previousSibling.length-1).select():(B=document.createTextNode("\u200b"),e.parentNode.insertBefore(B,e),_.So(I,E.JSC$9140_getEndOffset(),B,0).select()):c&&(c.nextSibling&&c.nextSibling.length>0?_.So(B,E.JSC$9140_getStartOffset(),c.nextSibling,1).select():(I=document.createTextNode("\u200b"),c.parentNode.insertBefore(I,c.nextSibling),_.So(B,E.JSC$9140_getStartOffset(),I,I.length).select()));Dh=null}}else Dh=
null}else Dh=null},
leftKeyPressed_:function(){Dh="left"},
rightKeyPressed_:function(){Dh="right"},
endKeyPressed_:function(){Dh="end"},
maybeDeleteChip_:function(){var E=O9d(!0);if(E){var B=_.wZ(),I=B.JSC$9140_getStartNode();B=B.JSC$9140_getStartOffset();_.Oo(I,B,E,E.childNodes.length).select()}},
maybeBackspaceChip_:function(){var E=O9d(!1);if(E){var B=_.wZ(),I=B.JSC$9140_getStartNode();B=B.JSC$9140_getStartOffset();_.Oo(I,B,E,0).select()}},
maybeBackspaceChipWordMode_:function(E){var B=_.wZ();if(B.isCollapsed()){var I=B.JSC$9140_getStartNode();B=B.JSC$9140_getStartOffset();var T=nNI(I,B,!0);T&&(_.Oo(I,B,T,0).select(),document.execCommand("delete"),E.preventDefault(),E.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(E){var B=_.wZ();if(B.isCollapsed()){var I=B.JSC$9140_getStartNode();B=B.JSC$9140_getStartOffset();var T=nNI(I,B,!1);T&&(_.Oo(I,B,T,T.childNodes.length).select(),document.execCommand("delete"),E.preventDefault(),E.stopImmediatePropagation())}},
onContentClick:function(E){E.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(E){E.defaultPrevented||E.currentTarget.tagName==="YTD-COMMENT-INPUT"&&j0(E.target)&&E.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.n(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.n(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(E,B){E=uOI(E,this.emojiManager,B).cloneNode(!0);for(B=E.firstChild;B;)if(B.nodeType!==1)B=B.nextSibling;else switch(B.tagName){case "BR":var I=_.L7();_.Qgt(I,B);B=I.nextSibling;break;case "DIV":(I=B.lastChild)&&B.nextSibling&&_.n7(_.L7(),I);B.previousSibling&&(B.previousSibling.nodeType===1||B.previousSibling.nodeType===3&&!B.previousSibling.textContent.endsWith("\n"))&&_.Os(_.L7(),B);I&&I.nodeName==="BR"&&_.ii(I);I=B;B.hasChildNodes()?(B=B.firstChild,
_.dID(I)):(B=B.nextSibling,_.ii(I));break;default:B=B.nextSibling}return Mjm(E)},
setTextAreaValue:function(E){E||(E="");var B=this.getEditableFormattedString_();B.text="";this.getEditableTextArea_().innerText="";typeof E==="string"&&(E={runs:[{text:E}]});B.text=E},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Dh=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var E=this.getEditableTextArea_();E&&(_.go(E,E.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.HA("HTML_DIR")==="rtl"){var E=this.getEditableTextArea_(),B=this.getTextAreaValue()!==""?"auto":"rtl";E.setAttribute("dir",B)}},
handleInputEvent_:function(){var E=null;if(this.isEmojiButtonDisplayed){var B=this.getInputRange_();B&&(E=this.emojiInput.retrieveTextBeforeRange(B))}this.insertText_(E,!0);this.updateCharCount_();E=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=E.scrollHeight>E.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var E=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:E})},
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(E){this.isEmojiButtonDisplayed&&(E.preventDefault(),E.stopImmediatePropagation(),E=E.clipboardData.getData("text/plain"),this.insertText_(E,!1,!1),_.$O(this.hostElement,"input"))},
insertText_:function(E,B,I){B=B===void 0?!1:B;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&E){var T=this.getInputRange_().cloneRange();this.emojiManager&&T&&(B&&this.emojiInput.offsetStartOfRangeBy(T,E.length),this.insertTextWithEmojis_(T,E,I),sYt(this.getEditableTextArea_().lastChild)||(T=this.getInputRange_().cloneRange()),T&&(this.emojiInput.updateSuggestions(T,E),this.updateSuggestionOffset_(T)))}},
getSimpleString:_.U3,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(E){return E?"focused":"not-focused"},
computePlaceholderText_:function(E){return this.getSimpleString(E)},
computeEditableText_:function(E){return this.getSimpleString(E)},
onPrefilledContentDismissed_:function(E){E.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(E,B){E?this.fire("yt-autonav-pause-focus"):B!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(E){var B=this.getEditableTextArea_();[].concat(_.ad(E.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(T){B.appendChild(document.createTextNode(T))})});
E.preventDefault()},
preventDefault_:function(E){E.preventDefault()},
onSuggestionInsert_:function(E){this.insertTextWithEmojis_(E.detail.range,E.detail.text)},
onEmojiSuggestionClick_:function(E){this.emojiInput.insertSuggestion(E.detail)},
updateSuggestionOffset_:function(E){if(this.emojiInput&&_.n(this.emojiInput).querySelector("#dropdown")){var B=this.getEditableTextArea_().getBoundingClientRect().bottom,I=E.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(B-I)+5;B=this.getEditableTextArea_().getBoundingClientRect().left;E=E.getBoundingClientRect().left-B;_.n(this.emojiInput).querySelector("#dropdown").style.marginLeft=E+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.M3("yt-post"));return this.localStorage}});var Kw=function(){var E=_.r.apply(this,arguments)||this;E.currentCommentOptionIndex=0;E.isEmojiPickerDisplayed=!1;E.emojiManager=_.Gm;E.isUgcEmpty=!1;E.userGeneratedCommentChangedHandler=function(){_.$O(E.hostElement,"ytd-pdg-user-generated-comment-changed");E.isEmojiYtdCommentInputEnabled&&(E.isUgcEmpty=!E.ytdCommentInputEl.getTextAreaValue())};
E.pasteHandler=function(B){B.preventDefault();B.stopImmediatePropagation();var I;if(B=(I=B.clipboardData)==null?void 0:I.getData("text/plain"))I=document.getSelection().getRangeAt(0),I.collapsed||I.deleteContents(),B=document.createTextNode(B),I.insertNode(B),I.selectNodeContents(B),I.collapse(!1),B=window.getSelection(),B.removeAllRanges(),B.addRange(I)};
E.onDocumentClick=function(B){if(E.isEmojiPickerDisplayed){var I,T,e;!(B.target instanceof Node)||(I=B.composedPath())!=null&&I.includes(E.editableTextEl)||(T=B.composedPath())!=null&&T.includes(E.emojiButtonEl)||(e=B.composedPath())!=null&&e.includes(E.emojiPickerEl)||(E.isEmojiPickerDisplayed=!1)}};
return E};
_.L(Kw,_.r);_.l=Kw.prototype;_.l.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.l.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.l.detached=function(){var E;(E=this.contentEl)==null||E.removeEventListener("input",this.userGeneratedCommentChangedHandler);var B;(B=this.contentEl)==null||B.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.l.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.l.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var E;this.contentEl.textContent=this.rendererBehavior.getSimpleString((E=this.data)==null?void 0:E.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.l.reloadEmojis=function(){this.emojiPickerEl&&_.h(this.emojiPicker,_.b0D)&&this.emojiPickerEl.updateEmojiCategories()};
_.l.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Dk(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.l.handleBackgroundColorStyling=function(){var E;if((E=this.currentCommentOption)==null?0:E.commentBackgroundColorArgb){var B;_.Dk(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.hR((B=this.currentCommentOption)==null?void 0:B.commentBackgroundColorArgb)})}else _.Dk(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.l.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var E;(E=this.contentEl)==null||E.focus()}};
_.l.onEditButtonClick=function(E){var B=document.getSelection();B&&this.contentEl&&(E.stopPropagation(),E.preventDefault(),B.selectAllChildren(this.contentEl),B.collapseToEnd())};
_.l.onContentDrop=function(E){var B=this;if(E.dataTransfer){E=_.p(E.dataTransfer.items);for(var I=E.next();!I.done;I=E.next())I=I.value,I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(T){var e;(e=B.contentEl)==null||e.appendChild(document.createTextNode(T))})}};
_.l.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.l.getUserGeneratedCommentText=function(){var E,B=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(E=this.contentEl)==null?void 0:E.textContent;return B?B.trim():""};
_.l.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.l.onEmojiSelect=function(E){this.ytdCommentInputEl.onEmojiSelect(E)};
_.Up.Object.defineProperties(Kw.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.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 E;return!((E=this.currentCommentOption)==null||!E.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var E;if(_.h((E=this.currentCommentOption)==null?void 0:E.chipRenderer,_.FAZ)){var B;return _.h((B=this.currentCommentOption)==null?void 0:B.chipRenderer,_.FAZ)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var E,B;return((E=this.data)==null?0:E.commentOptionRenderers)?_.h((B=this.data)==null?void 0:B.commentOptionRenderers[this.superThanksSelectedTierEntity.index],YS7):void 0}var I,T;return((I=this.data)==null?0:I.commentOptionRenderers)?_.h((T=this.data)==null?void 0:T.commentOptionRenderers[this.currentCommentOptionIndex],YS7):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var E;return this.rendererBehavior.getSimpleString((E=this.data)==null?void 0:E.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var E;return this.rendererBehavior.getSimpleString((E=this.data)==null?void 0:E.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var E,B;return(B=_.h((E=this.data)==null?void 0:E.commentDialog,_.H7h))==null?void 0:B.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var E,B;return(B=_.h((E=this.data)==null?void 0:E.commentDialog,_.H7h))==null?void 0:B.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var E,B;return(B=_.h((E=this.data)==null?void 0:E.commentDialog,_.H7h))==null?void 0:B.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var E,B,I=(B=_.h((E=this.data)==null?void 0:E.commentDialog,_.H7h))==null?void 0:B.emojiPicker;if(!_.h(I,_.b0D)||!_.h(I,_.b0D).categories)return!1;E=function(c){return c.emojiPickerCategoryRenderer?c.emojiPickerCategoryRenderer.emojiIds&&c.emojiPickerCategoryRenderer.emojiIds.length>0:c.emojiPickerUpsellCategoryRenderer?c.emojiPickerUpsellCategoryRenderer.emojis&&c.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var T,e;return((T=_.h(I,_.b0D))==null?0:(e=T.categories)==null?0:e.find(E))?!0:!1}}});
Kw.prototype.onEmojiSelect=Kw.prototype.onEmojiSelect;Kw.prototype.dataChanged=Kw.prototype.dataChanged;Kw.prototype.currentCommentOptionChanged=Kw.prototype.currentCommentOptionChanged;_.k([_.g(_.Lz),_.t("design:type",Object)],Kw.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Kw.prototype,"rendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Kw.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.$7("#content-dom-if"),_.t("design:type",_.Pl)],Kw.prototype,"contentDomIfEl",void 0);_.k([_.$7("#content-no-emojis"),_.t("design:type",HTMLElement)],Kw.prototype,"contentEl",void 0);_.k([_.$7("#container"),_.t("design:type",HTMLElement)],Kw.prototype,"containerEl",void 0);_.k([_.$7("#comment-chip-container"),_.t("design:type",HTMLElement)],Kw.prototype,"paidCommentChipContainerEl",void 0);_.k([_.$7("#text-input"),_.t("design:type",HTMLElement)],Kw.prototype,"editableTextEl",void 0);
_.k([_.$7("#emoji-button"),_.t("design:type",HTMLElement)],Kw.prototype,"emojiButtonEl",void 0);_.k([_.$7("#emoji-picker > yt-emoji-picker-renderer"),_.t("design:type",Object)],Kw.prototype,"emojiPickerEl",void 0);_.k([_.$7("#text-input > ytd-comment-input"),_.t("design:type",Object)],Kw.prototype,"ytdCommentInputEl",void 0);_.k([_.X(),_.t("design:type",Object)],Kw.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Kw.prototype,"currentCommentOptionIndex",void 0);
_.k([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:JKd}),_.t("design:type",Object)],Kw.prototype,"superThanksSelectedTierEntity",void 0);_.k([_.X(),_.t("design:type",Object)],Kw.prototype,"isEmojiPickerDisplayed",void 0);_.k([_.X(),_.t("design:type",Object)],Kw.prototype,"emojiManager",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Kw.prototype,"isUgcEmpty",void 0);
_.k([_.EM("currentCommentOption"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Kw.prototype,"currentCommentOptionChanged",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Kw.prototype,"dataChanged",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Kw.prototype,"isEmojiYtdCommentInputEnabled",null);
_.k([_.S("data.title"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kw.prototype,"title",null);_.k([_.S("data.authorText"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kw.prototype,"channelName",null);_.k([_.S("data.commentOptionRenderers","currentCommentOption"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Kw.prototype,"shouldShowPaidCommentChipRenderer",null);
_.k([_.S("data.commentOptionRenderers","currentCommentOption"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kw.prototype,"paidCommentChipRenderer",null);_.k([_.S("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kw.prototype,"currentCommentOption",null);
_.k([_.S("data.defaultCommentText","superThanksSelectedTierEntity"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kw.prototype,"commentText",null);_.k([_.S("data.placeholderText"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kw.prototype,"placeholderText",null);_.k([_.S("data.commentDialog.commentDialogRenderer.editableText"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kw.prototype,"editableText",null);
_.k([_.S("data.commentDialog.commentDialogRenderer.emojiButton"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kw.prototype,"emojiButton",null);_.k([_.S("data.commentDialog.commentDialogRenderer.emojiPicker"),_.t("design:type",Object),_.t("design:paramtypes",[])],Kw.prototype,"emojiPicker",null);
_.k([_.S("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Kw.prototype,"isEmojiButtonDisplayed",null);_.k([_.RN("yt-emoji-select"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],Kw.prototype,"onEmojiSelect",null);Kw=_.k([_.b({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Kw);
_.A(Kw,"ytd-pdg-comment-preview-renderer",function(){if($X1!==void 0)return $X1;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return $X1=E},{mode:2});var Tzs;var RE=function(){var E=_.r.apply(this,arguments)||this;E.selected=!1;return E};
_.L(RE,_.r);_.l=RE.prototype;_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.l.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.l.dataChanged=function(){this.data&&(_.fq(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Dk(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.hR(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.hR(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.l.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.l.onClick=function(){this.logClick()};
_.l.onKeyboardSelect=function(){_.$O(this.hostElement,"tap");this.onClick()};
_.l.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
RE.prototype.onClick=RE.prototype.onClick;RE.prototype.selectedChanged=RE.prototype.selectedChanged;RE.prototype.dataChanged=RE.prototype.dataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],RE.prototype,"componentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.mG),_.t("design:type",Object)],RE.prototype,"ironA11yKeysBehavior",void 0);
_.k([_.g(_.Mi),_.t("design:type",Object)],RE.prototype,"ironSelectableBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],RE.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],RE.prototype,"shownThumbnail",void 0);_.k([_.X(),_.t("design:type",Object)],RE.prototype,"basePriceText",void 0);_.k([_.X(),_.t("design:type",Object)],RE.prototype,"purchaseCommand",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],RE.prototype,"selected",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],RE.prototype,"dataChanged",null);_.k([_.EM("selected"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],RE.prototype,"selectedChanged",null);_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],RE.prototype,"onClick",null);
RE=_.k([_.b({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],RE);
_.A(RE,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(Tzs!==void 0)return Tzs;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Tzs=E},{mode:1});var Eh=function(){var E=_.r.apply(this,arguments)||this;E.selectedItemIndex=0;E.buyButtonDisabled=!1;return E};
_.L(Eh,_.r);_.l=Eh.prototype;
_.l.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]]"}}}}}};
_.l.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var E;var B=(E=_.h(this.data.colorSlider,pWO))==null?void 0:E.notches[this.selectedItemIndex].purchaseCommand}else{var I;B=(I=_.h(this.data.selectableItemButtons[this.selectedItemIndex],vYd))==null?void 0:I.purchaseCommand}if(B){E=_.h(B,_.z8l);E.productData||(E.productData={});var T;E.productData={pdgData:{commentMessageText:(T=this.commentPreviewRenderer)==null?void 0:T.getUserGeneratedCommentText()}};
_.$O(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(B)}}};
_.l.dataChanged=function(){if(this.data){_.Gm.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.rUD(_.Gm,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Gm.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var E;this.buyButtonDisabled=!((E=_.h(this.data.commentPreview,a_d))==null||!E.placeholderText);this.updatePriceSelectorStatus();var B;if((B=this.data)==null?0:B.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;E=[];this.data.preloadImages&&(E=this.data.preloadImages);
E=E.map(function(I){return _.Aa(I.thumbnails,1920)});
E=_.p(E);for(B=E.next();!B.done;B=E.next())(B=B.value)&&_.j9B(B).thenCatch(function(){_.OG(Error("kl"))})}};
_.l.superThanksSelectedTierEntityChanged=function(){var E;(this==null?void 0:(E=this.superThanksSelectedTierEntity)==null?void 0:E.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.l.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.l.updatePriceSelectorStatus=function(){this.isColorSlider?(_.n(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.n(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.n(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.n(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.l.closeBuyFlow=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.l.onUserGeneratedContentChanged=function(){var E;this.buyButtonDisabled=!((E=this.commentPreviewRenderer)==null?0:E.getUserGeneratedCommentText())};
_.l.updateSelectedItemIndexFromBinding=function(E){this.selectedItemIndex=E.detail.value};
_.Up.Object.defineProperties(Eh.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var E;return!((E=this.data)==null||!E.disclaimerText)}}});
Eh.prototype.onUserGeneratedContentChanged=Eh.prototype.onUserGeneratedContentChanged;Eh.prototype.closeBuyFlow=Eh.prototype.closeBuyFlow;Eh.prototype.selectedItemIndexChanged=Eh.prototype.selectedItemIndexChanged;Eh.prototype.superThanksSelectedTierEntityChanged=Eh.prototype.superThanksSelectedTierEntityChanged;Eh.prototype.dataChanged=Eh.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Eh.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Eh.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Eh.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Eh.prototype,"selectedItemIndex",void 0);_.k([_.X(),_.t("design:type",Boolean)],Eh.prototype,"isColorSlider",void 0);
_.k([_.X(),_.t("design:type",Object)],Eh.prototype,"buyButtonDisabled",void 0);_.k([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:JKd}),_.t("design:type",Object)],Eh.prototype,"superThanksSelectedTierEntity",void 0);_.k([_.$7("ytd-pdg-comment-preview-renderer"),_.t("design:type",Object)],Eh.prototype,"commentPreviewRenderer",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Eh.prototype,"ytdReduxBehavior",void 0);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Eh.prototype,"dataChanged",null);_.k([_.EM("superThanksSelectedTierEntity"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Eh.prototype,"superThanksSelectedTierEntityChanged",null);_.k([_.EM("selectedItemIndex"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Eh.prototype,"selectedItemIndexChanged",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Eh.prototype,"closeBuyFlow",null);_.k([_.RN("ytd-pdg-user-generated-comment-changed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Eh.prototype,"onUserGeneratedContentChanged",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],Eh.prototype,"isDisclaimerTextShown",null);
Eh=_.k([_.b({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],Eh);
_.A(Eh,"yt-super-vod-buy-flow-content-renderer",function(){if(EoI!==void 0)return EoI;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return EoI=E},{mode:1});var eQd;var BY=function(){var E=_.r.apply(this,arguments)||this;E.lottieAnimationRef={};return E};
_.L(BY,_.r);_.l=BY.prototype;_.l.created=function(){_.r4.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Kq(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.l.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.$O(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.l.detached=function(){this.autoCloseJobId&&_.Ll.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Kq(this,this.onPopupIronOverlayOpened))};
_.l.dataChanged=function(){var E=this;this.data&&this.data.autoCloseDelay&&(_.I2(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.ta(_.Ll,function(){E.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Dk(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.l.onDOMLoadedLottie=function(){var E=this,B,I,T=Number((B=this.data)==null?void 0:(I=B.autoCloseDelay)==null?void 0:I.seconds)||0;this.fadeOutJobId=_.ta(_.Ll,function(){E.lottiePlayerEl.classList.add("fadeout")},(T-.25)*1E3);
this.autoCloseJobId=_.ta(_.Ll,function(){E.closePopup()},T*1E3)};
_.l.openPopup=function(){this.ironOverlayBehavior.open()};
_.l.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.I2(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.cN(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.Q().resolve(_.Dt).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Ll.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Ll.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.l.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var E,B;(E=this.lottieAnimationRef)==null||(B=E.lottieEl)==null||B.destroy();E=this.data.lottie;var I,T;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:E.url+"_"+Math.random(),path:E.url,autoplay:!0,loop:(T=(I=E.settings)==null?void 0:I.loop)!=null?T:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Up.Object.defineProperties(BY.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var E,B;return!!((E=this.data)==null?0:(B=E.lottie)==null?0:B.url)}}});
BY.prototype.maybeInitializeLottie=BY.prototype.maybeInitializeLottie;BY.prototype.dataChanged=BY.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],BY.prototype,"rendererBehavior",void 0);_.k([_.g(_.UI),_.t("design:type",Object)],BY.prototype,"ironOverlayBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],BY.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],BY.prototype,"lottiePlayerProps",void 0);
_.k([_.X(),_.t("design:type",Object)],BY.prototype,"lottieAnimationRef",void 0);_.k([_.$7("ytd-lottie-player"),_.t("design:type",HTMLElement)],BY.prototype,"lottiePlayerEl",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],BY.prototype,"dataChanged",null);_.k([_.S("data"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],BY.prototype,"hasLottieAnimation",null);
_.k([_.EM("data.lottie.url"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],BY.prototype,"maybeInitializeLottie",null);BY=_.k([_.b({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],BY);
_.A(BY,"ytd-desktop-image-overlay-renderer",function(){if(eQd!==void 0)return eQd;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return eQd=E},{mode:1});var lb2;var $u=function(){return _.r.apply(this,arguments)||this};
_.L($u,_.r);_.l=$u.prototype;_.l.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"}}}}};
_.l.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",_.Kq(this,this.closePopup))};
_.l.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Kq(this,this.closePopup))};
_.l.dataChanged=function(){_.Ta(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.h(this.data.header,iUT)&&(this.hasBackgroundBanner=!!_.h(this.data.header,iUT).backgroundBanner)};
_.l.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Kq(this,this.closePopup))};
_.l.closePopup=function(){this.data&&this.data.onCloseCommand&&_.l1(this.hostElement,[this.data.onCloseCommand])};
$u.prototype.handleBuyflowSelectionSubmitted=$u.prototype.handleBuyflowSelectionSubmitted;$u.prototype.dataChanged=$u.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],$u.prototype,"data",void 0);
_.k([_.X({value:!0,reflectToAttribute:!0}),_.t("design:type",Boolean)],$u.prototype,"hasBackgroundBanner",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$u.prototype,"dataChanged",null);_.k([_.RN("yt-pdg-buy-flow-selection-submitted"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],$u.prototype,"handleBuyflowSelectionSubmitted",null);
$u=_.k([_.b({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],$u);
_.A($u,"ytd-pdg-buy-flow-renderer",function(){if(lb2!==void 0)return lb2;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return lb2=E},{mode:1});var cN7;var IR=function(){var E=_.r.apply(this,arguments)||this;E.isOpen=!1;E.isPlaylistCreated=!1;return E};
_.L(IR,_.r);_.l=IR.prototype;_.l.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.l.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.$O(this.hostElement,"yt-refit")};
_.l.onCreateTap=function(){var E=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.l1(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(B,I){if(!_.d("killswitch_ep_in_create_playlist_response")&&(I==null?0:I.actions))for(B=_.p(I.actions),I=B.next();!I.done;I=B.next())I=I.value,_.h(I,_.nJ)&&E.ytComponentBehavior.resolveCommand(I)}}]),this.isPlaylistCreated=!0)};
_.l.onKeydown=function(E){if(E.keyCode===13)this.onCreateTap()};
_.l.onServiceRequestCompleted=function(E){E.stopPropagation();_.I2(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.l.computePrivacyBadge=function(E){return E?[{metadataBadgeRenderer:E}]:[]};
IR.prototype.onServiceRequestCompleted=IR.prototype.onServiceRequestCompleted;IR.prototype.onKeydown=IR.prototype.onKeydown;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],IR.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],IR.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],IR.prototype,"isOpen",void 0);
_.k([_.X(),_.t("design:type",Object)],IR.prototype,"isPlaylistCreated",void 0);_.k([_.X({value:{REQUIRED_LABEL:_.yu("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.yu("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.t("design:type",Object)],IR.prototype,"addToStrings",void 0);_.k([_.X({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.t("design:type",Array)],IR.prototype,"privacyBadge",void 0);
_.k([_.$7("#privacy-input"),_.t("design:type",Object)],IR.prototype,"privacyInput",void 0);_.k([_.$7("#name-input"),_.t("design:type",Object)],IR.prototype,"nameInput",void 0);_.k([_.RN("keydown"),_.t("design:type",Function),_.t("design:paramtypes",[KeyboardEvent]),_.t("design:returntype")],IR.prototype,"onKeydown",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],IR.prototype,"onServiceRequestCompleted",null);
IR=_.k([_.b({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],IR);
_.A(IR,"ytd-add-to-playlist-create-renderer",function(){if(cN7!==void 0)return cN7;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return cN7=E},{mode:1});var ims;var pHs;var TE=function(){var E=_.r.apply(this,arguments)||this;E.transferState="TRANSFER_STATE_UNKNOWN";return E};
_.L(TE,_.r);TE.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
TE.prototype.onCheckboxChange=function(E){var B=this;this.data&&_.OM(this,"yt-playlist-checkbox-changed",function(){var I=_.XN(E).checked?B.data.addToPlaylistServiceEndpoint:B.data.removeFromPlaylistServiceEndpoint;I&&_.Q().resolve(_.Dt).resolveCommand(I,{form:{element:B.hostElement}});_.d("dl_playlist_killswitch")||B.transferState!=="TRANSFER_STATE_UNKNOWN"&&B.transferState!=="TRANSFER_STATE_FAILED"&&B.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:B.data.playlistId,action:"ACTION_SYNC"}})},
100)};
TE.prototype.computeIconType=function(E){return E?"yt-icons:"+E.toLowerCase():null};
TE.prototype.dataChanged=TE.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],TE.prototype,"data",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],TE.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],TE.prototype,"ytComponentBehavior",void 0);_.k([_.$7("#checkbox"),_.t("design:type",HTMLInputElement)],TE.prototype,"checkbox",void 0);
_.k([_.X({selector:_.HP,selectorArgs:["data.playlistId"]}),_.t("design:type",String)],TE.prototype,"transferState",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],TE.prototype,"dataChanged",null);TE=_.k([_.b({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],TE);
_.A(TE,"ytd-playlist-add-to-option-renderer",function(){if(pHs!==void 0)return pHs;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return pHs=E},{mode:1});_.qW(H9g);_.qE(H9g,"ytd-menu-title-renderer",{propNames:["data"]});var eA=function(){var E=_.r.apply(this,arguments)||this;E.addToStrings={ADD_TO_DROPDOWN_LABEL:_.yu("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};E.closeButtonAriaLabel=_.yu("SBOX_INAPPROPRIATE_CANCEL");E.dialog=_.d("desktop_add_to_playlist_renderer_dialog_popup");return E};
_.L(eA,_.r);_.l=eA.prototype;_.l.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"}}}};
_.l.onPopupOpened=function(){_.VQ(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.l.onPopupClosed=function(){_.VQ(this.playlists,"scrollable",!1)};
_.l.computeAriaLabel=function(){var E;if(this==null?0:(E=this.data)==null?0:E.actions){E=_.p(this.data.actions);for(var B=E.next();!B.done;B=E.next())if(B=B.value,B.menuTitleRenderer)return _.U3(B.menuTitleRenderer.title)}};
_.l.onTapClose=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Up.Object.defineProperties(eA.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var E;if(this==null?0:(E=this.data)==null?0:E.actions){E=_.p(this.data.actions);for(var B=E.next();!B.done;B=E.next())if(B=B.value,B.menuTitleRenderer)return B.menuTitleRenderer}return!1}}});
eA.prototype.onPopupClosed=eA.prototype.onPopupClosed;eA.prototype.onPopupOpened=eA.prototype.onPopupOpened;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],eA.prototype,"ytEventForwardingBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],eA.prototype,"ytRendererStamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],eA.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],eA.prototype,"addToStrings",void 0);_.k([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.t("design:type",String)],eA.prototype,"ariaLabel",void 0);_.k([_.X(),_.t("design:type",String)],eA.prototype,"closeButtonAriaLabel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],eA.prototype,"dialog",void 0);
_.k([_.$7("#playlists"),_.t("design:type",HTMLElement)],eA.prototype,"playlists",void 0);_.k([_.$7("ytd-add-to-playlist-create-renderer"),_.t("design:type",Object)],eA.prototype,"createRenderer",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],eA.prototype,"menuTitleRenderer",null);_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],eA.prototype,"onPopupOpened",null);
_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],eA.prototype,"onPopupClosed",null);eA=_.k([_.b({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],eA);
_.A(eA,"ytd-add-to-playlist-renderer",function(){if(ims!==void 0)return ims;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ims=E},{mode:1});var YUd;var lV=function(){var E=_.r.apply(this,arguments)||this;E.isPlaylistEditComplete=!1;E.isCollabEngagementDisabled=!1;E.closeButtonAriaLabel=_.yu("SBOX_INAPPROPRIATE_CANCEL");E.saveButton={title:_.yu("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"};E.onValueChanged=function(){E.updateSaveButtonState();E.computeCollabEngagementDisabled()};
return E};
_.L(lV,_.r);_.l=lV.prototype;_.l.attached=function(){this.JSC$18192_scroller&&(this.JSC$18192_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18192_scroller.attached&&typeof this.JSC$18192_scroller.attached==="function"&&this.JSC$18192_scroller.attached())};
_.l.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.l.onPopupClosed=function(){this.reset()};
_.l.close=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.l.onClickSave=function(){var E=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var B=[];this.nameInput.value!==null&&B.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&B.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var I=Number(this.privacyInput.value);isNaN(I)||B.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:I})}this.votingInput.value!==null&&(I=this.votingInput.value)&&B.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:I});if(B.length>0){var T;_.h((T=this.data)==null?void 0:T.updateSettingsEndpoint,_.nU).actions=B;var e;if((e=this.data)==null?0:e.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){E.close()}}}),this.isPlaylistEditComplete=!0}}};
_.l.computePrivacyBadge=function(E){return E?[{metadataBadgeRenderer:E}]:[]};
_.l.computeEditorData=function(E){var B,I;return E==null?void 0:(B=E.sections)==null?void 0:(I=B[0])==null?void 0:I.playlistSettingsEditorCasualSectionRenderer};
_.l.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.l.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}}}}}};
_.l.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"}))};
_.l.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.l.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.l.isNameChanged=function(){var E,B,I;return(((E=this.editorData)==null?void 0:(B=E.name)==null?void 0:(I=B.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.nameInput.value||"")};
_.l.isDescriptionChanged=function(){var E,B,I;return(((E=this.editorData)==null?void 0:(B=E.description)==null?void 0:(I=B.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.descriptionInput.value||"")};
_.l.isPrivacyChanged=function(){var E,B,I,T,e,c,Y,v;return((Y=(E=this.editorData)==null?void 0:(B=E.privacy)==null?void 0:(I=B.dropdownFormFieldRenderer)==null?void 0:(T=I.dropdown)==null?void 0:(e=T.dropdownRenderer)==null?void 0:(c=e.entries)==null?void 0:c.find(function(y){var Z;return y==null?void 0:(Z=y.privacyDropdownItemRenderer)==null?void 0:Z.isSelected}))==null?void 0:(v=Y.privacyDropdownItemRenderer)==null?void 0:v.int32Value)!==this.privacyInput.value};
_.l.isVotingChanged=function(){var E,B,I,T,e,c,Y,v;return((Y=(E=this.editorData)==null?void 0:(B=E.voting)==null?void 0:(I=B.dropdownFormFieldRenderer)==null?void 0:(T=I.dropdown)==null?void 0:(e=T.dropdownRenderer)==null?void 0:(c=e.entries)==null?void 0:c.find(function(y){var Z;return y==null?void 0:(Z=y.privacyDropdownItemRenderer)==null?void 0:Z.isSelected}))==null?void 0:(v=Y.privacyDropdownItemRenderer)==null?void 0:v.int32Value)!==this.votingInput.value};
lV.prototype.onPopupClosed=lV.prototype.onPopupClosed;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],lV.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],lV.prototype,"ytEventForwardingBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],lV.prototype,"ytRendererStamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],lV.prototype,"data",void 0);_.k([_.X({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.t("design:type",Array)],lV.prototype,"privacyBadge",void 0);_.k([_.X({computed:"computeEditorData(data)"}),_.t("design:type",Object)],lV.prototype,"editorData",void 0);_.k([_.X(),_.t("design:type",Object)],lV.prototype,"isPlaylistEditComplete",void 0);_.k([_.X(),_.t("design:type",Object)],lV.prototype,"isCollabEngagementDisabled",void 0);
_.k([_.X({value:{REQUIRED_LABEL:_.yu("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.yu("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.t("design:type",Object)],lV.prototype,"addToStrings",void 0);_.k([_.X(),_.t("design:type",String)],lV.prototype,"closeButtonAriaLabel",void 0);_.k([_.X(),_.t("design:type",Object)],lV.prototype,"saveButton",void 0);_.k([_.$7("#name-input"),_.t("design:type",Object)],lV.prototype,"nameInput",void 0);
_.k([_.$7("#description-input"),_.t("design:type",Object)],lV.prototype,"descriptionInput",void 0);_.k([_.$7("#privacy-input"),_.t("design:type",Object)],lV.prototype,"privacyInput",void 0);_.k([_.$7("#voting-input"),_.t("design:type",Object)],lV.prototype,"votingInput",void 0);_.k([_.$7("#scroller"),_.t("design:type",Object)],lV.prototype,"JSC$18192_scroller",void 0);
_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],lV.prototype,"onPopupClosed",null);_.k([_.X(),_.t("design:type",Object)],lV.prototype,"onValueChanged",void 0);lV=_.k([_.b({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],lV);
_.A(lV,"ytd-playlist-settings-editor-renderer",function(){if(YUd===void 0){var E=document.createElement("template");_.G(E,'\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]]" 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]]" 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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);YUd=E}E=YUd;return E},{mode:1});var ab2;_.QH("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var cY=function(){return _.r.apply(this,arguments)||this};
_.L(cY,_.r);_.l=cY.prototype;_.l.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}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.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 E=this.get("data.nextButton.buttonRenderer.navigationEndpoint");E&&(this.nextNavigationEndpoint=E,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.l.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 E={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",E)}}};
_.l.onPopupOpened=function(E){E.detail!==this&&E.detail!==this.hostElement||!_.d("enable_premium_voluntary_pause")||_.I2(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.l.onNextButtonTap=function(){var E=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);E&&this.ytdOpenPopupBehavior.openPopup(E)};
_.l.updateSelectedResponseIndexFromBinding=function(E){this.selectedResponseIndex=E.detail.value};
cY.prototype.onPopupOpened=cY.prototype.onPopupOpened;cY.prototype.onSelectedResponseIndexChange=cY.prototype.onSelectedResponseIndexChange;cY.prototype.dataChanged=cY.prototype.dataChanged;_.k([_.g(_.X_),_.t("design:type",Object)],cY.prototype,"ytdOpenPopupBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],cY.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],cY.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Number)],cY.prototype,"selectedResponseIndex",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cY.prototype,"dataChanged",null);_.k([_.EM("selectedResponseIndex"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],cY.prototype,"onSelectedResponseIndexChange",null);
_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],cY.prototype,"onPopupOpened",null);cY=_.k([_.b({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],cY);
_.A(cY,"ytd-red-cancel-survey-renderer",function(){if(ab2!==void 0)return ab2;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return ab2=E},{mode:1});var vod;var iV=function(){var E=_.r.apply(this,arguments)||this;E.closeButtonAriaLabel=_.yu("SBOX_INAPPROPRIATE_CANCEL");return E};
_.L(iV,_.r);iV.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
iV.prototype.onClickClose=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],iV.prototype,"rendererStamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],iV.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],iV.prototype,"closeButtonAriaLabel",void 0);iV=_.k([_.b({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],iV);
_.A(iV,"ytd-search-filter-options-dialog-renderer",function(){if(vod!==void 0)return vod;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return vod=E},{mode:1});var yNt;var S31=function(){return function(E){E=E.availabilityType;return E===void 0||E==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||E==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var ps=function(){var E=_.r.apply(this,arguments)||this;E.qualityOptions=[];E.upsellOptions=[];E.showUpsellSection=!1;E.darkerDarkTheme=_.d("web_darker_dark_theme");E.rememberSettingsChecked=!1;return E};
_.L(ps,_.r);_.l=ps.prototype;_.l.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}}}}};
_.l.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.l.updateQualityOptions=function(){if(this.formats===void 0)_.I2(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var E=[],B=[];this.showUpsellSection=!1;for(var I=_.p(this.formats),T=I.next();!T.done;T=I.next())(T=T.value)&&(T.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?B.push(T):E.push(T));E.length&&(this.qualityOptions=gNs(E));B.length&&(this.showUpsellSection=!0,this.upsellOptions=gNs(B))}};
_.l.updateRememberString=function(){if(this.downloadQualityPickerEntity)var E=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var B;E=(B=this.data)==null?void 0:B.premiumRememberSettingString}else{var I;E=(I=this.data)==null?void 0:I.rememberSettingString}E=E===void 0?_.yu("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):E;this.rememberSettingsCheckboxRenderer={title:_.KO(E),disabled:!1}};
_.l.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Up.Object.defineProperties(ps.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var E;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(E=this.data)==null?void 0:E.qualityFormats}}});
ps.prototype.updateRememberString=ps.prototype.updateRememberString;ps.prototype.updateQualityOptions=ps.prototype.updateQualityOptions;ps.prototype.dataChanged=ps.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],ps.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ps.prototype,"data",void 0);
_.k([_.g(_.Lz),_.t("design:type",Object)],ps.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Boolean)],ps.prototype,"selectedUpsellQuality",void 0);_.k([_.X({computed:"computeIcon_(data.premiumIcon)",value:""}),_.t("design:type",String)],ps.prototype,"premiumIcon",void 0);_.k([_.X({selector:Hlg,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.t("design:type",Object)],ps.prototype,"downloadQualityPickerEntity",void 0);
_.k([_.X(),_.t("design:type",Array)],ps.prototype,"qualityOptions",void 0);_.k([_.X(),_.t("design:type",Array)],ps.prototype,"upsellOptions",void 0);_.k([_.X(),_.t("design:type",Object)],ps.prototype,"showUpsellSection",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],ps.prototype,"darkerDarkTheme",void 0);_.k([_.X(),_.t("design:type",Object)],ps.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.k([_.$7("#remember-settings"),_.t("design:type",HTMLInputElement)],ps.prototype,"rememberSettingsCheckbox",void 0);_.k([_.X(),_.t("design:type",Object)],ps.prototype,"rememberSettingsChecked",void 0);_.k([_.X(),_.t("design:type",Function)],ps.prototype,"onRememberSettingsCheckedChanged",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ps.prototype,"dataChanged",null);
_.k([_.EM("downloadQualityPickerEntity"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ps.prototype,"updateQualityOptions",null);_.k([_.EM("selectedUpsellQuality"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ps.prototype,"updateRememberString",null);ps=_.k([_.b({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],ps);
_.A(ps,"ytd-download-quality-selector-content",function(){if(yNt!==void 0)return yNt;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return yNt=E},{mode:1});var CYH;var Yu=function(){var E=_.r.apply(this,arguments)||this;E.selectedUpsellQuality=!1;E.qualityOptions=[];E.darkerDarkTheme=_.d("web_darker_dark_theme");E.useUpsellDismissAlternate=_.d("use_not_now_dl_upsell_dismiss_cta");E.shouldShowAlternateUpsellDimiss=!1;E.rememberSettings=!1;E.rememberSettingsChecked=!1;E.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};E.rememberSettingsCheckedChanged=function(B){E.rememberSettingsChecked=B};
return E};
_.L(Yu,_.r);_.l=Yu.prototype;
_.l.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.KO(_.yu("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.KO(_.yu("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.KO(_.yu("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.KO(_.yu("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.l.updateQualityOptions=function(){this.formats===void 0?_.I2(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=gNs(this.formats)};
_.l.onQualityOptionsSelect=function(E){if(this.qualityOptions&&E){E!==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 B=_.p(this.qualityOptions.entries()),I=B.next();!I.done;I=
B.next()){I=_.p(I.value);var T=I.next().value;I=I.next().value;var e=void 0,c=void 0;if(((e=I)==null?void 0:(c=e.settingsRadioOptionRenderer)==null?void 0:c.id)===E){this.selectedQualityIndex=T;E=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((E=this.formats[T])==null?void 0:E.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.l.onClickSubmit=function(){var E;if((E=this.downloadButtonRenderer)==null||!E.isDisabled){var B,I;E=(I=(B=this.data)==null?void 0:B.onSubmitEndpoint)!=null?I:{};var T,e;if(this.formats&&(((T=_.h(E,_.ef))==null?0:T.videoId)||((e=_.h(E,_.lO))==null?0:e.playlistId))){var c,Y,v,y,Z,P;B={formatType:(y=(c=this.formats)==null?void 0:(Y=c[(v=this.selectedQualityIndex)!=null?v:0])==null?void 0:Y.format)!=null?y:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(Z=this.getOfflineEndpoint(E))==null?void 0:(P=Z.actionParams)==null?void 0:P.settingsAction)};this.getOfflineEndpoint(E).actionParams=B;this.ytComponentBehavior.resolveCommand(E)}_.I2(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.l.onClickUpsell=function(){var E;if((E=this.upsellButtonRenderer)==null||!E.isDisabled){var B,I;E=(I=(B=this.data)==null?void 0:B.upsellEndpoint)!=null?I:{};this.ytComponentBehavior.resolveCommand(E);_.I2(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);B="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var T,e,c,Y;B=(Y=(T=this.formats)==null?void 0:(e=T[(c=this.selectedQualityIndex)!=null?c:0])==null?void 0:e.format)!=null?Y:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:B}})}};
_.l.onClickClose=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.l.getOfflineSettingsAction=function(E,B){return E?B===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":B:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.l.getOfflineEndpoint=function(E){return _.h(E,_.ef)?_.h(E,_.ef):_.h(E,_.lO)};
_.Up.Object.defineProperties(Yu.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.KO(_.yu("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var E;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(E=this.data)==null?void 0:E.qualityFormats}}});
Yu.prototype.updateQualityOptions=Yu.prototype.updateQualityOptions;Yu.prototype.dataChanged=Yu.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Yu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Yu.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Yu.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Yu.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Number)],Yu.prototype,"selectedQualityIndex",void 0);_.k([_.X(),_.t("design:type",Object)],Yu.prototype,"selectedUpsellQuality",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],Yu.prototype,"ytdReduxBehavior",void 0);
_.k([_.X({selector:Hlg,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.t("design:type",Object)],Yu.prototype,"downloadQualityPickerEntity",void 0);_.k([_.X(),_.t("design:type",Array)],Yu.prototype,"qualityOptions",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Yu.prototype,"darkerDarkTheme",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],Yu.prototype,"useUpsellDismissAlternate",void 0);
_.k([_.X(),_.t("design:type",Object)],Yu.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.k([_.X(),_.t("design:type",Object)],Yu.prototype,"downloadButtonRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],Yu.prototype,"upsellButtonRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],Yu.prototype,"cancelButtonRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],Yu.prototype,"upsellCancelButtonRenderer",void 0);_.k([_.X(),_.t("design:type",Object)],Yu.prototype,"rememberSettings",void 0);
_.k([_.X(),_.t("design:type",Object)],Yu.prototype,"rememberSettingsChecked",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Yu.prototype,"dataChanged",null);_.k([_.EM("downloadQualityPickerEntity"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Yu.prototype,"updateQualityOptions",null);Yu=_.k([_.b({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Yu);
_.A(Yu,"ytd-download-quality-selector-renderer",function(){if(CYH!==void 0)return CYH;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return CYH=E},{mode:1});var wHg;var aR=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(aR,_.r);aR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
aR.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"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],aR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],aR.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],aR.prototype,"darkerDarkTheme",void 0);_.k([_.X({computed:"computeIcon_(data.infoIcon)"}),_.t("design:type",Object)],aR.prototype,"infoIcon",void 0);
_.k([_.X({computed:"computeIcon_(data.warningIcon)"}),_.t("design:type",Object)],aR.prototype,"warningIcon",void 0);aR=_.k([_.b({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],aR);
_.A(aR,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(wHg!==void 0)return wHg;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return wHg=E},{mode:1});var Zm8;var vY=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(vY,_.r);vY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
vY.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"}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],vY.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],vY.prototype,"darkerDarkTheme",void 0);vY=_.k([_.b({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],vY);
_.A(vY,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(Zm8!==void 0)return Zm8;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Zm8=E},{mode:1});var PYt;var y2=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(y2,_.r);y2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
y2.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"}}}}};
y2.prototype.onServiceRequestSentOrCompleted=function(E,B){B&&B.actions&&B.actions.length>0&&_.I2(this.hostElement,"yt-close-popup-action",[this.is])};
y2.prototype.onServiceRequestSentOrCompleted=y2.prototype.onServiceRequestSentOrCompleted;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],y2.prototype,"darkerDarkTheme",void 0);_.k([_.X(),_.t("design:type",Object)],y2.prototype,"data",void 0);
_.k([_.RN("yt-service-request-completed"),_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],y2.prototype,"onServiceRequestSentOrCompleted",null);y2=_.k([_.b({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],y2);
_.A(y2,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(PYt!==void 0)return PYt;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return PYt=E},{mode:1});var zQ2;var Cs=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");E.submitButtonDisabled=!0;return E};
_.L(Cs,_.r);_.l=Cs.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.l.onDataChanged=function(){var E,B,I;if(((E=this.data)==null?void 0:(B=E.confirmButton)==null?void 0:(I=B.buttonRenderer)==null?void 0:I.isDisabled)!==void 0){var T,e,c;this.submitButtonDisabled=(T=this.data)==null?void 0:(e=T.confirmButton)==null?void 0:(c=e.buttonRenderer)==null?void 0:c.isDisabled}};
_.l.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.l.updateSubmitButtonDisabledFromBinding=function(E){this.submitButtonDisabled=E.detail.value};
_.l.updateSubmitButtonDisabledFromConfirmCheckbox=function(E){this.submitButtonDisabled=!E.detail.value};
Cs.prototype.onDataChanged=Cs.prototype.onDataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Cs.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Cs.prototype,"darkerDarkTheme",void 0);
_.k([_.X(),_.t("design:type",Object)],Cs.prototype,"submitButtonDisabled",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Cs.prototype,"onDataChanged",null);Cs=_.k([_.b({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Cs);
_.A(Cs,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(zQ2!==void 0)return zQ2;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return zQ2=E},{mode:1});var mX7;var w_=function(){return _.r.apply(this,arguments)||this};
_.L(w_,_.r);_.Up.Object.defineProperties(w_.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var E,B,I;return((E=this.data)==null?void 0:E.title)+" "+((B=this.data)==null?void 0:B.metadataPrimary)+" "+((I=this.data)==null?void 0:I.metadataSecondary)}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],w_.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],w_.prototype,"data",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],w_.prototype,"ariaLabel",null);w_=_.k([_.b({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],w_);
_.A(w_,"ytd-compact-product-list-item-renderer",function(){if(mX7!==void 0)return mX7;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return mX7=E},{mode:1});var QWO;var Zo=function(){return _.r.apply(this,arguments)||this};
_.L(Zo,_.r);Zo.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]]"}}}}}};
_.Up.Object.defineProperties(Zo.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Zo.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Zo.prototype,"data",void 0);Zo=_.k([_.b({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Zo);
_.A(Zo,"ytd-compact-product-list-renderer",function(){if(QWO!==void 0)return QWO;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return QWO=E},{mode:1});var dXO;var PY=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(PY,_.r);_.l=PY.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.l.getBackgroundUrl=function(){var E=this.get("data.headerImage.thumbnails");return E?"url("+_.Aa(E,this.hostElement.clientWidth)+")":""};
_.l.onDataChanged=function(){var E=this.getBackgroundUrl();E&&(this.header.style.backgroundImage=E);E=_.nC();var B=_.Oi(),I=this.get("data.trackingParams");I&&B&&E&&_.XD(E,B,_.Yg(I));E=_.p(this.hostElement.querySelectorAll("yt-img-shadow"));for(B=E.next();!B.done;B=E.next())B.value.onShow()};
_.l.onPopupClosed=function(E){_.XN(E).localName==="ytd-membership-post-cancel-renderer"&&_.I2(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
PY.prototype.onPopupClosed=PY.prototype.onPopupClosed;PY.prototype.onDataChanged=PY.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],PY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],PY.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],PY.prototype,"darkerDarkTheme",void 0);
_.k([_.$7("#header"),_.t("design:type",HTMLDivElement)],PY.prototype,"header",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],PY.prototype,"onDataChanged",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],PY.prototype,"onPopupClosed",null);PY=_.k([_.b({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],PY);
_.A(PY,"ytd-membership-post-cancel-renderer",function(){if(dXO!==void 0)return dXO;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return dXO=E},{mode:1});var hQL;var zE=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(zE,_.r);zE.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
zE.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],zE.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],zE.prototype,"darkerDarkTheme",void 0);_.k([_.$7("ytd-feedback-survey-renderer"),_.t("design:type",Object)],zE.prototype,"feedbackSurveyRenderer",void 0);zE=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],zE);
_.A(zE,"ytd-sponsorship-confirm-cancel-content",function(){if(hQL!==void 0)return hQL;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return hQL=E},{mode:1});var sW7;var my=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");E.maybeSubmitFeedback=function(){E.content&&E.content.maybeSubmitFeedback()};
return E};
_.L(my,_.r);_.l=my.prototype;_.l.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.l.onYtPopupOpened=function(E,B){B===this&&this.data&&this.data.onOpenCommands&&_.cN(this.hostElement,this.data.onOpenCommands,this.hostElement);_.I2(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.l.onYtPopupClosed=function(E,B){(B&&B.canceled===!0||B&&B.canceled===!1&&B.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.cN(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestCompleted=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.l.onYtServiceRequestError=function(E){_.de(this.hostElement,E.detail.error.message)};
_.l.onDataChanged=function(){if(this.isAttached){var E=this.backgroundUrl;E&&(_.n(this.hostElement).querySelector("#header").style.backgroundImage=E)}};
_.Up.Object.defineProperties(my.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var E=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return E?"url("+_.Aa(E,this.hostElement.clientWidth)+")":""}}});
my.prototype.onDataChanged=my.prototype.onDataChanged;my.prototype.onYtServiceRequestError=my.prototype.onYtServiceRequestError;my.prototype.onYtServiceRequestCompleted=my.prototype.onYtServiceRequestCompleted;my.prototype.onYtPopupClosed=my.prototype.onYtPopupClosed;my.prototype.onYtPopupOpened=my.prototype.onYtPopupOpened;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],my.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],my.prototype,"data",void 0);_.k([_.X({value:function(){return _.yu("SBOX_INAPPROPRIATE_CANCEL")}}),
_.t("design:type",String)],my.prototype,"closeButtonAriaLabel",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],my.prototype,"darkerDarkTheme",void 0);_.k([_.$7("#scrollable"),_.t("design:type",Object)],my.prototype,"scrollable",void 0);_.k([_.$7("ytd-sponsorship-confirm-cancel-content"),_.t("design:type",Object)],my.prototype,"content",void 0);
_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],my.prototype,"onYtPopupOpened",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],my.prototype,"onYtPopupClosed",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],my.prototype,"onYtServiceRequestCompleted",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],my.prototype,"onYtServiceRequestError",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],my.prototype,"onDataChanged",null);
my=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],my);
_.A(my,"ytd-sponsorship-confirm-cancel-renderer",function(){if(sW7!==void 0)return sW7;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return sW7=E},{mode:_.qi("kevlar_poly_si_batch_j081")?1:2});var u9t;var Q2=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(Q2,_.r);Q2.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Q2.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Q2.prototype,"darkerDarkTheme",void 0);Q2=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Q2);
_.A(Q2,"ytd-sponsorships-celebration-content",function(){if(u9t!==void 0)return u9t;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return u9t=
E},{mode:1});var L6O;var xXg=_.km(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),d_=function(){var E=_.r.apply(this,arguments)||this;E.scriptsAppended=!1;E.buttonOverrides={type:"tonal",style:"overlay-dark"};return E};
_.L(d_,_.r);_.l=d_.prototype;
_.l.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:_.d("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onDataChanged=function(){var E;(E=this.header)==null||E.style.setProperty("background-color",this.backgroundColor);if(E=this.headerImageUrl){var B;(B=this.header)==null||B.style.setProperty("background-image",E)}B=_.nC(4);E=_.Oi(4);var I=this.get("data.trackingParams");if(I&&E&&B){var T=_.Yg(I);_.XD(B,E,T);_.d("combine_ve_grafts")?_.lu().graftServerVe(I,E,4):_.XD(B,E,T)}B=_.p(this.hostElement.querySelectorAll("yt-img-shadow"));for(E=B.next();!E.done;E=B.next())E.value.onShow();if(B=this.get("data.gtmId"))_.y5(B,
_.HA("GL","")),this.setupConversionTracking()};
_.l.setupConversionTracking=function(){if(!this.scriptsAppended){var E=document.createElement("script");var B=_.xM(xXg.join(""));_.Of(E,B);document.head.appendChild(E);E=document.createElement("noscript");E.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(E);this.scriptsAppended=!0}};
_.l.onPopupClosed=function(E){if(_.XN(E).localName==="ytd-sponsorships-celebration-renderer"){_.I2(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var B;this.data&&((B=this.data)==null?0:B.dismissCommand)&&_.BV.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Up.Object.defineProperties(d_.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var E=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.hR(E)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var E=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return E?"url("+_.Aa(E,this.hostElement.getBoundingClientRect().width)+")":""}}});
d_.prototype.onPopupClosed=d_.prototype.onPopupClosed;d_.prototype.onDataChanged=d_.prototype.onDataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],d_.prototype,"data",void 0);_.k([_.$7("#header"),_.t("design:type",HTMLElement)],d_.prototype,"header",void 0);
_.k([_.X(),_.t("design:type",Object)],d_.prototype,"scriptsAppended",void 0);_.k([_.X(),_.t("design:type",Object)],d_.prototype,"buttonOverrides",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],d_.prototype,"onDataChanged",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],d_.prototype,"onPopupClosed",null);
d_=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],d_);
_.A(d_,"ytd-sponsorships-celebration-renderer",function(){if(L6O!==void 0)return L6O;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return L6O=E},{mode:1});var GtI;var h8=function(){var E=_.r.apply(this,arguments)||this;E.isToggleChecked=!1;return E};
_.L(h8,_.r);h8.prototype.onDataChanged=function(){var E;this.isToggleChecked=((E=this.data)==null?void 0:E.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
h8.prototype.close=function(){var E;((E=this.data)==null?0:E.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
h8.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var E,B=_.h((E=this.data)==null?void 0:E.switchButton,yBd);B&&(this.isToggleChecked&&B.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(B.switchOnInnertubeCommand),!this.isToggleChecked&&B.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(B.switchOffInnertubeCommand))};
h8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
h8.prototype.onDataChanged=h8.prototype.onDataChanged;_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],h8.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],h8.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],h8.prototype,"isToggleChecked",void 0);_.k([_.X({value:_.yu("CLOSE")}),_.t("design:type",String)],h8.prototype,"closeButtonAriaLabel",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],h8.prototype,"onDataChanged",null);h8=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],h8);
_.A(h8,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(GtI!==void 0)return GtI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return GtI=E},{mode:1});var OmI;var sh=function(){return _.r.apply(this,arguments)||this};
_.L(sh,_.r);_.l=sh.prototype;_.l.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"}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.detached=function(){this.playerElement.stop()};
_.l.onYtServiceRequestCompleted=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.l.onYtServiceRequestError=function(E){_.de(this.hostElement,E.detail.error.message)};
_.l.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.l.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.l.getTier=function(E,B){return!E||!E.tiers||B<0?null:_.h(E.tiers[B],PUH)};
_.l.moreThanOne=function(E){return!!(E&&E.length>1)};
_.l.tierOverviewTap=function(E){var B=this;this.selectedTier=E.model.index;_.AJ(this,function(){_.$O(B.hostElement,"yt-refit")})};
_.l.computeSelectedClass=function(E,B){return this.isSelected(E,B)?"selected":""};
_.l.computeButtonAriaPressed=function(E,B){return this.isSelected(E,B)?"true":"false"};
_.l.isSelected=function(E,B){return E===B};
_.l.onDataChanged=function(){_.n(this.hostElement).querySelector("#header-overlay").style.visibility="";_.n(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 E=_.p(this.hostElement.querySelectorAll("yt-img-shadow")),
B=E.next();!B.done;B=E.next())B.value.onShow();var I;this.set("selectedTier",(I=this.get("data.targetTierIndex"))!=null?I:0);var T;(E=(T=this.data)==null?void 0:T.onVisible)&&this.ytComponentBehavior.resolveCommand(E)};
_.l.initializeVe=function(E){var B=_.nC(),I=_.Oi(),T=this.get("data.trackingParams");I&&B&&(this.screenLayer=4,B=_.JA(_.z34)(void 0,69877,{clientScreenNonce:B,visualElement:I},void 0,void 0,void 0),_.d0f(B,69877,4),I=_.Oi(4),T&&I&&(T=_.Yg(T),_.XD(B,I,T),E&&(this.offerVideoVe=_.wA(74659),_.XD(B,T,this.offerVideoVe))))};
_.l.setHeaderBackground=function(){var E=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.n(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.hR(E);if(E=this.getHeaderImage())E=_.Aa(E,screen.width),_.n(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+E+")"};
_.l.getHeaderImage=function(){var E=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&E?E:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.l.setupVideoPlayer=function(E){var B=this,I,T,e,c;return _.a(function(Y){if(Y.nextAddress==1)return I=B.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),T=B.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.d("kevlar_player_update_killswitch")?B.playerElement.update({args:{autoplay:I,video_id:E,player_params:T}}):B.playerElement.loadVideoWithPlayerVars({autoplay:I,video_id:E,player_params:T}),
_.C(Y,B.playerElement.getPlayerPromise(),2);e=Y.yieldResult;e.addEventListener("onStateChange",function(v){B.onPlayerStateChange(v)});
e.setScreenLayer(B.screenLayer);(c=_.nC(4))&&B.offerVideoVe&&_.rY(c,B.offerVideoVe);I&&(B.pauseOtherPlayers(),B.playerElement.focusOnPlayer(),B.playerElement.getPlayer().hideControls(),_.PC(_.Ll,function(){B.fadeOutHeaderOverlay()},4E3));
_.ER(Y)})};
_.l.onPlayerStateChange=function(E){E===1?this.backgroundPlayerElement&&(E=this.backgroundPlayerElement.player_.getPlayerState(),E!==1&&E!==3||this.backgroundPlayerElement.pause()):E===0&&(_.n(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.n(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.l.fadeOutHeaderOverlay=function(){_.n(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.l.onHeaderTap=function(){if(this.offerVideo){_.n(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var E;((E=this.playerElement.player_)==null?void 0:E.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(E=_.nC(4))&&this.offerVideoVe&&_.Al(E,this.offerVideoVe)}};
_.l.getBackgroundImageLayerClass=function(E){return E?"background-image-layer-with-video":""};
_.l.getHeaderClass=function(E){return E?"header-with-video":""};
_.l.getHeaderOverlayClass=function(E){return E?"header-overlay-with-video":""};
_.l.getTitleContainerClass=function(E,B){return E?"title-container-with-video":B?"title-container-without-video-flexible":"title-container-without-video"};
_.l.tierTitleDisplayStatus=function(E){return this.moreThanOne(E)?"hide":"show"};
_.l.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.Q().resolve(_.W3).getPlayerElement():this.backgroundPlayerElement=_.jx();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var E=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=E===1||E===3;this.backgroundPlayerElement.pause()}};
_.l.isMiniplayerActive=function(){return _.Q().resolve(_.W3).isMiniplayerActive()};
_.l.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("selected-tier-changed",this.selectedTier))};
sh.prototype.selectedTierChangedForBinding=sh.prototype.selectedTierChangedForBinding;sh.prototype.onDataChanged=sh.prototype.onDataChanged;sh.prototype.onYtPopupClosed=sh.prototype.onYtPopupClosed;sh.prototype.onYtPopupOpened=sh.prototype.onYtPopupOpened;sh.prototype.onYtServiceRequestError=sh.prototype.onYtServiceRequestError;sh.prototype.onYtServiceRequestCompleted=sh.prototype.onYtServiceRequestCompleted;
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],sh.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],sh.prototype,"data",void 0);_.k([_.X({value:0}),_.t("design:type",Number)],sh.prototype,"selectedTier",void 0);
_.k([_.X({value:""}),_.t("design:type",String)],sh.prototype,"offerVideo",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],sh.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.k([_.X({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.$l(this)}}),
_.t("design:type",String)],sh.prototype,"playerId",void 0);_.k([_.$7("tp-yt-paper-dialog-scrollable"),_.t("design:type",Object)],sh.prototype,"scrollable",void 0);_.k([_.$7("ytd-sponsorships-tier-renderer"),_.t("design:type",Object)],sh.prototype,"tierRenderer",void 0);_.k([_.$7("#player"),_.t("design:type",Object)],sh.prototype,"playerElement",void 0);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],sh.prototype,"onYtServiceRequestCompleted",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],sh.prototype,"onYtServiceRequestError",null);
_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sh.prototype,"onYtPopupOpened",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sh.prototype,"onYtPopupClosed",null);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sh.prototype,"onDataChanged",null);
_.k([_.EM("selectedTier"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],sh.prototype,"selectedTierChangedForBinding",null);sh=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],sh);
_.A(sh,"ytd-sponsorships-offer-renderer",function(){if(OmI!==void 0)return OmI;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return OmI=E},{mode:_.qi("kevlar_poly_si_batch_j077")?1:2});var nos;var uV=function(){var E=_.r.apply(this,arguments)||this;E.buttonOverrides={type:"filled",style:"mono"};return E};
_.L(uV,_.r);uV.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}}}}}};
uV.prototype.backgroundColorChanged=function(){var E,B,I,T=(B=_.h((E=this.data)==null?void 0:E.content,zkt))==null?void 0:(I=B.backgroundColor)==null?void 0:I.backgroundColor;T&&(E=_.dE(T),_.n(this.hostElement).querySelector("#banner").style.backgroundColor=E,_.n(this.hostElement).querySelector("#abstract-art").style.backgroundColor=E)};
uV.prototype.attached=function(){this.JSC$18278_scroller&&(this.JSC$18278_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18278_scroller.attached&&typeof this.JSC$18278_scroller.attached==="function"&&this.JSC$18278_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
uV.prototype.backgroundColorChanged=uV.prototype.backgroundColorChanged;_.k([_.X(),_.t("design:type",Object)],uV.prototype,"data",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);_.k([_.$7("#scroller"),_.t("design:type",Object)],uV.prototype,"JSC$18278_scroller",void 0);_.k([_.X(),_.t("design:type",Object)],uV.prototype,"buttonOverrides",void 0);
_.k([_.EM("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],uV.prototype,"backgroundColorChanged",null);uV=_.k([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],uV);
_.A(uV,"ytd-sponsorships-promotion-celebration-renderer",function(){if(nos!==void 0)return nos;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return nos=E},{mode:_.qi("kevlar_poly_si_batch_j077")?1:2});var MrI;var Hm2;var Ls=function(){return _.r.apply(this,arguments)||this};
_.L(Ls,_.r);Ls.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Ls.prototype.computeIsInitiallyChecked=function(E){return E===1};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Ls.prototype,"data",void 0);_.k([_.$7("#checkbox"),_.t("design:type",Object)],Ls.prototype,"checkbox",void 0);Ls=_.k([_.b({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Ls);
_.A(Ls,"ytd-subscription-toggle-option-renderer",function(){if(Hm2!==void 0)return Hm2;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Hm2=E},{mode:1});var xu=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");E.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return E};
_.L(xu,_.r);xu.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"}}}};
xu.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xu.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var E=_.n(this.hostElement).querySelector("#options").selected;E=this.data.options[E].subscriptionRadioOptionRenderer.serviceEndpoint;var B=_.n(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");B&&E&&E.modifyChannelNotificationPreferenceEndpoint&&(B=B.getValue())&&(E.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[B]);_.Q().resolve(_.Dt).resolveCommand(E,{form:{element:this.hostElement}});
_.I2(this.hostElement,"yt-close-popup-action")};
_.Up.Object.defineProperties(xu.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var E=this.data.options,B=0;B<E.length;B++){var I=E[B].subscriptionRadioOptionRenderer;if(I&&I.selected)return B}return null}}});
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],xu.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],xu.prototype,"eventForwardingBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],xu.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],xu.prototype,"darkerDarkTheme",void 0);_.k([_.S("data.options"),_.t("design:type",Object),_.t("design:paramtypes",[])],xu.prototype,"initialIndex",null);xu=_.k([_.b({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],xu);
_.A(xu,"ytd-subscription-notification-options-renderer",function(){if(MrI!==void 0)return MrI;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return MrI=E},{mode:1});var Nzs;var GE=function(){return _.r.apply(this,arguments)||this};
_.L(GE,_.r);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],GE.prototype,"data",void 0);GE=_.k([_.b({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],GE);
_.A(GE,"ytd-tvfilm-offer-groups-renderer",function(){if(Nzs!==void 0)return Nzs;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return Nzs=E},{mode:1});var go8;var Oh=function(){var E=_.r.apply(this,arguments)||this;E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(Oh,_.r);_.l=Oh.prototype;_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.l.computeThumbnailClass=function(E){return E.thumbnailOverlays?E.isShow?"thumbnail-show":"thumbnail-movie":E.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.l.computeCommerceSectionClass=function(E){return E.offers&&E.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.l.computeTitleClass=function(E){return E.offers&&E.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.l.onDataChanged=function(){[].concat(_.ad(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(E){E.onShow()})};
Oh.prototype.onDataChanged=Oh.prototype.onDataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Oh.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Oh.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],Oh.prototype,"darkerDarkTheme",void 0);
_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Oh.prototype,"onDataChanged",null);Oh=_.k([_.b({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Oh);
_.A(Oh,"ytd-ypc-offers-overlay-renderer",function(){if(go8!==void 0)return go8;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return go8=E},{mode:_.qi("kevlar_poly_si_batch_j028")?1:2});var SUg;var JNL=function(){this.usedMethods=new Set};
JNL.prototype.add=function(E){this.usedMethods.add(E)};
JNL.prototype.reset=function(){this.usedMethods.clear()};var rNL=function(E,B){this.query=E;this.previousSearchQuery=B;this.id=W6T++;if(!XH9){B=_.HA("SBOX_SETTINGS");E="https://"+((B==null?void 0:B.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var I=B==null?void 0:B.REQUEST_LANGUAGE;I&&(E+="&hl="+I);(I=B==null?void 0:B.REQUEST_DOMAIN)&&(E+="&gl="+I);E+="&client=youtube&gs_ri=youtube";(I=B==null?void 0:B.SUGG_EXP_ID)&&(E+="&sugexp="+encodeURIComponent(I));(I=B==null?void 0:B.PSUGGEST_TOKEN)&&(E+="&tok="+I);(B=
B==null?void 0:B.SESSION_INDEX)&&(E+="&authuser="+B);_.d("desktop_enable_visual_suggest")&&(E+="&h=180&w=320&ytvs=1");XH9=E}},bm8=function(E){var B="q="+encodeURIComponent(E.query);
E.previousSearchQuery&&(B+="&pq="+encodeURIComponent(E.previousSearchQuery));return B},ooL=function(){var E=_.HA("SBOX_SETTINGS"),B={};
if(E==null?0:E.SEND_VISITOR_DATA)B["X-Goog-Visitor-Id"]=E==null?void 0:E.VISITOR_DATA;return B},ANg=function(E){var B=XH9;
B+="&gs_id="+E.id.toString(36);B+="&q="+encodeURIComponent(E.query);B+="&cp="+E.query.length;E.previousSearchQuery&&(B+="&pq="+encodeURIComponent(E.previousSearchQuery));(E=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(B+="&video_id="+E);return B},W6T=0,XH9="";var jW2=_.SQ.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,UXm=_.SQ.SEARCH_ENTITY_SUGGESTION_MOVIE,ktt=_.SQ.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,trg=_.SQ.SEARCH_ENTITY_SUGGESTION_TV_SHOW,fb9=function(E,B){this.text=E;this.bold=B},Vr2=function(E,B,I){this.input=B;
this.index=I;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=E[0];this.type=E[1];this.subtypes=E[2];var T;this.displayText=kz((T=E[3])==null?void 0:T.b);var e;this.ignoredPrefix=kz((e=E[3])==null?void 0:e.a);var c,Y;this.hasNewVideo=((c=E[3])==null?void 0:(Y=c.zam)==null?void 0:Y.toString())==="true"?!0:!1;var v;this.visualSuggestUrl=(v=E[3])==null?void 0:v.zai;var y;this.entityType=kz((y=E[3])==null?void 0:y.zap);var Z;this.entityName=kz((Z=E[3])==null?void 0:Z.zao);var P;B=kz((P=
E[3])==null?void 0:P.zaf);P=W_g(this.subtypes);if(B&&P){if(B){I="";switch(P){case "YOUTUBE_ENTITY_TYPE_SONG":I=ktt;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":I=jW2;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":I=trg;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":I=UXm}P=P==="YOUTUBE_ENTITY_TYPE_SONG"||P==="YOUTUBE_ENTITY_TYPE_ALBUM"?I+" \u2022  \u2022 "+B:B}else P="";this.entitySubtitle=P}var z;this.entityMid=(z=E[3])==null?void 0:z.zae;var m;this.externalChannelId=(m=E[3])==null?void 0:m.zav},qUL=function(E){var B=
[],I,T=(I=E.displayText)!=null?I:E.text;
if(E.type===33)return B.push(new fb9(T,!1)),B;if(T.length>=E.input.length&&T.substring(0,E.input.length)===E.input)B.push(new fb9(E.input,!1)),B.push(new fb9(T.substring(E.input.length),!0));else{var e=new Set(E.input.split(/\s/)),c=T.split(/\s/);B=c.map(function(Y,v){return new fb9(Y.trim()+(v===c.length-1?"":" "),!e.has(Y))})}return B},F68=function(E){return!!W_g(E.subtypes)};var DXI=function(E){this.rawResponse=["",[],{}];this.suggestions=[];try{var B=JSON.parse(XPH(E));if(typeof B==="object"&&B!==null)this.rawResponse=B;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(T){console.log("Suggest: Failed to parse SuggestResponse!");return}var I=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(T,e){return new Vr2(T,I,e)})};var K68=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new JNL;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18314_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},RQt,Ew7=function(){RQt||(RQt=new K68);
return RQt};
K68.prototype.updateSuggestions=function(E){var B=this;this.availableSuggestions.forEach(function(I){B.previousSuggestions[I]=!0});
this.availableSuggestions=E.map(function(I){var T=I.type.toString();I.subtypes.length>0&&(T+="i"+I.subtypes.join("i"),T+="k"+I.suggestionSources.COMPLETE_SERVER.toString());return T})};
var BP2=function(E,B){var I=Date.now();E.firstEditTime<0&&(E.firstEditTime=I);B&&(E.lastQueryBuildTime=I);E.lastEditTime=I};
K68.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18314_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var $AT=function(E){var B="";E.availableSuggestions.forEach(function(e){delete E.previousSuggestions[e]});
for(var I=_.p(Object.keys(E.previousSuggestions)),T=I.next();!T.done;T=I.next())T=T.value,E.previousSuggestions[T]&&(B+=(B?"j":"")+T);return B},IPI=function(E,B){var I=[];
B&&(I[1]=B.toString());I[0]="youtube";I[7]=Date.now()-E.startTime;I[6]=E.sessionNumber;E.zeroPrefixSuggestionCount>=0&&(I[33]=E.zeroPrefixSuggestionCount);I[13]=E.outOfSyncResponseCount;if(E.availableSuggestions.length>0){for(var T=B="",e=0,c=_.p(E.availableSuggestions),Y=c.next();!Y.done;Y=c.next())Y=Y.value,Y!==T&&(e>1&&(B+="l"+e),B+=(T?"j":"")+Y,e=0,T=Y),e+=1;e>1&&(B+="l"+e);I[3]=B}I[35]=$AT(E);E.selectedSuggestionIndex>=0&&(I[2]=E.selectedSuggestionIndex);var v;if(B=(v=_.HA("SBOX_SETTINGS"))==
null?void 0:v.SUGG_EXP_ID)I[19]=E.normalize(B),v=0,E.experimentTriggeredBeforeFinal&&(v|=1),E.experimentTriggeredFinal&&(v|=2),I[20]=v;I[26]=Array.from(E.inputMethodsTracker.usedMethods).join("j");if(E.JSC$18314_totalRoundTripTime>0){I[15]=E.JSC$18314_totalRoundTripTime;I[14]=E.maxRoundTripTime;v=[];for(e=B=0;e<10;e++)T=E.roundTripTimeHistogram[e],T===0?B++:(B>1?v.push(e+"-"+T):B===1?v.push("0j"+T):v.push(T.toString()),B=0);v=v.join("j");I[16]=v}E.zeroPrefixRoundTripTime>0&&(I[36]=E.zeroPrefixRoundTripTime);
E.lastQueryBuildTime>0&&(I[18]=E.lastQueryBuildTime-E.startTime);E.firstEditTime>0&&(I[4]=E.firstEditTime-E.startTime);E.lastEditTime>0&&(I[5]=E.lastEditTime-E.startTime);return I.join(".")};
K68.prototype.normalize=function(E){return E.replaceAll(".","-")};
var TPt=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var ns=function(){var E=_.r.apply(this,arguments)||this;E.microphoneSpinnerActive=!1;E.noAnimations=!1;E.boundExitClick=function(){E.onExitButtonClick()};
E.speechOverlayClassName="";E.isLevelAnimating=!1;E.playCloseDialogAudioFeedback=!0;E.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return E};
_.L(ns,_.r);_.l=ns.prototype;_.l.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.l.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=jvO()};
_.l.dataChanged=function(){this.logDialog()};
_.l.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var E;(E=this.manager.audioPlayer)!=null&&(E.JSC$17603_audioEnabled=!1)}this.manager.stop();(E=this.manager.audioPlayer)!=null&&(E.JSC$17603_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.l.handleSpeechQueryCompleteAction=function(E){var B=E.navigationAction;B&&(E.trackingParams&&_.lu().graftServerVe(E.trackingParams,this.dialogVe,5),_.$O(this.hostElement,"yt-navigate",{endpoint:B,tempData:this.getNavigationParams(B),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.l.onExitButtonClick=function(){this.closeDialog()};
_.l.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var E;if((E=this.manager)!=null){var B;(B=E.audioPlayer)==null||nA(B,"failure");E.setState("microphone-off");E.stop()}}else(E=this.manager)==null||E.start()};
_.l.transcriptionChanged=function(){var E,B;(((E=this.transcription)==null?0:E.low)||((B=this.transcription)==null?0:B.high))&&this.setState("transcribing",this.transcription)};
_.l.stateChanged=function(){this.setState(this.state,this.transcription)};
_.l.logDialog=function(){var E;(E=this.data)!=null&&E.trackingParams&&(E=_.lu(),_.I5(E,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=E.graftServerVe(this.data.trackingParams,void 0,5))};
_.l.getNavigationParams=function(E){var B={};if(_.d("web_yt_searchbox")){var I=Ew7();I.inputMethodsTracker.add(6);I=IPI(I,15);B.gs_l=I;var T;B.oq=((T=_.h(E,_.YG))==null?void 0:T.query)||""}else if(E=window.ytvoicesearchloggingparams){if(E=E())B.oq=E.oq,B.gs_l=E.gs_l}else _.Xx(Error("ll"));return B};
_.l.closeDialog=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.l.setState=function(E,B){if(this.data){var I=this.data,T={};switch(E){case "listening":T={headerText:I.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "timeout":T={headerText:I.promptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,microphoneAriaLabel:I.promptMicrophoneLabel};break;case "microphone-off":T={headerText:I.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,
microphoneAriaLabel:I.promptMicrophoneLabel};break;case "transcribing":(B==null?0:B.low)||(B==null?0:B.high)?T={transcriptionLow:B==null?void 0:B.low,transcriptionHigh:B==null?void 0:B.high,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel}:T={headerText:I.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "processing":T={headerText:I.loadingHeader,microphoneState:"processing",microphoneAriaLabel:I.microphoneButtonAriaLabel};
break;case "offline":T={headerText:I.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:I.connectionErrorMicrophoneLabel,microphoneAriaLabel:I.connectionErrorMicrophoneLabel};break;case "permission":T={headerText:I.permissionsHeader,bodyLine1:I.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:I.permissionsSubtext};break;case "permission-denied":T={headerText:I.disabledHeader,bodyLine1:I.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:I.disabledSubtext}}T.className=
E;this.speechOverlayState=T;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.l.setMicrophoneState=function(E){var B=this.isLevelAnimating;this.isLevelAnimating=E==="speaking";!B&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=E==="processing"&&!this.noAnimations};
_.l.setClass=function(E){this.speechOverlayClassName&&_.VQ(this.hostElement,this.speechOverlayClassName,!1);E&&(this.speechOverlayClassName=E,_.VQ(this.hostElement,E,!0))};
_.l.runLevelAnimation=function(){var E=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var B=1+Math.random()*.75,I=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+I/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+B+")");_.Ll.addJob(function(){E.runLevelAnimation()},3,I)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
ns.prototype.stateChanged=ns.prototype.stateChanged;ns.prototype.transcriptionChanged=ns.prototype.transcriptionChanged;ns.prototype.onPopupClosed=ns.prototype.onPopupClosed;ns.prototype.dataChanged=ns.prototype.dataChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],ns.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],ns.prototype,"rendererStamperBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],ns.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],ns.prototype,"eventForwardingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],ns.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],ns.prototype,"speechOverlayState",void 0);
_.k([_.X(),_.t("design:type",Object)],ns.prototype,"microphoneSpinnerActive",void 0);_.k([_.X({type:_.d("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.t("design:type",Object)],ns.prototype,"noAnimations",void 0);_.k([_.X({selector:function(E){var B;return(B=E.voiceSearch)==null?void 0:B.transcription}}),
_.t("design:type",Object)],ns.prototype,"transcription",void 0);_.k([_.X({selector:function(E){var B;return(B=E.voiceSearch)==null?void 0:B.overlay}}),
_.t("design:type",String)],ns.prototype,"state",void 0);_.k([_.X(),_.t("design:type",Object)],ns.prototype,"boundExitClick",void 0);_.k([_.$7("#microphone-levels"),_.t("design:type",HTMLElement)],ns.prototype,"level",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ns.prototype,"dataChanged",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ns.prototype,"onPopupClosed",null);
_.k([_.i6("transcription"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ns.prototype,"transcriptionChanged",null);_.k([_.i6("state"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],ns.prototype,"stateChanged",null);ns=_.k([_.b({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],ns);
_.A(ns,"ytd-voice-search-dialog-renderer",function(){if(SUg!==void 0)return SUg;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return SUg=E},{mode:1});var e6I;var Mp=function(){var E=_.r.apply(this,arguments)||this;E.isOverlay=!1;E.hidden=!1;return E};
_.L(Mp,_.r);_.l=Mp.prototype;_.l.onPopupClosed=function(){this.toggleIconState(!1)};
_.l.computeIcon=function(){var E,B,I;return(B=_.h((E=this.data)==null?void 0:E.icon,spt))==null?void 0:(I=B.icon)==null?void 0:I.iconType};
_.l.computeIconBadgeShape=function(){var E;return{iconBadgeType:"cart",iconBadgeText:(E=this.iconBadgeEntity)==null?void 0:E.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.l.onClick=function(){var E;(E=this.data)!=null&&E.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.l.computeHidden=function(E){return!E};
_.l.toggleIconState=function(E){this.iconButton&&(this.iconButton.pressed=E)};
Mp.prototype.onPopupClosed=Mp.prototype.onPopupClosed;_.k([_.g(_.Lz),_.t("design:type",Object)],Mp.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Mp.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Mp.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],Mp.prototype,"isOverlay",void 0);
_.k([_.X({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.t("design:type",Object)],Mp.prototype,"hidden",void 0);_.k([_.X({selectorArgs:["data.iconBadgeEntityKey"],selector:function(E,B){return _.cP(E.entities,"iconBadgeEntity",B)}}),
_.t("design:type",Object)],Mp.prototype,"iconBadgeEntity",void 0);_.k([_.$7("yt-icon-button"),_.t("design:type",HTMLButtonElement)],Mp.prototype,"iconButton",void 0);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Mp.prototype,"onPopupClosed",null);Mp=_.k([_.b({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Mp);
_.A(Mp,"ytd-icon-badge-topbar-button-renderer",function(){if(e6I!==void 0)return e6I;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return e6I=E},{mode:1});var lPg;var HY=function(){var E=_.r.apply(this,arguments)||this;E.premiumOptions=[];E.darkerDarkTheme=_.d("web_darker_dark_theme");return E};
_.L(HY,_.r);HY.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Up.Object.defineProperties(HY.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],HY.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],HY.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Array)],HY.prototype,"premiumOptions",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],HY.prototype,"darkerDarkTheme",void 0);_.k([_.S("premiumOptions"),_.t("design:type",Object),_.t("design:paramtypes",[])],HY.prototype,"hasPremiumOptions",null);
HY=_.k([_.b({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],HY);
_.A(HY,"ytd-offline-promo-content",function(){if(lPg!==void 0)return lPg;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return lPg=E},{mode:1});var cuL;var Np=function(){var E=_.r.apply(this,arguments)||this;E.premiumOptions=[];return E};
_.L(Np,_.r);Np.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var E;this.premiumOptions=J29((E=this.data)==null?void 0:E.formats)};
Np.prototype.onClickSubmit=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var E;(E=_.jx())==null||E.pause()};
Np.prototype.attached=function(){this.JSC$18334_scroller&&(this.JSC$18334_scroller.dialogElement=this.hostElement.parentNode)};
_.Up.Object.defineProperties(Np.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Np.prototype.dataChanged=Np.prototype.dataChanged;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Np.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Np.prototype,"data",void 0);
_.k([_.X({computed:"computeIcon_(data.headersIcon)",value:""}),_.t("design:type",String)],Np.prototype,"headersIcon",void 0);_.k([_.X(),_.t("design:type",Array)],Np.prototype,"premiumOptions",void 0);_.k([_.$7("#scroller"),_.t("design:type",Object)],Np.prototype,"JSC$18334_scroller",void 0);_.k([_.S("headersIcon"),_.t("design:type",Object),_.t("design:paramtypes",[])],Np.prototype,"showIcon",null);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Np.prototype,"dataChanged",null);Np=_.k([_.b({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Np);
_.A(Np,"ytd-offline-promo-renderer",function(){if(cuL!==void 0)return cuL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return cuL=E},{mode:1});var iD2;var g_=function(){var E=_.r.apply(this,arguments)||this;E.playbackPauseInterval=NaN;E.isLoading=!1;E.hasError=!1;E.dialogClass="";E.youtubeLabel=_.yu("LOGO_ALT_LABEL",{},"YouTube Home");E.logoName="yt-logos-ext:yt-logo-updated";E.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return E};
_.L(g_,_.r);_.l=g_.prototype;_.l.onDataChange=function(){var E;if(this.showEOMV1Text=!((E=this.data)==null||!E.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.l.attached=function(){this.pausePlayer()};
_.l.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.l.handleLangSelect=function(E){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[E.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.l.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.l.handleSaveConsent=function(E){var B=this;this.showLoadingSpinner();this.showLoadingSpinner();QxO(_.h(E,uyI)).catch(function(I){_.OG(new _.P7("Something went wrong when save consent "+(I.message?I.message:I)+"."));B.hideLoadingSpinner();B.showErrorMessage()})};
_.l.handleDisablePersonalization=function(E){var B=this;this.showLoadingSpinner();d3d(_.h(E,sA1)).then(function(){B.dialog.close();B.resumePlayer()}).catch(function(I){_.OG(new _.P7("Something went wrong when disable personalization "+(I.message?I.message:I)+"."));
B.hideLoadingSpinner();B.showErrorMessage()})};
_.l.showLoadingSpinner=function(){var E=this;this.showSpinnerJobId=_.Ll.addLowPriorityJob(function(){E.isLoading=!0},500)};
_.l.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Ll.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.l.showErrorMessage=function(){var E=this;this.hasError=!0;_.Ll.addLowPriorityJob(function(){E.hasError=!1},2E3)};
_.l.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.eg(function(){try{var E=_.jx();E&&E.pause()}catch(B){}},100))};
_.l.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var E=_.jx();E&&E.play()}catch(B){}};
_.Up.Object.defineProperties(g_.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)==null||!E.eomV1Text)return[];E=[];for(var B=["SHIELD","WARNING","BAR_CHART"],I=this.data.eomV1Text.essentialCookieMsg.items,T=0;T<B.length&&T<I.length;T++)E.push({icon:B[T],text:I[T]});return E}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var E;if((E=this.data)==null||!E.eomV1Text)return[];E=[];for(var B=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],I=this.data.eomV1Text.nonEssentialCookieMsg.items,T=0;T<B.length&&T<I.length;T++)E.push({icon:B[T],text:I[T]});return E}}});
g_.prototype.onDataChange=g_.prototype.onDataChange;_.k([_.X(),_.t("design:type",Object)],g_.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],g_.prototype,"showEOMV1Text",void 0);_.k([_.X(),_.t("design:type",Object)],g_.prototype,"isLoading",void 0);_.k([_.X(),_.t("design:type",Object)],g_.prototype,"hasError",void 0);_.k([_.X(),_.t("design:type",Number)],g_.prototype,"showSpinnerJobId",void 0);_.k([_.X(),_.t("design:type",Object)],g_.prototype,"dialogClass",void 0);
_.k([_.$7("#dialog"),_.t("design:type",Object)],g_.prototype,"dialog",void 0);_.k([_.$7("#cb-header"),_.t("design:type",HTMLElement)],g_.prototype,"header",void 0);_.k([_.$7("#lang-select"),_.t("design:type",HTMLElement)],g_.prototype,"langSelect",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],g_.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],g_.prototype,"ytComponentBehavior",void 0);
_.k([_.X(),_.t("design:type",String)],g_.prototype,"youtubeLabel",void 0);_.k([_.X(),_.t("design:type",Object)],g_.prototype,"logoName",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],g_.prototype,"onDataChange",null);_.k([_.S("data"),_.t("design:type",Array),_.t("design:paramtypes",[])],g_.prototype,"eomEssentialCookieMsgItems",null);
_.k([_.S("data"),_.t("design:type",Array),_.t("design:paramtypes",[])],g_.prototype,"eomNonEssentialCookieMsgItems",null);g_=_.k([_.b({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],g_);
_.A(g_,"ytd-consent-bump-v2-lightbox",function(){if(iD2!==void 0)return iD2;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return iD2=E},{mode:1});var pbO;var SA=function(){return _.r.apply(this,arguments)||this};
_.L(SA,_.r);SA.prototype.ready=function(){if(!_.CF()||Wa9)var E=!0;else Wa9=!0,E=!1;E||(E=document.querySelector("ytd-app"),E||(E=document.body),this.internalLightBox=_.n(E).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.k([_.X(),_.t("design:type",Object)],SA.prototype,"data",void 0);_.k([_.$7("#lightbox"),_.t("design:type",Object)],SA.prototype,"lightBox",void 0);SA=_.k([_.b({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],SA);
_.A(SA,"ytd-consent-bump-v2-renderer",function(){if(pbO!==void 0)return pbO;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return pbO=E},{mode:1});var Y5m;var aPH;var vwO;var J8=function(){var E=_.r.apply(this,arguments)||this;E.ephemeralActionsEnabled=_.d("web_ephemeral_actions");return E};
_.L(J8,_.r);_.l=J8.prototype;_.l.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&E3T(this.toastManager,this.toastType)};
_.l.open=function(E){this.toast&&(this.ephemeralAction&&_.Q().resolve(_.BJ).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=E!=null?E:0,this.toastManager.enqueue(this.toast,E)):this.toast.open())};
_.l.close=function(E){var B;(B=this.toast)==null||B.close();this.toastManager&&E===1&&E3T(this.toastManager,E)};
_.l.refit=function(){var E;(E=this.toast)==null||E.refit()};
_.l.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var E;(E=this.toast)==null||E.close()}};
_.l.setVerticalOffset=function(E){this.toast&&(this.toast.verticalOffset=E,this.toast.fit())};
_.l.computeButtonClass_=function(E){return E?"toast-button":""};
_.l.computeText_=function(E){return _.U3(E)};
_.l.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.HF("toast-opened-changed",this.toastOpened))};
_.l.updateToastOpenedFromBinding=function(E){this.toastOpened=E.detail.value};
_.Up.Object.defineProperties(J8.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var E,B,I=(E=this.data)==null?void 0:(B=E.actionButton)==null?void 0:B.buttonRenderer;return(I==null?void 0:I.command)||(I==null?void 0:I.serviceEndpoint)||(I==null?void 0:I.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var E=[],B;((B=this.data)==null?0:B.responseText)&&E.push(_.U3(this.data.responseText));var I;((I=this.data)==null?0:I.subText)&&E.push(_.U3(this.data.subText));var T,e;if((T=this.data)==null?0:(e=T.actionButton)==null?0:e.buttonRenderer){var c,Y;E.push(((c=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(Y=c.accessibilityData)==null?void 0:Y.label)||_.U3(this.data.actionButton.buttonRenderer.text))}return E.filter(function(v){return v}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var E,B;return(B=(E=this.toast)==null?void 0:E.opened)!=null?B:!1}}});
J8.prototype.toastOpenedChangedForBinding=J8.prototype.toastOpenedChangedForBinding;J8.prototype.toastOpenedChanged=J8.prototype.toastOpenedChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],J8.prototype,"ytEventForwardingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],J8.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],J8.prototype,"duration",void 0);
_.k([_.X(),_.t("design:type",Number)],J8.prototype,"toastType",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],J8.prototype,"useCloseButton",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],J8.prototype,"closeToastOnActionButtonClick",void 0);_.k([_.X({value:function(){return _.yu("SBOX_INAPPROPRIATE_CANCEL")}}),
_.t("design:type",String)],J8.prototype,"closeButtonAriaLabel",void 0);_.k([_.X(),_.t("design:type",Boolean)],J8.prototype,"toastOpened",void 0);_.k([_.X(),_.t("design:type",Boolean)],J8.prototype,"hasOpened",void 0);_.k([_.X(),_.t("design:type",Object)],J8.prototype,"ephemeralActionsEnabled",void 0);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],J8.prototype,"command",null);
_.k([_.S("ephemeralActionsEnabled","labelText","command","duration"),_.t("design:type",Object),_.t("design:paramtypes",[])],J8.prototype,"ephemeralAction",null);_.k([_.S("ephemeralAction"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],J8.prototype,"hasEphemeralAction",null);_.k([_.$7("#toast"),_.t("design:type",Object)],J8.prototype,"toast",void 0);_.k([_.X({value:function(){return{style:"call-to-action-inverse"}}}),
_.t("design:type",Object)],J8.prototype,"buttonOverrides",void 0);_.k([_.X({value:{style:"mono-inverse"}}),_.t("design:type",Object)],J8.prototype,"closeButtonOverrides",void 0);_.k([_.X({value:function(){return _.Q().resolve(_.Fx(_.PDI))}}),
_.t("design:type",Object)],J8.prototype,"toastManager",void 0);_.k([_.S("data.responseText","data.subText","data.actionButton"),_.t("design:type",Object),_.t("design:paramtypes",[])],J8.prototype,"labelText",null);_.k([_.EM("toastOpened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J8.prototype,"toastOpenedChanged",null);
_.k([_.EM("toastOpened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J8.prototype,"toastOpenedChangedForBinding",null);J8=_.k([_.QE({is:"yt-notification-action-renderer",disableElementRegistration:!0})],J8);
_.A(J8,"yt-notification-action-renderer",function(){if(vwO===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;aPH===void 0&&(aPH=document.createElement("template"));var T=aPH;I.call(B,T.content.cloneNode(!0),E.content.firstChild);vwO=E}E=vwO;return E},{mode:2});var WY=function(){var E=_.r.apply(this,arguments)||this;E.duration=4E3;E.downloadingCount=0;E.downloadedCount=0;E.downloadingOnlySmartDownloads=!1;E.sessionTotalDownloads=0;E.sessionDownloaded=0;E.previousSessionsDownloaded=0;E.totalDownloadPercentage=0;E.currentDownloadProgress=0;E.currentDownloadPercentage=0;E.isLeaderTab=!0;E.isFullScreen=!1;E.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};E.boundBeforeUnload=function(B){E.isLeaderTab&&E.downloadingCount>0&&(B.preventDefault(),
B.returnValue=!0)};
return E};
_.L(WY,_.r);_.l=WY.prototype;
_.l.open=function(){this.updateDownloadState();if(this.data){var E=this.sessionDownloaded+1,B=this.sessionTotalDownloads>1?_.yu("VIDEOS_DOWNLOADING_RATIO",{downloaded:E.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+E+"/"+this.sessionTotalDownloads):_.yu("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(B=this.sessionTotalDownloads>1?_.yu("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:E.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
E+"/"+this.sessionTotalDownloads):_.yu("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));E=this.isLeaderTab?_.yu("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.U3(this.data.responseText)!==B||_.U3(this.data.subText)!==E)this.set("data.responseText",_.jj(B)),this.set("data.subText",_.jj(E)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.l.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.l.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.l.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.l.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var E=this.downloadedCount-this.previousSessionsDownloaded;E<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-E);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.l.handleFullscreenChange=function(E){(this.isFullScreen=E)||this.updatePopup()};
WY.prototype.updateCurrentDownloadProgress=WY.prototype.updateCurrentDownloadProgress;WY.prototype.updatePopup=WY.prototype.updatePopup;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],WY.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],WY.prototype,"ytEventForwardingBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],WY.prototype,"actionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],WY.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],WY.prototype,"duration",void 0);_.k([_.X({selector:function(E){return _.KAG(E.entities).length}}),
_.t("design:type",Object)],WY.prototype,"downloadingCount",void 0);_.k([_.X({selector:Mn8}),_.t("design:type",Object)],WY.prototype,"downloadedCount",void 0);_.k([_.X({selector:function(E){var B=_.KAG(E.entities);return nvI(E.entities,B)}}),
_.t("design:type",Object)],WY.prototype,"downloadingOnlySmartDownloads",void 0);_.k([_.X(),_.t("design:type",Object)],WY.prototype,"sessionTotalDownloads",void 0);_.k([_.X(),_.t("design:type",Object)],WY.prototype,"sessionDownloaded",void 0);_.k([_.X(),_.t("design:type",Object)],WY.prototype,"previousSessionsDownloaded",void 0);_.k([_.X(),_.t("design:type",Object)],WY.prototype,"totalDownloadPercentage",void 0);
_.k([_.X({selector:function(E){var B;E=(B=_.KAG(E.entities))!=null?B:[];return E.length>0?_.obc(E.slice(-1)):0}}),
_.t("design:type",Object)],WY.prototype,"currentDownloadProgress",void 0);_.k([_.X(),_.t("design:type",Object)],WY.prototype,"currentDownloadPercentage",void 0);_.k([_.X({selector:_.N8G}),_.t("design:type",Object)],WY.prototype,"isLeaderTab",void 0);_.k([_.$7("yt-notification-action-renderer"),_.t("design:type",Object)],WY.prototype,"notificationActionRenderer",void 0);
_.k([_.i6("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],WY.prototype,"updatePopup",null);_.k([_.i6("currentDownloadProgress"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],WY.prototype,"updateCurrentDownloadProgress",null);WY=_.k([_.b({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],WY);
_.A(WY,"ytd-video-download-toast-renderer",function(){if(Y5m!==void 0)return Y5m;var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Y5m=E},{mode:1});var yuH;var CNL;var Xr=function(){return _.r.apply(this,arguments)||this};
_.L(Xr,_.r);Xr.prototype.computeIsRedLogo=function(E,B){!E&&B&&(E=B);return E==="YOUTUBE_RED_LOGO"||E==="YOUTUBE_PREMIUM_LOGO"};
Xr.prototype.computeLogoName=function(E){E=this.componentBehavior.computeIcon_(E);return E===""?"yt-logos-ext:yt-logo-updated":E};
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Xr.prototype,"componentBehavior",void 0);_.k([_.X({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.t("design:type",Boolean)],Xr.prototype,"isRedLogo",void 0);_.k([_.X({computed:"computeLogoName(data)"}),_.t("design:type",String)],Xr.prototype,"logoName",void 0);_.k([_.X({value:{}}),_.t("design:type",Object)],Xr.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],Xr.prototype,"logoType",void 0);Xr=_.k([_.b({disableElementRegistration:!0,is:"ytd-logo"})],Xr);
_.A(Xr,"ytd-logo",function(){if(CNL!==void 0)return CNL;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return CNL=E},{mode:_.qi("kevlar_poly_si_batch_j074")?1:2});var r_=function(){var E=_.r.apply(this,arguments)||this;E.animationRef={};return E};
_.L(r_,_.r);_.l=r_.prototype;_.l.attached=function(){document.addEventListener("yt-navigate-finish",_.Kq(this,this.logYoodle))};
_.l.detached=function(){document.removeEventListener("yt-navigate-finish",_.Kq(this,this.logYoodle))};
_.l.logYoodle=function(){var E,B;if((E=this.data)==null?0:(B=E.loggingDirectives)==null?0:B.trackingParams)this.ytRendererBehavior.markDirty(),_.lu().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.l.computeHideImg=function(E,B){return!!E||!!B};
_.l.computeHideYtdLogo=function(E,B){return!E||!!B};
_.l.computeHideLottie=function(E){return!E};
_.l.computeIsRedLogo=function(E){return E==="YOUTUBE_RED_LOGO"||E==="YOUTUBE_PREMIUM_LOGO"};
_.l.renderLogoEntity=function(){var E=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),B=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),I=this.getLogoTitleText(this.data),T=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==E&&(this.url=E);this.animatedUrl!==B&&(this.animatedUrl=B);this.logoTitleText!==I&&(this.logoTitleText=I);this.lottieUrl!==T&&(this.lottieUrl=T,this.lottiePlayerProps=this.computeLottiePlayerProps(T))};
_.l.getSanitizedThumbnail=function(E){return E&&E.thumbnails?_.prd(E.thumbnails,122)||"":""};
_.l.getThumbnailUrl=function(E,B){if(!B)return"";var I,T;E=E?(I=B.darkThemeLogo)==null?void 0:I.thumbnail:(T=B.lightThemeLogo)==null?void 0:T.thumbnail;return this.getSanitizedThumbnail(E)};
_.l.getAnimatedThumbnailUrl=function(E,B){return B?this.getSanitizedThumbnail(E?B.darkThemeAnimatedLogo:B.lightThemeAnimatedLogo):""};
_.l.getLogoTitleText=function(E){if(E)return _.U3(E.tooltipText)};
_.l.computeLogoIcon=function(E,B){if(B){var I,T;return E?(I=B.darkThemeLogo)==null?void 0:I.icon:(T=B.lightThemeLogo)==null?void 0:T.icon}};
_.l.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.l.getLottieUrl=function(E,B){var I,T,e,c;return E?B==null?void 0:(I=B.darkThemeLogo)==null?void 0:(T=I.lottieAnimation)==null?void 0:T.url:B==null?void 0:(e=B.lightThemeLogo)==null?void 0:(c=e.lottieAnimation)==null?void 0:c.url};
_.l.computeLottiePlayerProps=function(E){if(E){var B;if((B=this.animationRef)==null?0:B.lottieEl){var I;(I=this.animationRef)==null||I.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:E,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.l.onLottieError=function(){this.data&&this.lottieUrl&&_.$O(this.hostElement,"yoodle-error")};
_.l.onImgError=function(){this.data&&!this.lottieUrl&&_.$O(this.hostElement,"yoodle-error")};
r_.prototype.playAnimation=r_.prototype.playAnimation;r_.prototype.renderLogoEntity=r_.prototype.renderLogoEntity;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],r_.prototype,"data",void 0);_.k([_.X({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.t("design:type",Boolean)],r_.prototype,"hideImg",void 0);
_.k([_.X({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.t("design:type",Boolean)],r_.prototype,"hideYtdLogo",void 0);_.k([_.X({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.t("design:type",Boolean)],r_.prototype,"hideLottie",void 0);_.k([_.X({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.t("design:type",Boolean)],r_.prototype,"isRedLogo",void 0);
_.k([_.X(),_.t("design:type",Boolean)],r_.prototype,"useDarkThemeYoodle",void 0);_.k([_.X(),_.t("design:type",String)],r_.prototype,"url",void 0);_.k([_.X(),_.t("design:type",String)],r_.prototype,"animatedUrl",void 0);_.k([_.X(),_.t("design:type",String)],r_.prototype,"logoTitleText",void 0);_.k([_.X({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.t("design:type",Object)],r_.prototype,"logoIcon",void 0);_.k([_.X(),_.t("design:type",Object)],r_.prototype,"logoType",void 0);
_.k([_.X(),_.t("design:type",String)],r_.prototype,"lottieUrl",void 0);_.k([_.X(),_.t("design:type",Object)],r_.prototype,"lottiePlayerProps",void 0);_.k([_.X(),_.t("design:type",Object)],r_.prototype,"animationRef",void 0);_.k([_.EM("data"),_.EM("useDarkThemeYoodle"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],r_.prototype,"renderLogoEntity",null);
_.k([_.RN("click"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],r_.prototype,"playAnimation",null);r_=_.k([_.b({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],r_);
_.A(r_,"ytd-yoodle-renderer",function(){if(yuH!==void 0)return yuH;var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return yuH=E},{mode:_.qi("kevlar_poly_si_batch_j074")?1:2});var wb2;var ZDO;var bV=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return E};
_.L(bV,_.r);_.l=bV.prototype;_.l.onYoodleError=function(){_.d("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.l.computeLogoName=function(E){E=this.componentBehavior.computeIcon_(E);return E===""?"yt-logos-ext:yt-logo-updated":E};
_.l.computeTitle=function(E,B,I){return I&&(B==null?0:B.tooltipText)?_.U3(B.tooltipText):_.U3(E)};
_.l.computeAriaLabel=function(E,B,I){return I&&(B==null?0:B.tooltipText)?_.U3(E):""};
_.l.computeShowYoodle=function(E,B,I){return!E||!B&&!!I&&!_.a_.isEmpty(I)};
_.l.onNavigateHomeAction=function(){if(_.d("kevlar_miniplayer_navigate_home_from_app_killswitch")){var E;(E=_.n(this.hostElement).querySelector(".yt-simple-endpoint"))==null||E.click()}};
_.l.computeLogoHref=function(E,B,I){var T;(I==null?0:I.onTapCommand)?T=this.componentBehavior.computeHref_(I.onTapCommand):E&&(T=this.componentBehavior.computeHref_(E));return T?T:B};
_.l.computeCommand=function(E,B){return(B==null?void 0:B.onTapCommand)||E};
_.l.getEndpointForm=function(){if(_.d("kevlar_topbar_disable_cache_only_home")){var E=_.Q().resolve(_.sy),B=WF2(E.getState())||"";E=_.nzf(E.getState())||"";return{disableCache:B==="ytd-browse"&&E==="home"}}return{disableCache:!0}};
bV.prototype.onYoodleError=bV.prototype.onYoodleError;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],bV.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],bV.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],bV.prototype,"componentBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],bV.prototype,"ytdReduxBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],bV.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],bV.prototype,"countryCode",void 0);_.k([_.X({selectorArgs:["data.overrideEntityKey"],selector:function(E,B){return _.cP(E.entities,"logoEntity",B)}}),
_.t("design:type",Object)],bV.prototype,"logoEntity",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.t("design:type",Boolean)],bV.prototype,"showYoodle",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],bV.prototype,"yoodleError",void 0);_.k([_.X({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.t("design:type",String)],bV.prototype,"titleText",void 0);
_.k([_.X({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.t("design:type",String)],bV.prototype,"ariaLabelText",void 0);_.k([_.X({value:"/"}),_.t("design:type",String)],bV.prototype,"defaultEndpointUrl",void 0);_.k([_.X({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.t("design:type",String)],bV.prototype,"endpointUrl",void 0);
_.k([_.X({computed:"computeCommand(data.endpoint, logoEntity)"}),_.t("design:type",String)],bV.prototype,"command",void 0);_.k([_.X(),_.t("design:type",Object)],bV.prototype,"logoType",void 0);_.k([_.X({}),_.t("design:type",Boolean)],bV.prototype,"useDarkThemeYoodle",void 0);_.k([_.RN("yoodle-error"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],bV.prototype,"onYoodleError",null);bV=_.k([_.b({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],bV);
_.A(bV,"ytd-topbar-logo-renderer",function(){if(ZDO!==void 0)return ZDO;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return ZDO=E},{mode:_.qi("kevlar_poly_si_batch_j027")?1:2});var PNt=0;var z69=_.SQ.SEARCH_APPEND_LABEL,mA2=_.SQ.SUGGESTION_NEW_VIDEOS_TEXT,QF9=_.SQ.SUGGESTION_THUMBNAIL_LABEL,dA8=_.rp(function(E){function B(Yl){var jd,wr;return _.a(function(et){if(et.nextAddress==1)return jd=new Request(Yl),_.q7(et,2),_.C(et,fetch(jd,{credentials:"include"}),4);if(et.nextAddress!=2)return hz(!0),_.W7(et,0);wr=_.RG(et);_.OG(wr);_.ER(et)})}
var I=E.isHighlighted;var T=E.suggestion;var e=E.onClickCallback;var c=E.onHoverUpdateCallback;var Y=E.labels;var v=E.queryBuilderFunction;var y=E.onRemoveCallback;var Z=E.suggestionIndex;var P=E.generateUniqueId;var z=E.highlightedId;var m=E.useScrollMargin;var u=E.isKeyboardMode;var x=null,M=null,N=_.oH(),W=_.oH(),U=_.AK(function(Yl){Yl&&_.Ns(237477,Yl,M,function(jd){M=jd})}),q=_.AK(function(Yl){Yl&&_.Ns(237477,Yl,M,function(jd){M=jd})}),f=_.TI(function(Yl){if((Yl==null?void 0:Yl.button)===2)return Yl.preventDefault(),
!1;
var jd=_.nC();jd&&x&&_.jY(jd,x,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var wr;e(Yl,T().text,T().index,T().entityMid,Yl==null?void 0:(wr=Yl.detail)==null?void 0:wr.wasSelectedByKeyboard);return!1}),ed=function(){return T().type===35},K=function(){return _.d("desktop_enable_single_suggestion_highlight")},p4=function(){return _.d("desktop_enable_entity_suggest")},sc=function(){return _.RI("desktop_suggestions_panel_row_height")||0},Gf=function(){var Yl;
return _.d("desktop_enable_new_video_metadata")&&((Yl=T())==null?void 0:Yl.hasNewVideo)===!0},xi=function(){return _.d("desktop_enable_visual_suggest")},ki=function(){return T().entitySubtitle},WG=function(){return K()?(I==null?void 0:I())||z2()&&!(u==null?0:u()):(I==null?void 0:I())||z2()},rJ=function(){var Yl=_.HA("SBOX_SETTINGS");
return ed()&&!(Yl==null?0:Yl.HIDE_REMOVE_LINK)},Uc=function(){return qUL(T())},CV,Bm=!((CV=_.Q().resolve(_.Fx(_.ME)))==null||!CV()),LV=function(){return ed()?"ARROW_TIME":"SEARCH"},I$=function(){return Y==null?void 0:Y().SUGGESTION_DISMISS_LABEL},bc=function(){return Y==null?void 0:Y().SUGGESTION_DISMISSED_LABEL};
CV=_.p(_.lQ(!1,void 0,"kHLOZe"));E=CV.next().value;var hz=CV.next().value;CV=_.p(_.lQ(!1,void 0,"SGF2sd"));var TU=CV.next().value,Wm=CV.next().value,z2=TU,cG=_.TI(function(){v(W.value.innerText);return!1}),$I=_.TI(function(Yl){Yl.preventDefault();
return!1}),tz=_.TI(function(Yl){var jd=T().text,wr=_.HA("SBOX_SETTINGS"),et="https://"+(wr.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
et+="&delq="+encodeURIComponent(jd);(jd=wr==null?void 0:wr.PSUGGEST_TOKEN)&&(et+="&tok="+jd);(wr=wr==null?void 0:wr.SESSION_INDEX)&&(et+="&authuser="+wr);B(et);Yl.preventDefault();(Yl=_.nC())&&M&&_.jY(Yl,M,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");y(Z==null?void 0:Z());return!1}),pX=_.TI(function(){if(K()&&(u==null?0:u()))return!1;
Wm(!0);c(!0);return!1}),OZ=_.TI(function(){Wm(!1);
c(!1);return!1});
CV=_.p(_.lQ("",void 0,"yaN19c"));var kl=CV.next().value,Qd=CV.next().value;_.hA(function(){rJ()&&Qd(P==null?void 0:P(Z==null?void 0:Z()));N.value&&_.Ns(12453,N.value,x,function(Yl){x=Yl})});
return _.w(_.wU,{cond:E,then:function(){var Yl={};return _.w("div",{class:_.RQ("ytSuggestionComponentRemovedText",(Yl.ytSuggestionComponentLargerRemovedText=function(){return xi()},Yl)),
style:function(){return sc()>0?"height: "+sc()+"px;":""},
role:"button"},bc)},
else:function(){var Yl={},jd={};return _.w("div",{class:_.RQ("ytSuggestionComponentSuggestion",(Yl.ytSuggestionComponentSuggestionHover=function(){return!K()},Yl.ytSuggestionComponentHighlighted=WG,Yl.ytSuggestionComponentPersonalizedSuggestion=ed,Yl.ytSuggestionComponentMweb=!1,Yl.ytSuggestionComponentLargerSuggestion=function(){return Gf()||xi()},Yl.ytSuggestionComponentThumbnailSuggestion=function(){return xi()},Yl.ytSuggestionComponentRoundedSuggestion=function(){return _.d("desktop_enable_scrollable_suggestions_panel")&&
_.d("desktop_enable_suggestions_panel_padding")},Yl)),
style:function(){return sc()>0?"height: "+sc()+"px;":""},
role:"presentation","on:mousedown":f,"on:mouseover":pX,"on:mouseout":OZ,el:N},_.w("div",{class:_.RQ("ytSuggestionComponentText",(jd.ytSuggestionComponentScrollMargin=m,jd)),"aria-label":function(){return Gf()?T().text+" "+mA2:T().text},
id:function(){return P==null?void 0:P(Z==null?void 0:Z())},
"on:mousedown":f,role:"option"},_.w(_.wU,{cond:function(){return T().type!==33},
then:function(){return _.w(_.i0,{icon:LV,className:"ytSuggestionComponentIcon"})}}),_.w("div",{class:"ytSuggestionComponentLeftContainer"},_.w("span",{el:W,
role:"button",tabindex:0},_.w(_.Zt,{each:Uc},function(wr){return wr.bold?_.w("span",{class:"ytSuggestionComponentBold"},wr.text):_.w("span",null,wr.text)})),_.w(_.wU,{cond:function(){return p4()&&F68(T())&&!!T().entitySubtitle},
then:function(){return _.w("div",{class:"ytSuggestionComponentEntitySubtitle"},ki)}}),_.w(_.wU,{cond:function(){return Gf()},
then:function(){return _.w("div",{class:"ytSuggestionComponentNewVideoContainer"},_.w("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.w("div",{class:"ytSuggestionComponentNewVideoText"},mA2))}}))),_.w("div",{class:"ytSuggestionComponentRightContainer"},_.w(_.wU,{cond:function(){return xi()&&T().visualSuggestUrl!==void 0},
then:function(){var wr={};return _.w("div",{class:"ytSuggestionComponentThumbnailContainer"},_.w("img",{"aria-label":QF9,class:_.RQ("ytSuggestionComponentVisualSuggestThumbnail",(wr.ytSuggestionComponentCircularFrame=function(){return p4()&&F68(T())&&T().subtypes.includes(790)},wr.ytSuggestionComponentEntitySuggestThumbnail=function(){return p4()&&F68(T())},wr)),
src:function(){return T().visualSuggestUrl}}))}}),_.w(_.m4,null,_.w(_.PA,{when:function(){return xi()&&rJ()}},function(){var wr={};
return _.w("button",{class:_.RQ("ytSuggestionComponentRemoveLinkClearButton",(wr.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return kl()&&kl()===(z==null?void 0:z())},wr.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!WG()},wr)),
el:q,"on:mousedown":tz,"aria-label":I$,id:function(){return kl()}},_.w(_.i0,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.w(_.PA,{when:function(){return!(xi()&&T().visualSuggestUrl!==void 0)&&rJ()}},function(){var wr={};
return _.w("a",{class:_.RQ("ytSuggestionComponentRemoveLink",(wr.ytSuggestionComponentRemoveLinkDark=Bm,wr.ytSuggestionComponentRemoveLinkSelected=function(){return kl()&&kl()===(z==null?void 0:z())},wr)),
el:U,"on:mousedown":tz,"aria-label":I$,tabindex:0,role:"button",id:function(){return kl()}},I$)}),_.w(_.PA,{when:function(){return!1}},function(){return _.w("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":cG,"on:mousedown":$I,role:"button","aria-label":z69},_.w(_.i0,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"ag");var h6L=_.rp(function(){var E=_.TI(function(){Ew7().inputMethodsTracker.add(3);var B,I=(B=_.HA("SBOX_SETTINGS"))==null?void 0:B.REQUEST_LANGUAGE;if(I)return _.Sc("//www.google.com/textinputassistant/14/"+I+"_tia.js"),!1});
return _.w("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.w("button",{class:"ytdTextInputAssistantButton","on:click":E},_.w("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"bg");var sFO=function(){this.cache=new Map},uMm=function(E){for(var B=_.p(E.cache.entries()),I=B.next();!I.done;I=B.next()){var T=_.p(I.value);
I=T.next().value;T=T.next().value;T.suggestions.some(function(e){return e.type===35})&&E.cache.delete(I)}};var Lt9=_.SQ.SEARCH,xAH=_.SQ.SEARCH_CLEAR_LABEL,G6I=new _.Dr("FAKE_SUGGEST_RESPONSE");_.oQ(_.rp(function(E){function B(){Yl||(Yl=setTimeout(function(){wr()},1E3))}
function I(mR,zU,vm){if(mR.trim()){Qd=mR;_.MD("REFINEMENTS_TUPLE",void 0);OZ=!0;var sX;zU=IPI(z2,zU);var c6=(sX=E.searchEndpoint)==null?void 0:sX.call(E);sX=bc.value.value;c6||(c6=DiL);var wf;(wf=_.h(c6.commandMetadata,_.D$))!=null&&wf.url||(wf=Error("ml`"+JSON.stringify(c6)),_.xV(wf),c6=DiL);wf=_.a_.unsafeClone(c6);c6=_.HC(_.h(wf.commandMetadata,_.D$).url,"search_query",mR);_.Nm(location.href,"sv")==="1"&&(_.h(wf,_.YG).params="EgOAAgE%3D",c6=_.HC(c6,"sv","1"));_.h(wf,_.YG)&&(_.h(wf,_.YG).query=mR);
c6=c6.replace(/%20/g,"+");_.h(wf.commandMetadata,_.D$).url=c6;vm=_.d("desktop_enable_entity_suggest")?{entityMid:vm}:{};_.Q().resolve(_.Dt).resolveCommand(wf,{form:{tempData:Object.assign({},{gs_l:zU,oq:sX!=null?sX:mR},vm)}});wr();bc.value.value=mR;bc.value.blur();z2.reset()}}
function T(mR){return _.a(function(zU){return zU.return(new Promise(function(vm){var sX=new XMLHttpRequest;sX.open("GET",ANg(mR),!0);sX.withCredentials=!0;var c6=_.HA("SBOX_SETTINGS");(c6==null?0:c6.SEND_VISITOR_DATA)&&sX.setRequestHeader("X-Goog-Visitor-Id",c6==null?void 0:c6.VISITOR_DATA);sX.onload=function(){vm(sX.responseText)};
sX.onerror=function(){_.OG(Error("nl"));vm(null)};
setTimeout(function(){sX.abort()},1E4);
sX.send(null)}))})}
function e(mR){var zU,vm,sX,c6;return _.a(function(wf){switch(wf.nextAddress){case 1:return zU={credentials:"include",headers:ooL()},window.AbortController&&(vm=new AbortController,setTimeout(function(){vm.abort("ytsbox-suggest-timeout")},1E4),zU.signal=vm.signal),_.q7(wf,2),_.C(wf,fetch(ANg(mR),zU),4);
case 4:sX=wf.yieldResult.text();_.W7(wf,3);break;case 2:return c6=_.RG(wf),c6!=="ytsbox-abort-last"&&c6!=="ytsbox-suggest-timeout"&&_.OG(c6),wf.return(null);case 3:return wf.return(sX)}})}
function c(mR){var zU,vm,sX;return _.a(function(c6){switch(c6.nextAddress){case 1:if(zU=_.Q().resolve(_.Fx(G6I)))return c6.return(zU);vm=Date.now();B();return _.d("yt_searchbox_xhr")?_.C(c6,T(mR),5):_.C(c6,e(mR),4);case 4:sX=c6.yieldResult;c6.jumpTo(3);break;case 5:sX=c6.yieldResult;case 3:if(sX){Yl&&(clearTimeout(Yl),Yl=null);var wf=z2,YP=vm,NV=mR.query.length===0;YP=Date.now()-YP;NV?wf.zeroPrefixRoundTripTime=YP:(wf.JSC$18314_totalRoundTripTime+=YP,wf.maxRoundTripTime=Math.max(wf.maxRoundTripTime,
YP),NV=Math.floor(YP/100),NV>=TPt.length?++wf.roundTripTimeHistogram[9]:++wf.roundTripTimeHistogram[TPt[NV]])}return c6.return(sX)}})}
function Y(mR){var zU,vm,sX;return _.a(function(c6){if(c6.nextAddress==1)return(zU=Wm.cache.get(bm8(mR)))?c6.return(zU):_.C(c6,c(mR),2);vm=c6.yieldResult;if(vm===null)return c6.return(null);sX=new DXI(vm);mR.query.length===0&&sX.suggestions.length===0||Wm.cache.set(bm8(mR),sX);return c6.return(sX)})}
function v(mR){var zU,vm;return _.a(function(sX){if(sX.nextAddress==1){kl=!1;var c6=Qd;c6=_.wwQ()==="search"?(_.Nm(location.href,"search_query")||_.Nm(location.href,"q"))===c6:!1;zU=new rNL(mR,c6?Qd:null);return _.C(sX,Y(zU),2)}vm=sX.yieldResult;if(vm===null)return sX.return();zU.query.length===0&&(z2.zeroPrefixSuggestionCount=vm.suggestions.length);if(zU.id<=jd)return z2.outOfSyncResponseCount++,sX.return();if(document.activeElement!==bc.value)return sX.return();jd=zU.id;var wf=z2,YP=vm.rawResponse[2]||
{};wf.experimentTriggeredBeforeFinal||(wf.experimentTriggeredBeforeFinal=wf.experimentTriggeredFinal);wf.experimentTriggeredFinal=!!YP.e;z2.updateSuggestions(vm.suggestions);N(-1);CV([]);vm.suggestions!==u()&&$a(vm.suggestions.length);x(vm.suggestions);sc(vm.suggestions.length>0&&vm.suggestions[0].type===33);TU&&(TU.hidden=vm.suggestions.length===0,p4()?(TU.style.minWidth="",wf=TU.style,YP=(c6=u()[0])==null?void 0:c6.ignoredPrefix,wf.marginLeft=(YP?Math.min(YP.length*6,hz.value.offsetWidth):0).toString()+
"px"):(TU.style.minWidth=hz.value.offsetWidth+"px",TU.style.marginLeft="0"),h1());_.ER(sX)})}
function y(){if(!OZ)return!1;var mR=_.HA("REFINEMENTS_TUPLE");return mR?(mR=mR[1].map(function(zU,vm){return new Vr2([zU,0,[71]],bc.value.value,vm)}),u()!==mR&&$a(mR.length),CV([]),x(mR),z2.updateSuggestions(mR),OZ=!1,TU.hidden=mR.length===0,kl=mR.length>0,!0):!1}
function Z(){var mR=bc.value.value;(typeof mR==="string"||mR instanceof String)&&mR!==""?f(!0):f(!1)}
function P(){if(_.wwQ()==="search"){var mR=window.location.href;try{var zU=_.Nm(mR,"search_query")||_.Nm(mR,"q")||""}catch(vm){zU=""}zU&&(bc.value.value=zU,f(!0))}}
var z=_.p(_.lQ([],void 0,"kGFAjf")),m=z.next().value;z=z.next().value;var u=m,x=z;m=_.p(_.lQ(-1,void 0,"mLGL9e"));var M=m.next().value,N=m.next().value;m=_.p(_.lQ(-1,void 0,"u2rYdc"));var W=m.next().value,U=m.next().value;m=_.p(_.lQ(!1,void 0,"W9DFC"));var q=m.next().value,f=m.next().value;m=_.p(_.lQ(!1,void 0,"Ip4dNc"));var ed=m.next().value,K=m.next().value;z=_.p(_.lQ(!1,void 0,"ZNKSQb"));m=z.next().value;z=z.next().value;var p4=m,sc=z;z=_.p(_.lQ(!1,void 0,"JBrGLd"));m=z.next().value;var Gf=z.next().value;
z=_.p(_.lQ(!1,void 0,"P2pD6e"));var xi=z.next().value,ki=z.next().value;z=_.p(_.lQ(1,void 0,"SjP20c"));var WG=z.next().value,rJ=z.next().value;z=_.p(_.lQ([],void 0,"h4dRaf"));var Uc=z.next().value,CV=z.next().value;z=_.p(_.lQ(!1,void 0,"TUTzaf"));var Bm=z.next().value,LV=z.next().value;z=_.d("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var I$=_.oH(),bc=_.oH(),hz=_.oH(),TU,Wm=new sFO,z2=Ew7(),cG=_.Q().resolve(_.Fx(_.ME)),
$I=function(){var mR;return((mR=E.forceDarkMode)==null?void 0:mR.call(E))||!(cG==null||!cG())},tz=function(){return _.d("desktop_enable_scrollable_suggestions_panel")},pX="i"+PNt++,OZ=!1,kl=!1,Qd="",Yl=null,jd=-1,wr=function(){CV([]);
x([]);sc(!1);TU&&(TU.hidden=!0);Yl&&(clearTimeout(Yl),Yl=null);N(-1)},et=function(mR,zU){mR.preventDefault();
LV(!0);TU&&(TU.hidden=!1);var vm=M();mR=u();var sX=Uc();zU=r2L(zU);vm+=zU;for(vm>=mR.length?vm=-1:vm<-1&&(vm=mR.length-1);vm!==-1&&(sX.includes(vm)||vm>=mR.length||vm<0);)vm+=zU,vm>=mR.length&&(vm=-1);N(vm);M()>=0&&(bc.value.value=u()[M()].text,U(0),Z(),mR=M(),sX=W(),(sX=document.getElementById(pc[mR][sX]))&&tz()&&(mR===u().length-1?TU.scrollTop=TU.scrollHeight:sX.scrollIntoView({block:"nearest",inline:"start"})))},Qh=_.TI(function(mR){if(!(mR.relatedTarget instanceof Element&&mR.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){K(!0);
var zU;(zU=E.focusCallback)==null||zU.call(E,!0);y()||(kl?TU.hidden=!1:(_.$O(I$.value,"yt-autonav-pause-focus",{}),v(mR.target.value)))}}),ds=_.TI(function(mR){if(!(mR.relatedTarget instanceof Element&&mR.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){K(!1);
var zU;(zU=E.focusCallback)==null||zU.call(E,!1);TU.scrollTop=0;TU.hidden=!0;_.$O(I$.value,"yt-autonav-pause-blur",{})}}),mq=function(mR){mR=r2L(mR);
var zU;((zU=pc[M()])==null?0:zU[W()+mR])&&U(W()+mR)},ec=_.TI(function(mR){var zU=mR.target;
switch(mR.keyCode){case 13:mR.preventDefault();var vm;if((vm=pc[M()])==null?0:vm[W()]){var sX;(sX=document.getElementById(pc[M()][W()]))==null||sX.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}mR=mR.shiftKey?4:3;vm=z2;sX=M();vm.selectedSuggestionIndex=sX;I(zU.value,mR);break;case 27:TU&&(TU.hidden=!0);break;case 40:et(mR,40);break;case 38:et(mR,38);break;case 39:mq(39);break;case 37:mq(37);break;case 229:z2.inputMethodsTracker.add(4);break;default:z2.inputMethodsTracker.add(1),
BP2(z2)}return!1}),ZK=_.TI(function(mR){v(mR.target.value);
Z();tz()&&TU&&(TU.scrollTop=0);return!1}),WL=_.TI(function(){z2.inputMethodsTracker.add(2);
BP2(z2);return!1});
_.hA(function(){if(TU){z2.reset();if(window.ResizeObserver){var mR=new ResizeObserver(function(){p4()||(TU.style.minWidth=hz.value.offsetWidth+"px")});
mR.observe(hz.value);(new ResizeObserver(function(){h1()})).observe(TU);
_.dt(function(){mR.disconnect()})}P();
window.addEventListener("yt-navigate-finish",P);window.addEventListener("yt-focus-searchbox",function(){bc.value.focus()});
var zU;Gf((zU=_.HA("SBOX_SETTINGS"))==null?void 0:zU.HAS_ON_SCREEN_KEYBOARD)}else _.xV(new _.P7("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var lT=_.TI(function(mR){mR.preventDefault();I(bc.value.value,12);return!1}),nK=_.TI(function(mR){mR.preventDefault();
var zU,vm;(zU=bc)==null||(vm=zU.value)==null||vm.focus();var sX,c6;((sX=bc)==null?void 0:(c6=sX.value)==null?void 0:c6.value)!==""&&(bc.value.value="",bc.value.dispatchEvent(new Event("input")));return!1}),ND=_.TI(function(){var mR=XC2(bc.value.value,u().filter(function(zU){return zU.type!==35}).map(function(zU){return{label:zU.text}}));
_.I2(I$.value,"yt-open-popup-action",[{openPopupAction:mR},document.body]);return!1}),iW=_.TI(function(){bc.value.focus();
return!1}),Rh=function(mR,zU,vm,sX,c6){z2.selectedSuggestionIndex=vm;
I(zU,c6?3:1,sX)},cn=function(mR){bc.value.value=mR;
bc.value.dispatchEvent(new Event("input"));z2.inputMethodsTracker.add(5);BP2(z2,!0)},pc=[[]],cU=function(mR){var zU="searchbox-suggestion"+_.GN(_.Oj);
pc[mR].push(zU);return zU},$a=function(mR){if(u()){pc=[[]];
for(var zU=0;zU<mR;zU++)pc.push([])}},h1=function(){if(tz()){var mR=TU,zU=mR.scrollTop;
mR=mR.scrollHeight-mR.clientHeight;ki(zU>=mR);zU=Math.abs(mR-zU);zU<=40?rJ(1-(40-zU)/40):rJ(1)}},aj=function(){return"opacity: "+WG()*100+"%"},mQ=_.TI(function(){h1();
return!1}),NG=_.TI(function(){LV(!1);
return!1}),oB,ZX={},Ig={},G2={},ag={};
return _.w("yt-searchbox",{class:_.RQ("ytSearchboxComponentHost",(ZX.ytSearchboxComponentMweb=!1,ZX.ytSearchboxComponentDesktop=!0,ZX["yt-searchbox-filled-query"]=function(){return q()},ZX["ytd-masthead"]=function(){return!ed()},ZX.ytSearchboxComponentHostDark=$I,ZX)),
role:"search",el:I$,"client-ve-type":10349},_.w("div",{el:hz,"on:click":iW,class:_.RQ("ytSearchboxComponentInputBox",(Ig.ytSearchboxComponentInputBoxDark=$I,Ig.ytSearchboxComponentInputBoxHasFocus=ed,Ig))},_.w("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":lT},_.w(_.wU,{cond:ed,then:function(){return _.w("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.w(_.i0,{icon:"SEARCH"}))}}),_.w("input",{el:bc,
class:_.RQ("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":pX,"aria-expanded":!((oB=TU)==null?0:oB.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":ds,"on:focus":Qh,"on:input":ZK,"on:keydown":ec,"on:paste":WL,placeholder:E.placeholderText,"aria-activedescendant":function(){var mR;return(mR=pc[M()])==null?void 0:mR[W()]},
"aria-autocomplete":"list",role:"combobox"})),_.w(_.wU,{cond:m,then:function(){return _.w("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.w(h6L,null))}}),_.w(_.wU,{cond:q,
then:function(){return _.w("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.w("button",{class:"ytSearchboxComponentClearButton","on:click":nK,"aria-label":E.clearButtonAriaLabel||xAH},_.w(_.i0,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.w(_.v$,{model:{}})))}})),_.w("button",{class:_.RQ("ytSearchboxComponentSearchButton",(G2.ytSearchboxComponentSearchButtonDark=$I,G2)),
"on:click":lT,"aria-label":Lt9,title:E.placeholderText},_.w(_.i0,{icon:"SEARCH"})),_.w(_.wU,{cond:function(){if(FrO()&&_.d("mweb_voice_search")&&E.voiceSearchButton)return E.voiceSearchButton()},
then:function(mR){var zU={};return _.w("div",{class:_.RQ("ytSearchboxComponentVoiceSearchWrapper",(zU.ytSearchboxComponentHideVoiceSearchButton=function(){return q()},zU))},_.w(_.hM,{data:mR},{buttonRenderer:function(vm){return _.w(_.nG,{data:vm.data,
onButtonClickCallback:function(){}})}}))}}),_.w("div",{el:_.URG(function(mR){return void(TU=mR)}),
id:pX,class:_.RQ("ytSearchboxComponentSuggestionsContainer",(ag.ytSearchboxComponentSuggestionsContainerDark=$I,ag["yt-searchbox-suggestions-container"]=!1,ag.ytSearchboxComponentSuggestionsContainerScrollable=tz(),ag.ytSearchboxComponentSuggestionsContainerAnimated=z,ag)),"on:scroll":mQ,"on:mousemove":NG,role:"listbox",hidden:!0},_.w(_.Zt,{each:u},function(mR,zU){return _.w(dA8,{suggestion:mR,isHighlighted:function(){return zU()===M()},
onClickCallback:Rh,onHoverUpdateCallback:function(vm){if(_.d("desktop_enable_single_suggestion_highlight")){var sX=zU();vm&&(U(0),N(sX))}},
onRemoveCallback:function(vm){uMm(Wm);vm===void 0||vm<0||Uc().includes(vm)||CV([].concat(_.ad(Uc()),[vm]))},
labels:E.labels,queryBuilderFunction:cn,suggestionIndex:zU,generateUniqueId:cU,highlightedId:function(){var vm;return(vm=pc[M()])==null?void 0:vm[W()]},
useScrollMargin:tz(),isKeyboardMode:Bm})}),_.w(_.wU,{cond:function(){return!p4()&&u().find(function(mR){return mR.type!==35})&&_.d("searchbox_reporting")},
then:function(){return _.w("button",{class:"ytSearchboxComponentReportButton","on:mousedown":ND},_.yu("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.w(_.wU,{cond:function(){return!xi()&&tz()},
then:function(){return _.w("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.w("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:aj}))}})))},"cg"),"yt-searchbox",{props:{searchEndpoint:_.Jh,
placeholderText:_.Jh,labels:_.Jh,voiceSearchButton:_.Jh,focusCallback:_.bu,clearButtonAriaLabel:_.Jh,forceDarkMode:_.Jh}});var oR=function(){var E=_.r.apply(this,arguments)||this;E.menuButtonTargetId="topbar-guide-menu";E.narrow=!1;E.menuStrings={BACK_ALT_LABEL:_.yu("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.yu("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.yu("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.yu("SBOX_PLACEHOLDER",void 0,"Search")};E.pageDarkTheme=document.documentElement.hasAttribute("dark");E.watchPageScrollTop=0;E.theater=!1;E.fullscreen=!1;E.desktopUnifiedSearchPanelMode=_.d("desktop_enable_unified_search_panel");
E.cinematicTheaterMode=_.d("web_cinematic_theater_mode");E.ytSearchboxFocused=!1;E.searchboxLabels=_.HA("SBOX_LABELS");E.topbarIsAboveChipbar=!1;E.isDarkThemeForced=!1;E.areGhostCardsHidden=!1;E.guideKeyboardToggle=!1;E.voiceSearchManager=jvO();E.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};E.setYtSearchboxFocused=function(B){E.ytSearchboxFocused=B};
return E};
_.L(oR,_.r);_.l=oR.prototype;_.l.computeSimpleText=function(E){return _.U3(E)};
_.l.onDarkChanged=function(){for(var E=_.p(this.buttons||[]),B=E.next();!B.done;B=E.next())B.value.isOverlay=!!this.dark;E=_.p(this.buttonRenderers||[]);for(B=E.next();!B.done;B=E.next())B.value.overrides=this.computeButtonOverride()};
_.l.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.l.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var E=_.Su(_.gB(),"aa");_.VQ(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||E||(this.isDarkThemeForced=this.dark=!0);this.logoType?(E=this.hostElement.querySelector("#masthead-logo"))&&(_.d("polymer_on_demand_shady_dom")?E.setAttribute("slot","masthead-logo-old"):_.ii(E)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Kq(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Kq(this,this.onSetTheaterModeEnabled))};
_.l.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Kq(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Kq(this,this.onSetTheaterModeEnabled))};
_.l.dataChanged=function(){var E=this.data;E&&(this.voiceEnabled=E.voiceSearchButton?jvO().isSupported():!1,_.tr$(_.T0(),this.menuButtonTargetId,this.guideButton),E.onReceivedActions&&E.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.cN(this.hostElement,E.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&E&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.VQ(this.hostElement,"dark",!1),_.VQ(this.hostElement,"theater",!1),
(E=this.hostElement.querySelector("#masthead-logo"))&&(_.d("polymer_on_demand_shady_dom")?E.setAttribute("slot","masthead-logo-old"):_.ii(E))))};
_.l.computeCenterHidden=function(){var E;return this.data&&!((E=this.data.searchbox)==null?0:E.fusionSearchboxRenderer)};
_.l.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.VQ(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.l.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.l.onWatchScroll=function(E){this.watchPageScrollTop=E.detail||0;this.updateMastheadBackgroundOpacity()};
_.l.onFullscreenChangeAction=function(E){E||(this.watchPageScrollTop=0);this.fullscreen=E;this.updateMastheadBackgroundOpacity()};
_.l.onSetTheaterModeEnabled=function(E){this.theater=E.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.l.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.l.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.l.setBackgroundOpacity=function(E){E=this.calculateBackgroundOpacity(E);this.background.style.opacity=""+E};
_.l.calculateBackgroundOpacity=function(E){var B=this.theater&&this.cinematicTheaterMode?.6:0,I=this.hostElement.clientHeight/2;return Math.min(Math.max(E,0),I)/I*(1-B)+B};
_.l.shouldShowCinematicMastHead=function(){var E=_.d("kevlar_watch_grid")&&!_.d("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(E||this.pageDarkTheme)};
_.l.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.l.focusGuide=function(){this.guideButton.focus()};
_.l.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.$O(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.l.onGuideToggleTap=function(){_.$O(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.l.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.l.onGuideToggleHover=function(){_.$O(this.hostElement,"yt-guide-hover")};
_.l.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.l.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.l.closeOnOutsideClickCondition=function(E){for(E=_.W8(E);E[0];){var B=E.shift();if(B instanceof Element&&B.id==="kbd")return!1}return!0};
_.l.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.l.pausePlayer=function(){var E;(E=_.jx())==null||E.pause();this.pauseMiniplayer()};
_.l.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var E;(E=_.Q().resolve(_.W3).getPlayerElement())==null||E.pause()}};
_.l.isMiniplayerActive=function(){return _.Q().resolve(_.W3).isMiniplayerActive()};
_.l.updateNarrowFromBinding=function(E){this.narrow=E.detail.value};
_.l.onYtSendFeedbackAction=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Up.Object.defineProperties(oR.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var E;return(E=this.data)==null?void 0:E.voiceSearchButton}}}});
oR.prototype.narrowChanged=oR.prototype.narrowChanged;oR.prototype.onIronResize=oR.prototype.onIronResize;oR.prototype.onWatchPageChange=oR.prototype.onWatchPageChange;oR.prototype.onRendererStamperFinished=oR.prototype.onRendererStamperFinished;oR.prototype.dataChanged=oR.prototype.dataChanged;oR.prototype.onDarkChanged=oR.prototype.onDarkChanged;_.k([_.g(_.OI),_.t("design:type",Object)],oR.prototype,"ironResizableBehavior",void 0);
_.k([_.g(_.Iss),_.t("design:type",Object)],oR.prototype,"ytdExpandableInputBehavior",void 0);_.k([_.g(_.Hy.YtdGuideStateAwareBehavior),_.t("design:type",Object)],oR.prototype,"ytdGuideStateAwareBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],oR.prototype,"ytComponentBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],oR.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.Lz),_.t("design:type",Object)],oR.prototype,"ytdReduxBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],oR.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],oR.prototype,"narrow",void 0);_.k([_.X(),_.t("design:type",Object)],oR.prototype,"logoType",void 0);
_.k([_.X(),_.t("design:type",Boolean)],oR.prototype,"voiceEnabled",void 0);_.k([_.X(),_.t("design:type",Object)],oR.prototype,"menuStrings",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],oR.prototype,"dark",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],oR.prototype,"pageDarkTheme",void 0);_.k([_.X(),_.t("design:type",Object)],oR.prototype,"watchPageScrollTop",void 0);
_.k([_.X({reflectToAttribute:!0,selector:_.n9}),_.t("design:type",Boolean)],oR.prototype,"isWatchPage",void 0);_.k([_.X({reflectToAttribute:!0,selector:_.Qpd}),_.t("design:type",Boolean)],oR.prototype,"isShortsPage",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],oR.prototype,"theater",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],oR.prototype,"fullscreen",void 0);
_.k([_.X({reflectToAttribute:!0,selector:_.LJt}),_.t("design:type",String)],oR.prototype,"frostedGlassMode",void 0);_.k([_.X(),_.t("design:type",Object)],oR.prototype,"ytSearchboxFocused",void 0);_.k([_.eV("#buttons > *"),_.t("design:type",Array)],oR.prototype,"buttons",void 0);_.k([_.eV("ytd-button-renderer"),_.t("design:type",Array)],oR.prototype,"buttonRenderers",void 0);_.k([_.$7("#background"),_.t("design:type",HTMLDivElement)],oR.prototype,"background",void 0);
_.k([_.$7("#guide-button"),_.t("design:type",Object)],oR.prototype,"guideButton",void 0);_.k([_.$7("#logo"),_.t("design:type",Object)],oR.prototype,"logo",void 0);_.k([_.X({computed:"computeButtonOverride(dark)"}),_.t("design:type",Object)],oR.prototype,"buttonOverrides",void 0);_.k([_.i6("dark"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oR.prototype,"onDarkChanged",null);_.k([_.X({value:function(){return this.onVoiceTap.bind(this)}}),
_.t("design:type",Function)],oR.prototype,"boundOnTapVoiceButton",void 0);_.k([_.X(),_.t("design:type",Object)],oR.prototype,"topbarIsAboveChipbar",void 0);_.k([_.S("voiceEnabled"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],oR.prototype,"shouldShowVoiceSearchButton",null);_.k([_.S("data"),_.t("design:type",Object),_.t("design:paramtypes",[])],oR.prototype,"voiceSearchButton",null);
_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oR.prototype,"dataChanged",null);_.k([_.RN("yt-rendererstamper-finished"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oR.prototype,"onRendererStamperFinished",null);_.k([_.i6("isWatchPage"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oR.prototype,"onWatchPageChange",null);
_.k([_.RN("iron-resize"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oR.prototype,"onIronResize",null);_.k([_.i6("narrow"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],oR.prototype,"narrowChanged",null);oR=_.k([_.b({disableElementRegistration:!0,is:"ytd-masthead"})],oR);
_.A(oR,"ytd-masthead",function(){if(wb2!==void 0)return wb2;var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return wb2=E},{mode:_.qi("kevlar_poly_si_batch_j036")?1:2});var ODL;var nws={},MUI={},HD8={},NPI={},gwt=(NPI.OFFLINE=(nws["publicytnetworkstatus-online"]="BACK_ONLINE",nws),NPI.ONLINE=(MUI["publicytnetworkstatus-offline"]="OFFLINE",MUI),NPI.BACK_ONLINE=(HD8["publicytnetworkstatus-offline"]="OFFLINE",HD8.TIMER_TRIGGER="ONLINE",HD8),NPI),A8=function(){var E=_.r.apply(this,arguments)||this;E.currentState="ONLINE";E.scheduledJobId=0;E.bannerString="";E.bannerVe=null;E.networkStatusManagerInstance=new _.Xg;return E};
_.L(A8,_.r);_.l=A8.prototype;_.l.attached=function(){var E=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){E.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){E.stateChangeHandler("publicytnetworkstatus-offline")})};
_.l.detached=function(){var E=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){E.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){E.stateChangeHandler("publicytnetworkstatus-offline")})};
_.l.enterState=function(E){var B=this;this.scheduledJobId&&_.Ll.cancelJob(this.scheduledJobId);E==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):E==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.yu("NO_INTERNET_CONNECTION",void 0,"No internet connection")):E==="BACK_ONLINE"&&(this.bannerString=_.yu("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.PC(_.Ll,function(){B.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=E};
_.l.stateChangeHandler=function(E){(E=gwt[this.currentState][E])&&this.enterState(E)};
_.l.logVisibility=function(E){var B=_.nC();this.createBannerVe(E);B&&this.bannerVe&&(E?_.b1(B,[this.bannerVe]):_.o2(B,[this.bannerVe]))};
_.l.createBannerVe=function(E){!this.bannerVe&&E&&(this.bannerVe=_.wA(37929),_.eu(_.lu(),this.bannerVe))};
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",String)],A8.prototype,"currentState",void 0);_.k([_.X(),_.t("design:type",Object)],A8.prototype,"scheduledJobId",void 0);_.k([_.X(),_.t("design:type",Object)],A8.prototype,"bannerString",void 0);A8=_.k([_.b({disableElementRegistration:!0,is:"ytd-network-status-banner"})],A8);
_.A(A8,"ytd-network-status-banner",function(){if(ODL!==void 0)return ODL;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return ODL=
E},{mode:1});var S5I;var jA=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};E.hidden=!0;E.frostedGlass=_.d("web_frosted_glass");return E};
_.L(jA,_.r);jA.prototype.computeHidden=function(E){return E&&E.status?!1:!0};
jA.prototype.handleUpdatePermissionRoleCommand=function(E){if(E=_.h(E,_.KAt))if(E=_.h(E.renderer,_.D$r))this.data=E};
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],jA.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],jA.prototype,"componentBehavior",void 0);_.k([_.X({value:!0,computed:"computeHidden(data)"}),_.t("design:type",Object)],jA.prototype,"hidden",void 0);_.k([_.X(),_.t("design:type",Object)],jA.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],jA.prototype,"frostedGlass",void 0);
jA=_.k([_.b({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],jA);
_.A(jA,"ytd-permission-role-bottom-bar-renderer",function(){if(S5I!==void 0)return S5I;var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);return S5I=E},{mode:1});var JuL;var Wts;var b9I={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Uh=function(){return _.r.apply(this,arguments)||this};
_.L(Uh,_.r);_.l=Uh.prototype;_.l.attached=function(){this.JSC$18416_scroller&&(this.JSC$18416_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18416_scroller.attached&&typeof this.JSC$18416_scroller.attached==="function"&&this.JSC$18416_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(I){I.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var E=_.n(this.hostElement);E.querySelector("tp-yt-paper-radio-group").selected="";var B=E.querySelector("#reason-text");B&&(B.value="");E.querySelector("#description-text").value=""}};
_.l.canSubmit=function(E,B){_.$O(this.hostElement,"yt-invalidate-popup-tabbables");return!(E&&B)};
_.l.onCancel=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.l.onSubmit=function(){var E=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(c){return c.active}).map(function(c){return c.innerText.trim()}),B=this.hostElement.querySelector("tp-yt-paper-radio-group"),I=B.selectedItem,T=I.name;
I=I.innerText.trim();var e=B.querySelector("#reason-text");B=void 0;e&&(B=e.value);(e=this.descriptionText.value)&&(e=e.trim());oNI(this.data.searchQuery,E,T,I,e,B);_.I2(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.l.sendFormSubmitToast=function(){var E=_.qg(_.yu("SBOX_INAPPROPRIATE_TOAST"));_.I2(this.hostElement,"yt-open-popup-action",[E,this])};
_.l.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(E){return E.active})};
_.l.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Uh.prototype.onIronSelect=Uh.prototype.onIronSelect;Uh.prototype.onIronChange=Uh.prototype.onIronChange;Uh.prototype.dataChanged=Uh.prototype.dataChanged;_.k([_.X(),_.t("design:type",Object)],Uh.prototype,"data",void 0);_.k([_.X({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.t("design:type",Boolean)],Uh.prototype,"submitDisabled",void 0);_.k([_.X(),_.t("design:type",Boolean)],Uh.prototype,"suggestionSelected",void 0);
_.k([_.X(),_.t("design:type",Boolean)],Uh.prototype,"catagorySelected",void 0);_.k([_.$7("#scroller"),_.t("design:type",Object)],Uh.prototype,"JSC$18416_scroller",void 0);_.k([_.$7("#description-text"),_.t("design:type",Object)],Uh.prototype,"descriptionText",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Uh.prototype,"dataChanged",null);
_.k([_.RN("iron-change"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Uh.prototype,"onIronChange",null);_.k([_.RN("iron-select"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Uh.prototype,"onIronSelect",null);Uh=_.k([_.b({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Uh);
_.A(Uh,"ytd-search-suggestion-report-dialog",function(){if(Wts!==void 0)return Wts;var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return Wts=E},{mode:1});var ku=function(E){var B=E.openPopupAction;var I=E.target;var T=E.container;var e=E.popupContainerConfig;var c=E.getElement;E=E.removeWhenClosed===void 0?!1:E.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=B;this.target=I;this.container=T;this.popupContainerConfig=e;this.getElement=c;this.JSC$18422_popupConfig=this.popupContainerConfig.JSC$17538_popupConfig[this.openPopupAction.popupType];this.rendererName=(B=this.getName())?_.H8J(B,QvH(this.popupContainerConfig,
B)):"";_.d("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=E);this.createPopup()};
ku.prototype.updatePopup=function(E){this.openPopupAction=E;this.JSC$18422_popupConfig=this.popupContainerConfig.JSC$17538_popupConfig[this.openPopupAction.popupType];Xb8(this);_.d("reorder_popup_updates_killswitch")&&ruI(this);_.d("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var Au2=function(E,B,I){E.target=I;var T;I=((T=E.target.polymerController)!=null?T:E.target).popupPositionTarget||E.target;E.JSC$18422_popupConfig.targetContainer&&(I=E.container);E.popup.positionTarget=I;E.popupContent.positionTarget=I;_.d("reorder_popup_updates_killswitch")||ruI(E);E.JSC$18422_popupConfig.forceFocus&&(E.popupContent.style.outline="none");E.popupContent.tabIndex=-1;E.JSC$18422_popupConfig.narrowProperties&&(E.popup.style.position="static");E.JSC$18422_popupConfig.preventAutonav&&
E.popup.setAttribute("prevent-autonav",!0);E.JSC$18422_popupConfig.forceCloseOnOutsideClick&&E.popup.setAttribute("force-close-on-outside-click",!0);bDg(E,B);owd(E,E.JSC$18422_popupConfig.styles);E.isRtl()&&owd(E,E.JSC$18422_popupConfig.rtlStyles);if(!E.openPopupAction.shouldStopParentSignal){var e;B=(e=E.target.polymerController)!=null?e:E.target;(E.popupContent.startForwardingEvents||E.popupContainerConfig.forwardingEnabledPopups.has(E.rendererName))&&B.parentComponent!==E.popupContent&&E.popupContent!==
E.target&&E.target!==document.body&&(E.popupContent.startForwardingEvents?E.popupContent.startForwardingEvents(E.popupContainerConfig.forwardedEvents,E.target):(E.JSC$18422_eventForwarder||(E.JSC$18422_eventForwarder=new _.aP(E.popupContent)),E.JSC$18422_eventForwarder.start(E.popupContainerConfig.forwardedEvents,E.target)))}};
ku.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var bDg=function(E,B){jFO(E,B&&E.JSC$18422_popupConfig.narrowProperties?E.JSC$18422_popupConfig.narrowProperties:E.JSC$18422_popupConfig.properties);E.isRtl()&&jFO(E,E.JSC$18422_popupConfig.rtlProperties);ruI(E)};
ku.prototype.createPopup=function(){var E=this.JSC$18422_popupConfig.component;if(this.popupContent=UA8(this,this.rendererName)){if(E){this.popup=UA8(this,E);var B=this.popupContent;_.d("web_enable_wrapper_for_cow_component_in_popup")&&(B=document.createElement("div"),B.appendChild(this.popupContent));_.d("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18422_popupConfig.slotName&&B.setAttribute("slot",this.JSC$18422_popupConfig.slotName);E=this.popup;var I=this.container.tagName.toLowerCase(),
T=_.rE(B);_.aTi(_.oN(E),_.Uq(B,I,T));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.d("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.n(this.container).appendChild(this.popup)}};
var Xb8=function(E){var B,I,T=(B=E.openPopupAction.accessibilityData)==null?void 0:(I=B.accessibilityData)==null?void 0:I.label;T&&(E.popup.ariaLabel=T);var e;((e=E.popupContent.polymerController)!=null?e:E.popupContent).data=(0,_.a_.unsafeClone)(E.openPopupAction.popup[E.getName()]);E.popupContent.duration=k69(E);E.popupContent.positionType=E.openPopupAction.position;var c=E.openPopupAction.properties;c&&Object.keys(c).forEach(function(Y){E.popupContent[Y]=c[Y]})},jFO=function(E,B){if(B)for(var I=
_.p(Object.keys(B)),T=I.next();!T.done;T=I.next())T=T.value,E.popup[T]=B[T]},ruI=function(E){if(E.openPopupAction.position){var B=E.JSC$18422_popupConfig.positionalProperties&&E.JSC$18422_popupConfig.positionalProperties[E.openPopupAction.position],I=E.JSC$18422_popupConfig.rtlPositionalProperties&&E.JSC$18422_popupConfig.rtlPositionalProperties[E.openPopupAction.position];
B=E.isRtl()&&I?I:B;B.shiftedHorizontalOffset&&(I=E.popup.style.display,E.popup.style.display="block",E.popupContent&&E.popup.positionTarget&&E.popupContent.clientWidth>E.popup.positionTarget.clientWidth&&(B.horizontalOffset=E.popup.positionTarget.clientWidth/2-B.shiftedHorizontalOffset),E.popup.style.display=I);jFO(E,B)}},owd=function(E,B){if(B)for(var I=_.p(Object.keys(B)),T=I.next();!T.done;T=I.next())T=T.value,E.popup.style[T]=B[T]};
ku.prototype.getName=function(){return _.Or(this.openPopupAction.popup,"renderer")||_.Or(this.openPopupAction.popup,"dialog")||_.Or(this.openPopupAction.popup,"model")||void 0};
var k69=function(E){E=E.openPopupAction.durationHintMs;return E===0?E:Math.max(4E3,E||4E3)};
ku.prototype.isRtl=function(){return _.HA("HTML_DIR")==="rtl"};
var UA8=function(E,B){E=E.getElement(B,E.target);E==null&&_.OG(new _.P7("popup getElement returned null",B));return E};var tU8={};
tU8.YtPopupContainerBehavior=[_.G0.YtComponentBehavior,_.th.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.EK(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.BN(this.hostElement)},
closePopup:function(E){var B=this.createCacheKey(void 0,E);this.popups_[B]&&this.handleClosePopupAction_(void 0,E)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Ll.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Ll.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(E){E.opened&&E.keepBelowPlayer&&this.ensurePopupBelowPlayer(E)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var E in this.popups_){var B=this.popups_[E];if(B.popup.scrollAction==="refit"){var I=B.popup.positionTarget.getBoundingClientRect(),T=B.popup;I=I.top;var e=B;if(!e.naturalHeight){e.popup.hidden=!1;e.popup.style.position="fixed";e.popup.style.top="0px";e.popup.style.left="0px";var c=e.popup.getBoundingClientRect();e.naturalHeight=c.bottom-c.top;e.popup.refit()}T.hidden=!(I>=e.naturalHeight+60);B.popupContent.clientHeight===0&&B.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(E){this.popupContainerConfig=E},
handleOpenPopupAction:function(E,B){var I=E.openPopupAction,T=_.Q().resolve(_.Fx(_.PDI))&&I.popupType==="TOAST";T&&!I.uniqueId&&(I.uniqueId=_.PJ());if(!_.d("popup_container_parent_target_killswitch")){var e;B=(e=this.getParentTarget(B))!=null?e:B}var c=this.ensurePopup_(I,B);return new _.cC(function(Y){c.then(function(v){if(!v)return Y();this.maybeCreateNarrowMediaQuery_();var y=this.createCacheKey(v.rendererName,v.openPopupAction.uniqueId);if(I.showOncePerUniqueId){if(this.shownPopupKeys_.has(y))return Y();
this.shownPopupKeys_.add(y)}y=this.popups_[y];var Z=!(!y||!y.openPopupAction.beReused);Z=!!I.reusePopup||Z;if(v.popup.opened&&!Z){T&&!v.openPopupAction.replacePopup||this.handleClosePopupAction_(v.rendererName,v.openPopupAction.uniqueId);Z=I.popupType==="DIALOG"&&!_.d("popup_container_dialog_reopen_killswitch");if(!T&&!Z&&y&&y.target==B&&!v.openPopupAction.replacePopup)return Y();_.AJ(v.popup,function(){this.completeOpenPopupAction_(I,B,v);Y()}.bind(this))}else v.popup.opened?v.updatePopup(I):this.completeOpenPopupAction_(I,
B,v),Y()}.bind(this))}.bind(this))},
getParentTarget:function(E){if(E&&E instanceof HTMLElement)for(var B=_.p(Object.entries(this.popups_)),I=B.next();!I.done;I=B.next())if(I=_.p(I.value),I.next(),I=I.next().value,I.popup.tagName==="TP-YT-IRON-DROPDOWN"&&I.popup.opened&&E.closest(I.rendererName))return I.target},
completeOpenPopupAction_:function(E,B,I){_.d("reorder_popup_updates_killswitch")?(Au2(I,this.narrowMediaQuery_.queryMatches,B),I.updatePopup(E)):(I.updatePopup(E),Au2(I,this.narrowMediaQuery_.queryMatches,B));E=I.popup;E.addEventListener("iron-overlay-opened",_.Kq(this,this.onPopupIronOverlayOpened_));E.addEventListener("iron-overlay-closed",_.Kq(this,this.onPopupIronOverlayClosed_));E.addEventListener("iron-overlay-canceled",_.Kq(this,this.onPopupIronOverlayCanceled_));E.addEventListener("yt-refit",
_.Kq(this,this.refitPopup_));E.addEventListener("yt-invalidate-popup-tabbables",_.Kq(this,this.handleInvalidatePopupTabbables_));E.open()},
getPopupDurationMs_:function(E){return E.durationHintMs===0?E.durationHintMs:Math.max(4E3,E.durationHintMs||4E3)},
handleClosePopupAction_:function(E,B){var I=_.d("web_popup_cache_key_killswitch")||!!B;if(E||I){var T=this.createCacheKey(E,B);E=(E=this.popups_[T])&&E.popup}else E=_.RLV(_.Ac);if(E&&E.close){if(B=_.Q().resolve(_.Fx(_.ZR)))E.restoreFocusOnClose=B.isKeyBoardInUse();E.close();this.removePopup_(E,T)}},
handleClosePopupCommand_:function(E){E.closePopupCommand&&E.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,E.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(E){var B={},I;for(I in this.popups_)if(B={key$jscomp$1162:B.key$jscomp$1162},B.key$jscomp$1162=I,!E||!E.some(function(c){return function(Y){return Y==c.key$jscomp$1162}}(B))){var T=this.popups_[B.key$jscomp$1162],e=T.popup;
_.Q().resolve(_.Fx(_.PDI))&&T.openPopupAction.popupType==="TOAST"||(e&&e.close&&e.close(),this.removePopup_(e,B.key$jscomp$1162))}},
handleClosePopupsAction_:function(E){E.forEach(function(B){var I=this.popups_[B];I&&((I=I.popup)&&I.close&&I.close(),this.removePopup_(I,B))}.bind(this))},
handleGetPopupOpenedAction_:function(E,B){return(B=this.createCacheKey(E,B))&&this.popups_[B]?this.popups_[E].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var E=[],B;for(B in this.popups_){var I=this.popups_[B];I.popup.opened&&E.push(I)}return E},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(E,B){_.d("ytpopup_disable_default_html_caching")&&E&&E.removeWhenClosed&&(_.n(this.hostElement).removeChild(E),B&&this.popups_[B]&&delete this.popups_[B])},
shouldReusePopup_:function(E){return!(!E||!E.reusePopup)||!(!E||!E.beReused)},
ensurePopup_:function(E,B){this.maybeCreateNarrowMediaQuery_();var I=_.Or(E.popup,"renderer")||_.Or(E.popup,"dialog")||_.Or(E.popup,"model");if(!I)return _.i1();I=_.H8J(I,QvH(this.popupContainerConfig,I));return _.i1(this.getAndMaybeCreatePopup_(E,I,B))},
getAndMaybeCreatePopup_:function(E,B,I){var T=this.createCacheKey(B,E.uniqueId);if(this.popups_[T])return this.popups_[T];E=new ku({openPopupAction:E,target:I,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(B)});return this.popups_[T]=E},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(E){return _.d("ytpopup_disable_default_html_caching")?E&&E.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",_.Kq(this,this.openPopupQueryMatchesChanged_)),_.n(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(E){E=E.detail.value;for(var B in this.popups_)bDg(this.popups_[B],E)},
onPopupIronOverlayClosed_:function(E){var B=E.currentTarget,I=_.Htd(B);I=I.length>0?I[0]:B;if(I.is!=="ytd-reel-watch-while-dialog-renderer"||E.target.is!=="tp-yt-iron-dropdown"){E.detail.popup=B;E.detail.popupRenderer=I;var T,e={context:{openingElement:((T=this.popups_[(I==null?void 0:I.is)||""])==null?void 0:T.target)||void 0}};Object.assign(e,E.detail);var c;_.$O((c=I.hostElement)!=null?c:I,"yt-popup-closed",e);B.removeEventListener("yt-refit",_.Kq(this,this.refitPopup_));B.removeEventListener("yt-invalidate-popup-tabbables",
_.Kq(this,this.handleInvalidatePopupTabbables_));B.removeEventListener("iron-overlay-canceled",_.Kq(this,this.onPopupIronOverlayCanceled_));B.removeEventListener("iron-overlay-closed",_.Kq(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(B)}},
onPopupIronOverlayCanceled_:function(E,B){var I=E.currentTarget,T=_.Htd(I);T=T.length>0?T[0]:I;if(T.is!=="ytd-reel-watch-while-dialog-renderer"||E.target.is!=="tp-yt-iron-dropdown"){var e;_.$O((e=T.hostElement)!=null?e:T,"yt-popup-canceled",E.detail);e=B?_.W8(B):null;(!B||["click","tap"].includes(B.type))&&!I.hasAttribute("force-close-on-outside-click")&&I.positionTarget&&e&&e.includes(I.positionTarget)&&E.preventDefault();I.restoreFocusOnClose=_.mG.keyboardEventMatchesKeys(B,"esc")}},
onPopupIronOverlayOpened_:function(E){E=E.currentTarget;var B=_.Htd(E);B=B.length>0?B[0]:E;var I,T;_.$O((I=B.hostElement)!=null?I:B,"yt-popup-opened",(T=B.hostElement)!=null?T:B);E.keepBelowPlayer&&(this.ensurePopupBelowPlayer(E,!0),this.dynamicallyPositionedElements_.add(E));I=_.Q().resolve(_.Fx(_.ZR));T=!!B.querySelector("#toast");I&&I.isKeyBoardInUse()&&!T&&(typeof B.focusFirstItem==="function"?B.focusFirstItem():(B=_.FVN(E),B.length&&B[0].focus()));E.removeEventListener("iron-overlay-opened",
_.Kq(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(E){E=E.currentTarget;E.refit&&E.refit()},
refitPopups_:function(){for(var E in this.popups_)this.popups_[E].refit()},
handleInvalidatePopupTabbables_:function(E){E=E.currentTarget;E.invalidateTabbables&&E.invalidateTabbables()},
createCacheKey:function(E,B){return _.d("web_popup_cache_key_killswitch")?B?E+"#"+B:E:B?"#"+B:E},
openSheet:function(E,B){var I=E==null?void 0:E.openPopupActionCommand;!I&&(E==null?0:E.viewModel)&&(I={openPopupAction:{popup:{sheetViewModel:E.viewModel},popupType:"CONTEXTUAL_SHEET"}});I&&this.handleOpenPopupAction(I,B)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var E=this;return _.a(function(B){return B.return(E.handleGetOpenedPopupsAction_().filter(function(I){var T;return((T=I.openPopupAction)==null?void 0:T.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(E,B,I){if(_.d("web_dialog_utils_killswitch")){var T=E==null?void 0:E.openPopupActionCommand,e=(I==null?0:I.ariaLabel)?{accessibilityData:{accessibilityData:{label:I.ariaLabel}}}:void 0;!T&&(E==null?0:E.viewModel)&&(T={openPopupAction:Object.assign({},{popup:{dialogViewModel:E.viewModel},popupType:(I==null?0:I.isModal)?"MODAL":"DIALOG"},e&&e)});T&&this.handleOpenPopupAction(T,B)}else{if(e=E==null?void 0:E.viewModel){var c=I=I===void 0?{}:I;I=c.ariaLabel;e={popup:{dialogViewModel:e},
popupType:c.isModal?"MODAL":"DIALOG"};c={accessibilityData:{label:I}};I&&(e.accessibilityData=c);e={openPopupAction:e}}else e=void 0;(e=(T=e)!=null?T:E==null?void 0:E.openPopupActionCommand)&&this.handleOpenPopupAction(e,B)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var E=this;return _.a(function(B){return B.return(E.handleGetOpenedPopupsAction_().filter(function(I){var T;return((T=I.openPopupAction)==null?void 0:T.popupType)==="DIALOG"}).length>0)})}}];var fPO;var VU2;var q51=_.km(["about:blank"]),eh=function(){var E=_.r.apply(this,arguments)||this;E.isMuted=!1;E.pageLoadTimeoutId=void 0;return E};
_.L(eh,_.r);_.l=eh.prototype;_.l.dataChanged=function(){var E=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var B=this.data.url,I=_.xv(B);_.d("enable_yt_ata_iframe_authuser")?(I=_.xv(B),_.QC(this.iframe,A2s(I))):_.QC(this.iframe,I);this.pageLoadTimeoutId=_.PC(_.xm(),function(){return void E.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Dc({destination:window,iframe:this.iframe,origin:_.lKr(I.toString()),channelName:"ataiframe",onMessage:_.Pcr(LG1,function(T){xCL(T.data)?(T=_.ea(T.data,1,_.yd,_.Ux()),T.length!==1?_.OG(Error("ol")):(T=T[0],T===3?(E.isMuted=!0,E.logStateChanged({adMuteRequested:!0})):T===1&&E.close())):_.OG(Error("pl"))}),
onEstablished:function(){E.cancelPageLoadTimeout();E.logStateChanged({pageLoadSucceeded:!0})}})}};
_.l.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.xm().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.l.logStateChanged=function(E){var B;if((B=this.data)==null?0:B.trackingParams)E={adsClientData:{aboutThisAdData:E}},_.lu().stateChanged(this.data.trackingParams,E)};
_.l.close=function(){_.I2(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.handlesPopupClosed=function(E,B){var I=this,T,e;return _.a(function(c){if(c.nextAddress==1)return _.HA("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.I2(I.hostElement,"on-about-this-ad-popup-closed",[I.isMuted,B]),c.jumpTo(0)):E&&jY1(E)?_.C(c,UgI(E),4):(I.isMuted&&_.I2(I.hostElement,"yt-mute-ad-action",[I.is,I]),c.jumpTo(0));if(T=c.yieldResult){var Y=e=new _.iY(T),v=I.isMuted;Y.getOptions().includes("onAboutThisAdPopupClosed")?_.HWV(Y,"onAboutThisAdPopupClosed",{isMuted:v,layoutId:B}):_.DR("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.ER(c)})};
_.l.onPopupClosed=function(E){var B=this,I,T;return _.a(function(e){I=_.jR(q51);_.QC(B.iframe,I);B.cancelPageLoadTimeout();if(!B.data)return e.jumpTo(0);B.ytRendererBehavior.markDirty();T=E.detail.context.openingElement;return _.C(e,B.handlesPopupClosed(T,B.data.layoutId),0)})};
_.l.detached=function(){this.cancelPageLoadTimeout()};
_.l.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
eh.prototype.onPopupClosed=eh.prototype.onPopupClosed;eh.prototype.dataChanged=eh.prototype.dataChanged;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.k([_.$7("#iframe"),_.t("design:type",HTMLIFrameElement)],eh.prototype,"iframe",void 0);_.k([_.X(),_.t("design:type",Object)],eh.prototype,"data",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],eh.prototype,"dataChanged",null);
_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype",Promise)],eh.prototype,"onPopupClosed",null);eh=_.k([_.QE({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],eh);
_.A(eh,"yt-about-this-ad-renderer",function(){if(VU2===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;fPO===void 0&&(fPO=document.createElement("template"));var T=fPO;I.call(B,T.content.cloneNode(!0),E.content.firstChild);VU2=E}E=VU2;return E},{mode:2});var Ft8;var DA1;var l5=function(E){var B=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=B.message;"stack"in B&&(this.stack=B.stack);this.maxFileSizeMB=E;Object.setPrototypeOf(this,l5.prototype)};
_.L(l5,Error);var KtL=function(E,B){var I=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=I.message;"stack"in I&&(this.stack=I.stack);this.minWidth=E;this.minHeight=B;Object.setPrototypeOf(this,KtL.prototype)};
_.L(KtL,Error);var R6L=function(E){this.requirements=E;this.JSC$18450_maxFileSize=E.maxFileSizeMB*1024*1024},Esm=function(E,B){if(B.size>E.JSC$18450_maxFileSize)throw new l5(E.requirements.maxFileSizeMB);
};var ByH=function(E,B){this.canvas=E;this.imageEditorBuilder=B};
ByH.prototype.addEventListeners=function(E){var B=function(e){$JH(E,e)};
this.JSC$18456_mouseDownEvent=B;var I=function(e){I5I(E,e)};
this.JSC$18456_mouseMoveEvent=I;var T=function(){Ty9(E)};
this.JSC$18456_mouseUpEvent=T;this.canvas.addEventListener("mousedown",B);this.canvas.addEventListener("mousemove",I);document.addEventListener("mouseup",T)};
ByH.prototype.removeEventListeners=function(){this.JSC$18456_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18456_mouseDownEvent);this.JSC$18456_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18456_mouseMoveEvent);this.JSC$18456_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18456_mouseUpEvent)};
var eMs=function(E,B){E.removeEventListeners();return new Promise(function(I){var T=new Image;T.crossOrigin="anonymous";T.onload=function(){var e=E.imageEditorBuilder(E.canvas,T);E.addEventListeners(e);I(e)};
T.src=B})},co=function(E,B,I,T,e,c,Y,v){this.canvas=E;
this.image=B;this.requiredRatio=I;this.minImageCropDimension=T;this.minOutputImageResolution=e;this.component=c;this.styleFocusedCorner=v===void 0?!0:v;this.action=2;this.focusedCorner=this.resizeCorner=0;E=this.canvas.getContext("2d");if(!E)throw Error("ql");this.ctx=E;this.canvasMargin=Y!=null?Y:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;Y=this.image;E=this.canvasInnerWidth/Y.width;Y.height*E>912&&(E=Y.width/Y.height*912/Y.width);Y=E;this.scaledImageWidth=this.canvas.width%2?
tjt(this.image.width*Y):kPs(this.image.width*Y);this.scaledImageHeight=Math.round(this.image.height*Y);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18459_overlayMarginBottom=this.JSC$18459_overlayMarginTop=this.canvasMargin;this.JSC$18459_overlayMarginRight=this.JSC$18459_overlayMarginLeft=this.horizontalMargin;this.JSC$18459_overlayWidth=this.scaledImageWidth;this.JSC$18459_overlayHeight=this.scaledImageHeight;
E=this.image.width/this.image.height;E>this.requiredRatio?(this.JSC$18459_overlayWidth=this.canvas.width%2?tjt(this.scaledImageHeight*this.requiredRatio):kPs(this.scaledImageHeight*this.requiredRatio),this.JSC$18459_overlayMarginRight=this.JSC$18459_overlayMarginLeft=(this.canvas.width-this.JSC$18459_overlayWidth)/2):E<this.requiredRatio&&(this.JSC$18459_overlayHeight=this.canvas.height%2?tjt(this.scaledImageWidth/this.requiredRatio):kPs(this.scaledImageWidth/this.requiredRatio),this.JSC$18459_overlayMarginBottom=
this.JSC$18459_overlayMarginTop=(this.canvas.height-this.JSC$18459_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*Y,this.scaledImageWidth);l5t(this)};
co.prototype.getContext=function(){return this.ctx};
var $JH=function(E,B){B={x:Math.round(B.pageX-E.canvas.getBoundingClientRect().left),y:Math.round(B.pageY-E.canvas.getBoundingClientRect().top)};E.dragStart=B;cr8(E,B)!==0?(E.action=1,iEg(E,B),E.resizeCorner=cr8(E,B)):B.x>E.JSC$18459_overlayMarginLeft&&B.x<E.JSC$18459_overlayMarginLeft+E.JSC$18459_overlayWidth&&B.y>E.JSC$18459_overlayMarginTop&&B.y<E.JSC$18459_overlayMarginTop+E.JSC$18459_overlayHeight&&(E.action=0)},p59=function(E,B){switch(B){case 1:return{x:E.JSC$18459_overlayMarginLeft,
y:E.JSC$18459_overlayMarginTop};case 2:return{x:E.JSC$18459_overlayMarginLeft,y:E.JSC$18459_overlayMarginTop+E.JSC$18459_overlayHeight};case 3:return{x:E.JSC$18459_overlayMarginLeft+E.JSC$18459_overlayWidth,y:E.JSC$18459_overlayMarginTop};case 4:return{x:E.JSC$18459_overlayMarginLeft+E.JSC$18459_overlayWidth,y:E.JSC$18459_overlayMarginTop+E.JSC$18459_overlayHeight};default:throw Error("rl");}},a5s=function(E,B){if(E.focusedCorner!==0){E.dragStart=p59(E,E.focusedCorner);
E.action=1;E.resizeCorner=E.focusedCorner;var I=E.dragStart.x,T=E.dragStart.y;switch(B){case 0:E.focusedCorner===1||E.focusedCorner===4?(I-=10,T-=10):(I-=10,T+=10);break;case 1:E.focusedCorner===1||E.focusedCorner===4?(I+=10,T+=10):(I+=10,T-=10);break;case 2:I=E.focusedCorner===1||E.focusedCorner===4?I-10:I+10;T-=10;break;case 3:I=E.focusedCorner===1||E.focusedCorner===4?I+10:I-10;T+=10;break;default:throw Error("sl");}YNm(E,{x:I,y:T});l5t(E);E.action=2;E.dragStart=void 0}},I5I=function(E,B){B={x:Math.round(B.pageX-
E.canvas.getBoundingClientRect().left),
y:Math.round(B.pageY-E.canvas.getBoundingClientRect().top)};iEg(E,B);switch(E.action){case 1:YNm(E,B);break;case 0:E.dragStart&&(E.JSC$18459_overlayMarginLeft=Math.max(E.horizontalMargin,Math.min(E.JSC$18459_overlayMarginLeft-(E.dragStart.x-B.x),E.horizontalMargin+E.scaledImageWidth-E.JSC$18459_overlayWidth)),E.JSC$18459_overlayMarginRight=E.canvas.width-E.JSC$18459_overlayMarginLeft-E.JSC$18459_overlayWidth,E.JSC$18459_overlayMarginTop=Math.max(E.canvasMargin,Math.min(E.JSC$18459_overlayMarginTop-
(E.dragStart.y-B.y),E.scaledImageHeight-E.JSC$18459_overlayHeight+E.canvasMargin)),E.JSC$18459_overlayMarginBottom=E.canvas.height-(E.JSC$18459_overlayMarginTop+E.JSC$18459_overlayHeight));break;default:return}l5t(E);E.dragStart=B},Ty9=function(E){E.action=2;
E.dragStart=void 0;document.body.style.cursor="auto"},iEg=function(E,B){switch(cr8(E,B)){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:E.action!==1&&(document.body.style.cursor="auto")}},cr8=function(E,B){var I=E.JSC$18459_overlayMarginLeft-5,T=E.JSC$18459_overlayMarginTop-5,e=E.JSC$18459_overlayMarginLeft+E.JSC$18459_overlayWidth-5;
E=E.JSC$18459_overlayMarginTop+E.JSC$18459_overlayHeight-5;return vsd(B,{x:I,y:T})?1:vsd(B,{x:e,y:T})?3:vsd(B,{x:I,y:E})?2:vsd(B,{x:e,y:E})?4:0},vsd=function(E,B){return E.x>=B.x&&E.x<=B.x+10&&E.y>=B.y&&E.y<=B.y+10},YNm=function(E,B){if(E.dragStart)switch(E.resizeCorner){case 2:Math.abs((E.JSC$18459_overlayMarginLeft+E.JSC$18459_overlayWidth-B.x)/(B.y-E.JSC$18459_overlayMarginTop))>=E.requiredRatio?yr8(E,B.x):CP9(E,B.y);
break;case 1:Math.abs((E.JSC$18459_overlayMarginLeft+E.JSC$18459_overlayWidth-B.x)/(E.JSC$18459_overlayMarginTop+E.JSC$18459_overlayHeight-B.y))>=E.requiredRatio?w52(E,B.x):CP9(E,B.y);break;case 4:Math.abs((B.x-E.JSC$18459_overlayMarginLeft)/(B.y-E.JSC$18459_overlayMarginTop))>=E.requiredRatio?yr8(E,B.x):ZE1(E,B.y);break;case 3:Math.abs((B.x-E.JSC$18459_overlayMarginLeft)/(E.JSC$18459_overlayMarginTop+E.JSC$18459_overlayHeight-B.y))>=E.requiredRatio?w52(E,B.x):ZE1(E,B.y);break;default:throw Error("tl");
}},yr8=function(E,B){var I=E.JSC$18459_overlayMarginTop;
E.JSC$18459_overlayMarginBottom=PP1(E,B);E.JSC$18459_overlayHeight=E.canvas.height-E.JSC$18459_overlayMarginBottom-I;E.JSC$18459_overlayWidth=Math.round(E.JSC$18459_overlayHeight*E.requiredRatio);zMI(E)},w52=function(E,B){var I=E.JSC$18459_overlayMarginTop+E.JSC$18459_overlayHeight;
E.JSC$18459_overlayMarginTop=PP1(E,B);E.JSC$18459_overlayHeight=I-E.JSC$18459_overlayMarginTop;E.JSC$18459_overlayWidth=Math.round(E.JSC$18459_overlayHeight*E.requiredRatio);zMI(E)},zMI=function(E){switch(E.resizeCorner){case 2:case 1:E.JSC$18459_overlayMarginLeft=E.canvas.width-E.JSC$18459_overlayMarginRight-E.JSC$18459_overlayWidth;
break;case 4:case 3:E.JSC$18459_overlayMarginRight=E.canvas.width-E.JSC$18459_overlayMarginLeft-E.JSC$18459_overlayWidth;break;default:throw Error("tl");}},CP9=function(E,B){var I=E.JSC$18459_overlayMarginLeft+E.JSC$18459_overlayWidth;
E.JSC$18459_overlayMarginLeft=mJ7(E,B);E.JSC$18459_overlayWidth=I-E.JSC$18459_overlayMarginLeft;E.JSC$18459_overlayHeight=Math.round(E.JSC$18459_overlayWidth/E.requiredRatio);Qf1(E)},ZE1=function(E,B){var I=E.JSC$18459_overlayMarginLeft;
E.JSC$18459_overlayMarginRight=mJ7(E,B);E.JSC$18459_overlayWidth=E.canvas.width-E.JSC$18459_overlayMarginRight-I;E.JSC$18459_overlayHeight=Math.round(E.JSC$18459_overlayWidth/E.requiredRatio);Qf1(E)},Qf1=function(E){switch(E.resizeCorner){case 2:case 4:E.JSC$18459_overlayMarginBottom=E.canvas.height-E.JSC$18459_overlayMarginTop-E.JSC$18459_overlayHeight;
break;case 1:case 3:E.JSC$18459_overlayMarginTop=E.canvas.height-E.JSC$18459_overlayMarginBottom-E.JSC$18459_overlayHeight;break;default:throw Error("tl");}},PP1=function(E,B){switch(E.resizeCorner){case 2:B=E.canvas.height-(E.JSC$18459_overlayMarginTop+dJt(E,B));
break;case 4:B=E.canvas.height-(E.JSC$18459_overlayMarginTop+hMI(E,B));break;case 1:B=E.JSC$18459_overlayMarginTop+E.JSC$18459_overlayHeight-dJt(E,B);break;case 3:B=E.JSC$18459_overlayMarginTop+E.JSC$18459_overlayHeight-hMI(E,B);break;default:throw Error("tl");}return Math.max(B,E.canvasMargin)},dJt=function(E,B){B=E.JSC$18459_overlayMarginLeft+E.JSC$18459_overlayWidth-Math.max(B,E.horizontalMargin);
B=B<0?E.JSC$18459_overlayWidth:Math.max(B,E.minOverlayWidth);return Math.round(B/E.requiredRatio)},hMI=function(E,B){B=E.canvas.width-Math.max(E.canvas.width-B,E.horizontalMargin)-E.JSC$18459_overlayMarginLeft;
B=B<0?E.JSC$18459_overlayWidth:Math.max(B,E.minOverlayWidth);return Math.round(B/E.requiredRatio)},mJ7=function(E,B){switch(E.resizeCorner){case 2:B=E.canvas.width-E.JSC$18459_overlayMarginRight-sfI(E,B);
break;case 4:B=E.canvas.width-E.JSC$18459_overlayMarginLeft-sfI(E,B);break;case 1:B=E.canvas.width-E.JSC$18459_overlayMarginRight-upI(E,B);break;case 3:B=E.canvas.width-E.JSC$18459_overlayMarginLeft-upI(E,B);break;default:throw Error("tl");}return Math.max(B,E.horizontalMargin)},sfI=function(E,B){B=E.canvas.height-Math.max(E.canvas.height-B,E.canvasMargin)-E.JSC$18459_overlayMarginTop;
return B<0?E.JSC$18459_overlayWidth:Math.max(Math.round(B*E.requiredRatio),E.minOverlayWidth)},upI=function(E,B){B=E.JSC$18459_overlayMarginTop+E.JSC$18459_overlayHeight-Math.max(B,E.canvasMargin);
return B<0?E.JSC$18459_overlayWidth:Math.max(Math.round(B*E.requiredRatio),E.minOverlayWidth)},l5t=function(E){E.ctx.clearRect(0,0,E.canvas.width,E.canvas.height);
E.ctx.drawImage(E.image,0,0,E.image.width,E.image.height,E.horizontalMargin,E.canvasMargin,E.canvas.width-2*E.horizontalMargin,E.scaledImageHeight);E.ctx.fillStyle="rgba(0, 0, 0, 0.7)";E.ctx.fillRect(E.horizontalMargin,E.JSC$18459_overlayMarginTop,E.JSC$18459_overlayMarginLeft-E.horizontalMargin,E.JSC$18459_overlayHeight);E.ctx.fillRect(E.JSC$18459_overlayMarginLeft+E.JSC$18459_overlayWidth,E.JSC$18459_overlayMarginTop,E.JSC$18459_overlayMarginRight-E.horizontalMargin,E.JSC$18459_overlayHeight);E.ctx.fillRect(E.horizontalMargin,
E.canvasMargin,E.scaledImageWidth,E.JSC$18459_overlayMarginTop-E.canvasMargin);E.ctx.fillRect(E.horizontalMargin,E.JSC$18459_overlayMarginTop+E.JSC$18459_overlayHeight,E.scaledImageWidth,E.JSC$18459_overlayMarginBottom-E.canvasMargin);E.drawOverlay();E.component&&_.$O(E.component,"image-updated")};
co.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18459_overlayMarginLeft,this.JSC$18459_overlayMarginTop,this.JSC$18459_overlayWidth,this.JSC$18459_overlayHeight);LT7(this)};
var LT7=function(E){var B=E.JSC$18459_overlayMarginLeft-5,I=E.JSC$18459_overlayMarginTop-5,T=E.JSC$18459_overlayMarginLeft+E.JSC$18459_overlayWidth-5,e=E.JSC$18459_overlayMarginTop+E.JSC$18459_overlayHeight-5;E.ctx.fillStyle="#FFF";E.ctx.fillRect(B,I,10,10);E.ctx.strokeRect(B,I,10,10);E.ctx.fillRect(T,I,10,10);E.ctx.strokeRect(T,I,10,10);E.ctx.fillRect(B,e,10,10);E.ctx.strokeRect(B,e,10,10);E.ctx.fillRect(T,e,10,10);E.ctx.strokeRect(T,e,10,10);if(E.focusedCorner!==0&&E.styleFocusedCorner){E.ctx.lineWidth=
4;E.ctx.strokeStyle="#3EA6FF";switch(E.focusedCorner){case 1:--B;--I;break;case 2:--B;I=e-1;break;case 3:B=T-1;--I;break;case 4:B=T-1;I=e-1;break;default:return}E.ctx.strokeRect(B,I,12,12)}};
co.prototype.crop=function(E,B){B=B===void 0?!0:B;var I=this.image.width/this.scaledImageWidth,T=document.createElement("canvas"),e=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],c=this.JSC$18459_overlayWidth*I,Y=this.JSC$18459_overlayHeight*I;T.width=Math.max(c,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);T.height=Math.max(Y,e);E&&(T.width=Math.min(T.width,T.height),T.height=Math.min(T.width,T.height));
E=T.getContext("2d");if(!E)throw Error("hl");e=(this.JSC$18459_overlayMarginLeft-this.horizontalMargin)*I;I*=this.JSC$18459_overlayMarginTop-this.canvasMargin;B||(E.fillStyle="white",E.fillRect(0,0,T.width,T.height));E.drawImage(this.image,e,I,c,Y,0,0,T.width,T.height);return T};var xJ7=function(E,B,I,T,e){co.call(this,E,B,I,T,void 0,e,8,!1)};
_.L(xJ7,co);xJ7.prototype.drawOverlay=function(){var E=this.getContext(),B=this.JSC$18459_overlayWidth,I=this.JSC$18459_overlayHeight,T=this.JSC$18459_overlayMarginTop,e=this.JSC$18459_overlayMarginLeft;E.lineWidth=2;E.strokeStyle="#3EA6FF";E.beginPath();E.arc(e+B/2,T+I/2,B/2,0,2*Math.PI);E.stroke();E.strokeRect(e,T,B,I);LT7(this)};
var G99={maxFileSizeMB:15,minWidth:98,minHeight:98},OEs=["image/png","image/jpeg","image/gif"],i5=function(){var E=_.r.apply(this,arguments)||this;E.fileSelectorFocusListener=null;E.errorMessage=null;E.isLoading=!0;E.hideContainer=!0;E.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return E};
_.L(i5,_.r);_.l=i5.prototype;_.l.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.l.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.l.computePlaylistThumbnail=function(E){return E==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.l.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.I2(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.l.setErrorState=function(E){this.resetErrorState();E&&(this.errorMessage=E)};
_.l.showPopup=function(){var E=this;this.hideContainer=!1;_.PC(_.Ll,function(){_.$O(E.hostElement,"yt-refit")});
this.isLoading=!1};
_.l.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.l.closePopup=function(){this.resetFileSelector();_.I2(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onCancelTap=function(){this.isPlaylistThumbnail||_.I2(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.l.openFileSelector=function(){var E=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.PC(_.Ll,function(){setTimeout(function(){if(!E.fileSelector.files||E.fileSelector.files.length===0)E.onCancelTap();E.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(B){B instanceof Error?_.xV(B):_.GF(new _.P7(JSON.stringify(B)))}};
_.l.handleFileSelection=function(){var E=this,B,I,T,e,c,Y;return _.a(function(v){switch(v.nextAddress){case 1:_.q7(v,2);if(!E.fileSelector.files||!E.imageEditorCanvas)return E.onCancelTap(),v.return();B=E.fileSelector.files[0];Esm(E.imageChecker,B);_.q7(v,4);return _.C(v,Pmt(B),6);case 6:E.mimeType=v.yieldResult;_.W7(v,5,2);break;case 4:_.RG(v,2),_.I2(E.hostElement,"yt-image-selection-error-action",[(I=E.data)==null?void 0:I.genericImageLoadErrorMessage]),E.onCancelTap();case 5:T=new FileReader;T.addEventListener("load",
function(){var y,Z;return _.a(function(P){if(P.nextAddress==1){if(!T.result)return _.OG(Error("jl")),P.return();y=T.result;Z=new Image;Z.src=y;Z.onload=function(){try{var z=E.imageChecker;if(Z.width<z.requirements.minWidth||Z.height<z.requirements.minHeight)throw new KtL(z.requirements.minWidth,z.requirements.minHeight);}catch(u){if(u instanceof KtL){var m;_.I2(E.hostElement,"yt-image-selection-error-action",[(m=E.data)==null?void 0:m.imageDimensionErrorMessage]);E.logImageDimensionErrorVe()}else u instanceof
Error?_.xV(u):(z=new _.P7(JSON.stringify(u)),_.xV(z));E.onCancelTap()}E.showPopup()};
Z.onerror=function(){var z;_.I2(E.hostElement,"yt-image-selection-error-action",[(z=E.data)==null?void 0:z.genericImageLoadErrorMessage]);E.onCancelTap()};
return _.C(P,eMs(E.imageEditorCanvas,y),2)}E.imageEditor=P.yieldResult;E.updatePositionOfAllCorners();E.addEventListeners(E.imageEditor);_.ER(P)})},!1);
T.readAsDataURL(B);_.W7(v,0);break;case 2:e=_.RG(v),e instanceof l5?_.I2(E.hostElement,"yt-image-selection-error-action",[(c=E.data)==null?void 0:c.imageSizeErrorMessage]):(e instanceof Error?_.xV(e):_.GF(new _.P7(JSON.stringify(e))),_.I2(E.hostElement,"yt-image-selection-error-action",[(Y=E.data)==null?void 0:Y.genericImageLoadErrorMessage])),E.onCancelTap(),_.ER(v)}})};
_.l.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var E=_.eO(_.lu(),{veType:232707,visualElement:_.wA(232707)});E&&(E={visualElement:E},_.TA().reportShown(E))}};
_.l.handleImageSelectionErrorAction=function(E){this.isPlaylistThumbnail&&_.iuf(this.hostElement,E)};
_.l.convertToImageFormatBundle=function(E){var B=this,I,T,e;return _.a(function(c){switch(c.nextAddress){case 1:return I=E.toDataURL(B.outputMimeType,1),_.C(c,zJ7(I),2);case 2:T=c.yieldResult;_.q7(c,3);Esm(B.imageChecker,T);_.W7(c,4);break;case 3:e=_.RG(c);if(!(e instanceof l5))throw e;_.OG(new _.P7("Output size is bigger than input size for image",B.mimeType,B.outputMimeType,T.size));I=E.toDataURL("image/jpeg",.95);return _.C(c,zJ7(I),6);case 6:T=c.yieldResult;case 4:return c.return({dataUrl:I,imageFile:T})}})};
_.l.handleUploadImageToScottyCommand=function(E){var B=this,I,T,e,c,Y,v,y,Z,P,z;return _.a(function(m){switch(m.nextAddress){case 1:if(!B.imageEditor||!_.h(E,Acm))return m.return();I=_.h(E,Acm).scottyUploadUrl;if(!I){var u=new _.P7("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.xV(u);return m.return()}_.q7(m,2);B.setLoadingState();T=B.imageEditor.crop(!1,!1);return _.C(m,B.convertToImageFormatBundle(T),4);case 4:return e=m.yieldResult,_.C(m,wP1(e.imageFile,I),5);case 5:c=
m.yieldResult;((Y=B.data)==null?0:Y.onUploadEndpoint)?(v=B.buildUploadServiceEndpoint(c),B.ytComponentBehavior.resolveCommand(v),y=_.h(v,_.nU),((Z=y)==null?0:Z.params)?B.closePopup():B.resetFileSelector()):(_.I2(B.hostElement,"yt-image-updated-action",[e.dataUrl,c]),B.closePopup());_.W7(m,0);break;case 2:P=_.RG(m),B.setErrorState((z=B.data)==null?void 0:z.uploadErrorMessage),P instanceof Error?_.xV(P):(u=new _.P7(JSON.stringify(P)),_.xV(u)),_.ER(m)}})};
_.l.buildUploadServiceEndpoint=function(E){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",E),this.data.onUploadEndpoint):null};
_.l.dataChanged=function(){var E=this,B;return _.a(function(I){if(I.nextAddress==1){if(!E.data||!E.canvasElement)return I.return();E.data.imageRatio&&E.data.minImageCropWidth||_.GF(new _.P7("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));B=function(T,e){return E.data.imageType==="IMAGE_TYPE_AVATAR"?new xJ7(T,e,E.data.imageRatio,[E.data.minImageCropWidth,E.data.minImageCropWidth/E.data.imageRatio],E.hostElement):new co(T,e,E.data.imageRatio,[E.data.minImageCropWidth,
E.data.minImageCropWidth/E.data.imageRatio],void 0,E.hostElement,8,!1)};
E.imageEditorCanvas=new ByH(E.canvasElement,B);return E.data.url?_.C(I,eMs(E.imageEditorCanvas,E.data.url),3):(E.hideContainer=!0,E.openFileSelector(),I.jumpTo(0))}E.imageEditor=I.yieldResult;E.showPopup();E.addEventListeners(E.imageEditor);_.ER(I)})};
_.l.addEventListeners=function(E){this.removeEventListeners();var B=function(e){$JH(E,e)};
this.JSC$18467_mouseDownEvent=B;var I=function(e){I5I(E,e)};
this.JSC$18467_mouseMoveEvent=I;var T=function(){Ty9(E)};
this.JSC$18467_mouseUpEvent=T;this.topLeftCorner.addEventListener("mousedown",B);this.topLeftCorner.addEventListener("mousemove",I);this.topLeftCorner.addEventListener("mouseup",T);this.topRightCorner.addEventListener("mousedown",B);this.topRightCorner.addEventListener("mousemove",I);this.topRightCorner.addEventListener("mouseup",T);this.bottomLeftCorner.addEventListener("mousedown",B);this.bottomLeftCorner.addEventListener("mousemove",I);this.bottomLeftCorner.addEventListener("mouseup",T);this.bottomRightCorner.addEventListener("mousedown",
B);this.bottomRightCorner.addEventListener("mousemove",I);this.bottomRightCorner.addEventListener("mouseup",T)};
_.l.removeEventListeners=function(){this.JSC$18467_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18467_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18467_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18467_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18467_mouseDownEvent));this.JSC$18467_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18467_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18467_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18467_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18467_mouseMoveEvent));this.JSC$18467_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18467_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18467_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18467_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18467_mouseUpEvent))};
_.l.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var E=document.activeElement;E&&E.shadowRoot&&E.shadowRoot.activeElement;)E=E.shadowRoot.activeElement;switch(E){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};
_.l.updatePositionOfCorner=function(E,B){var I=E.y-B.offsetHeight/2+4;B.style.left=E.x-B.offsetWidth/2+16+"px";B.style.top=I+"px"};
_.l.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var E=_.p([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),B=E.next();!B.done;B=E.next()){B=B.value;var I=p59(this.imageEditor,B.corner);this.updatePositionOfCorner(I,B.div)}};
_.l.onLeft=function(E){this.imageEditor&&this.setFocusInImageEditor()&&(a5s(this.imageEditor,0),this.updatePositionOfAllCorners(),E.preventDefault())};
_.l.onRight=function(E){this.imageEditor&&this.setFocusInImageEditor()&&(a5s(this.imageEditor,1),this.updatePositionOfAllCorners(),E.preventDefault())};
_.l.onUp=function(E){this.imageEditor&&this.setFocusInImageEditor()&&(a5s(this.imageEditor,2),this.updatePositionOfAllCorners(),E.preventDefault())};
_.l.onDown=function(E){this.imageEditor&&this.setFocusInImageEditor()&&(a5s(this.imageEditor,3),this.updatePositionOfAllCorners(),E.preventDefault())};
_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Up.Object.defineProperties(i5.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&OEs.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var E,B,I;((B=this.data)==null?0:B.imageRatio)&&((I=this.data)==null?0:I.minImageCropWidth)?E={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:E=G99;return new R6L(E)}}});
i5.prototype.updatePositionOfAllCorners=i5.prototype.updatePositionOfAllCorners;i5.prototype.dataChanged=i5.prototype.dataChanged;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],i5.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],i5.prototype,"ytComponentBehavior",void 0);_.k([_.g(_.mG),_.t("design:type",Object)],i5.prototype,"ironA11yKeysBehavior",void 0);
_.k([_.$7("#canvas"),_.t("design:type",HTMLCanvasElement)],i5.prototype,"canvasElement",void 0);_.k([_.$7("#file-selector"),_.t("design:type",HTMLInputElement)],i5.prototype,"fileSelector",void 0);_.k([_.$7("#top-left-corner"),_.t("design:type",HTMLDivElement)],i5.prototype,"topLeftCorner",void 0);_.k([_.$7("#top-right-corner"),_.t("design:type",HTMLDivElement)],i5.prototype,"topRightCorner",void 0);
_.k([_.$7("#bottom-left-corner"),_.t("design:type",HTMLDivElement)],i5.prototype,"bottomLeftCorner",void 0);_.k([_.$7("#bottom-right-corner"),_.t("design:type",HTMLDivElement)],i5.prototype,"bottomRightCorner",void 0);_.k([_.X(),_.t("design:type",Object)],i5.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],i5.prototype,"errorMessage",void 0);_.k([_.X(),_.t("design:type",Object)],i5.prototype,"isLoading",void 0);_.k([_.X(),_.t("design:type",Object)],i5.prototype,"hideContainer",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.t("design:type",Boolean)],i5.prototype,"isPlaylistThumbnail",void 0);_.k([_.i6("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype",Promise)],i5.prototype,"dataChanged",null);_.k([_.RN("image-updated"),_.RN("yt-refit"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],i5.prototype,"updatePositionOfAllCorners",null);
i5=_.k([_.QE({is:"yt-image-editor-renderer",disableElementRegistration:!0})],i5);
_.A(i5,"yt-image-editor-renderer",function(){if(DA1===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Ft8===void 0&&(Ft8=document.createElement("template"));var T=Ft8;I.call(B,T.content.cloneNode(!0),E.content.firstChild);DA1=E}E=DA1;return E},{mode:2});var ns7;var MkO;var p5=function(){return _.r.apply(this,arguments)||this};
_.L(p5,_.r);p5.prototype.updateMinutesFromBinding=function(E){this.handleMinutesChanged&&this.handleMinutesChanged(E)};
p5.prototype.updateSecondsFromBinding=function(E){this.handleSecondsChanged&&this.handleSecondsChanged(E)};
p5.prototype.updateDescriptionFromBinding=function(E){this.handleDescriptionChanged&&this.handleDescriptionChanged(E)};
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],p5.prototype,"ytComponentBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],p5.prototype,"data",void 0);_.k([_.X(),_.t("design:type",String)],p5.prototype,"minutes",void 0);_.k([_.X(),_.t("design:type",String)],p5.prototype,"seconds",void 0);_.k([_.X(),_.t("design:type",String)],p5.prototype,"description",void 0);_.k([_.X(),_.t("design:type",Function)],p5.prototype,"handleMinutesChanged",void 0);
_.k([_.X(),_.t("design:type",Function)],p5.prototype,"handleSecondsChanged",void 0);_.k([_.X(),_.t("design:type",Function)],p5.prototype,"handleDescriptionChanged",void 0);_.k([_.X(),_.t("design:type",Number)],p5.prototype,"characterLimit",void 0);_.k([_.X(),_.t("design:type",Number)],p5.prototype,"textNumRows",void 0);p5=_.k([_.QE({is:"yt-report-details-form-content",disableElementRegistration:!0})],p5);
_.A(p5,"yt-report-details-form-content",function(){if(MkO===void 0){var E=document.createElement("template");_.G(E,'\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>');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;ns7===void 0&&(ns7=document.createElement("template"));var T=ns7;I.call(B,T.content.cloneNode(!0),E.content.firstChild);MkO=E}E=MkO;return E},{mode:2});var HEd;var Ny1;var Y$=function(){var E=_.r.apply(this,arguments)||this;E.updateMinutesFromBinding=function(B){E.minutes=B.detail.value};
E.updateSecondsFromBinding=function(B){E.seconds=B.detail.value};
E.updateDescriptionFromBinding=function(B){E.description=B.detail.value};
return E};
_.L(Y$,_.r);_.l=Y$.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.l.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"}}}};
_.l.ready=function(){_.n(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.l.onSubmitYtAction=function(E){var B=E.detail;B.actionName==="yt-service-request"&&(B=B.args[1],B.flagEndpoint&&(E.stopPropagation(),this.refireAction(B)))};
_.l.refireAction=function(E){var B={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(B.vss_id=this.vssId);_.l1(this.hostElement,[E,B]);this.submitDisabled=!0};
_.l.dataChanged=function(){var E=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var B=_.jx();B&&B.getPlayerPromise().then(function(I){var T=I.getOption("cc","track")||I.getOption("captions","track");T&&(E.vssId=T.vss_id);I=I.getCurrentTime();E.minutes=Math.floor(I/60).toString();E.seconds=(Math.floor(I)%60).toString()})};
_.l.updateSubmitButtonState=function(){var E;((E=this.data)==null?0:E.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==="")};
_.l.onYtServiceRequestCompleted=function(){_.I2(this.hostElement,"yt-close-popup-action")};
_.l.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Up.Object.defineProperties(Y$.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var E;return((E=this.data)==null?void 0:E.textNumRows)||4}}});
Y$.prototype.onYtServiceRequestError=Y$.prototype.onYtServiceRequestError;Y$.prototype.onYtServiceRequestCompleted=Y$.prototype.onYtServiceRequestCompleted;Y$.prototype.updateSubmitButtonState=Y$.prototype.updateSubmitButtonState;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Y$.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);
_.k([_.X({observer:"dataChanged"}),_.t("design:type",Object)],Y$.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Boolean)],Y$.prototype,"submitDisabled",void 0);_.k([_.X(),_.t("design:type",String)],Y$.prototype,"minutes",void 0);_.k([_.X(),_.t("design:type",String)],Y$.prototype,"seconds",void 0);_.k([_.X(),_.t("design:type",String)],Y$.prototype,"description",void 0);_.k([_.X(),_.t("design:type",String)],Y$.prototype,"vssId",void 0);
_.k([_.X({value:_.HA("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.t("design:type",Boolean)],Y$.prototype,"isMusic",void 0);_.k([_.S("data"),_.t("design:type",Number),_.t("design:paramtypes",[])],Y$.prototype,"characterLimit",null);_.k([_.S("data"),_.t("design:type",Number),_.t("design:paramtypes",[])],Y$.prototype,"textNumRows",null);
_.k([_.i6("minutes","seconds","description","submitDisabled"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Y$.prototype,"updateSubmitButtonState",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Y$.prototype,"onYtServiceRequestCompleted",null);
_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Y$.prototype,"onYtServiceRequestError",null);Y$=_.k([_.QE({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Y$);
_.A(Y$,"yt-report-details-form-renderer",function(){if(Ny1===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;HEd===void 0&&(HEd=document.createElement("template"));var T=HEd;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Ny1=E}E=Ny1;return E});var gs2;var SNL;var Jr9;var WT8;var a1=function(){return _.r.apply(this,arguments)||this};
_.L(a1,_.r);
a1.prototype.onCheckedChanged_=function(){if(this.data){var E=_.n(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.I2(this.hostElement,"yt-additional-detail-checkbox-update",[E]):this.data.identifier==="yt-hide-user-checkbox"?_.I2(this.hostElement,"yt-hide-user-checkbox-update",[E]):E&&this.data.enableCommand?_.I2(this.hostElement,"yt-modify-report-form-command",[_.h(this.data.enableCommand,qI9)]):!E&&this.data.disableCommand&&_.I2(this.hostElement,
"yt-modify-report-form-command",[_.h(this.data.enableCommand,qI9)])}};
a1.prototype.onLabelTap_=function(E){E.target.tagName!="A"&&(_.n(this.hostElement).querySelector("#checkbox").checked=!_.n(this.hostElement).querySelector("#checkbox").checked)};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],a1.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],a1.prototype,"data",void 0);a1=_.k([_.QE({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],a1);
_.A(a1,"yt-boolean-form-field-v2-renderer",function(){if(WT8===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Jr9===void 0&&(Jr9=document.createElement("template"));var T=Jr9;I.call(B,T.content.cloneNode(!0),E.content.firstChild);WT8=E}E=WT8;return E});var vo=function(){var E=_.r.apply(this,arguments)||this;E.canShowAdditionalDetailCheckbox=!1;E.canShowCheckbox=!1;E.keepDropdownFocusedAfterSelection=!0;return E};
_.L(vo,_.r);vo.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}}}}};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],vo.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],vo.prototype,"canShowAdditionalDetailCheckbox",void 0);_.k([_.X(),_.t("design:type",Object)],vo.prototype,"canShowCheckbox",void 0);_.k([_.X(),_.t("design:type",Object)],vo.prototype,"keepDropdownFocusedAfterSelection",void 0);
vo=_.k([_.QE({is:"yt-report-form-modal-content",disableElementRegistration:!0})],vo);
_.A(vo,"yt-report-form-modal-content",function(){if(SNL===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;gs2===void 0&&(gs2=document.createElement("template"));var T=gs2;I.call(B,T.content.cloneNode(!0),E.content.firstChild);SNL=E}E=SNL;return E},{mode:2});var X58;var rrm;var yo=function(){var E=_.r.apply(this,arguments)||this;E.submitting=!1;E.submitButtonDisabled=!0;E.command=null;E.canShowCheckbox=!1;E.canShowAdditionalDetailCheckbox=!1;E.canShowNextButton=!1;E.additionalDetailCheckboxChecked=!1;E.refitJob=0;E.keepDropdownFocusedAfterSelection=!0;E.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 E};
_.L(yo,_.r);_.l=yo.prototype;_.l.created=function(){this.refitJob=0};
_.l.attached=function(){this.JSC$18490_scroller&&(this.JSC$18490_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18490_scroller.attached&&typeof this.JSC$18490_scroller.attached==="function"&&this.JSC$18490_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(E){E&&(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,E.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),E.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.l.onYtPopupOpened=function(){var E=_.jx();E&&E.getPlayerPromise().then(function(B){B.pauseVideo()})};
_.l.onYtNavigate=function(E){_.h(E.detail.endpoint,_.ywR)&&(E.stopPropagation(),this.hideReportForm=!0)};
_.l.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.l.onYtServiceRequestCompleted=function(E,B){var I=B.actions;if(I){if(I.length===1&&_.h(I[0],_.pO)){var T;I=((T=_.h(I[0],_.pO))==null?void 0:T.commands)||[]}T=0;for(var e=I.length;T<e;T++)_.h(I[T],_.uU)&&(E.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(I[T]))}if(B.data&&(E=this.get("feedbackResponses",B.data)))for(B=0;B<E.length;B++)if(E[B].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.l.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.l._onDescendantIronResize=function(E){E.stopPropagation();return!1};
_.l.handleReportFormEndpointUpdateAction=function(E){if(E.submitEndpoint){var B=this.command=E.submitEndpoint;B=_.h(B,_.RKZ);if(B==null?0:B.additionalDetailCheckboxChecked)B.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else E.submitNavigationEndpoint?(this.command=E.submitNavigationEndpoint,this.toggleSubmitButton(!1)):E.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:E.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;E.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",E));this.refit()};
_.l.handleConfirmDialogCloseAction=function(E){E.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.l.submitButtonDisabledChanged=function(){var E=this.hostElement.parentElement;E&&E.invalidateTabbables&&E.invalidateTabbables()};
_.l.handleModifyReportFormCommand=function(E){E=this.get("action",E);E==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:E==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:E==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:E==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:E==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:E==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.l.updateDialogStyling=function(){var E,B,I,T,e,c=((e=(E=this.data)==null?void 0:(B=E.optionsSupportedRenderers)==null?void 0:(I=B.optionsRenderer)==null?void 0:(T=I.items)==null?void 0:T.length)!=null?e:0)<=2?0:240;_.Dk(this.hostElement,{"--yt-report-form-modal-renderer-min-width":c+"px"})};
_.l.toggleSubmitButton=function(E){this.submitButtonDisabled=!E;this.submitButtonDisabled=E};
_.l.computeSubmitButtonData=function(E,B){var I={};_.h(B,_.ywR)?I.navigationEndpoint=B:I.command=B||void 0;E&&E.buttonRenderer&&_.a_.extend(I,E.buttonRenderer);return I};
_.l.computeNextButtonData=function(E,B){var I={};if(!E||!E.buttonRenderer)return I;_.a_.extend(I,E.buttonRenderer);if(!B)return I;if(_.h(B,_.ywR))I.navigationEndpoint=p$t(B);else if(I.command=p$t(B),E=_.h(I.command,_.RKZ))E.legalCheckboxChecked=!0;return I};
_.l.computeShowNextButton=function(E,B,I){return!!E&&B&&I};
_.l.refit=function(){var E=this;this.refitJob||(this.refitJob=_.Ll.addLowPriorityJob(function(){_.$O(E.hostElement,"yt-refit");E.refitJob=0}))};
_.l.handleAdditionalDetailCheckboxUpdateAction=function(E){this.additionalDetailCheckboxChecked=E;_.h(this.command,_.RKZ).additionalDetailCheckboxChecked=E};
_.Up.Object.defineProperties(yo,{template:{configurable:!0,enumerable:!0,get:function(){if(rrm===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;X58===void 0&&(X58=document.createElement("template"));var T=X58;I.call(B,T.content.cloneNode(!0),E.content.firstChild);rrm=E}E=rrm;return E}}});
yo.prototype.onYtServiceRequestError=yo.prototype.onYtServiceRequestError;yo.prototype.onYtServiceRequestCompleted=yo.prototype.onYtServiceRequestCompleted;yo.prototype.onYtServiceRequestSent=yo.prototype.onYtServiceRequestSent;yo.prototype.onYtNavigate=yo.prototype.onYtNavigate;yo.prototype.onYtPopupOpened=yo.prototype.onYtPopupOpened;_.k([_.g(_.E6.YtOpenPopupBehavior),_.t("design:type",Object)],yo.prototype,"openPopupBehavior",void 0);
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],yo.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],yo.prototype,"eventForwardingBehavior",void 0);_.k([_.g(_.OI),_.t("design:type",Object)],yo.prototype,"ironResizableBehavior",void 0);_.k([_.X({observer:"dataChanged"}),_.t("design:type",Object)],yo.prototype,"data",void 0);
_.k([_.X(),_.t("design:type",Object)],yo.prototype,"submitting",void 0);_.k([_.X({observer:"submitButtonDisabledChanged"}),_.t("design:type",Object)],yo.prototype,"submitButtonDisabled",void 0);_.k([_.X(),_.t("design:type",Object)],yo.prototype,"command",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],yo.prototype,"hideReportForm",void 0);_.k([_.X(),_.t("design:type",Object)],yo.prototype,"canShowCheckbox",void 0);
_.k([_.X(),_.t("design:type",Object)],yo.prototype,"canShowAdditionalDetailCheckbox",void 0);_.k([_.X(),_.t("design:type",Object)],yo.prototype,"canShowNextButton",void 0);_.k([_.X(),_.t("design:type",Object)],yo.prototype,"additionalDetailCheckboxChecked",void 0);_.k([_.X(),_.t("design:type",Object)],yo.prototype,"refitJob",void 0);_.k([_.X(),_.t("design:type",Object)],yo.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.k([_.$7("#scroller"),_.t("design:type",Object)],yo.prototype,"JSC$18490_scroller",void 0);_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],yo.prototype,"onYtPopupOpened",null);_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],yo.prototype,"onYtNavigate",null);
_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],yo.prototype,"onYtServiceRequestSent",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],yo.prototype,"onYtServiceRequestCompleted",null);
_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],yo.prototype,"onYtServiceRequestError",null);yo=_.k([_.QE({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],yo);var bE1;var osH;var C5=function(){return _.r.apply(this,arguments)||this};
_.L(C5,_.r);_.l=C5.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.l.onVisible=function(){if(_.d("web_ephemeral_actions_focus")){var E,B;(B=_.Q().resolve(_.Fx(_.BJ)))==null||B.enqueue({label:_.U3((E=this.data)==null?void 0:E.messageTitle),elementToFocus:this.hostElement})}};
_.l.onThumbnailLoaded=function(){_.$O(this.hostElement,"yt-refit")};
_.l.onDismissTap=function(){_.I2(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.l.computeAlternateIcon=function(E){return E?E==="BACKSTAGE_ARTWORK"?"backstage:artwork":E:null};
_.l.computeFontFamily=function(E){return E==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.l.computeBackgroundStyle=function(E,B){if(E=this.computeBackgroundImage(E,B))if(E=_.jO(E.thumbnails))return'background-image: url("'+E+'");'};
_.l.computeHasFullHeightImage=function(E){return!(!(E&&E.thumbnails&&E.thumbnails.length>0)||this.modern)};
_.l.isModernStyle=function(E){return E.style==="STYLE_MODERN"};
_.l.computeIcon=function(E,B){if(E&&E.icon)return B?E.iconDark:E.icon};
_.l.computeBackgroundImage=function(E,B){if(E&&E.backgroundImage)return B?E.backgroundImageDark:E.backgroundImage};
_.l.computeLogo=function(E,B){if(E&&E.logo)return B?E.logoDark:E.logo};
_.l.computeShouldShowModernIcon=function(E,B){return E&&!!B};
_.l.getLogoContainerClassName=function(E){return this.logoWithPadding(E)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.l.getLogoImageId=function(E){return this.logoWithPadding(E)?"mealbar-logo-with-padding":"mealbar-logo"};
_.l.logoWithPadding=function(E){var B,I,T;return(E=(B=this.computeLogo(E,this.isDarkTheme))==null?void 0:(I=B.thumbnails)==null?void 0:(T=I[0])==null?void 0:T.height)&&E%31===0?!0:!1};
C5.prototype.onThumbnailLoaded=C5.prototype.onThumbnailLoaded;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.k([_.X({}),_.t("design:type",Object)],C5.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.t("design:type",Boolean)],C5.prototype,"modern",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],C5.prototype,"isDarkTheme",void 0);
_.k([_.X({computed:"computeIcon(data, isDarkTheme)"}),_.t("design:type",Object)],C5.prototype,"icon",void 0);_.k([_.X({computed:"computeLogo(data, isDarkTheme)"}),_.t("design:type",Object)],C5.prototype,"logo",void 0);_.k([_.X({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.t("design:type",Object)],C5.prototype,"backgroundStyle",void 0);_.k([_.X({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.t("design:type",Object)],C5.prototype,"alternateIcon",void 0);
_.k([_.X({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.t("design:type",Boolean)],C5.prototype,"hasFullHeightImage",void 0);_.k([_.X({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.t("design:type",Boolean)],C5.prototype,"useYoutubeSans",void 0);_.k([_.X({computed:"computeShouldShowModernIcon(modern, icon)"}),_.t("design:type",Boolean)],C5.prototype,"shouldShowModernIcon",void 0);
_.k([_.RN("yt-img-shadow-loaded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],C5.prototype,"onThumbnailLoaded",null);C5=_.k([_.QE({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],C5);
_.A(C5,"yt-mealbar-promo-renderer",function(){if(osH===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;bE1===void 0&&(bE1=document.createElement("template"));var T=bE1;I.call(B,T.content.cloneNode(!0),E.content.firstChild);osH=E}E=osH;return E},{mode:2});var Ar7;var jf9;var wN=function(){return _.r.apply(this,arguments)||this};
_.L(wN,_.r);_.l=wN.prototype;_.l.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]]"}}}}}};
_.l.computeHasButtons_=function(E){return!(!E.dismissButton&&!E.acceptButton)};
_.l.computeStyle_=function(E){return E||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.l.observeImpressionEndpoints_=function(){var E=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(B){B.clickTrackingParams&&delete B.clickTrackingParams;_.l1(E.hostElement,[B])})};
_.l.onTap_=function(){_.I2(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
wN.prototype.observeImpressionEndpoints_=wN.prototype.observeImpressionEndpoints_;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],wN.prototype,"ytEventForwardingBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],wN.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],wN.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],wN.prototype,"positionType",void 0);_.k([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.t("design:type",Boolean)],wN.prototype,"hasButtons_",void 0);_.k([_.X({value:function(){return this.onTap_.bind(this)}}),
_.t("design:type",Function)],wN.prototype,"boundOnTap_",void 0);_.k([_.X({value:{style:"mono-inverse"}}),_.t("design:type",Object)],wN.prototype,"buttonOverride",void 0);_.k([_.EM("data.promoConfig.impressionEndpoints"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],wN.prototype,"observeImpressionEndpoints_",null);wN=_.k([_.QE({is:"yt-tooltip-renderer",disableElementRegistration:!0})],wN);
_.A(wN,"yt-tooltip-renderer",function(){if(jf9===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;Ar7===void 0&&(Ar7=document.createElement("template"));var T=Ar7;I.call(B,T.content.cloneNode(!0),E.content.firstChild);jf9=E}E=jf9;return E},{mode:2});var UJI;var k9H;var tk1={},f5L=(tk1.WEB_REMIX="music.youtube.com",tk1),Zw=function(){var E=_.r.apply(this,arguments)||this;E.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return E};
_.L(Zw,_.r);_.l=Zw.prototype;_.l.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.created=function(){this.embedHost_=f5L[_.HA("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.l.ready=function(){_.n(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.l.computeEmbedCode_=function(E,B,I,T,e){if(!E)return"";var c=E.videoId,Y=E.fullListId,v=[];E.attributionId&&v.push("si="+E.attributionId);T||v.push("controls=0");I&&Number(B)>0&&v.push("start="+B);Y&&(c="videoseries",v.push("list="+Y));I="https://"+(e?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+c;E.clipId&&(v.push("clip="+E.clipId),v.push("clipt="+E.clipTiming));B=v.length>0?I+"?"+v.join("&amp;"):I;E.encryptedEmbedConfig&&v.push("embed_config="+JSON.stringify({enc:E.encryptedEmbedConfig}));
v=v.length>0?I+"?"+v.join("&amp;"):I;_.d("web_sharing_embed_preview_killswitch")?_.n(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(v,E.previewWidth||854,E.previewHeight||480):(_.GV(this.videoPreviewContainer),_.n(this.videoPreviewContainer).appendChild(this.buildIframeElement(v)));return this.getEmbedCode_(B,E.width||560,E.height||315)};
_.l.buildIframeElement=function(E){var B=document.createElement("iframe"),I,T;B.width=""+((T=(I=this.data)==null?void 0:I.previewWidth)!=null?T:854);var e,c;B.height=""+((c=(e=this.data)==null?void 0:e.previewHeight)!=null?c:480);_.mVQ(B,2,E);B.title="YouTube video player";B.frameBorder="0";B.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";B.referrerPolicy="strict-origin-when-cross-origin";B.allowFullscreen=!0;return B};
_.l.computeIsSquareAspectRatio_=function(E){return E.previewHeight&&E.previewWidth?E.previewHeight==E.previewWidth:!1};
_.l.computeShowEmbedOptions_=function(E){return!!E.enablePrivacyModeOptionLabel||!!E.showPlayerControlsOptionLabel};
_.l.getEmbedCode_=function(E,B,I){return'<iframe width="'+B+'" height="'+I+'" src="'+E+'" 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>'};
_.l.handleSignalActionCopyShareEmbedUrl_=function(){_.n(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.l.handleSetTimestamp_=function(E){this.startAtTimeStamp_=(this.startAtChecked_=E.isSet)?E.timestamp:0};
_.l.closePanel_=function(){_.I2(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.l.onEmbedCode_=function(){_.n(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.l.onYtPopupClosed_=function(){_.GV(_.n(this.hostElement).querySelector("#video-preview"))};
_.l.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.h(this.data.actionButtons[0],_.NT)&&this.ytRendererBehavior.logExplicitClick(_.h(this.data.actionButtons[0],_.NT))};
Zw.prototype.onYtPopupClosed_=Zw.prototype.onYtPopupClosed_;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Zw.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],Zw.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Zw.prototype,"data",void 0);
_.k([_.X({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.t("design:type",String)],Zw.prototype,"embedCode_",void 0);_.k([_.X({value:!0}),_.t("design:type",Boolean)],Zw.prototype,"isPlayerControlsOptionChecked_",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],Zw.prototype,"isPrivacyModeOptionChecked_",void 0);_.k([_.X({value:!1,notify:!0}),_.t("design:type",Boolean)],Zw.prototype,"startAtChecked_",void 0);
_.k([_.X({value:0}),_.t("design:type",Number)],Zw.prototype,"startAtTimeStamp_",void 0);_.k([_.X({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],Zw.prototype,"isSquareAspectRatio_",void 0);_.k([_.$7("#video-preview"),_.t("design:type",HTMLElement)],Zw.prototype,"videoPreviewContainer",void 0);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Zw.prototype,"onYtPopupClosed_",null);
Zw=_.k([_.QE({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],Zw);
_.A(Zw,"yt-sharing-embed-renderer",function(){if(k9H===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;UJI===void 0&&(UJI=document.createElement("template"));var T=UJI;I.call(B,T.content.cloneNode(!0),E.content.firstChild);k9H=E}E=k9H;return E},{mode:2});var Vk9={};
Vk9.YtUnlimitedFamilyInterstitialBehavior=[_.E6.YtOpenPopupBehavior,_.th.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(E){E=_.JHr(_.XN(E),"yt-button-renderer");return E?E.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(E){this.dialogHistory_.push(E)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var E=this.popFromHistory();if(E){var B={openPopupAction:{popupType:"DIALOG",popup:{}}};B.openPopupAction.popup[E.renderer]=E.data;this.showingPreviousDialog_=!0;this.openPopup(B)}},
handleOpenPopupAction_:function(E){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var B=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(T){return!!E.openPopupAction.popup[T]}),I=this.getElementName_();
B&&this.data&&(this.pushToHistory({renderer:I,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(E){if(E=_.h(E,hkI))this.loading=!0,_.I2(this.hostElement,"yt-open-create-family-dialog",[E,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var E=this.hostElement.nodeName.split("-").slice(1).map(function(B){return""+B[0].toUpperCase()+B.slice(1).toLowerCase()}).join("");
return E[0].toLowerCase()+E.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var qNm;var FTT;var Po=function(){return _.r.apply(this,arguments)||this};
_.L(Po,_.r);_.l=Po.prototype;_.l.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}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.I2(this.hostElement,"yt-register-create-family-dialog");_.n(this.hostElement).querySelector("#thumbnail").onShow()};
_.l.fireOnCloseCommand_=function(){var E;((E=this.data)==null?0:E.onCloseCommand)&&_.cN(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.l.onYtServiceRequestSent_=function(E,B){B&&B.endpoint&&_.h(B.endpoint,_.a2)||(this.loading=!0)};
_.l.onYtServiceRequestCompleted_=function(){var E=this.hostElement.parentElement;E.close&&E.close();this.loading=!1};
_.l.openPopupHandler_=function(E){if(E.detail==this){var B;((B=this.data)==null?0:B.onOpenCommands)&&_.cN(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.l.closePopupHandler_=function(E,B){this.fireOnCloseCommand_();if(B&&B.canceled===!0||B&&B.canceled===!1&&B.confirmed===!1){var I;((I=this.data)==null?0:I.onDismissCommands)&&_.cN(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.l.dataChanged_=function(){this.loading=!1};
Po.prototype.dataChanged_=Po.prototype.dataChanged_;Po.prototype.closePopupHandler_=Po.prototype.closePopupHandler_;Po.prototype.openPopupHandler_=Po.prototype.openPopupHandler_;Po.prototype.onYtServiceRequestCompleted_=Po.prototype.onYtServiceRequestCompleted_;Po.prototype.onYtServiceRequestSent_=Po.prototype.onYtServiceRequestSent_;_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],Po.prototype,"ytEventForwardingBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(Vk9.YtUnlimitedFamilyInterstitialBehavior),_.t("design:type",Object)],Po.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Po.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],Po.prototype,"loading",void 0);_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],Po.prototype,"onYtServiceRequestSent_",null);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],Po.prototype,"onYtServiceRequestCompleted_",null);
_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],Po.prototype,"openPopupHandler_",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],Po.prototype,"closePopupHandler_",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],Po.prototype,"dataChanged_",null);
Po=_.k([_.QE({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Po);
_.A(Po,"yt-unlimited-family-message-interstitial-renderer",function(){if(FTT===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;qNm===void 0&&(qNm=document.createElement("template"));var T=qNm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);FTT=E}E=FTT;return E},{mode:2});var DJ9;var KTI;var zW=function(){return _.r.apply(this,arguments)||this};
_.L(zW,_.r);zW.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"}}}};
zW.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.n(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(E){E.onShow()});
_.n(this.hostElement).querySelector("#main-thumbnail").onShow()};
zW.prototype.onButtonTap_=function(E){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(E)};
zW.prototype.computeMainThumbnailWidth_=function(E){return E&&E.length!==0?72:96};
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],zW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.k([_.g(Vk9.YtUnlimitedFamilyInterstitialBehavior),_.t("design:type",Object)],zW.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],zW.prototype,"data",void 0);
_.k([_.X({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.t("design:type",Number)],zW.prototype,"mainThumbnailWidth_",void 0);_.k([_.X({value:function(){return this.onButtonTap_.bind(this)}}),
_.t("design:type",Function)],zW.prototype,"boundButtonTap_",void 0);zW=_.k([_.QE({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],zW);
_.A(zW,"yt-unlimited-family-profile-interstitial-renderer",function(){if(KTI===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;DJ9===void 0&&(DJ9=document.createElement("template"));var T=DJ9;I.call(B,T.content.cloneNode(!0),E.content.firstChild);KTI=E}E=KTI;return E},{mode:2});var RM7;var EWm;var mk=function(){var E=_.r.apply(this,arguments)||this;E.sliderAriaValueText_=null;E.selectedIndex_=0;E.messages={PAUSE_SLIDER:_.yu("PAUSE_SLIDER",void 0,"Pause Duration")};return E};
_.L(mk,_.r);_.l=mk.prototype;_.l.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_]]"}}}}}};
_.l.onPopupOpened_=function(E){E.detail==this&&_.d("enable_premium_voluntary_pause")&&(_.I2(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.setDialogData=function(E){this.data=E;this.resetSlider_()};
_.l.dataChanged_=function(){this.data&&this.resetSlider_()};
_.l.onSubmitTap_=function(){if(this.data.confirmCommand){var E=this.data.confirmCommand;_.h(E,_.IGZ)&&_.l1(this.hostElement,[E,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.l.onExitButtonTap_=function(){_.I2(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.l.closePopupHandler_=function(E,B){(B&&B.canceled===!0||B.canceled===!1&&B.confirmed===!1)&&this.handleOnDismissCommands_()};
_.l.onSliderChange_=function(){this.selectedIndex_=_.n(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.l.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.l.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.l.resetSlider_=function(){if(this.data){var E=this.data.defaultEndOptionIndex||0,B=_.n(this.hostElement).querySelector("#id-pause-slider");if(B.immediateValue<E)for(;B.immediateValue!=E;)B.increment();else if(E<B.immediateValue)for(;B.immediateValue!=E;)B.decrement();this.selectedIndex_=E;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.l.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.cN(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.l.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.cN(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestSent=function(){this.loading=!0};
_.l.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
mk.prototype.onYtServiceRequestCompleted=mk.prototype.onYtServiceRequestCompleted;mk.prototype.onYtServiceRequestSent=mk.prototype.onYtServiceRequestSent;mk.prototype.closePopupHandler_=mk.prototype.closePopupHandler_;mk.prototype.dataChanged_=mk.prototype.dataChanged_;mk.prototype.onPopupOpened_=mk.prototype.onPopupOpened_;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],mk.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],mk.prototype,"loading",void 0);_.k([_.X(),_.t("design:type",Number)],mk.prototype,"selectIndexMax_",void 0);_.k([_.X(),_.t("design:type",Object)],mk.prototype,"selectedData_",void 0);
_.k([_.X(),_.t("design:type",Object)],mk.prototype,"sliderAriaValueText_",void 0);_.k([_.X({value:function(){return this.onSubmitTap_.bind(this)}}),
_.t("design:type",Function)],mk.prototype,"onButtonTap_",void 0);_.k([_.X({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.t("design:type",Function)],mk.prototype,"onSecondaryTap_",void 0);_.k([_.X(),_.t("design:type",Object)],mk.prototype,"messages",void 0);_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],mk.prototype,"onPopupOpened_",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],mk.prototype,"dataChanged_",null);
_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],mk.prototype,"closePopupHandler_",null);_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],mk.prototype,"onYtServiceRequestSent",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],mk.prototype,"onYtServiceRequestCompleted",null);mk=_.k([_.QE({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],mk);
_.A(mk,"yt-unplugged-pause-membership-dialog-renderer",function(){if(EWm===void 0){var E=document.createElement("template");_.G(E,'\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>');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;RM7===void 0&&(RM7=document.createElement("template"));var T=RM7;I.call(B,T.content.cloneNode(!0),E.content.firstChild);EWm=E}E=EWm;return E},{mode:2});var Bud;var $zI;var Qo=function(){return _.r.apply(this,arguments)||this};
_.L(Qo,_.r);Qo.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.dA("vcBalanceRenderer")}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],Qo.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],Qo.prototype,"data",void 0);Qo=_.k([_.QE({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],Qo);
_.A(Qo,"yt-vc-offer-layout-header-renderer",function(){if($zI===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;Bud===void 0&&(Bud=document.createElement("template"));var T=Bud;I.call(B,T.content.cloneNode(!0),E.content.firstChild);$zI=E}E=$zI;return E},{mode:2});var ILI;var Tu1;var eg1;var lL8;var dN=function(){return _.r.apply(this,arguments)||this};
_.L(dN,_.r);dN.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Up.Object.defineProperties(dN.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)}}});
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.Tj$.YtTappableItemBehavior),_.t("design:type",Object)],dN.prototype,"ytTappableItemBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],dN.prototype,"data",void 0);
_.k([_.X({reflectToAttribute:!0}),_.S("data.accessibilityText"),_.t("design:type",String),_.t("design:paramtypes",[])],dN.prototype,"ariaLabel",null);_.k([_.X({reflectToAttribute:!0}),_.S("data.style"),_.t("design:type",String),_.t("design:paramtypes",[])],dN.prototype,"vcOfferStyle",null);_.k([_.S("data.style","data.titleText"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],dN.prototype,"showTitleText",null);dN=_.k([_.QE({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],dN);
_.A(dN,"yt-vc-offer-renderer",function(){if(lL8===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;eg1===void 0&&(eg1=document.createElement("template"));var T=eg1;I.call(B,T.content.cloneNode(!0),E.content.firstChild);lL8=E}E=lL8;return E},{mode:2});var h0=function(){return _.r.apply(this,arguments)||this};
_.L(h0,_.r);h0.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}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],h0.prototype,"data",void 0);h0=_.k([_.QE({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],h0);
_.A(h0,"yt-vc-offer-layout-renderer",function(){if(Tu1===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;ILI===void 0&&(ILI=document.createElement("template"));var T=ILI;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Tu1=E}E=Tu1;return E},{mode:2});var cXg;var i1H;var pjm;var YLd;var sV=function(){return _.r.apply(this,arguments)||this};
_.L(sV,_.r);sV.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}}}}}};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],sV.prototype,"data",void 0);sV=_.k([_.QE({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],sV);
_.A(sV,"yt-ypc-offers-modal-top-bar-renderer",function(){if(YLd===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;pjm===void 0&&(pjm=document.createElement("template"));var T=pjm;I.call(B,T.content.cloneNode(!0),E.content.firstChild);YLd=E}E=YLd;return E},{mode:2});var u5=function(){return _.r.apply(this,arguments)||this};
_.L(u5,_.r);u5.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"}}}}};
u5.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
u5.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var E=this.scrollable;E.attached&&typeof E.attached==="function"&&E.attached()};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],u5.prototype,"ytRendererstamperBehavior",void 0);_.k([_.$7("#scrollable"),_.t("design:type",Object)],u5.prototype,"scrollable",void 0);_.k([_.X(),_.t("design:type",Object)],u5.prototype,"data",void 0);u5=_.k([_.QE({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],u5);
_.A(u5,"yt-ypc-offers-modal-renderer",function(){if(i1H===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;cXg===void 0&&(cXg=document.createElement("template"));var T=cXg;I.call(B,T.content.cloneNode(!0),E.content.firstChild);i1H=E}E=i1H;return E},{mode:2});var aL2;var vW1;var L5=function(){return _.r.apply(this,arguments)||this};
_.L(L5,_.r);_.l=L5.prototype;_.l.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}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.n(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.l.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.I2(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.l.onYtPopupOpened_=function(E,B){(B==null?void 0:B.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.cN(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.l.onYtPopupClosed_=function(E,B){this.continueButtonTapped||B&&(B.canceled===!0||B.canceled===!1&&B.confirmed===!1)&&this.data.onDismissCommands&&_.cN(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestError_=function(E){this.set("showSpinner",!1);_.de(this.hostElement,E.detail.error.message)};
_.l.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.d("enable_ypc_spinners")?_.I2(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
L5.prototype.onYtServiceRequestError_=L5.prototype.onYtServiceRequestError_;L5.prototype.onYtPopupClosed_=L5.prototype.onYtPopupClosed_;L5.prototype.onYtPopupOpened_=L5.prototype.onYtPopupOpened_;L5.prototype.onYtServiceRequestCompleted_=L5.prototype.onYtServiceRequestCompleted_;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);
_.k([_.X(),_.t("design:type",Object)],L5.prototype,"data",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],L5.prototype,"showSpinner",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],L5.prototype,"continueButtonTapped",void 0);_.k([_.X({value:function(){return this.onContinueTapped_.bind(this)}}),
_.t("design:type",Function)],L5.prototype,"bindOnContinueTapped_",void 0);_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],L5.prototype,"onYtServiceRequestCompleted_",null);_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],L5.prototype,"onYtPopupOpened_",null);
_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],L5.prototype,"onYtPopupClosed_",null);_.k([_.RN("yt-service-request-error"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],L5.prototype,"onYtServiceRequestError_",null);L5=_.k([_.QE({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],L5);
_.A(L5,"yt-ypc-upgrade-dialog-renderer",function(){if(vW1===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;aL2===void 0&&(aL2=document.createElement("template"));var T=aL2;I.call(B,T.content.cloneNode(!0),E.content.firstChild);vW1=E}E=vW1;return E},{mode:2});var yXO;var CCO;var x$=function(){return _.r.apply(this,arguments)||this};
_.L(x$,_.r);x$.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
x$.prototype.computeHasButtons_=function(E){return!(!E.dismissButton&&!E.confirmButton)};
x$.prototype.computeStyle_=function(E){return E||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],x$.prototype,"ytEventForwardingBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],x$.prototype,"ytRendererstamperBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],x$.prototype,"data",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],x$.prototype,"positionType",void 0);
_.k([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.t("design:type",Boolean)],x$.prototype,"hasButtons_",void 0);_.k([_.X({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.t("design:type",Boolean)],x$.prototype,"style_",void 0);x$=_.k([_.QE({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],x$);
_.A(x$,"yt-bubble-hint-renderer",function(){if(CCO===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;yXO===void 0&&(yXO=document.createElement("template"));var T=yXO;I.call(B,T.content.cloneNode(!0),E.content.firstChild);CCO=E}E=CCO;return E},{mode:2});var wjO;var Z1d;var GW=function(){var E=_.kq.apply(this,arguments)||this;E.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return E};
_.L(GW,_.kq);_.l=GW.prototype;_.l.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.l.attached=function(){var E=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){E.$.thumbnail.onShow();E.$["header-image"].onShow()})};
_.l.handleCheckBoxUpdateAction_=function(E){this.canShowCheckboxEnabledConfirmButton=E};
_.l.computeUseOverlayForSpinner_=function(E,B){return!!E&&B};
_.l.computeShowSpinner_=function(E,B){return E||!!B};
_.l.fireOnCloseActions_=function(){var E,B=_.p(((E=this.data)==null?void 0:E.onClosedActions)||[]);for(E=B.next();!E.done;E=B.next())this.ytRendererBehavior.resolveCommand(E.value)};
_.l.fireOnOpenCommands_=function(E){var B,I=(B=this.data)==null?void 0:B.onOpenCommands;if(I)for(E.stopImmediatePropagation(),E=_.p(I),B=E.next();!B.done;B=E.next())this.ytRendererBehavior.resolveCommand(B.value)};
_.l.fireOnDismissCommands_=function(E){var B,I=(B=this.data)==null?void 0:B.onDismissCommands;if(I)for(E.stopImmediatePropagation(),E=_.p(I),B=E.next();!B.done;B=E.next())this.ytRendererBehavior.resolveCommand(B.value)};
_.l.openPopupHandler_=function(E){E.detail==this&&this.fireOnOpenCommands_(E)};
_.l.closePopupHandler_=function(E,B){_.Ta(this,"yt-confirm-dialog-close-action",[B]);this.fireOnCloseActions_();(B&&B.canceled===!0||B&&B.canceled===!1&&B.confirmed===!1)&&this.fireOnDismissCommands_(E)};
_.l.onHeaderImageChanged_=function(){var E;((E=this.data)==null?0:E.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.l.computeHasHeaderImageWidth_=function(E){return E!=void 0};
_.l.computeHasLoadingMessage=function(E){return!!E};
_.l.onHeaderImageWidthChanged_=function(){var E,B=(E=this.data)==null?void 0:E.headerImageWidth;if(B){if(E=1.25*B*2+B,this.$.main.style.width=E+"px",B=this.$.scroller.firstElementChild)B.style.minWidth=E+"px"}else this.$.main.style.width="100%"};
_.l.onThumbnailChanged_=function(){var E;((E=this.data)==null?0:E.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")};
_.l.onYtNavigate_=function(E){E=_.XN(E);E instanceof Node&&_.fq(this.$["confirm-button"]).contains(E)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.l.computePrimaryIsCancel_=function(E){return E};
_.l.computeIsCancelButtonHidden_=function(E){return E.skipCancelButton||!E.cancelButton};
_.l.computeIsCheckboxHidden_=function(E){return!E.checkbox};
_.l.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.l.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.l.onYtServiceRequestCompleted_=function(){var E;((E=this.data)==null?0:E.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Up.Object.defineProperties(GW,{template:{configurable:!0,enumerable:!0,get:function(){if(Z1d===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;wjO===void 0&&(wjO=document.createElement("template"));var T=wjO;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Z1d=E}E=Z1d;return E}}});
GW.prototype.onYtServiceRequestCompleted_=GW.prototype.onYtServiceRequestCompleted_;GW.prototype.onYtServiceRequestSent_=GW.prototype.onYtServiceRequestSent_;GW.prototype.onThumbnailLoaded_=GW.prototype.onThumbnailLoaded_;GW.prototype.onYtNavigate_=GW.prototype.onYtNavigate_;GW.prototype.onThumbnailChanged_=GW.prototype.onThumbnailChanged_;GW.prototype.onHeaderImageWidthChanged_=GW.prototype.onHeaderImageWidthChanged_;GW.prototype.onHeaderImageChanged_=GW.prototype.onHeaderImageChanged_;
GW.prototype.closePopupHandler_=GW.prototype.closePopupHandler_;GW.prototype.openPopupHandler_=GW.prototype.openPopupHandler_;_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],GW.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);
_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],GW.prototype,"ytEventForwardingBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],GW.prototype,"data",void 0);_.k([_.X({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.t("design:type",Boolean)],GW.prototype,"primaryIsCancel",void 0);_.k([_.X({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.t("design:type",Boolean)],GW.prototype,"isCancelButtonHidden",void 0);
_.k([_.X({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.t("design:type",Boolean)],GW.prototype,"isCheckboxHidden",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],GW.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.k([_.X({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.t("design:type",Boolean)],GW.prototype,"useOverlayForSpinner_",void 0);
_.k([_.X({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.t("design:type",Boolean)],GW.prototype,"showSpinner_",void 0);_.k([_.X({value:!1}),_.t("design:type",Boolean)],GW.prototype,"isActionInProgress_",void 0);_.k([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.t("design:type",Boolean)],GW.prototype,"hasHeaderImageWidth_",void 0);
_.k([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.t("design:type",Boolean)],GW.prototype,"hasLoadingMessage",void 0);_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],GW.prototype,"openPopupHandler_",null);_.k([_.RN("yt-popup-closed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],GW.prototype,"closePopupHandler_",null);
_.k([_.EM("data.headerImage"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],GW.prototype,"onHeaderImageChanged_",null);_.k([_.EM("data.headerImageWidth"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],GW.prototype,"onHeaderImageWidthChanged_",null);_.k([_.EM("data.thumbnail"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],GW.prototype,"onThumbnailChanged_",null);
_.k([_.RN("yt-navigate"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],GW.prototype,"onYtNavigate_",null);_.k([_.RN("yt-img-shadow-loaded"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],GW.prototype,"onThumbnailLoaded_",null);_.k([_.RN("yt-service-request-sent"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.O1]),_.t("design:returntype")],GW.prototype,"onYtServiceRequestSent_",null);
_.k([_.RN("yt-service-request-completed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,_.W$]),_.t("design:returntype")],GW.prototype,"onYtServiceRequestCompleted_",null);GW=_.k([_.QE({is:"yt-confirm-dialog-renderer",noInjection:!0})],GW);var PCI;var zgI;var OV=function(){return _.r.apply(this,arguments)||this};
_.L(OV,_.r);OV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.n(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
OV.prototype.computeConfirmButton_=function(E){var B={text:E.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};E.confirmNavigationEndpoint?B.navigationEndpoint=E.confirmNavigationEndpoint:E.confirmServiceEndpoint&&(B.serviceEndpoint=E.confirmServiceEndpoint);return B};
OV.prototype.computeShowTitle_=function(E){return!(E==null||!E.title)};
_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],OV.prototype,"data",void 0);_.k([_.X({computed:"computeShowTitle_(data)"}),_.t("design:type",Boolean)],OV.prototype,"showTitle",void 0);OV=_.k([_.QE({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],OV);
_.A(OV,"yt-fancy-dismissible-dialog-renderer",function(){if(zgI===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;PCI===void 0&&(PCI=document.createElement("template"));var T=PCI;I.call(B,T.content.cloneNode(!0),E.content.firstChild);zgI=E}E=zgI;return E});var mz7;var Q7I;var n5=function(){var E=_.r.apply(this,arguments)||this;E.spinnerActive=!1;return E};
_.L(n5,_.r);n5.prototype.created=function(){Adt(2201)};
n5.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
n5.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
n5.prototype.onIronOverlayClosed=n5.prototype.onIronOverlayClosed;n5.prototype.onIronOverlayOpened=n5.prototype.onIronOverlayOpened;_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.UI),_.t("design:type",Object)],n5.prototype,"tpYtIronOverlayBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],n5.prototype,"data",void 0);_.k([_.X(),_.t("design:type",Object)],n5.prototype,"spinnerActive",void 0);
_.k([_.RN("iron-overlay-opened"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],n5.prototype,"onIronOverlayOpened",null);_.k([_.RN("iron-overlay-closed"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],n5.prototype,"onIronOverlayClosed",null);n5=_.k([_.QE({is:"yt-loading-renderer",disableElementRegistration:!0})],n5);
_.A(n5,"yt-loading-renderer",function(){if(Q7I===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;mz7===void 0&&(mz7=document.createElement("template"));var T=mz7;I.call(B,T.content.cloneNode(!0),E.content.firstChild);Q7I=E}E=Q7I;return E},{mode:2});var dzH;var hg2;var MZ=function(){var E=_.r.apply(this,arguments)||this;E.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);E.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);E.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";E.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return E};
_.L(MZ,_.r);_.l=MZ.prototype;_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.l.onDarkModeToggledAction=function(E){this.isDarkTheme=E};
_.l.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.l.openPopupHandler_=function(E){E.detail===this.hostElement&&this.hostElement.hidden&&_.I2(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.l.onDismissButtonTap_=function(){var E;this.closeOnDismissButton_.has(((E=this.data)==null?void 0:E.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.I2(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.l.onAcceptButtonTap_=function(){var E;this.closeOnAcceptButton_.has(((E=this.data)==null?void 0:E.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.I2(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.l.computeHasHeader_=function(E){return!!E.headerBackgroundImage};
_.l.computeLayoutStyle_=function(E){return E};
_.l.computePopupSize_=function(E){return E};
_.l.computeIconType_=function(E){return E.dialogIcon&&E.dialogIcon.iconType?E.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":E.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":E.dialogIcon.iconType:""};
_.l.computeIsLogo_=function(E){return!!E.dialogIcon&&!!E.dialogIcon.iconType&&(E.dialogIcon.iconType==="YOUTUBE_LOGO"||E.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||E.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.l.computeHasCustomLogo=function(E){return!(E==null||!E.headerForegroundImage)};
_.l.computeCustomLogo=function(E,B){if(E!=null&&E.headerForegroundImage)return E.headerForegroundImageDark?B?E.headerForegroundImageDark:E.headerForegroundImage:E.headerForegroundImage};
_.l.computeHeaderBackgroundImage=function(E,B){if(E!=null&&E.headerBackgroundImage)return B&&(E==null?0:E.headerBackgroundImageDark)?E.headerBackgroundImageDark:E.headerBackgroundImage};
_.l.shouldShowIconContainer=function(E,B){return E&&!B};
_.l.shouldShowNonYouTubeIcon=function(E,B){return!E&&!B};
_.l.getLogoImageId=function(E){var B,I,T;return(E=(B=this.computeCustomLogo(E,this.isDarkTheme))==null?void 0:(I=B.thumbnails)==null?void 0:(T=I[0])==null?void 0:T.height)&&E%31===0?"custom-logo-with-padding":"custom-logo"};
MZ.prototype.openPopupHandler_=MZ.prototype.openPopupHandler_;MZ.prototype.dataChanged_=MZ.prototype.dataChanged_;_.k([_.g(_.kC.YtRendererstamperBehavior),_.t("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.k([_.X(),_.t("design:type",Boolean)],MZ.prototype,"isDarkTheme",void 0);
_.k([_.X({computed:"computeCustomLogo(data, isDarkTheme)"}),_.t("design:type",Object)],MZ.prototype,"customLogo",void 0);_.k([_.X({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.t("design:type",Object)],MZ.prototype,"headerBackgroundImage",void 0);_.k([_.X(),_.t("design:type",Object)],MZ.prototype,"data",void 0);_.k([_.X({computed:"computeHasHeader_(data)"}),_.t("design:type",Boolean)],MZ.prototype,"hasHeader",void 0);
_.k([_.X({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.t("design:type",Object)],MZ.prototype,"layoutStyle",void 0);_.k([_.X({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.t("design:type",Object)],MZ.prototype,"popupSize",void 0);_.k([_.X({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],MZ.prototype,"hasLogo",void 0);
_.k([_.X({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.t("design:type",Boolean)],MZ.prototype,"hasCustomLogo",void 0);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],MZ.prototype,"dataChanged_",null);_.k([_.RN("yt-popup-opened"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],MZ.prototype,"openPopupHandler_",null);
MZ=_.k([_.QE({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],MZ);
_.A(MZ,"yt-upsell-dialog-renderer",function(){if(hg2===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;dzH===void 0&&(dzH=document.createElement("template"));var T=dzH;I.call(B,T.content.cloneNode(!0),E.content.firstChild);hg2=E}E=hg2;return E},{mode:2});var s7s=_.rp(function(E){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.w(_.wU,{cond:E.title,then:function(B){return _.w("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},B)}}))},"dg"),uI8=_.rp(function(E){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.w(_.hM,{data:E.closeButton},{buttonViewModel:function(B){return _.w("div",null,_.w(_.ne,{data:B.data}))}}))},"eg"),LOt=_.rp(function(E){var B=
E.data;
return _.w(_.VS,null,_.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.w(_.wU,{cond:function(){return!!B().image&&!!B().title},
then:function(){return _.w(_.Ja,{data:function(){return B().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.w(_.wU,{cond:function(){return B().title},
then:function(I){return _.w("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},I)}}),_.w(_.wU,{cond:function(){return B().primaryGenre},
then:function(I){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},I)}}))),_.w(_.wU,{cond:function(){var I=B().description;
return I&&I.length<=150},
then:function(){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return B().description}))}}))},"fg"),xzs=_.rp(function(E){E=E.infoRows;
var B=_.Q().resolve(_.uz),I=_.d("enable_displaying_ppn");return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.w(_.Zt,{each:E},function(T){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.w(_.wU,{cond:function(){return T.label},
then:function(e){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},e)}}),_.w(_.wU,{cond:function(){return T.attributedLabel},
then:function(e){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.w(_.aS,{text:e,noPreWrap:!0}))}}),_.w(_.wU,{cond:function(){return T.value},
then:function(e){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},e)}}),_.w(_.wU,{cond:function(){return T.attributedValue},
then:function(e){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.w(_.aS,{text:e,noPreWrap:!0}))}}))}),_.w(_.wU,{cond:function(){return I&&B.clientData.has("post_play_nonce")},
then:function(){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},B.getData("post_play_nonce")))}}))},"gg"),Gn9=_.rp(function(E){var B=E.data;
return _.w("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.w(s7s,{title:function(){return B().dialogTitle}}),_.w(LOt,{data:B}),_.w(_.wU,{cond:function(){return B().infoRow},
then:function(I){return _.w(xzs,{infoRows:I})}}),_.w(uI8,{closeButton:function(){return B().closeButton}}))},"hg");
Gn9.idomCompat=!0;_.oQ(Gn9,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;return _.w("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.w(_.Ja,{data:function(){return B().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.w("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.w("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.w(_.wU,{cond:function(){var I=B().ytLogo;return I?I.iconType:null},
then:function(I){return _.w(_.i0,{icon:I,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.w("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.w("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.w(_.aS,{text:function(){return B().title}})),_.w("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.w(_.aS,{text:function(){return B().body}})),_.w("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.w(_.aS,{text:function(){return B().verifyStateText}}))),
_.w("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.w("div",null,_.w(_.hM,{data:function(){return B().dismissButton}},{buttonViewModel:_.ne})),_.w("div",null,_.w(_.hM,{data:function(){return B().linkParentButton}},{buttonViewModel:_.ne})))))},"ig"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Jh}});var O1H=_.rp(function(E){var B=E.data;return _.w("installment-agreements-view-model",{class:_.RQ("ytInstallmentAgreementsViewModelHost")},_.w(_.Zt,{each:_.Wl(function(){return B().agreements},[])},function(I){return _.w("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.w("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.w(_.aS,{text:I.label})),_.w("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.w(_.hM,{data:function(){return I.openButton}},{buttonViewModel:_.ne})))}))},
"jg");
O1H.idomCompat=!0;var nWI=_.rp(function(E){return _.w("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.w(_.aS,{text:function(){return E.data().inviteMessage}})),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.w(_.aS,{text:function(){return E.data().attributedAccountSectionHeaderText}})),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.w(_.hM,{data:function(){return E.data().accountAvatar}},{avatarViewModel:_.yf}),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.w(_.aS,{text:function(){return E.data().accountName}}),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.w(_.aS,{text:function(){return E.data().handle}}))),_.w(_.hM,{data:function(){return E.data().trailingButton}},{buttonViewModel:_.ne})),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.w(_.aS,{text:function(){return E.data().termsOfService}})))},"kg");var M42=_.rp(function(E){var B=_.p(_.l0(function(){var K,p4;return((K=E.data().createPlaylistDialogFormSchema)==null?0:(p4=K.initialValues)==null?0:p4.title)?E.data().createPlaylistDialogFormSchema.initialValues.title:""})),I=B.next().value,T=B.next().value;
B=_.p(_.l0(function(){E.data();return!1}));
var e=B.next().value,c=B.next().value;B=_.p(_.l0(function(){E.data();return!1}));
var Y=B.next().value,v=B.next().value;B=_.p(_.l0(function(){var K,p4;return(K=E.data().createPlaylistDialogFormSchema)==null?void 0:(p4=K.initialValues)==null?void 0:p4.visibility}));
var y=B.next().value,Z=B.next().value;B=_.p(_.l0(function(){E.data();return!1}));
var P=B.next().value,z=B.next().value;B=_.p(_.l0(function(){var K,p4;return(K=E.data().createPlaylistDialogFormSchema)==null?void 0:(p4=K.initialValues)==null?void 0:p4.isCollaborative}));
var m=B.next().value,u=B.next().value,x=_.oH();_.m$(function(){var K=x.value.querySelector("textarea");K&&(K.value=I())});
_.uW(function(){var K;_.ixs((K=E.data().createPlaylistDialogFormSchema)==null?void 0:K.id,{onSubmit:function(){var p4=I();var sc=y(),Gf=m(),xi=E.data();p4={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:p4,privacyStatus:sc,videoIds:xi.videoIds,sourcePlaylistId:xi.sourcePlaylistId,params:Gf?xi.createPlaylistParamsCollaborationEnabled:xi.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.Q().resolve(_.Dt).resolveCommand(p4)},
isValid:function(){return e()&&!Y()&&!P()}})});
var M=function(K){if(K!==void 0&&(T(K),!e()&&K.length>0&&c(!0),e())){var p4=fmL(E.data());if(p4){var sc=p4.minLength;p4=p4.maxLength;sc&&K.length<sc?v(!0):p4&&K.length>p4?v(!0):v(!1)}}},N=function(){var K=!(!m()||y()!=="PRIVATE");
z(K)},W=function(K){K!==void 0&&(Z(K),N())},U=function(){if(P())return q3m(E.data())},q=function(){u(!m());
N()},f=function(){return{validate:function(K){if(e()){var p4=fmL(E.data());
if(p4){var sc=p4.minLength;p4=p4.translations;if(sc&&K.length<sc)return p4==null?void 0:p4.minLengthErrorMessage}}}}},ed=function(){var K=fmL(E.data()),p4=K==null?void 0:K.maxLength,sc;
K=K==null?void 0:(sc=K.translations)==null?void 0:sc.maxLengthErrorMessage;if(p4&&K)return{maxChars:p4,errorMessage:K}};
return _.w("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.w("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:x},_.w(_.hM,{data:function(){return E.data().playlistTitle}},{textFormFieldViewModel:function(K){return _.w(_.AA2,{data:K.data,
text:I,onInput:M,validation:f,characterLimit:ed})},
textFieldViewModel:function(K){return _.w(_.oPd,{data:K.data,text:I,onInput:M,validation:f,characterLimit:ed})}})),_.w("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.w(_.hM,{data:function(){return E.data().playlistVisibility}},{dropdownViewModel:function(K){return _.w(_.EaT,{data:K.data,
onSelected:W,error:U})}})),_.w(_.wU,{cond:function(){return!!E.data().playlistCollaborate},
then:function(){return _.w("div",null,_.w(_.hM,{data:function(){return E.data().playlistCollaborate}},{switchListItemViewModel:function(K){return _.w(_.Pz,{data:K.data,
onTap:q})}}))}}))},"lg");var H1g=_.rp(function(E){var B=_.Wl(E.noPadding,!1),I=function(){var e,c;return(c=(e=E.data().logo.accessibilityData)==null?void 0:e.label)!=null?c:""},T={};
return _.w("upsell-view-model",{class:_.RQ("ytUpsellViewModelHost",(T.ytUpsellViewModelHostNoPadding=function(){return B()},T))},_.w("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.w(_.wU,{cond:function(){return _.VW(E.data().logo)},
then:function(e){return _.w(_.Ja,{data:e,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:I})}})),_.w("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.w(_.aS,{text:function(){return E.data().title}})),_.w("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.w(_.Zt,{each:function(){var e;
return(e=E.data().subtitles)!=null?e:[]},
keyBy:"INDEX"},function(e){return _.w("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.w(_.aS,{text:e}))})),_.w("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.w(_.Zt,{each:function(){var e;
return(e=E.data().benefitInfos)!=null?e:[]},
keyBy:"INDEX"},function(e){return _.w(_.wU,{cond:function(){return e().info},
then:function(c){return _.w("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.w(_.i0,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.w(_.aS,{text:c}))}})})),_.w("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.w(_.Zt,{each:function(){var e;
return(e=E.data().legalInfos)!=null?e:[]},
keyBy:"INDEX"},function(e){return _.w("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.w(_.aS,{text:e}))})))},"mg");var Nug=_.rp(function(E){var B=E.data;E={};E=(E.ytMiniAppScoreChallengeViewModelScoreRadial=!0,E.ytMiniAppScoreChallengeViewModelDarkScoreRadial=F_t(),E);return _.w("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.w("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return B().title}),_.w("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return B().subtitle}),_.w("div",{class:_.B$(E)},_.w("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return B().score})),_.w("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return B().prompt}))},"ng");var gWT=function(){this.store=_.gp();this.formId=""};var SLd=_.rp(function(E){function B(v){if(v&&(v=_.h(v,_.Ce)))return Object.assign({},v,{isSelected:c()})}
var I=_.p(_.l0(function(){var v,y;return(y=(v=_.h(E.data().option,_.Ce))==null?void 0:v.isSelected)!=null?y:!1})),T=I.next().value,e=I.next().value,c=T;
_.uW(function(){var v;_.ixs((v=E.data().formSchema)==null?void 0:v.id,{onSubmit:function(){var y=_.Q().resolve(_.Dt),Z=!!E.data().selectedCommand,P=!!E.data().unselectedCommand;if(c()){if(Z)var z=E.data().selectedCommand}else P&&(z=E.data().unselectedCommand);z=_.ha(z);B(E.data().option)&&!z?(y="",!Z&&P?y="selected ":Z&&!P&&(y="unselected "),Z=new _.P7("No "+y+"command found for SelectionListItemFormViewModel"),_.xV(Z)):z&&y.resolveCommand(z)},
isValid:function(){return!0}})});
var Y=function(){e(!c())};
_.dt(function(){var v,y,Z=(v=E.data())==null?void 0:(y=v.formSchema)==null?void 0:y.id;Z&&_.lV9()().delete(Z)});
return _.w("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.w("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.w(_.aS,{text:function(){return E.data().paragraph}})),_.w(_.wU,{cond:function(){return B(E.data().option)},
then:function(v){return _.w(_.Z8,{data:v,isCompact:!0,hideSelectionTextChevron:!0,onTap:Y,disableHorizontalPadding:!0})}}))},"og");var RJg=_.z8({avatarStackViewModel:_.WbZ});_.qW(EGg);var JX2=_.rp(function(E){var B=E.data;var I=E.disablePadding;var T=E.className;var e=_.oH(),c=function(){return Dgg(B().banner,B().assetContainerPaddingStyle)},Y=function(){return Dgg(B().imageBanner,B().assetContainerPaddingStyle)},v=function(){return B().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.uW(function(){var y=function(){K_I(e.value)},Z;
(Z=e.value)==null||Z.addEventListener("image-loaded",y);_.dt(function(){var P;(P=e.value)==null||P.removeEventListener("image-loaded",y)})});
E={};return _.w("yt-dialog-header-view-model",{el:e,class:_.RQ(T,(E.ytDialogHeaderViewModelHost=!0,E.ytDialogHeaderViewModelHostDisablePadding=I,E))},_.w(_.wU,{cond:function(){return B().banner},
then:function(){var y={};return _.w("div",{class:_.RQ(T,(y.ytDialogHeaderViewModelBanner=!0,y.ytDialogHeaderViewModelBannerFullBleed=v,y)),style:_.c$({"max-height":function(){return B().assetContainerMaxHeight?B().assetContainerMaxHeight+"px":""}})},_.w(_.AF,{data:c,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.w(_.wU,{cond:function(){return B().imageBanner},
then:function(){var y={};return _.w("div",{class:_.RQ(T,(y.ytDialogHeaderViewModelBanner=!0,y.ytDialogHeaderViewModelBannerFullBleed=v,y)),style:_.c$({"max-height":function(){return B().assetContainerMaxHeight!==void 0?B().assetContainerMaxHeight+"px":void 0}})},_.w(_.AF,{data:Y,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.w(_.wU,{cond:function(){return B().customAssetContainer},
then:function(y){return _.w("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.w(_.hM,{data:y},{avatarStackViewModel:_.wi}))}}),_.w(_.wU,{cond:function(){return B().customBanner},
then:function(y){return _.w("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.w(_.hM,{data:y},{avatarStackViewModel:_.wi}))}}),_.w(_.wU,{cond:function(){return B().headline},
then:function(y){return _.w("h2",null,_.w(_.aS,{text:y,className:"ytDialogHeaderViewModelText"}))}}))},"pg"),WOO=_.d("web_enable_sink_dialog_header_view_model")?JX2:_.$3(EGg);
JX2.idomCompat=!0;var XjL=_.rp(function(E){var B=_.pp2(function(){return E.data().formId}),I=B.onSubmit,T=B.isValid;
return _.w("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.w(_.hM,{data:function(){return E.data().panelFooter}},{panelFooterViewModel:function(e){return _.w(_.Mj,{data:e.data,
disablePadding:!0,disablePrimaryButton:function(){return!T()},
onClickPrimaryButton:function(){I()}})}}))},"qg");var oWI=_.rp(function(E){var B=_.XS(E,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),I=B.elRefCallback;E=B.iconWiz;var T=B.assetWiz,e=B.assetType,c=B.titleWiz,Y=B.leadingActionHeaderWiz,v=B.trailingActionHeaderWiz,y=B.headerPosition,Z=B.contentWiz,P=B.buttonLayout,z=B.buttonStyle,m=B.primaryButtonWiz,u=B.secondaryButtonWiz,x=B.contentAlignment,M=B.isFullscreen,N=B.width,W=B.maxHeight,U=B.isHeaderWizDefined,
q=B.headerWiz,f=B.isFooterWizDefined,ed=B.footerWiz;B=_.oH(function(Uc){I==null||I(Uc)});
var K=T?function(){return T({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,p4=m?function(){var Uc={};
return m({buttonOverrides:function(){return{style:(z==null?void 0:z())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.RQ((Uc["yt-spec-dialog-layout__dialog-layout-button"]=!0,Uc["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(P==null?void 0:P())===0||(P==null?void 0:P())===2},Uc))})}:void 0,sc=u?function(){var Uc={};
return u({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.RQ((Uc["yt-spec-dialog-layout__dialog-layout-button"]=!0,Uc["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(P==null?void 0:P())===0||(P==null?void 0:P())===2},Uc))})}:void 0,Gf=function(){return(!!c||!!Y||!!v)&&y()===0},xi={},ki={},WG={},rJ={};
return _.w("dialog-layout",{el:B,class:_.RQ((xi["yt-spec-dialog-layout"]=!0,xi["yt-spec-dialog-layout--dialog-layout-fullscreen"]=M,xi["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!M()},xi["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return W()===1},xi["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(e==null?void 0:e())===1},xi)),
style:function(){return(N==null?void 0:N())!==void 0?"width: "+N+"px;":""}},E?_.w("div",{class:_.RQ((ki["yt-spec-dialog-layout__dialog-layout-icon"]=!0,ki["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!T&&y()===1},ki["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return x()===1},ki))},_.w(E,null)):null,_.w(_.wU,{cond:U,
then:function(){return q?_.w("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.w(q,null)):null},
else:function(){return _.w(_.VS,null,_.w(_.wU,{cond:Gf,then:function(){return _.w(rXg,{contentAlignment:x,LeadingActionHeader:Y,TrailingActionHeader:v,Title:c,isAboveAsset:!!K})}}),K?_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.w(K,null)):null)}}),_.w("div",{class:_.RQ((WG["yt-spec-dialog-layout__dialog-layout-container"]=!0,WG["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(x==null?void 0:x())===1},WG["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!c&&!q||!!K&&(y==null?void 0:y())===0},WG))},_.w(_.wU,{cond:function(){return c&&!q&&(y==null?void 0:y())===1},
then:function(){return _.w(rXg,{contentAlignment:x,LeadingActionHeader:Y,TrailingActionHeader:v,Title:c,isAboveAsset:!1})}}),Z?_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.w(Z,null))):null,_.w(_.wU,{cond:f,
then:function(){return ed?_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.w(ed,null)):null}}),p4||sc?_.w(b17,{footerClasses:_.RQ((rJ["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,rJ["yt-spec-dialog-layout__dialog-layout-footer"]=!0,rJ["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(P==null?void 0:P())===2},rJ["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(P==null?void 0:P())===1},rJ)),
PrimaryButton:p4,SecondaryButton:sc}):null))},"rg"),rXg=_.rp(function(E){var B=_.XS(E,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),I=B.contentAlignment,T=B.LeadingActionHeader;E=B.Title;var e=B.TrailingActionHeader,c=B.isAboveAsset,Y=B.enableLeadingActionHeader;B={};return _.w("div",{class:_.RQ((B["yt-spec-dialog-layout__dialog-header-container"]=!0,B["yt-spec-dialog-layout__dialog-header"]=!0,B["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=c,B["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(I==null?void 0:I())===1&&Y()},B))},_.w(_.wU,{cond:function(){return Y()},
then:function(){return T?_.w("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.w(T,null)):null}}),E?_.w("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.w(E,null)):null,e?_.w("div",null,_.w(e,null)):null)},"sg"),b17=_.rp(function(E){var B=E.footerClasses;
var I=E.PrimaryButton;E=E.SecondaryButton;return _.w("div",{class:B},E?_.w(E,null):null,I?_.w(I,null):null)},"tg");var AXL=_.rp(function(E){var B=E.data;return _.w("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.w("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.w(_.hM,{data:function(){return B().avatar}},{avatarViewModel:_.yf})),_.w("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.w(_.aS,{text:function(){return B().title}})),_.w(_.aS,{text:function(){return B().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"ug");var j7d=_.rp(function(E){var B=E.data;return _.w("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.w("div",{class:"ytAccessConfirmationViewModelContent"},_.w(_.hM,{data:function(){return B().dualAvatar}},{dualAvatarViewModel:function(I){return _.w("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.w(_.jUN,{data:I.data}))}}),_.w("h2",{class:"ytAccessConfirmationViewModelTitle"},_.w(_.aS,{text:function(){return B().title}})),_.w(_.aS,{text:function(){return B().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"vg");var UzL=_.rp(function(E){var B=E.data;var I=void 0;E=_.p(_.lQ("",void 0,"O14qgc"));var T=E.next().value,e=E.next().value,c,Y=function(){e("");var Z;(Z=I)!=null&&Z.store.dispatch(_.BP({type:"RESET_COMMAND_MAP"}))};
_.uW(function(){I=new gWT;window.addEventListener("yt-popup-closed",Y)});
_.m$(function(){if(I&&c!==B().formId){var Z=I,P=B();P.formId&&(Z.formId=P.formId,Z.store.dispatch(_.BP({type:"SET_CURRENT_FORM_ID",payload:{formId:Z.formId}})));c=B().formId}});
_.dt(function(){window.removeEventListener("yt-popup-closed",Y)});
var v=function(Z,P,z){P.key&&z&&P.key!==T()&&(e(P.key),I&&P.command&&I.store.dispatch(_.BP({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:z,command:P.command}})))},y=function(){if(_.h(B().content,_.hB2))return!(T==null?0:T())};
return _.w("yt-dialog-view-model",{class:_.RQ("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.w(oWI,{headerWiz:function(){return _.w("span",{skip:!0},_.w(_.hM,{data:function(){return B().header}},{dialogHeaderViewModel:function(Z){return _.w(WOO,{data:Z.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!B().header},
contentWiz:function(){return _.w("span",{skip:!0},_.w(_.hM,{data:function(){return B().customContent?B().customContent:B().content}},{basicContentViewModel:_.mtL,
createPlaylistDialogFormViewModel:M42,collaborativePlaylistInviteMessageViewModel:nWI,miniAppScoreChallengeViewModel:Nug,radioButtonGroupViewModel:function(Z){return _.w(_.DDm,{data:Z.data,selectedKey:T,onSelected:v})},
selectionListItemFormViewModel:SLd,upsellViewModel:function(Z){return _.w(H1g,{data:Z.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:AXL,installmentAgreementsViewModel:O1H,accessConfirmationViewModel:j7d,listViewModel:_.mbZ}))},
footerWiz:function(){return _.w("span",{skip:!0},_.w(_.hM,{data:function(){return B().footer}},{panelFooterViewModel:function(Z){return _.w(_.Mj,{data:Z.data,
disablePadding:!0,disablePrimaryButton:y})},
formPanelFooterViewModel:XjL,formFooterViewModel:function(Z){return _.w(_.XAO,{data:Z.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!B().footer}}))},"wg");
UzL.idomCompat=!0;_.oQ(UzL,"yt-dialog-view-model",{props:{data:_.Jh},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var kns=_.rp(function(E){var B=E.data;E={};return _.w("yt-panel-header-view-model",{class:_.RQ("yt-panel-header-view-model-wiz",(E["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!B().shouldHideDivider},E["yt-panel-header-view-model-wiz--compact"]=function(){return!!B().subtitle},E))},_.w("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.w(_.wU,{cond:function(){return B().title},
then:function(I){return _.w(_.aS,{text:I,className:"yt-panel-header-view-model-wiz__title"})}}),_.w(_.wU,{cond:function(){return B().subtitle},
then:function(I){return _.w(_.aS,{text:I,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.w("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.w(_.hM,{data:function(){return B().trailingButtons}},{buttonViewModel:function(I){return _.w(_.ne,{data:I.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"xg");
kns.idomCompat=!0;var t4O=_.rp(function(E){var B=_.TI(function(c){var Y;if((Y=E.skipContentClick)==null?0:Y.call(E))return!1;E.onContentWrapperClick(c);return!0}),I,T,e;
return _.w("div",{class:_.RQ("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return E.isAnimating()?"transform: translateY("+E.currentY()+"px);transition: 0.2s":""}},(I=E.header)==null?void 0:I.call(E),_.w("div",{id:E.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.c$({"max-height":(0,_.CR)(E.maxHeightForContentWrapper)}),"on:scroll":TEI(E.onScroll),"on:touchmove":TEI(function(c){return void c.stopPropagation()})},_.w("div",{el:{onRender:E.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":B},(T=E.body)==null?void 0:T.call(E))),(e=E.footer)==null?void 0:e.call(E))},"yg");
t4O.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var fLO=_.rp(function(E){var B=_.Wl(E.leadingLabel),I=_.Wl(E.trailingLabel),T=_.Wl(E.footerButtonType),e=function(){return B()||I()||E.hasPrimaryButton()||E.hasSecondaryButton()},c={},Y=_.RQ("yt-spec-bottom-sheet-layout__primary-button",(c["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return T()===0&&E.hasPrimaryButton()},c["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return T()===1&&E.hasPrimaryButton()},c["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return T()===2&&E.hasPrimaryButton()},c["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return T()===3&&E.hasPrimaryButton()},c));
c={};var v=_.RQ("yt-spec-bottom-sheet-layout__secondary-button",(c["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return T()===1&&E.hasSecondaryButton()},c["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return T()===2&&E.hasSecondaryButton()},c["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return T()===3&&E.hasPrimaryButton()},c));
return _.w(_.wU,{cond:E.hasFooterOverride,then:function(){var y;return _.w(_.VS,null,(y=E.footerOverride)==null?void 0:y.call(E))},
else:function(){return _.w(_.wU,{cond:e,then:function(){return _.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.w(_.wU,{cond:function(){return B()||I()},
then:function(){var y={};return _.w("div",{class:_.RQ("yt-spec-bottom-sheet-layout__footer-label-wrapper",(y["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!E.hasPrimaryButton()},y))},_.w(_.wU,{cond:B,
then:function(){return _.w("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},B)}}),_.w(_.wU,{cond:I,
then:function(){return _.w("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},I)}}))}}),_.w(_.wU,{cond:function(){return E.hasPrimaryButton()||E.hasSecondaryButton()},
then:function(){var y={};return _.w("div",{class:_.RQ("yt-spec-bottom-sheet-layout__footer-button-wrapper",(y["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.dzz,y))},_.w(_.wU,{cond:function(){return E.hasSecondaryButton()&&T()!==0},
then:function(){var Z;return _.w("div",{class:v},(Z=E.secondaryButton)==null?void 0:Z.call(E))}}),_.w(_.wU,{cond:E.hasPrimaryButton,
then:function(){var Z;return _.w("div",{class:Y},(Z=E.primaryButton)==null?void 0:Z.call(E))}}))}}))}})}})},"zg");
fLO.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var V4I=_.rp(function(E){var B=_.Wl(E.title),I=_.Wl(E.subtitle),T=_.TI(function(Y){var v;(v=E.touchstart)==null||v.call(E,Y);return!1}),e=_.TI(function(Y){var v;
(v=E.touchmove)==null||v.call(E,Y);return!1}),c=_.TI(function(Y){var v;
(v=E.touchend)==null||v.call(E,Y);return!1});
return _.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:E.headerId,"on:touchstart":T,"on:touchmove":e,"on:touchend":c},_.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.w(_.wU,{cond:E.hasHeaderOverride,then:function(){var Y;return _.w(_.VS,null,(Y=E.headerOverride)==null?void 0:Y.call(E))},
else:function(){var Y={};return _.w("div",{class:_.RQ((Y["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,Y["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=B,Y))},_.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.w(_.wU,{cond:B,then:function(){return _.w(_.VS,null,_.w("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},B),_.w(_.wU,{cond:I,then:function(){return _.w("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
I)}}))}})),_.w(_.wU,{cond:function(){return B()&&E.hasActionHeader()},
then:function(){var v;return _.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(v=E.actionHeader)==null?void 0:v.call(E))}}))}}))},"Ag");
V4I.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.rp(function(E){function B(K){if(!W&&typeof MutationObserver!=="undefined"){var p4={childList:!0};"MutationObserver"in window&&(W=new MutationObserver(I.bind(void 0,K)),W.observe(K,p4))}}
function I(K){typeof W!=="undefined"&&(U["content-wrapper"]===void 0&&(U["content-wrapper"]=K.children[0].clientHeight),u(U["content-wrapper"]),m()>x()||M(m()))}
function T(){z(window.innerHeight);m()>x()||M(m());q.isFullScreen[0]()&&m()>x()?f().dispatch("Snap To Full Screen",{maxHeight:N()}):f().dispatch("Snap To Neutral Position",{maxHeight:x()})}
function e(K){document.body.style.overscrollBehavior="none";K.preventDefault();f().dispatch("Touch Start",{event:K})}
function c(K){K.preventDefault();f().dispatch("Touch Move",{event:K,contentScrollable:m()>x(),fullContentWrapperHeight:N(),contentWrapperHeight:x(),contentHeightMap:U,contentWrapperId:"content-wrapper",header:lkI(E),footer:lkI(E)})}
function Y(){document.body.style.overscrollBehavior="";q.isFullScreen[0]()?q.currentY[0]()>=60?f().dispatch("Snap To Neutral Position",{maxHeight:x()}):f().dispatch("Snap To Full Screen",{maxHeight:N()}):q.currentY[0]()>=60?v():q.currentY[0]()<=-60&&m()>x()?f().dispatch("Snap To Full Screen",{maxHeight:N()}):f().dispatch("Snap To Neutral Position",{maxHeight:x()})}
function v(){f().dispatch("Close Sheet",{clientHeight:P(),maxHeight:0});setTimeout(function(){euI()},250)}
var y=_.p(_.lQ(window.innerHeight,void 0,"NWeFS")),Z=y.next().value;y=y.next().value;var P=Z,z=y;y=_.p(_.lQ(0,void 0,"oxfm4"));Z=y.next().value;y=y.next().value;var m=Z,u=y;y=_.p(_.l0(function(){var K=lkI(E);return.6*P()-BE7(K)-$KI(K)}));
Z=y.next().value;y=y.next().value;var x=Z,M=y,N=function(){var K=lkI(E);return P()-BE7(K)-$KI(K)-24-24},W=null,U={},q={initialY:_.lQ(0,void 0,"cYBE5c"),
currentY:_.lQ(0,void 0,"RndqHc"),isAnimating:_.lQ(!1,void 0,"vO9DVd"),isFullScreen:_.lQ(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.l0(x)},f=function(){var K=null;return function(){if(!K){var p4={initialY:q.initialY[0](),currentY:q.currentY[0](),isAnimating:q.isAnimating[0](),isFullScreen:q.isFullScreen[0](),maxHeightForContentWrapper:q.maxHeightForContentWrapper[0]()};K=IkI(p4)}return K}}();
_.uW(function(){window.addEventListener("resize",T);f().subscribe(function(K){q.initialY[1](K.initialY);q.currentY[1](K.currentY);q.isAnimating[1](K.isAnimating);q.isFullScreen[1](K.isFullScreen);q.maxHeightForContentWrapper[1](K.maxHeightForContentWrapper)})});
_.dt(function(){window.removeEventListener("resize",T);W&&(W.disconnect(),W=null)});
var ed=_.RQ({"bottom-sheet-content-without-icon":function(){var K;return!((K=E.shouldShowIcons)==null?0:K.call(E))}});
return _.w("bottom-sheet-layout",null,_.w(t4O,{contentWrapperId:"content-wrapper",isAnimating:function(){return q.isAnimating[0]()},
currentY:function(){return q.currentY[0]()},
maxHeightForContentWrapper:function(){return q.maxHeightForContentWrapper[0]()},
shouldShowIcons:E.shouldShowIcons,skipContentClick:E.skipContentClick,onScroll:function(){var K=document.getElementById("header-wrapper"),p4=document.getElementById("content-wrapper");if(K&&p4){var sc={};sc=(sc["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,sc["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,sc);K.className=p4.scrollTop>1?_.B$(sc):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:euI,contentWrapperEl:function(K){B(K);requestAnimationFrame(function(){I(K)})},
header:function(){return _.w(V4I,{touchstart:e,touchmove:c,touchend:Y,title:E.headerTitle,subtitle:E.headerSubtitle,headerId:"header-wrapper",headerOverride:E.headerFn,hasHeaderOverride:E.hasHeaderFn,actionHeader:E.headerActionHeader,hasActionHeader:E.hasHeaderActionHeader})},
footer:function(){return _.w(fLO,{footerButtonType:E.footerButtonType,leadingLabel:E.footerLeadingLabel,trailingLabel:E.footerTrailingLabel,primaryButton:E.footerPrimaryButton,hasPrimaryButton:E.hasFooterPrimaryButton,secondaryButton:E.footerSecondaryButton,hasSecondaryButton:E.hasFooterSecondaryButton,footerOverride:E.footerFn,hasFooterOverride:E.hasFooterFn})},
body:function(){return _.w(_.wU,{cond:E.hasContentFn,then:function(){var K;return _.w("div",{class:ed},(K=E.contentFn)==null?void 0:K.call(E))}})}}))},"Bg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var qL9=_.rp(function(E){var B=_.Q().resolve(_.ZT),I=_.TI(function(){return void B.closeSheet()});
return _.w("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":I},_.w(_.wU,{cond:function(){return!!E.header},
then:function(){return _.w("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},E.header())}}),_.w(_.wU,{cond:function(){return!!E.content},
then:function(){return _.w("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},E.content())}}),_.w(_.wU,{cond:function(){return!!E.footer},
then:function(){return _.w("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},E.footer())}}))},"Cg");
qL9.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var FOT=_.rp(function(E){E=E.data;var B={};return _.w("yt-sheet-view-model",{class:_.RQ("yt-sheet-view-model-wiz",(B["yt-sheet-view-model-wiz--contextual"]=!0,B["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.d("web_disable_backdrop_filter"),B))},_.w(_.wU,{cond:E,then:function(I){return _.w(qL9,{header:function(){return _.w(_.hM,{data:function(){return I().header}},{panelHeaderViewModel:kns})},
content:function(){return _.w(_.hM,{data:function(){return I().content}},{listViewModel:function(T){return _.w(_.mbZ,{data:T.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:H1g,miniAppScoreChallengeViewModel:Nug})},
footer:function(){return _.w(_.hM,{data:function(){return I().footer}},{panelFooterViewModel:_.Mj})}})}}))},"Dg");
FOT.idomCompat=!0;_.oQ(FOT,"yt-sheet-view-model",{props:{data:_.Jh}});var KOm=_.rp(function(E){var B=function(){var I;return(I=E.data().enableDebuggingFeatures)!=null?I:!1};
return _.w("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.w(_.Zt,{each:function(){var I;return(I=E.data().stickers)!=null?I:[]}},function(I){return _.w(Dz1,{data:function(){return I},
debugMode:B})}))},"Eg"),Dz1=_.rp(function(E){var B=_.XS(E,{debugMode:!1}).debugMode,I=_.Wl(function(){var y;
return(y=E.data().region)==null?void 0:y.w},0),T=_.Wl(function(){var y;
return(y=E.data().region)==null?void 0:y.h},0),e=_.Wl(function(){var y;
return(y=E.data().region)==null?void 0:y.x},0),c=_.Wl(function(){var y;
return(y=E.data().region)==null?void 0:y.y},0),Y=_.TI(function(){var y=E.data().onTap;
y&&_.xg(y)}),v={};
return _.w("div",{class:_.RQ("ytStoriesStickerLayerViewModelSticker",(v.ytStoriesStickerLayerViewModelDebugMode=B,v)),style:_.c$({width:function(){return 100*I()+"%"},
height:function(){return 100*T()+"%"},
left:function(){return 100*e()+"%"},
top:function(){return 100*c()+"%"},
"flex-direction":function(){return cR7(E.data().flexDirection)},
"justify-content":function(){return iqT(E.data().justifyContent)},
"align-items":function(){return p89(E.data().alignItems)}}),
"on:click":Y},_.w(_.hM,{data:function(){return E.data().button||E.data().toggleButton}},{buttonViewModel:function(y){return _.w(_.ne,{data:y.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(y){return _.w(_.Le,{data:y.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Fg");var Ejm=_.rp(function(E){var B=function(){return E.data()},I=_.Wl(function(){return B().backgroundColor},0),T=_.Wl(function(){return B().actionButtons},[]),e=_.Wl(function(){return B().stickerLayer},{}),c={},Y=function(){var y,Z;
return{animationRef:c,animationConfig:{autoplay:!1,loop:!1,path:(Z=(y=B().foregroundAnimation)==null?void 0:y.url)!=null?Z:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){E.navigateToNextItemOnLottieComplete()}}}},v=function(){var y,Z,P,z,m,u,x,M;
return{animationConfig:{autoplay:(u=(y=B().backgroundAnimation)==null?void 0:(Z=y.settings)==null?void 0:Z.autoplay)!=null?u:!1,loop:(x=(P=B().backgroundAnimation)==null?void 0:(z=P.settings)==null?void 0:z.loop)!=null?x:!1,path:(M=(m=B().backgroundAnimation)==null?void 0:m.url)!=null?M:"",name:"stories_item_background_animation"}}};
_.m$(function(){if(E.isVisible()){var y;(y=c.lottieEl)==null||y.play()}else{var Z;(Z=c.lottieEl)==null||Z.stop()}});
return _.w("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.c$({"background-color":function(){return _.hR(I())+";"}})},_.w("div",{class:"ytStoriesItemViewModelAssetContent"},_.w(_.wU,{cond:function(){return!!B().backgroundAnimation},
then:function(){return _.w(_.E1,{data:v,animationName:function(){return v().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.w(_.wU,{cond:function(){return!!B().backgroundImage},
then:function(){return _.w(_.Ja,{data:function(){return B().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.w(_.wU,{cond:function(){return!!B().foregroundAnimation},
then:function(){return _.w(_.E1,{data:Y,animationName:function(){return Y().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.w(_.wU,{cond:function(){return!!B().foregroundImage},
then:function(){return _.w(_.Ja,{data:function(){return B().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.w("div",{class:"ytStoriesItemViewModelTopShadow"}),_.w(_.hM,{data:function(){return e()}},{storiesStickerLayerViewModel:KOm})),_.w("div",{class:"ytStoriesItemViewModelBottomShadow"},_.w("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.TI(E.pauseAutoNavigation)},_.w(_.Zt,{each:T},function(y){return _.w(Rgt,{data:function(){return y}})}))))},"Gg"),Rgt=_.rp(function(E){var B={};
return _.w("div",{class:_.RQ("ytStoriesItemViewModelActionButton",(B.ytStoriesItemViewModelStretchedActionButton=function(){return E.data().size==="STORIES_BUTTON_SIZE_STRETCH"},B))},_.w(_.hM,{data:function(){return E.data().button}},{buttonViewModel:function(I){return _.w(_.ne,{data:I.data,
className:"ytStoriesItemViewModelButton"})}}))},"Hg");_.oQ(_.rp(function(E){var B=_.p(_.l0(function(){var U;return(U=E.data().startIndex)!=null?U:0})),I=B.next().value,T=B.next().value;
B=_.p(_.lQ(!1,void 0,"klmjc"));var e=B.next().value,c=B.next().value,Y=function(){var U;return(U=E.data().storyItems)!=null?U:[]},v=function(){return E.data().dismissButton},y=function(){var U;
return _.h((U=_.h(v(),_.sO))==null?void 0:U.onTap,_.dX)},Z=_.oH(),P,z=function(){var U;
(U=P)==null||U.cancel();P=m(I()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});P.onfinish=function(){m(I()).style.width="100%";var q=_.h(Y()[I()],I_9),f,ed;q!=null&&q.foregroundAnimation&&((q==null?0:(f=q.foregroundAnimation)==null?0:f.url)||(q==null?0:(ed=q.foregroundAnimation)==null?0:ed.payload))||(I()!==Y().length-1?(T(I()+1),z()):y()&&_.se(y()))}},m=function(U){return Z.value.children[U].children[0]},u=function(){for(var U=0;U<I();U++)m(U).style.width="100%"};
B=_.TI(function(){e()?c(!1):(I()===Y().length-1&&y()&&_.se(y()),m(I()).style.width="100%",I()!==Y().length-1&&(T(I()+1),z()))});
var x=_.TI(function(){e()?c(!1):(m(I()).style.width="0%",I()!==0?T(I()-1):T(I()),z())}),M=function(){c(!0)},N=function(){m(I()).style.width="100%";
I()!==Y().length-1?(T(I()+1),z()):y()&&_.se(y())},W=_.TI(function(){var U;
(U=P)==null||U.pause()});
_.m$(function(){if(e()){var U;(U=P)==null||U.pause()}else{var q;(q=P)==null||q.play()}});
_.m$(function(){u();I()===E.data().startIndex&&z()});
_.uW(function(){u();z()});
return _.w("yt-stories-viewer-view-model",{class:_.RQ("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.w("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.w("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":x,"on:mousedown":W}),_.w("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":B,"on:mousedown":W})),_.w(_.hM,{data:Y},{storiesItemViewModel:function(U,q){var f=U.data;return _.w(_.wU,{cond:function(){return Math.abs(q()-
I())<=1},
then:function(){var ed={};return _.w("div",{class:_.RQ("ytStoriesViewerViewModelStoryItem",(ed.ytStoriesViewerViewModelHiddenStoryItem=function(){return q()!==I()},ed))},_.w(Ejm,{data:f,
pauseAutoNavigation:M,navigateToNextItemOnLottieComplete:N,isVisible:function(){return q()===I()}}))}})}}),_.w("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:Z},_.w(_.Zt,{each:Y},function(){return _.w("div",{class:"ytStoriesViewerViewModelProgressBar"},_.w("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.w("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.w(_.hM,{data:v},{buttonViewModel:_.ne})))},"Ig"),"yt-stories-viewer-view-model",{props:{data:_.Jh}});_.oQ(_.rp(function(E){var B=E.data;var I=_.oH(),T=[];return _.w("yt-gen-ai-feedback-form-view-model",{el:I,class:"ytGenAiFeedbackFormViewModelHost"},_.w(_.aS,{text:function(){return B().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.w("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.w(_.hM,{data:function(){return B().feedbackChips}},{toggleButtonViewModel:function(e){var c=e.data;
return _.w(_.Le,{data:c,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(Y){var v=c();v=_.h(v,_.uO);v=_.h(v==null?void 0:v.defaultButtonViewModel,_.sO).trackingParams;Y?T.push(v):(Y=T.indexOf(v),Y>-1&&T.splice(Y,1))}})}})),_.w(_.aS,{text:function(){return B().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.w("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.w(_.hM,{data:function(){return B().submitButton}},{buttonViewModel:function(e){return _.w(_.ne,{data:e.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Yqd(I.value,T,B().uniqueId)}})}}),_.w(_.hM,{data:function(){return B().moreFeedbackButton}},{buttonViewModel:function(e){return _.w(_.ne,{data:e.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Jg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Jh},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Ho=function(){return _.r.apply(this,arguments)||this};
_.L(Ho,_.r);Ho.prototype.created=function(){Adt(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(ha9);var E=_.Q().resolve(_.ElH);E&&(E.container=this.ytPopupContainerBehavior);if(E=_.Q().resolve(_.ZT))E.container=this.ytPopupContainerBehavior;if(E=_.Q().resolve(_.PZ)){var B=this.ytPopupContainerBehavior;E.containerWasInjected?_.OG(Error("cj")):E.container=B}};
Ho.prototype.ensurePopupBelowPlayer=function(E,B){var I=_.Q().resolve(_.Fx(_.oS));if(!I||!I.isOnWatch()||!_.jx())return!1;I=I.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.v8().height>I+this.getPopupHeight(E,B)?(E.style.top="auto",E.style.bottom="0px"):(E.style.top=I+"px",E.style.bottom="auto");return!0};
Ho.prototype.getPopupHeight=function(E,B){B&&(E.cachedPopupHeight=0);if(!E.cachedPopupHeight){B=0;var I=E.clientHeight,T=window.getComputedStyle(E);B+=parseInt(T.marginTop,10);B+=parseInt(T.marginBottom,10);E.cachedPopupHeight=I+B}return E.cachedPopupHeight};
Ho.prototype.getElement=function(E){return document.createElement(E)};
_.k([_.g(tU8.YtPopupContainerBehavior),_.t("design:type",Object)],Ho.prototype,"ytPopupContainerBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Ho.prototype,"ytComponentBehavior",void 0);Ho=_.k([_.b({disableElementRegistration:!0,is:"ytd-popup-container"})],Ho);
_.A(Ho,"ytd-popup-container",function(){if(JuL!==void 0)return JuL;var E=document.createElement("template");_.G(E,"\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");E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);return JuL=E},{mode:1});var B$L;var $RH={};$RH.YtLogYpcFlowCommandsBehavior=[_.th.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(E){_.h(E,dTL)&&(E=_.h(E,dTL))&&(E.serializedTransactionFlowLoggingParams?_.Nhi(E.serializedTransactionFlowLoggingParams):E.serializedYpcCancelFlowLoggingParams?(E=E.serializedYpcCancelFlowLoggingParams)&&_.Qb("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",E):E.serializedYpcResumeFlowLoggingParams?(E=E.serializedYpcResumeFlowLoggingParams)&&_.Qb("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",E):E.serializedYpcPauseFlowLoggingParams?(E=E.serializedYpcPauseFlowLoggingParams)&&
_.Qb("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",E):E.serializedYpcRefundFlowLoggingParams?(E=E.serializedYpcRefundFlowLoggingParams)&&GFg("YPC_EVENT_TYPE_START",E):E.serializedYpcDeactivateFlowLoggingParams?(E=E.serializedYpcDeactivateFlowLoggingParams)&&_.Qb("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",E):E.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(E=E.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Qb("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",E))},
handleLogYpcFlowDismiss_:function(E){_.h(E,Qpt)&&(E=_.h(E,Qpt),E.serializedTransactionFlowLoggingParams?_.g26(E.serializedTransactionFlowLoggingParams):E.serializedYpcCancelFlowLoggingParams?(E=E.serializedYpcCancelFlowLoggingParams)&&_.Qb("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",E):E.serializedYpcResumeFlowLoggingParams?(E=E.serializedYpcResumeFlowLoggingParams)&&_.Qb("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",E):E.serializedYpcPauseFlowLoggingParams?(E=
E.serializedYpcPauseFlowLoggingParams)&&_.Qb("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",E):E.serializedYpcRefundFlowLoggingParams&&(E=E.serializedYpcRefundFlowLoggingParams)&&GFg("YPC_EVENT_TYPE_CANCEL",E))}}];var I8d={};I8d.YtCancelRecurrenceBehavior=[_.G0.YtComponentBehavior,_.l9t,{attached:function(){var E=this;L0H(this,function(B,I){return E.ypcCancelRecurrenceHandler(B,I)})},
ypcCancelRecurrenceHandler:function(E,B){var I=this;if(!B||!B.ypcCancelRecurrenceEndpoint)return!1;if(!B.ypcCancelRecurrenceEndpoint.params)return _.SI(Error("ul")),!0;_.j9(this.hostElement);var T=_.MN.instance,e=_.Q().resolve(_.Fx(_.Zk));T&&_.H$(T,B)?_.NN(T,B).then(function(c){I.ypcCancelRecurrenceSuccess_(E,B,{data:c})},function(c){I.ypcCancelRecurrenceFailure_(E,B,c)}).thenCatch(function(){_.SI(Error("vl"))}):e?e.requestDataForServiceEndpoint(B).then(function(c){I.ypcCancelRecurrenceSuccess_(E,
B,c)},function(c){I.ypcCancelRecurrenceFailure_(E,B,c)}).thenCatch(function(){_.SI(Error("vl"))}):_.SI(Error("wl"));
return!0},
ypcCancelRecurrenceSuccess_:function(E,B,I){_.Uj(this.hostElement);I.data||(I={data:I});I.data&&I.data.actions&&_.cN(this.hostElement,I.data.actions,this.hostElement);I.data.messageRenderer?nVs(B.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(B=B.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Qb("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",B);_.$O(E,"yt-service-request-completed",I)},
ypcCancelRecurrenceFailure_:function(E,B,I){_.Uj(this.hostElement);nVs(B.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.$O(E,"yt-service-request-error",{error:I,params:[E,B]})}}];var T$7=function(E,B){_.Ec.call(this,B)};
_.L(T$7,FaO);var eFt={};eFt.YtCompleteTransactionBehavior=[_.G0.YtComponentBehavior,_.l9t,{attached:function(){var E=this;L0H(this,function(B,I){return E.ypcCompleteTransactionHandler(B,I)})},
completeTransaction:function(E,B){var I=this;B={payments_payload:window.btoa(B.integratorData),buybucket_params:E.data.buybucketParams,offer_params:E.data.offerParams};var T=_.Q().resolve(_.Zk),e=E.data.completeTransactionEndpoint,c=this.get("ypcCompleteTransactionEndpoint.actions",e);c&&_.cN(this.hostElement,c,this.hostElement);return(c=_.MN.instance)&&_.H$(c,e)?_.NN(c,e,B).then(function(Y){return!Y||(Y==null?0:Y.error)?(Y=I.get("data.serializedTransactionFlowLoggingParams",E),_.rG(new t9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
Y))):{data:Y}}).then(function(Y){return I.handleCompleteTransactionSuccess_(Y,E)},function(){return I.handleCompleteTransactionFailure_(E)}):T.requestDataForServiceEndpoint(e,B).then(function(Y){return I.handleCompleteTransactionSuccess_(Y,E)},function(){return I.handleCompleteTransactionFailure_(E)})},
handleCompleteTransactionSuccess_:function(E,B){E.data||(E={data:E});if(E.data.messageRenderer)return _.rG(new T$7(E.data.messageRenderer));if(E.data.trackingParams){var I=_.nC(),T=_.Oi();I&&T&&_.XD(I,T,_.Yg(E.data.trackingParams))}B=this.get("data.serializedTransactionFlowLoggingParams",B);OiL(B);return _.i1(E)},
handleCompleteTransactionFailure_:function(E){E=this.get("data.serializedTransactionFlowLoggingParams",E);_.SP("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",E);return _.rG(new t9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",E))},
ypcCompleteTransactionHandler:function(E,B){var I=this;if(!B.ypcCompleteTransactionEndpoint)return!1;if(!B.ypcCompleteTransactionEndpoint.transactionParams)return _.SI(Error("xl")),!0;B.ypcCompleteTransactionEndpoint&&B.ypcCompleteTransactionEndpoint.gtmData&&_.CM(B.ypcCompleteTransactionEndpoint.gtmData);var T=_.Q().resolve(_.Fx(_.Zk));if(T){_.j9(this.hostElement);var e=_.MN.instance;e&&_.H$(e,B)?_.NN(e,B).then(function(c){return!c||(c==null?0:c.error)?(c=I.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
B),_.rG(new t9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",c))):{data:c}}).then(function(c){_.$O(E,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(B,c)},function(){return I.ypcCompleteTransactionFailure_(B)}):T.requestDataForServiceEndpoint(B).then(function(c){_.$O(E,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(B,c)},function(){return I.ypcCompleteTransactionFailure_(B)})}return!0},
ypcCompleteTransactionSuccess_:function(E,B){_.Uj(this.hostElement);B.data||(B={data:B});_.I2(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);B.data.messageRenderer||B.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(E):(_.CM('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",E));B.data.actions&&(E=Jlg(B.data.actions),B=Wr8(B.data.actions),E.length&&_.l1(this.hostElement,
E),B.length&&_.cN(this.hostElement,B,this.hostElement))},
ypcCompleteTransactionFailure_:function(E){_.Uj(this.hostElement);_.I2(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",E,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(E,B,I){if(B=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",B))B={serializedTransactionFlowLoggingParams:B},I&&(B.errorType=I),_.hK(E,B),_.Li()}}];var l8T={};l8T.YtEndpointHandlerWithYpcBehavior=[_.l9t,_.th.YtActionHandlerBehavior,[{openWalletDialog:function(E,B,I,T,e,c,Y){var v=this,y=_.gA();B=B.replace(/-/g,"+").replace(/_/g,"/");var Z=_.ZB().get("hl");_.UZB(_.eD(_.JR),B,y.resolve,e,function(P){c&&c();y.reject(P)},Z,function(P){return v.onServerBackendAnalyticEvent_(E,I,P)},this.onDialogClose_.bind(this),T,Y);
return y.promise},
openFixFlowDialog:function(E,B,I,T){E=E.replace(/-/g,"+").replace(/_/g,"/");_.eD(_.JR).openFixFlowDialog(E,B,I,T)},
onDialogClose_:function(){_.I2(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(E,B,I){E.fire("yt-commerce-action-init-done");B&&_.l1(this.hostElement,[B,{backend_analytics:I}])}}],
_.E6.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(E,B){E=this.get("data.nativeFlowEndpoint",B);B=this.get("data.fallbackEndpoint",B);E?_.l1(this.hostElement,[E]):B&&_.$O(this.hostElement,"yt-navigate",{endpoint:B})}}],
I8d.YtCancelRecurrenceBehavior,eFt.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 E=this;L0H(this,function(B,I,T){return E.handleYPCEndpoint(B,I,T)});
this.ypcRegisterActionMapJobId_=_.PC(_.Ll,function(){E.registerActionMap(E.buyFlowActionMap_)})},
detached:function(){var E=this;_.Ll.cancelJob(this.ypcRegisterActionMapJobId_);_.PC(_.Ll,function(){E.unregisterActionMap(E.buyFlowActionMap_)})},
handleYPCEndpoint:function(E,B,I){var T=B.ypcGetCartEndpoint;if(T){_.OK("commerce_transaction");var e=T.gtmId;e&&_.y5(e);(T=T.gtmData)&&_.CM(T)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",B)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(E,B),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",B)!=null?(this.handleYPCFixInstrumentEndpoint_(E,B),!0):B.ypcPauseSubscriptionCommand?(mKO(this.hostElement,E,B,I),
!0):B.ypcResumeSubscriptionCommand?(hu9(this.hostElement,E,B),!0):B.getPaymentInstrumentsParamsCommand?(Zq2(this.hostElement,E,B),!0):B.ypcHandleTransactionEndpoint?(CjI(this.hostElement,E,B,I),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(E,B){var I=this;_.nO("ttcr",void 0,"commerce_transaction");B=B.ypcGetCartEndpoint;var T=B.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,e=T.encryptedPurchaseParams,c=T.serializedTransactionFlowLoggingParams,Y=T.serializedPaymentsClientParams,v=this.createGetCartResponseFromParams_(T,B.offerParams,c);this.changeButtonState(E,!0);_.sk(this.openWalletDialog(E,e,T.ypcLogWalletAnalyticDataEndpoint,c,function(){I.changeButtonState(E,!1)},function(){I.changeButtonState(E,
!1)},Y).then(function(y){return I.handleBuyFlowCompleteCallback_(E,v,y)},function(){return I.handleOnLoadError(v)}).then(function(y){return void I.handlePostPurchaseSuccess_(E,v,y)},function(y){return void I.handlePostPurchaseError_(y)}),function(){I.changeButtonState(E,!1);
E instanceof Element&&_.$O(E,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(E,B,I){var T=E.completeTransactionEndpoint,e=E.handleTransactionEndpoint;B={data:{offerParams:window.btoa(B),serializedTransactionFlowLoggingParams:I}};e?B.data.handleTransactionEndpoint=e:B.data.completeTransactionEndpoint=T;E.onCartDismissCommand&&(B.data.onCartDismissCommand=E.onCartDismissCommand);return B},
onGetCartServiceRequestCompleted_:function(E,B){var I=this,T=E.target;if(B&&B.data&&B.data.messageRenderer)_.Uj(this.hostElement),this.handleMessageRenderer_(B.data.messageRenderer),this.changeButtonState(T,!1);else{var e=this.get("data.encryptedPurchaseParams",B),c=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",B),Y=this.get("data.ypcLogWalletAnalyticDataEndpoint",B),v=this.get("data.serializedPaymentsClientParams",B),y=this.getLoggingParams_(B);if(y||e||c)E.stopPropagation(),_.nO("ttcr",
void 0,"commerce_transaction"),e||_.Uj(this.hostElement),this.changeButtonState(T,!1),c?_.I2(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.HA("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:c}}},this]):e&&(this.changeButtonState(T,!0),E=null,E=this.openWalletDialog(T,e,Y,y,function(){_.Uj(I.hostElement);I.changeButtonState(T,!1)},function(){_.Uj(I.hostElement);
I.changeButtonState(T,!1)},v),_.sk(E.then(function(Z){return I.handleBuyFlowCompleteCallback_(T,B,Z)},function(){return I.handleOnLoadError(B)}).then(function(Z){return I.handlePostPurchaseSuccess_(T,B,Z)},function(Z){return I.handlePostPurchaseError_(Z)}),function(){I.changeButtonState(T,!1);
_.$O(T,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(E,B){B&&B.endpoint&&B.endpoint.ypcGetCartEndpoint&&!B.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",B.endpoint.ypcGetCartEndpoint)&&_.cN(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",B.endpoint.ypcGetCartEndpoint)],E.target),_.j9(this.hostElement),this.changeButtonState(E.target,!0))},
onServiceRequestError_:function(E,B){if(B&&B.params&&B.params.length){B=_.p(B.params);for(var I=B.next();!I.done;I=B.next())if((I=I.value)&&I.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)&&_.cN(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)],E.target);_.Uj(this.hostElement);this.changeButtonState(E.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(E,B,I){var T=I.integratorData;return T==null||T===""||I.error!=null?(T=this.getLoggingParams_(B),String(I.error)==="-1"?(B.data.onCartDismissCommand&&_.cN(this.hostElement,[B.data.onCartDismissCommand],E),_.rG(new t9("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",T,!0))):_.rG(new t9("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",T))):B.data.handleTransactionEndpoint?w8g(this.hostElement,B.data.handleTransactionEndpoint,{payments_payload:T,funds_guarantee_callback_client_data:I.integratorClientCallbackData}):
this.completeTransaction(B,I)},
handlePostPurchaseSuccess_:function(E,B,I){B=I.data;var T=!1,e,c;if(B&&((e=B.command)==null?0:(c=e.commandExecutorCommand)==null?0:c.commands)){var Y,v;e=(Y=B.command)==null?void 0:(v=Y.commandExecutorCommand)==null?void 0:v.commands;for(Y=0;Y<e.length;Y++)if(_.h(e[Y],_.B5R)){T=!0;break}}T||(B&&B.gtmDatas&&B.gtmDatas.length?_.CM(B.gtmDatas[0]):_.CM('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));I.data&&I.data.actions&&(B=Jlg(I.data.actions),I=Wr8(I.data.actions),B.length&&
_.l1(this.hostElement,B),I.length&&_.cN(this.hostElement,I,E))},
handlePostPurchaseError_:function(E){E&&E.payload&&E.payload.isUserDismiss||_.xV(Error("zl"))},
handleOnLoadError:function(E){E=this.getLoggingParams_(E);return _.rG(new t9("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",E))},
getLoggingParams_:function(E){return this.get("data.serializedTransactionFlowLoggingParams",E)},
handleMessageRenderer_:function(E){var B=_.Or(E,"renderer"),I=_.HA("openPopupConfig");B==="confirmDialogRenderer"&&I&&_.I2(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:I.popupTypeMap[B],popup:E}},this])},
handleYPCFixInstrumentEndpoint_:function(E,B){var I=this,T=B.ypcFixInstrumentEndpoint;B=T.encryptedFixInstrumentParameters;this.logFixFopEvent_(T,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(E,!0);this.openFixFlowDialog(B,function(e,c){I.onFixFlowCompleteCallback_(T,e,c)},function(){return I.changeButtonState(E,!1)},function(){I.changeButtonState(E,!1);
I.logFixFopEvent_(T,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(E,B,I){var T=_.WA("payments.business.integration.scenario.FixInstrument");if(B==T.IntegratorCallbackType.ON_COMPLETE){B="FIX_FOP_EVENT_TYPE_CANCEL";var e=null;I.error!=null?I.error!=T.OnCompleteCallbackError.USER_CANCELLED&&(_.cN(this.hostElement,[E.errorAction],this.hostElement),B="FIX_FOP_EVENT_TYPE_FAILURE",e="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.cN(this.hostElement,[E.successAction],this.hostElement),B="FIX_FOP_EVENT_TYPE_SUCCESS");_.cN(this.hostElement,[E.onFinishAction],
this.hostElement);this.logFixFopEvent_(E,B,e)}},
logFixFopEvent_:function(E,B,I){(E=E.serializedFixFopLoggingParams)?(B={eventType:B,serializedFixFopLoggingParams:E},I!=null&&(B.errorType=I),_.hK("fixFopFlow",B),_.Li()):_.xV(Error("Al"))},
changeButtonState:function(E,B){_.d("enable_ypc_spinners")&&E&&(E.is==="yt-button-renderer"||E.is==="ytd-button-renderer")&&(E.disabled=B)}}];var cnI=function(E){this.JSC$28574_clientRoot=E;this.feedbackCollectorActionMap={"yt-help-dialog-requested":uN7,"yt-feedback-dialog-requested":sNm,"yt-signal-action-help":LhT,"yt-signal-action-send-feedback":xK1,"yt-send-feedback-action":OqL,"yt-user-feedback-endpoint":nG2};_.X4(_.WC.getInstance(),this.feedbackCollectorActionMap,this.JSC$28574_clientRoot)},iRm;var pz8=function(E){this.JSC$28579_clientRoot=E;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":MP9.bind(null,this.JSC$28579_clientRoot),"yt-signal-action-delete-all-downloads":NEs,"yt-signal-action-delete-download":gGs,"yt-signal-action-delete-playlist-download":JR1,"yt-signal-action-install-pwa":ARO,"yt-signal-action-refresh-downloads":bqt,"yt-offline-video-endpoint":UKL,"yt-offline-playlist-endpoint":tPt,"yt-update-local-app-setting-command":VPt,"yt-offline-orchestration-action-command":FhI,
"yt-signal-action-undo-delete-download":X8I,"yt-local-watch-history-command":RuT};_.X4(_.WC.getInstance(),this.downloadManagerActionMap,this.JSC$28579_clientRoot);_.MK.instance=new _.MK},Yl9;var NZ=function(){var E=_.r.apply(this,arguments)||this;E.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_"};E.remoteApi_=null;return E};
_.L(NZ,_.r);_.l=NZ.prototype;
_.l.ready=function(){_.d("polymer_enable_mdx")&&(h8O({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.d("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.d("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.d("enable_cast_short_lived_lounge_token")}),_.BC("yt-remote-connection-change",this.handleConnectionChange_,this),_.BC("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=nC9())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.l.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.l.handleConnectionChange_=function(E){(this.mdxConnected=E)?(E=LEs(),!E&&Q2H()&&dfI()&&(E={key:"cast-selector-receiver",name:dfI()}),E=E.name):E=null;this.receiverName=E;_.bl(this.remoteApi_);(this.remoteApi_=nC9())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.l.handleReceiverAvailabilityChange_=function(){var E=ueg();Q2H()&&_.cc("yt-remote-cast-available")&&E.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=E.length>0};
_.l.handleRemoteQueueChange_=function(){var E=this.currentVideoId_,B=this.currentListId_,I=Rm(this.remoteApi_);this.currentVideoId_=I.videoId;this.currentListId_=I.listId;this.currentVideoId_&&_.I2(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.d("polymer_enable_mdx_queue")?this.currentListId_:null,E,B])};
_.l.handleAddToQueueAction_=function(E){E=_.h(E,T88);this.remoteApi_&&(E.videoId?this.remoteApi_.addVideo(E.videoId):E.playlistId&&this.remoteApi_.addPlaylist(E.playlistId))};
_.l.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.l.handleInsertInQueueAction_=function(E){E=_.h(E,ekT);this.remoteApi_&&E.videoId&&this.remoteApi_.JSC$17440_insertVideo(E.videoId)};
_.l.handleRemoveFromQueueAction_=function(E){E=_.h(E,l_m);this.remoteApi_&&E.videoId&&this.remoteApi_.JSC$17440_removeVideo(E.videoId)};
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],NZ.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X(),_.t("design:type",Object)],NZ.prototype,"appId",void 0);_.k([_.X(),_.t("design:type",Boolean)],NZ.prototype,"mdxConnected",void 0);_.k([_.X(),_.t("design:type",Boolean)],NZ.prototype,"receiverAvailable",void 0);_.k([_.X(),_.t("design:type",Object)],NZ.prototype,"receiverName",void 0);_.k([_.X(),_.t("design:type",Object)],NZ.prototype,"currentVideoId_",void 0);
_.k([_.X(),_.t("design:type",Object)],NZ.prototype,"currentListId_",void 0);NZ=_.k([_.QE({is:"yt-mdx-manager",disableElementRegistration:!0})],NZ);_.A(NZ,"yt-mdx-manager",void 0,{mode:2});var a8I;var vj9;var gN=function(){var E=_.r.apply(this,arguments)||this;E.APP_IDS={ytr:3,ytm:5};E.JSC$18679_timeoutId_=0;E.actionMap={"yt-open-create-family-dialog":"open"};return E};
_.L(gN,_.r);_.l=gN.prototype;_.l.created=function(){Adt(2200)};
_.l.detached=function(){this.observer_&&this.observer_.disconnect()};
_.l.open=function(E,B){var I=this,T=E.serializedYpcFamilyCreateLoggingParams;this.JSC$18679_timeoutId_=setTimeout(this.abort_.bind(this,E.postFlowErrorEndpoint,T),3E4);B&&(this.onReadyCallback_=B);var e=_.n(this.hostElement).querySelector("#unicorn-iframe");T&&T&&xWI("ypcFamilyCreateFlowStarted",T);_.PIB("family_creation",function(){var c=_.WA("gapi.family_creation.render");_.WA("gapi.config.update")("iframes/family_creation/url",I.getFamilyCreationUrlWithUnicornParams_());var Y=3;E.appId&&E.appId in
I.APP_IDS&&(Y=I.APP_IDS[E.appId]);Y={authUser:_.HA("SESSION_INDEX")||0,clientId:Y,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.HA("HL"),initialflow:[4,5,6,7],m:I.isMobile?1:0,onFlowComplete:I.onUnicornFlowComplete_.bind(I,E.postFlowSuccessEndpoint,T),onError:I.onUnicornFlowError_.bind(I,E.postFlowErrorEndpoint,T),onReady:I.onUnicornFlowReady_.bind(I,E.referencePcidParams)};c(e,Y)})};
_.l.close=function(){_.n(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.l.onUnicornFlowComplete_=function(E,B){this.close();B&&B&&xWI("ypcFamilyCreateFlowSucceeded",B);_.$O(this.hostElement,"yt-navigate",{endpoint:E})};
_.l.onUnicornFlowError_=function(E,B){this.close();B&&xWI("ypcFamilyCreateFlowCancelled",B);_.$O(this.hostElement,"yt-navigate",{endpoint:E})};
_.l.onUnicornFlowReady_=function(E){var B=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();E&&_.WA("gapi.family_creation.setConfig")(0,E);this.observer_=new MutationObserver(function(){_.n(B.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.n(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.n(this.hostElement).querySelector("#dialog").open()};
_.l.getFamilyCreationUrlWithUnicornParams_=function(){return _.HA("YTR_FAMILY_CREATION_URL")};
_.l.getCurrentUrl_=function(){return document.location.href};
_.l.abort_=function(E,B){this.clearTimeout_();this.onUnicornFlowError_(E,B)};
_.l.clearTimeout_=function(){clearTimeout(this.JSC$18679_timeoutId_)};
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],gN.prototype,"ytActionHandlerBehavior",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],gN.prototype,"isMobile",void 0);_.k([_.X(),_.t("design:type",Object)],gN.prototype,"onReadyCallback_",void 0);_.k([_.X(),_.t("design:type",Object)],gN.prototype,"observer_",void 0);gN=_.k([_.QE({is:"yt-create-family-dialog",disableElementRegistration:!0})],gN);
_.A(gN,"yt-create-family-dialog",function(){if(vj9===void 0){var E=document.createElement("template");_.G(E,'\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');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);var B=E.content,I=B.insertBefore;a8I===void 0&&(a8I=document.createElement("template"));var T=a8I;I.call(B,T.content.cloneNode(!0),E.content.firstChild);vj9=E}E=vj9;return E},{mode:2});var yns;var CB2;var Sh=function(){var E=_.r.apply(this,arguments)||this;E.STEP=1;E.BLOCK_ON=80;E.MIN_PROGESS=0;E.MAX_PROGESS=100;return E};
_.L(Sh,_.r);_.l=Sh.prototype;_.l.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.l.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));_.Q().addProvider({provide:eat,useValue:this})};
_.l.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.l.finish=function(){var E=this;this.progress=this.MAX_PROGESS;E7g(function(){E.progress==E.MAX_PROGESS&&(E.hostElement.hidden=!0)})};
_.l.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Up.Object.defineProperties(Sh.prototype,{progress:{configurable:!0,enumerable:!0,set:function(E){this.progress_=E;var B="scaleX("+E/this.MAX_PROGESS+")",I=_.n(this.hostElement).querySelector("#progress").style;I.transform=B;I.webkitTransform=B;this.hostElement.setAttribute("aria-valuenow",String(E))},
get:function(){return this.progress_}}});
_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],Sh.prototype,"ytComponentBehavior",void 0);Sh=_.k([_.QE({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Sh);
_.A(Sh,"yt-page-navigation-progress",function(){if(CB2===void 0){var E=document.createElement("template");_.G(E,'\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');E.content.insertBefore(_.D().content.cloneNode(!0),
E.content.firstChild);var B=E.content,I=B.insertBefore;yns===void 0&&(yns=document.createElement("template"));var T=yns;I.call(B,T.content.cloneNode(!0),E.content.firstChild);CB2=E}E=CB2;return E},{mode:2});var wzs={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"},ZRL={"font-size":"12px","font-style":"italic"},PB2={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.Tp7=function(){return _.a(function(E){_.ER(E)})};_.oQ(_.rp(function(){var E=_.hk(_.y_J);return _.w("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var B;return(B=E())==null?void 0:B.announcement})},"Kg"),"yt-ephemeral-actions");var h22=new Map;var lDL=function(E,B){var I=this;this.handleError=E;this.logEventInternal=B;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){I.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
lDL.prototype.logError=function(E){this.handleError(E)};
lDL.prototype.logEvent=function(E,B){switch(E){case "IDB_DATA_CORRUPTED":_.d("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",B);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",B);break;case "IS_SUPPORTED_COMPLETED":_.d("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",B);break;case "QUOTA_EXCEEDED":zFH(this,B);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",B);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":E=Object.assign({},B,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",E)}};
var zFH=function(E,B){_.Ic.getInstance().estimate().then(function(I){I=Object.assign({},B,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:uST(I==null?void 0:I.usage),deviceStorageQuotaMbytes:uST(I==null?void 0:I.quota)});E.logEventInternal("idbQuotaExceeded",I)})};var J0=function(){var E=_.r.apply(this,arguments)||this;E.tabGesturesIsActive=!1;E.deprecateFullerscreenUi=_.d("web_watch_fullerscreen_deprecation_ui");E.hasDelegation=!1;E.darkerDarkTheme=_.d("web_darker_dark_theme");E.isFrostedGlassInitialized=!1;E.frostedGlassExp=_.d("web_frosted_glass");E.mastheadHiddenFocusWithinKillswitch=_.d("web_masthead_hidden_focus_within_killswitch");E.ephemeralActionsEnabled=_.d("web_ephemeral_actions");E.scrollAtTop=!0;E.guideScrollTop=0;E.isTheaterModeSession=_.gU("START_IN_THEATER_MODE");
E.iMaxTheaterMode=_.d("web_watch_imax_theater_mode");E.isFullWindowSession=_.gU("START_IN_FULL_WINDOW_MODE");E.hasCreateFamilyDialog=!1;E.mastheadHeight=56;E.networkStatusManager=new _.Xg;E.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-clear-url-param-command":"handleClearUrlParamCommand","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-persist-subscriptions-display-preferences-command":"handlePersistSubscriptionsDisplayPreferencesCommand","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleWebNativeShareCommand",
"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"};
E.dynamicActionMap={"yt-run-attestation-command":function(B){var I=_.JpN.instance,T=_.h(B,_.Mit);return T?_.d("use_rta_manager_for_async")&&kR2()?H8s(I,T,B.clickTrackingParams):MOI(I,T,B.clickTrackingParams):_.rG(Error("mi"))}};
E.isFrostedGlassDisabled=!1;E.isChannelOrPlaylistPage=!1;return E};
_.L(J0,_.r);_.l=J0.prototype;_.l.created=function(){var E=_.Q();_.d("kevlar_clear_duplicate_pref_cookie")&&_.PC(_.Ll,function(){var B=_.v7.get("PREF");B&&!/f\d=/.test(B)&&(B=_.EF("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=B?"PREF=null;domain="+B+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.d("gzip_gel_with_worker")&&_.sYd();_.d("jspb_serialize_with_worker")&&ZlH();_.d("web_worker_availability_check")&&s3T();_.d("nwl_init_killswitch")||Cym().then(function(){_.Ll.addLowPriorityJob(Gat)});
this.pageManagerAttachedPromise=_.gA();this.ytdAppBehavior.loadDepsPromise=_.hP([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.qH(this.onThrottledScroll,200,this);_.d("external_fullscreen")&&(this.fullscreen=!1);this.ephemeralResponseStore=E.resolve(_.Kz);this.boundOnTouchStart=this.onTouchStart.bind(this);cId();q1t=!!_.WA("ytappsettings.initialized");T3=_.WA("ytappsettings.previousValue");cKO=_.WA("ytappsettings.previousSnapshotTime");q1t||
(q1t=!0,iiL());gOg();SKg();_.MD("DEFERRED_DETACH",_.d("kevlar_tuner_should_defer_detach"));_.MD("REUSE_COMPONENTS",!0);_.MD("STAMPER_STABLE_LIST",!0);_.MD("SCHEDULED_LAZY_LIST",!0);_.MD("openPopupConfig",dkT);_.MD("useClickHandler",!0);_.d("kevlar_shell_cleanup")&&_.Ll.addLowPriorityJob(Fg7.bind(this,_.$i.caches));_.gU("IS_SHELL_LOAD")&&_.LO({shellStartupDurationMs:Math.round((0,_.VZ)()-_.Qu())});i$2(this.networkStatusManager);_.d("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",BpT(wzs)),
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!",BpT(ZRL)),console.log("%cVisit http://go/join-youtube-web to apply today.",BpT(PB2)));_.vpd(E.resolve(_.RC),1E3)};
_.l.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var E=x37();E&&!_.d("external_fullscreen_killswitch")&&document.addEventListener(E,this.setFullscreen.bind(this));(E=window.matchMedia("(prefers-color-scheme: dark)"))&&E.addEventListener&&E.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.l.attached=function(){var E=this;_.gB().processSignal("ci");_.d("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.aiZ?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.yr(_.HSB(),"SUCCESS");this.updateIconSet();_.EK(this.guideInnerContent,!1);_.T0().initVisibilityObserver();this.guideService.guideElement=this.guide;var B=document.createElement("ytd-miniplayer"),I=_.n(this.hostElement).querySelector("#content");
_.n(this.hostElement).insertBefore(B,I);_.gB().processSignal("ma");_.Q().resolve(_.W3).init(B);_.gU("IS_SHELL_LOAD")&&(I=document.createElement("ytd-network-status-banner"),_.n(this.hostElement).insertBefore(I,B));_.d("kevlar_right_click_on_lockups")&&_.Ac._onCaptureClick&&document.addEventListener("contextmenu",_.Ac._onCaptureClick.bind(_.Ac),!0);var T=function(){var e=_.Ah("yt-page-navigation-progress");_.n(E.hostElement).appendChild(e)};
setTimeout(function(){_.gB().parkOrScheduleJob(T,0,"eocs",16)},0);
_.d("service_worker_push_enabled")&&_.PC(_.Ll,LFI);_.X4(_.WC.getInstance(),this.dynamicActionMap,this.hostElement);_.$O(this.hostElement,"ytd-app-attached");_.gB().processSignal("aa");jx2(this.hostElement);_.ka("gapi.load",_.PIB);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.PC(_.Ll,
function(){var e=document.createElement("ytd-video-preview");_.n(_.n(E.hostElement).querySelector("#video-preview")).appendChild(e)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.PC(_.Ll,function(){e2L();E.registerViewTransitionTasks()});
if(_.nq()&&this.isAppDarkTheme()!==_.Gv())this.onDarkModeToggledAction();else B=_.Oq()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==B&&(_.d("enable_dark_theme_only_on_shorts")?_.xG(_.d("enable_dark_theme_only_on_shorts_control")?window.location.href:_.jI(window.location.href,{theme:"dark"})):_.OG(new _.P7("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(LNg=new u_T(this.hostElement)),Yl9=new pz8(this.hostElement),iRm=new cnI(this.hostElement),kmd=new Uks(this.hostElement)};
_.l.getThemeSettingsToLog=function(){var E=_.Oq()==="USER_INTERFACE_THEME_DARK";E=_.nq()?_.Gv()?"os-dark":"os-light":E?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:E,cookiesEnabled:_.CF()}};
_.l.detached=function(){_.BN(this.guideInnerContent);_.Ll.cancelJob(Ro);Ro=0;_.Ll.cancelJob(Bv);Bv=0;_.bqd(AIO);AIO.length=0;rI1=_.y4i=null;_.T0().dispose();_.d("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.r9(_.WC.getInstance(),LNg.playlistHandlerActionMap,LNg.JSC$28274_clientRoot);_.r9(_.WC.getInstance(),Yl9.downloadManagerActionMap,Yl9.JSC$28579_clientRoot);_.r9(_.WC.getInstance(),iRm.feedbackCollectorActionMap,iRm.JSC$28574_clientRoot);
for(var E=_.p(kmd.eventListeners),B=E.next();!B.done;B=E.next()){var I=_.p(B.value);B=I.next().value;I=I.next().value;I=_.p(I);for(var T=I.next();!T.done;T=I.next()){var e=_.p(T.value);T=e.next().value;e=e.next().value;B.removeEventListener(T,e)}}_.r9(_.WC.getInstance(),kmd.autonavPauseActionMap,kmd.JSC$17625_clientRoot)};
_.l.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.ZB().getFlag(186)};
_.l.computeIsInlinePreviewEnabled=function(E,B,I){return!I&&_.idT({miniplayerIsActive:E,miniplayerPlaybackState:B})};
_.l.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.BP({type:"SET_FROSTED_GLASS_MODE",payload:!_.d("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"}))};
_.l.computeIsFrostedGlassDisabled=function(E,B,I,T){return E||B||I||T&&_.d("web_frosted_glass_disable_watch")};
_.l.computeIsHomePage=function(E,B){if(!E||B==null||!B.endpoint)return!1;var I;return((I=_.h(B.endpoint,_.pq))==null?void 0:I.browseId)==="FEwhat_to_watch"};
_.l.updateIsChannelOrPlaylistPage=function(){if(_.d("web_frosted_glass")){var E,B,I=(B=(E=_.Q().resolve(_.Fx(_.oS)))==null?void 0:E.getCurrentPage())==null?void 0:B.pageSubtype;this.isChannelOrPlaylistPage=I?["channel","channels","playlist"].includes(I):!1}};
_.l.scheduleFrostedGlassInitialization=function(){var E=this;_.d("web_frosted_glass")&&_.gB().parkOrScheduleJob(function(){E.isFrostedGlassInitialized=!0},0,_.h7(["eocs",
"cr"]),300)};
_.l.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.Ff$(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.BP({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.BP({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.l.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(rkd(!0))};
_.l.onYtSignalActionRequestPersistentStorage=function(){if(!_.d("request_persistent_storage_killswitch")){var E=_.Q().resolve(_.CDs);E.cachedPersistStatePromise||(E.cachedPersistStatePromise=IQ1())}};
_.l.handleYtChannelCreationFormEndpoints=function(E){E&&this.ytComponentBehavior.resolveCommand(E)};
_.l.handleShowEngagementPanelEndpoint=function(E){E&&this.ytComponentBehavior.resolveCommand(E)};
_.l.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(rkd(!1))};
_.l.initIconDefs=function(E,B,I){var T=document.createElement("iron-iconset-svg");T.name=E;E=document.createElementNS("http://www.w3.org/2000/svg","svg");T.appendChild(E);E.appendChild(B);if(I)for(var e in I)T[e]=I[e];document.body.appendChild(T);return T};
_.l.onWindowResized=function(){_.I2(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var E=_.lbR.getInstance();E.documentWidth_=document.body.clientWidth;TXO(E)};
_.l.onWindowScrolled=function(){var E=_.Q().resolve(_.oS).getCurrentPage();if(E!=null&&E.getScrollTop){var B=this.ytdReduxBehavior,I=B.dispatch;E=E.getScrollTop()<=0;I.call(B,_.BP({type:"SET_SCROLL_AT_TOP",payload:E}))}};
_.l.guideIsVisibleButNotPersistentSelectorChanged=function(){var E=_.Q().resolve(_.oS).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=E.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"),
E.setScrollTop(this.guideScrollTop));_.Ta(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.l.getCurrentPageScrollableElementType=function(){var E=_.Q().resolve(_.oS).getCurrentPage();if(E&&E.getPageScrollingElement())return E.getPageScrollingElement().nodeName};
_.l.observeGuideVisibility=function(){var E=_.lbR.getInstance(),B=this.miniGuideVisible;E.guidePersistentAndVisible_=this.guidePersistentAndVisible;E.miniGuideVisible_=B;TXO(E)};
_.l.handleEduDismissAction=function(E){E&&E.eduDismissAction&&(_.I2(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.Bzz.getInstance(),_.f_.set(E.eduDismissAction.key+"-dismissed",!0))};
_.l.handleEduImpressionAction=function(E){if(E&&E.eduImpressionAction){var B=_.Bzz.getInstance();E=E.eduImpressionAction.key;B.JSC$10781_eduDisplayedThisLoad_[_.Eot[E].setKey||E]=!0;_.f_.set(E+"-impression",parseInt(_.f_.get(E+"-impression")||0,10)+1)}};
_.l.onYtSignalActionConfirmMentionsEdu=function(){_.I2(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.FA.getInstance();_.qe.set("edu-dismissed",!0)};
_.l.onYtSignalActionRecordMentionsEduImpression=function(){_.FA.getInstance();var E=_.qe.set,B=parseInt(_.qe.get("edu-impressions"),10);E.call(_.qe,"edu-impressions",(isFinite(B)?B:0)+1)};
_.l.onYtPageManagerAttached=function(E){var B;((B=_.XN(E))==null?void 0:B.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.l.onInvokeInstrumentManagerAction=function(E,B){O$I(B,E)};
_.l.updateIconSet=function(){var E=this.hostElement.querySelector("#masthead");if(E){var B=_.fq(E),I=B.querySelector("g#yt-logo-updated");I&&(E=document.createElementNS("http://www.w3.org/2000/svg","defs"),E.appendChild(I.cloneNode(!0)),(B=B.querySelector("g#yt-logo-red-updated"))&&E.appendChild(B.cloneNode(!0)),this.initIconDefs("yt-logos-ext",E))}};
_.l.updateMastheadData=function(){var E=this,B,I,T,e;return _.a(function(c){if(c.nextAddress==1){B=E.data;I=E.hostElement.querySelector("#masthead");if(!I)return c.return();_.AJ(E,function(){I.data=E.topbarData});
return E.get("response.topbar",B)&&E.get("response.topbar.responseContext.maxAgeSeconds",B)!==0?(T=_.Q().resolve(_.gm))?_.C(c,T(),7):E.ephemeralResponseStore?_.C(c,E.ephemeralResponseStore.put("service:topbar:fallback",new _.Re({innertubeResponse:E.get("response.topbar",B)})),0):c.jumpTo(0):c.jumpTo(0)}return(e=c.yieldResult)?_.C(c,e.put("service:topbar:fallback",new _.Re({innertubeResponse:E.get("response.topbar",B)})),0):c.jumpTo(0)})};
_.l.computeTopbarData=function(E){if(!E)return null;var B;return this.isShortsPage&&this.topbarData&&!_.h((B=E.response)==null?void 0:B.topbar,kqO)?this.topbarData:E.response&&"topbar"in E.response?_.h(E.response.topbar,kqO)||null:null};
_.l.onSetTheaterModeEnabled=function(E,B){this.isTheaterModeSession=B.enabled;this.setTheaterModeStyles(B.enabled)};
_.l.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.l.onDarkModeToggledAction=function(){var E=_.c7(window.location.href);if(!_.hHQ(E)){(E=!!_.AA(window.location.href).themeRefresh)&&_.OG(new _.P7("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!E){iiL();E={themeRefresh:1};var B=_.Q().resolve(_.oS);if(B.isOnWatch()){var I,T;B=((I=B.getPlayerFromWatch())==null?void 0:(T=I.getPlayer())==null?void 0:T.getCurrentTime())||0;B>=1&&(E.time_continue=Math.floor(B))}_.CF()||_.Oq()!=="USER_INTERFACE_THEME_DARK"||(E.theme="dark");_.xG(_.jI(window.location.href,
E))}_.d("web_appshell_refresh_trigger")&&_.$i.caches&&this.refreshAppShellResponse();I=_.bT(window.location.href);_.$J(_.Q().resolve(_.IZ),_.F$(I,"theme"))}};
_.l.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.l.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.l.onPlayerFullscreen=function(E){_.KC();this.playerFullscreen=E};
_.l.setRestrictedMode=function(E){var B=_.ZB();_.PN(0,58,E);B.save();_.Q().resolve(_.Iy).reload()};
_.l.onPageChanged=function(E){E.detail.newPageType==="ytd-watch-flexy"||E.detail.newPageType==="ytd-watch-fixie"||E.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.GX("WEB_PAGE_TYPE_WATCH")):E.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.GX("WEB_PAGE_TYPE_SHORTS")):E.detail.newPageType==="ytd-browse"&&E.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.GX("WEB_PAGE_TYPE_MINI_APP")):_.d("web_frosted_glass")&&E.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.GX("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.GX("WEB_PAGE_TYPE_UNKNOWN"));E.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.l.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.l.onGuideToggleTap=function(){_.$O(this.hostElement,"yt-guide-toggle")};
_.l.onGuideToggleHover=function(){_.$O(this.hostElement,"yt-guide-hover")};
_.l.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.l.setMastheadTheme=function(){var E=_.fq(this.hostElement).querySelector("#masthead");E&&(E.dark=E.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),E.isDarkThemeForced=!1)};
_.l.onRequestPanelModeChange=function(E,B){this.hideHeaderShadow=B.mode!=="seamed"};
_.l.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.l.onDrawerIronSelect=function(E){_.XN(E).id==="guide"&&this.processDrawerIronSelect()};
_.l.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var E="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(E="opened"));_.$O(this.hostElement,"yt-autonav-pause-guide-"+E)};
_.l.onAddElementToApp=function(E){_.n(this.hostElement).appendChild(E.detail)};
_.l.onThrottledScroll=function(){var E=_.Q().resolve(_.oS).getCurrentPage();E&&(this.scrollAtTop=E.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.l.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.l.setFullscreen=function(){if(_.d("external_fullscreen")||!this.isWatchPage){var E=_.d("kevlar_fullerscreen_root_only_killswitch")?!!_.KC():!!_.KC()&&_.KC()===document.documentElement;E=(this.isWatchPage||_.d("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(E||this.isFullWindowSession);this.fullscreen!==E&&((this.fullscreen=E)&&_.Ta(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.t2().dispatch(_.bFd(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.I2(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.l.setFullscreenLoggingForShorts=function(E){var B,I,T;return _.a(function(e){if(e.nextAddress==1)return _.C(e,(B=_.jx())==null?void 0:B.getPlayerPromise(),2);I=e.yieldResult;(T=I)==null||T.setAppFullscreen(E);_.ER(e)})};
_.l.updateMastheadCssHeight=function(){var E=this.mastheadHeight;this.fullscreen&&(E=0);_.Dk(this.hostElement,{"--ytd-masthead-height":E+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.l.updateNetworkStatusBannerDisplayStatus=function(){var E="unset";this.fullscreen&&(E="none");_.Dk(this.hostElement,{"--ytd-network-status-banner-display":E})};
_.l.updateNetworkStatusBannerCssHeight=function(){var E="unset";this.fullscreen&&(E="0px");_.Dk(this.hostElement,{"--ytd-network-status-banner-max-height":E})};
_.l.updateScrollAndMasthead=function(E,B,I,T){this.iMaxTheaterMode||(T=!1);var e=_.Q().resolve(_.oS).getCurrentPage();E||B||T?(document.body.classList.add("no-scroll"),e.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Kq(this,this.onScroll)),e.setScrollTop(0),_.Dk(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.zo()+"px"})):I?_.$O(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.$O(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
e.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Kq(this,this.onScroll)));this.mastheadHidden=E||B||I;this.updateMastheadCssHeight();_.d("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.l.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.l.onYtMastheadHeightChanged=function(E,B){this.mastheadHeight=B.height;this.updateMastheadCssHeight()};
_.l.onYtNavigateAction=function(E){E=this.get("navigateAction.endpoint",E);_.$O(this.hostElement,"yt-navigate",{endpoint:E})};
_.l.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var E=document.createElement("yt-create-family-dialog");_.n(this.hostElement).appendChild(E);this.hasCreateFamilyDialog=!0}};
_.l.onSetPushNotificationsEnabledCommand=function(E){var B=this,I=_.h(E,UCT);I&&typeof I.enabled==="boolean"&&(Notification.permission!=="granted"?QH8().then(function(){Notification.permission==="granted"?(IaI(!I.enabled).then(la2),I.successAction&&_.l1(B.hostElement,[I.successAction])):I.failureAction&&_.l1(B.hostElement,[I.failureAction])}):(IaI(!I.enabled).then(la2),I.successAction&&_.l1(this.hostElement,[I.successAction])))};
_.l.onYtSignalActionEnableChromeNotifications=function(){dWO(!0)};
_.l.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.h(this.topbarData.hotkeyDialog,Vyt)}}})};
_.l.onYtSignalActionShowKeyboardShortcutDialog=function(){_.I2(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.l.onYtEndpointChangeHandler=function(E,B){var I=_.eD(_.$C);I.pendingPrefetchJob_&&(B=!(!B||B.autonav!="1"),I.pendingPrefetchJob_.resolve(E&&_.CFG(E)?_.wFG(E,B):""),I.pendingPrefetchJob_=null);_.I2(this.hostElement,"yt-pause-active-page-context");_.I2(this.hostElement,"ytd-log-youthere-nav");_.I2(this.hostElement,"yt-prepare-page-dispose")};
_.l.handleClearUrlParamCommand=function(E){_.BV.instance.resolveCommand(E);_.d("web_clear_url_param_command_resolver_ks")||(E=new _.P7("ClearUrlParamCommand handled in YtdApp"),_.xV(E))};
_.l.handleCommandWithCommandHandler=function(E,B){_.BV.instance.resolveCommand(E,{form:{element:B}})};
_.l.onYtTimedCommand=function(E){var B=this;E=_.h(E,N48);var I=E.command;I&&_.dT(_.Ll,function(){var T=_.h(I,_.rBr);T?(_.BV.instance.resolveCommand(I),B.maybeLogGetAnswerRequestTick(T)):_.cN(B.hostElement,[I],B.hostElement)},E.timeoutMs||0)};
_.l.maybeLogGetAnswerRequestTick=function(E){E&&E.isFirstRequest&&(_.OK("search_overview_answer"),_.nO("so_rq",void 0,"search_overview_answer"))};
_.l.onYtSignalActionSkipNavigation=function(){var E=_.Q().resolve(_.oS).getCurrentPage();_.AI(E)};
_.l.onYtSignalActionCopyDebugData=function(){SG1()};
_.l.handleEntityUpdateCommand=function(E){_.vP(_.h(E,_.rPu).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.l.logFlowLoggingEventCommand=function(E){if(E=_.h(E,_.lLF))if(E.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var B=E.flowEventNamespace,I=E.flowEventType,T=E.flowType;T&&B&&I&&_.llJ(_.eP(B,I,E.flowEventMetadata),T)}else{B=_.c8();I=E.flowEventNamespace;T=E.flowEventType;var e=E.flowType;e&&I&&T&&_.lj(B,_.eP(I,T,E.flowEventMetadata),e,E.flowNonce)}};
_.l.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.l.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.l.onTouchStart=function(){var E=_.e7();_.nC()&&_.np(E.JSC$10933_screenManager,{visualElement:E.ve})};
_.l.handleWebNativeShareCommand=function(E){_.BV.instance.resolveCommand(E);_.d("web_native_share_command_resolver_ks")||(E=new _.P7("WebNativeShareCommand handled in YtdApp"),_.xV(E))};
_.l.handlePersistSubscriptionsDisplayPreferencesCommand=function(E){_.BV.instance.resolveCommand(E);_.d("web_persist_subscriptions_display_preferences_command_resolver_ks")||(E=new _.P7("PersistSubscriptionsDisplayPreferencesCommand handled in YtdApp"),_.xV(E))};
_.l.handleSelectLanguageCommand=function(E){if(E=_.h(E,of2).hl){var B=_.ZB();B.set("hl",E);B.save();_.Q().resolve(_.Iy).reload()}};
_.l.handleConfirmDialogEndpoint=function(E){(E=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(E))&&this.ytOpenPopupBehavior.openPopup(E)};
_.l.handleOpenPopupNavigationEndpoints=function(E,B){_.d("web_button_rework")&&(E=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(E))&&this.ytOpenPopupBehavior.openPopup(E,B)};
_.l.handleSaveCommandToSessionStorage=function(E){if(E=_.h(E,_.WpD)){var B=E.key;B&&E.command&&window.sessionStorage.setItem(B,JSON.stringify(E.command))}};
_.l.hardReloadWithShellPurge=function(E){E=E===void 0?{}:E;E=Object.assign({},E,{purge_shell:1});E=_.w9h(E);_.xG(E)};
_.l.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(E){E&&E.active&&E.active.postMessage({type:"refresh_shell"})}).catch(function(E){E.name!=="SecurityError"&&_.xV(E)})};
_.l.onDeviceThemeChanged=function(){var E=_.Gv();_.PN(_.ZB(),185,E);_.ZB().save()};
_.l.handleYtRegisterPromoCommand=function(E){if(_.h(E,jA2)){var B=_.Q().resolve(_.oS).getCurrentPage()||this.hostElement;R8g().registerPromoCommand(_.h(E,jA2),B)}};
_.l.onYtNavigateHomeAction=function(){if(!_.d("kevlar_miniplayer_navigate_home_from_app_killswitch")){var E,B,I,T,e=(T=(E=this.topbarData)==null?void 0:(B=E.logo)==null?void 0:(I=B.topbarLogoRenderer)==null?void 0:I.endpoint)!=null?T:_.yB;this.ytComponentBehavior.resolveCommand(e)}};
_.l.onYtLocationCollectionCommand=function(E){IN2(_.h(E,$T7))};
_.l.onYtGetLocationCommand=function(E){oOL(_.h(E,B8I),this)};
_.l.updateRenderGuideFromBinding=function(E){this.renderGuide=E.detail.value};
_.l.updateGuidePersistentAndVisibleFromBinding=function(E){this.guidePersistentAndVisible=E.detail.value};
_.l.updateMiniGuideVisibleFromBinding=function(E){this.miniGuideVisible=E.detail.value};
_.l.onThemeSelected=function(E,B){var I=_.ZB(),T=E||B?E:_.Gv(),e=(T&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!T&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.hHQ(_.c7(window.location.href));_.PN(0,165,E);_.PN(0,174,B);I.save();e&&_.I2(this.hostElement,"yt-dark-mode-toggled-action",[T]);_.I2(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.l.getCurrentTheme=function(){return _.nq()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Oq()};
_.l.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.l.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.l.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.l.handleShowConsentPrimitive=function(E){var B=this,I,T;return _.a(function(e){if(e.nextAddress==1){try{I=(T=_.jx())==null?void 0:T.getPlayerPromise()}catch(c){}return _.C(e,dit(E,I),2)}_.I2(B.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.ER(e)})};
_.l.handleSelectActiveIdentityEndpointInternal=function(E){_.uj();E=_.h(E,_.E8U);if(E!=null&&E.supportedTokens){E=_.p(E.supportedTokens);for(var B=E.next();!B.done;B=E.next())B=B.value,B.accountSigninToken&&_.xG(B.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.l.handleUpdatePermissionRoleCommand=function(E){if(E=_.h(E,_.KAt)){var B;this.hasDelegation=!((B=_.h(E.renderer,_.D$r))==null||!B.status)}};
_.l.registerViewTransitionTasks=function(){var E=this,B=_.Q().resolve(_.Fx(_.hG9));if(B){var I,T=(I=this.guide)==null?void 0:I.querySelector("#scrim"),e,c=(e=this.guide)==null?void 0:e.querySelector("#contentContainer");T&&c&&(I={beforeTransition:function(){var Y;(Y=E.guide)!=null&&Y.persistent||(T.style.viewTransitionName="app-drawer-scrim",c.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var Y;(Y=E.guide)!=null&&Y.persistent||(T.style.viewTransitionName="",c.style.viewTransitionName="")}},TY(B,"slide",I),TY(B,"zoom",I))}};
_.Up.Object.defineProperties(J0.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.d("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Up.Object.defineProperties(J0,{template:{configurable:!0,enumerable:!0,get:function(){if(B$L===void 0){var E=document.createElement("template");_.G(E,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
E.content.insertBefore(_.D().content.cloneNode(!0),E.content.firstChild);B$L=E}E=B$L;return E}}});
J0.prototype.onOpenHotkeyDialog=J0.prototype.onOpenHotkeyDialog;J0.prototype.onYtMastheadHeightChanged=J0.prototype.onYtMastheadHeightChanged;J0.prototype.setFullscreen=J0.prototype.setFullscreen;J0.prototype.onAddElementToApp=J0.prototype.onAddElementToApp;J0.prototype.onDrawerIronSelect=J0.prototype.onDrawerIronSelect;J0.prototype.onGuideOpenButtonHover=J0.prototype.onGuideOpenButtonHover;J0.prototype.onRequestPanelModeChange=J0.prototype.onRequestPanelModeChange;
J0.prototype.onPageDataUpdated=J0.prototype.onPageDataUpdated;J0.prototype.onPageChanged=J0.prototype.onPageChanged;J0.prototype.onSetTheaterModeEnabled=J0.prototype.onSetTheaterModeEnabled;J0.prototype.updateMastheadData=J0.prototype.updateMastheadData;J0.prototype.onYtPageManagerAttached=J0.prototype.onYtPageManagerAttached;J0.prototype.observeGuideVisibility=J0.prototype.observeGuideVisibility;J0.prototype.guideIsVisibleButNotPersistentSelectorChanged=J0.prototype.guideIsVisibleButNotPersistentSelectorChanged;
J0.prototype.isInlinePreviewEnabledChanged=J0.prototype.isInlinePreviewEnabledChanged;J0.prototype.dispatchFrostedGlassMode=J0.prototype.dispatchFrostedGlassMode;_.k([_.g(_.Lz),_.t("design:type",Object)],J0.prototype,"ytdReduxBehavior",void 0);_.k([_.g(_.eS.YtEventForwardingBehavior),_.t("design:type",Object)],J0.prototype,"ytEventForwardingBehavior",void 0);_.k([_.g(_.E6.YtOpenPopupBehavior),_.t("design:type",Object)],J0.prototype,"ytOpenPopupBehavior",void 0);
_.k([_.g(_.th.YtActionHandlerBehavior),_.t("design:type",Object)],J0.prototype,"ytActionHandlerBehavior",void 0);_.k([_.g({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.WC.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.d("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var E;((E=this.actionRouterNode.hostElement)!=null?E:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var E;((E=this.actionRouterNode.hostElement)!=null?E:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(E){this.actionRouter_.handleAction(E.detail)}}),
_.t("design:type",Object)],J0.prototype,"ytActionRouterBehavior",void 0);_.k([_.g(c4t.YtdAppBehavior),_.t("design:type",Object)],J0.prototype,"ytdAppBehavior",void 0);_.k([_.g(_.BF.YtEndpointBehavior),_.t("design:type",Object)],J0.prototype,"ytEndpointBehavior",void 0);_.k([_.g(l8T.YtEndpointHandlerWithYpcBehavior),_.t("design:type",Object)],J0.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.k([_.g($RH.YtLogYpcFlowCommandsBehavior),_.t("design:type",Object)],J0.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.k([_.g(_.R.YtRendererBehavior),_.t("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.k([_.g(_.G0.YtComponentBehavior),_.t("design:type",Object)],J0.prototype,"ytComponentBehavior",void 0);_.k([_.X({selector:_.Uhd}),_.t("design:type",Object)],J0.prototype,"tabGesturesIsActive",void 0);_.k([_.X(),_.t("design:type",Boolean)],J0.prototype,"renderGuide",void 0);
_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],J0.prototype,"guidePersistentAndVisible",void 0);_.k([_.X({selector:_.jdL}),_.t("design:type",Boolean)],J0.prototype,"guideIsVisibleButNotPersistent",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],J0.prototype,"standalone",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],J0.prototype,"miniGuideVisible",void 0);
_.k([_.X({selector:_.spd}),_.t("design:type",Number)],J0.prototype,"miniplayerPlaybackState",void 0);_.k([_.X({selector:_.O3,reflectToAttribute:!0}),_.t("design:type",Boolean)],J0.prototype,"miniplayerIsActive",void 0);_.k([_.X({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.t("design:type",Boolean)],J0.prototype,"isInlinePreviewEnabled",void 0);_.k([_.X(),_.t("design:type",Boolean)],J0.prototype,"isInlinePreviewDisabled",void 0);
_.k([_.X({reflectToAttribute:!0,value:function(){return _.gU("START_IN_FULL_WINDOW_MODE")}}),
_.t("design:type",Boolean)],J0.prototype,"mastheadHidden",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],J0.prototype,"playerFullscreen",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],J0.prototype,"deprecateFullerscreenUi",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],J0.prototype,"fullscreen",void 0);_.k([_.X({value:!1,reflectToAttribute:!0}),_.t("design:type",Boolean)],J0.prototype,"hideHeaderShadow",void 0);
_.k([_.X({value:{GUIDE_ALT_LABEL:_.yu("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.t("design:type",Object)],J0.prototype,"menuStrings",void 0);_.k([_.X({computed:"computeTopbarData(data)"}),_.t("design:type",Object)],J0.prototype,"topbarData",void 0);_.k([_.X({selector:_.n9}),_.t("design:type",Boolean)],J0.prototype,"isWatchPage",void 0);_.k([_.X({selector:_.Qpd,reflectToAttribute:!0}),_.t("design:type",Boolean)],J0.prototype,"isShortsPage",void 0);
_.k([_.X({selector:function(E){return E.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.t("design:type",Boolean)],J0.prototype,"isMiniAppPage",void 0);_.k([_.X({selector:function(E){return E.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.t("design:type",Boolean)],J0.prototype,"isBrowsePage",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Boolean)],J0.prototype,"scrolling",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],J0.prototype,"hasDelegation",void 0);_.k([_.X({reflectToAttribute:!0,value:!1}),_.t("design:type",Boolean)],J0.prototype,"guideScrolledByTouch",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],J0.prototype,"darkerDarkTheme",void 0);
_.k([_.X(),_.t("design:type",Object)],J0.prototype,"isFrostedGlassInitialized",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],J0.prototype,"frostedGlassExp",void 0);_.k([_.X({selector:function(E){return E.ui.chipBarIsSticky}}),
_.t("design:type",Boolean)],J0.prototype,"chipBarIsSticky",void 0);_.k([_.X({computed:"computeIsHomePage(isBrowsePage, data)"}),_.t("design:type",Boolean)],J0.prototype,"isHomePage",void 0);_.k([_.X({reflectToAttribute:!0}),_.t("design:type",Object)],J0.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.k([_.X(),_.t("design:type",Object)],J0.prototype,"ephemeralActionsEnabled",void 0);_.k([_.b4("guide"),_.t("design:type",Object)],J0.prototype,"guide",void 0);
_.k([_.b4("guide-service"),_.t("design:type",V1t)],J0.prototype,"guideService",void 0);_.k([_.b4("guide-inner-content"),_.t("design:type",HTMLDivElement)],J0.prototype,"guideInnerContent",void 0);_.k([_.X({selector:_.LJt}),_.t("design:type",String)],J0.prototype,"frostedGlassMode",void 0);
_.k([_.EM("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J0.prototype,"dispatchFrostedGlassMode",null);_.k([_.X({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.t("design:type",Object)],J0.prototype,"isFrostedGlassDisabled",void 0);
_.k([_.S("isHomePage","chipBarIsSticky"),_.t("design:type",Boolean),_.t("design:paramtypes",[])],J0.prototype,"applyFrostedGlassToChipBar",null);_.k([_.X(),_.t("design:type",Object)],J0.prototype,"isChannelOrPlaylistPage",void 0);_.k([_.i6("isInlinePreviewEnabled"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J0.prototype,"isInlinePreviewEnabledChanged",null);
_.k([_.EM("guideIsVisibleButNotPersistent"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J0.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.k([_.EM("guidePersistentAndVisible","miniGuideVisible"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J0.prototype,"observeGuideVisibility",null);
_.k([_.RN("attached"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],J0.prototype,"onYtPageManagerAttached",null);_.k([_.EM("data"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype",Promise)],J0.prototype,"updateMastheadData",null);_.k([_.RN("yt-set-theater-mode-enabled"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],J0.prototype,"onSetTheaterModeEnabled",null);
_.k([_.RN("yt-page-type-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],J0.prototype,"onPageChanged",null);_.k([_.RN("yt-page-data-updated"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J0.prototype,"onPageDataUpdated",null);_.k([_.RN("yt-request-panel-mode-change"),_.t("design:type",Function),_.t("design:paramtypes",[Event,Object]),_.t("design:returntype")],J0.prototype,"onRequestPanelModeChange",null);
_.k([_.RN("yt-guide-hover"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J0.prototype,"onGuideOpenButtonHover",null);_.k([_.RN("app-drawer-transitioned"),_.t("design:type",Function),_.t("design:paramtypes",[Event]),_.t("design:returntype")],J0.prototype,"onDrawerIronSelect",null);_.k([_.RN("yt-add-element-to-app"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent]),_.t("design:returntype")],J0.prototype,"onAddElementToApp",null);
_.k([_.RN("yt-set-fullerscreen-styles"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J0.prototype,"setFullscreen",null);_.k([_.RN("yt-masthead-height-changed"),_.t("design:type",Function),_.t("design:paramtypes",[CustomEvent,Object]),_.t("design:returntype")],J0.prototype,"onYtMastheadHeightChanged",null);_.k([_.RN("yt-open-hotkey-dialog"),_.t("design:type",Function),_.t("design:paramtypes",[]),_.t("design:returntype")],J0.prototype,"onOpenHotkeyDialog",null);
J0=_.k([_.b({is:"ytd-app"})],J0);_.gB().processSignal("eor");
_.s7();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
